2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.7cvs.
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.7cvs'
429 PACKAGE_STRING='llvm 1.7cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
446 # include <sys/types.h>
449 # include <sys/stat.h>
460 # if !STDC_HEADERS && HAVE_MEMORY_H
466 # include <strings.h>
469 # include <inttypes.h>
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED DEBUG_RUNTIME JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
482 # Initialize some variables set by options.
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
494 program_transform_name=s,x,x,
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532 # Accept the important Cygnus configure options, so we can diagnose typos.
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
554 cache_file=config.cache ;;
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 datadir=$ac_optarg ;;
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "enable_$ac_feature='$ac_optarg'" ;;
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
597 -help | --help | --hel | --he | -h)
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
621 -libdir | --libdir | --libdi | --libd)
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 # Obsolete; use --without-fp.
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 sbindir=$ac_optarg ;;
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 sharedstatedir=$ac_optarg ;;
725 -site | --site | --sit)
727 -site=* | --site=* | --sit=*)
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
750 -version | --version | --versio | --versi | --vers | -V)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
764 eval "with_$ac_package='$ac_optarg'" ;;
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
776 # Obsolete; use --with-x.
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838 localstatedir libdir includedir oldincludedir infodir mandir
840 eval ac_val=$`echo $ac_var`
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869 test "$silent" = yes && exec 6>/dev/null
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
962 # Report the --help message.
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
968 \`configure' configures llvm 1.7cvs to adapt to many kinds of systems.
970 Usage: $0 [OPTION]... [VAR=VALUE]...
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
975 Defaults for the options are specified in brackets.
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1002 For better control, use the options below.
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1028 if test -n "$ac_init_help"; then
1029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.7cvs:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038 --enable-debug-runtime
1039 --enable-jit Enable Just In Time Compiling (default is YES)
1040 --enable-doxygen Build doxygen documentation (default is NO)
1041 --enable-threads Use threads if available (default is YES)
1042 --enable-target Build specific host targets:
1043 all,host-only,{target-name} (default=all)
1044 --enable-ltdl-install install libltdl
1045 --enable-shared[=PKGS]
1046 build shared libraries [default=yes]
1047 --enable-static[=PKGS]
1048 build static libraries [default=yes]
1049 --enable-fast-install[=PKGS]
1050 optimize for fast installation [default=yes]
1051 --disable-libtool-lock avoid locking (might break parallel builds)
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1056 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1058 --with-tclinclude directory where tcl headers are
1059 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1060 --with-pic try to use only PIC/non-PIC objects [default=use
1063 include additional configurations [automatic]
1065 Some influential environment variables:
1066 CC C compiler command
1067 CFLAGS C compiler flags
1068 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1069 nonstandard directory <lib dir>
1070 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071 headers in a nonstandard directory <include dir>
1073 CXX C++ compiler command
1074 CXXFLAGS C++ compiler flags
1075 CXXCPP C++ preprocessor
1076 F77 Fortran 77 compiler command
1077 FFLAGS Fortran 77 compiler flags
1079 Use these variables to override the choices made by `configure' or to help
1080 it to find libraries and programs with nonstandard names/locations.
1082 Report bugs to <llvmbugs@cs.uiuc.edu>.
1086 if test "$ac_init_help" = "recursive"; then
1087 # If there are subdirs, report their specific --help.
1089 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090 test -d $ac_dir || continue
1093 if test "$ac_dir" != .; then
1094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095 # A "../" for each directory in $ac_dir_suffix.
1096 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 ac_dir_suffix= ac_top_builddir=
1102 .) # No --srcdir option. We are building in place.
1104 if test -z "$ac_top_builddir"; then
1107 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109 [\\/]* | ?:[\\/]* ) # Absolute path.
1110 ac_srcdir=$srcdir$ac_dir_suffix;
1111 ac_top_srcdir=$srcdir ;;
1113 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117 # Do not use `cd foo && pwd` to compute absolute paths, because
1118 # the directories may not exist.
1120 .) ac_abs_builddir="$ac_dir";;
1123 .) ac_abs_builddir=`pwd`;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 case ${ac_top_builddir}. in
1132 .) ac_abs_top_builddir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1137 case $ac_abs_builddir in
1138 .) ac_abs_srcdir=$ac_srcdir;;
1141 .) ac_abs_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 case $ac_top_srcdir in
1150 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1157 # Check for guested configure; otherwise get Cygnus style configure.
1158 if test -f $ac_srcdir/configure.gnu; then
1160 $SHELL $ac_srcdir/configure.gnu --help=recursive
1161 elif test -f $ac_srcdir/configure; then
1163 $SHELL $ac_srcdir/configure --help=recursive
1164 elif test -f $ac_srcdir/configure.ac ||
1165 test -f $ac_srcdir/configure.in; then
1167 $ac_configure --help
1169 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1175 test -n "$ac_init_help" && exit 0
1176 if $ac_init_version; then
1178 llvm configure 1.7cvs
1179 generated by GNU Autoconf 2.59
1181 Copyright (C) 2003 Free Software Foundation, Inc.
1182 This configure script is free software; the Free Software Foundation
1183 gives unlimited permission to copy, distribute and modify it.
1185 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1191 This file contains any messages produced by compilers while
1192 running configure, to aid debugging if configure makes a mistake.
1194 It was created by llvm $as_me 1.7cvs, which was
1195 generated by GNU Autoconf 2.59. Invocation command line was
1206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1218 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229 test -z "$as_dir" && as_dir=.
1230 echo "PATH: $as_dir"
1245 # Keep a trace of the command line.
1246 # Strip out --no-create and --no-recursion so they do not pile up.
1247 # Strip out --silent because we don't want to record it for future runs.
1248 # Also quote any args containing shell meta-characters.
1249 # Make two passes to allow for proper duplicate-argument suppression.
1254 ac_must_keep_next=false
1260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262 | -silent | --silent | --silen | --sile | --sil)
1264 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1271 if test $ac_must_keep_next = true; then
1272 ac_must_keep_next=false # Got value, back to normal.
1275 *=* | --config-cache | -C | -disable-* | --disable-* \
1276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1278 | -with-* | --with-* | -without-* | --without-* | --x)
1279 case "$ac_configure_args0 " in
1280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1283 -* ) ac_must_keep_next=true ;;
1286 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1287 # Get rid of the leading space.
1293 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1294 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296 # When interrupted or exit'd, cleanup temporary files, and complete
1297 # config.log. We remove comments because anyway the quotes in there
1298 # would cause problems or look ugly.
1299 # WARNING: Be sure not to use single quotes in there, as some shells,
1300 # such as our DU 5.0 friend, will then `close' the trap.
1301 trap 'exit_status=$?
1302 # Save into config.log some information that might help in debugging.
1307 ## ---------------- ##
1308 ## Cache variables. ##
1309 ## ---------------- ##
1312 # The following way of writing the cache mishandles newlines in values,
1315 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1318 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1323 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1330 ## ----------------- ##
1331 ## Output variables. ##
1332 ## ----------------- ##
1335 for ac_var in $ac_subst_vars
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1342 if test -n "$ac_subst_files"; then
1349 for ac_var in $ac_subst_files
1351 eval ac_val=$`echo $ac_var`
1352 echo "$ac_var='"'"'$ac_val'"'"'"
1357 if test -s confdefs.h; then
1364 sed "/^$/d" confdefs.h | sort
1367 test "$ac_signal" != 0 &&
1368 echo "$as_me: caught signal $ac_signal"
1369 echo "$as_me: exit $exit_status"
1371 rm -f core *.core &&
1372 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1375 for ac_signal in 1 2 13 15; do
1376 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1381 rm -rf conftest* confdefs.h
1382 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1385 # Predefined preprocessor variables.
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_NAME "$PACKAGE_NAME"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_STRING "$PACKAGE_STRING"
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412 # Let the site file select an alternate cache file if it wants to.
1413 # Prefer explicitly selected file to automatically selected ones.
1414 if test -z "$CONFIG_SITE"; then
1415 if test "x$prefix" != xNONE; then
1416 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1421 for ac_site_file in $CONFIG_SITE; do
1422 if test -r "$ac_site_file"; then
1423 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1424 echo "$as_me: loading site script $ac_site_file" >&6;}
1425 sed 's/^/| /' "$ac_site_file" >&5
1430 if test -r "$cache_file"; then
1431 # Some versions of bash will fail to source /dev/null (special
1432 # files actually), so we avoid doing that.
1433 if test -f "$cache_file"; then
1434 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1435 echo "$as_me: loading cache $cache_file" >&6;}
1437 [\\/]* | ?:[\\/]* ) . $cache_file;;
1438 *) . ./$cache_file;;
1442 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1443 echo "$as_me: creating cache $cache_file" >&6;}
1447 # Check that the precious variables saved in the cache have kept the same
1449 ac_cache_corrupted=false
1450 for ac_var in `(set) 2>&1 |
1451 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1452 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1453 eval ac_new_set=\$ac_env_${ac_var}_set
1454 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1455 eval ac_new_val="\$ac_env_${ac_var}_value"
1456 case $ac_old_set,$ac_new_set in
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1462 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1463 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1464 ac_cache_corrupted=: ;;
1467 if test "x$ac_old_val" != "x$ac_new_val"; then
1468 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1469 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1470 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1471 echo "$as_me: former value: $ac_old_val" >&2;}
1472 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1473 echo "$as_me: current value: $ac_new_val" >&2;}
1474 ac_cache_corrupted=:
1477 # Pass precious variables to config.status.
1478 if test "$ac_new_set" = set; then
1480 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1481 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1482 *) ac_arg=$ac_var=$ac_new_val ;;
1484 case " $ac_configure_args " in
1485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1486 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490 if $ac_cache_corrupted; then
1491 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1492 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1493 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1494 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1495 { (exit 1); exit 1; }; }
1499 ac_cpp='$CPP $CPPFLAGS'
1500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1531 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1540 for ac_dir in autoconf $srcdir/autoconf; do
1541 if test -f $ac_dir/install-sh; then
1543 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 elif test -f $ac_dir/install.sh; then
1547 ac_install_sh="$ac_aux_dir/install.sh -c"
1549 elif test -f $ac_dir/shtool; then
1551 ac_install_sh="$ac_aux_dir/shtool install -c"
1555 if test -z "$ac_aux_dir"; then
1556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1557 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1558 { (exit 1); exit 1; }; }
1560 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1565 if test ${srcdir} != "." ; then
1566 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1567 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1568 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1569 { (exit 1); exit 1; }; }
1573 for i in `ls ${srcdir}/projects`
1575 if test -d ${srcdir}/projects/${i} ; then
1580 subdirs="$subdirs projects/sample"
1584 subdirs="$subdirs projects/Stacker"
1588 subdirs="$subdirs projects/llvm-test"
1592 subdirs="$subdirs projects/llvm-reopt"
1596 subdirs="$subdirs projects/llvm-gcc"
1600 subdirs="$subdirs projects/llvm-java"
1604 subdirs="$subdirs projects/llvm-tv"
1608 subdirs="$subdirs projects/llvm-poolalloc"
1612 subdirs="$subdirs projects/llvm-kernel"
1615 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1616 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1623 # Make sure we can run config.sub.
1624 $ac_config_sub sun4 >/dev/null 2>&1 ||
1625 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1626 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1627 { (exit 1); exit 1; }; }
1629 echo "$as_me:$LINENO: checking build system type" >&5
1630 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1631 if test "${ac_cv_build+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 ac_cv_build_alias=$build_alias
1635 test -z "$ac_cv_build_alias" &&
1636 ac_cv_build_alias=`$ac_config_guess`
1637 test -z "$ac_cv_build_alias" &&
1638 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1639 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1640 { (exit 1); exit 1; }; }
1641 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1643 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1647 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1648 echo "${ECHO_T}$ac_cv_build" >&6
1650 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1655 echo "$as_me:$LINENO: checking host system type" >&5
1656 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1657 if test "${ac_cv_host+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 ac_cv_host_alias=$host_alias
1661 test -z "$ac_cv_host_alias" &&
1662 ac_cv_host_alias=$ac_cv_build_alias
1663 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1664 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1665 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1666 { (exit 1); exit 1; }; }
1669 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1670 echo "${ECHO_T}$ac_cv_host" >&6
1672 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1677 echo "$as_me:$LINENO: checking target system type" >&5
1678 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1679 if test "${ac_cv_target+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 ac_cv_target_alias=$target_alias
1683 test "x$ac_cv_target_alias" = "x" &&
1684 ac_cv_target_alias=$ac_cv_host_alias
1685 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1686 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1687 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1688 { (exit 1); exit 1; }; }
1691 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1692 echo "${ECHO_T}$ac_cv_target" >&6
1693 target=$ac_cv_target
1694 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1699 # The aliases save the names the user supplied, while $host etc.
1700 # will get canonicalized.
1701 test -n "$target_alias" &&
1702 test "$program_prefix$program_suffix$program_transform_name" = \
1704 program_prefix=${target_alias}-
1706 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1707 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1708 if test "${llvm_cv_os_type+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 llvm_cv_os_type="AIX"
1714 llvm_cv_platform_type="Unix" ;;
1716 llvm_cv_os_type="Cygwin"
1717 llvm_cv_platform_type="Unix" ;;
1719 llvm_cv_os_type="Darwin"
1720 llvm_cv_platform_type="Unix" ;;
1722 llvm_cv_os_type="FreeBSD"
1723 llvm_cv_platform_type="Unix" ;;
1725 llvm_cv_os_type="HP-UX"
1726 llvm_cv_platform_type="Unix" ;;
1728 llvm_cv_os_type="Interix"
1729 llvm_cv_platform_type="Unix" ;;
1731 llvm_cv_os_type="Linux"
1732 llvm_cv_platform_type="Unix" ;;
1734 llvm_cv_os_type="SunOS"
1735 llvm_cv_platform_type="Unix" ;;
1737 llvm_cv_os_type="Win32"
1738 llvm_cv_platform_type="Win32" ;;
1740 llvm_cv_os_type="MingW"
1741 llvm_cv_platform_type="Win32" ;;
1743 llvm_cv_os_type="Unknown"
1744 llvm_cv_platform_type="Unknown" ;;
1747 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1748 echo "${ECHO_T}$llvm_cv_os_type" >&6
1750 if test "$llvm_cv_os_type" = "Unknown" ; then
1751 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1752 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1753 { (exit 1); exit 1; }; }
1759 case $llvm_cv_platform_type in
1762 cat >>confdefs.h <<\_ACEOF
1763 #define LLVM_ON_UNIX 1
1773 cat >>confdefs.h <<\_ACEOF
1774 #define LLVM_ON_WIN32 1
1784 echo "$as_me:$LINENO: checking target architecture" >&5
1785 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1786 if test "${llvm_cv_target_arch+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 i?86-*) llvm_cv_target_arch="x86" ;;
1791 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1792 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1793 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1794 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1795 ia64-*) llvm_cv_target_arch="IA64" ;;
1796 *) llvm_cv_target_arch="Unknown" ;;
1799 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1800 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1802 if test "$llvm_cv_target_arch" = "Unknown" ; then
1803 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1804 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1807 ARCH=$llvm_cv_target_arch
1811 ac_cpp='$CPP $CPPFLAGS'
1812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1852 if test -z "$ac_cv_prog_CC"; then
1854 # Extract the first word of "gcc", so it can be a program name with args.
1855 set dummy gcc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="gcc"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1894 if test -z "$CC"; then
1895 if test -n "$ac_tool_prefix"; then
1896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1897 set dummy ${ac_tool_prefix}cc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC="$CC" # Let the user override the test.
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 test -z "$as_dir" && as_dir=.
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 ac_cv_prog_CC="${ac_tool_prefix}cc"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 if test -n "$CC"; then
1924 echo "$as_me:$LINENO: result: $CC" >&5
1925 echo "${ECHO_T}$CC" >&6
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1932 if test -z "$ac_cv_prog_CC"; then
1934 # Extract the first word of "cc", so it can be a program name with args.
1935 set dummy cc; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 if test -n "$ac_ct_CC"; then
1942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951 ac_cv_prog_ac_ct_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961 if test -n "$ac_ct_CC"; then
1962 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963 echo "${ECHO_T}$ac_ct_CC" >&6
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1975 if test -z "$CC"; then
1976 # Extract the first word of "cc", so it can be a program name with args.
1977 set dummy cc; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1995 ac_prog_rejected=yes
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test $ac_prog_rejected = yes; then
2006 # We found a bogon in the path, so make sure we never use it.
2007 set dummy $ac_cv_prog_CC
2009 if test $# != 0; then
2010 # We chose a different compiler from the bogus one.
2011 # However, it has the same basename, so the bogon will be chosen
2012 # first if we set CC to just the basename; use the full file name.
2014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2020 if test -n "$CC"; then
2021 echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6
2024 echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2029 if test -z "$CC"; then
2030 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 if test -n "$CC"; then
2061 echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2068 test -n "$CC" && break
2071 if test -z "$CC"; then
2075 # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 ac_cv_prog_ac_ct_CC="$ac_prog"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104 echo "${ECHO_T}$ac_ct_CC" >&6
2106 echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6
2110 test -n "$ac_ct_CC" && break
2119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2125 # Provide some information about the compiler.
2126 echo "$as_me:$LINENO:" \
2127 "checking for C compiler version" >&5
2128 ac_compiler=`set X $ac_compile; echo $2`
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130 (eval $ac_compiler --version </dev/null >&5) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135 (eval $ac_compiler -v </dev/null >&5) 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140 (eval $ac_compiler -V </dev/null >&5) 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2145 cat >conftest.$ac_ext <<_ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2165 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169 (eval $ac_link_default) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 # Find the output, starting from the most likely. This scheme is
2174 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2177 # Be careful to initialize this variable, since it used to be cached.
2178 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2180 # b.out is created by i960 compilers.
2181 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2183 test -f "$ac_file" || continue
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2188 # This is the source file.
2191 # We found the default executable, but exeext='' is most
2195 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 # FIXME: I believe we export ac_cv_exeext for Libtool,
2197 # but it would be cool to find out if it's true. Does anybody
2198 # maintain Libtool? --akim.
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2209 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&2;}
2213 { (exit 77); exit 77; }; }
2216 ac_exeext=$ac_cv_exeext
2217 echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6
2220 # Check the compiler produces executables we can run. If not, either
2221 # the compiler is broken, or we cross compile.
2222 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2224 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225 # If not cross compiling, check that we can run a simple program.
2226 if test "$cross_compiling" != yes; then
2227 if { ac_try='./$ac_file'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2235 if test "$cross_compiling" = maybe; then
2238 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2248 echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6
2251 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252 ac_clean_files=$ac_clean_files_save
2253 # Check the compiler produces executables we can run. If not, either
2254 # the compiler is broken, or we cross compile.
2255 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6
2260 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263 (eval $ac_link) 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
2267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2271 for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&2;}
2286 { (exit 1); exit 1; }; }
2289 rm -f conftest$ac_cv_exeext
2290 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291 echo "${ECHO_T}$ac_cv_exeext" >&6
2293 rm -f conftest.$ac_ext
2294 EXEEXT=$ac_cv_exeext
2296 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298 if test "${ac_cv_objext+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 cat >conftest.$ac_ext <<_ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2316 rm -f conftest.o conftest.obj
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; then
2322 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2325 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343 echo "${ECHO_T}$ac_cv_objext" >&6
2344 OBJEXT=$ac_cv_objext
2346 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cat >conftest.$ac_ext <<_ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2373 grep -v '^ *+' conftest.er1 >conftest.err
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag"
2379 || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2402 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2403 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2404 GCC=`test $ac_compiler_gnu = yes && echo yes`
2405 ac_test_CFLAGS=${CFLAGS+set}
2406 ac_save_CFLAGS=$CFLAGS
2408 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2409 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cc_g+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 cat >conftest.$ac_ext <<_ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>conftest.er1
2432 grep -v '^ *+' conftest.er1 >conftest.err
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -z "$ac_c_werror_flag"
2438 || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461 if test "$ac_test_CFLAGS" = set; then
2462 CFLAGS=$ac_save_CFLAGS
2463 elif test $ac_cv_prog_cc_g = yes; then
2464 if test "$GCC" = yes; then
2470 if test "$GCC" = yes; then
2476 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 ac_cv_prog_cc_stdc=no
2483 cat >conftest.$ac_ext <<_ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2491 #include <sys/types.h>
2492 #include <sys/stat.h>
2493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2494 struct buf { int x; };
2495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496 static char *e (p, i)
2502 static char *f (char * (*g) (char **, int), char **p, ...)
2507 s = g (p, va_arg (v,int));
2512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2513 function prototypes and stuff, but not '\xHH' hex character constants.
2514 These don't provoke an error unfortunately, instead are silently treated
2515 as 'x'. The following induces an error, until -std1 is added to get
2516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2517 array size at least. It's necessary to write '\x00'==0 to get something
2518 that's true only with -std1. */
2519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521 int test (int i, double x);
2522 struct s1 {int (*f) (int a);};
2523 struct s2 {int (*f) (double a);};
2524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2530 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2535 # Don't try gcc -ansi; that turns off useful extensions and
2536 # breaks some systems' header files.
2537 # AIX -qlanglvl=ansi
2538 # Ultrix and OSF/1 -std1
2539 # HP-UX 10.20 and later -Ae
2540 # HP-UX older versions -Aa -D_HPUX_SOURCE
2541 # SVR4 -Xc -D__EXTENSIONS__
2542 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544 CC="$ac_save_CC $ac_arg"
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 ac_cv_prog_cc_stdc=$ac_arg
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2574 rm -f conftest.err conftest.$ac_objext
2576 rm -f conftest.$ac_ext conftest.$ac_objext
2581 case "x$ac_cv_prog_cc_stdc" in
2583 echo "$as_me:$LINENO: result: none needed" >&5
2584 echo "${ECHO_T}none needed" >&6 ;;
2586 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2587 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2588 CC="$CC $ac_cv_prog_cc_stdc" ;;
2591 # Some people use a C++ compiler to compile C. Since we use `exit',
2592 # in C++ we need to declare it. In case someone uses the same compiler
2593 # for both compiling C and C++ we need to have the C++ compiler decide
2594 # the declaration of exit, since it's the most demanding environment.
2595 cat >conftest.$ac_ext <<_ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
2604 grep -v '^ *+' conftest.er1 >conftest.err
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 for ac_declaration in \
2624 'extern "C" void std::exit (int) throw (); using std::exit;' \
2625 'extern "C" void std::exit (int); using std::exit;' \
2626 'extern "C" void exit (int) throw ();' \
2627 'extern "C" void exit (int);' \
2630 cat >conftest.$ac_ext <<_ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2650 grep -v '^ *+' conftest.er1 >conftest.err
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2691 rm -f conftest.$ac_objext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>conftest.er1
2695 grep -v '^ *+' conftest.er1 >conftest.err
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag"
2701 || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722 if test -n "$ac_declaration"; then
2723 echo '#ifdef __cplusplus' >>confdefs.h
2724 echo $ac_declaration >>confdefs.h
2725 echo '#endif' >>confdefs.h
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2742 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2743 if test "${ac_cv_c_bigendian+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 # See if sys/param.h defines the BYTE_ORDER macro.
2747 cat >conftest.$ac_ext <<_ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2753 #include <sys/types.h>
2754 #include <sys/param.h>
2759 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2767 rm -f conftest.$ac_objext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769 (eval $ac_compile) 2>conftest.er1
2771 grep -v '^ *+' conftest.er1 >conftest.err
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } &&
2776 { ac_try='test -z "$ac_c_werror_flag"
2777 || test ! -s conftest.err'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; } &&
2783 { ac_try='test -s conftest.$ac_objext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 # It does; now see whether it defined to BIG_ENDIAN or not.
2790 cat >conftest.$ac_ext <<_ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2796 #include <sys/types.h>
2797 #include <sys/param.h>
2802 #if BYTE_ORDER != BIG_ENDIAN
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>conftest.er1
2814 grep -v '^ *+' conftest.er1 >conftest.err
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try='test -z "$ac_c_werror_flag"
2820 || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 ac_cv_c_bigendian=yes
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2837 ac_cv_c_bigendian=no
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 # It does not; compile a test program.
2845 if test "$cross_compiling" = yes; then
2846 # try to guess the endianness by grepping values into an object file
2847 ac_cv_c_bigendian=unknown
2848 cat >conftest.$ac_ext <<_ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2855 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2856 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2857 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2858 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2859 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2863 _ascii (); _ebcdic ();
2868 rm -f conftest.$ac_objext
2869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870 (eval $ac_compile) 2>conftest.er1
2872 grep -v '^ *+' conftest.er1 >conftest.err
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -z "$ac_c_werror_flag"
2878 || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2891 ac_cv_c_bigendian=yes
2893 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2894 if test "$ac_cv_c_bigendian" = unknown; then
2895 ac_cv_c_bigendian=no
2897 # finding both strings is unlikely to happen, but who knows?
2898 ac_cv_c_bigendian=unknown
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908 cat >conftest.$ac_ext <<_ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2917 /* Are we little or big endian? From Harbison&Steele. */
2921 char c[sizeof (long)];
2924 exit (u.c[sizeof (long) - 1] == 1);
2927 rm -f conftest$ac_exeext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929 (eval $ac_link) 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 ac_cv_c_bigendian=no
2940 echo "$as_me: program exited with status $ac_status" >&5
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2945 ac_cv_c_bigendian=yes
2947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2952 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2953 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2954 case $ac_cv_c_bigendian in
2962 { { echo "$as_me:$LINENO: error: unknown endianness
2963 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2964 echo "$as_me: error: unknown endianness
2965 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2966 { (exit 1); exit 1; }; } ;;
2971 # Check whether --enable-optimized or --disable-optimized was given.
2972 if test "${enable_optimized+set}" = set; then
2973 enableval="$enable_optimized"
2978 if test ${enableval} = "no" ; then
2982 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2986 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
2987 if test "${enable_debug_runtime+set}" = set; then
2988 enableval="$enable_debug_runtime"
2993 if test ${enableval} = "no" ; then
2997 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3001 # Check whether --enable-jit or --disable-jit was given.
3002 if test "${enable_jit+set}" = set; then
3003 enableval="$enable_jit"
3008 if test ${enableval} = "no"
3013 case "$llvm_cv_target_arch" in
3014 x86) JIT=TARGET_HAS_JIT=1
3016 Sparc) JIT=TARGET_HAS_JIT=1
3018 PowerPC) JIT=TARGET_HAS_JIT=1
3022 Alpha) JIT=TARGET_HAS_JIT=1
3031 # Check whether --enable-doxygen or --disable-doxygen was given.
3032 if test "${enable_doxygen+set}" = set; then
3033 enableval="$enable_doxygen"
3038 case "$enableval" in
3039 yes) ENABLE_DOXYGEN=1
3041 no) ENABLE_DOXYGEN=0
3043 default) ENABLE_DOXYGEN=0
3045 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3046 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3047 { (exit 1); exit 1; }; } ;;
3050 # Check whether --enable-threads or --disable-threads was given.
3051 if test "${enable_threads+set}" = set; then
3052 enableval="$enable_threads"
3057 case "$enableval" in
3058 yes) ENABLE_THREADS=1
3060 no) ENABLE_THREADS=0
3062 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3063 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3064 { (exit 1); exit 1; }; } ;;
3067 cat >>confdefs.h <<_ACEOF
3068 #define ENABLE_THREADS $ENABLE_THREADS
3073 # Check whether --enable-targets or --disable-targets was given.
3074 if test "${enable_targets+set}" = set; then
3075 enableval="$enable_targets"
3080 case "$enableval" in
3081 all) TARGETS_TO_BUILD="X86 Sparc SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3083 case "$llvm_cv_target_arch" in
3084 x86) TARGETS_TO_BUILD="X86" ;;
3085 x86_64) TARGETS_TO_BUILD="X86" ;;
3086 Sparc) TARGETS_TO_BUILD="Sparc SparcV9" ;;
3087 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3088 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3089 IA64) TARGETS_TO_BUILD="IA64" ;;
3090 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3091 echo "$as_me: error: Can not set target to build" >&2;}
3092 { (exit 1); exit 1; }; } ;;
3095 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3097 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3098 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3099 sparc) TARGETS_TO_BUILD="Sparc SparcV9 $TARGETS_TO_BUILD" ;;
3100 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3101 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3102 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3103 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3104 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3105 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3106 { (exit 1); exit 1; }; } ;;
3111 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3112 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3116 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3117 if test "${with_llvmgccdir+set}" = set; then
3118 withval="$with_llvmgccdir"
3124 default) WITH_LLVMGCCDIR=default ;;
3125 /*) WITH_LLVMGCCDIR=$withval ;;
3126 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3127 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3128 { (exit 1); exit 1; }; } ;;
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3139 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3140 # On Suns, sometimes $CPP names a directory.
3141 if test -n "$CPP" && test -d "$CPP"; then
3144 if test -z "$CPP"; then
3145 if test "${ac_cv_prog_CPP+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 # Double quotes because CPP needs to be expanded
3149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3152 for ac_c_preproc_warn_flag in '' yes
3154 # Use a header file that comes with gcc, so configuring glibc
3155 # with a fresh cross-compiler works.
3156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157 # <limits.h> exists even on freestanding compilers.
3158 # On the NeXT, cc -E runs the code through the compiler's parser,
3159 # not just through cpp. "Syntax error" is here to catch this case.
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3167 # include <limits.h>
3169 # include <assert.h>
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev/null; then
3181 if test -s conftest.err; then
3182 ac_cpp_err=$ac_c_preproc_warn_flag
3183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3190 if test -z "$ac_cpp_err"; then
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 # Broken: fails on valid input.
3199 rm -f conftest.err conftest.$ac_ext
3201 # OK, works on sane cases. Now check whether non-existent headers
3202 # can be detected and how.
3203 cat >conftest.$ac_ext <<_ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3209 #include <ac_nonexistent.h>
3211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3214 grep -v '^ *+' conftest.er1 >conftest.err
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } >/dev/null; then
3219 if test -s conftest.err; then
3220 ac_cpp_err=$ac_c_preproc_warn_flag
3221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3228 if test -z "$ac_cpp_err"; then
3229 # Broken: success on invalid input.
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3235 # Passes both tests.
3239 rm -f conftest.err conftest.$ac_ext
3242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3243 rm -f conftest.err conftest.$ac_ext
3244 if $ac_preproc_ok; then
3256 echo "$as_me:$LINENO: result: $CPP" >&5
3257 echo "${ECHO_T}$CPP" >&6
3259 for ac_c_preproc_warn_flag in '' yes
3261 # Use a header file that comes with gcc, so configuring glibc
3262 # with a fresh cross-compiler works.
3263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3264 # <limits.h> exists even on freestanding compilers.
3265 # On the NeXT, cc -E runs the code through the compiler's parser,
3266 # not just through cpp. "Syntax error" is here to catch this case.
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3274 # include <limits.h>
3276 # include <assert.h>
3280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3283 grep -v '^ *+' conftest.er1 >conftest.err
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } >/dev/null; then
3288 if test -s conftest.err; then
3289 ac_cpp_err=$ac_c_preproc_warn_flag
3290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297 if test -z "$ac_cpp_err"; then
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 # Broken: fails on valid input.
3306 rm -f conftest.err conftest.$ac_ext
3308 # OK, works on sane cases. Now check whether non-existent headers
3309 # can be detected and how.
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 #include <ac_nonexistent.h>
3318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev/null; then
3326 if test -s conftest.err; then
3327 ac_cpp_err=$ac_c_preproc_warn_flag
3328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3335 if test -z "$ac_cpp_err"; then
3336 # Broken: success on invalid input.
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 # Passes both tests.
3346 rm -f conftest.err conftest.$ac_ext
3349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350 rm -f conftest.err conftest.$ac_ext
3351 if $ac_preproc_ok; then
3354 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3355 See \`config.log' for more details." >&5
3356 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3357 See \`config.log' for more details." >&2;}
3358 { (exit 1); exit 1; }; }
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_CC+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 if test -n "$CC"; then
3403 echo "$as_me:$LINENO: result: $CC" >&5
3404 echo "${ECHO_T}$CC" >&6
3406 echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3410 test -n "$CC" && break
3413 if test -z "$CC"; then
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_CC="$ac_prog"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3446 echo "${ECHO_T}$ac_ct_CC" >&6
3448 echo "$as_me:$LINENO: result: no" >&5
3449 echo "${ECHO_T}no" >&6
3452 test -n "$ac_ct_CC" && break
3459 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3460 See \`config.log' for more details." >&5
3461 echo "$as_me: error: no acceptable C compiler found in \$PATH
3462 See \`config.log' for more details." >&2;}
3463 { (exit 1); exit 1; }; }
3465 # Provide some information about the compiler.
3466 echo "$as_me:$LINENO:" \
3467 "checking for C compiler version" >&5
3468 ac_compiler=`set X $ac_compile; echo $2`
3469 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3470 (eval $ac_compiler --version </dev/null >&5) 2>&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }
3474 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3475 (eval $ac_compiler -v </dev/null >&5) 2>&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }
3479 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3480 (eval $ac_compiler -V </dev/null >&5) 2>&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }
3485 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3486 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3487 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3512 grep -v '^ *+' conftest.er1 >conftest.err
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3541 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3542 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3543 GCC=`test $ac_compiler_gnu = yes && echo yes`
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3547 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3548 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3549 if test "${ac_cv_prog_cc_g+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3598 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3599 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3600 if test "$ac_test_CFLAGS" = set; then
3601 CFLAGS=$ac_save_CFLAGS
3602 elif test $ac_cv_prog_cc_g = yes; then
3603 if test "$GCC" = yes; then
3609 if test "$GCC" = yes; then
3615 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3616 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3617 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 ac_cv_prog_cc_stdc=no
3622 cat >conftest.$ac_ext <<_ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3630 #include <sys/types.h>
3631 #include <sys/stat.h>
3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3633 struct buf { int x; };
3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635 static char *e (p, i)
3641 static char *f (char * (*g) (char **, int), char **p, ...)
3646 s = g (p, va_arg (v,int));
3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3652 function prototypes and stuff, but not '\xHH' hex character constants.
3653 These don't provoke an error unfortunately, instead are silently treated
3654 as 'x'. The following induces an error, until -std1 is added to get
3655 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3656 array size at least. It's necessary to write '\x00'==0 to get something
3657 that's true only with -std1. */
3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3660 int test (int i, double x);
3661 struct s1 {int (*f) (int a);};
3662 struct s2 {int (*f) (double a);};
3663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3669 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3674 # Don't try gcc -ansi; that turns off useful extensions and
3675 # breaks some systems' header files.
3676 # AIX -qlanglvl=ansi
3677 # Ultrix and OSF/1 -std1
3678 # HP-UX 10.20 and later -Ae
3679 # HP-UX older versions -Aa -D_HPUX_SOURCE
3680 # SVR4 -Xc -D__EXTENSIONS__
3681 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3683 CC="$ac_save_CC $ac_arg"
3684 rm -f conftest.$ac_objext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686 (eval $ac_compile) 2>conftest.er1
3688 grep -v '^ *+' conftest.er1 >conftest.err
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag"
3694 || test ! -s conftest.err'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3706 ac_cv_prog_cc_stdc=$ac_arg
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3713 rm -f conftest.err conftest.$ac_objext
3715 rm -f conftest.$ac_ext conftest.$ac_objext
3720 case "x$ac_cv_prog_cc_stdc" in
3722 echo "$as_me:$LINENO: result: none needed" >&5
3723 echo "${ECHO_T}none needed" >&6 ;;
3725 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3726 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3727 CC="$CC $ac_cv_prog_cc_stdc" ;;
3730 # Some people use a C++ compiler to compile C. Since we use `exit',
3731 # in C++ we need to declare it. In case someone uses the same compiler
3732 # for both compiling C and C++ we need to have the C++ compiler decide
3733 # the declaration of exit, since it's the most demanding environment.
3734 cat >conftest.$ac_ext <<_ACEOF
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>conftest.er1
3743 grep -v '^ *+' conftest.er1 >conftest.err
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -z "$ac_c_werror_flag"
3749 || test ! -s conftest.err'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; } &&
3755 { ac_try='test -s conftest.$ac_objext'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 for ac_declaration in \
3763 'extern "C" void std::exit (int) throw (); using std::exit;' \
3764 'extern "C" void std::exit (int); using std::exit;' \
3765 'extern "C" void exit (int) throw ();' \
3766 'extern "C" void exit (int);' \
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 cat >conftest.$ac_ext <<_ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest.$ac_objext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3861 if test -n "$ac_declaration"; then
3862 echo '#ifdef __cplusplus' >>confdefs.h
3863 echo $ac_declaration >>confdefs.h
3864 echo '#endif' >>confdefs.h
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880 ac_cpp='$CXXCPP $CPPFLAGS'
3881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3884 if test -n "$ac_tool_prefix"; then
3885 for ac_prog in $CCC g++
3887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3889 echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891 if test "${ac_cv_prog_CXX+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 if test -n "$CXX"; then
3895 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 if test -n "$CXX"; then
3915 echo "$as_me:$LINENO: result: $CXX" >&5
3916 echo "${ECHO_T}$CXX" >&6
3918 echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6
3922 test -n "$CXX" && break
3925 if test -z "$CXX"; then
3927 for ac_prog in $CCC g++
3929 # Extract the first word of "$ac_prog", so it can be a program name with args.
3930 set dummy $ac_prog; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 if test -n "$ac_ct_CXX"; then
3937 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_ac_ct_CXX="$ac_prog"
3947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3956 if test -n "$ac_ct_CXX"; then
3957 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3958 echo "${ECHO_T}$ac_ct_CXX" >&6
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3964 test -n "$ac_ct_CXX" && break
3966 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3972 # Provide some information about the compiler.
3973 echo "$as_me:$LINENO:" \
3974 "checking for C++ compiler version" >&5
3975 ac_compiler=`set X $ac_compile; echo $2`
3976 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3977 (eval $ac_compiler --version </dev/null >&5) 2>&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }
3981 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3982 (eval $ac_compiler -v </dev/null >&5) 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }
3986 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3987 (eval $ac_compiler -V </dev/null >&5) 2>&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }
3992 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3993 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3994 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 cat >conftest.$ac_ext <<_ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>conftest.er1
4019 grep -v '^ *+' conftest.er1 >conftest.err
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_cxx_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4048 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4049 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4050 GXX=`test $ac_compiler_gnu = yes && echo yes`
4051 ac_test_CXXFLAGS=${CXXFLAGS+set}
4052 ac_save_CXXFLAGS=$CXXFLAGS
4054 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4055 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4056 if test "${ac_cv_prog_cxx_g+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 cat >conftest.$ac_ext <<_ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4074 rm -f conftest.$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_cxx_werror_flag"
4084 || test ! -s conftest.err'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 ac_cv_prog_cxx_g=yes
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4105 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4106 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4107 if test "$ac_test_CXXFLAGS" = set; then
4108 CXXFLAGS=$ac_save_CXXFLAGS
4109 elif test $ac_cv_prog_cxx_g = yes; then
4110 if test "$GXX" = yes; then
4116 if test "$GXX" = yes; then
4122 for ac_declaration in \
4124 'extern "C" void std::exit (int) throw (); using std::exit;' \
4125 'extern "C" void std::exit (int); using std::exit;' \
4126 'extern "C" void exit (int) throw ();' \
4127 'extern "C" void exit (int);' \
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_cxx_werror_flag"
4156 || test ! -s conftest.err'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4191 rm -f conftest.$ac_objext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>conftest.er1
4195 grep -v '^ *+' conftest.er1 >conftest.err
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_cxx_werror_flag"
4201 || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4222 if test -n "$ac_declaration"; then
4223 echo '#ifdef __cplusplus' >>confdefs.h
4224 echo $ac_declaration >>confdefs.h
4225 echo '#endif' >>confdefs.h
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234 echo "$as_me:$LINENO: checking " >&5
4235 echo $ECHO_N "checking ... $ECHO_C" >&6
4236 if test "${ac_cv_has_flex+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 for ac_prog in flex lex
4241 # Extract the first word of "$ac_prog", so it can be a program name with args.
4242 set dummy $ac_prog; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_LEX+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 if test -n "$LEX"; then
4249 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_LEX="$ac_prog"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 if test -n "$LEX"; then
4269 echo "$as_me:$LINENO: result: $LEX" >&5
4270 echo "${ECHO_T}$LEX" >&6
4272 echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4276 test -n "$LEX" && break
4278 test -n "$LEX" || LEX=":"
4280 if test -z "$LEXLIB"
4282 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4283 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4284 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 ac_check_lib_save_LIBS=$LIBS
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4296 /* Override any gcc2 internal prototype to avoid an error. */
4300 /* We use char because int might match the return type of a gcc2
4301 builtin and then its argument prototype would still apply. */
4311 rm -f conftest.$ac_objext conftest$ac_exeext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4313 (eval $ac_link) 2>conftest.er1
4315 grep -v '^ *+' conftest.er1 >conftest.err
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } &&
4320 { ac_try='test -z "$ac_c_werror_flag"
4321 || test ! -s conftest.err'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; } &&
4327 { ac_try='test -s conftest$ac_exeext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 ac_cv_lib_fl_yywrap=yes
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 ac_cv_lib_fl_yywrap=no
4340 rm -f conftest.err conftest.$ac_objext \
4341 conftest$ac_exeext conftest.$ac_ext
4342 LIBS=$ac_check_lib_save_LIBS
4344 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4345 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4346 if test $ac_cv_lib_fl_yywrap = yes; then
4349 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4350 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4351 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 ac_check_lib_save_LIBS=$LIBS
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4363 /* Override any gcc2 internal prototype to avoid an error. */
4367 /* We use char because int might match the return type of a gcc2
4368 builtin and then its argument prototype would still apply. */
4378 rm -f conftest.$ac_objext conftest$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380 (eval $ac_link) 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag"
4388 || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try='test -s conftest$ac_exeext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_cv_lib_l_yywrap=yes
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 ac_cv_lib_l_yywrap=no
4407 rm -f conftest.err conftest.$ac_objext \
4408 conftest$ac_exeext conftest.$ac_ext
4409 LIBS=$ac_check_lib_save_LIBS
4411 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4412 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4413 if test $ac_cv_lib_l_yywrap = yes; then
4421 if test "x$LEX" != "x:"; then
4422 echo "$as_me:$LINENO: checking lex output file root" >&5
4423 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4424 if test "${ac_cv_prog_lex_root+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 # The minimal lex program is just a single line: %%. But some broken lexes
4428 # (Solaris, I think it was) want two %% lines, so accommodate them.
4429 cat >conftest.l <<_ACEOF
4433 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4434 (eval $LEX conftest.l) 2>&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }
4438 if test -f lex.yy.c; then
4439 ac_cv_prog_lex_root=lex.yy
4440 elif test -f lexyy.c; then
4441 ac_cv_prog_lex_root=lexyy
4443 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4444 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4445 { (exit 1); exit 1; }; }
4448 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4449 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4451 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4453 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4454 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4455 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 # POSIX says lex can declare yytext either as a pointer or an array; the
4459 # default is implementation-dependent. Figure out which it is, since
4460 # not all implementations provide the %pointer and %array declarations.
4461 ac_cv_prog_lex_yytext_pointer=no
4462 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4464 LIBS="$LIBS $LEXLIB"
4465 cat >conftest.$ac_ext <<_ACEOF
4466 `cat $LEX_OUTPUT_ROOT.c`
4468 rm -f conftest.$ac_objext conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>conftest.er1
4472 grep -v '^ *+' conftest.er1 >conftest.err
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -z "$ac_c_werror_flag"
4478 || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest$ac_exeext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_cv_prog_lex_yytext_pointer=yes
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4496 rm -f conftest.err conftest.$ac_objext \
4497 conftest$ac_exeext conftest.$ac_ext
4499 rm -f "${LEX_OUTPUT_ROOT}.c"
4502 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4503 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4504 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4506 cat >>confdefs.h <<\_ACEOF
4507 #define YYTEXT_POINTER 1
4515 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4516 echo "${ECHO_T}$ac_cv_has_flex" >&6
4517 if test "$LEX" != "flex"; then
4518 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4519 echo "$as_me: error: flex not found but required" >&2;}
4520 { (exit 1); exit 1; }; }
4526 echo "$as_me:$LINENO: checking " >&5
4527 echo $ECHO_N "checking ... $ECHO_C" >&6
4528 if test "${llvm_cv_has_bison+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 for ac_prog in 'bison -y' byacc
4533 # Extract the first word of "$ac_prog", so it can be a program name with args.
4534 set dummy $ac_prog; ac_word=$2
4535 echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537 if test "${ac_cv_prog_YACC+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 if test -n "$YACC"; then
4541 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550 ac_cv_prog_YACC="$ac_prog"
4551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 YACC=$ac_cv_prog_YACC
4560 if test -n "$YACC"; then
4561 echo "$as_me:$LINENO: result: $YACC" >&5
4562 echo "${ECHO_T}$YACC" >&6
4564 echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6
4568 test -n "$YACC" && break
4570 test -n "$YACC" || YACC="yacc"
4573 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4574 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4575 if test "$YACC" != "bison -y"; then
4576 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4577 echo "$as_me: error: bison not found but required" >&2;}
4578 { (exit 1); exit 1; }; }
4584 echo "$as_me:$LINENO: checking for GNU make" >&5
4585 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4586 if test "${llvm_cv_gnu_make_command+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 llvm_cv_gnu_make_command=''
4590 for a in "$MAKE" make gmake gnumake ; do
4591 if test -z "$a" ; then continue ; fi ;
4592 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4594 llvm_cv_gnu_make_command=$a ;
4599 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4600 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4601 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4605 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4606 echo "${ECHO_T}\"Not found\"" >&6;
4610 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4611 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4613 if test "$LN_S" = "ln -s"; then
4614 echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6
4617 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4618 echo "${ECHO_T}no, using $LN_S" >&6
4621 # Extract the first word of "cmp", so it can be a program name with args.
4622 set dummy cmp; ac_word=$2
4623 echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4625 if test "${ac_cv_path_CMP+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4653 if test -n "$CMP"; then
4654 echo "$as_me:$LINENO: result: $CMP" >&5
4655 echo "${ECHO_T}$CMP" >&6
4657 echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4661 # Extract the first word of "cp", so it can be a program name with args.
4662 set dummy cp; ac_word=$2
4663 echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665 if test "${ac_cv_path_CP+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4693 if test -n "$CP"; then
4694 echo "$as_me:$LINENO: result: $CP" >&5
4695 echo "${ECHO_T}$CP" >&6
4697 echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6
4701 # Extract the first word of "date", so it can be a program name with args.
4702 set dummy date; ac_word=$2
4703 echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705 if test "${ac_cv_path_DATE+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4731 DATE=$ac_cv_path_DATE
4733 if test -n "$DATE"; then
4734 echo "$as_me:$LINENO: result: $DATE" >&5
4735 echo "${ECHO_T}$DATE" >&6
4737 echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6
4741 # Extract the first word of "find", so it can be a program name with args.
4742 set dummy find; ac_word=$2
4743 echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745 if test "${ac_cv_path_FIND+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4771 FIND=$ac_cv_path_FIND
4773 if test -n "$FIND"; then
4774 echo "$as_me:$LINENO: result: $FIND" >&5
4775 echo "${ECHO_T}$FIND" >&6
4777 echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4781 # Extract the first word of "grep", so it can be a program name with args.
4782 set dummy grep; ac_word=$2
4783 echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785 if test "${ac_cv_path_GREP+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4811 GREP=$ac_cv_path_GREP
4813 if test -n "$GREP"; then
4814 echo "$as_me:$LINENO: result: $GREP" >&5
4815 echo "${ECHO_T}$GREP" >&6
4817 echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6
4821 # Extract the first word of "mkdir", so it can be a program name with args.
4822 set dummy mkdir; ac_word=$2
4823 echo "$as_me:$LINENO: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4825 if test "${ac_cv_path_MKDIR+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4851 MKDIR=$ac_cv_path_MKDIR
4853 if test -n "$MKDIR"; then
4854 echo "$as_me:$LINENO: result: $MKDIR" >&5
4855 echo "${ECHO_T}$MKDIR" >&6
4857 echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6
4861 # Extract the first word of "mv", so it can be a program name with args.
4862 set dummy mv; ac_word=$2
4863 echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865 if test "${ac_cv_path_MV+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4893 if test -n "$MV"; then
4894 echo "$as_me:$LINENO: result: $MV" >&5
4895 echo "${ECHO_T}$MV" >&6
4897 echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6
4901 if test -n "$ac_tool_prefix"; then
4902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_RANLIB+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$RANLIB"; then
4910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 RANLIB=$ac_cv_prog_RANLIB
4929 if test -n "$RANLIB"; then
4930 echo "$as_me:$LINENO: result: $RANLIB" >&5
4931 echo "${ECHO_T}$RANLIB" >&6
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4938 if test -z "$ac_cv_prog_RANLIB"; then
4939 ac_ct_RANLIB=$RANLIB
4940 # Extract the first word of "ranlib", so it can be a program name with args.
4941 set dummy ranlib; ac_word=$2
4942 echo "$as_me:$LINENO: checking for $ac_word" >&5
4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 if test -n "$ac_ct_RANLIB"; then
4948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_ac_ct_RANLIB="ranlib"
4958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4968 if test -n "$ac_ct_RANLIB"; then
4969 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4970 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4972 echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4976 RANLIB=$ac_ct_RANLIB
4978 RANLIB="$ac_cv_prog_RANLIB"
4981 # Extract the first word of "rm", so it can be a program name with args.
4982 set dummy rm; ac_word=$2
4983 echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985 if test "${ac_cv_path_RM+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5013 if test -n "$RM"; then
5014 echo "$as_me:$LINENO: result: $RM" >&5
5015 echo "${ECHO_T}$RM" >&6
5017 echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6
5021 # Extract the first word of "sed", so it can be a program name with args.
5022 set dummy sed; ac_word=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_path_SED+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5053 if test -n "$SED"; then
5054 echo "$as_me:$LINENO: result: $SED" >&5
5055 echo "${ECHO_T}$SED" >&6
5057 echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6
5061 # Extract the first word of "tar", so it can be a program name with args.
5062 set dummy tar; ac_word=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_path_TAR+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5093 if test -n "$TAR"; then
5094 echo "$as_me:$LINENO: result: $TAR" >&5
5095 echo "${ECHO_T}$TAR" >&6
5097 echo "$as_me:$LINENO: result: no" >&5
5098 echo "${ECHO_T}no" >&6
5101 # Extract the first word of "Graphviz", so it can be a program name with args.
5102 set dummy Graphviz; ac_word=$2
5103 echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5131 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5133 if test -n "$GRAPHVIZ"; then
5134 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5135 echo "${ECHO_T}$GRAPHVIZ" >&6
5137 echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6
5141 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5143 cat >>confdefs.h <<\_ACEOF
5144 #define HAVE_GRAPHVIZ 1
5148 cat >>confdefs.h <<_ACEOF
5149 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5153 # Extract the first word of "gv", so it can be a program name with args.
5154 set dummy gv; ac_word=$2
5155 echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157 if test "${ac_cv_path_GV+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5185 if test -n "$GV"; then
5186 echo "$as_me:$LINENO: result: $GV" >&5
5187 echo "${ECHO_T}$GV" >&6
5189 echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5193 if test "$GV" != "echo gv" ; then
5195 cat >>confdefs.h <<\_ACEOF
5200 cat >>confdefs.h <<_ACEOF
5201 #define LLVM_PATH_GV "$GV"
5206 # Find a good install program. We prefer a C program (faster),
5207 # so one script is as good as another. But avoid the broken or
5208 # incompatible versions:
5209 # SysV /etc/install, /usr/sbin/install
5210 # SunOS /usr/etc/install
5211 # IRIX /sbin/install
5213 # AmigaOS /C/install, which installs bootblocks on floppy discs
5214 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5215 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5216 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5217 # OS/2's system install, which has a completely different semantic
5218 # ./install, which can be erroneously created by make from ./install.sh.
5219 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5220 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5221 if test -z "$INSTALL"; then
5222 if test "${ac_cv_path_install+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 test -z "$as_dir" && as_dir=.
5230 # Account for people who put trailing slashes in PATH elements.
5232 ./ | .// | /cC/* | \
5233 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5234 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5237 # OSF1 and SCO ODT 3.0 have their own names for install.
5238 # Don't use installbsd from OSF since it installs stuff as root
5240 for ac_prog in ginstall scoinst install; do
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5243 if test $ac_prog = install &&
5244 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5245 # AIX install. It has an incompatible calling convention.
5247 elif test $ac_prog = install &&
5248 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5249 # program-specific install script used by HP pwplus--don't use.
5252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5264 if test "${ac_cv_path_install+set}" = set; then
5265 INSTALL=$ac_cv_path_install
5267 # As a last resort, use the slow shell script. We don't cache a
5268 # path for INSTALL within a source directory, because that will
5269 # break other packages using the cache if that directory is
5270 # removed, or if the path is relative.
5271 INSTALL=$ac_install_sh
5274 echo "$as_me:$LINENO: result: $INSTALL" >&5
5275 echo "${ECHO_T}$INSTALL" >&6
5277 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5278 # It thinks the first close brace ends the variable substitution.
5279 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5281 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5283 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5286 # Extract the first word of "bzip2", so it can be a program name with args.
5287 set dummy bzip2; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_path_BZIP2+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5316 BZIP2=$ac_cv_path_BZIP2
5318 if test -n "$BZIP2"; then
5319 echo "$as_me:$LINENO: result: $BZIP2" >&5
5320 echo "${ECHO_T}$BZIP2" >&6
5322 echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6
5326 # Extract the first word of "dot", so it can be a program name with args.
5327 set dummy dot; ac_word=$2
5328 echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330 if test "${ac_cv_path_DOT+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5358 if test -n "$DOT"; then
5359 echo "$as_me:$LINENO: result: $DOT" >&5
5360 echo "${ECHO_T}$DOT" >&6
5362 echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5366 # Extract the first word of "doxygen", so it can be a program name with args.
5367 set dummy doxygen; ac_word=$2
5368 echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5396 DOXYGEN=$ac_cv_path_DOXYGEN
5398 if test -n "$DOXYGEN"; then
5399 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5400 echo "${ECHO_T}$DOXYGEN" >&6
5402 echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6
5406 # Extract the first word of "etags", so it can be a program name with args.
5407 set dummy etags; ac_word=$2
5408 echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410 if test "${ac_cv_path_ETAGS+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5436 ETAGS=$ac_cv_path_ETAGS
5438 if test -n "$ETAGS"; then
5439 echo "$as_me:$LINENO: result: $ETAGS" >&5
5440 echo "${ECHO_T}$ETAGS" >&6
5442 echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6
5446 # Extract the first word of "groff", so it can be a program name with args.
5447 set dummy groff; ac_word=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_path_GROFF+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5476 GROFF=$ac_cv_path_GROFF
5478 if test -n "$GROFF"; then
5479 echo "$as_me:$LINENO: result: $GROFF" >&5
5480 echo "${ECHO_T}$GROFF" >&6
5482 echo "$as_me:$LINENO: result: no" >&5
5483 echo "${ECHO_T}no" >&6
5486 # Extract the first word of "gzip", so it can be a program name with args.
5487 set dummy gzip; ac_word=$2
5488 echo "$as_me:$LINENO: checking for $ac_word" >&5
5489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5490 if test "${ac_cv_path_GZIP+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5516 GZIP=$ac_cv_path_GZIP
5518 if test -n "$GZIP"; then
5519 echo "$as_me:$LINENO: result: $GZIP" >&5
5520 echo "${ECHO_T}$GZIP" >&6
5522 echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6
5526 # Extract the first word of "pod2html", so it can be a program name with args.
5527 set dummy pod2html; ac_word=$2
5528 echo "$as_me:$LINENO: checking for $ac_word" >&5
5529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5530 if test "${ac_cv_path_POD2HTML+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5556 POD2HTML=$ac_cv_path_POD2HTML
5558 if test -n "$POD2HTML"; then
5559 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5560 echo "${ECHO_T}$POD2HTML" >&6
5562 echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5566 # Extract the first word of "pod2man", so it can be a program name with args.
5567 set dummy pod2man; ac_word=$2
5568 echo "$as_me:$LINENO: checking for $ac_word" >&5
5569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570 if test "${ac_cv_path_POD2MAN+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5596 POD2MAN=$ac_cv_path_POD2MAN
5598 if test -n "$POD2MAN"; then
5599 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5600 echo "${ECHO_T}$POD2MAN" >&6
5602 echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6
5606 # Extract the first word of "runtest", so it can be a program name with args.
5607 set dummy runtest; ac_word=$2
5608 echo "$as_me:$LINENO: checking for $ac_word" >&5
5609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610 if test "${ac_cv_path_RUNTEST+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5636 RUNTEST=$ac_cv_path_RUNTEST
5638 if test -n "$RUNTEST"; then
5639 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5640 echo "${ECHO_T}$RUNTEST" >&6
5642 echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5648 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5649 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5651 # Check whether --with-tclinclude or --without-tclinclude was given.
5652 if test "${with_tclinclude+set}" = set; then
5653 withval="$with_tclinclude"
5654 with_tclinclude=${withval}
5658 if test "${ac_cv_path_tclsh+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 if test x"${with_tclinclude}" != x ; then
5663 if test -f ${with_tclinclude}/tclsh ; then
5664 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5665 elif test -f ${with_tclinclude}/src/tclsh ; then
5666 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5668 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5669 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5670 { (exit 1); exit 1; }; }
5674 if test x"${ac_cv_path_tclsh}" = x ; then
5675 echo "$as_me:$LINENO: result: none" >&5
5676 echo "${ECHO_T}none" >&6
5677 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
5679 # Extract the first word of "$ac_prog", so it can be a program name with args.
5680 set dummy $ac_prog; ac_word=$2
5681 echo "$as_me:$LINENO: checking for $ac_word" >&5
5682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5683 if test "${ac_cv_path_TCLSH+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 TCLSH=$ac_cv_path_TCLSH
5710 if test -n "$TCLSH"; then
5711 echo "$as_me:$LINENO: result: $TCLSH" >&5
5712 echo "${ECHO_T}$TCLSH" >&6
5714 echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6
5718 test -n "$TCLSH" && break
5721 if test x"${TCLSH}" = x ; then
5722 ac_cv_path_tclsh='';
5724 ac_cv_path_tclsh="${TCLSH}";
5727 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5728 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5729 TCLSH="${ac_cv_path_tclsh}"
5735 # Extract the first word of "zip", so it can be a program name with args.
5736 set dummy zip; ac_word=$2
5737 echo "$as_me:$LINENO: checking for $ac_word" >&5
5738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5739 if test "${ac_cv_path_ZIP+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5767 if test -n "$ZIP"; then
5768 echo "$as_me:$LINENO: result: $ZIP" >&5
5769 echo "${ECHO_T}$ZIP" >&6
5771 echo "$as_me:$LINENO: result: no" >&5
5772 echo "${ECHO_T}no" >&6
5776 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5777 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5778 if test "${llvm_cv_link_use_r+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788 CFLAGS="$CFLAGS -Wl,-R."
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5799 int main() { return 0; }
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806 (eval $ac_link) 2>conftest.er1
5808 grep -v '^ *+' conftest.er1 >conftest.err
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag"
5814 || test ! -s conftest.err'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; } &&
5820 { ac_try='test -s conftest$ac_exeext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 llvm_cv_link_use_r=yes
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 llvm_cv_link_use_r=no
5833 rm -f conftest.err conftest.$ac_objext \
5834 conftest$ac_exeext conftest.$ac_ext
5837 ac_cpp='$CPP $CPPFLAGS'
5838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5844 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5845 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5846 if test "$llvm_cv_link_use_r" = yes ; then
5848 cat >>confdefs.h <<\_ACEOF
5849 #define HAVE_LINK_R 1
5857 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5858 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5859 if test "${ac_cv_c_const+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 cat >conftest.$ac_ext <<_ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5872 /* FIXME: Include the comments suggested by Paul. */
5874 /* Ultrix mips cc rejects this. */
5875 typedef int charset[2];
5877 /* SunOS 4.1.1 cc rejects this. */
5878 char const *const *ccp;
5880 /* NEC SVR4.0.2 mips cc rejects this. */
5881 struct point {int x, y;};
5882 static struct point const zero = {0,0};
5883 /* AIX XL C 1.02.0.0 rejects this.
5884 It does not let you subtract one const X* pointer from another in
5885 an arm of an if-expression whose if-part is not a constant
5887 const char *g = "string";
5888 ccp = &g + (g ? g-g : 0);
5889 /* HPUX 7.0 cc rejects these. */
5892 ccp = (char const *const *) p;
5893 { /* SCO 3.2v4 cc rejects this. */
5895 char const *s = 0 ? (char *) 0 : (char const *) 0;
5899 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5901 const int *foo = &x[0];
5904 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5905 typedef const int *iptr;
5909 { /* AIX XL C 1.02.0.0 rejects this saying
5910 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5911 struct s { int j; const int *ap[3]; };
5912 struct s *b; b->j = 5;
5914 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5923 rm -f conftest.$ac_objext
5924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5925 (eval $ac_compile) 2>conftest.er1
5927 grep -v '^ *+' conftest.er1 >conftest.err
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -z "$ac_c_werror_flag"
5933 || test ! -s conftest.err'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest.$ac_objext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5954 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5955 echo "${ECHO_T}$ac_cv_c_const" >&6
5956 if test $ac_cv_c_const = no; then
5958 cat >>confdefs.h <<\_ACEOF
5965 echo "$as_me:$LINENO: checking for egrep" >&5
5966 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5967 if test "${ac_cv_prog_egrep+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5971 then ac_cv_prog_egrep='grep -E'
5972 else ac_cv_prog_egrep='egrep'
5975 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5976 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5977 EGREP=$ac_cv_prog_egrep
5980 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5982 if test "${ac_cv_header_stdc+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
6004 rm -f conftest.$ac_objext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006 (eval $ac_compile) 2>conftest.er1
6008 grep -v '^ *+' conftest.er1 >conftest.err
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } &&
6013 { ac_try='test -z "$ac_c_werror_flag"
6014 || test ! -s conftest.err'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try='test -s conftest.$ac_objext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 ac_cv_header_stdc=yes
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 ac_cv_header_stdc=no
6033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6035 if test $ac_cv_header_stdc = yes; then
6036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6037 cat >conftest.$ac_ext <<_ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047 $EGREP "memchr" >/dev/null 2>&1; then
6050 ac_cv_header_stdc=no
6056 if test $ac_cv_header_stdc = yes; then
6057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6058 cat >conftest.$ac_ext <<_ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068 $EGREP "free" >/dev/null 2>&1; then
6071 ac_cv_header_stdc=no
6077 if test $ac_cv_header_stdc = yes; then
6078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6079 if test "$cross_compiling" = yes; then
6082 cat >conftest.$ac_ext <<_ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6089 #if ((' ' & 0x0FF) == 0x020)
6090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6093 # define ISLOWER(c) \
6094 (('a' <= (c) && (c) <= 'i') \
6095 || ('j' <= (c) && (c) <= 'r') \
6096 || ('s' <= (c) && (c) <= 'z'))
6097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6105 for (i = 0; i < 256; i++)
6106 if (XOR (islower (i), ISLOWER (i))
6107 || toupper (i) != TOUPPER (i))
6112 rm -f conftest$ac_exeext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114 (eval $ac_link) 2>&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6125 echo "$as_me: program exited with status $ac_status" >&5
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6130 ac_cv_header_stdc=no
6132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6136 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6137 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6138 if test $ac_cv_header_stdc = yes; then
6140 cat >>confdefs.h <<\_ACEOF
6141 #define STDC_HEADERS 1
6152 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6153 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6154 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6155 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 cat >conftest.$ac_ext <<_ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 #include <sys/types.h>
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest.$ac_objext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 eval "$as_ac_Header=yes"
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 eval "$as_ac_Header=no"
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211 cat >>confdefs.h <<_ACEOF
6212 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6215 ac_header_dirent=$ac_hdr; break
6219 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6220 if test $ac_header_dirent = dirent.h; then
6221 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6222 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6223 if test "${ac_cv_search_opendir+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 ac_func_search_save_LIBS=$LIBS
6227 ac_cv_search_opendir=no
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6235 /* Override any gcc2 internal prototype to avoid an error. */
6239 /* We use char because int might match the return type of a gcc2
6240 builtin and then its argument prototype would still apply. */
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252 (eval $ac_link) 2>conftest.er1
6254 grep -v '^ *+' conftest.er1 >conftest.err
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag"
6260 || test ! -s conftest.err'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 ac_cv_search_opendir="none required"
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6278 rm -f conftest.err conftest.$ac_objext \
6279 conftest$ac_exeext conftest.$ac_ext
6280 if test "$ac_cv_search_opendir" = no; then
6281 for ac_lib in dir; do
6282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6283 cat >conftest.$ac_ext <<_ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6290 /* Override any gcc2 internal prototype to avoid an error. */
6294 /* We use char because int might match the return type of a gcc2
6295 builtin and then its argument prototype would still apply. */
6305 rm -f conftest.$ac_objext conftest$ac_exeext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307 (eval $ac_link) 2>conftest.er1
6309 grep -v '^ *+' conftest.er1 >conftest.err
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest$ac_exeext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_cv_search_opendir="-l$ac_lib"
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6334 rm -f conftest.err conftest.$ac_objext \
6335 conftest$ac_exeext conftest.$ac_ext
6338 LIBS=$ac_func_search_save_LIBS
6340 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6341 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6342 if test "$ac_cv_search_opendir" != no; then
6343 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6348 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6350 if test "${ac_cv_search_opendir+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 ac_func_search_save_LIBS=$LIBS
6354 ac_cv_search_opendir=no
6355 cat >conftest.$ac_ext <<_ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6362 /* Override any gcc2 internal prototype to avoid an error. */
6366 /* We use char because int might match the return type of a gcc2
6367 builtin and then its argument prototype would still apply. */
6377 rm -f conftest.$ac_objext conftest$ac_exeext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6379 (eval $ac_link) 2>conftest.er1
6381 grep -v '^ *+' conftest.er1 >conftest.err
6383 cat conftest.err >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } &&
6386 { ac_try='test -z "$ac_c_werror_flag"
6387 || test ! -s conftest.err'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; } &&
6393 { ac_try='test -s conftest$ac_exeext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 ac_cv_search_opendir="none required"
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6405 rm -f conftest.err conftest.$ac_objext \
6406 conftest$ac_exeext conftest.$ac_ext
6407 if test "$ac_cv_search_opendir" = no; then
6409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6410 cat >conftest.$ac_ext <<_ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6417 /* Override any gcc2 internal prototype to avoid an error. */
6421 /* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>conftest.er1
6436 grep -v '^ *+' conftest.er1 >conftest.err
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest$ac_exeext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_cv_search_opendir="-l$ac_lib"
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6461 rm -f conftest.err conftest.$ac_objext \
6462 conftest$ac_exeext conftest.$ac_ext
6465 LIBS=$ac_func_search_save_LIBS
6467 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6468 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6469 if test "$ac_cv_search_opendir" != no; then
6470 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6476 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6486 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6487 inttypes.h stdint.h unistd.h
6489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6490 echo "$as_me:$LINENO: checking for $ac_header" >&5
6491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 cat >conftest.$ac_ext <<_ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6501 $ac_includes_default
6503 #include <$ac_header>
6505 rm -f conftest.$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507 (eval $ac_compile) 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_c_werror_flag"
6515 || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest.$ac_objext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 eval "$as_ac_Header=yes"
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 eval "$as_ac_Header=no"
6534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6549 for ac_header in dlfcn.h
6551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6553 echo "$as_me:$LINENO: checking for $ac_header" >&5
6554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6561 # Is the header compilable?
6562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 $ac_includes_default
6571 #include <$ac_header>
6573 rm -f conftest.$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575 (eval $ac_compile) 2>conftest.er1
6577 grep -v '^ *+' conftest.er1 >conftest.err
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_c_werror_flag"
6583 || test ! -s conftest.err'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest.$ac_objext'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
6595 ac_header_compiler=yes
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ac_header_compiler=no
6602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6604 echo "${ECHO_T}$ac_header_compiler" >&6
6606 # Is the header present?
6607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6609 cat >conftest.$ac_ext <<_ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 #include <$ac_header>
6617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } >/dev/null; then
6625 if test -s conftest.err; then
6626 ac_cpp_err=$ac_c_preproc_warn_flag
6627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6634 if test -z "$ac_cpp_err"; then
6635 ac_header_preproc=yes
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6640 ac_header_preproc=no
6642 rm -f conftest.err conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6644 echo "${ECHO_T}$ac_header_preproc" >&6
6646 # So? What about this header?
6647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6653 ac_header_preproc=yes
6656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6663 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6670 ## ----------------------------------- ##
6671 ## Report this to llvmbugs@cs.uiuc.edu ##
6672 ## ----------------------------------- ##
6675 sed "s/^/$as_me: WARNING: /" >&2
6678 echo "$as_me:$LINENO: checking for $ac_header" >&5
6679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 eval "$as_ac_Header=\$ac_header_preproc"
6685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690 cat >>confdefs.h <<_ACEOF
6691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6698 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6699 if test "${enable_ltdl_install+set}" = set; then
6700 enableval="$enable_ltdl_install"
6706 if test x"${enable_ltdl_install-no}" != xno; then
6708 INSTALL_LTDL_FALSE='#'
6710 INSTALL_LTDL_TRUE='#'
6716 if test x"${enable_ltdl_convenience-no}" != xno; then
6717 CONVENIENCE_LTDL_TRUE=
6718 CONVENIENCE_LTDL_FALSE='#'
6720 CONVENIENCE_LTDL_TRUE='#'
6721 CONVENIENCE_LTDL_FALSE=
6725 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6726 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6728 libname_spec='lib$name'
6736 shlibpath_overrides_runpath=unknown
6738 dynamic_linker="$host_os ld.so"
6739 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6740 if test "$GCC" = yes; then
6741 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6742 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6743 # if the path contains ";" then we assume it to be the separator
6744 # otherwise default to the standard path separator (i.e. ":") - it is
6745 # assumed that no part of a normal pathname contains ";" but that should
6746 # okay in the real world where ";" in dirpaths is itself problematic.
6747 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6752 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6754 need_lib_prefix=unknown
6755 hardcode_into_libs=no
6757 # when you set need_version to no, make sure it does not cause -set_version
6758 # flags to be left without arguments
6759 need_version=unknown
6764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6765 shlibpath_var=LIBPATH
6767 # AIX 3 has no versioning support, so we append a major version to the name.
6768 soname_spec='${libname}${release}${shared_ext}$major'
6775 hardcode_into_libs=yes
6776 if test "$host_cpu" = ia64; then
6777 # AIX 5 supports IA64
6778 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6779 shlibpath_var=LD_LIBRARY_PATH
6781 # With GCC up to 2.95.x, collect2 would create an import file
6782 # for dependence libraries. The import file would start with
6783 # the line `#! .'. This would cause the generated library to
6784 # depend on `.', always an invalid library. This was fixed in
6785 # development snapshots of GCC prior to 3.0.
6787 aix4 | aix4.[01] | aix4.[01].*)
6788 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6790 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6797 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6798 # soname into executable. Probably we can add versioning support to
6799 # collect2, so additional links can be useful in future.
6800 if test "$aix_use_runtimelinking" = yes; then
6801 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6802 # instead of lib<name>.a to let people know that these are not
6803 # typical AIX shared libraries.
6804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6806 # We preserve .a as extension for shared libraries through AIX4.2
6807 # and later when we are not doing run time linking.
6808 library_names_spec='${libname}${release}.a $libname.a'
6809 soname_spec='${libname}${release}${shared_ext}$major'
6811 shlibpath_var=LIBPATH
6816 library_names_spec='$libname.ixlibrary $libname.a'
6817 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6818 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'
6822 library_names_spec='${libname}${shared_ext}'
6823 dynamic_linker="$host_os ld.so"
6824 shlibpath_var=LIBRARY_PATH
6830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6831 soname_spec='${libname}${release}${shared_ext}$major'
6832 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6833 shlibpath_var=LD_LIBRARY_PATH
6834 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6835 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6836 # the default ld.so.conf also contains /usr/contrib/lib and
6837 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6838 # libtool to hard-code these into programs
6841 cygwin* | mingw* | pw32*)
6842 version_type=windows
6847 case $GCC,$host_os in
6848 yes,cygwin* | yes,mingw* | yes,pw32*)
6849 library_names_spec='$libname.dll.a'
6850 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6851 postinstall_cmds='base_file=`basename \${file}`~
6852 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6853 dldir=$destdir/`dirname \$dlpath`~
6854 test -d \$dldir || mkdir -p \$dldir~
6855 $install_prog $dir/$dlname \$dldir/$dlname'
6856 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6857 dlpath=$dir/\$dldll~
6859 shlibpath_overrides_runpath=yes
6863 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6864 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6865 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6868 # MinGW DLLs use traditional 'lib' prefix
6869 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6870 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6871 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6872 # It is most probably a Windows format PATH printed by
6873 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6874 # path with ; separators, and with drive letters. We can handle the
6875 # drive letters (cygwin fileutils understands them), so leave them,
6876 # especially as we might pass files found there to a mingw objdump,
6877 # which wouldn't understand a cygwinified path. Ahh.
6878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6884 # pw32 DLLs use 'pw' prefix rather than 'lib'
6885 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6891 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6894 dynamic_linker='Win32 ld.exe'
6895 # FIXME: first we should search . and the directory the executable is in
6899 darwin* | rhapsody*)
6900 dynamic_linker="$host_os dyld"
6904 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6905 soname_spec='${libname}${release}${major}$shared_ext'
6906 shlibpath_overrides_runpath=yes
6907 shlibpath_var=DYLD_LIBRARY_PATH
6908 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6909 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6910 if test "$GCC" = yes; then
6911 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"`
6913 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6915 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6923 soname_spec='${libname}${release}${shared_ext}$major'
6924 shlibpath_var=LD_LIBRARY_PATH
6935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6936 soname_spec='${libname}${release}${shared_ext}$major'
6937 shlibpath_var=LD_LIBRARY_PATH
6938 shlibpath_overrides_runpath=no
6939 hardcode_into_libs=yes
6940 dynamic_linker='GNU ld.so'
6944 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6945 version_type=freebsd-$objformat
6946 case $version_type in
6948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6957 shlibpath_var=LD_LIBRARY_PATH
6960 shlibpath_overrides_runpath=yes
6962 freebsd3.01* | freebsdelf3.01*)
6963 shlibpath_overrides_runpath=yes
6964 hardcode_into_libs=yes
6967 shlibpath_overrides_runpath=no
6968 hardcode_into_libs=yes
6977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6978 soname_spec='${libname}${release}${shared_ext}$major'
6979 shlibpath_var=LD_LIBRARY_PATH
6980 hardcode_into_libs=yes
6983 hpux9* | hpux10* | hpux11*)
6984 # Give a soname corresponding to the major version so that dld.sl refuses to
6985 # link against other versions.
6992 hardcode_into_libs=yes
6993 dynamic_linker="$host_os dld.so"
6994 shlibpath_var=LD_LIBRARY_PATH
6995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6997 soname_spec='${libname}${release}${shared_ext}$major'
6998 if test "X$HPUX_IA64_MODE" = X32; then
6999 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7001 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7007 hardcode_into_libs=yes
7008 dynamic_linker="$host_os dld.sl"
7009 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7012 soname_spec='${libname}${release}${shared_ext}$major'
7013 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7018 dynamic_linker="$host_os dld.sl"
7019 shlibpath_var=SHLIB_PATH
7020 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7022 soname_spec='${libname}${release}${shared_ext}$major'
7025 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7026 postinstall_cmds='chmod 555 $lib'
7029 irix5* | irix6* | nonstopux*)
7031 nonstopux*) version_type=nonstopux ;;
7033 if test "$lt_cv_prog_gnu_ld" = yes; then
7041 soname_spec='${libname}${release}${shared_ext}$major'
7042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7044 irix5* | nonstopux*)
7048 case $LD in # libtool.m4 will add one of these switches to LD
7049 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7050 libsuff= shlibsuff= libmagic=32-bit;;
7051 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7052 libsuff=32 shlibsuff=N32 libmagic=N32;;
7053 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7054 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7055 *) libsuff= shlibsuff= libmagic=never-match;;
7059 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7060 shlibpath_overrides_runpath=no
7061 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7062 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7063 hardcode_into_libs=yes
7066 # No shared lib support for Linux oldld, aout, or coff.
7067 linux*oldld* | linux*aout* | linux*coff*)
7071 # This must be Linux ELF.
7076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7077 soname_spec='${libname}${release}${shared_ext}$major'
7078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7079 shlibpath_var=LD_LIBRARY_PATH
7080 shlibpath_overrides_runpath=no
7081 # This implies no fast_install, which is unacceptable.
7082 # Some rework will be needed to allow for fast_install
7083 # before this can be enabled.
7084 hardcode_into_libs=yes
7086 # Append ld.so.conf contents to the search path
7087 if test -f /etc/ld.so.conf; then
7088 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7089 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7092 # We used to test for /lib/ld.so.1 and disable shared libraries on
7093 # powerpc, because MkLinux only supported shared libraries with the
7094 # GNU dynamic linker. Since this was broken with cross compilers,
7095 # most powerpc-linux boxes support dynamic linking these days and
7096 # people can always --disable-shared, the test was removed, and we
7097 # assume the GNU/Linux dynamic linker is in use.
7098 dynamic_linker='GNU/Linux ld.so'
7105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7106 soname_spec='${libname}${release}${shared_ext}$major'
7107 shlibpath_var=LD_LIBRARY_PATH
7108 shlibpath_overrides_runpath=no
7109 hardcode_into_libs=yes
7110 dynamic_linker='GNU ld.so'
7117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7120 dynamic_linker='NetBSD (a.out) ld.so'
7122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7123 soname_spec='${libname}${release}${shared_ext}$major'
7124 dynamic_linker='NetBSD ld.elf_so'
7126 shlibpath_var=LD_LIBRARY_PATH
7127 shlibpath_overrides_runpath=yes
7128 hardcode_into_libs=yes
7133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7134 shlibpath_var=LD_LIBRARY_PATH
7135 shlibpath_overrides_runpath=yes
7142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7143 soname_spec='${libname}${release}${shared_ext}$major'
7144 shlibpath_var=LD_LIBRARY_PATH
7145 shlibpath_overrides_runpath=yes
7152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7154 shlibpath_var=LD_LIBRARY_PATH
7155 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7157 openbsd2.[89] | openbsd2.[89].*)
7158 shlibpath_overrides_runpath=no
7161 shlibpath_overrides_runpath=yes
7165 shlibpath_overrides_runpath=yes
7170 libname_spec='$name'
7173 library_names_spec='$libname${shared_ext} $libname.a'
7174 dynamic_linker='OS/2 ld.exe'
7175 shlibpath_var=LIBPATH
7178 osf3* | osf4* | osf5*)
7182 soname_spec='${libname}${release}${shared_ext}$major'
7183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7184 shlibpath_var=LD_LIBRARY_PATH
7185 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7186 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7191 soname_spec='${libname}${release}${shared_ext}$major'
7192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7193 shlibpath_var=LD_LIBRARY_PATH
7200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7201 soname_spec='${libname}${release}${shared_ext}$major'
7202 shlibpath_var=LD_LIBRARY_PATH
7203 shlibpath_overrides_runpath=yes
7204 hardcode_into_libs=yes
7205 # ldd complains unless libraries are executable
7206 postinstall_cmds='chmod +x $lib'
7211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7212 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7213 shlibpath_var=LD_LIBRARY_PATH
7214 shlibpath_overrides_runpath=yes
7215 if test "$with_gnu_ld" = yes; then
7221 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7224 soname_spec='${libname}${release}${shared_ext}$major'
7225 shlibpath_var=LD_LIBRARY_PATH
7226 case $host_vendor in
7228 shlibpath_overrides_runpath=no
7230 export_dynamic_flag_spec='${wl}-Blargedynsym'
7231 runpath_var=LD_RUN_PATH
7239 shlibpath_overrides_runpath=no
7240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7246 if test -d /usr/nec ;then
7248 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7249 soname_spec='$libname${shared_ext}.$major'
7250 shlibpath_var=LD_LIBRARY_PATH
7256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7257 soname_spec='${libname}${release}${shared_ext}$major'
7258 shlibpath_var=LD_LIBRARY_PATH
7265 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7266 echo "${ECHO_T}$dynamic_linker" >&6
7267 test "$dynamic_linker" = no && can_build_shared=no
7270 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7271 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7272 if test "${libltdl_cv_shlibext+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 eval libltdl_cv_shlibext=$shrext_cmds
7280 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7281 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7282 if test -n "$libltdl_cv_shlibext"; then
7284 cat >>confdefs.h <<_ACEOF
7285 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7291 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7292 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7293 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 libltdl_cv_shlibpath_var="$shlibpath_var"
7298 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7299 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7300 if test -n "$libltdl_cv_shlibpath_var"; then
7302 cat >>confdefs.h <<_ACEOF
7303 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7309 echo "$as_me:$LINENO: checking for the default library search path" >&5
7310 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7311 if test "${libltdl_cv_sys_search_path+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7316 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7317 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7318 if test -n "$libltdl_cv_sys_search_path"; then
7320 for dir in $libltdl_cv_sys_search_path; do
7321 if test -z "$sys_search_path"; then
7322 sys_search_path="$dir"
7324 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7328 cat >>confdefs.h <<_ACEOF
7329 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7334 echo "$as_me:$LINENO: checking for objdir" >&5
7335 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7336 if test "${libltdl_cv_objdir+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 libltdl_cv_objdir="$objdir"
7340 if test -n "$objdir"; then
7343 rm -f .libs 2>/dev/null
7344 mkdir .libs 2>/dev/null
7345 if test -d .libs; then
7346 libltdl_cv_objdir=.libs
7348 # MS-DOS does not allow filenames that begin with a dot.
7349 libltdl_cv_objdir=_libs
7351 rmdir .libs 2>/dev/null
7355 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7356 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7358 cat >>confdefs.h <<_ACEOF
7359 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7363 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7364 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7365 if test "${lt_cv_path_NM+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 if test -n "$NM"; then
7369 # Let the user override the test.
7372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7373 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7375 test -z "$ac_dir" && ac_dir=.
7376 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7377 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7378 # Check to see if the nm accepts a BSD-compat flag.
7379 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7380 # nm: unknown option "B" ignored
7381 # Tru64's nm complains that /dev/null is an invalid object file
7382 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7383 */dev/null* | *'Invalid file or object type'*)
7384 lt_cv_path_NM="$tmp_nm -B"
7388 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7390 lt_cv_path_NM="$tmp_nm -p"
7394 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7395 continue # so that we can try to find one that supports BSD flags
7402 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7405 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7406 echo "${ECHO_T}$lt_cv_path_NM" >&6
7413 # Check for command to grab the raw symbol name followed by C symbol from nm.
7414 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7415 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7416 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 # These are sane defaults that work on at least a few old systems.
7421 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7423 # Character class describing NM global symbol codes.
7424 symcode='[BCDEGRST]'
7426 # Regexp to match symbols that can be accessed directly from C.
7427 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7429 # Transform the above into a raw symbol and a C symbol.
7430 symxfrm='\1 \2\3 \3'
7432 # Transform an extracted symbol line into a proper C declaration
7433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7435 # Transform an extracted symbol line into symbol name and symbol address
7436 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'"
7438 # Define system-specific variables.
7443 cygwin* | mingw* | pw32*)
7444 symcode='[ABCDGISTW]'
7446 hpux*) # Its linker distinguishes data from code symbols
7447 if test "$host_cpu" = ia64; then
7448 symcode='[ABCDEGRST]'
7450 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7451 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'"
7454 if test "$host_cpu" = ia64; then
7455 symcode='[ABCDGIRSTW]'
7456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7457 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'"
7461 symcode='[BCDEGRST]'
7464 symcode='[BCDEGQRST]'
7474 # Handle CRLF in mingw tool chain
7478 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7482 # If we're using GNU nm, then use its standard symbol codes.
7483 case `$NM -V 2>&1` in
7484 *GNU* | *'with BFD'*)
7485 symcode='[ABCDGIRSTW]' ;;
7488 # Try without a prefix undercore, then with it.
7489 for ac_symprfx in "" "_"; do
7491 # Write the raw and C identifiers.
7492 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7494 # Check to see that the pipe works correctly.
7498 cat > conftest.$ac_ext <<EOF
7503 void nm_test_func(){}
7507 int main(){nm_test_var='a';nm_test_func();return(0);}
7510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7511 (eval $ac_compile) 2>&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; then
7515 # Now try to grab the symbols.
7517 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7518 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } && test -s "$nlist"; then
7522 # Try sorting and uniquifying the output.
7523 if sort "$nlist" | uniq > "$nlist"T; then
7524 mv -f "$nlist"T "$nlist"
7529 # Make sure that we snagged all the symbols we need.
7530 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7531 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7532 cat <<EOF > conftest.$ac_ext
7538 # Now generate the symbol file.
7539 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7541 cat <<EOF >> conftest.$ac_ext
7542 #if defined (__STDC__) && __STDC__
7543 # define lt_ptr_t void *
7545 # define lt_ptr_t char *
7549 /* The mapping between symbol names and symbols. */
7554 lt_preloaded_symbols[] =
7557 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7558 cat <<\EOF >> conftest.$ac_ext
7566 # Now try linking the two files.
7567 mv conftest.$ac_objext conftstm.$ac_objext
7568 lt_save_LIBS="$LIBS"
7569 lt_save_CFLAGS="$CFLAGS"
7570 LIBS="conftstm.$ac_objext"
7571 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573 (eval $ac_link) 2>&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7579 LIBS="$lt_save_LIBS"
7580 CFLAGS="$lt_save_CFLAGS"
7582 echo "cannot find nm_test_func in $nlist" >&5
7585 echo "cannot find nm_test_var in $nlist" >&5
7588 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7591 echo "$progname: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7594 rm -f conftest* conftst*
7596 # Do not use the global_symbol_pipe unless it works.
7597 if test "$pipe_works" = yes; then
7600 lt_cv_sys_global_symbol_pipe=
7606 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7607 lt_cv_sys_global_symbol_to_cdecl=
7609 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7610 echo "$as_me:$LINENO: result: failed" >&5
7611 echo "${ECHO_T}failed" >&6
7613 echo "$as_me:$LINENO: result: ok" >&5
7614 echo "${ECHO_T}ok" >&6
7618 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7619 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7620 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7624 libltdl_cv_preloaded_symbols=yes
7626 libltdl_cv_preloaded_symbols=no
7630 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7631 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7632 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7634 cat >>confdefs.h <<\_ACEOF
7635 #define HAVE_PRELOADED_SYMBOLS 1
7643 ac_cpp='$CPP $CPPFLAGS'
7644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649 echo "$as_me:$LINENO: checking for shl_load" >&5
7650 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7651 if test "${ac_cv_func_shl_load+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 cat >conftest.$ac_ext <<_ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7662 #define shl_load innocuous_shl_load
7664 /* System header to define __stub macros and hopefully few prototypes,
7665 which can conflict with char shl_load (); below.
7666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667 <limits.h> exists even on freestanding compilers. */
7670 # include <limits.h>
7672 # include <assert.h>
7677 /* Override any gcc2 internal prototype to avoid an error. */
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7685 /* The GNU C library defines this for functions which it implements
7686 to always fail with ENOSYS. Some functions are actually named
7687 something starting with __ and the normal name is an alias. */
7688 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7691 char (*f) () = shl_load;
7700 return f != shl_load;
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>conftest.er1
7709 grep -v '^ *+' conftest.er1 >conftest.err
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -z "$ac_c_werror_flag"
7715 || test ! -s conftest.err'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; } &&
7721 { ac_try='test -s conftest$ac_exeext'
7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }; }; then
7727 ac_cv_func_shl_load=yes
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 ac_cv_func_shl_load=no
7734 rm -f conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7737 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7738 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7739 if test $ac_cv_func_shl_load = yes; then
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_SHL_LOAD 1
7746 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7747 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7748 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 ac_check_lib_save_LIBS=$LIBS
7753 cat >conftest.$ac_ext <<_ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7760 /* Override any gcc2 internal prototype to avoid an error. */
7764 /* We use char because int might match the return type of a gcc2
7765 builtin and then its argument prototype would still apply. */
7775 rm -f conftest.$ac_objext conftest$ac_exeext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>conftest.er1
7779 grep -v '^ *+' conftest.er1 >conftest.err
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -z "$ac_c_werror_flag"
7785 || test ! -s conftest.err'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; } &&
7791 { ac_try='test -s conftest$ac_exeext'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; }; then
7797 ac_cv_lib_dld_shl_load=yes
7799 echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7802 ac_cv_lib_dld_shl_load=no
7804 rm -f conftest.err conftest.$ac_objext \
7805 conftest$ac_exeext conftest.$ac_ext
7806 LIBS=$ac_check_lib_save_LIBS
7808 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7809 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7810 if test $ac_cv_lib_dld_shl_load = yes; then
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_SHL_LOAD 1
7816 LIBADD_DL="$LIBADD_DL -ldld"
7818 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7819 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7820 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 ac_check_lib_save_LIBS=$LIBS
7825 cat >conftest.$ac_ext <<_ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7832 /* Override any gcc2 internal prototype to avoid an error. */
7836 /* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7847 rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849 (eval $ac_link) 2>conftest.er1
7851 grep -v '^ *+' conftest.er1 >conftest.err
7853 cat conftest.err >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } &&
7856 { ac_try='test -z "$ac_c_werror_flag"
7857 || test ! -s conftest.err'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; } &&
7863 { ac_try='test -s conftest$ac_exeext'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 ac_cv_lib_dl_dlopen=yes
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7874 ac_cv_lib_dl_dlopen=no
7876 rm -f conftest.err conftest.$ac_objext \
7877 conftest$ac_exeext conftest.$ac_ext
7878 LIBS=$ac_check_lib_save_LIBS
7880 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7881 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7882 if test $ac_cv_lib_dl_dlopen = yes; then
7884 cat >>confdefs.h <<\_ACEOF
7885 #define HAVE_LIBDL 1
7888 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910 (eval $ac_link) 2>conftest.er1
7912 grep -v '^ *+' conftest.er1 >conftest.err
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -z "$ac_c_werror_flag"
7918 || test ! -s conftest.err'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; } &&
7924 { ac_try='test -s conftest$ac_exeext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7931 cat >>confdefs.h <<\_ACEOF
7932 #define HAVE_LIBDL 1
7934 libltdl_cv_func_dlopen="yes"
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7939 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7940 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7941 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 ac_check_lib_save_LIBS=$LIBS
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7953 /* Override any gcc2 internal prototype to avoid an error. */
7957 /* We use char because int might match the return type of a gcc2
7958 builtin and then its argument prototype would still apply. */
7968 rm -f conftest.$ac_objext conftest$ac_exeext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970 (eval $ac_link) 2>conftest.er1
7972 grep -v '^ *+' conftest.er1 >conftest.err
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } &&
7977 { ac_try='test -z "$ac_c_werror_flag"
7978 || test ! -s conftest.err'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; } &&
7984 { ac_try='test -s conftest$ac_exeext'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7990 ac_cv_lib_svld_dlopen=yes
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_cv_lib_svld_dlopen=no
7997 rm -f conftest.err conftest.$ac_objext \
7998 conftest$ac_exeext conftest.$ac_ext
7999 LIBS=$ac_check_lib_save_LIBS
8001 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8002 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8003 if test $ac_cv_lib_svld_dlopen = yes; then
8005 cat >>confdefs.h <<\_ACEOF
8006 #define HAVE_LIBDL 1
8009 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8011 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8012 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 ac_check_lib_save_LIBS=$LIBS
8018 cat >conftest.$ac_ext <<_ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8025 /* Override any gcc2 internal prototype to avoid an error. */
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest$ac_exeext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_lib_dld_dld_link=yes
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 ac_cv_lib_dld_dld_link=no
8069 rm -f conftest.err conftest.$ac_objext \
8070 conftest$ac_exeext conftest.$ac_ext
8071 LIBS=$ac_check_lib_save_LIBS
8073 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8074 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8075 if test $ac_cv_lib_dld_dld_link = yes; then
8077 cat >>confdefs.h <<\_ACEOF
8081 LIBADD_DL="$LIBADD_DL -ldld"
8083 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8084 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8085 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8096 #define _dyld_func_lookup innocuous__dyld_func_lookup
8098 /* System header to define __stub macros and hopefully few prototypes,
8099 which can conflict with char _dyld_func_lookup (); below.
8100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8101 <limits.h> exists even on freestanding compilers. */
8104 # include <limits.h>
8106 # include <assert.h>
8109 #undef _dyld_func_lookup
8111 /* Override any gcc2 internal prototype to avoid an error. */
8116 /* We use char because int might match the return type of a gcc2
8117 builtin and then its argument prototype would still apply. */
8118 char _dyld_func_lookup ();
8119 /* The GNU C library defines this for functions which it implements
8120 to always fail with ENOSYS. Some functions are actually named
8121 something starting with __ and the normal name is an alias. */
8122 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8125 char (*f) () = _dyld_func_lookup;
8134 return f != _dyld_func_lookup;
8139 rm -f conftest.$ac_objext conftest$ac_exeext
8140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141 (eval $ac_link) 2>conftest.er1
8143 grep -v '^ *+' conftest.er1 >conftest.err
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } &&
8148 { ac_try='test -z "$ac_c_werror_flag"
8149 || test ! -s conftest.err'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; } &&
8155 { ac_try='test -s conftest$ac_exeext'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8161 ac_cv_func__dyld_func_lookup=yes
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 ac_cv_func__dyld_func_lookup=no
8168 rm -f conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8171 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8172 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8173 if test $ac_cv_func__dyld_func_lookup = yes; then
8175 cat >>confdefs.h <<\_ACEOF
8189 rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8201 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8203 lt_save_LIBS="$LIBS"
8204 LIBS="$LIBS $LIBADD_DL"
8206 for ac_func in dlerror
8208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8209 echo "$as_me:$LINENO: checking for $ac_func" >&5
8210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8211 if eval "test \"\${$as_ac_var+set}\" = set"; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8222 #define $ac_func innocuous_$ac_func
8224 /* System header to define __stub macros and hopefully few prototypes,
8225 which can conflict with char $ac_func (); below.
8226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8227 <limits.h> exists even on freestanding compilers. */
8230 # include <limits.h>
8232 # include <assert.h>
8237 /* Override any gcc2 internal prototype to avoid an error. */
8242 /* We use char because int might match the return type of a gcc2
8243 builtin and then its argument prototype would still apply. */
8245 /* The GNU C library defines this for functions which it implements
8246 to always fail with ENOSYS. Some functions are actually named
8247 something starting with __ and the normal name is an alias. */
8248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8251 char (*f) () = $ac_func;
8260 return f != $ac_func;
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267 (eval $ac_link) 2>conftest.er1
8269 grep -v '^ *+' conftest.er1 >conftest.err
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try='test -z "$ac_c_werror_flag"
8275 || test ! -s conftest.err'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; } &&
8281 { ac_try='test -s conftest$ac_exeext'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 eval "$as_ac_var=yes"
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8292 eval "$as_ac_var=no"
8294 rm -f conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext conftest.$ac_ext
8297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8299 if test `eval echo '${'$as_ac_var'}'` = yes; then
8300 cat >>confdefs.h <<_ACEOF
8301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8307 LIBS="$lt_save_LIBS"
8310 ac_cpp='$CPP $CPPFLAGS'
8311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8317 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8318 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8319 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 ac_cv_sys_symbol_underscore=no
8323 cat > conftest.$ac_ext <<EOF
8324 void nm_test_func(){}
8325 int main(){nm_test_func;return 0;}
8327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328 (eval $ac_compile) 2>&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; then
8332 # Now try to grab the symbols.
8333 ac_nlist=conftest.nm
8334 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8335 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } && test -s "$ac_nlist"; then
8339 # See whether the symbols have a leading underscore.
8340 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8341 ac_cv_sys_symbol_underscore=yes
8343 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8346 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8350 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8353 echo "configure: failed program was:" >&5
8359 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8360 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8363 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8364 if test x"$libltdl_cv_func_dlopen" = xyes ||
8365 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8366 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8367 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8368 if test "${libltdl_cv_need_uscore+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 libltdl_cv_need_uscore=unknown
8373 LIBS="$LIBS $LIBADD_DL"
8374 if test "$cross_compiling" = yes; then :
8375 libltdl_cv_need_uscore=cross
8377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8378 lt_status=$lt_dlunknown
8379 cat > conftest.$ac_ext <<EOF
8380 #line 8380 "configure"
8381 #include "confdefs.h"
8390 # define LT_DLGLOBAL RTLD_GLOBAL
8393 # define LT_DLGLOBAL DL_GLOBAL
8395 # define LT_DLGLOBAL 0
8399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8400 find out it does not work in some platform. */
8401 #ifndef LT_DLLAZY_OR_NOW
8403 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8406 # define LT_DLLAZY_OR_NOW DL_LAZY
8409 # define LT_DLLAZY_OR_NOW RTLD_NOW
8412 # define LT_DLLAZY_OR_NOW DL_NOW
8414 # define LT_DLLAZY_OR_NOW 0
8422 extern "C" void exit (int);
8425 void fnord() { int i=42;}
8428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8429 int status = $lt_dlunknown;
8433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8435 /* dlclose (self); */
8441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442 (eval $ac_link) 2>&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8446 (./conftest; exit; ) 2>/dev/null
8449 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8450 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8454 # compilation failed
8463 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8464 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8468 if test x"$libltdl_cv_need_uscore" = xyes; then
8470 cat >>confdefs.h <<\_ACEOF
8471 #define NEED_USCORE 1
8477 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8478 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8479 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 # PORTME does your system automatically load deplibs for dlopen?
8483 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8484 # For now, we just catch OSes we know something about -- in the
8485 # future, we'll try test this programmatically.
8486 libltdl_cv_sys_dlopen_deplibs=unknown
8488 aix3*|aix4.1.*|aix4.2.*)
8489 # Unknown whether this is true for these versions of AIX, but
8490 # we want this `case' here to explicitly catch those versions.
8491 libltdl_cv_sys_dlopen_deplibs=unknown
8494 libltdl_cv_sys_dlopen_deplibs=yes
8497 # Assuming the user has installed a libdl from somewhere, this is true
8498 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8499 libltdl_cv_sys_dlopen_deplibs=yes
8501 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8502 # GNU and its variants, using gnu ld.so (Glibc)
8503 libltdl_cv_sys_dlopen_deplibs=yes
8506 libltdl_cv_sys_dlopen_deplibs=yes
8508 irix[12345]*|irix6.[01]*)
8509 # Catch all versions of IRIX before 6.2, and indicate that we don't
8510 # know how it worked for any of those versions.
8511 libltdl_cv_sys_dlopen_deplibs=unknown
8514 # The case above catches anything before 6.2, and it's known that
8515 # at 6.2 and later dlopen does load deplibs.
8516 libltdl_cv_sys_dlopen_deplibs=yes
8519 libltdl_cv_sys_dlopen_deplibs=yes
8522 libltdl_cv_sys_dlopen_deplibs=yes
8525 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8526 # it did *not* use an RPATH in a shared library to find objects the
8527 # library depends on, so we explictly say `no'.
8528 libltdl_cv_sys_dlopen_deplibs=no
8530 osf5.0|osf5.0a|osf5.1)
8531 # dlopen *does* load deplibs and with the right loader patch applied
8532 # it even uses RPATH in a shared library to search for shared objects
8533 # that the library depends on, but there's no easy way to know if that
8534 # patch is installed. Since this is the case, all we can really
8535 # say is unknown -- it depends on the patch being installed. If
8536 # it is, this changes to `yes'. Without it, it would be `no'.
8537 libltdl_cv_sys_dlopen_deplibs=unknown
8540 # the two cases above should catch all versions of osf <= 5.1. Read
8541 # the comments above for what we know about them.
8542 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8543 # is used to find them so we can finally say `yes'.
8544 libltdl_cv_sys_dlopen_deplibs=yes
8547 libltdl_cv_sys_dlopen_deplibs=yes
8552 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8553 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8554 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8556 cat >>confdefs.h <<\_ACEOF
8557 #define LTDL_DLOPEN_DEPLIBS 1
8563 for ac_header in argz.h
8565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8567 echo "$as_me:$LINENO: checking for $ac_header" >&5
8568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8575 # Is the header compilable?
8576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8578 cat >conftest.$ac_ext <<_ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584 $ac_includes_default
8585 #include <$ac_header>
8587 rm -f conftest.$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>conftest.er1
8591 grep -v '^ *+' conftest.er1 >conftest.err
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } &&
8596 { ac_try='test -z "$ac_c_werror_flag"
8597 || test ! -s conftest.err'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try='test -s conftest.$ac_objext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 ac_header_compiler=yes
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_header_compiler=no
8616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618 echo "${ECHO_T}$ac_header_compiler" >&6
8620 # Is the header present?
8621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629 #include <$ac_header>
8631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8634 grep -v '^ *+' conftest.er1 >conftest.err
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } >/dev/null; then
8639 if test -s conftest.err; then
8640 ac_cpp_err=$ac_c_preproc_warn_flag
8641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8648 if test -z "$ac_cpp_err"; then
8649 ac_header_preproc=yes
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 ac_header_preproc=no
8656 rm -f conftest.err conftest.$ac_ext
8657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658 echo "${ECHO_T}$ac_header_preproc" >&6
8660 # So? What about this header?
8661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8667 ac_header_preproc=yes
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8684 ## ----------------------------------- ##
8685 ## Report this to llvmbugs@cs.uiuc.edu ##
8686 ## ----------------------------------- ##
8689 sed "s/^/$as_me: WARNING: /" >&2
8692 echo "$as_me:$LINENO: checking for $ac_header" >&5
8693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 eval "$as_ac_Header=\$ac_header_preproc"
8699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8704 cat >>confdefs.h <<_ACEOF
8705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8713 echo "$as_me:$LINENO: checking for error_t" >&5
8714 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8715 if test "${ac_cv_type_error_t+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 cat >conftest.$ac_ext <<_ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8733 if (sizeof (error_t))
8739 rm -f conftest.$ac_objext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741 (eval $ac_compile) 2>conftest.er1
8743 grep -v '^ *+' conftest.er1 >conftest.err
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try='test -z "$ac_c_werror_flag"
8749 || test ! -s conftest.err'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; } &&
8755 { ac_try='test -s conftest.$ac_objext'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; }; then
8761 ac_cv_type_error_t=yes
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8766 ac_cv_type_error_t=no
8768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8771 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8772 if test $ac_cv_type_error_t = yes; then
8774 cat >>confdefs.h <<_ACEOF
8775 #define HAVE_ERROR_T 1
8781 cat >>confdefs.h <<\_ACEOF
8793 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8796 echo "$as_me:$LINENO: checking for $ac_func" >&5
8797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8798 if eval "test \"\${$as_ac_var+set}\" = set"; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8809 #define $ac_func innocuous_$ac_func
8811 /* System header to define __stub macros and hopefully few prototypes,
8812 which can conflict with char $ac_func (); below.
8813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814 <limits.h> exists even on freestanding compilers. */
8817 # include <limits.h>
8819 # include <assert.h>
8824 /* Override any gcc2 internal prototype to avoid an error. */
8829 /* We use char because int might match the return type of a gcc2
8830 builtin and then its argument prototype would still apply. */
8832 /* The GNU C library defines this for functions which it implements
8833 to always fail with ENOSYS. Some functions are actually named
8834 something starting with __ and the normal name is an alias. */
8835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8838 char (*f) () = $ac_func;
8847 return f != $ac_func;
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>conftest.er1
8856 grep -v '^ *+' conftest.er1 >conftest.err
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag"
8862 || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 eval "$as_ac_var=yes"
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 eval "$as_ac_var=no"
8881 rm -f conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8886 if test `eval echo '${'$as_ac_var'}'` = yes; then
8887 cat >>confdefs.h <<_ACEOF
8888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8921 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8926 echo "$as_me:$LINENO: checking for $ac_header" >&5
8927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8934 # Is the header compilable?
8935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8937 cat >conftest.$ac_ext <<_ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8943 $ac_includes_default
8944 #include <$ac_header>
8946 rm -f conftest.$ac_objext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948 (eval $ac_compile) 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag"
8956 || test ! -s conftest.err'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest.$ac_objext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_header_compiler=yes
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8973 ac_header_compiler=no
8975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8977 echo "${ECHO_T}$ac_header_compiler" >&6
8979 # Is the header present?
8980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 #include <$ac_header>
8990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8993 grep -v '^ *+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } >/dev/null; then
8998 if test -s conftest.err; then
8999 ac_cpp_err=$ac_c_preproc_warn_flag
9000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9007 if test -z "$ac_cpp_err"; then
9008 ac_header_preproc=yes
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9013 ac_header_preproc=no
9015 rm -f conftest.err conftest.$ac_ext
9016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9017 echo "${ECHO_T}$ac_header_preproc" >&6
9019 # So? What about this header?
9020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9026 ac_header_preproc=yes
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9043 ## ----------------------------------- ##
9044 ## Report this to llvmbugs@cs.uiuc.edu ##
9045 ## ----------------------------------- ##
9048 sed "s/^/$as_me: WARNING: /" >&2
9051 echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 eval "$as_ac_Header=\$ac_header_preproc"
9058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9063 cat >>confdefs.h <<_ACEOF
9064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9075 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9079 echo "$as_me:$LINENO: checking for $ac_header" >&5
9080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9087 # Is the header compilable?
9088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9090 cat >conftest.$ac_ext <<_ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9096 $ac_includes_default
9097 #include <$ac_header>
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101 (eval $ac_compile) 2>conftest.er1
9103 grep -v '^ *+' conftest.er1 >conftest.err
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -z "$ac_c_werror_flag"
9109 || test ! -s conftest.err'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
9115 { ac_try='test -s conftest.$ac_objext'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9121 ac_header_compiler=yes
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9126 ac_header_compiler=no
9128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130 echo "${ECHO_T}$ac_header_compiler" >&6
9132 # Is the header present?
9133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9135 cat >conftest.$ac_ext <<_ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 #include <$ac_header>
9143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9146 grep -v '^ *+' conftest.er1 >conftest.err
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } >/dev/null; then
9151 if test -s conftest.err; then
9152 ac_cpp_err=$ac_c_preproc_warn_flag
9153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9160 if test -z "$ac_cpp_err"; then
9161 ac_header_preproc=yes
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 ac_header_preproc=no
9168 rm -f conftest.err conftest.$ac_ext
9169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9170 echo "${ECHO_T}$ac_header_preproc" >&6
9172 # So? What about this header?
9173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9179 ac_header_preproc=yes
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9196 ## ----------------------------------- ##
9197 ## Report this to llvmbugs@cs.uiuc.edu ##
9198 ## ----------------------------------- ##
9201 sed "s/^/$as_me: WARNING: /" >&2
9204 echo "$as_me:$LINENO: checking for $ac_header" >&5
9205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 eval "$as_ac_Header=\$ac_header_preproc"
9211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9216 cat >>confdefs.h <<_ACEOF
9217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9226 for ac_header in string.h strings.h
9228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9230 echo "$as_me:$LINENO: checking for $ac_header" >&5
9231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9238 # Is the header compilable?
9239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 $ac_includes_default
9248 #include <$ac_header>
9250 rm -f conftest.$ac_objext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252 (eval $ac_compile) 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest.$ac_objext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_header_compiler=yes
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 ac_header_compiler=no
9279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9281 echo "${ECHO_T}$ac_header_compiler" >&6
9283 # Is the header present?
9284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9286 cat >conftest.$ac_ext <<_ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9292 #include <$ac_header>
9294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9297 grep -v '^ *+' conftest.er1 >conftest.err
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } >/dev/null; then
9302 if test -s conftest.err; then
9303 ac_cpp_err=$ac_c_preproc_warn_flag
9304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9311 if test -z "$ac_cpp_err"; then
9312 ac_header_preproc=yes
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_header_preproc=no
9319 rm -f conftest.err conftest.$ac_ext
9320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9321 echo "${ECHO_T}$ac_header_preproc" >&6
9323 # So? What about this header?
9324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9330 ac_header_preproc=yes
9333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9347 ## ----------------------------------- ##
9348 ## Report this to llvmbugs@cs.uiuc.edu ##
9349 ## ----------------------------------- ##
9352 sed "s/^/$as_me: WARNING: /" >&2
9355 echo "$as_me:$LINENO: checking for $ac_header" >&5
9356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 eval "$as_ac_Header=\$ac_header_preproc"
9362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9367 cat >>confdefs.h <<_ACEOF
9368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9378 for ac_func in strchr index
9380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9381 echo "$as_me:$LINENO: checking for $ac_func" >&5
9382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9383 if eval "test \"\${$as_ac_var+set}\" = set"; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 cat >conftest.$ac_ext <<_ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9394 #define $ac_func innocuous_$ac_func
9396 /* System header to define __stub macros and hopefully few prototypes,
9397 which can conflict with char $ac_func (); below.
9398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9399 <limits.h> exists even on freestanding compilers. */
9402 # include <limits.h>
9404 # include <assert.h>
9409 /* Override any gcc2 internal prototype to avoid an error. */
9414 /* We use char because int might match the return type of a gcc2
9415 builtin and then its argument prototype would still apply. */
9417 /* The GNU C library defines this for functions which it implements
9418 to always fail with ENOSYS. Some functions are actually named
9419 something starting with __ and the normal name is an alias. */
9420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9423 char (*f) () = $ac_func;
9432 return f != $ac_func;
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>conftest.er1
9441 grep -v '^ *+' conftest.er1 >conftest.err
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -z "$ac_c_werror_flag"
9447 || test ! -s conftest.err'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } &&
9453 { ac_try='test -s conftest$ac_exeext'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 eval "$as_ac_var=yes"
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9464 eval "$as_ac_var=no"
9466 rm -f conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9471 if test `eval echo '${'$as_ac_var'}'` = yes; then
9472 cat >>confdefs.h <<_ACEOF
9473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9481 for ac_func in strrchr rindex
9483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9484 echo "$as_me:$LINENO: checking for $ac_func" >&5
9485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9486 if eval "test \"\${$as_ac_var+set}\" = set"; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 cat >conftest.$ac_ext <<_ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9497 #define $ac_func innocuous_$ac_func
9499 /* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char $ac_func (); below.
9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502 <limits.h> exists even on freestanding compilers. */
9505 # include <limits.h>
9507 # include <assert.h>
9512 /* Override any gcc2 internal prototype to avoid an error. */
9517 /* We use char because int might match the return type of a gcc2
9518 builtin and then its argument prototype would still apply. */
9520 /* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9526 char (*f) () = $ac_func;
9535 return f != $ac_func;
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>conftest.er1
9544 grep -v '^ *+' conftest.er1 >conftest.err
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -z "$ac_c_werror_flag"
9550 || test ! -s conftest.err'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 eval "$as_ac_var=yes"
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 eval "$as_ac_var=no"
9569 rm -f conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9574 if test `eval echo '${'$as_ac_var'}'` = yes; then
9575 cat >>confdefs.h <<_ACEOF
9576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9584 for ac_func in memcpy bcopy
9586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9587 echo "$as_me:$LINENO: checking for $ac_func" >&5
9588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9589 if eval "test \"\${$as_ac_var+set}\" = set"; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9600 #define $ac_func innocuous_$ac_func
9602 /* System header to define __stub macros and hopefully few prototypes,
9603 which can conflict with char $ac_func (); below.
9604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9605 <limits.h> exists even on freestanding compilers. */
9608 # include <limits.h>
9610 # include <assert.h>
9615 /* Override any gcc2 internal prototype to avoid an error. */
9620 /* We use char because int might match the return type of a gcc2
9621 builtin and then its argument prototype would still apply. */
9623 /* The GNU C library defines this for functions which it implements
9624 to always fail with ENOSYS. Some functions are actually named
9625 something starting with __ and the normal name is an alias. */
9626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9629 char (*f) () = $ac_func;
9638 return f != $ac_func;
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9645 (eval $ac_link) 2>conftest.er1
9647 grep -v '^ *+' conftest.er1 >conftest.err
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } &&
9652 { ac_try='test -z "$ac_c_werror_flag"
9653 || test ! -s conftest.err'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; } &&
9659 { ac_try='test -s conftest$ac_exeext'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 eval "$as_ac_var=yes"
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 eval "$as_ac_var=no"
9672 rm -f conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9677 if test `eval echo '${'$as_ac_var'}'` = yes; then
9678 cat >>confdefs.h <<_ACEOF
9679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9687 for ac_func in memmove strcmp
9689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9690 echo "$as_me:$LINENO: checking for $ac_func" >&5
9691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9692 if eval "test \"\${$as_ac_var+set}\" = set"; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 cat >conftest.$ac_ext <<_ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9703 #define $ac_func innocuous_$ac_func
9705 /* System header to define __stub macros and hopefully few prototypes,
9706 which can conflict with char $ac_func (); below.
9707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9708 <limits.h> exists even on freestanding compilers. */
9711 # include <limits.h>
9713 # include <assert.h>
9718 /* Override any gcc2 internal prototype to avoid an error. */
9723 /* We use char because int might match the return type of a gcc2
9724 builtin and then its argument prototype would still apply. */
9726 /* The GNU C library defines this for functions which it implements
9727 to always fail with ENOSYS. Some functions are actually named
9728 something starting with __ and the normal name is an alias. */
9729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9732 char (*f) () = $ac_func;
9741 return f != $ac_func;
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748 (eval $ac_link) 2>conftest.er1
9750 grep -v '^ *+' conftest.er1 >conftest.err
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -z "$ac_c_werror_flag"
9756 || test ! -s conftest.err'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try='test -s conftest$ac_exeext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 eval "$as_ac_var=yes"
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9773 eval "$as_ac_var=no"
9775 rm -f conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9780 if test `eval echo '${'$as_ac_var'}'` = yes; then
9781 cat >>confdefs.h <<_ACEOF
9782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9791 for ac_func in closedir opendir readdir
9793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9794 echo "$as_me:$LINENO: checking for $ac_func" >&5
9795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9796 if eval "test \"\${$as_ac_var+set}\" = set"; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 cat >conftest.$ac_ext <<_ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9807 #define $ac_func innocuous_$ac_func
9809 /* System header to define __stub macros and hopefully few prototypes,
9810 which can conflict with char $ac_func (); below.
9811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812 <limits.h> exists even on freestanding compilers. */
9815 # include <limits.h>
9817 # include <assert.h>
9822 /* Override any gcc2 internal prototype to avoid an error. */
9827 /* We use char because int might match the return type of a gcc2
9828 builtin and then its argument prototype would still apply. */
9830 /* The GNU C library defines this for functions which it implements
9831 to always fail with ENOSYS. Some functions are actually named
9832 something starting with __ and the normal name is an alias. */
9833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9836 char (*f) () = $ac_func;
9845 return f != $ac_func;
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852 (eval $ac_link) 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_c_werror_flag"
9860 || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 eval "$as_ac_var=yes"
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 eval "$as_ac_var=no"
9879 rm -f conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9884 if test `eval echo '${'$as_ac_var'}'` = yes; then
9885 cat >>confdefs.h <<_ACEOF
9886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9893 # Check whether --enable-shared or --disable-shared was given.
9894 if test "${enable_shared+set}" = set; then
9895 enableval="$enable_shared"
9896 p=${PACKAGE-default}
9898 yes) enable_shared=yes ;;
9899 no) enable_shared=no ;;
9902 # Look at the argument we got. We use all the common list separators.
9903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9904 for pkg in $enableval; do
9906 if test "X$pkg" = "X$p"; then
9917 # Check whether --enable-static or --disable-static was given.
9918 if test "${enable_static+set}" = set; then
9919 enableval="$enable_static"
9920 p=${PACKAGE-default}
9922 yes) enable_static=yes ;;
9923 no) enable_static=no ;;
9926 # Look at the argument we got. We use all the common list separators.
9927 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9928 for pkg in $enableval; do
9930 if test "X$pkg" = "X$p"; then
9941 # Check whether --enable-fast-install or --disable-fast-install was given.
9942 if test "${enable_fast_install+set}" = set; then
9943 enableval="$enable_fast_install"
9944 p=${PACKAGE-default}
9946 yes) enable_fast_install=yes ;;
9947 no) enable_fast_install=no ;;
9949 enable_fast_install=no
9950 # Look at the argument we got. We use all the common list separators.
9951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9952 for pkg in $enableval; do
9954 if test "X$pkg" = "X$p"; then
9955 enable_fast_install=yes
9962 enable_fast_install=yes
9965 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9966 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9967 if test "${lt_cv_path_SED+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 # Loop through the user's path and test for sed and gsed.
9971 # Then use that list of sed's as ones to test for truncation.
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 test -z "$as_dir" && as_dir=.
9977 for lt_ac_prog in sed gsed; do
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9980 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9987 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9988 # along with /bin/sed that truncates output.
9989 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9990 test ! -f $lt_ac_sed && break
9991 cat /dev/null > conftest.in
9993 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9994 # Check for GNU sed and select it if it is found.
9995 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9996 lt_cv_path_SED=$lt_ac_sed
10000 cat conftest.in conftest.in >conftest.tmp
10001 mv conftest.tmp conftest.in
10002 cp conftest.in conftest.nl
10004 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10005 cmp -s conftest.out conftest.nl || break
10006 # 10000 chars as input seems more than enough
10007 test $lt_ac_count -gt 10 && break
10008 lt_ac_count=`expr $lt_ac_count + 1`
10009 if test $lt_ac_count -gt $lt_ac_max; then
10010 lt_ac_max=$lt_ac_count
10011 lt_cv_path_SED=$lt_ac_sed
10018 SED=$lt_cv_path_SED
10019 echo "$as_me:$LINENO: result: $SED" >&5
10020 echo "${ECHO_T}$SED" >&6
10023 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10024 if test "${with_gnu_ld+set}" = set; then
10025 withval="$with_gnu_ld"
10026 test "$withval" = no || with_gnu_ld=yes
10031 if test "$GCC" = yes; then
10032 # Check if gcc -print-prog-name=ld gives a path.
10033 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10034 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10037 # gcc leaves a trailing carriage return which upsets mingw
10038 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10040 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10043 # Accept absolute paths.
10045 re_direlt='/[^/][^/]*/\.\./'
10046 # Canonicalize the pathname of ld
10047 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10048 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10049 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10051 test -z "$LD" && LD="$ac_prog"
10054 # If it fails, then pretend we aren't using GCC.
10058 # If it is relative, then search for the first ld in PATH.
10059 with_gnu_ld=unknown
10062 elif test "$with_gnu_ld" = yes; then
10063 echo "$as_me:$LINENO: checking for GNU ld" >&5
10064 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10066 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10067 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10069 if test "${lt_cv_path_LD+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 if test -z "$LD"; then
10073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10074 for ac_dir in $PATH; do
10076 test -z "$ac_dir" && ac_dir=.
10077 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10078 lt_cv_path_LD="$ac_dir/$ac_prog"
10079 # Check to see if the program is GNU ld. I'd rather use --version,
10080 # but apparently some GNU ld's only accept -v.
10081 # Break only if it was the GNU/non-GNU ld that we prefer.
10082 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10083 *GNU* | *'with BFD'*)
10084 test "$with_gnu_ld" != no && break
10087 test "$with_gnu_ld" != yes && break
10094 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10098 LD="$lt_cv_path_LD"
10099 if test -n "$LD"; then
10100 echo "$as_me:$LINENO: result: $LD" >&5
10101 echo "${ECHO_T}$LD" >&6
10103 echo "$as_me:$LINENO: result: no" >&5
10104 echo "${ECHO_T}no" >&6
10106 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10107 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10108 { (exit 1); exit 1; }; }
10109 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10110 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10111 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10115 case `$LD -v 2>&1 </dev/null` in
10116 *GNU* | *'with BFD'*)
10117 lt_cv_prog_gnu_ld=yes
10120 lt_cv_prog_gnu_ld=no
10124 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10125 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10126 with_gnu_ld=$lt_cv_prog_gnu_ld
10129 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10130 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10131 if test "${lt_cv_ld_reload_flag+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 lt_cv_ld_reload_flag='-r'
10136 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10137 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10138 reload_flag=$lt_cv_ld_reload_flag
10139 case $reload_flag in
10141 *) reload_flag=" $reload_flag" ;;
10143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10146 if test "$GCC" = yes; then
10147 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10154 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10155 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10156 if test "${lt_cv_deplibs_check_method+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 lt_cv_file_magic_cmd='$MAGIC_CMD'
10160 lt_cv_file_magic_test_file=
10161 lt_cv_deplibs_check_method='unknown'
10162 # Need to set the preceding variable on all platforms that support
10163 # interlibrary dependencies.
10164 # 'none' -- dependencies not supported.
10165 # `unknown' -- same as none, but documents that we really don't know.
10166 # 'pass_all' -- all dependencies passed with no checks.
10167 # 'test_compile' -- check by making test program.
10168 # 'file_magic [[regex]]' -- check by looking for files in library path
10169 # which responds to the $file_magic_cmd with a given extended regex.
10170 # If you have `file' or equivalent on your system and you're not sure
10171 # whether `pass_all' will *always* work, you probably want this one.
10175 lt_cv_deplibs_check_method=pass_all
10179 lt_cv_deplibs_check_method=pass_all
10183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10184 lt_cv_file_magic_cmd='/usr/bin/file -L'
10185 lt_cv_file_magic_test_file=/shlib/libc.so
10189 # func_win32_libid is a shell function defined in ltmain.sh
10190 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10191 lt_cv_file_magic_cmd='func_win32_libid'
10195 # Base MSYS/MinGW do not provide the 'file' command needed by
10196 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10197 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10198 lt_cv_file_magic_cmd='$OBJDUMP -f'
10201 darwin* | rhapsody*)
10202 lt_cv_deplibs_check_method=pass_all
10205 freebsd* | kfreebsd*-gnu)
10206 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10209 # Not sure whether the presence of OpenBSD here was a mistake.
10210 # Let's accept both of them until this is cleared up.
10211 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10212 lt_cv_file_magic_cmd=/usr/bin/file
10213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10217 lt_cv_deplibs_check_method=pass_all
10222 lt_cv_deplibs_check_method=pass_all
10225 hpux10.20* | hpux11*)
10226 lt_cv_file_magic_cmd=/usr/bin/file
10227 case "$host_cpu" in
10229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10230 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10233 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]'
10234 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10238 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10243 irix5* | irix6* | nonstopux*)
10245 *-32|*"-32 ") libmagic=32-bit;;
10246 *-n32|*"-n32 ") libmagic=N32;;
10247 *-64|*"-64 ") libmagic=64-bit;;
10248 *) libmagic=never-match;;
10250 lt_cv_deplibs_check_method=pass_all
10253 # This must be Linux ELF.
10255 lt_cv_deplibs_check_method=pass_all
10259 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10267 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10268 lt_cv_file_magic_cmd=/usr/bin/file
10269 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10273 lt_cv_deplibs_check_method=unknown
10277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10284 osf3* | osf4* | osf5*)
10285 lt_cv_deplibs_check_method=pass_all
10289 lt_cv_deplibs_check_method=pass_all
10293 lt_cv_deplibs_check_method=pass_all
10296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10297 case $host_vendor in
10299 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]'
10300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10303 lt_cv_deplibs_check_method=pass_all
10306 lt_cv_file_magic_cmd='/bin/file'
10307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10310 lt_cv_file_magic_cmd='/bin/file'
10311 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10312 lt_cv_file_magic_test_file=/lib/libc.so
10315 lt_cv_deplibs_check_method=pass_all
10320 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10321 lt_cv_deplibs_check_method=pass_all
10326 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10327 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10328 file_magic_cmd=$lt_cv_file_magic_cmd
10329 deplibs_check_method=$lt_cv_deplibs_check_method
10330 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10334 # If no C compiler was specified, use CC.
10337 # Allow CC to be a program name with arguments.
10340 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10341 if test "${enable_libtool_lock+set}" = set; then
10342 enableval="$enable_libtool_lock"
10345 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10347 # Some flags need to be propagated to the compiler or linker for good
10351 # Find out which ABI we are using.
10352 echo 'int i;' > conftest.$ac_ext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; then
10358 case `/usr/bin/file conftest.$ac_objext` in
10360 HPUX_IA64_MODE="32"
10363 HPUX_IA64_MODE="64"
10370 # Find out which ABI we are using.
10371 echo '#line 10371 "configure"' > conftest.$ac_ext
10372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10373 (eval $ac_compile) 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; then
10377 if test "$lt_cv_prog_gnu_ld" = yes; then
10378 case `/usr/bin/file conftest.$ac_objext` in
10380 LD="${LD-ld} -melf32bsmip"
10383 LD="${LD-ld} -melf32bmipn32"
10386 LD="${LD-ld} -melf64bmip"
10390 case `/usr/bin/file conftest.$ac_objext` in
10406 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10407 # Find out which ABI we are using.
10408 echo 'int i;' > conftest.$ac_ext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410 (eval $ac_compile) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; then
10414 case "`/usr/bin/file conftest.o`" in
10418 LD="${LD-ld} -m elf_i386"
10420 ppc64-*linux*|powerpc64-*linux*)
10421 LD="${LD-ld} -m elf32ppclinux"
10424 LD="${LD-ld} -m elf_s390"
10427 LD="${LD-ld} -m elf32_sparc"
10434 LD="${LD-ld} -m elf_x86_64"
10436 ppc*-*linux*|powerpc*-*linux*)
10437 LD="${LD-ld} -m elf64ppc"
10440 LD="${LD-ld} -m elf64_s390"
10443 LD="${LD-ld} -m elf64_sparc"
10453 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10454 SAVE_CFLAGS="$CFLAGS"
10455 CFLAGS="$CFLAGS -belf"
10456 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10457 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10458 if test "${lt_cv_cc_needs_belf+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 ac_cpp='$CPP $CPPFLAGS'
10463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10467 cat >conftest.$ac_ext <<_ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>conftest.er1
10479 grep -v '^ *+' conftest.er1 >conftest.err
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } &&
10484 { ac_try='test -z "$ac_c_werror_flag"
10485 || test ! -s conftest.err'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; } &&
10491 { ac_try='test -s conftest$ac_exeext'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
10497 lt_cv_cc_needs_belf=yes
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 lt_cv_cc_needs_belf=no
10504 rm -f conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
10507 ac_cpp='$CPP $CPPFLAGS'
10508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10513 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10514 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10515 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10516 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10517 CFLAGS="$SAVE_CFLAGS"
10523 need_locks="$enable_libtool_lock"
10528 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10529 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10530 (test "X$CXX" != "Xg++"))) ; then
10532 ac_cpp='$CXXCPP $CPPFLAGS'
10533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10536 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10537 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10538 if test -z "$CXXCPP"; then
10539 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 # Double quotes because CXXCPP needs to be expanded
10543 for CXXCPP in "$CXX -E" "/lib/cpp"
10545 ac_preproc_ok=false
10546 for ac_cxx_preproc_warn_flag in '' yes
10548 # Use a header file that comes with gcc, so configuring glibc
10549 # with a fresh cross-compiler works.
10550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10551 # <limits.h> exists even on freestanding compilers.
10552 # On the NeXT, cc -E runs the code through the compiler's parser,
10553 # not just through cpp. "Syntax error" is here to catch this case.
10554 cat >conftest.$ac_ext <<_ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10561 # include <limits.h>
10563 # include <assert.h>
10567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10570 grep -v '^ *+' conftest.er1 >conftest.err
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } >/dev/null; then
10575 if test -s conftest.err; then
10576 ac_cpp_err=$ac_cxx_preproc_warn_flag
10577 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10584 if test -z "$ac_cpp_err"; then
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 # Broken: fails on valid input.
10593 rm -f conftest.err conftest.$ac_ext
10595 # OK, works on sane cases. Now check whether non-existent headers
10596 # can be detected and how.
10597 cat >conftest.$ac_ext <<_ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 #include <ac_nonexistent.h>
10605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10608 grep -v '^ *+' conftest.er1 >conftest.err
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } >/dev/null; then
10613 if test -s conftest.err; then
10614 ac_cpp_err=$ac_cxx_preproc_warn_flag
10615 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10622 if test -z "$ac_cpp_err"; then
10623 # Broken: success on invalid input.
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 # Passes both tests.
10633 rm -f conftest.err conftest.$ac_ext
10636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10637 rm -f conftest.err conftest.$ac_ext
10638 if $ac_preproc_ok; then
10643 ac_cv_prog_CXXCPP=$CXXCPP
10646 CXXCPP=$ac_cv_prog_CXXCPP
10648 ac_cv_prog_CXXCPP=$CXXCPP
10650 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10651 echo "${ECHO_T}$CXXCPP" >&6
10652 ac_preproc_ok=false
10653 for ac_cxx_preproc_warn_flag in '' yes
10655 # Use a header file that comes with gcc, so configuring glibc
10656 # with a fresh cross-compiler works.
10657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10658 # <limits.h> exists even on freestanding compilers.
10659 # On the NeXT, cc -E runs the code through the compiler's parser,
10660 # not just through cpp. "Syntax error" is here to catch this case.
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10668 # include <limits.h>
10670 # include <assert.h>
10674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10677 grep -v '^ *+' conftest.er1 >conftest.err
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } >/dev/null; then
10682 if test -s conftest.err; then
10683 ac_cpp_err=$ac_cxx_preproc_warn_flag
10684 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10691 if test -z "$ac_cpp_err"; then
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 # Broken: fails on valid input.
10700 rm -f conftest.err conftest.$ac_ext
10702 # OK, works on sane cases. Now check whether non-existent headers
10703 # can be detected and how.
10704 cat >conftest.$ac_ext <<_ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h. */
10710 #include <ac_nonexistent.h>
10712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10715 grep -v '^ *+' conftest.er1 >conftest.err
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } >/dev/null; then
10720 if test -s conftest.err; then
10721 ac_cpp_err=$ac_cxx_preproc_warn_flag
10722 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10729 if test -z "$ac_cpp_err"; then
10730 # Broken: success on invalid input.
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10736 # Passes both tests.
10740 rm -f conftest.err conftest.$ac_ext
10743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10744 rm -f conftest.err conftest.$ac_ext
10745 if $ac_preproc_ok; then
10748 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10749 See \`config.log' for more details." >&5
10750 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10751 See \`config.log' for more details." >&2;}
10752 { (exit 1); exit 1; }; }
10756 ac_cpp='$CXXCPP $CPPFLAGS'
10757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10765 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10766 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10768 if test -n "$ac_tool_prefix"; then
10769 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10773 echo "$as_me:$LINENO: checking for $ac_word" >&5
10774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10775 if test "${ac_cv_prog_F77+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 if test -n "$F77"; then
10779 ac_cv_prog_F77="$F77" # Let the user override the test.
10781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782 for as_dir in $PATH
10785 test -z "$as_dir" && as_dir=.
10786 for ac_exec_ext in '' $ac_executable_extensions; do
10787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10788 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10797 F77=$ac_cv_prog_F77
10798 if test -n "$F77"; then
10799 echo "$as_me:$LINENO: result: $F77" >&5
10800 echo "${ECHO_T}$F77" >&6
10802 echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6
10806 test -n "$F77" && break
10809 if test -z "$F77"; then
10811 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10813 # Extract the first word of "$ac_prog", so it can be a program name with args.
10814 set dummy $ac_prog; ac_word=$2
10815 echo "$as_me:$LINENO: checking for $ac_word" >&5
10816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10817 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 if test -n "$ac_ct_F77"; then
10821 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830 ac_cv_prog_ac_ct_F77="$ac_prog"
10831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10839 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10840 if test -n "$ac_ct_F77"; then
10841 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10842 echo "${ECHO_T}$ac_ct_F77" >&6
10844 echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6
10848 test -n "$ac_ct_F77" && break
10855 # Provide some information about the compiler.
10856 echo "$as_me:10856:" \
10857 "checking for Fortran 77 compiler version" >&5
10858 ac_compiler=`set X $ac_compile; echo $2`
10859 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10860 (eval $ac_compiler --version </dev/null >&5) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }
10864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10865 (eval $ac_compiler -v </dev/null >&5) 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }
10869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10870 (eval $ac_compiler -V </dev/null >&5) 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }
10876 # If we don't use `.F' as extension, the preprocessor is not run on the
10877 # input file. (Note that this only needs to work for GNU compilers.)
10878 ac_save_ext=$ac_ext
10880 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10881 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10882 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 cat >conftest.$ac_ext <<_ACEOF
10893 rm -f conftest.$ac_objext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10895 (eval $ac_compile) 2>conftest.er1
10897 grep -v '^ *+' conftest.er1 >conftest.err
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -z "$ac_f77_werror_flag"
10903 || test ! -s conftest.err'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest.$ac_objext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_compiler_gnu=yes
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10923 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10926 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10927 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10928 ac_ext=$ac_save_ext
10929 ac_test_FFLAGS=${FFLAGS+set}
10930 ac_save_FFLAGS=$FFLAGS
10932 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10933 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10934 if test "${ac_cv_prog_f77_g+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 cat >conftest.$ac_ext <<_ACEOF
10943 rm -f conftest.$ac_objext
10944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945 (eval $ac_compile) 2>conftest.er1
10947 grep -v '^ *+' conftest.er1 >conftest.err
10949 cat conftest.err >&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } &&
10952 { ac_try='test -z "$ac_f77_werror_flag"
10953 || test ! -s conftest.err'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
10960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_cv_prog_f77_g=yes
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ac_cv_prog_f77_g=no
10972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10975 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10976 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10977 if test "$ac_test_FFLAGS" = set; then
10978 FFLAGS=$ac_save_FFLAGS
10979 elif test $ac_cv_prog_f77_g = yes; then
10980 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10986 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10993 G77=`test $ac_compiler_gnu = yes && echo yes`
10995 ac_cpp='$CPP $CPPFLAGS'
10996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11002 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11004 # find the maximum length of command line arguments
11005 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11006 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11007 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 # On DJGPP, this test can blow up pretty badly due to problems in libc
11016 # (any single argument exceeding 2000 bytes causes a buffer overrun
11017 # during glob expansion). Even if it were fixed, the result of this
11018 # check would be larger than it should be.
11019 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11023 # Under GNU Hurd, this test is not required because there is
11024 # no limit to the length of command line arguments.
11025 # Libtool will interpret -1 as no limit whatsoever
11026 lt_cv_sys_max_cmd_len=-1;
11030 # On Win9x/ME, this test blows up -- it succeeds, but takes
11031 # about 5 minutes as the teststring grows exponentially.
11032 # Worse, since 9x/ME are not pre-emptively multitasking,
11033 # you end up with a "frozen" computer, even though with patience
11034 # the test eventually succeeds (with a max line length of 256k).
11035 # Instead, let's just punt: use the minimum linelength reported by
11036 # all of the supported platforms: 8192 (on NT/2K/XP).
11037 lt_cv_sys_max_cmd_len=8192;
11041 # On AmigaOS with pdksh, this test takes hours, literally.
11042 # So we just punt and use a minimum line length of 8192.
11043 lt_cv_sys_max_cmd_len=8192;
11046 netbsd* | freebsd* | openbsd* | darwin* )
11047 # This has been around since 386BSD, at least. Likely further.
11048 if test -x /sbin/sysctl; then
11049 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11050 elif test -x /usr/sbin/sysctl; then
11051 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11053 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11055 # And add a safety zone
11056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11060 # If test is not a shell built-in, we'll probably end up computing a
11061 # maximum length that is only half of the actual maximum length, but
11063 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11064 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11065 = "XX$teststring") >/dev/null 2>&1 &&
11066 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11067 lt_cv_sys_max_cmd_len=$new_result &&
11068 test $i != 17 # 1/2 MB should be enough
11071 teststring=$teststring$teststring
11074 # Add a significant safety factor because C++ compilers can tack on massive
11075 # amounts of additional arguments before passing them to the linker.
11076 # It appears as though 1/2 is a usable value.
11077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11083 if test -n $lt_cv_sys_max_cmd_len ; then
11084 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11085 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11087 echo "$as_me:$LINENO: result: none" >&5
11088 echo "${ECHO_T}none" >&6
11094 # Check for command to grab the raw symbol name followed by C symbol from nm.
11095 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11096 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11097 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 # These are sane defaults that work on at least a few old systems.
11102 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11104 # Character class describing NM global symbol codes.
11105 symcode='[BCDEGRST]'
11107 # Regexp to match symbols that can be accessed directly from C.
11108 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11110 # Transform the above into a raw symbol and a C symbol.
11111 symxfrm='\1 \2\3 \3'
11113 # Transform an extracted symbol line into a proper C declaration
11114 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11116 # Transform an extracted symbol line into symbol name and symbol address
11117 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'"
11119 # Define system-specific variables.
11124 cygwin* | mingw* | pw32*)
11125 symcode='[ABCDGISTW]'
11127 hpux*) # Its linker distinguishes data from code symbols
11128 if test "$host_cpu" = ia64; then
11129 symcode='[ABCDEGRST]'
11131 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11132 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'"
11135 if test "$host_cpu" = ia64; then
11136 symcode='[ABCDGIRSTW]'
11137 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11138 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'"
11141 irix* | nonstopux*)
11142 symcode='[BCDEGRST]'
11145 symcode='[BCDEGQRST]'
11155 # Handle CRLF in mingw tool chain
11159 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11163 # If we're using GNU nm, then use its standard symbol codes.
11164 case `$NM -V 2>&1` in
11165 *GNU* | *'with BFD'*)
11166 symcode='[ABCDGIRSTW]' ;;
11169 # Try without a prefix undercore, then with it.
11170 for ac_symprfx in "" "_"; do
11172 # Write the raw and C identifiers.
11173 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11175 # Check to see that the pipe works correctly.
11179 cat > conftest.$ac_ext <<EOF
11184 void nm_test_func(){}
11188 int main(){nm_test_var='a';nm_test_func();return(0);}
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192 (eval $ac_compile) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; then
11196 # Now try to grab the symbols.
11198 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11199 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && test -s "$nlist"; then
11203 # Try sorting and uniquifying the output.
11204 if sort "$nlist" | uniq > "$nlist"T; then
11205 mv -f "$nlist"T "$nlist"
11210 # Make sure that we snagged all the symbols we need.
11211 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11212 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11213 cat <<EOF > conftest.$ac_ext
11219 # Now generate the symbol file.
11220 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11222 cat <<EOF >> conftest.$ac_ext
11223 #if defined (__STDC__) && __STDC__
11224 # define lt_ptr_t void *
11226 # define lt_ptr_t char *
11230 /* The mapping between symbol names and symbols. */
11235 lt_preloaded_symbols[] =
11238 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11239 cat <<\EOF >> conftest.$ac_ext
11247 # Now try linking the two files.
11248 mv conftest.$ac_objext conftstm.$ac_objext
11249 lt_save_LIBS="$LIBS"
11250 lt_save_CFLAGS="$CFLAGS"
11251 LIBS="conftstm.$ac_objext"
11252 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254 (eval $ac_link) 2>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11260 LIBS="$lt_save_LIBS"
11261 CFLAGS="$lt_save_CFLAGS"
11263 echo "cannot find nm_test_func in $nlist" >&5
11266 echo "cannot find nm_test_var in $nlist" >&5
11269 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11272 echo "$progname: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11275 rm -f conftest* conftst*
11277 # Do not use the global_symbol_pipe unless it works.
11278 if test "$pipe_works" = yes; then
11281 lt_cv_sys_global_symbol_pipe=
11287 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11288 lt_cv_sys_global_symbol_to_cdecl=
11290 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11291 echo "$as_me:$LINENO: result: failed" >&5
11292 echo "${ECHO_T}failed" >&6
11294 echo "$as_me:$LINENO: result: ok" >&5
11295 echo "${ECHO_T}ok" >&6
11298 echo "$as_me:$LINENO: checking for objdir" >&5
11299 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11300 if test "${lt_cv_objdir+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 rm -f .libs 2>/dev/null
11304 mkdir .libs 2>/dev/null
11305 if test -d .libs; then
11308 # MS-DOS does not allow filenames that begin with a dot.
11311 rmdir .libs 2>/dev/null
11313 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11314 echo "${ECHO_T}$lt_cv_objdir" >&6
11315 objdir=$lt_cv_objdir
11323 # AIX sometimes has problems with the GCC collect2 program. For some
11324 # reason, if we set the COLLECT_NAMES environment variable, the problems
11325 # vanish in a puff of smoke.
11326 if test "X${COLLECT_NAMES+set}" != Xset; then
11328 export COLLECT_NAMES
11333 # Sed substitution that helps us do robust quoting. It backslashifies
11334 # metacharacters that are still active within double-quoted strings.
11335 Xsed='sed -e s/^X//'
11336 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11338 # Same as above, but do not quote variable references.
11339 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11341 # Sed substitution to delay expansion of an escaped shell variable in a
11342 # double_quote_subst'ed string.
11343 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11345 # Sed substitution to avoid accidental globbing in evaled expressions
11346 no_glob_subst='s/\*/\\\*/g'
11351 # Global variables:
11352 default_ofile=mklib
11353 can_build_shared=yes
11355 # All known linkers require a `.a' archive for static linking (except M$VC,
11356 # which needs '.lib').
11358 ltmain="$ac_aux_dir/ltmain.sh"
11359 ofile="$default_ofile"
11360 with_gnu_ld="$lt_cv_prog_gnu_ld"
11362 if test -n "$ac_tool_prefix"; then
11363 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11364 set dummy ${ac_tool_prefix}ar; ac_word=$2
11365 echo "$as_me:$LINENO: checking for $ac_word" >&5
11366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367 if test "${ac_cv_prog_AR+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 if test -n "$AR"; then
11371 ac_cv_prog_AR="$AR" # Let the user override the test.
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 ac_cv_prog_AR="${ac_tool_prefix}ar"
11381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 if test -n "$AR"; then
11391 echo "$as_me:$LINENO: result: $AR" >&5
11392 echo "${ECHO_T}$AR" >&6
11394 echo "$as_me:$LINENO: result: no" >&5
11395 echo "${ECHO_T}no" >&6
11399 if test -z "$ac_cv_prog_AR"; then
11401 # Extract the first word of "ar", so it can be a program name with args.
11402 set dummy ar; ac_word=$2
11403 echo "$as_me:$LINENO: checking for $ac_word" >&5
11404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11405 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 if test -n "$ac_ct_AR"; then
11409 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418 ac_cv_prog_ac_ct_AR="ar"
11419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11425 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11428 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11429 if test -n "$ac_ct_AR"; then
11430 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11431 echo "${ECHO_T}$ac_ct_AR" >&6
11433 echo "$as_me:$LINENO: result: no" >&5
11434 echo "${ECHO_T}no" >&6
11439 AR="$ac_cv_prog_AR"
11442 if test -n "$ac_tool_prefix"; then
11443 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11444 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11445 echo "$as_me:$LINENO: checking for $ac_word" >&5
11446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11447 if test "${ac_cv_prog_RANLIB+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 if test -n "$RANLIB"; then
11451 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $PATH
11457 test -z "$as_dir" && as_dir=.
11458 for ac_exec_ext in '' $ac_executable_extensions; do
11459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11460 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11469 RANLIB=$ac_cv_prog_RANLIB
11470 if test -n "$RANLIB"; then
11471 echo "$as_me:$LINENO: result: $RANLIB" >&5
11472 echo "${ECHO_T}$RANLIB" >&6
11474 echo "$as_me:$LINENO: result: no" >&5
11475 echo "${ECHO_T}no" >&6
11479 if test -z "$ac_cv_prog_RANLIB"; then
11480 ac_ct_RANLIB=$RANLIB
11481 # Extract the first word of "ranlib", so it can be a program name with args.
11482 set dummy ranlib; ac_word=$2
11483 echo "$as_me:$LINENO: checking for $ac_word" >&5
11484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11485 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 if test -n "$ac_ct_RANLIB"; then
11489 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11495 test -z "$as_dir" && as_dir=.
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11498 ac_cv_prog_ac_ct_RANLIB="ranlib"
11499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11508 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11509 if test -n "$ac_ct_RANLIB"; then
11510 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11511 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11513 echo "$as_me:$LINENO: result: no" >&5
11514 echo "${ECHO_T}no" >&6
11517 RANLIB=$ac_ct_RANLIB
11519 RANLIB="$ac_cv_prog_RANLIB"
11522 if test -n "$ac_tool_prefix"; then
11523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11524 set dummy ${ac_tool_prefix}strip; ac_word=$2
11525 echo "$as_me:$LINENO: checking for $ac_word" >&5
11526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11527 if test "${ac_cv_prog_STRIP+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 if test -n "$STRIP"; then
11531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in $PATH
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11540 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11549 STRIP=$ac_cv_prog_STRIP
11550 if test -n "$STRIP"; then
11551 echo "$as_me:$LINENO: result: $STRIP" >&5
11552 echo "${ECHO_T}$STRIP" >&6
11554 echo "$as_me:$LINENO: result: no" >&5
11555 echo "${ECHO_T}no" >&6
11559 if test -z "$ac_cv_prog_STRIP"; then
11561 # Extract the first word of "strip", so it can be a program name with args.
11562 set dummy strip; ac_word=$2
11563 echo "$as_me:$LINENO: checking for $ac_word" >&5
11564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11565 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 if test -n "$ac_ct_STRIP"; then
11569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11578 ac_cv_prog_ac_ct_STRIP="strip"
11579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11585 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11589 if test -n "$ac_ct_STRIP"; then
11590 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11591 echo "${ECHO_T}$ac_ct_STRIP" >&6
11593 echo "$as_me:$LINENO: result: no" >&5
11594 echo "${ECHO_T}no" >&6
11599 STRIP="$ac_cv_prog_STRIP"
11604 old_CFLAGS="$CFLAGS"
11606 # Set sane defaults for various variables
11607 test -z "$AR" && AR=ar
11608 test -z "$AR_FLAGS" && AR_FLAGS=cru
11609 test -z "$AS" && AS=as
11610 test -z "$CC" && CC=cc
11611 test -z "$LTCC" && LTCC=$CC
11612 test -z "$DLLTOOL" && DLLTOOL=dlltool
11613 test -z "$LD" && LD=ld
11614 test -z "$LN_S" && LN_S="ln -s"
11615 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11616 test -z "$NM" && NM=nm
11617 test -z "$SED" && SED=sed
11618 test -z "$OBJDUMP" && OBJDUMP=objdump
11619 test -z "$RANLIB" && RANLIB=:
11620 test -z "$STRIP" && STRIP=:
11621 test -z "$ac_objext" && ac_objext=o
11623 # Determine commands to create old-style static archives.
11624 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11625 old_postinstall_cmds='chmod 644 $oldlib'
11626 old_postuninstall_cmds=
11628 if test -n "$RANLIB"; then
11631 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11634 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11637 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11640 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11642 # Only perform the check for file, if the check method requires it
11643 case $deplibs_check_method in
11645 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11646 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11647 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11648 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11656 lt_save_MAGIC_CMD="$MAGIC_CMD"
11657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11658 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11659 for ac_dir in $ac_dummy; do
11661 test -z "$ac_dir" && ac_dir=.
11662 if test -f $ac_dir/${ac_tool_prefix}file; then
11663 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11664 if test -n "$file_magic_test_file"; then
11665 case $deplibs_check_method in
11667 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11669 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11670 $EGREP "$file_magic_regex" > /dev/null; then
11675 *** Warning: the command libtool uses to detect shared libraries,
11676 *** $file_magic_cmd, produces output that libtool cannot recognize.
11677 *** The result is that libtool may fail to recognize shared libraries
11678 *** as such. This will affect the creation of libtool libraries that
11679 *** depend on shared libraries, but programs linked with such libtool
11680 *** libraries will work regardless of this problem. Nevertheless, you
11681 *** may want to report the problem to your system manager and/or to
11682 *** bug-libtool@gnu.org
11692 MAGIC_CMD="$lt_save_MAGIC_CMD"
11697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11698 if test -n "$MAGIC_CMD"; then
11699 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11700 echo "${ECHO_T}$MAGIC_CMD" >&6
11702 echo "$as_me:$LINENO: result: no" >&5
11703 echo "${ECHO_T}no" >&6
11706 if test -z "$lt_cv_path_MAGIC_CMD"; then
11707 if test -n "$ac_tool_prefix"; then
11708 echo "$as_me:$LINENO: checking for file" >&5
11709 echo $ECHO_N "checking for file... $ECHO_C" >&6
11710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11718 lt_save_MAGIC_CMD="$MAGIC_CMD"
11719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11721 for ac_dir in $ac_dummy; do
11723 test -z "$ac_dir" && ac_dir=.
11724 if test -f $ac_dir/file; then
11725 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11726 if test -n "$file_magic_test_file"; then
11727 case $deplibs_check_method in
11729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11732 $EGREP "$file_magic_regex" > /dev/null; then
11737 *** Warning: the command libtool uses to detect shared libraries,
11738 *** $file_magic_cmd, produces output that libtool cannot recognize.
11739 *** The result is that libtool may fail to recognize shared libraries
11740 *** as such. This will affect the creation of libtool libraries that
11741 *** depend on shared libraries, but programs linked with such libtool
11742 *** libraries will work regardless of this problem. Nevertheless, you
11743 *** may want to report the problem to your system manager and/or to
11744 *** bug-libtool@gnu.org
11754 MAGIC_CMD="$lt_save_MAGIC_CMD"
11759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760 if test -n "$MAGIC_CMD"; then
11761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11762 echo "${ECHO_T}$MAGIC_CMD" >&6
11764 echo "$as_me:$LINENO: result: no" >&5
11765 echo "${ECHO_T}no" >&6
11778 enable_win32_dll=no
11780 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11781 if test "${enable_libtool_lock+set}" = set; then
11782 enableval="$enable_libtool_lock"
11785 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11788 # Check whether --with-pic or --without-pic was given.
11789 if test "${with_pic+set}" = set; then
11790 withval="$with_pic"
11791 pic_mode="$withval"
11795 test -z "$pic_mode" && pic_mode=default
11797 # Use C for the default configuration in the libtool script
11801 ac_cpp='$CPP $CPPFLAGS'
11802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11807 # Source file extension for C test sources.
11810 # Object file extension for compiled C test sources.
11814 # Code to be used in simple compile tests
11815 lt_simple_compile_test_code="int some_variable = 0;\n"
11817 # Code to be used in simple link tests
11818 lt_simple_link_test_code='int main(){return(0);}\n'
11821 # If no C compiler was specified, use CC.
11824 # Allow CC to be a program name with arguments.
11829 # Check for any special shared library compilation flags.
11832 if test "$GCC" = no; then
11835 lt_prog_cc_shlib='-belf'
11839 if test -n "$lt_prog_cc_shlib"; then
11840 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11841 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11842 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11844 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11845 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11846 lt_cv_prog_cc_can_build_shared=no
11852 # Check to make sure the static flag actually works.
11854 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11855 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11856 if test "${lt_prog_compiler_static_works+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 lt_prog_compiler_static_works=no
11860 save_LDFLAGS="$LDFLAGS"
11861 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11862 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11863 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11864 # The compiler can only warn and ignore the option if not recognized
11865 # So say no if there are warnings
11866 if test -s conftest.err; then
11867 # Append any errors to the config.log.
11868 cat conftest.err 1>&5
11870 lt_prog_compiler_static_works=yes
11874 LDFLAGS="$save_LDFLAGS"
11877 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11878 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11880 if test x"$lt_prog_compiler_static_works" = xyes; then
11883 lt_prog_compiler_static=
11889 lt_prog_compiler_no_builtin_flag=
11891 if test "$GCC" = yes; then
11892 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11895 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11896 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11897 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 lt_cv_prog_compiler_rtti_exceptions=no
11901 ac_outfile=conftest.$ac_objext
11902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11903 lt_compiler_flag="-fno-rtti -fno-exceptions"
11904 # Insert the option either (1) after the last *FLAGS variable, or
11905 # (2) before a word containing "conftest.", or (3) at the end.
11906 # Note that $ac_compile itself does not contain backslashes and begins
11907 # with a dollar sign (not a hyphen), so the echo should work correctly.
11908 # The option is referenced via a variable to avoid confusing sed.
11909 lt_compile=`echo "$ac_compile" | $SED \
11910 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11912 -e 's:$: $lt_compiler_flag:'`
11913 (eval echo "\"\$as_me:11913: $lt_compile\"" >&5)
11914 (eval "$lt_compile" 2>conftest.err)
11916 cat conftest.err >&5
11917 echo "$as_me:11917: \$? = $ac_status" >&5
11918 if (exit $ac_status) && test -s "$ac_outfile"; then
11919 # The compiler can only warn and ignore the option if not recognized
11920 # So say no if there are warnings
11921 if test ! -s conftest.err; then
11922 lt_cv_prog_compiler_rtti_exceptions=yes
11928 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11929 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11931 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11932 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11939 lt_prog_compiler_wl=
11940 lt_prog_compiler_pic=
11941 lt_prog_compiler_static=
11943 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11944 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11946 if test "$GCC" = yes; then
11947 lt_prog_compiler_wl='-Wl,'
11948 lt_prog_compiler_static='-static'
11952 # All AIX code is PIC.
11953 if test "$host_cpu" = ia64; then
11954 # AIX 5 now supports IA64 processor
11955 lt_prog_compiler_static='-Bstatic'
11960 # FIXME: we need at least 68020 code to build shared libraries, but
11961 # adding the `-m68020' flag to GCC prevents building anything better,
11963 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11966 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11967 # PIC is the default for these OSes.
11970 mingw* | pw32* | os2*)
11971 # This hack is so that the source file can tell whether it is being
11972 # built for inclusion in a dll (and should export symbols for example).
11973 lt_prog_compiler_pic='-DDLL_EXPORT'
11976 darwin* | rhapsody*)
11977 # PIC is the default on this platform
11978 # Common symbols not allowed in MH_DYLIB files
11979 lt_prog_compiler_pic='-fno-common'
11983 # Just because we use GCC doesn't mean we suddenly get shared libraries
11984 # on systems that don't support them.
11985 lt_prog_compiler_can_build_shared=no
11990 if test -d /usr/nec; then
11991 lt_prog_compiler_pic=-Kconform_pic
11996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11997 # not for PA HP-UX.
11998 case "$host_cpu" in
12003 lt_prog_compiler_pic='-fPIC'
12009 lt_prog_compiler_pic='-fPIC'
12013 # PORTME Check for flag to pass linker flags through the system compiler.
12016 lt_prog_compiler_wl='-Wl,'
12017 if test "$host_cpu" = ia64; then
12018 # AIX 5 now supports IA64 processor
12019 lt_prog_compiler_static='-Bstatic'
12021 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12025 # PIC is the default on this platform
12026 # Common symbols not allowed in MH_DYLIB files
12027 case "$cc_basename" in
12029 lt_prog_compiler_pic='-qnocommon'
12030 lt_prog_compiler_wl='-Wl,'
12035 mingw* | pw32* | os2*)
12036 # This hack is so that the source file can tell whether it is being
12037 # built for inclusion in a dll (and should export symbols for example).
12038 lt_prog_compiler_pic='-DDLL_EXPORT'
12041 hpux9* | hpux10* | hpux11*)
12042 lt_prog_compiler_wl='-Wl,'
12043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12044 # not for PA HP-UX.
12045 case "$host_cpu" in
12050 lt_prog_compiler_pic='+Z'
12053 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12054 lt_prog_compiler_static='${wl}-a ${wl}archive'
12057 irix5* | irix6* | nonstopux*)
12058 lt_prog_compiler_wl='-Wl,'
12059 # PIC (with -KPIC) is the default.
12060 lt_prog_compiler_static='-non_shared'
12064 lt_prog_compiler_pic='-KPIC'
12065 lt_prog_compiler_static='-Bstatic'
12071 lt_prog_compiler_wl='-Wl,'
12072 lt_prog_compiler_pic='-KPIC'
12073 lt_prog_compiler_static='-static'
12076 lt_prog_compiler_wl='-Wl,'
12077 # All Alpha code is PIC.
12078 lt_prog_compiler_static='-non_shared'
12083 osf3* | osf4* | osf5*)
12084 lt_prog_compiler_wl='-Wl,'
12085 # All OSF/1 code is PIC.
12086 lt_prog_compiler_static='-non_shared'
12090 lt_prog_compiler_pic='-Kpic'
12091 lt_prog_compiler_static='-dn'
12095 lt_prog_compiler_wl='-Wl,'
12096 lt_prog_compiler_pic='-KPIC'
12097 lt_prog_compiler_static='-Bstatic'
12101 lt_prog_compiler_wl='-Qoption ld '
12102 lt_prog_compiler_pic='-PIC'
12103 lt_prog_compiler_static='-Bstatic'
12106 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12107 lt_prog_compiler_wl='-Wl,'
12108 lt_prog_compiler_pic='-KPIC'
12109 lt_prog_compiler_static='-Bstatic'
12113 if test -d /usr/nec ;then
12114 lt_prog_compiler_pic='-Kconform_pic'
12115 lt_prog_compiler_static='-Bstatic'
12120 lt_prog_compiler_pic='-pic'
12121 lt_prog_compiler_static='-Bstatic'
12125 lt_prog_compiler_can_build_shared=no
12130 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12131 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12134 # Check to make sure the PIC flag actually works.
12136 if test -n "$lt_prog_compiler_pic"; then
12138 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12139 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12140 if test "${lt_prog_compiler_pic_works+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 lt_prog_compiler_pic_works=no
12144 ac_outfile=conftest.$ac_objext
12145 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12146 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12147 # Insert the option either (1) after the last *FLAGS variable, or
12148 # (2) before a word containing "conftest.", or (3) at the end.
12149 # Note that $ac_compile itself does not contain backslashes and begins
12150 # with a dollar sign (not a hyphen), so the echo should work correctly.
12151 # The option is referenced via a variable to avoid confusing sed.
12152 lt_compile=`echo "$ac_compile" | $SED \
12153 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12155 -e 's:$: $lt_compiler_flag:'`
12156 (eval echo "\"\$as_me:12156: $lt_compile\"" >&5)
12157 (eval "$lt_compile" 2>conftest.err)
12159 cat conftest.err >&5
12160 echo "$as_me:12160: \$? = $ac_status" >&5
12161 if (exit $ac_status) && test -s "$ac_outfile"; then
12162 # The compiler can only warn and ignore the option if not recognized
12163 # So say no if there are warnings
12164 if test ! -s conftest.err; then
12165 lt_prog_compiler_pic_works=yes
12171 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12172 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12174 if test x"$lt_prog_compiler_pic_works" = xyes; then
12175 case $lt_prog_compiler_pic in
12177 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12180 lt_prog_compiler_pic=
12181 lt_prog_compiler_can_build_shared=no
12186 # For platforms which do not support PIC, -DPIC is meaningless:
12188 lt_prog_compiler_pic=
12191 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12195 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12196 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12197 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 lt_cv_prog_compiler_c_o=no
12201 $rm -r conftest 2>/dev/null
12205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12207 lt_compiler_flag="-o out/conftest2.$ac_objext"
12208 # Insert the option either (1) after the last *FLAGS variable, or
12209 # (2) before a word containing "conftest.", or (3) at the end.
12210 # Note that $ac_compile itself does not contain backslashes and begins
12211 # with a dollar sign (not a hyphen), so the echo should work correctly.
12212 lt_compile=`echo "$ac_compile" | $SED \
12213 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12215 -e 's:$: $lt_compiler_flag:'`
12216 (eval echo "\"\$as_me:12216: $lt_compile\"" >&5)
12217 (eval "$lt_compile" 2>out/conftest.err)
12219 cat out/conftest.err >&5
12220 echo "$as_me:12220: \$? = $ac_status" >&5
12221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12223 # The compiler can only warn and ignore the option if not recognized
12224 # So say no if there are warnings
12225 if test ! -s out/conftest.err; then
12226 lt_cv_prog_compiler_c_o=yes
12231 # SGI C++ compiler will create directory out/ii_files/ for
12232 # template instantiation
12233 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12234 $rm out/* && rmdir out
12240 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12241 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12244 hard_links="nottested"
12245 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12246 # do not overwrite the value of need_locks provided by the user
12247 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12248 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12253 ln conftest.a conftest.b 2>&5 || hard_links=no
12254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12255 echo "$as_me:$LINENO: result: $hard_links" >&5
12256 echo "${ECHO_T}$hard_links" >&6
12257 if test "$hard_links" = no; then
12258 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12259 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12266 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12267 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12270 allow_undefined_flag=
12271 enable_shared_with_static_runtimes=no
12273 archive_expsym_cmds=
12274 old_archive_From_new_cmds=
12275 old_archive_from_expsyms_cmds=
12276 export_dynamic_flag_spec=
12277 whole_archive_flag_spec=
12278 thread_safe_flag_spec=
12279 hardcode_libdir_flag_spec=
12280 hardcode_libdir_flag_spec_ld=
12281 hardcode_libdir_separator=
12283 hardcode_minus_L=no
12284 hardcode_shlibpath_var=unsupported
12285 link_all_deplibs=unknown
12286 hardcode_automatic=no
12288 module_expsym_cmds=
12289 always_export_symbols=no
12290 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12291 # include_expsyms should be a list of space-separated symbols to be *always*
12292 # included in the symbol list
12294 # exclude_expsyms can be an extended regexp of symbols to exclude
12295 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12296 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12297 # as well as any symbol that contains `d'.
12298 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12299 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12300 # platforms (ab)use it in PIC code, but their linkers get confused if
12301 # the symbol is explicitly referenced. Since portable code cannot
12302 # rely on this symbol name, it's probably fine to never include it in
12303 # preloaded symbol tables.
12304 extract_expsyms_cmds=
12307 cygwin* | mingw* | pw32*)
12308 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12309 # When not using gcc, we currently assume that we are using
12310 # Microsoft Visual C++.
12311 if test "$GCC" != yes; then
12321 if test "$with_gnu_ld" = yes; then
12322 # If archive_cmds runs LD, not CC, wlarc should be empty
12325 # See if GNU ld supports shared libraries.
12327 aix3* | aix4* | aix5*)
12328 # On AIX/PPC, the GNU linker is very broken
12329 if test "$host_cpu" != ia64; then
12333 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12334 *** to be unable to reliably create shared libraries on AIX.
12335 *** Therefore, libtool is disabling shared libraries support. If you
12336 *** really care for shared libraries, you may want to modify your PATH
12337 *** so that a non-GNU linker is found, and then restart.
12344 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)'
12345 hardcode_libdir_flag_spec='-L$libdir'
12346 hardcode_minus_L=yes
12348 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12349 # that the semantics of dynamic libraries on AmigaOS, at least up
12350 # to version 4, is to share data among multiple programs linked
12351 # with the same dynamic library. Since this doesn't match the
12352 # behavior of shared libraries on other platforms, we can't use
12358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12359 allow_undefined_flag=unsupported
12360 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12361 # support --undefined. This deserves some investigation. FIXME
12362 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12368 cygwin* | mingw* | pw32*)
12369 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12370 # as there is no search path for DLLs.
12371 hardcode_libdir_flag_spec='-L$libdir'
12372 allow_undefined_flag=unsupported
12373 always_export_symbols=no
12374 enable_shared_with_static_runtimes=yes
12375 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12377 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12379 # If the export-symbols file already is a .def file (1st line
12380 # is EXPORTS), use it as is; otherwise, prepend...
12381 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12382 cp $export_symbols $output_objdir/$soname.def;
12384 echo EXPORTS > $output_objdir/$soname.def;
12385 cat $export_symbols >> $output_objdir/$soname.def;
12387 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12395 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12404 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12409 *** create shared libraries on Solaris systems. Therefore, libtool
12410 *** is disabling shared libraries support. We urge you to upgrade GNU
12411 *** binutils to release 2.9.1 or newer. Another option is to modify
12412 *** your PATH or compiler configuration so that the native linker is
12413 *** used, and then restart.
12416 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12425 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12427 hardcode_direct=yes
12428 hardcode_shlibpath_var=no
12432 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12433 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12434 archive_cmds="$tmp_archive_cmds"
12435 supports_anon_versioning=no
12436 case `$LD -v 2>/dev/null` in
12437 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12438 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12439 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12440 *\ 2.11.*) ;; # other 2.11 versions
12441 *) supports_anon_versioning=yes ;;
12443 if test $supports_anon_versioning = yes; then
12444 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12446 $echo "local: *; };" >> $output_objdir/$libname.ver~
12447 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12449 archive_expsym_cmds="$tmp_archive_cmds"
12457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12466 if test "$ld_shlibs" = yes; then
12467 runpath_var=LD_RUN_PATH
12468 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12469 export_dynamic_flag_spec='${wl}--export-dynamic'
12470 # ancient GNU ld didn't support --whole-archive et. al.
12471 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12472 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12474 whole_archive_flag_spec=
12478 # PORTME fill in a description of your system's linker (not GNU ld)
12481 allow_undefined_flag=unsupported
12482 always_export_symbols=yes
12483 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'
12484 # Note: this linker hardcodes the directories in LIBPATH if there
12485 # are no directories specified by -L.
12486 hardcode_minus_L=yes
12487 if test "$GCC" = yes && test -z "$link_static_flag"; then
12488 # Neither direct hardcoding nor static linking is supported with a
12490 hardcode_direct=unsupported
12495 if test "$host_cpu" = ia64; then
12496 # On IA64, the linker does run time linking by default, so we don't
12497 # have to do anything special.
12498 aix_use_runtimelinking=no
12499 exp_sym_flag='-Bexport'
12502 # If we're using GNU nm, then we don't want the "-C" option.
12503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12504 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12505 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'
12507 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'
12509 aix_use_runtimelinking=no
12511 # Test if we are trying to use run time linking or normal
12512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12513 # need to do runtime linking.
12514 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12515 for ld_flag in $LDFLAGS; do
12516 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12517 aix_use_runtimelinking=yes
12523 exp_sym_flag='-bexport'
12524 no_entry_flag='-bnoentry'
12527 # When large executables or shared objects are built, AIX ld can
12528 # have problems creating the table of contents. If linking a library
12529 # or program results in "error TOC overflow" add -mminimal-toc to
12530 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12531 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12534 hardcode_direct=yes
12535 hardcode_libdir_separator=':'
12536 link_all_deplibs=yes
12538 if test "$GCC" = yes; then
12539 case $host_os in aix4.012|aix4.012.*)
12540 # We only want to do this on AIX 4.2 and lower, the check
12541 # below for broken collect2 doesn't work under 4.3+
12542 collect2name=`${CC} -print-prog-name=collect2`
12543 if test -f "$collect2name" && \
12544 strings "$collect2name" | grep resolve_lib_name >/dev/null
12546 # We have reworked collect2
12547 hardcode_direct=yes
12549 # We have old collect2
12550 hardcode_direct=unsupported
12551 # It fails to find uninstalled libraries when the uninstalled
12552 # path is not listed in the libpath. Setting hardcode_minus_L
12553 # to unsupported forces relinking
12554 hardcode_minus_L=yes
12555 hardcode_libdir_flag_spec='-L$libdir'
12556 hardcode_libdir_separator=
12559 shared_flag='-shared'
12562 if test "$host_cpu" = ia64; then
12563 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12564 # chokes on -Wl,-G. The following line is correct:
12567 if test "$aix_use_runtimelinking" = yes; then
12568 shared_flag='${wl}-G'
12570 shared_flag='${wl}-bM:SRE'
12575 # It seems that -bexpall does not export symbols beginning with
12576 # underscore (_), so it is better to generate a list of symbols to export.
12577 always_export_symbols=yes
12578 if test "$aix_use_runtimelinking" = yes; then
12579 # Warning - without using the other runtime loading flags (-brtl),
12580 # -berok will link without error, but may produce a broken library.
12581 allow_undefined_flag='-berok'
12582 # Determine the default libpath from the value encoded in an empty executable.
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12600 (eval $ac_link) 2>conftest.er1
12602 grep -v '^ *+' conftest.er1 >conftest.err
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_c_werror_flag"
12608 || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest$ac_exeext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12623 # Check for a 64-bit object if we didn't find anything.
12624 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; }
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12631 rm -f conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12635 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12636 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"
12638 if test "$host_cpu" = ia64; then
12639 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12640 allow_undefined_flag="-z nodefs"
12641 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"
12643 # Determine the default libpath from the value encoded in an empty executable.
12644 cat >conftest.$ac_ext <<_ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12659 rm -f conftest.$ac_objext conftest$ac_exeext
12660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661 (eval $ac_link) 2>conftest.er1
12663 grep -v '^ *+' conftest.er1 >conftest.err
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
12668 { ac_try='test -z "$ac_c_werror_flag"
12669 || test ! -s conftest.err'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } &&
12675 { ac_try='test -s conftest$ac_exeext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12684 # Check for a 64-bit object if we didn't find anything.
12685 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; }
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12692 rm -f conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
12694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12696 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12697 # Warning - without using the other run time loading flags,
12698 # -berok will link without error, but may produce a broken library.
12699 no_undefined_flag=' ${wl}-bernotok'
12700 allow_undefined_flag=' ${wl}-berok'
12701 # -bexpall does not export symbols beginning with underscore (_)
12702 always_export_symbols=yes
12703 # Exported symbols can be pulled into shared objects from archives
12704 whole_archive_flag_spec=' '
12705 archive_cmds_need_lc=yes
12706 # This is similar to how AIX traditionally builds it's shared libraries.
12707 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'
12713 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)'
12714 hardcode_libdir_flag_spec='-L$libdir'
12715 hardcode_minus_L=yes
12716 # see comment about different semantics on the GNU ld section
12721 export_dynamic_flag_spec=-rdynamic
12724 cygwin* | mingw* | pw32*)
12725 # When not using gcc, we currently assume that we are using
12726 # Microsoft Visual C++.
12727 # hardcode_libdir_flag_spec is actually meaningless, as there is
12728 # no search path for DLLs.
12729 hardcode_libdir_flag_spec=' '
12730 allow_undefined_flag=unsupported
12731 # Tell ltmain to make .lib files, not .a files.
12733 # Tell ltmain to make .dll files, not .so files.
12735 # FIXME: Setting linknames here is a bad hack.
12736 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12737 # The linker will automatically build a .lib file if we build a DLL.
12738 old_archive_From_new_cmds='true'
12739 # FIXME: Should let the user specify the lib program.
12740 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12741 fix_srcfile_path='`cygpath -w "$srcfile"`'
12742 enable_shared_with_static_runtimes=yes
12745 darwin* | rhapsody*)
12747 rhapsody* | darwin1.[012])
12748 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12751 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12752 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12754 case ${MACOSX_DEPLOYMENT_TARGET} in
12756 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12759 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12765 archive_cmds_need_lc=no
12767 hardcode_automatic=yes
12768 hardcode_shlibpath_var=unsupported
12769 whole_archive_flag_spec=''
12770 link_all_deplibs=yes
12771 if test "$GCC" = yes ; then
12772 output_verbose_link_cmd='echo'
12773 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12774 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12775 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12776 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}'
12777 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}'
12779 case "$cc_basename" in
12781 output_verbose_link_cmd='echo'
12782 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12783 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12784 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12785 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}'
12786 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}'
12796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12797 hardcode_libdir_flag_spec='-L$libdir'
12798 hardcode_shlibpath_var=no
12805 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12806 # support. Future versions do this automatically, but an explicit c++rt0.o
12807 # does not break anything, and helps significantly (at the cost of a little
12810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12811 hardcode_libdir_flag_spec='-R$libdir'
12812 hardcode_direct=yes
12813 hardcode_shlibpath_var=no
12816 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12819 hardcode_direct=yes
12820 hardcode_minus_L=yes
12821 hardcode_shlibpath_var=no
12824 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12825 freebsd* | kfreebsd*-gnu)
12826 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12827 hardcode_libdir_flag_spec='-R$libdir'
12828 hardcode_direct=yes
12829 hardcode_shlibpath_var=no
12833 if test "$GCC" = yes; then
12834 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'
12836 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'
12838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12839 hardcode_libdir_separator=:
12840 hardcode_direct=yes
12842 # hardcode_minus_L: Not really in the search PATH,
12843 # but as the default location of the library.
12844 hardcode_minus_L=yes
12845 export_dynamic_flag_spec='${wl}-E'
12849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12850 case "$host_cpu" in
12852 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12855 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12859 case "$host_cpu" in
12861 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12864 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12868 if test "$with_gnu_ld" = no; then
12869 case "$host_cpu" in
12871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12872 hardcode_libdir_flag_spec_ld='+b $libdir'
12873 hardcode_libdir_separator=:
12875 hardcode_shlibpath_var=no
12878 hardcode_libdir_flag_spec='-L$libdir'
12880 hardcode_shlibpath_var=no
12882 # hardcode_minus_L: Not really in the search PATH,
12883 # but as the default location of the library.
12884 hardcode_minus_L=yes
12887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12888 hardcode_libdir_separator=:
12889 hardcode_direct=yes
12890 export_dynamic_flag_spec='${wl}-E'
12892 # hardcode_minus_L: Not really in the search PATH,
12893 # but as the default location of the library.
12894 hardcode_minus_L=yes
12900 irix5* | irix6* | nonstopux*)
12901 if test "$GCC" = yes; then
12902 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'
12904 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'
12905 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12908 hardcode_libdir_separator=:
12909 link_all_deplibs=yes
12913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12916 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12918 hardcode_libdir_flag_spec='-R$libdir'
12919 hardcode_direct=yes
12920 hardcode_shlibpath_var=no
12924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12925 hardcode_direct=yes
12926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12927 hardcode_libdir_separator=:
12928 hardcode_shlibpath_var=no
12932 hardcode_direct=yes
12933 hardcode_shlibpath_var=no
12934 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12936 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12938 export_dynamic_flag_spec='${wl}-E'
12941 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12943 hardcode_libdir_flag_spec='-R$libdir'
12946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12954 hardcode_libdir_flag_spec='-L$libdir'
12955 hardcode_minus_L=yes
12956 allow_undefined_flag=unsupported
12957 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'
12958 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12962 if test "$GCC" = yes; then
12963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12964 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'
12966 allow_undefined_flag=' -expect_unresolved \*'
12967 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'
12969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12970 hardcode_libdir_separator=:
12973 osf4* | osf5*) # as osf3* with the addition of -msym flag
12974 if test "$GCC" = yes; then
12975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12976 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'
12977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12979 allow_undefined_flag=' -expect_unresolved \*'
12980 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'
12981 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12982 $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'
12984 # Both c and cxx compiler support -rpath directly
12985 hardcode_libdir_flag_spec='-rpath $libdir'
12987 hardcode_libdir_separator=:
12991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12992 hardcode_shlibpath_var=no
12993 export_dynamic_flag_spec='${wl}-Bexport'
12994 runpath_var=LD_RUN_PATH
12995 hardcode_runpath_var=yes
12999 no_undefined_flag=' -z text'
13000 if test "$GCC" = yes; then
13001 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13002 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13006 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13009 hardcode_libdir_flag_spec='-R$libdir'
13010 hardcode_shlibpath_var=no
13012 solaris2.[0-5] | solaris2.[0-5].*) ;;
13013 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13014 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13016 link_all_deplibs=yes
13020 if test "x$host_vendor" = xsequent; then
13021 # Use $CC to link under sequent, because it throws in some extra .o
13022 # files that make .init and .fini sections work.
13023 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13025 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13027 hardcode_libdir_flag_spec='-L$libdir'
13028 hardcode_direct=yes
13029 hardcode_minus_L=yes
13030 hardcode_shlibpath_var=no
13034 case $host_vendor in
13036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13037 hardcode_direct=yes # is this really true???
13040 ## LD is ld it makes a PLAMLIB
13041 ## CC just makes a GrossModule.
13042 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13043 reload_cmds='$CC -r -o $output$reload_objs'
13047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13051 runpath_var='LD_RUN_PATH'
13052 hardcode_shlibpath_var=no
13056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057 hardcode_shlibpath_var=no
13058 export_dynamic_flag_spec='-Bexport'
13062 if test -d /usr/nec; then
13063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13064 hardcode_shlibpath_var=no
13065 runpath_var=LD_RUN_PATH
13066 hardcode_runpath_var=yes
13072 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13073 hardcode_direct=yes
13074 hardcode_minus_L=no
13075 hardcode_shlibpath_var=no
13076 hardcode_runpath_var=yes
13077 runpath_var=LD_RUN_PATH
13080 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13081 no_undefined_flag='${wl}-z ${wl}text'
13082 if test "$GCC" = yes; then
13083 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13085 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13087 runpath_var='LD_RUN_PATH'
13088 hardcode_shlibpath_var=no
13092 no_undefined_flag=' -z text'
13093 # $CC -shared without GNU ld will not create a library from C++
13094 # object files and a static libstdc++, better avoid it by now
13095 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13096 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13097 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13098 hardcode_libdir_flag_spec=
13099 hardcode_shlibpath_var=no
13100 runpath_var='LD_RUN_PATH'
13104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13105 hardcode_libdir_flag_spec='-L$libdir'
13106 hardcode_shlibpath_var=no
13115 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13116 echo "${ECHO_T}$ld_shlibs" >&6
13117 test "$ld_shlibs" = no && can_build_shared=no
13119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13120 if test "$GCC" = yes; then
13121 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13125 # Do we need to explicitly link libc?
13127 case "x$archive_cmds_need_lc" in
13129 # Assume -lc should be added
13130 archive_cmds_need_lc=yes
13132 if test "$enable_shared" = yes && test "$GCC" = yes; then
13133 case $archive_cmds in
13135 # FIXME: we may have to deal with multi-command sequences.
13138 # Test whether the compiler implicitly links with -lc since on some
13139 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13140 # to ld, don't add -lc before -lgcc.
13141 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13142 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13144 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147 (eval $ac_compile) 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } 2>conftest.err; then
13153 libobjs=conftest.$ac_objext
13155 wl=$lt_prog_compiler_wl
13161 lt_save_allow_undefined_flag=$allow_undefined_flag
13162 allow_undefined_flag=
13163 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13164 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }
13169 archive_cmds_need_lc=no
13171 archive_cmds_need_lc=yes
13173 allow_undefined_flag=$lt_save_allow_undefined_flag
13175 cat conftest.err 1>&5
13178 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13179 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13186 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13187 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13188 library_names_spec=
13189 libname_spec='lib$name'
13193 postuninstall_cmds=
13197 shlibpath_overrides_runpath=unknown
13199 dynamic_linker="$host_os ld.so"
13200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13201 if test "$GCC" = yes; then
13202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13203 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13204 # if the path contains ";" then we assume it to be the separator
13205 # otherwise default to the standard path separator (i.e. ":") - it is
13206 # assumed that no part of a normal pathname contains ";" but that should
13207 # okay in the real world where ";" in dirpaths is itself problematic.
13208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13213 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13215 need_lib_prefix=unknown
13216 hardcode_into_libs=no
13218 # when you set need_version to no, make sure it does not cause -set_version
13219 # flags to be left without arguments
13220 need_version=unknown
13225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13226 shlibpath_var=LIBPATH
13228 # AIX 3 has no versioning support, so we append a major version to the name.
13229 soname_spec='${libname}${release}${shared_ext}$major'
13236 hardcode_into_libs=yes
13237 if test "$host_cpu" = ia64; then
13238 # AIX 5 supports IA64
13239 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13240 shlibpath_var=LD_LIBRARY_PATH
13242 # With GCC up to 2.95.x, collect2 would create an import file
13243 # for dependence libraries. The import file would start with
13244 # the line `#! .'. This would cause the generated library to
13245 # depend on `.', always an invalid library. This was fixed in
13246 # development snapshots of GCC prior to 3.0.
13248 aix4 | aix4.[01] | aix4.[01].*)
13249 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13251 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13254 can_build_shared=no
13258 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13259 # soname into executable. Probably we can add versioning support to
13260 # collect2, so additional links can be useful in future.
13261 if test "$aix_use_runtimelinking" = yes; then
13262 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13263 # instead of lib<name>.a to let people know that these are not
13264 # typical AIX shared libraries.
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13267 # We preserve .a as extension for shared libraries through AIX4.2
13268 # and later when we are not doing run time linking.
13269 library_names_spec='${libname}${release}.a $libname.a'
13270 soname_spec='${libname}${release}${shared_ext}$major'
13272 shlibpath_var=LIBPATH
13277 library_names_spec='$libname.ixlibrary $libname.a'
13278 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13279 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'
13283 library_names_spec='${libname}${shared_ext}'
13284 dynamic_linker="$host_os ld.so"
13285 shlibpath_var=LIBRARY_PATH
13291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292 soname_spec='${libname}${release}${shared_ext}$major'
13293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13294 shlibpath_var=LD_LIBRARY_PATH
13295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13297 # the default ld.so.conf also contains /usr/contrib/lib and
13298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13299 # libtool to hard-code these into programs
13302 cygwin* | mingw* | pw32*)
13303 version_type=windows
13308 case $GCC,$host_os in
13309 yes,cygwin* | yes,mingw* | yes,pw32*)
13310 library_names_spec='$libname.dll.a'
13311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13312 postinstall_cmds='base_file=`basename \${file}`~
13313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13314 dldir=$destdir/`dirname \$dlpath`~
13315 test -d \$dldir || mkdir -p \$dldir~
13316 $install_prog $dir/$dlname \$dldir/$dlname'
13317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13318 dlpath=$dir/\$dldll~
13320 shlibpath_overrides_runpath=yes
13324 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13325 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13326 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13329 # MinGW DLLs use traditional 'lib' prefix
13330 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13331 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13332 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13333 # It is most probably a Windows format PATH printed by
13334 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13335 # path with ; separators, and with drive letters. We can handle the
13336 # drive letters (cygwin fileutils understands them), so leave them,
13337 # especially as we might pass files found there to a mingw objdump,
13338 # which wouldn't understand a cygwinified path. Ahh.
13339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13345 # pw32 DLLs use 'pw' prefix rather than 'lib'
13346 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13352 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13355 dynamic_linker='Win32 ld.exe'
13356 # FIXME: first we should search . and the directory the executable is in
13360 darwin* | rhapsody*)
13361 dynamic_linker="$host_os dyld"
13362 version_type=darwin
13365 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13366 soname_spec='${libname}${release}${major}$shared_ext'
13367 shlibpath_overrides_runpath=yes
13368 shlibpath_var=DYLD_LIBRARY_PATH
13369 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13370 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13371 if test "$GCC" = yes; then
13372 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"`
13374 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13376 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13384 soname_spec='${libname}${release}${shared_ext}$major'
13385 shlibpath_var=LD_LIBRARY_PATH
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13397 soname_spec='${libname}${release}${shared_ext}$major'
13398 shlibpath_var=LD_LIBRARY_PATH
13399 shlibpath_overrides_runpath=no
13400 hardcode_into_libs=yes
13401 dynamic_linker='GNU ld.so'
13405 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13406 version_type=freebsd-$objformat
13407 case $version_type in
13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13418 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=yes
13423 freebsd3.01* | freebsdelf3.01*)
13424 shlibpath_overrides_runpath=yes
13425 hardcode_into_libs=yes
13428 shlibpath_overrides_runpath=no
13429 hardcode_into_libs=yes
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13439 soname_spec='${libname}${release}${shared_ext}$major'
13440 shlibpath_var=LD_LIBRARY_PATH
13441 hardcode_into_libs=yes
13444 hpux9* | hpux10* | hpux11*)
13445 # Give a soname corresponding to the major version so that dld.sl refuses to
13446 # link against other versions.
13450 case "$host_cpu" in
13453 hardcode_into_libs=yes
13454 dynamic_linker="$host_os dld.so"
13455 shlibpath_var=LD_LIBRARY_PATH
13456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 if test "X$HPUX_IA64_MODE" = X32; then
13460 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13464 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13468 hardcode_into_libs=yes
13469 dynamic_linker="$host_os dld.sl"
13470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13479 dynamic_linker="$host_os dld.sl"
13480 shlibpath_var=SHLIB_PATH
13481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483 soname_spec='${libname}${release}${shared_ext}$major'
13486 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13487 postinstall_cmds='chmod 555 $lib'
13490 irix5* | irix6* | nonstopux*)
13492 nonstopux*) version_type=nonstopux ;;
13494 if test "$lt_cv_prog_gnu_ld" = yes; then
13502 soname_spec='${libname}${release}${shared_ext}$major'
13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13505 irix5* | nonstopux*)
13506 libsuff= shlibsuff=
13509 case $LD in # libtool.m4 will add one of these switches to LD
13510 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13511 libsuff= shlibsuff= libmagic=32-bit;;
13512 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13513 libsuff=32 shlibsuff=N32 libmagic=N32;;
13514 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13515 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13516 *) libsuff= shlibsuff= libmagic=never-match;;
13520 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13521 shlibpath_overrides_runpath=no
13522 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13523 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13524 hardcode_into_libs=yes
13527 # No shared lib support for Linux oldld, aout, or coff.
13528 linux*oldld* | linux*aout* | linux*coff*)
13532 # This must be Linux ELF.
13537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13538 soname_spec='${libname}${release}${shared_ext}$major'
13539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13540 shlibpath_var=LD_LIBRARY_PATH
13541 shlibpath_overrides_runpath=no
13542 # This implies no fast_install, which is unacceptable.
13543 # Some rework will be needed to allow for fast_install
13544 # before this can be enabled.
13545 hardcode_into_libs=yes
13547 # Append ld.so.conf contents to the search path
13548 if test -f /etc/ld.so.conf; then
13549 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13550 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13553 # We used to test for /lib/ld.so.1 and disable shared libraries on
13554 # powerpc, because MkLinux only supported shared libraries with the
13555 # GNU dynamic linker. Since this was broken with cross compilers,
13556 # most powerpc-linux boxes support dynamic linking these days and
13557 # people can always --disable-shared, the test was removed, and we
13558 # assume the GNU/Linux dynamic linker is in use.
13559 dynamic_linker='GNU/Linux ld.so'
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13567 soname_spec='${libname}${release}${shared_ext}$major'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 shlibpath_overrides_runpath=no
13570 hardcode_into_libs=yes
13571 dynamic_linker='GNU ld.so'
13578 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13581 dynamic_linker='NetBSD (a.out) ld.so'
13583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13584 soname_spec='${libname}${release}${shared_ext}$major'
13585 dynamic_linker='NetBSD ld.elf_so'
13587 shlibpath_var=LD_LIBRARY_PATH
13588 shlibpath_overrides_runpath=yes
13589 hardcode_into_libs=yes
13594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595 shlibpath_var=LD_LIBRARY_PATH
13596 shlibpath_overrides_runpath=yes
13603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13604 soname_spec='${libname}${release}${shared_ext}$major'
13605 shlibpath_var=LD_LIBRARY_PATH
13606 shlibpath_overrides_runpath=yes
13613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13615 shlibpath_var=LD_LIBRARY_PATH
13616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13618 openbsd2.[89] | openbsd2.[89].*)
13619 shlibpath_overrides_runpath=no
13622 shlibpath_overrides_runpath=yes
13626 shlibpath_overrides_runpath=yes
13631 libname_spec='$name'
13634 library_names_spec='$libname${shared_ext} $libname.a'
13635 dynamic_linker='OS/2 ld.exe'
13636 shlibpath_var=LIBPATH
13639 osf3* | osf4* | osf5*)
13643 soname_spec='${libname}${release}${shared_ext}$major'
13644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13645 shlibpath_var=LD_LIBRARY_PATH
13646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13652 soname_spec='${libname}${release}${shared_ext}$major'
13653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13654 shlibpath_var=LD_LIBRARY_PATH
13661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662 soname_spec='${libname}${release}${shared_ext}$major'
13663 shlibpath_var=LD_LIBRARY_PATH
13664 shlibpath_overrides_runpath=yes
13665 hardcode_into_libs=yes
13666 # ldd complains unless libraries are executable
13667 postinstall_cmds='chmod +x $lib'
13672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13674 shlibpath_var=LD_LIBRARY_PATH
13675 shlibpath_overrides_runpath=yes
13676 if test "$with_gnu_ld" = yes; then
13682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685 soname_spec='${libname}${release}${shared_ext}$major'
13686 shlibpath_var=LD_LIBRARY_PATH
13687 case $host_vendor in
13689 shlibpath_overrides_runpath=no
13691 export_dynamic_flag_spec='${wl}-Blargedynsym'
13692 runpath_var=LD_RUN_PATH
13700 shlibpath_overrides_runpath=no
13701 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13707 if test -d /usr/nec ;then
13709 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13710 soname_spec='$libname${shared_ext}.$major'
13711 shlibpath_var=LD_LIBRARY_PATH
13717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13718 soname_spec='${libname}${release}${shared_ext}$major'
13719 shlibpath_var=LD_LIBRARY_PATH
13726 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13727 echo "${ECHO_T}$dynamic_linker" >&6
13728 test "$dynamic_linker" = no && can_build_shared=no
13730 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13731 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13733 if test -n "$hardcode_libdir_flag_spec" || \
13734 test -n "$runpath_var" || \
13735 test "X$hardcode_automatic" = "Xyes" ; then
13737 # We can hardcode non-existant directories.
13738 if test "$hardcode_direct" != no &&
13739 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13740 # have to relink, otherwise we might link with an installed library
13741 # when we should be linking with a yet-to-be-installed one
13742 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13743 test "$hardcode_minus_L" != no; then
13744 # Linking always hardcodes the temporary library directory.
13745 hardcode_action=relink
13747 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13748 hardcode_action=immediate
13751 # We cannot hardcode anything, or else we can only hardcode existing
13753 hardcode_action=unsupported
13755 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13756 echo "${ECHO_T}$hardcode_action" >&6
13758 if test "$hardcode_action" = relink; then
13759 # Fast installation is not supported
13760 enable_fast_install=no
13761 elif test "$shlibpath_overrides_runpath" = yes ||
13762 test "$enable_shared" = no; then
13763 # Fast installation is not necessary
13764 enable_fast_install=needless
13769 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13770 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13771 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13772 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13773 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13774 echo "$as_me:$LINENO: result: yes" >&5
13775 echo "${ECHO_T}yes" >&6
13777 # FIXME - insert some real tests, host_os isn't really good enough
13780 if test -n "$STRIP" ; then
13781 striplib="$STRIP -x"
13782 echo "$as_me:$LINENO: result: yes" >&5
13783 echo "${ECHO_T}yes" >&6
13785 echo "$as_me:$LINENO: result: no" >&5
13786 echo "${ECHO_T}no" >&6
13790 echo "$as_me:$LINENO: result: no" >&5
13791 echo "${ECHO_T}no" >&6
13796 if test "x$enable_dlopen" != xyes; then
13797 enable_dlopen=unknown
13798 enable_dlopen_self=unknown
13799 enable_dlopen_self_static=unknown
13806 lt_cv_dlopen="load_add_on"
13808 lt_cv_dlopen_self=yes
13812 lt_cv_dlopen="LoadLibrary"
13817 lt_cv_dlopen="dlopen"
13822 # if libdl is installed we need to link against it
13823 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13824 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13825 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 ac_check_lib_save_LIBS=$LIBS
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13837 /* Override any gcc2 internal prototype to avoid an error. */
13841 /* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */
13852 rm -f conftest.$ac_objext conftest$ac_exeext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13854 (eval $ac_link) 2>conftest.er1
13856 grep -v '^ *+' conftest.er1 >conftest.err
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
13861 { ac_try='test -z "$ac_c_werror_flag"
13862 || test ! -s conftest.err'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest$ac_exeext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_lib_dl_dlopen=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_cv_lib_dl_dlopen=no
13881 rm -f conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13883 LIBS=$ac_check_lib_save_LIBS
13885 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13886 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13887 if test $ac_cv_lib_dl_dlopen = yes; then
13888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13891 lt_cv_dlopen="dyld"
13893 lt_cv_dlopen_self=yes
13900 echo "$as_me:$LINENO: checking for shl_load" >&5
13901 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13902 if test "${ac_cv_func_shl_load+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13913 #define shl_load innocuous_shl_load
13915 /* System header to define __stub macros and hopefully few prototypes,
13916 which can conflict with char shl_load (); below.
13917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13918 <limits.h> exists even on freestanding compilers. */
13921 # include <limits.h>
13923 # include <assert.h>
13928 /* Override any gcc2 internal prototype to avoid an error. */
13933 /* We use char because int might match the return type of a gcc2
13934 builtin and then its argument prototype would still apply. */
13936 /* The GNU C library defines this for functions which it implements
13937 to always fail with ENOSYS. Some functions are actually named
13938 something starting with __ and the normal name is an alias. */
13939 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13942 char (*f) () = shl_load;
13951 return f != shl_load;
13956 rm -f conftest.$ac_objext conftest$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>conftest.er1
13960 grep -v '^ *+' conftest.er1 >conftest.err
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest$ac_exeext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_cv_func_shl_load=yes
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 ac_cv_func_shl_load=no
13985 rm -f conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13988 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13989 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13990 if test $ac_cv_func_shl_load = yes; then
13991 lt_cv_dlopen="shl_load"
13993 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13994 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13995 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 ac_check_lib_save_LIBS=$LIBS
14000 cat >conftest.$ac_ext <<_ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14007 /* Override any gcc2 internal prototype to avoid an error. */
14011 /* We use char because int might match the return type of a gcc2
14012 builtin and then its argument prototype would still apply. */
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024 (eval $ac_link) 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag"
14032 || test ! -s conftest.err'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest$ac_exeext'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_cv_lib_dld_shl_load=yes
14046 echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14049 ac_cv_lib_dld_shl_load=no
14051 rm -f conftest.err conftest.$ac_objext \
14052 conftest$ac_exeext conftest.$ac_ext
14053 LIBS=$ac_check_lib_save_LIBS
14055 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14056 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14057 if test $ac_cv_lib_dld_shl_load = yes; then
14058 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14060 echo "$as_me:$LINENO: checking for dlopen" >&5
14061 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14062 if test "${ac_cv_func_dlopen+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 cat >conftest.$ac_ext <<_ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14071 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14073 #define dlopen innocuous_dlopen
14075 /* System header to define __stub macros and hopefully few prototypes,
14076 which can conflict with char dlopen (); below.
14077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14078 <limits.h> exists even on freestanding compilers. */
14081 # include <limits.h>
14083 # include <assert.h>
14088 /* Override any gcc2 internal prototype to avoid an error. */
14093 /* We use char because int might match the return type of a gcc2
14094 builtin and then its argument prototype would still apply. */
14096 /* The GNU C library defines this for functions which it implements
14097 to always fail with ENOSYS. Some functions are actually named
14098 something starting with __ and the normal name is an alias. */
14099 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14102 char (*f) () = dlopen;
14111 return f != dlopen;
14116 rm -f conftest.$ac_objext conftest$ac_exeext
14117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14118 (eval $ac_link) 2>conftest.er1
14120 grep -v '^ *+' conftest.er1 >conftest.err
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try='test -z "$ac_c_werror_flag"
14126 || test ! -s conftest.err'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; } &&
14132 { ac_try='test -s conftest$ac_exeext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_cv_func_dlopen=yes
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14143 ac_cv_func_dlopen=no
14145 rm -f conftest.err conftest.$ac_objext \
14146 conftest$ac_exeext conftest.$ac_ext
14148 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14149 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14150 if test $ac_cv_func_dlopen = yes; then
14151 lt_cv_dlopen="dlopen"
14153 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14154 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14155 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 ac_check_lib_save_LIBS=$LIBS
14160 cat >conftest.$ac_ext <<_ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14167 /* Override any gcc2 internal prototype to avoid an error. */
14171 /* We use char because int might match the return type of a gcc2
14172 builtin and then its argument prototype would still apply. */
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184 (eval $ac_link) 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_c_werror_flag"
14192 || test ! -s conftest.err'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try='test -s conftest$ac_exeext'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204 ac_cv_lib_dl_dlopen=yes
14206 echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14209 ac_cv_lib_dl_dlopen=no
14211 rm -f conftest.err conftest.$ac_objext \
14212 conftest$ac_exeext conftest.$ac_ext
14213 LIBS=$ac_check_lib_save_LIBS
14215 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14216 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14217 if test $ac_cv_lib_dl_dlopen = yes; then
14218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14220 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14221 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14222 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 ac_check_lib_save_LIBS=$LIBS
14226 LIBS="-lsvld $LIBS"
14227 cat >conftest.$ac_ext <<_ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14234 /* Override any gcc2 internal prototype to avoid an error. */
14238 /* We use char because int might match the return type of a gcc2
14239 builtin and then its argument prototype would still apply. */
14249 rm -f conftest.$ac_objext conftest$ac_exeext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251 (eval $ac_link) 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
14258 { ac_try='test -z "$ac_c_werror_flag"
14259 || test ! -s conftest.err'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest$ac_exeext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_lib_svld_dlopen=yes
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_cv_lib_svld_dlopen=no
14278 rm -f conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
14280 LIBS=$ac_check_lib_save_LIBS
14282 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14283 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14284 if test $ac_cv_lib_svld_dlopen = yes; then
14285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14287 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14288 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14289 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 ac_check_lib_save_LIBS=$LIBS
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 /* Override any gcc2 internal prototype to avoid an error. */
14305 /* We use char because int might match the return type of a gcc2
14306 builtin and then its argument prototype would still apply. */
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318 (eval $ac_link) 2>conftest.er1
14320 grep -v '^ *+' conftest.er1 >conftest.err
14322 cat conftest.err >&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } &&
14325 { ac_try='test -z "$ac_c_werror_flag"
14326 || test ! -s conftest.err'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; } &&
14332 { ac_try='test -s conftest$ac_exeext'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14338 ac_cv_lib_dld_dld_link=yes
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 ac_cv_lib_dld_dld_link=no
14345 rm -f conftest.err conftest.$ac_objext \
14346 conftest$ac_exeext conftest.$ac_ext
14347 LIBS=$ac_check_lib_save_LIBS
14349 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14350 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14351 if test $ac_cv_lib_dld_dld_link = yes; then
14352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14373 if test "x$lt_cv_dlopen" != xno; then
14379 case $lt_cv_dlopen in
14381 save_CPPFLAGS="$CPPFLAGS"
14382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14384 save_LDFLAGS="$LDFLAGS"
14385 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14388 LIBS="$lt_cv_dlopen_libs $LIBS"
14390 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14391 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14392 if test "${lt_cv_dlopen_self+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 if test "$cross_compiling" = yes; then :
14396 lt_cv_dlopen_self=cross
14398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14399 lt_status=$lt_dlunknown
14400 cat > conftest.$ac_ext <<EOF
14401 #line 14401 "configure"
14402 #include "confdefs.h"
14411 # define LT_DLGLOBAL RTLD_GLOBAL
14414 # define LT_DLGLOBAL DL_GLOBAL
14416 # define LT_DLGLOBAL 0
14420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14421 find out it does not work in some platform. */
14422 #ifndef LT_DLLAZY_OR_NOW
14424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14427 # define LT_DLLAZY_OR_NOW DL_LAZY
14430 # define LT_DLLAZY_OR_NOW RTLD_NOW
14433 # define LT_DLLAZY_OR_NOW DL_NOW
14435 # define LT_DLLAZY_OR_NOW 0
14443 extern "C" void exit (int);
14446 void fnord() { int i=42;}
14449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14450 int status = $lt_dlunknown;
14454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14455 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14456 /* dlclose (self); */
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14467 (./conftest; exit; ) 2>/dev/null
14469 case x$lt_status in
14470 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14471 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14472 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14475 # compilation failed
14476 lt_cv_dlopen_self=no
14483 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14484 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14486 if test "x$lt_cv_dlopen_self" = xyes; then
14487 LDFLAGS="$LDFLAGS $link_static_flag"
14488 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14489 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14490 if test "${lt_cv_dlopen_self_static+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 if test "$cross_compiling" = yes; then :
14494 lt_cv_dlopen_self_static=cross
14496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14497 lt_status=$lt_dlunknown
14498 cat > conftest.$ac_ext <<EOF
14499 #line 14499 "configure"
14500 #include "confdefs.h"
14509 # define LT_DLGLOBAL RTLD_GLOBAL
14512 # define LT_DLGLOBAL DL_GLOBAL
14514 # define LT_DLGLOBAL 0
14518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14519 find out it does not work in some platform. */
14520 #ifndef LT_DLLAZY_OR_NOW
14522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14525 # define LT_DLLAZY_OR_NOW DL_LAZY
14528 # define LT_DLLAZY_OR_NOW RTLD_NOW
14531 # define LT_DLLAZY_OR_NOW DL_NOW
14533 # define LT_DLLAZY_OR_NOW 0
14541 extern "C" void exit (int);
14544 void fnord() { int i=42;}
14547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14548 int status = $lt_dlunknown;
14552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14553 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14554 /* dlclose (self); */
14560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561 (eval $ac_link) 2>&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14565 (./conftest; exit; ) 2>/dev/null
14567 case x$lt_status in
14568 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14569 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14570 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14573 # compilation failed
14574 lt_cv_dlopen_self_static=no
14581 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14582 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14585 CPPFLAGS="$save_CPPFLAGS"
14586 LDFLAGS="$save_LDFLAGS"
14591 case $lt_cv_dlopen_self in
14592 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14593 *) enable_dlopen_self=unknown ;;
14596 case $lt_cv_dlopen_self_static in
14597 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14598 *) enable_dlopen_self_static=unknown ;;
14603 # Report which librarie types wil actually be built
14604 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14605 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14606 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14607 echo "${ECHO_T}$can_build_shared" >&6
14609 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14610 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14611 test "$can_build_shared" = "no" && enable_shared=no
14613 # On AIX, shared libraries and static libraries use the same namespace, and
14614 # are all built from PIC.
14617 test "$enable_shared" = yes && enable_static=no
14618 if test -n "$RANLIB"; then
14619 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14620 postinstall_cmds='$RANLIB $lib'
14625 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14626 test "$enable_shared" = yes && enable_static=no
14630 echo "$as_me:$LINENO: result: $enable_shared" >&5
14631 echo "${ECHO_T}$enable_shared" >&6
14633 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14634 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14635 # Make sure either enable_shared or enable_static is yes.
14636 test "$enable_shared" = yes || enable_static=yes
14637 echo "$as_me:$LINENO: result: $enable_static" >&5
14638 echo "${ECHO_T}$enable_static" >&6
14640 # The else clause should only fire when bootstrapping the
14641 # libtool distribution, otherwise you forgot to ship ltmain.sh
14642 # with your package, and you will get complaints that there are
14643 # no rules to generate ltmain.sh.
14644 if test -f "$ltmain"; then
14645 # See if we are running on zsh, and set the options which allow our commands through
14646 # without removal of \ escapes.
14647 if test -n "${ZSH_VERSION+set}" ; then
14648 setopt NO_GLOB_SUBST
14650 # Now quote all the things that may contain metacharacters while being
14651 # careful not to overquote the AC_SUBSTed values. We take copies of the
14652 # variables and quote the copies for generation of the libtool script.
14653 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14655 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14656 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14657 deplibs_check_method reload_flag reload_cmds need_locks \
14658 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14659 lt_cv_sys_global_symbol_to_c_name_address \
14660 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14661 old_postinstall_cmds old_postuninstall_cmds \
14665 lt_prog_compiler_wl \
14666 lt_prog_compiler_pic \
14667 lt_prog_compiler_static \
14668 lt_prog_compiler_no_builtin_flag \
14669 export_dynamic_flag_spec \
14670 thread_safe_flag_spec \
14671 whole_archive_flag_spec \
14672 enable_shared_with_static_runtimes \
14674 old_archive_from_new_cmds \
14679 compiler_lib_search_path \
14681 archive_expsym_cmds \
14683 postuninstall_cmds \
14684 old_archive_from_expsyms_cmds \
14685 allow_undefined_flag \
14686 no_undefined_flag \
14687 export_symbols_cmds \
14688 hardcode_libdir_flag_spec \
14689 hardcode_libdir_flag_spec_ld \
14690 hardcode_libdir_separator \
14691 hardcode_automatic \
14693 module_expsym_cmds \
14694 lt_cv_prog_compiler_c_o \
14696 include_expsyms; do
14699 old_archive_cmds | \
14700 old_archive_from_new_cmds | \
14702 archive_expsym_cmds | \
14704 module_expsym_cmds | \
14705 old_archive_from_expsyms_cmds | \
14706 export_symbols_cmds | \
14707 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14708 postinstall_cmds | postuninstall_cmds | \
14709 old_postinstall_cmds | old_postuninstall_cmds | \
14710 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14711 # Double-quote double-evaled strings.
14712 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14721 *'\$0 --fallback-echo"')
14722 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14726 cfgfile="${ofile}T"
14727 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14729 { echo "$as_me:$LINENO: creating $ofile" >&5
14730 echo "$as_me: creating $ofile" >&6;}
14732 cat <<__EOF__ >> "$cfgfile"
14735 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14736 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14737 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14739 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14740 # Free Software Foundation, Inc.
14742 # This file is part of GNU Libtool:
14743 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14745 # This program is free software; you can redistribute it and/or modify
14746 # it under the terms of the GNU General Public License as published by
14747 # the Free Software Foundation; either version 2 of the License, or
14748 # (at your option) any later version.
14750 # This program is distributed in the hope that it will be useful, but
14751 # WITHOUT ANY WARRANTY; without even the implied warranty of
14752 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14753 # General Public License for more details.
14755 # You should have received a copy of the GNU General Public License
14756 # along with this program; if not, write to the Free Software
14757 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14759 # As a special exception to the GNU General Public License, if you
14760 # distribute this file as part of a program that contains a
14761 # configuration script generated by Autoconf, you may include it under
14762 # the same distribution terms that you use for the rest of that program.
14764 # A sed program that does not truncate output.
14767 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14768 Xsed="$SED -e s/^X//"
14770 # The HP-UX ksh and POSIX shell print the target directory to stdout
14771 # if CDPATH is set.
14772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14774 # The names of the tagged configurations supported by this script.
14777 # ### BEGIN LIBTOOL CONFIG
14779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14781 # Shell to use when invoking shell scripts.
14784 # Whether or not to build shared libraries.
14785 build_libtool_libs=$enable_shared
14787 # Whether or not to build static libraries.
14788 build_old_libs=$enable_static
14790 # Whether or not to add -lc for building shared libraries.
14791 build_libtool_need_lc=$archive_cmds_need_lc
14793 # Whether or not to disallow shared libs when runtime libs are static
14794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14796 # Whether or not to optimize for fast installation.
14797 fast_install=$enable_fast_install
14800 host_alias=$host_alias
14803 # An echo program that does not interpret backslashes.
14808 AR_FLAGS=$lt_AR_FLAGS
14813 # A language-specific compiler.
14816 # Is the compiler the GNU C compiler?
14822 # The linker used to build libraries.
14825 # Whether we need hard or soft links.
14828 # A BSD-compatible nm program.
14831 # A symbol stripping program
14834 # Used to examine libraries when file_magic_cmd begins "file"
14835 MAGIC_CMD=$MAGIC_CMD
14837 # Used on cygwin: DLL creation program.
14840 # Used on cygwin: object dumper.
14843 # Used on cygwin: assembler.
14846 # The name of the directory that contains temporary libtool files.
14849 # How to create reloadable object files.
14850 reload_flag=$lt_reload_flag
14851 reload_cmds=$lt_reload_cmds
14853 # How to pass a linker flag through the compiler.
14854 wl=$lt_lt_prog_compiler_wl
14856 # Object file suffix (normally "o").
14857 objext="$ac_objext"
14859 # Old archive suffix (normally "a").
14862 # Shared library suffix (normally ".so").
14863 shrext_cmds='$shrext_cmds'
14865 # Executable file suffix (normally "").
14868 # Additional compiler flags for building library objects.
14869 pic_flag=$lt_lt_prog_compiler_pic
14872 # What is the maximum length of a command?
14873 max_cmd_len=$lt_cv_sys_max_cmd_len
14875 # Does compiler simultaneously support -c and -o options?
14876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14878 # Must we lock files when doing compilation ?
14879 need_locks=$lt_need_locks
14881 # Do we need the lib prefix for modules?
14882 need_lib_prefix=$need_lib_prefix
14884 # Do we need a version for libraries?
14885 need_version=$need_version
14887 # Whether dlopen is supported.
14888 dlopen_support=$enable_dlopen
14890 # Whether dlopen of programs is supported.
14891 dlopen_self=$enable_dlopen_self
14893 # Whether dlopen of statically linked programs is supported.
14894 dlopen_self_static=$enable_dlopen_self_static
14896 # Compiler flag to prevent dynamic linking.
14897 link_static_flag=$lt_lt_prog_compiler_static
14899 # Compiler flag to turn off builtin functions.
14900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14902 # Compiler flag to allow reflexive dlopens.
14903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14905 # Compiler flag to generate shared objects directly from archives.
14906 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14908 # Compiler flag to generate thread-safe objects.
14909 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14911 # Library versioning type.
14912 version_type=$version_type
14914 # Format of library name prefix.
14915 libname_spec=$lt_libname_spec
14917 # List of archive names. First name is the real one, the rest are links.
14918 # The last name is the one that the linker finds with -lNAME.
14919 library_names_spec=$lt_library_names_spec
14921 # The coded name of the library, if different from the real name.
14922 soname_spec=$lt_soname_spec
14924 # Commands used to build and install an old-style archive.
14926 old_archive_cmds=$lt_old_archive_cmds
14927 old_postinstall_cmds=$lt_old_postinstall_cmds
14928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14930 # Create an old-style archive from a shared archive.
14931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14933 # Create a temporary old-style archive to link instead of a shared archive.
14934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14936 # Commands used to build and install a shared archive.
14937 archive_cmds=$lt_archive_cmds
14938 archive_expsym_cmds=$lt_archive_expsym_cmds
14939 postinstall_cmds=$lt_postinstall_cmds
14940 postuninstall_cmds=$lt_postuninstall_cmds
14942 # Commands used to build a loadable module (assumed same as above if empty)
14943 module_cmds=$lt_module_cmds
14944 module_expsym_cmds=$lt_module_expsym_cmds
14946 # Commands to strip libraries.
14947 old_striplib=$lt_old_striplib
14948 striplib=$lt_striplib
14950 # Dependencies to place before the objects being linked to create a
14952 predep_objects=$lt_predep_objects
14954 # Dependencies to place after the objects being linked to create a
14956 postdep_objects=$lt_postdep_objects
14958 # Dependencies to place before the objects being linked to create a
14960 predeps=$lt_predeps
14962 # Dependencies to place after the objects being linked to create a
14964 postdeps=$lt_postdeps
14966 # The library search path used internally by the compiler when linking
14967 # a shared library.
14968 compiler_lib_search_path=$lt_compiler_lib_search_path
14970 # Method to check whether dependent libraries are shared objects.
14971 deplibs_check_method=$lt_deplibs_check_method
14973 # Command to use when deplibs_check_method == file_magic.
14974 file_magic_cmd=$lt_file_magic_cmd
14976 # Flag that allows shared libraries with undefined symbols to be built.
14977 allow_undefined_flag=$lt_allow_undefined_flag
14979 # Flag that forces no undefined symbols.
14980 no_undefined_flag=$lt_no_undefined_flag
14982 # Commands used to finish a libtool library installation in a directory.
14983 finish_cmds=$lt_finish_cmds
14985 # Same as above, but a single script fragment to be evaled but not shown.
14986 finish_eval=$lt_finish_eval
14988 # Take the output of nm and produce a listing of raw symbols and C names.
14989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14991 # Transform the output of nm in a proper C declaration
14992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14994 # Transform the output of nm in a C name address pair
14995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14997 # This is the shared library runtime path variable.
14998 runpath_var=$runpath_var
15000 # This is the shared library path variable.
15001 shlibpath_var=$shlibpath_var
15003 # Is shlibpath searched before the hard-coded library search path?
15004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15006 # How to hardcode a shared library path into an executable.
15007 hardcode_action=$hardcode_action
15009 # Whether we should hardcode library paths into libraries.
15010 hardcode_into_libs=$hardcode_into_libs
15012 # Flag to hardcode \$libdir into a binary during linking.
15013 # This must work even if \$libdir does not exist.
15014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15016 # If ld is used when linking, flag to hardcode \$libdir into
15017 # a binary during linking. This must work even if \$libdir does
15019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15021 # Whether we need a single -rpath flag with a separated argument.
15022 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15025 # resulting binary.
15026 hardcode_direct=$hardcode_direct
15028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15029 # resulting binary.
15030 hardcode_minus_L=$hardcode_minus_L
15032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15033 # the resulting binary.
15034 hardcode_shlibpath_var=$hardcode_shlibpath_var
15036 # Set to yes if building a shared library automatically hardcodes DIR into the library
15037 # and all subsequent libraries and executables linked against it.
15038 hardcode_automatic=$hardcode_automatic
15040 # Variables whose values should be saved in libtool wrapper scripts and
15041 # restored at relink time.
15042 variables_saved_for_relink="$variables_saved_for_relink"
15044 # Whether libtool must link a program against all its dependency libraries.
15045 link_all_deplibs=$link_all_deplibs
15047 # Compile-time system search path for libraries
15048 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15050 # Run-time system search path for libraries
15051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15053 # Fix the shell variable \$srcfile for the compiler.
15054 fix_srcfile_path="$fix_srcfile_path"
15056 # Set to yes if exported symbols are required.
15057 always_export_symbols=$always_export_symbols
15059 # The commands to list exported symbols.
15060 export_symbols_cmds=$lt_export_symbols_cmds
15062 # The commands to extract the exported symbol list from a shared archive.
15063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15065 # Symbols that should not be listed in the preloaded symbols.
15066 exclude_expsyms=$lt_exclude_expsyms
15068 # Symbols that must always be exported.
15069 include_expsyms=$lt_include_expsyms
15071 # ### END LIBTOOL CONFIG
15078 cat <<\EOF >> "$cfgfile"
15080 # AIX sometimes has problems with the GCC collect2 program. For some
15081 # reason, if we set the COLLECT_NAMES environment variable, the problems
15082 # vanish in a puff of smoke.
15083 if test "X${COLLECT_NAMES+set}" != Xset; then
15085 export COLLECT_NAMES
15091 # We use sed instead of cat because bash on DJGPP gets confused if
15092 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15093 # text mode, it properly converts lines to CR/LF. This bash problem
15094 # is reportedly fixed, but why not run on old versions too?
15095 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15097 mv -f "$cfgfile" "$ofile" || \
15098 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15102 # If there is no Makefile yet, we rely on a make rule to execute
15103 # `config.status --recheck' to rerun these tests and create the
15104 # libtool script then.
15105 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15106 if test -f "$ltmain_in"; then
15107 test -f Makefile && make "$ltmain"
15113 ac_cpp='$CPP $CPPFLAGS'
15114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15121 # Check whether --with-tags or --without-tags was given.
15122 if test "${with_tags+set}" = set; then
15123 withval="$with_tags"
15124 tagnames="$withval"
15127 if test -f "$ltmain" && test -n "$tagnames"; then
15128 if test ! -f "${ofile}"; then
15129 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15130 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15133 if test -z "$LTCC"; then
15134 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15135 if test -z "$LTCC"; then
15136 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15137 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15140 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15144 # Extract list of available tagged configurations in $ofile.
15145 # Note that this assumes the entire list is on one line.
15146 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15149 for tagname in $tagnames; do
15151 # Check whether tagname contains only valid characters
15152 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15154 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15155 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15156 { (exit 1); exit 1; }; }
15160 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15162 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15163 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15164 { (exit 1); exit 1; }; }
15167 # Update the list of available tags.
15168 if test -n "$tagname"; then
15169 echo appending configuration tag "$tagname" to $ofile
15173 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15174 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15175 (test "X$CXX" != "Xg++"))) ; then
15177 ac_cpp='$CXXCPP $CPPFLAGS'
15178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15185 archive_cmds_need_lc_CXX=no
15186 allow_undefined_flag_CXX=
15187 always_export_symbols_CXX=no
15188 archive_expsym_cmds_CXX=
15189 export_dynamic_flag_spec_CXX=
15190 hardcode_direct_CXX=no
15191 hardcode_libdir_flag_spec_CXX=
15192 hardcode_libdir_flag_spec_ld_CXX=
15193 hardcode_libdir_separator_CXX=
15194 hardcode_minus_L_CXX=no
15195 hardcode_automatic_CXX=no
15197 module_expsym_cmds_CXX=
15198 link_all_deplibs_CXX=unknown
15199 old_archive_cmds_CXX=$old_archive_cmds
15200 no_undefined_flag_CXX=
15201 whole_archive_flag_spec_CXX=
15202 enable_shared_with_static_runtimes_CXX=no
15204 # Dependencies to place before and after the object being linked:
15205 predep_objects_CXX=
15206 postdep_objects_CXX=
15209 compiler_lib_search_path_CXX=
15211 # Source file extension for C++ test sources.
15214 # Object file extension for compiled C++ test sources.
15218 # Code to be used in simple compile tests
15219 lt_simple_compile_test_code="int some_variable = 0;\n"
15221 # Code to be used in simple link tests
15222 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15226 # If no C compiler was specified, use CC.
15229 # Allow CC to be a program name with arguments.
15233 # Allow CC to be a program name with arguments.
15238 lt_save_with_gnu_ld=$with_gnu_ld
15239 lt_save_path_LD=$lt_cv_path_LD
15240 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15241 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15243 unset lt_cv_prog_gnu_ld
15245 if test -n "${lt_cv_path_LDCXX+set}"; then
15246 lt_cv_path_LD=$lt_cv_path_LDCXX
15248 unset lt_cv_path_LD
15250 test -z "${LDCXX+set}" || LD=$LDCXX
15254 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15256 # We don't want -fno-exception wen compiling C++ code, so set the
15257 # no_builtin_flag separately
15258 if test "$GXX" = yes; then
15259 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15261 lt_prog_compiler_no_builtin_flag_CXX=
15264 if test "$GXX" = yes; then
15265 # Set up default GNU C++ configuration
15268 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15269 if test "${with_gnu_ld+set}" = set; then
15270 withval="$with_gnu_ld"
15271 test "$withval" = no || with_gnu_ld=yes
15276 if test "$GCC" = yes; then
15277 # Check if gcc -print-prog-name=ld gives a path.
15278 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15279 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15282 # gcc leaves a trailing carriage return which upsets mingw
15283 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15285 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15288 # Accept absolute paths.
15290 re_direlt='/[^/][^/]*/\.\./'
15291 # Canonicalize the pathname of ld
15292 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15293 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15294 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15296 test -z "$LD" && LD="$ac_prog"
15299 # If it fails, then pretend we aren't using GCC.
15303 # If it is relative, then search for the first ld in PATH.
15304 with_gnu_ld=unknown
15307 elif test "$with_gnu_ld" = yes; then
15308 echo "$as_me:$LINENO: checking for GNU ld" >&5
15309 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15311 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15312 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15314 if test "${lt_cv_path_LD+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 if test -z "$LD"; then
15318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15319 for ac_dir in $PATH; do
15321 test -z "$ac_dir" && ac_dir=.
15322 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15323 lt_cv_path_LD="$ac_dir/$ac_prog"
15324 # Check to see if the program is GNU ld. I'd rather use --version,
15325 # but apparently some GNU ld's only accept -v.
15326 # Break only if it was the GNU/non-GNU ld that we prefer.
15327 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15328 *GNU* | *'with BFD'*)
15329 test "$with_gnu_ld" != no && break
15332 test "$with_gnu_ld" != yes && break
15339 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15343 LD="$lt_cv_path_LD"
15344 if test -n "$LD"; then
15345 echo "$as_me:$LINENO: result: $LD" >&5
15346 echo "${ECHO_T}$LD" >&6
15348 echo "$as_me:$LINENO: result: no" >&5
15349 echo "${ECHO_T}no" >&6
15351 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15352 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15353 { (exit 1); exit 1; }; }
15354 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15355 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15356 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15360 case `$LD -v 2>&1 </dev/null` in
15361 *GNU* | *'with BFD'*)
15362 lt_cv_prog_gnu_ld=yes
15365 lt_cv_prog_gnu_ld=no
15369 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15370 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15371 with_gnu_ld=$lt_cv_prog_gnu_ld
15375 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15376 # archiving commands below assume that GNU ld is being used.
15377 if test "$with_gnu_ld" = yes; then
15378 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15379 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'
15381 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15384 # If archive_cmds runs LD, not CC, wlarc should be empty
15385 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15386 # investigate it a little bit more. (MM)
15389 # ancient GNU ld didn't support --whole-archive et. al.
15390 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15391 grep 'no-whole-archive' > /dev/null; then
15392 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15394 whole_archive_flag_spec_CXX=
15400 # A generic and very simple default shared library creation
15401 # command for GNU C++ for the case where it uses the native
15402 # linker, instead of GNU ld. If possible, this setting should
15403 # overridden to take advantage of the native linker features on
15404 # the platform it is being used on.
15405 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15408 # Commands to make compiler produce verbose output that lists
15409 # what "hidden" libraries, object files and flags are used when
15410 # linking a shared library.
15411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15419 # PORTME: fill in a description of your system's C++ link characteristics
15420 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15421 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15425 # FIXME: insert proper C++ library support
15429 if test "$host_cpu" = ia64; then
15430 # On IA64, the linker does run time linking by default, so we don't
15431 # have to do anything special.
15432 aix_use_runtimelinking=no
15433 exp_sym_flag='-Bexport'
15436 aix_use_runtimelinking=no
15438 # Test if we are trying to use run time linking or normal
15439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15440 # need to do runtime linking.
15441 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15442 for ld_flag in $LDFLAGS; do
15445 aix_use_runtimelinking=yes
15452 exp_sym_flag='-bexport'
15453 no_entry_flag='-bnoentry'
15456 # When large executables or shared objects are built, AIX ld can
15457 # have problems creating the table of contents. If linking a library
15458 # or program results in "error TOC overflow" add -mminimal-toc to
15459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15462 archive_cmds_CXX=''
15463 hardcode_direct_CXX=yes
15464 hardcode_libdir_separator_CXX=':'
15465 link_all_deplibs_CXX=yes
15467 if test "$GXX" = yes; then
15468 case $host_os in aix4.012|aix4.012.*)
15469 # We only want to do this on AIX 4.2 and lower, the check
15470 # below for broken collect2 doesn't work under 4.3+
15471 collect2name=`${CC} -print-prog-name=collect2`
15472 if test -f "$collect2name" && \
15473 strings "$collect2name" | grep resolve_lib_name >/dev/null
15475 # We have reworked collect2
15476 hardcode_direct_CXX=yes
15478 # We have old collect2
15479 hardcode_direct_CXX=unsupported
15480 # It fails to find uninstalled libraries when the uninstalled
15481 # path is not listed in the libpath. Setting hardcode_minus_L
15482 # to unsupported forces relinking
15483 hardcode_minus_L_CXX=yes
15484 hardcode_libdir_flag_spec_CXX='-L$libdir'
15485 hardcode_libdir_separator_CXX=
15488 shared_flag='-shared'
15491 if test "$host_cpu" = ia64; then
15492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15493 # chokes on -Wl,-G. The following line is correct:
15496 if test "$aix_use_runtimelinking" = yes; then
15497 shared_flag='${wl}-G'
15499 shared_flag='${wl}-bM:SRE'
15504 # It seems that -bexpall does not export symbols beginning with
15505 # underscore (_), so it is better to generate a list of symbols to export.
15506 always_export_symbols_CXX=yes
15507 if test "$aix_use_runtimelinking" = yes; then
15508 # Warning - without using the other runtime loading flags (-brtl),
15509 # -berok will link without error, but may produce a broken library.
15510 allow_undefined_flag_CXX='-berok'
15511 # Determine the default libpath from the value encoded in an empty executable.
15512 cat >conftest.$ac_ext <<_ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15527 rm -f conftest.$ac_objext conftest$ac_exeext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15529 (eval $ac_link) 2>conftest.er1
15531 grep -v '^ *+' conftest.er1 >conftest.err
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
15536 { ac_try='test -z "$ac_cxx_werror_flag"
15537 || test ! -s conftest.err'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest$ac_exeext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15552 # Check for a 64-bit object if we didn't find anything.
15553 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; }
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15560 rm -f conftest.err conftest.$ac_objext \
15561 conftest$ac_exeext conftest.$ac_ext
15562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15564 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15566 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"
15568 if test "$host_cpu" = ia64; then
15569 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15570 allow_undefined_flag_CXX="-z nodefs"
15571 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"
15573 # Determine the default libpath from the value encoded in an empty executable.
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591 (eval $ac_link) 2>conftest.er1
15593 grep -v '^ *+' conftest.er1 >conftest.err
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try='test -z "$ac_cxx_werror_flag"
15599 || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest$ac_exeext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15614 # Check for a 64-bit object if we didn't find anything.
15615 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; }
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15622 rm -f conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15627 # Warning - without using the other run time loading flags,
15628 # -berok will link without error, but may produce a broken library.
15629 no_undefined_flag_CXX=' ${wl}-bernotok'
15630 allow_undefined_flag_CXX=' ${wl}-berok'
15631 # -bexpall does not export symbols beginning with underscore (_)
15632 always_export_symbols_CXX=yes
15633 # Exported symbols can be pulled into shared objects from archives
15634 whole_archive_flag_spec_CXX=' '
15635 archive_cmds_need_lc_CXX=yes
15636 # This is similar to how AIX traditionally builds it's shared libraries.
15637 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'
15642 case $cc_basename in
15644 # FIXME: insert proper C++ library support
15651 cygwin* | mingw* | pw32*)
15652 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15653 # as there is no search path for DLLs.
15654 hardcode_libdir_flag_spec_CXX='-L$libdir'
15655 allow_undefined_flag_CXX=unsupported
15656 always_export_symbols_CXX=no
15657 enable_shared_with_static_runtimes_CXX=yes
15659 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15660 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'
15661 # If the export-symbols file already is a .def file (1st line
15662 # is EXPORTS), use it as is; otherwise, prepend...
15663 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15664 cp $export_symbols $output_objdir/$soname.def;
15666 echo EXPORTS > $output_objdir/$soname.def;
15667 cat $export_symbols >> $output_objdir/$soname.def;
15669 $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'
15674 darwin* | rhapsody*)
15676 rhapsody* | darwin1.[012])
15677 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15680 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15681 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15683 case ${MACOSX_DEPLOYMENT_TARGET} in
15685 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15688 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15694 archive_cmds_need_lc_CXX=no
15695 hardcode_direct_CXX=no
15696 hardcode_automatic_CXX=yes
15697 hardcode_shlibpath_var_CXX=unsupported
15698 whole_archive_flag_spec_CXX=''
15699 link_all_deplibs_CXX=yes
15701 if test "$GXX" = yes ; then
15702 lt_int_apple_cc_single_mod=no
15703 output_verbose_link_cmd='echo'
15704 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15705 lt_int_apple_cc_single_mod=yes
15707 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15708 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15710 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'
15712 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15713 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15714 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15715 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}'
15717 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}'
15719 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}'
15721 case "$cc_basename" in
15723 output_verbose_link_cmd='echo'
15724 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'
15725 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15726 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15727 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}'
15728 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}'
15738 case $cc_basename in
15740 # FIXME: insert proper C++ library support
15744 # Green Hills C++ Compiler
15745 # FIXME: insert proper C++ library support
15749 # FIXME: insert proper C++ library support
15755 # C++ shared libraries reported to be fairly broken before switch to ELF
15759 archive_cmds_need_lc_CXX=no
15761 freebsd* | kfreebsd*-gnu)
15762 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15769 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15770 hardcode_libdir_separator_CXX=:
15771 export_dynamic_flag_spec_CXX='${wl}-E'
15772 hardcode_direct_CXX=yes
15773 hardcode_minus_L_CXX=yes # Not in the search PATH,
15774 # but as the default
15775 # location of the library.
15777 case $cc_basename in
15779 # FIXME: insert proper C++ library support
15783 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'
15784 # Commands to make compiler produce verbose output that lists
15785 # what "hidden" libraries, object files and flags are used when
15786 # linking a shared library.
15788 # There doesn't appear to be a way to prevent this compiler from
15789 # explicitly linking system object files so we need to strip them
15790 # from the output so that they don't get included in the library
15792 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'
15795 if test "$GXX" = yes; then
15796 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'
15798 # FIXME: insert proper C++ library support
15805 if test $with_gnu_ld = no; then
15806 case "$host_cpu" in
15808 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15809 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15810 hardcode_libdir_separator_CXX=:
15813 hardcode_libdir_flag_spec_CXX='-L$libdir'
15816 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15817 hardcode_libdir_separator_CXX=:
15818 export_dynamic_flag_spec_CXX='${wl}-E'
15822 case "$host_cpu" in
15824 hardcode_direct_CXX=no
15825 hardcode_shlibpath_var_CXX=no
15828 hardcode_direct_CXX=no
15829 hardcode_shlibpath_var_CXX=no
15830 hardcode_minus_L_CXX=yes # Not in the search PATH,
15831 # but as the default
15832 # location of the library.
15835 hardcode_direct_CXX=yes
15836 hardcode_minus_L_CXX=yes # Not in the search PATH,
15837 # but as the default
15838 # location of the library.
15842 case $cc_basename in
15844 # FIXME: insert proper C++ library support
15848 case "$host_cpu" in
15850 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15856 # Commands to make compiler produce verbose output that lists
15857 # what "hidden" libraries, object files and flags are used when
15858 # linking a shared library.
15860 # There doesn't appear to be a way to prevent this compiler from
15861 # explicitly linking system object files so we need to strip them
15862 # from the output so that they don't get included in the library
15864 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'
15867 if test "$GXX" = yes; then
15868 if test $with_gnu_ld = no; then
15869 case "$host_cpu" in
15871 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15874 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'
15879 # FIXME: insert proper C++ library support
15886 case $cc_basename in
15889 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'
15891 # Archives containing C++ object files must be created using
15892 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15893 # necessary to make sure instantiated templates are included
15895 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15898 if test "$GXX" = yes; then
15899 if test "$with_gnu_ld" = no; then
15900 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'
15902 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'
15905 link_all_deplibs_CXX=yes
15908 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15909 hardcode_libdir_separator_CXX=:
15912 case $cc_basename in
15914 # Kuck and Associates, Inc. (KAI) C++ Compiler
15916 # KCC will only create a shared library if the output file
15917 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15918 # to its proper name (with version) after linking.
15919 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'
15920 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'
15921 # Commands to make compiler produce verbose output that lists
15922 # what "hidden" libraries, object files and flags are used when
15923 # linking a shared library.
15925 # There doesn't appear to be a way to prevent this compiler from
15926 # explicitly linking system object files so we need to strip them
15927 # from the output so that they don't get included in the library
15929 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'
15931 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15932 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15934 # Archives containing C++ object files must be created using
15935 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15936 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15941 # version 8.0 and above of icpc choke on multiply defined symbols
15942 # if we add $predep_objects and $postdep_objects, however 7.1 and
15943 # earlier do not add the objects themselves.
15944 case `$CC -V 2>&1` in
15946 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15947 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'
15949 *) # Version 8.0 or newer
15950 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15954 archive_cmds_need_lc_CXX=no
15955 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15956 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15957 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15961 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962 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'
15964 runpath_var=LD_RUN_PATH
15965 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15966 hardcode_libdir_separator_CXX=:
15968 # Commands to make compiler produce verbose output that lists
15969 # what "hidden" libraries, object files and flags are used when
15970 # linking a shared library.
15972 # There doesn't appear to be a way to prevent this compiler from
15973 # explicitly linking system object files so we need to strip them
15974 # from the output so that they don't get included in the library
15976 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'
15981 # FIXME: insert proper C++ library support
15985 # FIXME: insert proper C++ library support
15989 case $cc_basename in
15991 # FIXME: insert proper C++ library support
15995 # FIXME: insert proper C++ library support
16001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16002 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16004 hardcode_libdir_flag_spec_CXX='-R$libdir'
16005 hardcode_direct_CXX=yes
16006 hardcode_shlibpath_var_CXX=no
16008 # Workaround some broken pre-1.5 toolchains
16009 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16012 # C++ shared libraries are fairly broken
16016 hardcode_direct_CXX=yes
16017 hardcode_shlibpath_var_CXX=no
16018 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16019 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16021 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16022 export_dynamic_flag_spec_CXX='${wl}-E'
16023 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16025 output_verbose_link_cmd='echo'
16028 case $cc_basename in
16030 # Kuck and Associates, Inc. (KAI) C++ Compiler
16032 # KCC will only create a shared library if the output file
16033 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16034 # to its proper name (with version) after linking.
16035 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'
16037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16038 hardcode_libdir_separator_CXX=:
16040 # Archives containing C++ object files must be created using
16041 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16042 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16046 # Rational C++ 2.4.1
16047 # FIXME: insert proper C++ library support
16051 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16052 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'
16054 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16055 hardcode_libdir_separator_CXX=:
16057 # Commands to make compiler produce verbose output that lists
16058 # what "hidden" libraries, object files and flags are used when
16059 # linking a shared library.
16061 # There doesn't appear to be a way to prevent this compiler from
16062 # explicitly linking system object files so we need to strip them
16063 # from the output so that they don't get included in the library
16065 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'
16068 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16069 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16070 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'
16072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16073 hardcode_libdir_separator_CXX=:
16075 # Commands to make compiler produce verbose output that lists
16076 # what "hidden" libraries, object files and flags are used when
16077 # linking a shared library.
16078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16081 # FIXME: insert proper C++ library support
16088 case $cc_basename in
16090 # Kuck and Associates, Inc. (KAI) C++ Compiler
16092 # KCC will only create a shared library if the output file
16093 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16094 # to its proper name (with version) after linking.
16095 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'
16097 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16098 hardcode_libdir_separator_CXX=:
16100 # Archives containing C++ object files must be created using
16101 # the KAI C++ compiler.
16102 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16105 # Rational C++ 2.4.1
16106 # FIXME: insert proper C++ library support
16110 allow_undefined_flag_CXX=' -expect_unresolved \*'
16111 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'
16112 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16113 echo "-hidden">> $lib.exp~
16114 $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~
16117 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16118 hardcode_libdir_separator_CXX=:
16120 # Commands to make compiler produce verbose output that lists
16121 # what "hidden" libraries, object files and flags are used when
16122 # linking a shared library.
16124 # There doesn't appear to be a way to prevent this compiler from
16125 # explicitly linking system object files so we need to strip them
16126 # from the output so that they don't get included in the library
16128 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'
16131 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16132 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16133 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'
16135 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16136 hardcode_libdir_separator_CXX=:
16138 # Commands to make compiler produce verbose output that lists
16139 # what "hidden" libraries, object files and flags are used when
16140 # linking a shared library.
16141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16144 # FIXME: insert proper C++ library support
16151 # FIXME: insert proper C++ library support
16155 archive_cmds_need_lc_CXX=no
16156 case $cc_basename in
16158 # FIXME: insert proper C++ library support
16162 # FIXME: insert proper C++ library support
16168 case $cc_basename in
16171 # FIXME: insert proper C++ library support
16176 # FIXME: insert proper C++ library support
16180 # FIXME: insert proper C++ library support
16186 case $cc_basename in
16188 # Sun C++ 4.2, 5.x and Centerline C++
16189 no_undefined_flag_CXX=' -zdefs'
16190 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16191 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16192 $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'
16194 hardcode_libdir_flag_spec_CXX='-R$libdir'
16195 hardcode_shlibpath_var_CXX=no
16197 solaris2.0-5 | solaris2.0-5.*) ;;
16199 # The C++ compiler is used as linker so we must use $wl
16200 # flag to pass the commands to the underlying system
16202 # Supported since Solaris 2.6 (maybe 2.5.1?)
16203 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16206 link_all_deplibs_CXX=yes
16208 # Commands to make compiler produce verbose output that lists
16209 # what "hidden" libraries, object files and flags are used when
16210 # linking a shared library.
16212 # There doesn't appear to be a way to prevent this compiler from
16213 # explicitly linking system object files so we need to strip them
16214 # from the output so that they don't get included in the library
16216 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'
16218 # Archives containing C++ object files must be created using
16219 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16220 # necessary to make sure instantiated templates are included
16222 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16225 # Green Hills C++ Compiler
16226 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16228 # The C++ compiler must be used to create the archive.
16229 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16232 # GNU C++ compiler with Solaris linker
16233 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16234 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16235 if $CC --version | grep -v '^2\.7' > /dev/null; then
16236 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16237 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16238 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16240 # Commands to make compiler produce verbose output that lists
16241 # what "hidden" libraries, object files and flags are used when
16242 # linking a shared library.
16243 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16245 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16247 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16248 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16249 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16251 # Commands to make compiler produce verbose output that lists
16252 # what "hidden" libraries, object files and flags are used when
16253 # linking a shared library.
16254 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16257 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16262 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16263 archive_cmds_need_lc_CXX=no
16266 case $cc_basename in
16268 # NonStop-UX NCC 3.20
16269 # FIXME: insert proper C++ library support
16273 # FIXME: insert proper C++ library support
16279 # FIXME: insert proper C++ library support
16283 # FIXME: insert proper C++ library support
16287 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16288 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16289 test "$ld_shlibs_CXX" = no && can_build_shared=no
16295 cat > conftest.$ac_ext <<EOF
16299 Foo (void) { a = 0; }
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306 (eval $ac_compile) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; then
16310 # Parse the compiler output and extract the necessary
16311 # objects, libraries and library flags.
16313 # Sentinel used to keep track of whether or not we are before
16314 # the conftest object file.
16315 pre_test_object_deps_done=no
16317 # The `*' in the case matches for architectures that use `case' in
16318 # $output_verbose_cmd can trigger glob expansion during the loop
16319 # eval without this substitution.
16320 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16322 for p in `eval $output_verbose_link_cmd`; do
16326 # Some compilers place space between "-{L,R}" and the path.
16327 # Remove the space.
16328 if test $p = "-L" \
16329 || test $p = "-R"; then
16336 if test "$pre_test_object_deps_done" = no; then
16339 # Internal compiler library paths should come after those
16340 # provided the user. The postdeps already come after the
16341 # user supplied libs so there is no need to process them.
16342 if test -z "$compiler_lib_search_path_CXX"; then
16343 compiler_lib_search_path_CXX="${prev}${p}"
16345 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16348 # The "-l" case would never come before the object being
16349 # linked, so don't bother handling this case.
16352 if test -z "$postdeps_CXX"; then
16353 postdeps_CXX="${prev}${p}"
16355 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16361 # This assumes that the test object file only shows up
16362 # once in the compiler output.
16363 if test "$p" = "conftest.$objext"; then
16364 pre_test_object_deps_done=yes
16368 if test "$pre_test_object_deps_done" = no; then
16369 if test -z "$predep_objects_CXX"; then
16370 predep_objects_CXX="$p"
16372 predep_objects_CXX="$predep_objects_CXX $p"
16375 if test -z "$postdep_objects_CXX"; then
16376 postdep_objects_CXX="$p"
16378 postdep_objects_CXX="$postdep_objects_CXX $p"
16383 *) ;; # Ignore the rest.
16391 echo "libtool.m4: error: problem compiling CXX test program"
16394 $rm -f confest.$objext
16396 case " $postdeps_CXX " in
16397 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16400 lt_prog_compiler_wl_CXX=
16401 lt_prog_compiler_pic_CXX=
16402 lt_prog_compiler_static_CXX=
16404 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16405 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16407 # C++ specific cases for pic, static, wl, etc.
16408 if test "$GXX" = yes; then
16409 lt_prog_compiler_wl_CXX='-Wl,'
16410 lt_prog_compiler_static_CXX='-static'
16414 # All AIX code is PIC.
16415 if test "$host_cpu" = ia64; then
16416 # AIX 5 now supports IA64 processor
16417 lt_prog_compiler_static_CXX='-Bstatic'
16421 # FIXME: we need at least 68020 code to build shared libraries, but
16422 # adding the `-m68020' flag to GCC prevents building anything better,
16424 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16426 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16427 # PIC is the default for these OSes.
16429 mingw* | os2* | pw32*)
16430 # This hack is so that the source file can tell whether it is being
16431 # built for inclusion in a dll (and should export symbols for example).
16432 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16434 darwin* | rhapsody*)
16435 # PIC is the default on this platform
16436 # Common symbols not allowed in MH_DYLIB files
16437 lt_prog_compiler_pic_CXX='-fno-common'
16440 # DJGPP does not support shared libraries at all
16441 lt_prog_compiler_pic_CXX=
16444 if test -d /usr/nec; then
16445 lt_prog_compiler_pic_CXX=-Kconform_pic
16449 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16450 # not for PA HP-UX.
16451 case "$host_cpu" in
16455 lt_prog_compiler_pic_CXX='-fPIC'
16460 lt_prog_compiler_pic_CXX='-fPIC'
16466 # All AIX code is PIC.
16467 if test "$host_cpu" = ia64; then
16468 # AIX 5 now supports IA64 processor
16469 lt_prog_compiler_static_CXX='-Bstatic'
16471 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16475 case $cc_basename in
16477 # Green Hills C++ Compiler
16478 # _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"
16483 # PIC is the default on this platform
16484 # Common symbols not allowed in MH_DYLIB files
16485 case "$cc_basename" in
16487 lt_prog_compiler_pic_CXX='-qnocommon'
16488 lt_prog_compiler_wl_CXX='-Wl,'
16493 case $cc_basename in
16495 lt_prog_compiler_pic_CXX='-KPIC'
16498 # Green Hills C++ Compiler
16499 lt_prog_compiler_pic_CXX='-pic'
16505 freebsd* | kfreebsd*-gnu)
16506 # FreeBSD uses GNU C++
16508 hpux9* | hpux10* | hpux11*)
16509 case $cc_basename in
16511 lt_prog_compiler_wl_CXX='-Wl,'
16512 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16513 if test "$host_cpu" != ia64; then
16514 lt_prog_compiler_pic_CXX='+Z'
16518 lt_prog_compiler_wl_CXX='-Wl,'
16519 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16520 case "$host_cpu" in
16525 lt_prog_compiler_pic_CXX='+Z'
16533 irix5* | irix6* | nonstopux*)
16534 case $cc_basename in
16536 lt_prog_compiler_wl_CXX='-Wl,'
16537 lt_prog_compiler_static_CXX='-non_shared'
16538 # CC pic flag -KPIC is the default.
16545 case $cc_basename in
16548 lt_prog_compiler_wl_CXX='--backend -Wl,'
16549 lt_prog_compiler_pic_CXX='-fPIC'
16553 lt_prog_compiler_wl_CXX='-Wl,'
16554 lt_prog_compiler_pic_CXX='-KPIC'
16555 lt_prog_compiler_static_CXX='-static'
16559 # Make sure the PIC flag is empty. It appears that all Alpha
16560 # Linux and Compaq Tru64 Unix objects are PIC.
16561 lt_prog_compiler_pic_CXX=
16562 lt_prog_compiler_static_CXX='-non_shared'
16573 case $cc_basename in
16575 lt_prog_compiler_pic_CXX='-W c,exportall'
16583 osf3* | osf4* | osf5*)
16584 case $cc_basename in
16586 lt_prog_compiler_wl_CXX='--backend -Wl,'
16589 # Rational C++ 2.4.1
16590 lt_prog_compiler_pic_CXX='-pic'
16593 # Digital/Compaq C++
16594 lt_prog_compiler_wl_CXX='-Wl,'
16595 # Make sure the PIC flag is empty. It appears that all Alpha
16596 # Linux and Compaq Tru64 Unix objects are PIC.
16597 lt_prog_compiler_pic_CXX=
16598 lt_prog_compiler_static_CXX='-non_shared'
16607 case $cc_basename in
16609 lt_prog_compiler_pic_CXX='-fPIC'
16616 case $cc_basename in
16618 # Sun C++ 4.2, 5.x and Centerline C++
16619 lt_prog_compiler_pic_CXX='-KPIC'
16620 lt_prog_compiler_static_CXX='-Bstatic'
16621 lt_prog_compiler_wl_CXX='-Qoption ld '
16624 # Green Hills C++ Compiler
16625 lt_prog_compiler_pic_CXX='-PIC'
16632 case $cc_basename in
16635 lt_prog_compiler_pic_CXX='-pic'
16636 lt_prog_compiler_static_CXX='-Bstatic'
16640 lt_prog_compiler_pic_CXX='-pic'
16647 case $cc_basename in
16649 # NonStop-UX NCC 3.20
16650 lt_prog_compiler_pic_CXX='-KPIC'
16661 lt_prog_compiler_can_build_shared_CXX=no
16666 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16667 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16670 # Check to make sure the PIC flag actually works.
16672 if test -n "$lt_prog_compiler_pic_CXX"; then
16674 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16676 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 lt_prog_compiler_pic_works_CXX=no
16680 ac_outfile=conftest.$ac_objext
16681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16682 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16683 # Insert the option either (1) after the last *FLAGS variable, or
16684 # (2) before a word containing "conftest.", or (3) at the end.
16685 # Note that $ac_compile itself does not contain backslashes and begins
16686 # with a dollar sign (not a hyphen), so the echo should work correctly.
16687 # The option is referenced via a variable to avoid confusing sed.
16688 lt_compile=`echo "$ac_compile" | $SED \
16689 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691 -e 's:$: $lt_compiler_flag:'`
16692 (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
16693 (eval "$lt_compile" 2>conftest.err)
16695 cat conftest.err >&5
16696 echo "$as_me:16696: \$? = $ac_status" >&5
16697 if (exit $ac_status) && test -s "$ac_outfile"; then
16698 # The compiler can only warn and ignore the option if not recognized
16699 # So say no if there are warnings
16700 if test ! -s conftest.err; then
16701 lt_prog_compiler_pic_works_CXX=yes
16707 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16708 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16710 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16711 case $lt_prog_compiler_pic_CXX in
16713 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16716 lt_prog_compiler_pic_CXX=
16717 lt_prog_compiler_can_build_shared_CXX=no
16722 # For platforms which do not support PIC, -DPIC is meaningless:
16724 lt_prog_compiler_pic_CXX=
16727 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16731 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16732 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16733 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 lt_cv_prog_compiler_c_o_CXX=no
16737 $rm -r conftest 2>/dev/null
16741 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16743 lt_compiler_flag="-o out/conftest2.$ac_objext"
16744 # Insert the option either (1) after the last *FLAGS variable, or
16745 # (2) before a word containing "conftest.", or (3) at the end.
16746 # Note that $ac_compile itself does not contain backslashes and begins
16747 # with a dollar sign (not a hyphen), so the echo should work correctly.
16748 lt_compile=`echo "$ac_compile" | $SED \
16749 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16751 -e 's:$: $lt_compiler_flag:'`
16752 (eval echo "\"\$as_me:16752: $lt_compile\"" >&5)
16753 (eval "$lt_compile" 2>out/conftest.err)
16755 cat out/conftest.err >&5
16756 echo "$as_me:16756: \$? = $ac_status" >&5
16757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16759 # The compiler can only warn and ignore the option if not recognized
16760 # So say no if there are warnings
16761 if test ! -s out/conftest.err; then
16762 lt_cv_prog_compiler_c_o_CXX=yes
16767 # SGI C++ compiler will create directory out/ii_files/ for
16768 # template instantiation
16769 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16770 $rm out/* && rmdir out
16776 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16777 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16780 hard_links="nottested"
16781 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16782 # do not overwrite the value of need_locks provided by the user
16783 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16784 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16789 ln conftest.a conftest.b 2>&5 || hard_links=no
16790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16791 echo "$as_me:$LINENO: result: $hard_links" >&5
16792 echo "${ECHO_T}$hard_links" >&6
16793 if test "$hard_links" = no; then
16794 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16795 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16802 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16803 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16805 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16808 # If we're using GNU nm, then we don't want the "-C" option.
16809 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16810 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16811 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'
16813 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'
16817 export_symbols_cmds_CXX="$ltdll_cmds"
16820 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16823 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16827 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16828 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16829 test "$ld_shlibs_CXX" = no && can_build_shared=no
16831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16832 if test "$GCC" = yes; then
16833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16837 # Do we need to explicitly link libc?
16839 case "x$archive_cmds_need_lc_CXX" in
16841 # Assume -lc should be added
16842 archive_cmds_need_lc_CXX=yes
16844 if test "$enable_shared" = yes && test "$GCC" = yes; then
16845 case $archive_cmds_CXX in
16847 # FIXME: we may have to deal with multi-command sequences.
16850 # Test whether the compiler implicitly links with -lc since on some
16851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16852 # to ld, don't add -lc before -lgcc.
16853 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16854 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16859 (eval $ac_compile) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } 2>conftest.err; then
16865 libobjs=conftest.$ac_objext
16867 wl=$lt_prog_compiler_wl_CXX
16873 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16874 allow_undefined_flag_CXX=
16875 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16876 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }
16881 archive_cmds_need_lc_CXX=no
16883 archive_cmds_need_lc_CXX=yes
16885 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16887 cat conftest.err 1>&5
16890 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16891 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16898 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16899 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16900 library_names_spec=
16901 libname_spec='lib$name'
16905 postuninstall_cmds=
16909 shlibpath_overrides_runpath=unknown
16911 dynamic_linker="$host_os ld.so"
16912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16913 if test "$GCC" = yes; then
16914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16915 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16916 # if the path contains ";" then we assume it to be the separator
16917 # otherwise default to the standard path separator (i.e. ":") - it is
16918 # assumed that no part of a normal pathname contains ";" but that should
16919 # okay in the real world where ";" in dirpaths is itself problematic.
16920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16927 need_lib_prefix=unknown
16928 hardcode_into_libs=no
16930 # when you set need_version to no, make sure it does not cause -set_version
16931 # flags to be left without arguments
16932 need_version=unknown
16937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16938 shlibpath_var=LIBPATH
16940 # AIX 3 has no versioning support, so we append a major version to the name.
16941 soname_spec='${libname}${release}${shared_ext}$major'
16948 hardcode_into_libs=yes
16949 if test "$host_cpu" = ia64; then
16950 # AIX 5 supports IA64
16951 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16952 shlibpath_var=LD_LIBRARY_PATH
16954 # With GCC up to 2.95.x, collect2 would create an import file
16955 # for dependence libraries. The import file would start with
16956 # the line `#! .'. This would cause the generated library to
16957 # depend on `.', always an invalid library. This was fixed in
16958 # development snapshots of GCC prior to 3.0.
16960 aix4 | aix4.[01] | aix4.[01].*)
16961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16963 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16966 can_build_shared=no
16970 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16971 # soname into executable. Probably we can add versioning support to
16972 # collect2, so additional links can be useful in future.
16973 if test "$aix_use_runtimelinking" = yes; then
16974 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16975 # instead of lib<name>.a to let people know that these are not
16976 # typical AIX shared libraries.
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16979 # We preserve .a as extension for shared libraries through AIX4.2
16980 # and later when we are not doing run time linking.
16981 library_names_spec='${libname}${release}.a $libname.a'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16984 shlibpath_var=LIBPATH
16989 library_names_spec='$libname.ixlibrary $libname.a'
16990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16991 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'
16995 library_names_spec='${libname}${shared_ext}'
16996 dynamic_linker="$host_os ld.so"
16997 shlibpath_var=LIBRARY_PATH
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17009 # the default ld.so.conf also contains /usr/contrib/lib and
17010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17011 # libtool to hard-code these into programs
17014 cygwin* | mingw* | pw32*)
17015 version_type=windows
17020 case $GCC,$host_os in
17021 yes,cygwin* | yes,mingw* | yes,pw32*)
17022 library_names_spec='$libname.dll.a'
17023 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17024 postinstall_cmds='base_file=`basename \${file}`~
17025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17026 dldir=$destdir/`dirname \$dlpath`~
17027 test -d \$dldir || mkdir -p \$dldir~
17028 $install_prog $dir/$dlname \$dldir/$dlname'
17029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17030 dlpath=$dir/\$dldll~
17032 shlibpath_overrides_runpath=yes
17036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17041 # MinGW DLLs use traditional 'lib' prefix
17042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17045 # It is most probably a Windows format PATH printed by
17046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17047 # path with ; separators, and with drive letters. We can handle the
17048 # drive letters (cygwin fileutils understands them), so leave them,
17049 # especially as we might pass files found there to a mingw objdump,
17050 # which wouldn't understand a cygwinified path. Ahh.
17051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17057 # pw32 DLLs use 'pw' prefix rather than 'lib'
17058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17067 dynamic_linker='Win32 ld.exe'
17068 # FIXME: first we should search . and the directory the executable is in
17072 darwin* | rhapsody*)
17073 dynamic_linker="$host_os dyld"
17074 version_type=darwin
17077 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17078 soname_spec='${libname}${release}${major}$shared_ext'
17079 shlibpath_overrides_runpath=yes
17080 shlibpath_var=DYLD_LIBRARY_PATH
17081 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17082 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17083 if test "$GCC" = yes; then
17084 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"`
17086 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 shlibpath_var=LD_LIBRARY_PATH
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 shlibpath_overrides_runpath=no
17112 hardcode_into_libs=yes
17113 dynamic_linker='GNU ld.so'
17117 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17118 version_type=freebsd-$objformat
17119 case $version_type in
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17130 shlibpath_var=LD_LIBRARY_PATH
17133 shlibpath_overrides_runpath=yes
17135 freebsd3.01* | freebsdelf3.01*)
17136 shlibpath_overrides_runpath=yes
17137 hardcode_into_libs=yes
17140 shlibpath_overrides_runpath=no
17141 hardcode_into_libs=yes
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 shlibpath_var=LD_LIBRARY_PATH
17153 hardcode_into_libs=yes
17156 hpux9* | hpux10* | hpux11*)
17157 # Give a soname corresponding to the major version so that dld.sl refuses to
17158 # link against other versions.
17162 case "$host_cpu" in
17165 hardcode_into_libs=yes
17166 dynamic_linker="$host_os dld.so"
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170 soname_spec='${libname}${release}${shared_ext}$major'
17171 if test "X$HPUX_IA64_MODE" = X32; then
17172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17180 hardcode_into_libs=yes
17181 dynamic_linker="$host_os dld.sl"
17182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17191 dynamic_linker="$host_os dld.sl"
17192 shlibpath_var=SHLIB_PATH
17193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17199 postinstall_cmds='chmod 555 $lib'
17202 irix5* | irix6* | nonstopux*)
17204 nonstopux*) version_type=nonstopux ;;
17206 if test "$lt_cv_prog_gnu_ld" = yes; then
17214 soname_spec='${libname}${release}${shared_ext}$major'
17215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17217 irix5* | nonstopux*)
17218 libsuff= shlibsuff=
17221 case $LD in # libtool.m4 will add one of these switches to LD
17222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17223 libsuff= shlibsuff= libmagic=32-bit;;
17224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17225 libsuff=32 shlibsuff=N32 libmagic=N32;;
17226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17228 *) libsuff= shlibsuff= libmagic=never-match;;
17232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17233 shlibpath_overrides_runpath=no
17234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17236 hardcode_into_libs=yes
17239 # No shared lib support for Linux oldld, aout, or coff.
17240 linux*oldld* | linux*aout* | linux*coff*)
17244 # This must be Linux ELF.
17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250 soname_spec='${libname}${release}${shared_ext}$major'
17251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17252 shlibpath_var=LD_LIBRARY_PATH
17253 shlibpath_overrides_runpath=no
17254 # This implies no fast_install, which is unacceptable.
17255 # Some rework will be needed to allow for fast_install
17256 # before this can be enabled.
17257 hardcode_into_libs=yes
17259 # Append ld.so.conf contents to the search path
17260 if test -f /etc/ld.so.conf; then
17261 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17265 # We used to test for /lib/ld.so.1 and disable shared libraries on
17266 # powerpc, because MkLinux only supported shared libraries with the
17267 # GNU dynamic linker. Since this was broken with cross compilers,
17268 # most powerpc-linux boxes support dynamic linking these days and
17269 # people can always --disable-shared, the test was removed, and we
17270 # assume the GNU/Linux dynamic linker is in use.
17271 dynamic_linker='GNU/Linux ld.so'
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=no
17282 hardcode_into_libs=yes
17283 dynamic_linker='GNU ld.so'
17290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17293 dynamic_linker='NetBSD (a.out) ld.so'
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17296 soname_spec='${libname}${release}${shared_ext}$major'
17297 dynamic_linker='NetBSD ld.elf_so'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath=yes
17301 hardcode_into_libs=yes
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307 shlibpath_var=LD_LIBRARY_PATH
17308 shlibpath_overrides_runpath=yes
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17316 soname_spec='${libname}${release}${shared_ext}$major'
17317 shlibpath_var=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath=yes
17325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17327 shlibpath_var=LD_LIBRARY_PATH
17328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17330 openbsd2.[89] | openbsd2.[89].*)
17331 shlibpath_overrides_runpath=no
17334 shlibpath_overrides_runpath=yes
17338 shlibpath_overrides_runpath=yes
17343 libname_spec='$name'
17346 library_names_spec='$libname${shared_ext} $libname.a'
17347 dynamic_linker='OS/2 ld.exe'
17348 shlibpath_var=LIBPATH
17351 osf3* | osf4* | osf5*)
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357 shlibpath_var=LD_LIBRARY_PATH
17358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366 shlibpath_var=LD_LIBRARY_PATH
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17374 soname_spec='${libname}${release}${shared_ext}$major'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath=yes
17377 hardcode_into_libs=yes
17378 # ldd complains unless libraries are executable
17379 postinstall_cmds='chmod +x $lib'
17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17386 shlibpath_var=LD_LIBRARY_PATH
17387 shlibpath_overrides_runpath=yes
17388 if test "$with_gnu_ld" = yes; then
17394 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 soname_spec='${libname}${release}${shared_ext}$major'
17398 shlibpath_var=LD_LIBRARY_PATH
17399 case $host_vendor in
17401 shlibpath_overrides_runpath=no
17403 export_dynamic_flag_spec='${wl}-Blargedynsym'
17404 runpath_var=LD_RUN_PATH
17412 shlibpath_overrides_runpath=no
17413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17419 if test -d /usr/nec ;then
17421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17422 soname_spec='$libname${shared_ext}.$major'
17423 shlibpath_var=LD_LIBRARY_PATH
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 shlibpath_var=LD_LIBRARY_PATH
17438 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17439 echo "${ECHO_T}$dynamic_linker" >&6
17440 test "$dynamic_linker" = no && can_build_shared=no
17442 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17443 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17444 hardcode_action_CXX=
17445 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17446 test -n "$runpath_var_CXX" || \
17447 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17449 # We can hardcode non-existant directories.
17450 if test "$hardcode_direct_CXX" != no &&
17451 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17452 # have to relink, otherwise we might link with an installed library
17453 # when we should be linking with a yet-to-be-installed one
17454 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17455 test "$hardcode_minus_L_CXX" != no; then
17456 # Linking always hardcodes the temporary library directory.
17457 hardcode_action_CXX=relink
17459 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17460 hardcode_action_CXX=immediate
17463 # We cannot hardcode anything, or else we can only hardcode existing
17465 hardcode_action_CXX=unsupported
17467 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17468 echo "${ECHO_T}$hardcode_action_CXX" >&6
17470 if test "$hardcode_action_CXX" = relink; then
17471 # Fast installation is not supported
17472 enable_fast_install=no
17473 elif test "$shlibpath_overrides_runpath" = yes ||
17474 test "$enable_shared" = no; then
17475 # Fast installation is not necessary
17476 enable_fast_install=needless
17481 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17482 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17483 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17484 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17485 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17486 echo "$as_me:$LINENO: result: yes" >&5
17487 echo "${ECHO_T}yes" >&6
17489 # FIXME - insert some real tests, host_os isn't really good enough
17492 if test -n "$STRIP" ; then
17493 striplib="$STRIP -x"
17494 echo "$as_me:$LINENO: result: yes" >&5
17495 echo "${ECHO_T}yes" >&6
17497 echo "$as_me:$LINENO: result: no" >&5
17498 echo "${ECHO_T}no" >&6
17502 echo "$as_me:$LINENO: result: no" >&5
17503 echo "${ECHO_T}no" >&6
17508 if test "x$enable_dlopen" != xyes; then
17509 enable_dlopen=unknown
17510 enable_dlopen_self=unknown
17511 enable_dlopen_self_static=unknown
17518 lt_cv_dlopen="load_add_on"
17520 lt_cv_dlopen_self=yes
17524 lt_cv_dlopen="LoadLibrary"
17529 lt_cv_dlopen="dlopen"
17534 # if libdl is installed we need to link against it
17535 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17536 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17537 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 ac_check_lib_save_LIBS=$LIBS
17542 cat >conftest.$ac_ext <<_ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h. */
17549 /* Override any gcc2 internal prototype to avoid an error. */
17553 /* We use char because int might match the return type of a gcc2
17554 builtin and then its argument prototype would still apply. */
17564 rm -f conftest.$ac_objext conftest$ac_exeext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566 (eval $ac_link) 2>conftest.er1
17568 grep -v '^ *+' conftest.er1 >conftest.err
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -z "$ac_cxx_werror_flag"
17574 || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest$ac_exeext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_cv_lib_dl_dlopen=yes
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17591 ac_cv_lib_dl_dlopen=no
17593 rm -f conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
17595 LIBS=$ac_check_lib_save_LIBS
17597 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17598 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17599 if test $ac_cv_lib_dl_dlopen = yes; then
17600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17603 lt_cv_dlopen="dyld"
17605 lt_cv_dlopen_self=yes
17612 echo "$as_me:$LINENO: checking for shl_load" >&5
17613 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17614 if test "${ac_cv_func_shl_load+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 cat >conftest.$ac_ext <<_ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17623 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17625 #define shl_load innocuous_shl_load
17627 /* System header to define __stub macros and hopefully few prototypes,
17628 which can conflict with char shl_load (); below.
17629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630 <limits.h> exists even on freestanding compilers. */
17633 # include <limits.h>
17635 # include <assert.h>
17640 /* Override any gcc2 internal prototype to avoid an error. */
17645 /* We use char because int might match the return type of a gcc2
17646 builtin and then its argument prototype would still apply. */
17648 /* The GNU C library defines this for functions which it implements
17649 to always fail with ENOSYS. Some functions are actually named
17650 something starting with __ and the normal name is an alias. */
17651 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17654 char (*f) () = shl_load;
17663 return f != shl_load;
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670 (eval $ac_link) 2>conftest.er1
17672 grep -v '^ *+' conftest.er1 >conftest.err
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_cxx_werror_flag"
17678 || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest$ac_exeext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_func_shl_load=yes
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_func_shl_load=no
17697 rm -f conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
17700 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17701 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17702 if test $ac_cv_func_shl_load = yes; then
17703 lt_cv_dlopen="shl_load"
17705 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17706 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17707 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 ac_check_lib_save_LIBS=$LIBS
17712 cat >conftest.$ac_ext <<_ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h. */
17719 /* Override any gcc2 internal prototype to avoid an error. */
17723 /* We use char because int might match the return type of a gcc2
17724 builtin and then its argument prototype would still apply. */
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17736 (eval $ac_link) 2>conftest.er1
17738 grep -v '^ *+' conftest.er1 >conftest.err
17740 cat conftest.err >&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } &&
17743 { ac_try='test -z "$ac_cxx_werror_flag"
17744 || test ! -s conftest.err'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; } &&
17750 { ac_try='test -s conftest$ac_exeext'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; }; then
17756 ac_cv_lib_dld_shl_load=yes
17758 echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17761 ac_cv_lib_dld_shl_load=no
17763 rm -f conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
17765 LIBS=$ac_check_lib_save_LIBS
17767 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17768 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17769 if test $ac_cv_lib_dld_shl_load = yes; then
17770 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17772 echo "$as_me:$LINENO: checking for dlopen" >&5
17773 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17774 if test "${ac_cv_func_dlopen+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 cat >conftest.$ac_ext <<_ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17785 #define dlopen innocuous_dlopen
17787 /* System header to define __stub macros and hopefully few prototypes,
17788 which can conflict with char dlopen (); below.
17789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790 <limits.h> exists even on freestanding compilers. */
17793 # include <limits.h>
17795 # include <assert.h>
17800 /* Override any gcc2 internal prototype to avoid an error. */
17805 /* We use char because int might match the return type of a gcc2
17806 builtin and then its argument prototype would still apply. */
17808 /* The GNU C library defines this for functions which it implements
17809 to always fail with ENOSYS. Some functions are actually named
17810 something starting with __ and the normal name is an alias. */
17811 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17814 char (*f) () = dlopen;
17823 return f != dlopen;
17828 rm -f conftest.$ac_objext conftest$ac_exeext
17829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17830 (eval $ac_link) 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try='test -z "$ac_cxx_werror_flag"
17838 || test ! -s conftest.err'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest$ac_exeext'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 ac_cv_func_dlopen=yes
17852 echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17855 ac_cv_func_dlopen=no
17857 rm -f conftest.err conftest.$ac_objext \
17858 conftest$ac_exeext conftest.$ac_ext
17860 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17861 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17862 if test $ac_cv_func_dlopen = yes; then
17863 lt_cv_dlopen="dlopen"
17865 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17870 ac_check_lib_save_LIBS=$LIBS
17872 cat >conftest.$ac_ext <<_ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17879 /* Override any gcc2 internal prototype to avoid an error. */
17883 /* We use char because int might match the return type of a gcc2
17884 builtin and then its argument prototype would still apply. */
17894 rm -f conftest.$ac_objext conftest$ac_exeext
17895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17896 (eval $ac_link) 2>conftest.er1
17898 grep -v '^ *+' conftest.er1 >conftest.err
17900 cat conftest.err >&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } &&
17903 { ac_try='test -z "$ac_cxx_werror_flag"
17904 || test ! -s conftest.err'
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; } &&
17910 { ac_try='test -s conftest$ac_exeext'
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; }; then
17916 ac_cv_lib_dl_dlopen=yes
17918 echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17921 ac_cv_lib_dl_dlopen=no
17923 rm -f conftest.err conftest.$ac_objext \
17924 conftest$ac_exeext conftest.$ac_ext
17925 LIBS=$ac_check_lib_save_LIBS
17927 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17928 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17929 if test $ac_cv_lib_dl_dlopen = yes; then
17930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17932 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17933 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17934 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 ac_check_lib_save_LIBS=$LIBS
17938 LIBS="-lsvld $LIBS"
17939 cat >conftest.$ac_ext <<_ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17946 /* Override any gcc2 internal prototype to avoid an error. */
17950 /* We use char because int might match the return type of a gcc2
17951 builtin and then its argument prototype would still apply. */
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963 (eval $ac_link) 2>conftest.er1
17965 grep -v '^ *+' conftest.er1 >conftest.err
17967 cat conftest.err >&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } &&
17970 { ac_try='test -z "$ac_cxx_werror_flag"
17971 || test ! -s conftest.err'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; } &&
17977 { ac_try='test -s conftest$ac_exeext'
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17983 ac_cv_lib_svld_dlopen=yes
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17988 ac_cv_lib_svld_dlopen=no
17990 rm -f conftest.err conftest.$ac_objext \
17991 conftest$ac_exeext conftest.$ac_ext
17992 LIBS=$ac_check_lib_save_LIBS
17994 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17995 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17996 if test $ac_cv_lib_svld_dlopen = yes; then
17997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17999 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18000 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18001 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 ac_check_lib_save_LIBS=$LIBS
18006 cat >conftest.$ac_ext <<_ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18013 /* Override any gcc2 internal prototype to avoid an error. */
18017 /* We use char because int might match the return type of a gcc2
18018 builtin and then its argument prototype would still apply. */
18028 rm -f conftest.$ac_objext conftest$ac_exeext
18029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18030 (eval $ac_link) 2>conftest.er1
18032 grep -v '^ *+' conftest.er1 >conftest.err
18034 cat conftest.err >&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } &&
18037 { ac_try='test -z "$ac_cxx_werror_flag"
18038 || test ! -s conftest.err'
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; } &&
18044 { ac_try='test -s conftest$ac_exeext'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 ac_cv_lib_dld_dld_link=yes
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 ac_cv_lib_dld_dld_link=no
18057 rm -f conftest.err conftest.$ac_objext \
18058 conftest$ac_exeext conftest.$ac_ext
18059 LIBS=$ac_check_lib_save_LIBS
18061 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18062 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18063 if test $ac_cv_lib_dld_dld_link = yes; then
18064 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18085 if test "x$lt_cv_dlopen" != xno; then
18091 case $lt_cv_dlopen in
18093 save_CPPFLAGS="$CPPFLAGS"
18094 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18096 save_LDFLAGS="$LDFLAGS"
18097 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18100 LIBS="$lt_cv_dlopen_libs $LIBS"
18102 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18103 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18104 if test "${lt_cv_dlopen_self+set}" = set; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 if test "$cross_compiling" = yes; then :
18108 lt_cv_dlopen_self=cross
18110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18111 lt_status=$lt_dlunknown
18112 cat > conftest.$ac_ext <<EOF
18113 #line 18113 "configure"
18114 #include "confdefs.h"
18123 # define LT_DLGLOBAL RTLD_GLOBAL
18126 # define LT_DLGLOBAL DL_GLOBAL
18128 # define LT_DLGLOBAL 0
18132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18133 find out it does not work in some platform. */
18134 #ifndef LT_DLLAZY_OR_NOW
18136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18139 # define LT_DLLAZY_OR_NOW DL_LAZY
18142 # define LT_DLLAZY_OR_NOW RTLD_NOW
18145 # define LT_DLLAZY_OR_NOW DL_NOW
18147 # define LT_DLLAZY_OR_NOW 0
18155 extern "C" void exit (int);
18158 void fnord() { int i=42;}
18161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18162 int status = $lt_dlunknown;
18166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18168 /* dlclose (self); */
18174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18175 (eval $ac_link) 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18179 (./conftest; exit; ) 2>/dev/null
18181 case x$lt_status in
18182 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18183 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18184 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18187 # compilation failed
18188 lt_cv_dlopen_self=no
18195 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18196 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18198 if test "x$lt_cv_dlopen_self" = xyes; then
18199 LDFLAGS="$LDFLAGS $link_static_flag"
18200 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18201 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18202 if test "${lt_cv_dlopen_self_static+set}" = set; then
18203 echo $ECHO_N "(cached) $ECHO_C" >&6
18205 if test "$cross_compiling" = yes; then :
18206 lt_cv_dlopen_self_static=cross
18208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18209 lt_status=$lt_dlunknown
18210 cat > conftest.$ac_ext <<EOF
18211 #line 18211 "configure"
18212 #include "confdefs.h"
18221 # define LT_DLGLOBAL RTLD_GLOBAL
18224 # define LT_DLGLOBAL DL_GLOBAL
18226 # define LT_DLGLOBAL 0
18230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18231 find out it does not work in some platform. */
18232 #ifndef LT_DLLAZY_OR_NOW
18234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18237 # define LT_DLLAZY_OR_NOW DL_LAZY
18240 # define LT_DLLAZY_OR_NOW RTLD_NOW
18243 # define LT_DLLAZY_OR_NOW DL_NOW
18245 # define LT_DLLAZY_OR_NOW 0
18253 extern "C" void exit (int);
18256 void fnord() { int i=42;}
18259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18260 int status = $lt_dlunknown;
18264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18265 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18266 /* dlclose (self); */
18272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273 (eval $ac_link) 2>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18277 (./conftest; exit; ) 2>/dev/null
18279 case x$lt_status in
18280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18282 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18285 # compilation failed
18286 lt_cv_dlopen_self_static=no
18293 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18294 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18297 CPPFLAGS="$save_CPPFLAGS"
18298 LDFLAGS="$save_LDFLAGS"
18303 case $lt_cv_dlopen_self in
18304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18305 *) enable_dlopen_self=unknown ;;
18308 case $lt_cv_dlopen_self_static in
18309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18310 *) enable_dlopen_self_static=unknown ;;
18315 # The else clause should only fire when bootstrapping the
18316 # libtool distribution, otherwise you forgot to ship ltmain.sh
18317 # with your package, and you will get complaints that there are
18318 # no rules to generate ltmain.sh.
18319 if test -f "$ltmain"; then
18320 # See if we are running on zsh, and set the options which allow our commands through
18321 # without removal of \ escapes.
18322 if test -n "${ZSH_VERSION+set}" ; then
18323 setopt NO_GLOB_SUBST
18325 # Now quote all the things that may contain metacharacters while being
18326 # careful not to overquote the AC_SUBSTed values. We take copies of the
18327 # variables and quote the copies for generation of the libtool script.
18328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18332 deplibs_check_method reload_flag reload_cmds need_locks \
18333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18334 lt_cv_sys_global_symbol_to_c_name_address \
18335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18336 old_postinstall_cmds old_postuninstall_cmds \
18340 lt_prog_compiler_wl_CXX \
18341 lt_prog_compiler_pic_CXX \
18342 lt_prog_compiler_static_CXX \
18343 lt_prog_compiler_no_builtin_flag_CXX \
18344 export_dynamic_flag_spec_CXX \
18345 thread_safe_flag_spec_CXX \
18346 whole_archive_flag_spec_CXX \
18347 enable_shared_with_static_runtimes_CXX \
18348 old_archive_cmds_CXX \
18349 old_archive_from_new_cmds_CXX \
18350 predep_objects_CXX \
18351 postdep_objects_CXX \
18354 compiler_lib_search_path_CXX \
18356 archive_expsym_cmds_CXX \
18357 postinstall_cmds_CXX \
18358 postuninstall_cmds_CXX \
18359 old_archive_from_expsyms_cmds_CXX \
18360 allow_undefined_flag_CXX \
18361 no_undefined_flag_CXX \
18362 export_symbols_cmds_CXX \
18363 hardcode_libdir_flag_spec_CXX \
18364 hardcode_libdir_flag_spec_ld_CXX \
18365 hardcode_libdir_separator_CXX \
18366 hardcode_automatic_CXX \
18368 module_expsym_cmds_CXX \
18369 lt_cv_prog_compiler_c_o_CXX \
18370 exclude_expsyms_CXX \
18371 include_expsyms_CXX; do
18374 old_archive_cmds_CXX | \
18375 old_archive_from_new_cmds_CXX | \
18376 archive_cmds_CXX | \
18377 archive_expsym_cmds_CXX | \
18378 module_cmds_CXX | \
18379 module_expsym_cmds_CXX | \
18380 old_archive_from_expsyms_cmds_CXX | \
18381 export_symbols_cmds_CXX | \
18382 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18383 postinstall_cmds | postuninstall_cmds | \
18384 old_postinstall_cmds | old_postuninstall_cmds | \
18385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18386 # Double-quote double-evaled strings.
18387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18396 *'\$0 --fallback-echo"')
18397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18403 cat <<__EOF__ >> "$cfgfile"
18404 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18408 # Shell to use when invoking shell scripts.
18411 # Whether or not to build shared libraries.
18412 build_libtool_libs=$enable_shared
18414 # Whether or not to build static libraries.
18415 build_old_libs=$enable_static
18417 # Whether or not to add -lc for building shared libraries.
18418 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18420 # Whether or not to disallow shared libs when runtime libs are static
18421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18423 # Whether or not to optimize for fast installation.
18424 fast_install=$enable_fast_install
18427 host_alias=$host_alias
18430 # An echo program that does not interpret backslashes.
18435 AR_FLAGS=$lt_AR_FLAGS
18440 # A language-specific compiler.
18441 CC=$lt_compiler_CXX
18443 # Is the compiler the GNU C compiler?
18449 # The linker used to build libraries.
18452 # Whether we need hard or soft links.
18455 # A BSD-compatible nm program.
18458 # A symbol stripping program
18461 # Used to examine libraries when file_magic_cmd begins "file"
18462 MAGIC_CMD=$MAGIC_CMD
18464 # Used on cygwin: DLL creation program.
18467 # Used on cygwin: object dumper.
18470 # Used on cygwin: assembler.
18473 # The name of the directory that contains temporary libtool files.
18476 # How to create reloadable object files.
18477 reload_flag=$lt_reload_flag
18478 reload_cmds=$lt_reload_cmds
18480 # How to pass a linker flag through the compiler.
18481 wl=$lt_lt_prog_compiler_wl_CXX
18483 # Object file suffix (normally "o").
18484 objext="$ac_objext"
18486 # Old archive suffix (normally "a").
18489 # Shared library suffix (normally ".so").
18490 shrext_cmds='$shrext_cmds'
18492 # Executable file suffix (normally "").
18495 # Additional compiler flags for building library objects.
18496 pic_flag=$lt_lt_prog_compiler_pic_CXX
18499 # What is the maximum length of a command?
18500 max_cmd_len=$lt_cv_sys_max_cmd_len
18502 # Does compiler simultaneously support -c and -o options?
18503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18505 # Must we lock files when doing compilation ?
18506 need_locks=$lt_need_locks
18508 # Do we need the lib prefix for modules?
18509 need_lib_prefix=$need_lib_prefix
18511 # Do we need a version for libraries?
18512 need_version=$need_version
18514 # Whether dlopen is supported.
18515 dlopen_support=$enable_dlopen
18517 # Whether dlopen of programs is supported.
18518 dlopen_self=$enable_dlopen_self
18520 # Whether dlopen of statically linked programs is supported.
18521 dlopen_self_static=$enable_dlopen_self_static
18523 # Compiler flag to prevent dynamic linking.
18524 link_static_flag=$lt_lt_prog_compiler_static_CXX
18526 # Compiler flag to turn off builtin functions.
18527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18529 # Compiler flag to allow reflexive dlopens.
18530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18532 # Compiler flag to generate shared objects directly from archives.
18533 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18535 # Compiler flag to generate thread-safe objects.
18536 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18538 # Library versioning type.
18539 version_type=$version_type
18541 # Format of library name prefix.
18542 libname_spec=$lt_libname_spec
18544 # List of archive names. First name is the real one, the rest are links.
18545 # The last name is the one that the linker finds with -lNAME.
18546 library_names_spec=$lt_library_names_spec
18548 # The coded name of the library, if different from the real name.
18549 soname_spec=$lt_soname_spec
18551 # Commands used to build and install an old-style archive.
18553 old_archive_cmds=$lt_old_archive_cmds_CXX
18554 old_postinstall_cmds=$lt_old_postinstall_cmds
18555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18557 # Create an old-style archive from a shared archive.
18558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18560 # Create a temporary old-style archive to link instead of a shared archive.
18561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18563 # Commands used to build and install a shared archive.
18564 archive_cmds=$lt_archive_cmds_CXX
18565 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18566 postinstall_cmds=$lt_postinstall_cmds
18567 postuninstall_cmds=$lt_postuninstall_cmds
18569 # Commands used to build a loadable module (assumed same as above if empty)
18570 module_cmds=$lt_module_cmds_CXX
18571 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18573 # Commands to strip libraries.
18574 old_striplib=$lt_old_striplib
18575 striplib=$lt_striplib
18577 # Dependencies to place before the objects being linked to create a
18579 predep_objects=$lt_predep_objects_CXX
18581 # Dependencies to place after the objects being linked to create a
18583 postdep_objects=$lt_postdep_objects_CXX
18585 # Dependencies to place before the objects being linked to create a
18587 predeps=$lt_predeps_CXX
18589 # Dependencies to place after the objects being linked to create a
18591 postdeps=$lt_postdeps_CXX
18593 # The library search path used internally by the compiler when linking
18594 # a shared library.
18595 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18597 # Method to check whether dependent libraries are shared objects.
18598 deplibs_check_method=$lt_deplibs_check_method
18600 # Command to use when deplibs_check_method == file_magic.
18601 file_magic_cmd=$lt_file_magic_cmd
18603 # Flag that allows shared libraries with undefined symbols to be built.
18604 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18606 # Flag that forces no undefined symbols.
18607 no_undefined_flag=$lt_no_undefined_flag_CXX
18609 # Commands used to finish a libtool library installation in a directory.
18610 finish_cmds=$lt_finish_cmds
18612 # Same as above, but a single script fragment to be evaled but not shown.
18613 finish_eval=$lt_finish_eval
18615 # Take the output of nm and produce a listing of raw symbols and C names.
18616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18618 # Transform the output of nm in a proper C declaration
18619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18621 # Transform the output of nm in a C name address pair
18622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18624 # This is the shared library runtime path variable.
18625 runpath_var=$runpath_var
18627 # This is the shared library path variable.
18628 shlibpath_var=$shlibpath_var
18630 # Is shlibpath searched before the hard-coded library search path?
18631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18633 # How to hardcode a shared library path into an executable.
18634 hardcode_action=$hardcode_action_CXX
18636 # Whether we should hardcode library paths into libraries.
18637 hardcode_into_libs=$hardcode_into_libs
18639 # Flag to hardcode \$libdir into a binary during linking.
18640 # This must work even if \$libdir does not exist.
18641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18643 # If ld is used when linking, flag to hardcode \$libdir into
18644 # a binary during linking. This must work even if \$libdir does
18646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18648 # Whether we need a single -rpath flag with a separated argument.
18649 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18652 # resulting binary.
18653 hardcode_direct=$hardcode_direct_CXX
18655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18656 # resulting binary.
18657 hardcode_minus_L=$hardcode_minus_L_CXX
18659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18660 # the resulting binary.
18661 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18663 # Set to yes if building a shared library automatically hardcodes DIR into the library
18664 # and all subsequent libraries and executables linked against it.
18665 hardcode_automatic=$hardcode_automatic_CXX
18667 # Variables whose values should be saved in libtool wrapper scripts and
18668 # restored at relink time.
18669 variables_saved_for_relink="$variables_saved_for_relink"
18671 # Whether libtool must link a program against all its dependency libraries.
18672 link_all_deplibs=$link_all_deplibs_CXX
18674 # Compile-time system search path for libraries
18675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18677 # Run-time system search path for libraries
18678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18680 # Fix the shell variable \$srcfile for the compiler.
18681 fix_srcfile_path="$fix_srcfile_path_CXX"
18683 # Set to yes if exported symbols are required.
18684 always_export_symbols=$always_export_symbols_CXX
18686 # The commands to list exported symbols.
18687 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18689 # The commands to extract the exported symbol list from a shared archive.
18690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18692 # Symbols that should not be listed in the preloaded symbols.
18693 exclude_expsyms=$lt_exclude_expsyms_CXX
18695 # Symbols that must always be exported.
18696 include_expsyms=$lt_include_expsyms_CXX
18698 # ### END LIBTOOL TAG CONFIG: $tagname
18704 # If there is no Makefile yet, we rely on a make rule to execute
18705 # `config.status --recheck' to rerun these tests and create the
18706 # libtool script then.
18707 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18708 if test -f "$ltmain_in"; then
18709 test -f Makefile && make "$ltmain"
18715 ac_cpp='$CPP $CPPFLAGS'
18716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18724 with_gnu_ldcxx=$with_gnu_ld
18725 with_gnu_ld=$lt_save_with_gnu_ld
18726 lt_cv_path_LDCXX=$lt_cv_path_LD
18727 lt_cv_path_LD=$lt_save_path_LD
18728 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18729 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18737 if test -n "$F77" && test "X$F77" != "Xno"; then
18740 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18741 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18742 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18745 archive_cmds_need_lc_F77=no
18746 allow_undefined_flag_F77=
18747 always_export_symbols_F77=no
18748 archive_expsym_cmds_F77=
18749 export_dynamic_flag_spec_F77=
18750 hardcode_direct_F77=no
18751 hardcode_libdir_flag_spec_F77=
18752 hardcode_libdir_flag_spec_ld_F77=
18753 hardcode_libdir_separator_F77=
18754 hardcode_minus_L_F77=no
18755 hardcode_automatic_F77=no
18757 module_expsym_cmds_F77=
18758 link_all_deplibs_F77=unknown
18759 old_archive_cmds_F77=$old_archive_cmds
18760 no_undefined_flag_F77=
18761 whole_archive_flag_spec_F77=
18762 enable_shared_with_static_runtimes_F77=no
18764 # Source file extension for f77 test sources.
18767 # Object file extension for compiled f77 test sources.
18771 # Code to be used in simple compile tests
18772 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18774 # Code to be used in simple link tests
18775 lt_simple_link_test_code=" program t\n end\n"
18777 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18779 # If no C compiler was specified, use CC.
18782 # Allow CC to be a program name with arguments.
18786 # Allow CC to be a program name with arguments.
18791 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18793 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18794 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18795 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18796 echo "${ECHO_T}$can_build_shared" >&6
18798 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18799 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18800 test "$can_build_shared" = "no" && enable_shared=no
18802 # On AIX, shared libraries and static libraries use the same namespace, and
18803 # are all built from PIC.
18806 test "$enable_shared" = yes && enable_static=no
18807 if test -n "$RANLIB"; then
18808 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18809 postinstall_cmds='$RANLIB $lib'
18813 test "$enable_shared" = yes && enable_static=no
18816 echo "$as_me:$LINENO: result: $enable_shared" >&5
18817 echo "${ECHO_T}$enable_shared" >&6
18819 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18820 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18821 # Make sure either enable_shared or enable_static is yes.
18822 test "$enable_shared" = yes || enable_static=yes
18823 echo "$as_me:$LINENO: result: $enable_static" >&5
18824 echo "${ECHO_T}$enable_static" >&6
18826 test "$ld_shlibs_F77" = no && can_build_shared=no
18831 lt_prog_compiler_wl_F77=
18832 lt_prog_compiler_pic_F77=
18833 lt_prog_compiler_static_F77=
18835 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18836 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18838 if test "$GCC" = yes; then
18839 lt_prog_compiler_wl_F77='-Wl,'
18840 lt_prog_compiler_static_F77='-static'
18844 # All AIX code is PIC.
18845 if test "$host_cpu" = ia64; then
18846 # AIX 5 now supports IA64 processor
18847 lt_prog_compiler_static_F77='-Bstatic'
18852 # FIXME: we need at least 68020 code to build shared libraries, but
18853 # adding the `-m68020' flag to GCC prevents building anything better,
18855 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18858 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18859 # PIC is the default for these OSes.
18862 mingw* | pw32* | os2*)
18863 # This hack is so that the source file can tell whether it is being
18864 # built for inclusion in a dll (and should export symbols for example).
18865 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18868 darwin* | rhapsody*)
18869 # PIC is the default on this platform
18870 # Common symbols not allowed in MH_DYLIB files
18871 lt_prog_compiler_pic_F77='-fno-common'
18875 # Just because we use GCC doesn't mean we suddenly get shared libraries
18876 # on systems that don't support them.
18877 lt_prog_compiler_can_build_shared_F77=no
18882 if test -d /usr/nec; then
18883 lt_prog_compiler_pic_F77=-Kconform_pic
18888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18889 # not for PA HP-UX.
18890 case "$host_cpu" in
18895 lt_prog_compiler_pic_F77='-fPIC'
18901 lt_prog_compiler_pic_F77='-fPIC'
18905 # PORTME Check for flag to pass linker flags through the system compiler.
18908 lt_prog_compiler_wl_F77='-Wl,'
18909 if test "$host_cpu" = ia64; then
18910 # AIX 5 now supports IA64 processor
18911 lt_prog_compiler_static_F77='-Bstatic'
18913 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18917 # PIC is the default on this platform
18918 # Common symbols not allowed in MH_DYLIB files
18919 case "$cc_basename" in
18921 lt_prog_compiler_pic_F77='-qnocommon'
18922 lt_prog_compiler_wl_F77='-Wl,'
18927 mingw* | pw32* | os2*)
18928 # This hack is so that the source file can tell whether it is being
18929 # built for inclusion in a dll (and should export symbols for example).
18930 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18933 hpux9* | hpux10* | hpux11*)
18934 lt_prog_compiler_wl_F77='-Wl,'
18935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18936 # not for PA HP-UX.
18937 case "$host_cpu" in
18942 lt_prog_compiler_pic_F77='+Z'
18945 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18946 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18949 irix5* | irix6* | nonstopux*)
18950 lt_prog_compiler_wl_F77='-Wl,'
18951 # PIC (with -KPIC) is the default.
18952 lt_prog_compiler_static_F77='-non_shared'
18956 lt_prog_compiler_pic_F77='-KPIC'
18957 lt_prog_compiler_static_F77='-Bstatic'
18963 lt_prog_compiler_wl_F77='-Wl,'
18964 lt_prog_compiler_pic_F77='-KPIC'
18965 lt_prog_compiler_static_F77='-static'
18968 lt_prog_compiler_wl_F77='-Wl,'
18969 # All Alpha code is PIC.
18970 lt_prog_compiler_static_F77='-non_shared'
18975 osf3* | osf4* | osf5*)
18976 lt_prog_compiler_wl_F77='-Wl,'
18977 # All OSF/1 code is PIC.
18978 lt_prog_compiler_static_F77='-non_shared'
18982 lt_prog_compiler_pic_F77='-Kpic'
18983 lt_prog_compiler_static_F77='-dn'
18987 lt_prog_compiler_wl_F77='-Wl,'
18988 lt_prog_compiler_pic_F77='-KPIC'
18989 lt_prog_compiler_static_F77='-Bstatic'
18993 lt_prog_compiler_wl_F77='-Qoption ld '
18994 lt_prog_compiler_pic_F77='-PIC'
18995 lt_prog_compiler_static_F77='-Bstatic'
18998 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18999 lt_prog_compiler_wl_F77='-Wl,'
19000 lt_prog_compiler_pic_F77='-KPIC'
19001 lt_prog_compiler_static_F77='-Bstatic'
19005 if test -d /usr/nec ;then
19006 lt_prog_compiler_pic_F77='-Kconform_pic'
19007 lt_prog_compiler_static_F77='-Bstatic'
19012 lt_prog_compiler_pic_F77='-pic'
19013 lt_prog_compiler_static_F77='-Bstatic'
19017 lt_prog_compiler_can_build_shared_F77=no
19022 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19023 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19026 # Check to make sure the PIC flag actually works.
19028 if test -n "$lt_prog_compiler_pic_F77"; then
19030 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19031 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19032 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 lt_prog_compiler_pic_works_F77=no
19036 ac_outfile=conftest.$ac_objext
19037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19038 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19039 # Insert the option either (1) after the last *FLAGS variable, or
19040 # (2) before a word containing "conftest.", or (3) at the end.
19041 # Note that $ac_compile itself does not contain backslashes and begins
19042 # with a dollar sign (not a hyphen), so the echo should work correctly.
19043 # The option is referenced via a variable to avoid confusing sed.
19044 lt_compile=`echo "$ac_compile" | $SED \
19045 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19047 -e 's:$: $lt_compiler_flag:'`
19048 (eval echo "\"\$as_me:19048: $lt_compile\"" >&5)
19049 (eval "$lt_compile" 2>conftest.err)
19051 cat conftest.err >&5
19052 echo "$as_me:19052: \$? = $ac_status" >&5
19053 if (exit $ac_status) && test -s "$ac_outfile"; then
19054 # The compiler can only warn and ignore the option if not recognized
19055 # So say no if there are warnings
19056 if test ! -s conftest.err; then
19057 lt_prog_compiler_pic_works_F77=yes
19063 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19064 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19066 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19067 case $lt_prog_compiler_pic_F77 in
19069 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19072 lt_prog_compiler_pic_F77=
19073 lt_prog_compiler_can_build_shared_F77=no
19078 # For platforms which do not support PIC, -DPIC is meaningless:
19080 lt_prog_compiler_pic_F77=
19083 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19087 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19088 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19089 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19092 lt_cv_prog_compiler_c_o_F77=no
19093 $rm -r conftest 2>/dev/null
19097 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19099 lt_compiler_flag="-o out/conftest2.$ac_objext"
19100 # Insert the option either (1) after the last *FLAGS variable, or
19101 # (2) before a word containing "conftest.", or (3) at the end.
19102 # Note that $ac_compile itself does not contain backslashes and begins
19103 # with a dollar sign (not a hyphen), so the echo should work correctly.
19104 lt_compile=`echo "$ac_compile" | $SED \
19105 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19107 -e 's:$: $lt_compiler_flag:'`
19108 (eval echo "\"\$as_me:19108: $lt_compile\"" >&5)
19109 (eval "$lt_compile" 2>out/conftest.err)
19111 cat out/conftest.err >&5
19112 echo "$as_me:19112: \$? = $ac_status" >&5
19113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19115 # The compiler can only warn and ignore the option if not recognized
19116 # So say no if there are warnings
19117 if test ! -s out/conftest.err; then
19118 lt_cv_prog_compiler_c_o_F77=yes
19123 # SGI C++ compiler will create directory out/ii_files/ for
19124 # template instantiation
19125 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19126 $rm out/* && rmdir out
19132 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19133 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19136 hard_links="nottested"
19137 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19138 # do not overwrite the value of need_locks provided by the user
19139 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19140 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19145 ln conftest.a conftest.b 2>&5 || hard_links=no
19146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19147 echo "$as_me:$LINENO: result: $hard_links" >&5
19148 echo "${ECHO_T}$hard_links" >&6
19149 if test "$hard_links" = no; then
19150 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19151 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19158 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19159 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19162 allow_undefined_flag_F77=
19163 enable_shared_with_static_runtimes_F77=no
19165 archive_expsym_cmds_F77=
19166 old_archive_From_new_cmds_F77=
19167 old_archive_from_expsyms_cmds_F77=
19168 export_dynamic_flag_spec_F77=
19169 whole_archive_flag_spec_F77=
19170 thread_safe_flag_spec_F77=
19171 hardcode_libdir_flag_spec_F77=
19172 hardcode_libdir_flag_spec_ld_F77=
19173 hardcode_libdir_separator_F77=
19174 hardcode_direct_F77=no
19175 hardcode_minus_L_F77=no
19176 hardcode_shlibpath_var_F77=unsupported
19177 link_all_deplibs_F77=unknown
19178 hardcode_automatic_F77=no
19180 module_expsym_cmds_F77=
19181 always_export_symbols_F77=no
19182 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19183 # include_expsyms should be a list of space-separated symbols to be *always*
19184 # included in the symbol list
19185 include_expsyms_F77=
19186 # exclude_expsyms can be an extended regexp of symbols to exclude
19187 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19188 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19189 # as well as any symbol that contains `d'.
19190 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19191 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19192 # platforms (ab)use it in PIC code, but their linkers get confused if
19193 # the symbol is explicitly referenced. Since portable code cannot
19194 # rely on this symbol name, it's probably fine to never include it in
19195 # preloaded symbol tables.
19196 extract_expsyms_cmds=
19199 cygwin* | mingw* | pw32*)
19200 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19201 # When not using gcc, we currently assume that we are using
19202 # Microsoft Visual C++.
19203 if test "$GCC" != yes; then
19213 if test "$with_gnu_ld" = yes; then
19214 # If archive_cmds runs LD, not CC, wlarc should be empty
19217 # See if GNU ld supports shared libraries.
19219 aix3* | aix4* | aix5*)
19220 # On AIX/PPC, the GNU linker is very broken
19221 if test "$host_cpu" != ia64; then
19225 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19226 *** to be unable to reliably create shared libraries on AIX.
19227 *** Therefore, libtool is disabling shared libraries support. If you
19228 *** really care for shared libraries, you may want to modify your PATH
19229 *** so that a non-GNU linker is found, and then restart.
19236 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)'
19237 hardcode_libdir_flag_spec_F77='-L$libdir'
19238 hardcode_minus_L_F77=yes
19240 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19241 # that the semantics of dynamic libraries on AmigaOS, at least up
19242 # to version 4, is to share data among multiple programs linked
19243 # with the same dynamic library. Since this doesn't match the
19244 # behavior of shared libraries on other platforms, we can't use
19250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19251 allow_undefined_flag_F77=unsupported
19252 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19253 # support --undefined. This deserves some investigation. FIXME
19254 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19260 cygwin* | mingw* | pw32*)
19261 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19262 # as there is no search path for DLLs.
19263 hardcode_libdir_flag_spec_F77='-L$libdir'
19264 allow_undefined_flag_F77=unsupported
19265 always_export_symbols_F77=no
19266 enable_shared_with_static_runtimes_F77=yes
19267 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19269 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19270 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19271 # If the export-symbols file already is a .def file (1st line
19272 # is EXPORTS), use it as is; otherwise, prepend...
19273 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19274 cp $export_symbols $output_objdir/$soname.def;
19276 echo EXPORTS > $output_objdir/$soname.def;
19277 cat $export_symbols >> $output_objdir/$soname.def;
19279 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19286 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19287 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19290 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19291 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19296 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19300 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19301 *** create shared libraries on Solaris systems. Therefore, libtool
19302 *** is disabling shared libraries support. We urge you to upgrade GNU
19303 *** binutils to release 2.9.1 or newer. Another option is to modify
19304 *** your PATH or compiler configuration so that the native linker is
19305 *** used, and then restart.
19308 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19309 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19310 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19317 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19319 hardcode_direct_F77=yes
19320 hardcode_shlibpath_var_F77=no
19324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19325 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19326 archive_cmds_F77="$tmp_archive_cmds"
19327 supports_anon_versioning=no
19328 case `$LD -v 2>/dev/null` in
19329 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19330 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19331 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19332 *\ 2.11.*) ;; # other 2.11 versions
19333 *) supports_anon_versioning=yes ;;
19335 if test $supports_anon_versioning = yes; then
19336 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19338 $echo "local: *; };" >> $output_objdir/$libname.ver~
19339 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19341 archive_expsym_cmds_F77="$tmp_archive_cmds"
19349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19350 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19358 if test "$ld_shlibs_F77" = yes; then
19359 runpath_var=LD_RUN_PATH
19360 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19361 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19362 # ancient GNU ld didn't support --whole-archive et. al.
19363 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19364 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19366 whole_archive_flag_spec_F77=
19370 # PORTME fill in a description of your system's linker (not GNU ld)
19373 allow_undefined_flag_F77=unsupported
19374 always_export_symbols_F77=yes
19375 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'
19376 # Note: this linker hardcodes the directories in LIBPATH if there
19377 # are no directories specified by -L.
19378 hardcode_minus_L_F77=yes
19379 if test "$GCC" = yes && test -z "$link_static_flag"; then
19380 # Neither direct hardcoding nor static linking is supported with a
19382 hardcode_direct_F77=unsupported
19387 if test "$host_cpu" = ia64; then
19388 # On IA64, the linker does run time linking by default, so we don't
19389 # have to do anything special.
19390 aix_use_runtimelinking=no
19391 exp_sym_flag='-Bexport'
19394 # If we're using GNU nm, then we don't want the "-C" option.
19395 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19396 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19397 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'
19399 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'
19401 aix_use_runtimelinking=no
19403 # Test if we are trying to use run time linking or normal
19404 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19405 # need to do runtime linking.
19406 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19407 for ld_flag in $LDFLAGS; do
19408 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19409 aix_use_runtimelinking=yes
19415 exp_sym_flag='-bexport'
19416 no_entry_flag='-bnoentry'
19419 # When large executables or shared objects are built, AIX ld can
19420 # have problems creating the table of contents. If linking a library
19421 # or program results in "error TOC overflow" add -mminimal-toc to
19422 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19423 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19425 archive_cmds_F77=''
19426 hardcode_direct_F77=yes
19427 hardcode_libdir_separator_F77=':'
19428 link_all_deplibs_F77=yes
19430 if test "$GCC" = yes; then
19431 case $host_os in aix4.012|aix4.012.*)
19432 # We only want to do this on AIX 4.2 and lower, the check
19433 # below for broken collect2 doesn't work under 4.3+
19434 collect2name=`${CC} -print-prog-name=collect2`
19435 if test -f "$collect2name" && \
19436 strings "$collect2name" | grep resolve_lib_name >/dev/null
19438 # We have reworked collect2
19439 hardcode_direct_F77=yes
19441 # We have old collect2
19442 hardcode_direct_F77=unsupported
19443 # It fails to find uninstalled libraries when the uninstalled
19444 # path is not listed in the libpath. Setting hardcode_minus_L
19445 # to unsupported forces relinking
19446 hardcode_minus_L_F77=yes
19447 hardcode_libdir_flag_spec_F77='-L$libdir'
19448 hardcode_libdir_separator_F77=
19451 shared_flag='-shared'
19454 if test "$host_cpu" = ia64; then
19455 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19456 # chokes on -Wl,-G. The following line is correct:
19459 if test "$aix_use_runtimelinking" = yes; then
19460 shared_flag='${wl}-G'
19462 shared_flag='${wl}-bM:SRE'
19467 # It seems that -bexpall does not export symbols beginning with
19468 # underscore (_), so it is better to generate a list of symbols to export.
19469 always_export_symbols_F77=yes
19470 if test "$aix_use_runtimelinking" = yes; then
19471 # Warning - without using the other runtime loading flags (-brtl),
19472 # -berok will link without error, but may produce a broken library.
19473 allow_undefined_flag_F77='-berok'
19474 # Determine the default libpath from the value encoded in an empty executable.
19475 cat >conftest.$ac_ext <<_ACEOF
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19482 (eval $ac_link) 2>conftest.er1
19484 grep -v '^ *+' conftest.er1 >conftest.err
19486 cat conftest.err >&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } &&
19489 { ac_try='test -z "$ac_f77_werror_flag"
19490 || test ! -s conftest.err'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; } &&
19496 { ac_try='test -s conftest$ac_exeext'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19505 # Check for a 64-bit object if we didn't find anything.
19506 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; }
19509 echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19513 rm -f conftest.err conftest.$ac_objext \
19514 conftest$ac_exeext conftest.$ac_ext
19515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19517 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19518 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"
19520 if test "$host_cpu" = ia64; then
19521 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19522 allow_undefined_flag_F77="-z nodefs"
19523 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"
19525 # Determine the default libpath from the value encoded in an empty executable.
19526 cat >conftest.$ac_ext <<_ACEOF
19531 rm -f conftest.$ac_objext conftest$ac_exeext
19532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19533 (eval $ac_link) 2>conftest.er1
19535 grep -v '^ *+' conftest.er1 >conftest.err
19537 cat conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
19540 { ac_try='test -z "$ac_f77_werror_flag"
19541 || test ! -s conftest.err'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; } &&
19547 { ac_try='test -s conftest$ac_exeext'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; }; then
19554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19556 # Check for a 64-bit object if we didn't find anything.
19557 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; }
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19564 rm -f conftest.err conftest.$ac_objext \
19565 conftest$ac_exeext conftest.$ac_ext
19566 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19568 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19569 # Warning - without using the other run time loading flags,
19570 # -berok will link without error, but may produce a broken library.
19571 no_undefined_flag_F77=' ${wl}-bernotok'
19572 allow_undefined_flag_F77=' ${wl}-berok'
19573 # -bexpall does not export symbols beginning with underscore (_)
19574 always_export_symbols_F77=yes
19575 # Exported symbols can be pulled into shared objects from archives
19576 whole_archive_flag_spec_F77=' '
19577 archive_cmds_need_lc_F77=yes
19578 # This is similar to how AIX traditionally builds it's shared libraries.
19579 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'
19585 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)'
19586 hardcode_libdir_flag_spec_F77='-L$libdir'
19587 hardcode_minus_L_F77=yes
19588 # see comment about different semantics on the GNU ld section
19593 export_dynamic_flag_spec_F77=-rdynamic
19596 cygwin* | mingw* | pw32*)
19597 # When not using gcc, we currently assume that we are using
19598 # Microsoft Visual C++.
19599 # hardcode_libdir_flag_spec is actually meaningless, as there is
19600 # no search path for DLLs.
19601 hardcode_libdir_flag_spec_F77=' '
19602 allow_undefined_flag_F77=unsupported
19603 # Tell ltmain to make .lib files, not .a files.
19605 # Tell ltmain to make .dll files, not .so files.
19607 # FIXME: Setting linknames here is a bad hack.
19608 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19609 # The linker will automatically build a .lib file if we build a DLL.
19610 old_archive_From_new_cmds_F77='true'
19611 # FIXME: Should let the user specify the lib program.
19612 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19613 fix_srcfile_path='`cygpath -w "$srcfile"`'
19614 enable_shared_with_static_runtimes_F77=yes
19617 darwin* | rhapsody*)
19619 rhapsody* | darwin1.[012])
19620 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19623 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19624 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19626 case ${MACOSX_DEPLOYMENT_TARGET} in
19628 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19631 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19637 archive_cmds_need_lc_F77=no
19638 hardcode_direct_F77=no
19639 hardcode_automatic_F77=yes
19640 hardcode_shlibpath_var_F77=unsupported
19641 whole_archive_flag_spec_F77=''
19642 link_all_deplibs_F77=yes
19643 if test "$GCC" = yes ; then
19644 output_verbose_link_cmd='echo'
19645 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19646 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19647 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19648 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}'
19649 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}'
19651 case "$cc_basename" in
19653 output_verbose_link_cmd='echo'
19654 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19655 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19657 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}'
19658 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}'
19668 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19669 hardcode_libdir_flag_spec_F77='-L$libdir'
19670 hardcode_shlibpath_var_F77=no
19677 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19678 # support. Future versions do this automatically, but an explicit c++rt0.o
19679 # does not break anything, and helps significantly (at the cost of a little
19682 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19683 hardcode_libdir_flag_spec_F77='-R$libdir'
19684 hardcode_direct_F77=yes
19685 hardcode_shlibpath_var_F77=no
19688 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19690 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19691 hardcode_direct_F77=yes
19692 hardcode_minus_L_F77=yes
19693 hardcode_shlibpath_var_F77=no
19696 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19697 freebsd* | kfreebsd*-gnu)
19698 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19699 hardcode_libdir_flag_spec_F77='-R$libdir'
19700 hardcode_direct_F77=yes
19701 hardcode_shlibpath_var_F77=no
19705 if test "$GCC" = yes; then
19706 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'
19708 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'
19710 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19711 hardcode_libdir_separator_F77=:
19712 hardcode_direct_F77=yes
19714 # hardcode_minus_L: Not really in the search PATH,
19715 # but as the default location of the library.
19716 hardcode_minus_L_F77=yes
19717 export_dynamic_flag_spec_F77='${wl}-E'
19721 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19722 case "$host_cpu" in
19724 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19727 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19731 case "$host_cpu" in
19733 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19736 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19740 if test "$with_gnu_ld" = no; then
19741 case "$host_cpu" in
19743 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19744 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19745 hardcode_libdir_separator_F77=:
19746 hardcode_direct_F77=no
19747 hardcode_shlibpath_var_F77=no
19750 hardcode_libdir_flag_spec_F77='-L$libdir'
19751 hardcode_direct_F77=no
19752 hardcode_shlibpath_var_F77=no
19754 # hardcode_minus_L: Not really in the search PATH,
19755 # but as the default location of the library.
19756 hardcode_minus_L_F77=yes
19759 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19760 hardcode_libdir_separator_F77=:
19761 hardcode_direct_F77=yes
19762 export_dynamic_flag_spec_F77='${wl}-E'
19764 # hardcode_minus_L: Not really in the search PATH,
19765 # but as the default location of the library.
19766 hardcode_minus_L_F77=yes
19772 irix5* | irix6* | nonstopux*)
19773 if test "$GCC" = yes; then
19774 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'
19776 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'
19777 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19779 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19780 hardcode_libdir_separator_F77=:
19781 link_all_deplibs_F77=yes
19785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19786 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19788 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19790 hardcode_libdir_flag_spec_F77='-R$libdir'
19791 hardcode_direct_F77=yes
19792 hardcode_shlibpath_var_F77=no
19796 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19797 hardcode_direct_F77=yes
19798 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19799 hardcode_libdir_separator_F77=:
19800 hardcode_shlibpath_var_F77=no
19804 hardcode_direct_F77=yes
19805 hardcode_shlibpath_var_F77=no
19806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19807 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19808 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19809 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19810 export_dynamic_flag_spec_F77='${wl}-E'
19813 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19814 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19815 hardcode_libdir_flag_spec_F77='-R$libdir'
19818 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19819 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19826 hardcode_libdir_flag_spec_F77='-L$libdir'
19827 hardcode_minus_L_F77=yes
19828 allow_undefined_flag_F77=unsupported
19829 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'
19830 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19834 if test "$GCC" = yes; then
19835 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19836 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'
19838 allow_undefined_flag_F77=' -expect_unresolved \*'
19839 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'
19841 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19842 hardcode_libdir_separator_F77=:
19845 osf4* | osf5*) # as osf3* with the addition of -msym flag
19846 if test "$GCC" = yes; then
19847 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19848 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'
19849 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19851 allow_undefined_flag_F77=' -expect_unresolved \*'
19852 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'
19853 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~
19854 $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'
19856 # Both c and cxx compiler support -rpath directly
19857 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19859 hardcode_libdir_separator_F77=:
19863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19864 hardcode_shlibpath_var_F77=no
19865 export_dynamic_flag_spec_F77='${wl}-Bexport'
19866 runpath_var=LD_RUN_PATH
19867 hardcode_runpath_var=yes
19871 no_undefined_flag_F77=' -z text'
19872 if test "$GCC" = yes; then
19873 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19874 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19875 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19877 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19878 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19881 hardcode_libdir_flag_spec_F77='-R$libdir'
19882 hardcode_shlibpath_var_F77=no
19884 solaris2.[0-5] | solaris2.[0-5].*) ;;
19885 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19886 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19888 link_all_deplibs_F77=yes
19892 if test "x$host_vendor" = xsequent; then
19893 # Use $CC to link under sequent, because it throws in some extra .o
19894 # files that make .init and .fini sections work.
19895 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19897 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19899 hardcode_libdir_flag_spec_F77='-L$libdir'
19900 hardcode_direct_F77=yes
19901 hardcode_minus_L_F77=yes
19902 hardcode_shlibpath_var_F77=no
19906 case $host_vendor in
19908 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19909 hardcode_direct_F77=yes # is this really true???
19912 ## LD is ld it makes a PLAMLIB
19913 ## CC just makes a GrossModule.
19914 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19915 reload_cmds_F77='$CC -r -o $output$reload_objs'
19916 hardcode_direct_F77=no
19919 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19920 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19923 runpath_var='LD_RUN_PATH'
19924 hardcode_shlibpath_var_F77=no
19928 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19929 hardcode_shlibpath_var_F77=no
19930 export_dynamic_flag_spec_F77='-Bexport'
19934 if test -d /usr/nec; then
19935 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19936 hardcode_shlibpath_var_F77=no
19937 runpath_var=LD_RUN_PATH
19938 hardcode_runpath_var=yes
19944 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19945 hardcode_direct_F77=yes
19946 hardcode_minus_L_F77=no
19947 hardcode_shlibpath_var_F77=no
19948 hardcode_runpath_var=yes
19949 runpath_var=LD_RUN_PATH
19952 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19953 no_undefined_flag_F77='${wl}-z ${wl}text'
19954 if test "$GCC" = yes; then
19955 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19957 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19959 runpath_var='LD_RUN_PATH'
19960 hardcode_shlibpath_var_F77=no
19964 no_undefined_flag_F77=' -z text'
19965 # $CC -shared without GNU ld will not create a library from C++
19966 # object files and a static libstdc++, better avoid it by now
19967 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19968 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19970 hardcode_libdir_flag_spec_F77=
19971 hardcode_shlibpath_var_F77=no
19972 runpath_var='LD_RUN_PATH'
19976 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19977 hardcode_libdir_flag_spec_F77='-L$libdir'
19978 hardcode_shlibpath_var_F77=no
19987 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19988 echo "${ECHO_T}$ld_shlibs_F77" >&6
19989 test "$ld_shlibs_F77" = no && can_build_shared=no
19991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19992 if test "$GCC" = yes; then
19993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19997 # Do we need to explicitly link libc?
19999 case "x$archive_cmds_need_lc_F77" in
20001 # Assume -lc should be added
20002 archive_cmds_need_lc_F77=yes
20004 if test "$enable_shared" = yes && test "$GCC" = yes; then
20005 case $archive_cmds_F77 in
20007 # FIXME: we may have to deal with multi-command sequences.
20010 # Test whether the compiler implicitly links with -lc since on some
20011 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20012 # to ld, don't add -lc before -lgcc.
20013 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20014 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20016 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019 (eval $ac_compile) 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } 2>conftest.err; then
20025 libobjs=conftest.$ac_objext
20027 wl=$lt_prog_compiler_wl_F77
20033 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20034 allow_undefined_flag_F77=
20035 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20036 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }
20041 archive_cmds_need_lc_F77=no
20043 archive_cmds_need_lc_F77=yes
20045 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20047 cat conftest.err 1>&5
20050 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20051 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20058 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20059 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20060 library_names_spec=
20061 libname_spec='lib$name'
20065 postuninstall_cmds=
20069 shlibpath_overrides_runpath=unknown
20071 dynamic_linker="$host_os ld.so"
20072 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20073 if test "$GCC" = yes; then
20074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20075 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20076 # if the path contains ";" then we assume it to be the separator
20077 # otherwise default to the standard path separator (i.e. ":") - it is
20078 # assumed that no part of a normal pathname contains ";" but that should
20079 # okay in the real world where ";" in dirpaths is itself problematic.
20080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20087 need_lib_prefix=unknown
20088 hardcode_into_libs=no
20090 # when you set need_version to no, make sure it does not cause -set_version
20091 # flags to be left without arguments
20092 need_version=unknown
20097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20098 shlibpath_var=LIBPATH
20100 # AIX 3 has no versioning support, so we append a major version to the name.
20101 soname_spec='${libname}${release}${shared_ext}$major'
20108 hardcode_into_libs=yes
20109 if test "$host_cpu" = ia64; then
20110 # AIX 5 supports IA64
20111 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20112 shlibpath_var=LD_LIBRARY_PATH
20114 # With GCC up to 2.95.x, collect2 would create an import file
20115 # for dependence libraries. The import file would start with
20116 # the line `#! .'. This would cause the generated library to
20117 # depend on `.', always an invalid library. This was fixed in
20118 # development snapshots of GCC prior to 3.0.
20120 aix4 | aix4.[01] | aix4.[01].*)
20121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20123 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20126 can_build_shared=no
20130 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20131 # soname into executable. Probably we can add versioning support to
20132 # collect2, so additional links can be useful in future.
20133 if test "$aix_use_runtimelinking" = yes; then
20134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20135 # instead of lib<name>.a to let people know that these are not
20136 # typical AIX shared libraries.
20137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20139 # We preserve .a as extension for shared libraries through AIX4.2
20140 # and later when we are not doing run time linking.
20141 library_names_spec='${libname}${release}.a $libname.a'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20144 shlibpath_var=LIBPATH
20149 library_names_spec='$libname.ixlibrary $libname.a'
20150 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20151 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'
20155 library_names_spec='${libname}${shared_ext}'
20156 dynamic_linker="$host_os ld.so"
20157 shlibpath_var=LIBRARY_PATH
20163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164 soname_spec='${libname}${release}${shared_ext}$major'
20165 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20166 shlibpath_var=LD_LIBRARY_PATH
20167 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20168 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20169 # the default ld.so.conf also contains /usr/contrib/lib and
20170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20171 # libtool to hard-code these into programs
20174 cygwin* | mingw* | pw32*)
20175 version_type=windows
20180 case $GCC,$host_os in
20181 yes,cygwin* | yes,mingw* | yes,pw32*)
20182 library_names_spec='$libname.dll.a'
20183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20184 postinstall_cmds='base_file=`basename \${file}`~
20185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20186 dldir=$destdir/`dirname \$dlpath`~
20187 test -d \$dldir || mkdir -p \$dldir~
20188 $install_prog $dir/$dlname \$dldir/$dlname'
20189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20190 dlpath=$dir/\$dldll~
20192 shlibpath_overrides_runpath=yes
20196 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20197 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20198 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20201 # MinGW DLLs use traditional 'lib' prefix
20202 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20203 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20204 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20205 # It is most probably a Windows format PATH printed by
20206 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20207 # path with ; separators, and with drive letters. We can handle the
20208 # drive letters (cygwin fileutils understands them), so leave them,
20209 # especially as we might pass files found there to a mingw objdump,
20210 # which wouldn't understand a cygwinified path. Ahh.
20211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20213 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20217 # pw32 DLLs use 'pw' prefix rather than 'lib'
20218 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20224 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20227 dynamic_linker='Win32 ld.exe'
20228 # FIXME: first we should search . and the directory the executable is in
20232 darwin* | rhapsody*)
20233 dynamic_linker="$host_os dyld"
20234 version_type=darwin
20237 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20238 soname_spec='${libname}${release}${major}$shared_ext'
20239 shlibpath_overrides_runpath=yes
20240 shlibpath_var=DYLD_LIBRARY_PATH
20241 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20242 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20243 if test "$GCC" = yes; then
20244 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"`
20246 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20248 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20256 soname_spec='${libname}${release}${shared_ext}$major'
20257 shlibpath_var=LD_LIBRARY_PATH
20268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20269 soname_spec='${libname}${release}${shared_ext}$major'
20270 shlibpath_var=LD_LIBRARY_PATH
20271 shlibpath_overrides_runpath=no
20272 hardcode_into_libs=yes
20273 dynamic_linker='GNU ld.so'
20277 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20278 version_type=freebsd-$objformat
20279 case $version_type in
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20290 shlibpath_var=LD_LIBRARY_PATH
20293 shlibpath_overrides_runpath=yes
20295 freebsd3.01* | freebsdelf3.01*)
20296 shlibpath_overrides_runpath=yes
20297 hardcode_into_libs=yes
20300 shlibpath_overrides_runpath=no
20301 hardcode_into_libs=yes
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20311 soname_spec='${libname}${release}${shared_ext}$major'
20312 shlibpath_var=LD_LIBRARY_PATH
20313 hardcode_into_libs=yes
20316 hpux9* | hpux10* | hpux11*)
20317 # Give a soname corresponding to the major version so that dld.sl refuses to
20318 # link against other versions.
20322 case "$host_cpu" in
20325 hardcode_into_libs=yes
20326 dynamic_linker="$host_os dld.so"
20327 shlibpath_var=LD_LIBRARY_PATH
20328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20330 soname_spec='${libname}${release}${shared_ext}$major'
20331 if test "X$HPUX_IA64_MODE" = X32; then
20332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20340 hardcode_into_libs=yes
20341 dynamic_linker="$host_os dld.sl"
20342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345 soname_spec='${libname}${release}${shared_ext}$major'
20346 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20351 dynamic_linker="$host_os dld.sl"
20352 shlibpath_var=SHLIB_PATH
20353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355 soname_spec='${libname}${release}${shared_ext}$major'
20358 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20359 postinstall_cmds='chmod 555 $lib'
20362 irix5* | irix6* | nonstopux*)
20364 nonstopux*) version_type=nonstopux ;;
20366 if test "$lt_cv_prog_gnu_ld" = yes; then
20374 soname_spec='${libname}${release}${shared_ext}$major'
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20377 irix5* | nonstopux*)
20378 libsuff= shlibsuff=
20381 case $LD in # libtool.m4 will add one of these switches to LD
20382 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20383 libsuff= shlibsuff= libmagic=32-bit;;
20384 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20385 libsuff=32 shlibsuff=N32 libmagic=N32;;
20386 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20387 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20388 *) libsuff= shlibsuff= libmagic=never-match;;
20392 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20393 shlibpath_overrides_runpath=no
20394 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20395 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20396 hardcode_into_libs=yes
20399 # No shared lib support for Linux oldld, aout, or coff.
20400 linux*oldld* | linux*aout* | linux*coff*)
20404 # This must be Linux ELF.
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410 soname_spec='${libname}${release}${shared_ext}$major'
20411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20412 shlibpath_var=LD_LIBRARY_PATH
20413 shlibpath_overrides_runpath=no
20414 # This implies no fast_install, which is unacceptable.
20415 # Some rework will be needed to allow for fast_install
20416 # before this can be enabled.
20417 hardcode_into_libs=yes
20419 # Append ld.so.conf contents to the search path
20420 if test -f /etc/ld.so.conf; then
20421 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20422 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20425 # We used to test for /lib/ld.so.1 and disable shared libraries on
20426 # powerpc, because MkLinux only supported shared libraries with the
20427 # GNU dynamic linker. Since this was broken with cross compilers,
20428 # most powerpc-linux boxes support dynamic linking these days and
20429 # people can always --disable-shared, the test was removed, and we
20430 # assume the GNU/Linux dynamic linker is in use.
20431 dynamic_linker='GNU/Linux ld.so'
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 shlibpath_var=LD_LIBRARY_PATH
20441 shlibpath_overrides_runpath=no
20442 hardcode_into_libs=yes
20443 dynamic_linker='GNU ld.so'
20450 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20453 dynamic_linker='NetBSD (a.out) ld.so'
20455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20456 soname_spec='${libname}${release}${shared_ext}$major'
20457 dynamic_linker='NetBSD ld.elf_so'
20459 shlibpath_var=LD_LIBRARY_PATH
20460 shlibpath_overrides_runpath=yes
20461 hardcode_into_libs=yes
20466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20467 shlibpath_var=LD_LIBRARY_PATH
20468 shlibpath_overrides_runpath=yes
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20476 soname_spec='${libname}${release}${shared_ext}$major'
20477 shlibpath_var=LD_LIBRARY_PATH
20478 shlibpath_overrides_runpath=yes
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20490 openbsd2.[89] | openbsd2.[89].*)
20491 shlibpath_overrides_runpath=no
20494 shlibpath_overrides_runpath=yes
20498 shlibpath_overrides_runpath=yes
20503 libname_spec='$name'
20506 library_names_spec='$libname${shared_ext} $libname.a'
20507 dynamic_linker='OS/2 ld.exe'
20508 shlibpath_var=LIBPATH
20511 osf3* | osf4* | osf5*)
20515 soname_spec='${libname}${release}${shared_ext}$major'
20516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20517 shlibpath_var=LD_LIBRARY_PATH
20518 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20519 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526 shlibpath_var=LD_LIBRARY_PATH
20533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534 soname_spec='${libname}${release}${shared_ext}$major'
20535 shlibpath_var=LD_LIBRARY_PATH
20536 shlibpath_overrides_runpath=yes
20537 hardcode_into_libs=yes
20538 # ldd complains unless libraries are executable
20539 postinstall_cmds='chmod +x $lib'
20544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20545 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20546 shlibpath_var=LD_LIBRARY_PATH
20547 shlibpath_overrides_runpath=yes
20548 if test "$with_gnu_ld" = yes; then
20554 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20557 soname_spec='${libname}${release}${shared_ext}$major'
20558 shlibpath_var=LD_LIBRARY_PATH
20559 case $host_vendor in
20561 shlibpath_overrides_runpath=no
20563 export_dynamic_flag_spec='${wl}-Blargedynsym'
20564 runpath_var=LD_RUN_PATH
20572 shlibpath_overrides_runpath=no
20573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20579 if test -d /usr/nec ;then
20581 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20582 soname_spec='$libname${shared_ext}.$major'
20583 shlibpath_var=LD_LIBRARY_PATH
20589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20590 soname_spec='${libname}${release}${shared_ext}$major'
20591 shlibpath_var=LD_LIBRARY_PATH
20598 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20599 echo "${ECHO_T}$dynamic_linker" >&6
20600 test "$dynamic_linker" = no && can_build_shared=no
20602 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20603 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20604 hardcode_action_F77=
20605 if test -n "$hardcode_libdir_flag_spec_F77" || \
20606 test -n "$runpath_var_F77" || \
20607 test "X$hardcode_automatic_F77" = "Xyes" ; then
20609 # We can hardcode non-existant directories.
20610 if test "$hardcode_direct_F77" != no &&
20611 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20612 # have to relink, otherwise we might link with an installed library
20613 # when we should be linking with a yet-to-be-installed one
20614 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20615 test "$hardcode_minus_L_F77" != no; then
20616 # Linking always hardcodes the temporary library directory.
20617 hardcode_action_F77=relink
20619 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20620 hardcode_action_F77=immediate
20623 # We cannot hardcode anything, or else we can only hardcode existing
20625 hardcode_action_F77=unsupported
20627 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20628 echo "${ECHO_T}$hardcode_action_F77" >&6
20630 if test "$hardcode_action_F77" = relink; then
20631 # Fast installation is not supported
20632 enable_fast_install=no
20633 elif test "$shlibpath_overrides_runpath" = yes ||
20634 test "$enable_shared" = no; then
20635 # Fast installation is not necessary
20636 enable_fast_install=needless
20641 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20642 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20643 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20644 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20645 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20646 echo "$as_me:$LINENO: result: yes" >&5
20647 echo "${ECHO_T}yes" >&6
20649 # FIXME - insert some real tests, host_os isn't really good enough
20652 if test -n "$STRIP" ; then
20653 striplib="$STRIP -x"
20654 echo "$as_me:$LINENO: result: yes" >&5
20655 echo "${ECHO_T}yes" >&6
20657 echo "$as_me:$LINENO: result: no" >&5
20658 echo "${ECHO_T}no" >&6
20662 echo "$as_me:$LINENO: result: no" >&5
20663 echo "${ECHO_T}no" >&6
20670 # The else clause should only fire when bootstrapping the
20671 # libtool distribution, otherwise you forgot to ship ltmain.sh
20672 # with your package, and you will get complaints that there are
20673 # no rules to generate ltmain.sh.
20674 if test -f "$ltmain"; then
20675 # See if we are running on zsh, and set the options which allow our commands through
20676 # without removal of \ escapes.
20677 if test -n "${ZSH_VERSION+set}" ; then
20678 setopt NO_GLOB_SUBST
20680 # Now quote all the things that may contain metacharacters while being
20681 # careful not to overquote the AC_SUBSTed values. We take copies of the
20682 # variables and quote the copies for generation of the libtool script.
20683 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20685 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20686 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20687 deplibs_check_method reload_flag reload_cmds need_locks \
20688 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20689 lt_cv_sys_global_symbol_to_c_name_address \
20690 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20691 old_postinstall_cmds old_postuninstall_cmds \
20695 lt_prog_compiler_wl_F77 \
20696 lt_prog_compiler_pic_F77 \
20697 lt_prog_compiler_static_F77 \
20698 lt_prog_compiler_no_builtin_flag_F77 \
20699 export_dynamic_flag_spec_F77 \
20700 thread_safe_flag_spec_F77 \
20701 whole_archive_flag_spec_F77 \
20702 enable_shared_with_static_runtimes_F77 \
20703 old_archive_cmds_F77 \
20704 old_archive_from_new_cmds_F77 \
20705 predep_objects_F77 \
20706 postdep_objects_F77 \
20709 compiler_lib_search_path_F77 \
20711 archive_expsym_cmds_F77 \
20712 postinstall_cmds_F77 \
20713 postuninstall_cmds_F77 \
20714 old_archive_from_expsyms_cmds_F77 \
20715 allow_undefined_flag_F77 \
20716 no_undefined_flag_F77 \
20717 export_symbols_cmds_F77 \
20718 hardcode_libdir_flag_spec_F77 \
20719 hardcode_libdir_flag_spec_ld_F77 \
20720 hardcode_libdir_separator_F77 \
20721 hardcode_automatic_F77 \
20723 module_expsym_cmds_F77 \
20724 lt_cv_prog_compiler_c_o_F77 \
20725 exclude_expsyms_F77 \
20726 include_expsyms_F77; do
20729 old_archive_cmds_F77 | \
20730 old_archive_from_new_cmds_F77 | \
20731 archive_cmds_F77 | \
20732 archive_expsym_cmds_F77 | \
20733 module_cmds_F77 | \
20734 module_expsym_cmds_F77 | \
20735 old_archive_from_expsyms_cmds_F77 | \
20736 export_symbols_cmds_F77 | \
20737 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20738 postinstall_cmds | postuninstall_cmds | \
20739 old_postinstall_cmds | old_postuninstall_cmds | \
20740 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20741 # Double-quote double-evaled strings.
20742 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20745 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20751 *'\$0 --fallback-echo"')
20752 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20758 cat <<__EOF__ >> "$cfgfile"
20759 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20761 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20763 # Shell to use when invoking shell scripts.
20766 # Whether or not to build shared libraries.
20767 build_libtool_libs=$enable_shared
20769 # Whether or not to build static libraries.
20770 build_old_libs=$enable_static
20772 # Whether or not to add -lc for building shared libraries.
20773 build_libtool_need_lc=$archive_cmds_need_lc_F77
20775 # Whether or not to disallow shared libs when runtime libs are static
20776 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20778 # Whether or not to optimize for fast installation.
20779 fast_install=$enable_fast_install
20782 host_alias=$host_alias
20785 # An echo program that does not interpret backslashes.
20790 AR_FLAGS=$lt_AR_FLAGS
20795 # A language-specific compiler.
20796 CC=$lt_compiler_F77
20798 # Is the compiler the GNU C compiler?
20804 # The linker used to build libraries.
20807 # Whether we need hard or soft links.
20810 # A BSD-compatible nm program.
20813 # A symbol stripping program
20816 # Used to examine libraries when file_magic_cmd begins "file"
20817 MAGIC_CMD=$MAGIC_CMD
20819 # Used on cygwin: DLL creation program.
20822 # Used on cygwin: object dumper.
20825 # Used on cygwin: assembler.
20828 # The name of the directory that contains temporary libtool files.
20831 # How to create reloadable object files.
20832 reload_flag=$lt_reload_flag
20833 reload_cmds=$lt_reload_cmds
20835 # How to pass a linker flag through the compiler.
20836 wl=$lt_lt_prog_compiler_wl_F77
20838 # Object file suffix (normally "o").
20839 objext="$ac_objext"
20841 # Old archive suffix (normally "a").
20844 # Shared library suffix (normally ".so").
20845 shrext_cmds='$shrext_cmds'
20847 # Executable file suffix (normally "").
20850 # Additional compiler flags for building library objects.
20851 pic_flag=$lt_lt_prog_compiler_pic_F77
20854 # What is the maximum length of a command?
20855 max_cmd_len=$lt_cv_sys_max_cmd_len
20857 # Does compiler simultaneously support -c and -o options?
20858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20860 # Must we lock files when doing compilation ?
20861 need_locks=$lt_need_locks
20863 # Do we need the lib prefix for modules?
20864 need_lib_prefix=$need_lib_prefix
20866 # Do we need a version for libraries?
20867 need_version=$need_version
20869 # Whether dlopen is supported.
20870 dlopen_support=$enable_dlopen
20872 # Whether dlopen of programs is supported.
20873 dlopen_self=$enable_dlopen_self
20875 # Whether dlopen of statically linked programs is supported.
20876 dlopen_self_static=$enable_dlopen_self_static
20878 # Compiler flag to prevent dynamic linking.
20879 link_static_flag=$lt_lt_prog_compiler_static_F77
20881 # Compiler flag to turn off builtin functions.
20882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20884 # Compiler flag to allow reflexive dlopens.
20885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20887 # Compiler flag to generate shared objects directly from archives.
20888 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20890 # Compiler flag to generate thread-safe objects.
20891 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20893 # Library versioning type.
20894 version_type=$version_type
20896 # Format of library name prefix.
20897 libname_spec=$lt_libname_spec
20899 # List of archive names. First name is the real one, the rest are links.
20900 # The last name is the one that the linker finds with -lNAME.
20901 library_names_spec=$lt_library_names_spec
20903 # The coded name of the library, if different from the real name.
20904 soname_spec=$lt_soname_spec
20906 # Commands used to build and install an old-style archive.
20908 old_archive_cmds=$lt_old_archive_cmds_F77
20909 old_postinstall_cmds=$lt_old_postinstall_cmds
20910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20912 # Create an old-style archive from a shared archive.
20913 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20915 # Create a temporary old-style archive to link instead of a shared archive.
20916 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20918 # Commands used to build and install a shared archive.
20919 archive_cmds=$lt_archive_cmds_F77
20920 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20921 postinstall_cmds=$lt_postinstall_cmds
20922 postuninstall_cmds=$lt_postuninstall_cmds
20924 # Commands used to build a loadable module (assumed same as above if empty)
20925 module_cmds=$lt_module_cmds_F77
20926 module_expsym_cmds=$lt_module_expsym_cmds_F77
20928 # Commands to strip libraries.
20929 old_striplib=$lt_old_striplib
20930 striplib=$lt_striplib
20932 # Dependencies to place before the objects being linked to create a
20934 predep_objects=$lt_predep_objects_F77
20936 # Dependencies to place after the objects being linked to create a
20938 postdep_objects=$lt_postdep_objects_F77
20940 # Dependencies to place before the objects being linked to create a
20942 predeps=$lt_predeps_F77
20944 # Dependencies to place after the objects being linked to create a
20946 postdeps=$lt_postdeps_F77
20948 # The library search path used internally by the compiler when linking
20949 # a shared library.
20950 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20952 # Method to check whether dependent libraries are shared objects.
20953 deplibs_check_method=$lt_deplibs_check_method
20955 # Command to use when deplibs_check_method == file_magic.
20956 file_magic_cmd=$lt_file_magic_cmd
20958 # Flag that allows shared libraries with undefined symbols to be built.
20959 allow_undefined_flag=$lt_allow_undefined_flag_F77
20961 # Flag that forces no undefined symbols.
20962 no_undefined_flag=$lt_no_undefined_flag_F77
20964 # Commands used to finish a libtool library installation in a directory.
20965 finish_cmds=$lt_finish_cmds
20967 # Same as above, but a single script fragment to be evaled but not shown.
20968 finish_eval=$lt_finish_eval
20970 # Take the output of nm and produce a listing of raw symbols and C names.
20971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20973 # Transform the output of nm in a proper C declaration
20974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20976 # Transform the output of nm in a C name address pair
20977 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20979 # This is the shared library runtime path variable.
20980 runpath_var=$runpath_var
20982 # This is the shared library path variable.
20983 shlibpath_var=$shlibpath_var
20985 # Is shlibpath searched before the hard-coded library search path?
20986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20988 # How to hardcode a shared library path into an executable.
20989 hardcode_action=$hardcode_action_F77
20991 # Whether we should hardcode library paths into libraries.
20992 hardcode_into_libs=$hardcode_into_libs
20994 # Flag to hardcode \$libdir into a binary during linking.
20995 # This must work even if \$libdir does not exist.
20996 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20998 # If ld is used when linking, flag to hardcode \$libdir into
20999 # a binary during linking. This must work even if \$libdir does
21001 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21003 # Whether we need a single -rpath flag with a separated argument.
21004 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21006 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21007 # resulting binary.
21008 hardcode_direct=$hardcode_direct_F77
21010 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21011 # resulting binary.
21012 hardcode_minus_L=$hardcode_minus_L_F77
21014 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21015 # the resulting binary.
21016 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21018 # Set to yes if building a shared library automatically hardcodes DIR into the library
21019 # and all subsequent libraries and executables linked against it.
21020 hardcode_automatic=$hardcode_automatic_F77
21022 # Variables whose values should be saved in libtool wrapper scripts and
21023 # restored at relink time.
21024 variables_saved_for_relink="$variables_saved_for_relink"
21026 # Whether libtool must link a program against all its dependency libraries.
21027 link_all_deplibs=$link_all_deplibs_F77
21029 # Compile-time system search path for libraries
21030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21032 # Run-time system search path for libraries
21033 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21035 # Fix the shell variable \$srcfile for the compiler.
21036 fix_srcfile_path="$fix_srcfile_path_F77"
21038 # Set to yes if exported symbols are required.
21039 always_export_symbols=$always_export_symbols_F77
21041 # The commands to list exported symbols.
21042 export_symbols_cmds=$lt_export_symbols_cmds_F77
21044 # The commands to extract the exported symbol list from a shared archive.
21045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21047 # Symbols that should not be listed in the preloaded symbols.
21048 exclude_expsyms=$lt_exclude_expsyms_F77
21050 # Symbols that must always be exported.
21051 include_expsyms=$lt_include_expsyms_F77
21053 # ### END LIBTOOL TAG CONFIG: $tagname
21059 # If there is no Makefile yet, we rely on a make rule to execute
21060 # `config.status --recheck' to rerun these tests and create the
21061 # libtool script then.
21062 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21063 if test -f "$ltmain_in"; then
21064 test -f Makefile && make "$ltmain"
21070 ac_cpp='$CPP $CPPFLAGS'
21071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21083 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21085 ac_cpp='$CPP $CPPFLAGS'
21086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21091 # Source file extension for Java test sources.
21094 # Object file extension for compiled Java test sources.
21098 # Code to be used in simple compile tests
21099 lt_simple_compile_test_code="class foo {}\n"
21101 # Code to be used in simple link tests
21102 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21106 # If no C compiler was specified, use CC.
21109 # Allow CC to be a program name with arguments.
21113 # Allow CC to be a program name with arguments.
21119 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21120 archive_cmds_need_lc_GCJ=no
21123 lt_prog_compiler_no_builtin_flag_GCJ=
21125 if test "$GCC" = yes; then
21126 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21129 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21130 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21131 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21134 lt_cv_prog_compiler_rtti_exceptions=no
21135 ac_outfile=conftest.$ac_objext
21136 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21137 lt_compiler_flag="-fno-rtti -fno-exceptions"
21138 # Insert the option either (1) after the last *FLAGS variable, or
21139 # (2) before a word containing "conftest.", or (3) at the end.
21140 # Note that $ac_compile itself does not contain backslashes and begins
21141 # with a dollar sign (not a hyphen), so the echo should work correctly.
21142 # The option is referenced via a variable to avoid confusing sed.
21143 lt_compile=`echo "$ac_compile" | $SED \
21144 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21146 -e 's:$: $lt_compiler_flag:'`
21147 (eval echo "\"\$as_me:21147: $lt_compile\"" >&5)
21148 (eval "$lt_compile" 2>conftest.err)
21150 cat conftest.err >&5
21151 echo "$as_me:21151: \$? = $ac_status" >&5
21152 if (exit $ac_status) && test -s "$ac_outfile"; then
21153 # The compiler can only warn and ignore the option if not recognized
21154 # So say no if there are warnings
21155 if test ! -s conftest.err; then
21156 lt_cv_prog_compiler_rtti_exceptions=yes
21162 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21163 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21165 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21166 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21173 lt_prog_compiler_wl_GCJ=
21174 lt_prog_compiler_pic_GCJ=
21175 lt_prog_compiler_static_GCJ=
21177 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21178 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21180 if test "$GCC" = yes; then
21181 lt_prog_compiler_wl_GCJ='-Wl,'
21182 lt_prog_compiler_static_GCJ='-static'
21186 # All AIX code is PIC.
21187 if test "$host_cpu" = ia64; then
21188 # AIX 5 now supports IA64 processor
21189 lt_prog_compiler_static_GCJ='-Bstatic'
21194 # FIXME: we need at least 68020 code to build shared libraries, but
21195 # adding the `-m68020' flag to GCC prevents building anything better,
21197 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21200 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21201 # PIC is the default for these OSes.
21204 mingw* | pw32* | os2*)
21205 # This hack is so that the source file can tell whether it is being
21206 # built for inclusion in a dll (and should export symbols for example).
21207 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21210 darwin* | rhapsody*)
21211 # PIC is the default on this platform
21212 # Common symbols not allowed in MH_DYLIB files
21213 lt_prog_compiler_pic_GCJ='-fno-common'
21217 # Just because we use GCC doesn't mean we suddenly get shared libraries
21218 # on systems that don't support them.
21219 lt_prog_compiler_can_build_shared_GCJ=no
21224 if test -d /usr/nec; then
21225 lt_prog_compiler_pic_GCJ=-Kconform_pic
21230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21231 # not for PA HP-UX.
21232 case "$host_cpu" in
21237 lt_prog_compiler_pic_GCJ='-fPIC'
21243 lt_prog_compiler_pic_GCJ='-fPIC'
21247 # PORTME Check for flag to pass linker flags through the system compiler.
21250 lt_prog_compiler_wl_GCJ='-Wl,'
21251 if test "$host_cpu" = ia64; then
21252 # AIX 5 now supports IA64 processor
21253 lt_prog_compiler_static_GCJ='-Bstatic'
21255 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21259 # PIC is the default on this platform
21260 # Common symbols not allowed in MH_DYLIB files
21261 case "$cc_basename" in
21263 lt_prog_compiler_pic_GCJ='-qnocommon'
21264 lt_prog_compiler_wl_GCJ='-Wl,'
21269 mingw* | pw32* | os2*)
21270 # This hack is so that the source file can tell whether it is being
21271 # built for inclusion in a dll (and should export symbols for example).
21272 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21275 hpux9* | hpux10* | hpux11*)
21276 lt_prog_compiler_wl_GCJ='-Wl,'
21277 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21278 # not for PA HP-UX.
21279 case "$host_cpu" in
21284 lt_prog_compiler_pic_GCJ='+Z'
21287 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21288 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21291 irix5* | irix6* | nonstopux*)
21292 lt_prog_compiler_wl_GCJ='-Wl,'
21293 # PIC (with -KPIC) is the default.
21294 lt_prog_compiler_static_GCJ='-non_shared'
21298 lt_prog_compiler_pic_GCJ='-KPIC'
21299 lt_prog_compiler_static_GCJ='-Bstatic'
21305 lt_prog_compiler_wl_GCJ='-Wl,'
21306 lt_prog_compiler_pic_GCJ='-KPIC'
21307 lt_prog_compiler_static_GCJ='-static'
21310 lt_prog_compiler_wl_GCJ='-Wl,'
21311 # All Alpha code is PIC.
21312 lt_prog_compiler_static_GCJ='-non_shared'
21317 osf3* | osf4* | osf5*)
21318 lt_prog_compiler_wl_GCJ='-Wl,'
21319 # All OSF/1 code is PIC.
21320 lt_prog_compiler_static_GCJ='-non_shared'
21324 lt_prog_compiler_pic_GCJ='-Kpic'
21325 lt_prog_compiler_static_GCJ='-dn'
21329 lt_prog_compiler_wl_GCJ='-Wl,'
21330 lt_prog_compiler_pic_GCJ='-KPIC'
21331 lt_prog_compiler_static_GCJ='-Bstatic'
21335 lt_prog_compiler_wl_GCJ='-Qoption ld '
21336 lt_prog_compiler_pic_GCJ='-PIC'
21337 lt_prog_compiler_static_GCJ='-Bstatic'
21340 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21341 lt_prog_compiler_wl_GCJ='-Wl,'
21342 lt_prog_compiler_pic_GCJ='-KPIC'
21343 lt_prog_compiler_static_GCJ='-Bstatic'
21347 if test -d /usr/nec ;then
21348 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21349 lt_prog_compiler_static_GCJ='-Bstatic'
21354 lt_prog_compiler_pic_GCJ='-pic'
21355 lt_prog_compiler_static_GCJ='-Bstatic'
21359 lt_prog_compiler_can_build_shared_GCJ=no
21364 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21365 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21368 # Check to make sure the PIC flag actually works.
21370 if test -n "$lt_prog_compiler_pic_GCJ"; then
21372 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21373 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21374 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21377 lt_prog_compiler_pic_works_GCJ=no
21378 ac_outfile=conftest.$ac_objext
21379 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21380 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21381 # Insert the option either (1) after the last *FLAGS variable, or
21382 # (2) before a word containing "conftest.", or (3) at the end.
21383 # Note that $ac_compile itself does not contain backslashes and begins
21384 # with a dollar sign (not a hyphen), so the echo should work correctly.
21385 # The option is referenced via a variable to avoid confusing sed.
21386 lt_compile=`echo "$ac_compile" | $SED \
21387 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21389 -e 's:$: $lt_compiler_flag:'`
21390 (eval echo "\"\$as_me:21390: $lt_compile\"" >&5)
21391 (eval "$lt_compile" 2>conftest.err)
21393 cat conftest.err >&5
21394 echo "$as_me:21394: \$? = $ac_status" >&5
21395 if (exit $ac_status) && test -s "$ac_outfile"; then
21396 # The compiler can only warn and ignore the option if not recognized
21397 # So say no if there are warnings
21398 if test ! -s conftest.err; then
21399 lt_prog_compiler_pic_works_GCJ=yes
21405 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21406 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21408 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21409 case $lt_prog_compiler_pic_GCJ in
21411 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21414 lt_prog_compiler_pic_GCJ=
21415 lt_prog_compiler_can_build_shared_GCJ=no
21420 # For platforms which do not support PIC, -DPIC is meaningless:
21422 lt_prog_compiler_pic_GCJ=
21425 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21429 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21430 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21431 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 lt_cv_prog_compiler_c_o_GCJ=no
21435 $rm -r conftest 2>/dev/null
21439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21441 lt_compiler_flag="-o out/conftest2.$ac_objext"
21442 # Insert the option either (1) after the last *FLAGS variable, or
21443 # (2) before a word containing "conftest.", or (3) at the end.
21444 # Note that $ac_compile itself does not contain backslashes and begins
21445 # with a dollar sign (not a hyphen), so the echo should work correctly.
21446 lt_compile=`echo "$ac_compile" | $SED \
21447 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21449 -e 's:$: $lt_compiler_flag:'`
21450 (eval echo "\"\$as_me:21450: $lt_compile\"" >&5)
21451 (eval "$lt_compile" 2>out/conftest.err)
21453 cat out/conftest.err >&5
21454 echo "$as_me:21454: \$? = $ac_status" >&5
21455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21457 # The compiler can only warn and ignore the option if not recognized
21458 # So say no if there are warnings
21459 if test ! -s out/conftest.err; then
21460 lt_cv_prog_compiler_c_o_GCJ=yes
21465 # SGI C++ compiler will create directory out/ii_files/ for
21466 # template instantiation
21467 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21468 $rm out/* && rmdir out
21474 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21475 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21478 hard_links="nottested"
21479 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21480 # do not overwrite the value of need_locks provided by the user
21481 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21482 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21487 ln conftest.a conftest.b 2>&5 || hard_links=no
21488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21489 echo "$as_me:$LINENO: result: $hard_links" >&5
21490 echo "${ECHO_T}$hard_links" >&6
21491 if test "$hard_links" = no; then
21492 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21493 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21500 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21501 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21504 allow_undefined_flag_GCJ=
21505 enable_shared_with_static_runtimes_GCJ=no
21507 archive_expsym_cmds_GCJ=
21508 old_archive_From_new_cmds_GCJ=
21509 old_archive_from_expsyms_cmds_GCJ=
21510 export_dynamic_flag_spec_GCJ=
21511 whole_archive_flag_spec_GCJ=
21512 thread_safe_flag_spec_GCJ=
21513 hardcode_libdir_flag_spec_GCJ=
21514 hardcode_libdir_flag_spec_ld_GCJ=
21515 hardcode_libdir_separator_GCJ=
21516 hardcode_direct_GCJ=no
21517 hardcode_minus_L_GCJ=no
21518 hardcode_shlibpath_var_GCJ=unsupported
21519 link_all_deplibs_GCJ=unknown
21520 hardcode_automatic_GCJ=no
21522 module_expsym_cmds_GCJ=
21523 always_export_symbols_GCJ=no
21524 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21525 # include_expsyms should be a list of space-separated symbols to be *always*
21526 # included in the symbol list
21527 include_expsyms_GCJ=
21528 # exclude_expsyms can be an extended regexp of symbols to exclude
21529 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21530 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21531 # as well as any symbol that contains `d'.
21532 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21533 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21534 # platforms (ab)use it in PIC code, but their linkers get confused if
21535 # the symbol is explicitly referenced. Since portable code cannot
21536 # rely on this symbol name, it's probably fine to never include it in
21537 # preloaded symbol tables.
21538 extract_expsyms_cmds=
21541 cygwin* | mingw* | pw32*)
21542 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21543 # When not using gcc, we currently assume that we are using
21544 # Microsoft Visual C++.
21545 if test "$GCC" != yes; then
21555 if test "$with_gnu_ld" = yes; then
21556 # If archive_cmds runs LD, not CC, wlarc should be empty
21559 # See if GNU ld supports shared libraries.
21561 aix3* | aix4* | aix5*)
21562 # On AIX/PPC, the GNU linker is very broken
21563 if test "$host_cpu" != ia64; then
21567 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21568 *** to be unable to reliably create shared libraries on AIX.
21569 *** Therefore, libtool is disabling shared libraries support. If you
21570 *** really care for shared libraries, you may want to modify your PATH
21571 *** so that a non-GNU linker is found, and then restart.
21578 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)'
21579 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21580 hardcode_minus_L_GCJ=yes
21582 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21583 # that the semantics of dynamic libraries on AmigaOS, at least up
21584 # to version 4, is to share data among multiple programs linked
21585 # with the same dynamic library. Since this doesn't match the
21586 # behavior of shared libraries on other platforms, we can't use
21592 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21593 allow_undefined_flag_GCJ=unsupported
21594 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21595 # support --undefined. This deserves some investigation. FIXME
21596 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21602 cygwin* | mingw* | pw32*)
21603 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21604 # as there is no search path for DLLs.
21605 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21606 allow_undefined_flag_GCJ=unsupported
21607 always_export_symbols_GCJ=no
21608 enable_shared_with_static_runtimes_GCJ=yes
21609 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21611 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21612 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21613 # If the export-symbols file already is a .def file (1st line
21614 # is EXPORTS), use it as is; otherwise, prepend...
21615 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21616 cp $export_symbols $output_objdir/$soname.def;
21618 echo EXPORTS > $output_objdir/$soname.def;
21619 cat $export_symbols >> $output_objdir/$soname.def;
21621 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21629 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21632 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21633 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21638 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21643 *** create shared libraries on Solaris systems. Therefore, libtool
21644 *** is disabling shared libraries support. We urge you to upgrade GNU
21645 *** binutils to release 2.9.1 or newer. Another option is to modify
21646 *** your PATH or compiler configuration so that the native linker is
21647 *** used, and then restart.
21650 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21651 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21652 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21659 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21661 hardcode_direct_GCJ=yes
21662 hardcode_shlibpath_var_GCJ=no
21666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21667 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21668 archive_cmds_GCJ="$tmp_archive_cmds"
21669 supports_anon_versioning=no
21670 case `$LD -v 2>/dev/null` in
21671 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21672 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21673 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21674 *\ 2.11.*) ;; # other 2.11 versions
21675 *) supports_anon_versioning=yes ;;
21677 if test $supports_anon_versioning = yes; then
21678 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21680 $echo "local: *; };" >> $output_objdir/$libname.ver~
21681 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21683 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21692 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21693 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21700 if test "$ld_shlibs_GCJ" = yes; then
21701 runpath_var=LD_RUN_PATH
21702 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21703 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21704 # ancient GNU ld didn't support --whole-archive et. al.
21705 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21706 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21708 whole_archive_flag_spec_GCJ=
21712 # PORTME fill in a description of your system's linker (not GNU ld)
21715 allow_undefined_flag_GCJ=unsupported
21716 always_export_symbols_GCJ=yes
21717 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'
21718 # Note: this linker hardcodes the directories in LIBPATH if there
21719 # are no directories specified by -L.
21720 hardcode_minus_L_GCJ=yes
21721 if test "$GCC" = yes && test -z "$link_static_flag"; then
21722 # Neither direct hardcoding nor static linking is supported with a
21724 hardcode_direct_GCJ=unsupported
21729 if test "$host_cpu" = ia64; then
21730 # On IA64, the linker does run time linking by default, so we don't
21731 # have to do anything special.
21732 aix_use_runtimelinking=no
21733 exp_sym_flag='-Bexport'
21736 # If we're using GNU nm, then we don't want the "-C" option.
21737 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21738 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21739 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'
21741 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'
21743 aix_use_runtimelinking=no
21745 # Test if we are trying to use run time linking or normal
21746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21747 # need to do runtime linking.
21748 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21749 for ld_flag in $LDFLAGS; do
21750 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21751 aix_use_runtimelinking=yes
21757 exp_sym_flag='-bexport'
21758 no_entry_flag='-bnoentry'
21761 # When large executables or shared objects are built, AIX ld can
21762 # have problems creating the table of contents. If linking a library
21763 # or program results in "error TOC overflow" add -mminimal-toc to
21764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21767 archive_cmds_GCJ=''
21768 hardcode_direct_GCJ=yes
21769 hardcode_libdir_separator_GCJ=':'
21770 link_all_deplibs_GCJ=yes
21772 if test "$GCC" = yes; then
21773 case $host_os in aix4.012|aix4.012.*)
21774 # We only want to do this on AIX 4.2 and lower, the check
21775 # below for broken collect2 doesn't work under 4.3+
21776 collect2name=`${CC} -print-prog-name=collect2`
21777 if test -f "$collect2name" && \
21778 strings "$collect2name" | grep resolve_lib_name >/dev/null
21780 # We have reworked collect2
21781 hardcode_direct_GCJ=yes
21783 # We have old collect2
21784 hardcode_direct_GCJ=unsupported
21785 # It fails to find uninstalled libraries when the uninstalled
21786 # path is not listed in the libpath. Setting hardcode_minus_L
21787 # to unsupported forces relinking
21788 hardcode_minus_L_GCJ=yes
21789 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21790 hardcode_libdir_separator_GCJ=
21793 shared_flag='-shared'
21796 if test "$host_cpu" = ia64; then
21797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21798 # chokes on -Wl,-G. The following line is correct:
21801 if test "$aix_use_runtimelinking" = yes; then
21802 shared_flag='${wl}-G'
21804 shared_flag='${wl}-bM:SRE'
21809 # It seems that -bexpall does not export symbols beginning with
21810 # underscore (_), so it is better to generate a list of symbols to export.
21811 always_export_symbols_GCJ=yes
21812 if test "$aix_use_runtimelinking" = yes; then
21813 # Warning - without using the other runtime loading flags (-brtl),
21814 # -berok will link without error, but may produce a broken library.
21815 allow_undefined_flag_GCJ='-berok'
21816 # Determine the default libpath from the value encoded in an empty executable.
21817 cat >conftest.$ac_ext <<_ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21832 rm -f conftest.$ac_objext conftest$ac_exeext
21833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21834 (eval $ac_link) 2>conftest.er1
21836 grep -v '^ *+' conftest.er1 >conftest.err
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } &&
21841 { ac_try='test -z "$ac_c_werror_flag"
21842 || test ! -s conftest.err'
21843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21844 (eval $ac_try) 2>&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); }; } &&
21848 { ac_try='test -s conftest$ac_exeext'
21849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850 (eval $ac_try) 2>&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; }; then
21855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21857 # Check for a 64-bit object if we didn't find anything.
21858 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; }
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21865 rm -f conftest.err conftest.$ac_objext \
21866 conftest$ac_exeext conftest.$ac_ext
21867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21869 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21870 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"
21872 if test "$host_cpu" = ia64; then
21873 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21874 allow_undefined_flag_GCJ="-z nodefs"
21875 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"
21877 # Determine the default libpath from the value encoded in an empty executable.
21878 cat >conftest.$ac_ext <<_ACEOF
21881 cat confdefs.h >>conftest.$ac_ext
21882 cat >>conftest.$ac_ext <<_ACEOF
21883 /* end confdefs.h. */
21893 rm -f conftest.$ac_objext conftest$ac_exeext
21894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21895 (eval $ac_link) 2>conftest.er1
21897 grep -v '^ *+' conftest.er1 >conftest.err
21899 cat conftest.err >&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
21902 { ac_try='test -z "$ac_c_werror_flag"
21903 || test ! -s conftest.err'
21904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905 (eval $ac_try) 2>&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; } &&
21909 { ac_try='test -s conftest$ac_exeext'
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; }; then
21916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21918 # Check for a 64-bit object if we didn't find anything.
21919 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; }
21922 echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21926 rm -f conftest.err conftest.$ac_objext \
21927 conftest$ac_exeext conftest.$ac_ext
21928 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21930 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21931 # Warning - without using the other run time loading flags,
21932 # -berok will link without error, but may produce a broken library.
21933 no_undefined_flag_GCJ=' ${wl}-bernotok'
21934 allow_undefined_flag_GCJ=' ${wl}-berok'
21935 # -bexpall does not export symbols beginning with underscore (_)
21936 always_export_symbols_GCJ=yes
21937 # Exported symbols can be pulled into shared objects from archives
21938 whole_archive_flag_spec_GCJ=' '
21939 archive_cmds_need_lc_GCJ=yes
21940 # This is similar to how AIX traditionally builds it's shared libraries.
21941 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'
21947 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)'
21948 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21949 hardcode_minus_L_GCJ=yes
21950 # see comment about different semantics on the GNU ld section
21955 export_dynamic_flag_spec_GCJ=-rdynamic
21958 cygwin* | mingw* | pw32*)
21959 # When not using gcc, we currently assume that we are using
21960 # Microsoft Visual C++.
21961 # hardcode_libdir_flag_spec is actually meaningless, as there is
21962 # no search path for DLLs.
21963 hardcode_libdir_flag_spec_GCJ=' '
21964 allow_undefined_flag_GCJ=unsupported
21965 # Tell ltmain to make .lib files, not .a files.
21967 # Tell ltmain to make .dll files, not .so files.
21969 # FIXME: Setting linknames here is a bad hack.
21970 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21971 # The linker will automatically build a .lib file if we build a DLL.
21972 old_archive_From_new_cmds_GCJ='true'
21973 # FIXME: Should let the user specify the lib program.
21974 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21975 fix_srcfile_path='`cygpath -w "$srcfile"`'
21976 enable_shared_with_static_runtimes_GCJ=yes
21979 darwin* | rhapsody*)
21981 rhapsody* | darwin1.[012])
21982 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21985 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21986 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21988 case ${MACOSX_DEPLOYMENT_TARGET} in
21990 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21993 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21999 archive_cmds_need_lc_GCJ=no
22000 hardcode_direct_GCJ=no
22001 hardcode_automatic_GCJ=yes
22002 hardcode_shlibpath_var_GCJ=unsupported
22003 whole_archive_flag_spec_GCJ=''
22004 link_all_deplibs_GCJ=yes
22005 if test "$GCC" = yes ; then
22006 output_verbose_link_cmd='echo'
22007 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22008 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22009 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22010 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}'
22011 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}'
22013 case "$cc_basename" in
22015 output_verbose_link_cmd='echo'
22016 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22017 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22018 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22019 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}'
22020 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}'
22030 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22031 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22032 hardcode_shlibpath_var_GCJ=no
22039 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22040 # support. Future versions do this automatically, but an explicit c++rt0.o
22041 # does not break anything, and helps significantly (at the cost of a little
22044 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22046 hardcode_direct_GCJ=yes
22047 hardcode_shlibpath_var_GCJ=no
22050 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22052 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22053 hardcode_direct_GCJ=yes
22054 hardcode_minus_L_GCJ=yes
22055 hardcode_shlibpath_var_GCJ=no
22058 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22059 freebsd* | kfreebsd*-gnu)
22060 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22061 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22062 hardcode_direct_GCJ=yes
22063 hardcode_shlibpath_var_GCJ=no
22067 if test "$GCC" = yes; then
22068 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'
22070 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'
22072 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22073 hardcode_libdir_separator_GCJ=:
22074 hardcode_direct_GCJ=yes
22076 # hardcode_minus_L: Not really in the search PATH,
22077 # but as the default location of the library.
22078 hardcode_minus_L_GCJ=yes
22079 export_dynamic_flag_spec_GCJ='${wl}-E'
22083 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22084 case "$host_cpu" in
22086 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22089 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22093 case "$host_cpu" in
22095 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22098 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22102 if test "$with_gnu_ld" = no; then
22103 case "$host_cpu" in
22105 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22106 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22107 hardcode_libdir_separator_GCJ=:
22108 hardcode_direct_GCJ=no
22109 hardcode_shlibpath_var_GCJ=no
22112 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22113 hardcode_direct_GCJ=no
22114 hardcode_shlibpath_var_GCJ=no
22116 # hardcode_minus_L: Not really in the search PATH,
22117 # but as the default location of the library.
22118 hardcode_minus_L_GCJ=yes
22121 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22122 hardcode_libdir_separator_GCJ=:
22123 hardcode_direct_GCJ=yes
22124 export_dynamic_flag_spec_GCJ='${wl}-E'
22126 # hardcode_minus_L: Not really in the search PATH,
22127 # but as the default location of the library.
22128 hardcode_minus_L_GCJ=yes
22134 irix5* | irix6* | nonstopux*)
22135 if test "$GCC" = yes; then
22136 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'
22138 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'
22139 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22141 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22142 hardcode_libdir_separator_GCJ=:
22143 link_all_deplibs_GCJ=yes
22147 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22148 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22150 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22152 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22153 hardcode_direct_GCJ=yes
22154 hardcode_shlibpath_var_GCJ=no
22158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22159 hardcode_direct_GCJ=yes
22160 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22161 hardcode_libdir_separator_GCJ=:
22162 hardcode_shlibpath_var_GCJ=no
22166 hardcode_direct_GCJ=yes
22167 hardcode_shlibpath_var_GCJ=no
22168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22169 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22170 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22171 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22172 export_dynamic_flag_spec_GCJ='${wl}-E'
22175 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22176 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22177 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22180 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22181 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22188 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22189 hardcode_minus_L_GCJ=yes
22190 allow_undefined_flag_GCJ=unsupported
22191 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'
22192 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22196 if test "$GCC" = yes; then
22197 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22198 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'
22200 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22201 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'
22203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22204 hardcode_libdir_separator_GCJ=:
22207 osf4* | osf5*) # as osf3* with the addition of -msym flag
22208 if test "$GCC" = yes; then
22209 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22210 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'
22211 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22213 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22214 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'
22215 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~
22216 $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'
22218 # Both c and cxx compiler support -rpath directly
22219 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22221 hardcode_libdir_separator_GCJ=:
22225 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22226 hardcode_shlibpath_var_GCJ=no
22227 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22228 runpath_var=LD_RUN_PATH
22229 hardcode_runpath_var=yes
22233 no_undefined_flag_GCJ=' -z text'
22234 if test "$GCC" = yes; then
22235 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22236 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22237 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22239 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22240 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22241 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22243 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22244 hardcode_shlibpath_var_GCJ=no
22246 solaris2.[0-5] | solaris2.[0-5].*) ;;
22247 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22248 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22250 link_all_deplibs_GCJ=yes
22254 if test "x$host_vendor" = xsequent; then
22255 # Use $CC to link under sequent, because it throws in some extra .o
22256 # files that make .init and .fini sections work.
22257 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22259 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22261 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22262 hardcode_direct_GCJ=yes
22263 hardcode_minus_L_GCJ=yes
22264 hardcode_shlibpath_var_GCJ=no
22268 case $host_vendor in
22270 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22271 hardcode_direct_GCJ=yes # is this really true???
22274 ## LD is ld it makes a PLAMLIB
22275 ## CC just makes a GrossModule.
22276 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22277 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22278 hardcode_direct_GCJ=no
22281 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22282 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22285 runpath_var='LD_RUN_PATH'
22286 hardcode_shlibpath_var_GCJ=no
22290 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22291 hardcode_shlibpath_var_GCJ=no
22292 export_dynamic_flag_spec_GCJ='-Bexport'
22296 if test -d /usr/nec; then
22297 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22298 hardcode_shlibpath_var_GCJ=no
22299 runpath_var=LD_RUN_PATH
22300 hardcode_runpath_var=yes
22306 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22307 hardcode_direct_GCJ=yes
22308 hardcode_minus_L_GCJ=no
22309 hardcode_shlibpath_var_GCJ=no
22310 hardcode_runpath_var=yes
22311 runpath_var=LD_RUN_PATH
22314 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22315 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22316 if test "$GCC" = yes; then
22317 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22319 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22321 runpath_var='LD_RUN_PATH'
22322 hardcode_shlibpath_var_GCJ=no
22326 no_undefined_flag_GCJ=' -z text'
22327 # $CC -shared without GNU ld will not create a library from C++
22328 # object files and a static libstdc++, better avoid it by now
22329 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22330 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22331 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22332 hardcode_libdir_flag_spec_GCJ=
22333 hardcode_shlibpath_var_GCJ=no
22334 runpath_var='LD_RUN_PATH'
22338 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22339 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22340 hardcode_shlibpath_var_GCJ=no
22349 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22350 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22351 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22354 if test "$GCC" = yes; then
22355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22359 # Do we need to explicitly link libc?
22361 case "x$archive_cmds_need_lc_GCJ" in
22363 # Assume -lc should be added
22364 archive_cmds_need_lc_GCJ=yes
22366 if test "$enable_shared" = yes && test "$GCC" = yes; then
22367 case $archive_cmds_GCJ in
22369 # FIXME: we may have to deal with multi-command sequences.
22372 # Test whether the compiler implicitly links with -lc since on some
22373 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22374 # to ld, don't add -lc before -lgcc.
22375 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22376 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22381 (eval $ac_compile) 2>&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } 2>conftest.err; then
22387 libobjs=conftest.$ac_objext
22389 wl=$lt_prog_compiler_wl_GCJ
22395 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22396 allow_undefined_flag_GCJ=
22397 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22398 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }
22403 archive_cmds_need_lc_GCJ=no
22405 archive_cmds_need_lc_GCJ=yes
22407 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22409 cat conftest.err 1>&5
22412 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22413 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22420 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22421 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22422 library_names_spec=
22423 libname_spec='lib$name'
22427 postuninstall_cmds=
22431 shlibpath_overrides_runpath=unknown
22433 dynamic_linker="$host_os ld.so"
22434 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22435 if test "$GCC" = yes; then
22436 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22437 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22438 # if the path contains ";" then we assume it to be the separator
22439 # otherwise default to the standard path separator (i.e. ":") - it is
22440 # assumed that no part of a normal pathname contains ";" but that should
22441 # okay in the real world where ";" in dirpaths is itself problematic.
22442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22447 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22449 need_lib_prefix=unknown
22450 hardcode_into_libs=no
22452 # when you set need_version to no, make sure it does not cause -set_version
22453 # flags to be left without arguments
22454 need_version=unknown
22459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22460 shlibpath_var=LIBPATH
22462 # AIX 3 has no versioning support, so we append a major version to the name.
22463 soname_spec='${libname}${release}${shared_ext}$major'
22470 hardcode_into_libs=yes
22471 if test "$host_cpu" = ia64; then
22472 # AIX 5 supports IA64
22473 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22474 shlibpath_var=LD_LIBRARY_PATH
22476 # With GCC up to 2.95.x, collect2 would create an import file
22477 # for dependence libraries. The import file would start with
22478 # the line `#! .'. This would cause the generated library to
22479 # depend on `.', always an invalid library. This was fixed in
22480 # development snapshots of GCC prior to 3.0.
22482 aix4 | aix4.[01] | aix4.[01].*)
22483 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22485 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22488 can_build_shared=no
22492 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22493 # soname into executable. Probably we can add versioning support to
22494 # collect2, so additional links can be useful in future.
22495 if test "$aix_use_runtimelinking" = yes; then
22496 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22497 # instead of lib<name>.a to let people know that these are not
22498 # typical AIX shared libraries.
22499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22501 # We preserve .a as extension for shared libraries through AIX4.2
22502 # and later when we are not doing run time linking.
22503 library_names_spec='${libname}${release}.a $libname.a'
22504 soname_spec='${libname}${release}${shared_ext}$major'
22506 shlibpath_var=LIBPATH
22511 library_names_spec='$libname.ixlibrary $libname.a'
22512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22513 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'
22517 library_names_spec='${libname}${shared_ext}'
22518 dynamic_linker="$host_os ld.so"
22519 shlibpath_var=LIBRARY_PATH
22525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22526 soname_spec='${libname}${release}${shared_ext}$major'
22527 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22528 shlibpath_var=LD_LIBRARY_PATH
22529 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22530 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22531 # the default ld.so.conf also contains /usr/contrib/lib and
22532 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22533 # libtool to hard-code these into programs
22536 cygwin* | mingw* | pw32*)
22537 version_type=windows
22542 case $GCC,$host_os in
22543 yes,cygwin* | yes,mingw* | yes,pw32*)
22544 library_names_spec='$libname.dll.a'
22545 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22546 postinstall_cmds='base_file=`basename \${file}`~
22547 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22548 dldir=$destdir/`dirname \$dlpath`~
22549 test -d \$dldir || mkdir -p \$dldir~
22550 $install_prog $dir/$dlname \$dldir/$dlname'
22551 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22552 dlpath=$dir/\$dldll~
22554 shlibpath_overrides_runpath=yes
22558 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22559 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22560 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22563 # MinGW DLLs use traditional 'lib' prefix
22564 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22565 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22566 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22567 # It is most probably a Windows format PATH printed by
22568 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22569 # path with ; separators, and with drive letters. We can handle the
22570 # drive letters (cygwin fileutils understands them), so leave them,
22571 # especially as we might pass files found there to a mingw objdump,
22572 # which wouldn't understand a cygwinified path. Ahh.
22573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22579 # pw32 DLLs use 'pw' prefix rather than 'lib'
22580 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22586 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22589 dynamic_linker='Win32 ld.exe'
22590 # FIXME: first we should search . and the directory the executable is in
22594 darwin* | rhapsody*)
22595 dynamic_linker="$host_os dyld"
22596 version_type=darwin
22599 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22600 soname_spec='${libname}${release}${major}$shared_ext'
22601 shlibpath_overrides_runpath=yes
22602 shlibpath_var=DYLD_LIBRARY_PATH
22603 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22604 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22605 if test "$GCC" = yes; then
22606 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"`
22608 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22610 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22618 soname_spec='${libname}${release}${shared_ext}$major'
22619 shlibpath_var=LD_LIBRARY_PATH
22630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22631 soname_spec='${libname}${release}${shared_ext}$major'
22632 shlibpath_var=LD_LIBRARY_PATH
22633 shlibpath_overrides_runpath=no
22634 hardcode_into_libs=yes
22635 dynamic_linker='GNU ld.so'
22639 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22640 version_type=freebsd-$objformat
22641 case $version_type in
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22652 shlibpath_var=LD_LIBRARY_PATH
22655 shlibpath_overrides_runpath=yes
22657 freebsd3.01* | freebsdelf3.01*)
22658 shlibpath_overrides_runpath=yes
22659 hardcode_into_libs=yes
22662 shlibpath_overrides_runpath=no
22663 hardcode_into_libs=yes
22672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22673 soname_spec='${libname}${release}${shared_ext}$major'
22674 shlibpath_var=LD_LIBRARY_PATH
22675 hardcode_into_libs=yes
22678 hpux9* | hpux10* | hpux11*)
22679 # Give a soname corresponding to the major version so that dld.sl refuses to
22680 # link against other versions.
22684 case "$host_cpu" in
22687 hardcode_into_libs=yes
22688 dynamic_linker="$host_os dld.so"
22689 shlibpath_var=LD_LIBRARY_PATH
22690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22692 soname_spec='${libname}${release}${shared_ext}$major'
22693 if test "X$HPUX_IA64_MODE" = X32; then
22694 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22702 hardcode_into_libs=yes
22703 dynamic_linker="$host_os dld.sl"
22704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22707 soname_spec='${libname}${release}${shared_ext}$major'
22708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22713 dynamic_linker="$host_os dld.sl"
22714 shlibpath_var=SHLIB_PATH
22715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22717 soname_spec='${libname}${release}${shared_ext}$major'
22720 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22721 postinstall_cmds='chmod 555 $lib'
22724 irix5* | irix6* | nonstopux*)
22726 nonstopux*) version_type=nonstopux ;;
22728 if test "$lt_cv_prog_gnu_ld" = yes; then
22736 soname_spec='${libname}${release}${shared_ext}$major'
22737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22739 irix5* | nonstopux*)
22740 libsuff= shlibsuff=
22743 case $LD in # libtool.m4 will add one of these switches to LD
22744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22745 libsuff= shlibsuff= libmagic=32-bit;;
22746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22747 libsuff=32 shlibsuff=N32 libmagic=N32;;
22748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22749 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22750 *) libsuff= shlibsuff= libmagic=never-match;;
22754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22755 shlibpath_overrides_runpath=no
22756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22758 hardcode_into_libs=yes
22761 # No shared lib support for Linux oldld, aout, or coff.
22762 linux*oldld* | linux*aout* | linux*coff*)
22766 # This must be Linux ELF.
22771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22772 soname_spec='${libname}${release}${shared_ext}$major'
22773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22774 shlibpath_var=LD_LIBRARY_PATH
22775 shlibpath_overrides_runpath=no
22776 # This implies no fast_install, which is unacceptable.
22777 # Some rework will be needed to allow for fast_install
22778 # before this can be enabled.
22779 hardcode_into_libs=yes
22781 # Append ld.so.conf contents to the search path
22782 if test -f /etc/ld.so.conf; then
22783 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22784 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22787 # We used to test for /lib/ld.so.1 and disable shared libraries on
22788 # powerpc, because MkLinux only supported shared libraries with the
22789 # GNU dynamic linker. Since this was broken with cross compilers,
22790 # most powerpc-linux boxes support dynamic linking these days and
22791 # people can always --disable-shared, the test was removed, and we
22792 # assume the GNU/Linux dynamic linker is in use.
22793 dynamic_linker='GNU/Linux ld.so'
22800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22801 soname_spec='${libname}${release}${shared_ext}$major'
22802 shlibpath_var=LD_LIBRARY_PATH
22803 shlibpath_overrides_runpath=no
22804 hardcode_into_libs=yes
22805 dynamic_linker='GNU ld.so'
22812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22815 dynamic_linker='NetBSD (a.out) ld.so'
22817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22818 soname_spec='${libname}${release}${shared_ext}$major'
22819 dynamic_linker='NetBSD ld.elf_so'
22821 shlibpath_var=LD_LIBRARY_PATH
22822 shlibpath_overrides_runpath=yes
22823 hardcode_into_libs=yes
22828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22829 shlibpath_var=LD_LIBRARY_PATH
22830 shlibpath_overrides_runpath=yes
22837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22838 soname_spec='${libname}${release}${shared_ext}$major'
22839 shlibpath_var=LD_LIBRARY_PATH
22840 shlibpath_overrides_runpath=yes
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22849 shlibpath_var=LD_LIBRARY_PATH
22850 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22852 openbsd2.[89] | openbsd2.[89].*)
22853 shlibpath_overrides_runpath=no
22856 shlibpath_overrides_runpath=yes
22860 shlibpath_overrides_runpath=yes
22865 libname_spec='$name'
22868 library_names_spec='$libname${shared_ext} $libname.a'
22869 dynamic_linker='OS/2 ld.exe'
22870 shlibpath_var=LIBPATH
22873 osf3* | osf4* | osf5*)
22877 soname_spec='${libname}${release}${shared_ext}$major'
22878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22879 shlibpath_var=LD_LIBRARY_PATH
22880 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22881 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22886 soname_spec='${libname}${release}${shared_ext}$major'
22887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22888 shlibpath_var=LD_LIBRARY_PATH
22895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22896 soname_spec='${libname}${release}${shared_ext}$major'
22897 shlibpath_var=LD_LIBRARY_PATH
22898 shlibpath_overrides_runpath=yes
22899 hardcode_into_libs=yes
22900 # ldd complains unless libraries are executable
22901 postinstall_cmds='chmod +x $lib'
22906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22908 shlibpath_var=LD_LIBRARY_PATH
22909 shlibpath_overrides_runpath=yes
22910 if test "$with_gnu_ld" = yes; then
22916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22919 soname_spec='${libname}${release}${shared_ext}$major'
22920 shlibpath_var=LD_LIBRARY_PATH
22921 case $host_vendor in
22923 shlibpath_overrides_runpath=no
22925 export_dynamic_flag_spec='${wl}-Blargedynsym'
22926 runpath_var=LD_RUN_PATH
22934 shlibpath_overrides_runpath=no
22935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22941 if test -d /usr/nec ;then
22943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22944 soname_spec='$libname${shared_ext}.$major'
22945 shlibpath_var=LD_LIBRARY_PATH
22951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22952 soname_spec='${libname}${release}${shared_ext}$major'
22953 shlibpath_var=LD_LIBRARY_PATH
22960 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22961 echo "${ECHO_T}$dynamic_linker" >&6
22962 test "$dynamic_linker" = no && can_build_shared=no
22964 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22965 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22966 hardcode_action_GCJ=
22967 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22968 test -n "$runpath_var_GCJ" || \
22969 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22971 # We can hardcode non-existant directories.
22972 if test "$hardcode_direct_GCJ" != no &&
22973 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22974 # have to relink, otherwise we might link with an installed library
22975 # when we should be linking with a yet-to-be-installed one
22976 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22977 test "$hardcode_minus_L_GCJ" != no; then
22978 # Linking always hardcodes the temporary library directory.
22979 hardcode_action_GCJ=relink
22981 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22982 hardcode_action_GCJ=immediate
22985 # We cannot hardcode anything, or else we can only hardcode existing
22987 hardcode_action_GCJ=unsupported
22989 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22990 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22992 if test "$hardcode_action_GCJ" = relink; then
22993 # Fast installation is not supported
22994 enable_fast_install=no
22995 elif test "$shlibpath_overrides_runpath" = yes ||
22996 test "$enable_shared" = no; then
22997 # Fast installation is not necessary
22998 enable_fast_install=needless
23003 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23004 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23005 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23006 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23007 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23008 echo "$as_me:$LINENO: result: yes" >&5
23009 echo "${ECHO_T}yes" >&6
23011 # FIXME - insert some real tests, host_os isn't really good enough
23014 if test -n "$STRIP" ; then
23015 striplib="$STRIP -x"
23016 echo "$as_me:$LINENO: result: yes" >&5
23017 echo "${ECHO_T}yes" >&6
23019 echo "$as_me:$LINENO: result: no" >&5
23020 echo "${ECHO_T}no" >&6
23024 echo "$as_me:$LINENO: result: no" >&5
23025 echo "${ECHO_T}no" >&6
23030 if test "x$enable_dlopen" != xyes; then
23031 enable_dlopen=unknown
23032 enable_dlopen_self=unknown
23033 enable_dlopen_self_static=unknown
23040 lt_cv_dlopen="load_add_on"
23042 lt_cv_dlopen_self=yes
23046 lt_cv_dlopen="LoadLibrary"
23051 lt_cv_dlopen="dlopen"
23056 # if libdl is installed we need to link against it
23057 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23058 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23059 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23060 echo $ECHO_N "(cached) $ECHO_C" >&6
23062 ac_check_lib_save_LIBS=$LIBS
23064 cat >conftest.$ac_ext <<_ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23071 /* Override any gcc2 internal prototype to avoid an error. */
23075 /* We use char because int might match the return type of a gcc2
23076 builtin and then its argument prototype would still apply. */
23086 rm -f conftest.$ac_objext conftest$ac_exeext
23087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23088 (eval $ac_link) 2>conftest.er1
23090 grep -v '^ *+' conftest.er1 >conftest.err
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } &&
23095 { ac_try='test -z "$ac_c_werror_flag"
23096 || test ! -s conftest.err'
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; } &&
23102 { ac_try='test -s conftest$ac_exeext'
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; }; then
23108 ac_cv_lib_dl_dlopen=yes
23110 echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23113 ac_cv_lib_dl_dlopen=no
23115 rm -f conftest.err conftest.$ac_objext \
23116 conftest$ac_exeext conftest.$ac_ext
23117 LIBS=$ac_check_lib_save_LIBS
23119 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23120 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23121 if test $ac_cv_lib_dl_dlopen = yes; then
23122 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23125 lt_cv_dlopen="dyld"
23127 lt_cv_dlopen_self=yes
23134 echo "$as_me:$LINENO: checking for shl_load" >&5
23135 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23136 if test "${ac_cv_func_shl_load+set}" = set; then
23137 echo $ECHO_N "(cached) $ECHO_C" >&6
23139 cat >conftest.$ac_ext <<_ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23145 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23147 #define shl_load innocuous_shl_load
23149 /* System header to define __stub macros and hopefully few prototypes,
23150 which can conflict with char shl_load (); below.
23151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23152 <limits.h> exists even on freestanding compilers. */
23155 # include <limits.h>
23157 # include <assert.h>
23162 /* Override any gcc2 internal prototype to avoid an error. */
23167 /* We use char because int might match the return type of a gcc2
23168 builtin and then its argument prototype would still apply. */
23170 /* The GNU C library defines this for functions which it implements
23171 to always fail with ENOSYS. Some functions are actually named
23172 something starting with __ and the normal name is an alias. */
23173 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23176 char (*f) () = shl_load;
23185 return f != shl_load;
23190 rm -f conftest.$ac_objext conftest$ac_exeext
23191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23192 (eval $ac_link) 2>conftest.er1
23194 grep -v '^ *+' conftest.er1 >conftest.err
23196 cat conftest.err >&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } &&
23199 { ac_try='test -z "$ac_c_werror_flag"
23200 || test ! -s conftest.err'
23201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202 (eval $ac_try) 2>&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); }; } &&
23206 { ac_try='test -s conftest$ac_exeext'
23207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208 (eval $ac_try) 2>&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); }; }; then
23212 ac_cv_func_shl_load=yes
23214 echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23217 ac_cv_func_shl_load=no
23219 rm -f conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
23222 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23223 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23224 if test $ac_cv_func_shl_load = yes; then
23225 lt_cv_dlopen="shl_load"
23227 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23228 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23229 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23232 ac_check_lib_save_LIBS=$LIBS
23234 cat >conftest.$ac_ext <<_ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23241 /* Override any gcc2 internal prototype to avoid an error. */
23245 /* We use char because int might match the return type of a gcc2
23246 builtin and then its argument prototype would still apply. */
23256 rm -f conftest.$ac_objext conftest$ac_exeext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23258 (eval $ac_link) 2>conftest.er1
23260 grep -v '^ *+' conftest.er1 >conftest.err
23262 cat conftest.err >&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } &&
23265 { ac_try='test -z "$ac_c_werror_flag"
23266 || test ! -s conftest.err'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; } &&
23272 { ac_try='test -s conftest$ac_exeext'
23273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; }; then
23278 ac_cv_lib_dld_shl_load=yes
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 ac_cv_lib_dld_shl_load=no
23285 rm -f conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
23287 LIBS=$ac_check_lib_save_LIBS
23289 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23290 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23291 if test $ac_cv_lib_dld_shl_load = yes; then
23292 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23294 echo "$as_me:$LINENO: checking for dlopen" >&5
23295 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23296 if test "${ac_cv_func_dlopen+set}" = set; then
23297 echo $ECHO_N "(cached) $ECHO_C" >&6
23299 cat >conftest.$ac_ext <<_ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h. */
23305 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23307 #define dlopen innocuous_dlopen
23309 /* System header to define __stub macros and hopefully few prototypes,
23310 which can conflict with char dlopen (); below.
23311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23312 <limits.h> exists even on freestanding compilers. */
23315 # include <limits.h>
23317 # include <assert.h>
23322 /* Override any gcc2 internal prototype to avoid an error. */
23327 /* We use char because int might match the return type of a gcc2
23328 builtin and then its argument prototype would still apply. */
23330 /* The GNU C library defines this for functions which it implements
23331 to always fail with ENOSYS. Some functions are actually named
23332 something starting with __ and the normal name is an alias. */
23333 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23336 char (*f) () = dlopen;
23345 return f != dlopen;
23350 rm -f conftest.$ac_objext conftest$ac_exeext
23351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23352 (eval $ac_link) 2>conftest.er1
23354 grep -v '^ *+' conftest.er1 >conftest.err
23356 cat conftest.err >&5
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); } &&
23359 { ac_try='test -z "$ac_c_werror_flag"
23360 || test ! -s conftest.err'
23361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362 (eval $ac_try) 2>&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); }; } &&
23366 { ac_try='test -s conftest$ac_exeext'
23367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368 (eval $ac_try) 2>&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; }; then
23372 ac_cv_func_dlopen=yes
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23377 ac_cv_func_dlopen=no
23379 rm -f conftest.err conftest.$ac_objext \
23380 conftest$ac_exeext conftest.$ac_ext
23382 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23383 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23384 if test $ac_cv_func_dlopen = yes; then
23385 lt_cv_dlopen="dlopen"
23387 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23388 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23389 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23390 echo $ECHO_N "(cached) $ECHO_C" >&6
23392 ac_check_lib_save_LIBS=$LIBS
23394 cat >conftest.$ac_ext <<_ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23401 /* Override any gcc2 internal prototype to avoid an error. */
23405 /* We use char because int might match the return type of a gcc2
23406 builtin and then its argument prototype would still apply. */
23416 rm -f conftest.$ac_objext conftest$ac_exeext
23417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23418 (eval $ac_link) 2>conftest.er1
23420 grep -v '^ *+' conftest.er1 >conftest.err
23422 cat conftest.err >&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } &&
23425 { ac_try='test -z "$ac_c_werror_flag"
23426 || test ! -s conftest.err'
23427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428 (eval $ac_try) 2>&5
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); }; } &&
23432 { ac_try='test -s conftest$ac_exeext'
23433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; }; then
23438 ac_cv_lib_dl_dlopen=yes
23440 echo "$as_me: failed program was:" >&5
23441 sed 's/^/| /' conftest.$ac_ext >&5
23443 ac_cv_lib_dl_dlopen=no
23445 rm -f conftest.err conftest.$ac_objext \
23446 conftest$ac_exeext conftest.$ac_ext
23447 LIBS=$ac_check_lib_save_LIBS
23449 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23450 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23451 if test $ac_cv_lib_dl_dlopen = yes; then
23452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23454 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23455 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23456 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23457 echo $ECHO_N "(cached) $ECHO_C" >&6
23459 ac_check_lib_save_LIBS=$LIBS
23460 LIBS="-lsvld $LIBS"
23461 cat >conftest.$ac_ext <<_ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h. */
23468 /* Override any gcc2 internal prototype to avoid an error. */
23472 /* We use char because int might match the return type of a gcc2
23473 builtin and then its argument prototype would still apply. */
23483 rm -f conftest.$ac_objext conftest$ac_exeext
23484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23485 (eval $ac_link) 2>conftest.er1
23487 grep -v '^ *+' conftest.er1 >conftest.err
23489 cat conftest.err >&5
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); } &&
23492 { ac_try='test -z "$ac_c_werror_flag"
23493 || test ! -s conftest.err'
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } &&
23499 { ac_try='test -s conftest$ac_exeext'
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; }; then
23505 ac_cv_lib_svld_dlopen=yes
23507 echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23510 ac_cv_lib_svld_dlopen=no
23512 rm -f conftest.err conftest.$ac_objext \
23513 conftest$ac_exeext conftest.$ac_ext
23514 LIBS=$ac_check_lib_save_LIBS
23516 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23517 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23518 if test $ac_cv_lib_svld_dlopen = yes; then
23519 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23521 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23522 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23523 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23526 ac_check_lib_save_LIBS=$LIBS
23528 cat >conftest.$ac_ext <<_ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h. */
23535 /* Override any gcc2 internal prototype to avoid an error. */
23539 /* We use char because int might match the return type of a gcc2
23540 builtin and then its argument prototype would still apply. */
23550 rm -f conftest.$ac_objext conftest$ac_exeext
23551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552 (eval $ac_link) 2>conftest.er1
23554 grep -v '^ *+' conftest.er1 >conftest.err
23556 cat conftest.err >&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } &&
23559 { ac_try='test -z "$ac_c_werror_flag"
23560 || test ! -s conftest.err'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; } &&
23566 { ac_try='test -s conftest$ac_exeext'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 ac_cv_lib_dld_dld_link=yes
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23577 ac_cv_lib_dld_dld_link=no
23579 rm -f conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
23581 LIBS=$ac_check_lib_save_LIBS
23583 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23584 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23585 if test $ac_cv_lib_dld_dld_link = yes; then
23586 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23607 if test "x$lt_cv_dlopen" != xno; then
23613 case $lt_cv_dlopen in
23615 save_CPPFLAGS="$CPPFLAGS"
23616 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23618 save_LDFLAGS="$LDFLAGS"
23619 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23622 LIBS="$lt_cv_dlopen_libs $LIBS"
23624 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23625 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23626 if test "${lt_cv_dlopen_self+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23629 if test "$cross_compiling" = yes; then :
23630 lt_cv_dlopen_self=cross
23632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23633 lt_status=$lt_dlunknown
23634 cat > conftest.$ac_ext <<EOF
23635 #line 23635 "configure"
23636 #include "confdefs.h"
23645 # define LT_DLGLOBAL RTLD_GLOBAL
23648 # define LT_DLGLOBAL DL_GLOBAL
23650 # define LT_DLGLOBAL 0
23654 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23655 find out it does not work in some platform. */
23656 #ifndef LT_DLLAZY_OR_NOW
23658 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23661 # define LT_DLLAZY_OR_NOW DL_LAZY
23664 # define LT_DLLAZY_OR_NOW RTLD_NOW
23667 # define LT_DLLAZY_OR_NOW DL_NOW
23669 # define LT_DLLAZY_OR_NOW 0
23677 extern "C" void exit (int);
23680 void fnord() { int i=42;}
23683 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23684 int status = $lt_dlunknown;
23688 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23689 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23690 /* dlclose (self); */
23696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23697 (eval $ac_link) 2>&5
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23701 (./conftest; exit; ) 2>/dev/null
23703 case x$lt_status in
23704 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23705 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23706 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23709 # compilation failed
23710 lt_cv_dlopen_self=no
23717 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23718 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23720 if test "x$lt_cv_dlopen_self" = xyes; then
23721 LDFLAGS="$LDFLAGS $link_static_flag"
23722 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23723 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23724 if test "${lt_cv_dlopen_self_static+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23727 if test "$cross_compiling" = yes; then :
23728 lt_cv_dlopen_self_static=cross
23730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23731 lt_status=$lt_dlunknown
23732 cat > conftest.$ac_ext <<EOF
23733 #line 23733 "configure"
23734 #include "confdefs.h"
23743 # define LT_DLGLOBAL RTLD_GLOBAL
23746 # define LT_DLGLOBAL DL_GLOBAL
23748 # define LT_DLGLOBAL 0
23752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23753 find out it does not work in some platform. */
23754 #ifndef LT_DLLAZY_OR_NOW
23756 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23759 # define LT_DLLAZY_OR_NOW DL_LAZY
23762 # define LT_DLLAZY_OR_NOW RTLD_NOW
23765 # define LT_DLLAZY_OR_NOW DL_NOW
23767 # define LT_DLLAZY_OR_NOW 0
23775 extern "C" void exit (int);
23778 void fnord() { int i=42;}
23781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23782 int status = $lt_dlunknown;
23786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23787 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23788 /* dlclose (self); */
23794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23795 (eval $ac_link) 2>&5
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23799 (./conftest; exit; ) 2>/dev/null
23801 case x$lt_status in
23802 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23803 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23804 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23807 # compilation failed
23808 lt_cv_dlopen_self_static=no
23815 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23816 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23819 CPPFLAGS="$save_CPPFLAGS"
23820 LDFLAGS="$save_LDFLAGS"
23825 case $lt_cv_dlopen_self in
23826 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23827 *) enable_dlopen_self=unknown ;;
23830 case $lt_cv_dlopen_self_static in
23831 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23832 *) enable_dlopen_self_static=unknown ;;
23837 # The else clause should only fire when bootstrapping the
23838 # libtool distribution, otherwise you forgot to ship ltmain.sh
23839 # with your package, and you will get complaints that there are
23840 # no rules to generate ltmain.sh.
23841 if test -f "$ltmain"; then
23842 # See if we are running on zsh, and set the options which allow our commands through
23843 # without removal of \ escapes.
23844 if test -n "${ZSH_VERSION+set}" ; then
23845 setopt NO_GLOB_SUBST
23847 # Now quote all the things that may contain metacharacters while being
23848 # careful not to overquote the AC_SUBSTed values. We take copies of the
23849 # variables and quote the copies for generation of the libtool script.
23850 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23852 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23853 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23854 deplibs_check_method reload_flag reload_cmds need_locks \
23855 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23856 lt_cv_sys_global_symbol_to_c_name_address \
23857 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23858 old_postinstall_cmds old_postuninstall_cmds \
23862 lt_prog_compiler_wl_GCJ \
23863 lt_prog_compiler_pic_GCJ \
23864 lt_prog_compiler_static_GCJ \
23865 lt_prog_compiler_no_builtin_flag_GCJ \
23866 export_dynamic_flag_spec_GCJ \
23867 thread_safe_flag_spec_GCJ \
23868 whole_archive_flag_spec_GCJ \
23869 enable_shared_with_static_runtimes_GCJ \
23870 old_archive_cmds_GCJ \
23871 old_archive_from_new_cmds_GCJ \
23872 predep_objects_GCJ \
23873 postdep_objects_GCJ \
23876 compiler_lib_search_path_GCJ \
23878 archive_expsym_cmds_GCJ \
23879 postinstall_cmds_GCJ \
23880 postuninstall_cmds_GCJ \
23881 old_archive_from_expsyms_cmds_GCJ \
23882 allow_undefined_flag_GCJ \
23883 no_undefined_flag_GCJ \
23884 export_symbols_cmds_GCJ \
23885 hardcode_libdir_flag_spec_GCJ \
23886 hardcode_libdir_flag_spec_ld_GCJ \
23887 hardcode_libdir_separator_GCJ \
23888 hardcode_automatic_GCJ \
23890 module_expsym_cmds_GCJ \
23891 lt_cv_prog_compiler_c_o_GCJ \
23892 exclude_expsyms_GCJ \
23893 include_expsyms_GCJ; do
23896 old_archive_cmds_GCJ | \
23897 old_archive_from_new_cmds_GCJ | \
23898 archive_cmds_GCJ | \
23899 archive_expsym_cmds_GCJ | \
23900 module_cmds_GCJ | \
23901 module_expsym_cmds_GCJ | \
23902 old_archive_from_expsyms_cmds_GCJ | \
23903 export_symbols_cmds_GCJ | \
23904 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23905 postinstall_cmds | postuninstall_cmds | \
23906 old_postinstall_cmds | old_postuninstall_cmds | \
23907 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23908 # Double-quote double-evaled strings.
23909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23918 *'\$0 --fallback-echo"')
23919 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23925 cat <<__EOF__ >> "$cfgfile"
23926 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23928 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23930 # Shell to use when invoking shell scripts.
23933 # Whether or not to build shared libraries.
23934 build_libtool_libs=$enable_shared
23936 # Whether or not to build static libraries.
23937 build_old_libs=$enable_static
23939 # Whether or not to add -lc for building shared libraries.
23940 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23942 # Whether or not to disallow shared libs when runtime libs are static
23943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23945 # Whether or not to optimize for fast installation.
23946 fast_install=$enable_fast_install
23949 host_alias=$host_alias
23952 # An echo program that does not interpret backslashes.
23957 AR_FLAGS=$lt_AR_FLAGS
23962 # A language-specific compiler.
23963 CC=$lt_compiler_GCJ
23965 # Is the compiler the GNU C compiler?
23971 # The linker used to build libraries.
23974 # Whether we need hard or soft links.
23977 # A BSD-compatible nm program.
23980 # A symbol stripping program
23983 # Used to examine libraries when file_magic_cmd begins "file"
23984 MAGIC_CMD=$MAGIC_CMD
23986 # Used on cygwin: DLL creation program.
23989 # Used on cygwin: object dumper.
23992 # Used on cygwin: assembler.
23995 # The name of the directory that contains temporary libtool files.
23998 # How to create reloadable object files.
23999 reload_flag=$lt_reload_flag
24000 reload_cmds=$lt_reload_cmds
24002 # How to pass a linker flag through the compiler.
24003 wl=$lt_lt_prog_compiler_wl_GCJ
24005 # Object file suffix (normally "o").
24006 objext="$ac_objext"
24008 # Old archive suffix (normally "a").
24011 # Shared library suffix (normally ".so").
24012 shrext_cmds='$shrext_cmds'
24014 # Executable file suffix (normally "").
24017 # Additional compiler flags for building library objects.
24018 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24021 # What is the maximum length of a command?
24022 max_cmd_len=$lt_cv_sys_max_cmd_len
24024 # Does compiler simultaneously support -c and -o options?
24025 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24027 # Must we lock files when doing compilation ?
24028 need_locks=$lt_need_locks
24030 # Do we need the lib prefix for modules?
24031 need_lib_prefix=$need_lib_prefix
24033 # Do we need a version for libraries?
24034 need_version=$need_version
24036 # Whether dlopen is supported.
24037 dlopen_support=$enable_dlopen
24039 # Whether dlopen of programs is supported.
24040 dlopen_self=$enable_dlopen_self
24042 # Whether dlopen of statically linked programs is supported.
24043 dlopen_self_static=$enable_dlopen_self_static
24045 # Compiler flag to prevent dynamic linking.
24046 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24048 # Compiler flag to turn off builtin functions.
24049 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24051 # Compiler flag to allow reflexive dlopens.
24052 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24054 # Compiler flag to generate shared objects directly from archives.
24055 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24057 # Compiler flag to generate thread-safe objects.
24058 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24060 # Library versioning type.
24061 version_type=$version_type
24063 # Format of library name prefix.
24064 libname_spec=$lt_libname_spec
24066 # List of archive names. First name is the real one, the rest are links.
24067 # The last name is the one that the linker finds with -lNAME.
24068 library_names_spec=$lt_library_names_spec
24070 # The coded name of the library, if different from the real name.
24071 soname_spec=$lt_soname_spec
24073 # Commands used to build and install an old-style archive.
24075 old_archive_cmds=$lt_old_archive_cmds_GCJ
24076 old_postinstall_cmds=$lt_old_postinstall_cmds
24077 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24079 # Create an old-style archive from a shared archive.
24080 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24082 # Create a temporary old-style archive to link instead of a shared archive.
24083 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24085 # Commands used to build and install a shared archive.
24086 archive_cmds=$lt_archive_cmds_GCJ
24087 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24088 postinstall_cmds=$lt_postinstall_cmds
24089 postuninstall_cmds=$lt_postuninstall_cmds
24091 # Commands used to build a loadable module (assumed same as above if empty)
24092 module_cmds=$lt_module_cmds_GCJ
24093 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24095 # Commands to strip libraries.
24096 old_striplib=$lt_old_striplib
24097 striplib=$lt_striplib
24099 # Dependencies to place before the objects being linked to create a
24101 predep_objects=$lt_predep_objects_GCJ
24103 # Dependencies to place after the objects being linked to create a
24105 postdep_objects=$lt_postdep_objects_GCJ
24107 # Dependencies to place before the objects being linked to create a
24109 predeps=$lt_predeps_GCJ
24111 # Dependencies to place after the objects being linked to create a
24113 postdeps=$lt_postdeps_GCJ
24115 # The library search path used internally by the compiler when linking
24116 # a shared library.
24117 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24119 # Method to check whether dependent libraries are shared objects.
24120 deplibs_check_method=$lt_deplibs_check_method
24122 # Command to use when deplibs_check_method == file_magic.
24123 file_magic_cmd=$lt_file_magic_cmd
24125 # Flag that allows shared libraries with undefined symbols to be built.
24126 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24128 # Flag that forces no undefined symbols.
24129 no_undefined_flag=$lt_no_undefined_flag_GCJ
24131 # Commands used to finish a libtool library installation in a directory.
24132 finish_cmds=$lt_finish_cmds
24134 # Same as above, but a single script fragment to be evaled but not shown.
24135 finish_eval=$lt_finish_eval
24137 # Take the output of nm and produce a listing of raw symbols and C names.
24138 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24140 # Transform the output of nm in a proper C declaration
24141 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24143 # Transform the output of nm in a C name address pair
24144 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24146 # This is the shared library runtime path variable.
24147 runpath_var=$runpath_var
24149 # This is the shared library path variable.
24150 shlibpath_var=$shlibpath_var
24152 # Is shlibpath searched before the hard-coded library search path?
24153 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24155 # How to hardcode a shared library path into an executable.
24156 hardcode_action=$hardcode_action_GCJ
24158 # Whether we should hardcode library paths into libraries.
24159 hardcode_into_libs=$hardcode_into_libs
24161 # Flag to hardcode \$libdir into a binary during linking.
24162 # This must work even if \$libdir does not exist.
24163 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24165 # If ld is used when linking, flag to hardcode \$libdir into
24166 # a binary during linking. This must work even if \$libdir does
24168 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24170 # Whether we need a single -rpath flag with a separated argument.
24171 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24173 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24174 # resulting binary.
24175 hardcode_direct=$hardcode_direct_GCJ
24177 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24178 # resulting binary.
24179 hardcode_minus_L=$hardcode_minus_L_GCJ
24181 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24182 # the resulting binary.
24183 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24185 # Set to yes if building a shared library automatically hardcodes DIR into the library
24186 # and all subsequent libraries and executables linked against it.
24187 hardcode_automatic=$hardcode_automatic_GCJ
24189 # Variables whose values should be saved in libtool wrapper scripts and
24190 # restored at relink time.
24191 variables_saved_for_relink="$variables_saved_for_relink"
24193 # Whether libtool must link a program against all its dependency libraries.
24194 link_all_deplibs=$link_all_deplibs_GCJ
24196 # Compile-time system search path for libraries
24197 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24199 # Run-time system search path for libraries
24200 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24202 # Fix the shell variable \$srcfile for the compiler.
24203 fix_srcfile_path="$fix_srcfile_path_GCJ"
24205 # Set to yes if exported symbols are required.
24206 always_export_symbols=$always_export_symbols_GCJ
24208 # The commands to list exported symbols.
24209 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24211 # The commands to extract the exported symbol list from a shared archive.
24212 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24214 # Symbols that should not be listed in the preloaded symbols.
24215 exclude_expsyms=$lt_exclude_expsyms_GCJ
24217 # Symbols that must always be exported.
24218 include_expsyms=$lt_include_expsyms_GCJ
24220 # ### END LIBTOOL TAG CONFIG: $tagname
24226 # If there is no Makefile yet, we rely on a make rule to execute
24227 # `config.status --recheck' to rerun these tests and create the
24228 # libtool script then.
24229 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24230 if test -f "$ltmain_in"; then
24231 test -f Makefile && make "$ltmain"
24237 ac_cpp='$CPP $CPPFLAGS'
24238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24251 ac_cpp='$CPP $CPPFLAGS'
24252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24257 # Source file extension for RC test sources.
24260 # Object file extension for compiled RC test sources.
24264 # Code to be used in simple compile tests
24265 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24267 # Code to be used in simple link tests
24268 lt_simple_link_test_code="$lt_simple_compile_test_code"
24270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24272 # If no C compiler was specified, use CC.
24275 # Allow CC to be a program name with arguments.
24279 # Allow CC to be a program name with arguments.
24284 lt_cv_prog_compiler_c_o_RC=yes
24286 # The else clause should only fire when bootstrapping the
24287 # libtool distribution, otherwise you forgot to ship ltmain.sh
24288 # with your package, and you will get complaints that there are
24289 # no rules to generate ltmain.sh.
24290 if test -f "$ltmain"; then
24291 # See if we are running on zsh, and set the options which allow our commands through
24292 # without removal of \ escapes.
24293 if test -n "${ZSH_VERSION+set}" ; then
24294 setopt NO_GLOB_SUBST
24296 # Now quote all the things that may contain metacharacters while being
24297 # careful not to overquote the AC_SUBSTed values. We take copies of the
24298 # variables and quote the copies for generation of the libtool script.
24299 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24301 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24302 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24303 deplibs_check_method reload_flag reload_cmds need_locks \
24304 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24305 lt_cv_sys_global_symbol_to_c_name_address \
24306 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24307 old_postinstall_cmds old_postuninstall_cmds \
24311 lt_prog_compiler_wl_RC \
24312 lt_prog_compiler_pic_RC \
24313 lt_prog_compiler_static_RC \
24314 lt_prog_compiler_no_builtin_flag_RC \
24315 export_dynamic_flag_spec_RC \
24316 thread_safe_flag_spec_RC \
24317 whole_archive_flag_spec_RC \
24318 enable_shared_with_static_runtimes_RC \
24319 old_archive_cmds_RC \
24320 old_archive_from_new_cmds_RC \
24321 predep_objects_RC \
24322 postdep_objects_RC \
24325 compiler_lib_search_path_RC \
24327 archive_expsym_cmds_RC \
24328 postinstall_cmds_RC \
24329 postuninstall_cmds_RC \
24330 old_archive_from_expsyms_cmds_RC \
24331 allow_undefined_flag_RC \
24332 no_undefined_flag_RC \
24333 export_symbols_cmds_RC \
24334 hardcode_libdir_flag_spec_RC \
24335 hardcode_libdir_flag_spec_ld_RC \
24336 hardcode_libdir_separator_RC \
24337 hardcode_automatic_RC \
24339 module_expsym_cmds_RC \
24340 lt_cv_prog_compiler_c_o_RC \
24341 exclude_expsyms_RC \
24342 include_expsyms_RC; do
24345 old_archive_cmds_RC | \
24346 old_archive_from_new_cmds_RC | \
24347 archive_cmds_RC | \
24348 archive_expsym_cmds_RC | \
24350 module_expsym_cmds_RC | \
24351 old_archive_from_expsyms_cmds_RC | \
24352 export_symbols_cmds_RC | \
24353 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24354 postinstall_cmds | postuninstall_cmds | \
24355 old_postinstall_cmds | old_postuninstall_cmds | \
24356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24357 # Double-quote double-evaled strings.
24358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24367 *'\$0 --fallback-echo"')
24368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24374 cat <<__EOF__ >> "$cfgfile"
24375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24379 # Shell to use when invoking shell scripts.
24382 # Whether or not to build shared libraries.
24383 build_libtool_libs=$enable_shared
24385 # Whether or not to build static libraries.
24386 build_old_libs=$enable_static
24388 # Whether or not to add -lc for building shared libraries.
24389 build_libtool_need_lc=$archive_cmds_need_lc_RC
24391 # Whether or not to disallow shared libs when runtime libs are static
24392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24394 # Whether or not to optimize for fast installation.
24395 fast_install=$enable_fast_install
24398 host_alias=$host_alias
24401 # An echo program that does not interpret backslashes.
24406 AR_FLAGS=$lt_AR_FLAGS
24411 # A language-specific compiler.
24414 # Is the compiler the GNU C compiler?
24420 # The linker used to build libraries.
24423 # Whether we need hard or soft links.
24426 # A BSD-compatible nm program.
24429 # A symbol stripping program
24432 # Used to examine libraries when file_magic_cmd begins "file"
24433 MAGIC_CMD=$MAGIC_CMD
24435 # Used on cygwin: DLL creation program.
24438 # Used on cygwin: object dumper.
24441 # Used on cygwin: assembler.
24444 # The name of the directory that contains temporary libtool files.
24447 # How to create reloadable object files.
24448 reload_flag=$lt_reload_flag
24449 reload_cmds=$lt_reload_cmds
24451 # How to pass a linker flag through the compiler.
24452 wl=$lt_lt_prog_compiler_wl_RC
24454 # Object file suffix (normally "o").
24455 objext="$ac_objext"
24457 # Old archive suffix (normally "a").
24460 # Shared library suffix (normally ".so").
24461 shrext_cmds='$shrext_cmds'
24463 # Executable file suffix (normally "").
24466 # Additional compiler flags for building library objects.
24467 pic_flag=$lt_lt_prog_compiler_pic_RC
24470 # What is the maximum length of a command?
24471 max_cmd_len=$lt_cv_sys_max_cmd_len
24473 # Does compiler simultaneously support -c and -o options?
24474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24476 # Must we lock files when doing compilation ?
24477 need_locks=$lt_need_locks
24479 # Do we need the lib prefix for modules?
24480 need_lib_prefix=$need_lib_prefix
24482 # Do we need a version for libraries?
24483 need_version=$need_version
24485 # Whether dlopen is supported.
24486 dlopen_support=$enable_dlopen
24488 # Whether dlopen of programs is supported.
24489 dlopen_self=$enable_dlopen_self
24491 # Whether dlopen of statically linked programs is supported.
24492 dlopen_self_static=$enable_dlopen_self_static
24494 # Compiler flag to prevent dynamic linking.
24495 link_static_flag=$lt_lt_prog_compiler_static_RC
24497 # Compiler flag to turn off builtin functions.
24498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24500 # Compiler flag to allow reflexive dlopens.
24501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24503 # Compiler flag to generate shared objects directly from archives.
24504 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24506 # Compiler flag to generate thread-safe objects.
24507 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24509 # Library versioning type.
24510 version_type=$version_type
24512 # Format of library name prefix.
24513 libname_spec=$lt_libname_spec
24515 # List of archive names. First name is the real one, the rest are links.
24516 # The last name is the one that the linker finds with -lNAME.
24517 library_names_spec=$lt_library_names_spec
24519 # The coded name of the library, if different from the real name.
24520 soname_spec=$lt_soname_spec
24522 # Commands used to build and install an old-style archive.
24524 old_archive_cmds=$lt_old_archive_cmds_RC
24525 old_postinstall_cmds=$lt_old_postinstall_cmds
24526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24528 # Create an old-style archive from a shared archive.
24529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24531 # Create a temporary old-style archive to link instead of a shared archive.
24532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24534 # Commands used to build and install a shared archive.
24535 archive_cmds=$lt_archive_cmds_RC
24536 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24537 postinstall_cmds=$lt_postinstall_cmds
24538 postuninstall_cmds=$lt_postuninstall_cmds
24540 # Commands used to build a loadable module (assumed same as above if empty)
24541 module_cmds=$lt_module_cmds_RC
24542 module_expsym_cmds=$lt_module_expsym_cmds_RC
24544 # Commands to strip libraries.
24545 old_striplib=$lt_old_striplib
24546 striplib=$lt_striplib
24548 # Dependencies to place before the objects being linked to create a
24550 predep_objects=$lt_predep_objects_RC
24552 # Dependencies to place after the objects being linked to create a
24554 postdep_objects=$lt_postdep_objects_RC
24556 # Dependencies to place before the objects being linked to create a
24558 predeps=$lt_predeps_RC
24560 # Dependencies to place after the objects being linked to create a
24562 postdeps=$lt_postdeps_RC
24564 # The library search path used internally by the compiler when linking
24565 # a shared library.
24566 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24568 # Method to check whether dependent libraries are shared objects.
24569 deplibs_check_method=$lt_deplibs_check_method
24571 # Command to use when deplibs_check_method == file_magic.
24572 file_magic_cmd=$lt_file_magic_cmd
24574 # Flag that allows shared libraries with undefined symbols to be built.
24575 allow_undefined_flag=$lt_allow_undefined_flag_RC
24577 # Flag that forces no undefined symbols.
24578 no_undefined_flag=$lt_no_undefined_flag_RC
24580 # Commands used to finish a libtool library installation in a directory.
24581 finish_cmds=$lt_finish_cmds
24583 # Same as above, but a single script fragment to be evaled but not shown.
24584 finish_eval=$lt_finish_eval
24586 # Take the output of nm and produce a listing of raw symbols and C names.
24587 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24589 # Transform the output of nm in a proper C declaration
24590 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24592 # Transform the output of nm in a C name address pair
24593 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24595 # This is the shared library runtime path variable.
24596 runpath_var=$runpath_var
24598 # This is the shared library path variable.
24599 shlibpath_var=$shlibpath_var
24601 # Is shlibpath searched before the hard-coded library search path?
24602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24604 # How to hardcode a shared library path into an executable.
24605 hardcode_action=$hardcode_action_RC
24607 # Whether we should hardcode library paths into libraries.
24608 hardcode_into_libs=$hardcode_into_libs
24610 # Flag to hardcode \$libdir into a binary during linking.
24611 # This must work even if \$libdir does not exist.
24612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24614 # If ld is used when linking, flag to hardcode \$libdir into
24615 # a binary during linking. This must work even if \$libdir does
24617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24619 # Whether we need a single -rpath flag with a separated argument.
24620 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24622 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24623 # resulting binary.
24624 hardcode_direct=$hardcode_direct_RC
24626 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24627 # resulting binary.
24628 hardcode_minus_L=$hardcode_minus_L_RC
24630 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24631 # the resulting binary.
24632 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24634 # Set to yes if building a shared library automatically hardcodes DIR into the library
24635 # and all subsequent libraries and executables linked against it.
24636 hardcode_automatic=$hardcode_automatic_RC
24638 # Variables whose values should be saved in libtool wrapper scripts and
24639 # restored at relink time.
24640 variables_saved_for_relink="$variables_saved_for_relink"
24642 # Whether libtool must link a program against all its dependency libraries.
24643 link_all_deplibs=$link_all_deplibs_RC
24645 # Compile-time system search path for libraries
24646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24648 # Run-time system search path for libraries
24649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24651 # Fix the shell variable \$srcfile for the compiler.
24652 fix_srcfile_path="$fix_srcfile_path_RC"
24654 # Set to yes if exported symbols are required.
24655 always_export_symbols=$always_export_symbols_RC
24657 # The commands to list exported symbols.
24658 export_symbols_cmds=$lt_export_symbols_cmds_RC
24660 # The commands to extract the exported symbol list from a shared archive.
24661 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24663 # Symbols that should not be listed in the preloaded symbols.
24664 exclude_expsyms=$lt_exclude_expsyms_RC
24666 # Symbols that must always be exported.
24667 include_expsyms=$lt_include_expsyms_RC
24669 # ### END LIBTOOL TAG CONFIG: $tagname
24675 # If there is no Makefile yet, we rely on a make rule to execute
24676 # `config.status --recheck' to rerun these tests and create the
24677 # libtool script then.
24678 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24679 if test -f "$ltmain_in"; then
24680 test -f Makefile && make "$ltmain"
24686 ac_cpp='$CPP $CPPFLAGS'
24687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24696 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24697 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24698 { (exit 1); exit 1; }; }
24702 # Append the new tag name to the list of available tags.
24703 if test -n "$tagname" ; then
24704 available_tags="$available_tags $tagname"
24710 # Now substitute the updated list of available tags.
24711 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24712 mv "${ofile}T" "$ofile"
24716 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24717 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24718 { (exit 1); exit 1; }; }
24724 # This can be used to rebuild libtool when needed
24725 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24727 # Always use our own libtool.
24728 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24730 # Prevent multiple expansion
24752 if test "$lt_cv_dlopen_self" = "yes" ; then
24754 cat >>confdefs.h <<\_ACEOF
24755 #define CAN_DLOPEN_SELF 1
24760 etags_version=`$ETAGS --version 2>&1`
24761 case "$etags_version" in
24762 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24763 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24764 *) ETAGSFLAGS="" ;;
24766 ETAGSFLAGS=$ETAGSFLAGS
24769 if test "$WITH_LLVMGCCDIR" = "default" ; then
24770 LLVMGCC="llvm-gcc${EXEEXT}"
24771 LLVMGXX="llvm-g++${EXEEXT}"
24772 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24773 set dummy $LLVMGCC; ac_word=$2
24774 echo "$as_me:$LINENO: checking for $ac_word" >&5
24775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24776 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24777 echo $ECHO_N "(cached) $ECHO_C" >&6
24781 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24785 for as_dir in $PATH
24788 test -z "$as_dir" && as_dir=.
24789 for ac_exec_ext in '' $ac_executable_extensions; do
24790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24791 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24801 LLVMGCC=$ac_cv_path_LLVMGCC
24803 if test -n "$LLVMGCC"; then
24804 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24805 echo "${ECHO_T}$LLVMGCC" >&6
24807 echo "$as_me:$LINENO: result: no" >&5
24808 echo "${ECHO_T}no" >&6
24811 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24812 set dummy $LLVMGXX; ac_word=$2
24813 echo "$as_me:$LINENO: checking for $ac_word" >&5
24814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24815 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24816 echo $ECHO_N "(cached) $ECHO_C" >&6
24820 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24824 for as_dir in $PATH
24827 test -z "$as_dir" && as_dir=.
24828 for ac_exec_ext in '' $ac_executable_extensions; do
24829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24830 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24840 LLVMGXX=$ac_cv_path_LLVMGXX
24842 if test -n "$LLVMGXX"; then
24843 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24844 echo "${ECHO_T}$LLVMGXX" >&6
24846 echo "$as_me:$LINENO: result: no" >&5
24847 echo "${ECHO_T}no" >&6
24851 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24852 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24859 echo "$as_me:$LINENO: checking tool compatibility" >&5
24860 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24873 if test "$GCC" != "yes" && test "$ICC" != "yes"
24875 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24876 echo "$as_me: error: gcc|icc required but not found" >&2;}
24877 { (exit 1); exit 1; }; }
24880 if test "$GXX" != "yes" && test "$IXX" != "yes"
24882 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24883 echo "$as_me: error: g++|icc required but not found" >&2;}
24884 { (exit 1); exit 1; }; }
24887 if test "$GCC" = "yes"
24889 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24890 if test "$gccmajor" -lt "3"
24892 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24893 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24894 { (exit 1); exit 1; }; }
24898 if test -z "$llvm_cv_gnu_make_command"
24900 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24901 echo "$as_me: error: GNU Make required but not found" >&2;}
24902 { (exit 1); exit 1; }; }
24905 echo "$as_me:$LINENO: result: ok" >&5
24906 echo "${ECHO_T}ok" >&6
24910 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24911 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24912 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24915 ac_check_lib_save_LIBS=$LIBS
24917 cat >conftest.$ac_ext <<_ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h. */
24924 /* Override any gcc2 internal prototype to avoid an error. */
24928 /* We use char because int might match the return type of a gcc2
24929 builtin and then its argument prototype would still apply. */
24939 rm -f conftest.$ac_objext conftest$ac_exeext
24940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24941 (eval $ac_link) 2>conftest.er1
24943 grep -v '^ *+' conftest.er1 >conftest.err
24945 cat conftest.err >&5
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } &&
24948 { ac_try='test -z "$ac_c_werror_flag"
24949 || test ! -s conftest.err'
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; } &&
24955 { ac_try='test -s conftest$ac_exeext'
24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; }; then
24961 ac_cv_lib_elf_elf_begin=yes
24963 echo "$as_me: failed program was:" >&5
24964 sed 's/^/| /' conftest.$ac_ext >&5
24966 ac_cv_lib_elf_elf_begin=no
24968 rm -f conftest.err conftest.$ac_objext \
24969 conftest$ac_exeext conftest.$ac_ext
24970 LIBS=$ac_check_lib_save_LIBS
24972 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24973 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24974 if test $ac_cv_lib_elf_elf_begin = yes; then
24975 cat >>confdefs.h <<_ACEOF
24976 #define HAVE_LIBELF 1
24984 echo "$as_me:$LINENO: checking for sin in -lm" >&5
24985 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
24986 if test "${ac_cv_lib_m_sin+set}" = set; then
24987 echo $ECHO_N "(cached) $ECHO_C" >&6
24989 ac_check_lib_save_LIBS=$LIBS
24991 cat >conftest.$ac_ext <<_ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h. */
24998 /* Override any gcc2 internal prototype to avoid an error. */
25002 /* We use char because int might match the return type of a gcc2
25003 builtin and then its argument prototype would still apply. */
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25015 (eval $ac_link) 2>conftest.er1
25017 grep -v '^ *+' conftest.er1 >conftest.err
25019 cat conftest.err >&5
25020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021 (exit $ac_status); } &&
25022 { ac_try='test -z "$ac_c_werror_flag"
25023 || test ! -s conftest.err'
25024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025 (eval $ac_try) 2>&5
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; } &&
25029 { ac_try='test -s conftest$ac_exeext'
25030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; }; then
25035 ac_cv_lib_m_sin=yes
25037 echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25042 rm -f conftest.err conftest.$ac_objext \
25043 conftest$ac_exeext conftest.$ac_ext
25044 LIBS=$ac_check_lib_save_LIBS
25046 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25047 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25048 if test $ac_cv_lib_m_sin = yes; then
25049 cat >>confdefs.h <<_ACEOF
25050 #define HAVE_LIBM 1
25058 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25059 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25060 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25061 echo $ECHO_N "(cached) $ECHO_C" >&6
25063 ac_func_search_save_LIBS=$LIBS
25064 ac_cv_search_lt_dlopen=no
25065 cat >conftest.$ac_ext <<_ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25072 /* Override any gcc2 internal prototype to avoid an error. */
25076 /* We use char because int might match the return type of a gcc2
25077 builtin and then its argument prototype would still apply. */
25087 rm -f conftest.$ac_objext conftest$ac_exeext
25088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25089 (eval $ac_link) 2>conftest.er1
25091 grep -v '^ *+' conftest.er1 >conftest.err
25093 cat conftest.err >&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } &&
25096 { ac_try='test -z "$ac_c_werror_flag"
25097 || test ! -s conftest.err'
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; } &&
25103 { ac_try='test -s conftest$ac_exeext'
25104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105 (eval $ac_try) 2>&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; }; then
25109 ac_cv_search_lt_dlopen="none required"
25111 echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25115 rm -f conftest.err conftest.$ac_objext \
25116 conftest$ac_exeext conftest.$ac_ext
25117 if test "$ac_cv_search_lt_dlopen" = no; then
25118 for ac_lib in ltdl; do
25119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25120 cat >conftest.$ac_ext <<_ACEOF
25123 cat confdefs.h >>conftest.$ac_ext
25124 cat >>conftest.$ac_ext <<_ACEOF
25125 /* end confdefs.h. */
25127 /* Override any gcc2 internal prototype to avoid an error. */
25131 /* We use char because int might match the return type of a gcc2
25132 builtin and then its argument prototype would still apply. */
25142 rm -f conftest.$ac_objext conftest$ac_exeext
25143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25144 (eval $ac_link) 2>conftest.er1
25146 grep -v '^ *+' conftest.er1 >conftest.err
25148 cat conftest.err >&5
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); } &&
25151 { ac_try='test -z "$ac_c_werror_flag"
25152 || test ! -s conftest.err'
25153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154 (eval $ac_try) 2>&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); }; } &&
25158 { ac_try='test -s conftest$ac_exeext'
25159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160 (eval $ac_try) 2>&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); }; }; then
25164 ac_cv_search_lt_dlopen="-l$ac_lib"
25167 echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25171 rm -f conftest.err conftest.$ac_objext \
25172 conftest$ac_exeext conftest.$ac_ext
25175 LIBS=$ac_func_search_save_LIBS
25177 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25178 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25179 if test "$ac_cv_search_lt_dlopen" != no; then
25180 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25182 cat >>confdefs.h <<\_ACEOF
25183 #define HAVE_LT_DLOPEN 1
25187 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25188 not be available" >&5
25189 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25190 not be available" >&2;}
25194 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25195 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25196 if test "${ac_cv_search_dlopen+set}" = set; then
25197 echo $ECHO_N "(cached) $ECHO_C" >&6
25199 ac_func_search_save_LIBS=$LIBS
25200 ac_cv_search_dlopen=no
25201 cat >conftest.$ac_ext <<_ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25208 /* Override any gcc2 internal prototype to avoid an error. */
25212 /* We use char because int might match the return type of a gcc2
25213 builtin and then its argument prototype would still apply. */
25223 rm -f conftest.$ac_objext conftest$ac_exeext
25224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25225 (eval $ac_link) 2>conftest.er1
25227 grep -v '^ *+' conftest.er1 >conftest.err
25229 cat conftest.err >&5
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); } &&
25232 { ac_try='test -z "$ac_c_werror_flag"
25233 || test ! -s conftest.err'
25234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25235 (eval $ac_try) 2>&5
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); }; } &&
25239 { ac_try='test -s conftest$ac_exeext'
25240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25241 (eval $ac_try) 2>&5
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); }; }; then
25245 ac_cv_search_dlopen="none required"
25247 echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25251 rm -f conftest.err conftest.$ac_objext \
25252 conftest$ac_exeext conftest.$ac_ext
25253 if test "$ac_cv_search_dlopen" = no; then
25254 for ac_lib in dl; do
25255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25256 cat >conftest.$ac_ext <<_ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h. */
25263 /* Override any gcc2 internal prototype to avoid an error. */
25267 /* We use char because int might match the return type of a gcc2
25268 builtin and then its argument prototype would still apply. */
25278 rm -f conftest.$ac_objext conftest$ac_exeext
25279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25280 (eval $ac_link) 2>conftest.er1
25282 grep -v '^ *+' conftest.er1 >conftest.err
25284 cat conftest.err >&5
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } &&
25287 { ac_try='test -z "$ac_c_werror_flag"
25288 || test ! -s conftest.err'
25289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290 (eval $ac_try) 2>&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); }; } &&
25294 { ac_try='test -s conftest$ac_exeext'
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; }; then
25300 ac_cv_search_dlopen="-l$ac_lib"
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25307 rm -f conftest.err conftest.$ac_objext \
25308 conftest$ac_exeext conftest.$ac_ext
25311 LIBS=$ac_func_search_save_LIBS
25313 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25314 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25315 if test "$ac_cv_search_dlopen" != no; then
25316 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25318 cat >>confdefs.h <<\_ACEOF
25319 #define HAVE_DLOPEN 1
25323 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25324 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25328 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25329 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25330 if test "${ac_cv_search_mallinfo+set}" = set; then
25331 echo $ECHO_N "(cached) $ECHO_C" >&6
25333 ac_func_search_save_LIBS=$LIBS
25334 ac_cv_search_mallinfo=no
25335 cat >conftest.$ac_ext <<_ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h. */
25342 /* Override any gcc2 internal prototype to avoid an error. */
25346 /* We use char because int might match the return type of a gcc2
25347 builtin and then its argument prototype would still apply. */
25357 rm -f conftest.$ac_objext conftest$ac_exeext
25358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25359 (eval $ac_link) 2>conftest.er1
25361 grep -v '^ *+' conftest.er1 >conftest.err
25363 cat conftest.err >&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); } &&
25366 { ac_try='test -z "$ac_c_werror_flag"
25367 || test ! -s conftest.err'
25368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369 (eval $ac_try) 2>&5
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); }; } &&
25373 { ac_try='test -s conftest$ac_exeext'
25374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375 (eval $ac_try) 2>&5
25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); }; }; then
25379 ac_cv_search_mallinfo="none required"
25381 echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25385 rm -f conftest.err conftest.$ac_objext \
25386 conftest$ac_exeext conftest.$ac_ext
25387 if test "$ac_cv_search_mallinfo" = no; then
25388 for ac_lib in malloc; do
25389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25390 cat >conftest.$ac_ext <<_ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h. */
25397 /* Override any gcc2 internal prototype to avoid an error. */
25401 /* We use char because int might match the return type of a gcc2
25402 builtin and then its argument prototype would still apply. */
25412 rm -f conftest.$ac_objext conftest$ac_exeext
25413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25414 (eval $ac_link) 2>conftest.er1
25416 grep -v '^ *+' conftest.er1 >conftest.err
25418 cat conftest.err >&5
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); } &&
25421 { ac_try='test -z "$ac_c_werror_flag"
25422 || test ! -s conftest.err'
25423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424 (eval $ac_try) 2>&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); }; } &&
25428 { ac_try='test -s conftest$ac_exeext'
25429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430 (eval $ac_try) 2>&5
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); }; }; then
25434 ac_cv_search_mallinfo="-l$ac_lib"
25437 echo "$as_me: failed program was:" >&5
25438 sed 's/^/| /' conftest.$ac_ext >&5
25441 rm -f conftest.err conftest.$ac_objext \
25442 conftest$ac_exeext conftest.$ac_ext
25445 LIBS=$ac_func_search_save_LIBS
25447 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25448 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25449 if test "$ac_cv_search_mallinfo" != no; then
25450 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25452 cat >>confdefs.h <<\_ACEOF
25453 #define HAVE_MALLINFO 1
25459 if test "$ENABLE_THREADS" -eq 1 ; then
25461 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25462 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25463 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25464 echo $ECHO_N "(cached) $ECHO_C" >&6
25466 ac_check_lib_save_LIBS=$LIBS
25467 LIBS="-lpthread $LIBS"
25468 cat >conftest.$ac_ext <<_ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25475 /* Override any gcc2 internal prototype to avoid an error. */
25479 /* We use char because int might match the return type of a gcc2
25480 builtin and then its argument prototype would still apply. */
25481 char pthread_mutex_init ();
25485 pthread_mutex_init ();
25490 rm -f conftest.$ac_objext conftest$ac_exeext
25491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25492 (eval $ac_link) 2>conftest.er1
25494 grep -v '^ *+' conftest.er1 >conftest.err
25496 cat conftest.err >&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); } &&
25499 { ac_try='test -z "$ac_c_werror_flag"
25500 || test ! -s conftest.err'
25501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25502 (eval $ac_try) 2>&5
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); }; } &&
25506 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25512 ac_cv_lib_pthread_pthread_mutex_init=yes
25514 echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25517 ac_cv_lib_pthread_pthread_mutex_init=no
25519 rm -f conftest.err conftest.$ac_objext \
25520 conftest$ac_exeext conftest.$ac_ext
25521 LIBS=$ac_check_lib_save_LIBS
25523 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25524 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25525 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25526 cat >>confdefs.h <<_ACEOF
25527 #define HAVE_LIBPTHREAD 1
25530 LIBS="-lpthread $LIBS"
25534 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25535 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25536 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25537 echo $ECHO_N "(cached) $ECHO_C" >&6
25539 ac_func_search_save_LIBS=$LIBS
25540 ac_cv_search_pthread_mutex_lock=no
25541 cat >conftest.$ac_ext <<_ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h. */
25548 /* Override any gcc2 internal prototype to avoid an error. */
25552 /* We use char because int might match the return type of a gcc2
25553 builtin and then its argument prototype would still apply. */
25554 char pthread_mutex_lock ();
25558 pthread_mutex_lock ();
25563 rm -f conftest.$ac_objext conftest$ac_exeext
25564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25565 (eval $ac_link) 2>conftest.er1
25567 grep -v '^ *+' conftest.er1 >conftest.err
25569 cat conftest.err >&5
25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); } &&
25572 { ac_try='test -z "$ac_c_werror_flag"
25573 || test ! -s conftest.err'
25574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575 (eval $ac_try) 2>&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); }; } &&
25579 { ac_try='test -s conftest$ac_exeext'
25580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581 (eval $ac_try) 2>&5
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); }; }; then
25585 ac_cv_search_pthread_mutex_lock="none required"
25587 echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25591 rm -f conftest.err conftest.$ac_objext \
25592 conftest$ac_exeext conftest.$ac_ext
25593 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25594 for ac_lib in pthread; do
25595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25596 cat >conftest.$ac_ext <<_ACEOF
25599 cat confdefs.h >>conftest.$ac_ext
25600 cat >>conftest.$ac_ext <<_ACEOF
25601 /* end confdefs.h. */
25603 /* Override any gcc2 internal prototype to avoid an error. */
25607 /* We use char because int might match the return type of a gcc2
25608 builtin and then its argument prototype would still apply. */
25609 char pthread_mutex_lock ();
25613 pthread_mutex_lock ();
25618 rm -f conftest.$ac_objext conftest$ac_exeext
25619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25620 (eval $ac_link) 2>conftest.er1
25622 grep -v '^ *+' conftest.er1 >conftest.err
25624 cat conftest.err >&5
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } &&
25627 { ac_try='test -z "$ac_c_werror_flag"
25628 || test ! -s conftest.err'
25629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630 (eval $ac_try) 2>&5
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); }; } &&
25634 { ac_try='test -s conftest$ac_exeext'
25635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636 (eval $ac_try) 2>&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); }; }; then
25640 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25643 echo "$as_me: failed program was:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25647 rm -f conftest.err conftest.$ac_objext \
25648 conftest$ac_exeext conftest.$ac_ext
25651 LIBS=$ac_func_search_save_LIBS
25653 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25654 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25655 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25656 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25658 cat >>confdefs.h <<\_ACEOF
25659 #define HAVE_PTHREAD_MUTEX_LOCK 1
25672 ac_header_dirent=no
25673 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25674 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25675 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25676 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25678 echo $ECHO_N "(cached) $ECHO_C" >&6
25680 cat >conftest.$ac_ext <<_ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h. */
25686 #include <sys/types.h>
25698 rm -f conftest.$ac_objext
25699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25700 (eval $ac_compile) 2>conftest.er1
25702 grep -v '^ *+' conftest.er1 >conftest.err
25704 cat conftest.err >&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); } &&
25707 { ac_try='test -z "$ac_c_werror_flag"
25708 || test ! -s conftest.err'
25709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710 (eval $ac_try) 2>&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); }; } &&
25714 { ac_try='test -s conftest.$ac_objext'
25715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716 (eval $ac_try) 2>&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); }; }; then
25720 eval "$as_ac_Header=yes"
25722 echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25725 eval "$as_ac_Header=no"
25727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25732 cat >>confdefs.h <<_ACEOF
25733 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25736 ac_header_dirent=$ac_hdr; break
25740 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25741 if test $ac_header_dirent = dirent.h; then
25742 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25743 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25744 if test "${ac_cv_search_opendir+set}" = set; then
25745 echo $ECHO_N "(cached) $ECHO_C" >&6
25747 ac_func_search_save_LIBS=$LIBS
25748 ac_cv_search_opendir=no
25749 cat >conftest.$ac_ext <<_ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h. */
25756 /* Override any gcc2 internal prototype to avoid an error. */
25760 /* We use char because int might match the return type of a gcc2
25761 builtin and then its argument prototype would still apply. */
25771 rm -f conftest.$ac_objext conftest$ac_exeext
25772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25773 (eval $ac_link) 2>conftest.er1
25775 grep -v '^ *+' conftest.er1 >conftest.err
25777 cat conftest.err >&5
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); } &&
25780 { ac_try='test -z "$ac_c_werror_flag"
25781 || test ! -s conftest.err'
25782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25783 (eval $ac_try) 2>&5
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); }; } &&
25787 { ac_try='test -s conftest$ac_exeext'
25788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789 (eval $ac_try) 2>&5
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); }; }; then
25793 ac_cv_search_opendir="none required"
25795 echo "$as_me: failed program was:" >&5
25796 sed 's/^/| /' conftest.$ac_ext >&5
25799 rm -f conftest.err conftest.$ac_objext \
25800 conftest$ac_exeext conftest.$ac_ext
25801 if test "$ac_cv_search_opendir" = no; then
25802 for ac_lib in dir; do
25803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25804 cat >conftest.$ac_ext <<_ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h. */
25811 /* Override any gcc2 internal prototype to avoid an error. */
25815 /* We use char because int might match the return type of a gcc2
25816 builtin and then its argument prototype would still apply. */
25826 rm -f conftest.$ac_objext conftest$ac_exeext
25827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25828 (eval $ac_link) 2>conftest.er1
25830 grep -v '^ *+' conftest.er1 >conftest.err
25832 cat conftest.err >&5
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } &&
25835 { ac_try='test -z "$ac_c_werror_flag"
25836 || test ! -s conftest.err'
25837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838 (eval $ac_try) 2>&5
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); }; } &&
25842 { ac_try='test -s conftest$ac_exeext'
25843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844 (eval $ac_try) 2>&5
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); }; }; then
25848 ac_cv_search_opendir="-l$ac_lib"
25851 echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25855 rm -f conftest.err conftest.$ac_objext \
25856 conftest$ac_exeext conftest.$ac_ext
25859 LIBS=$ac_func_search_save_LIBS
25861 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25862 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25863 if test "$ac_cv_search_opendir" != no; then
25864 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25869 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25871 if test "${ac_cv_search_opendir+set}" = set; then
25872 echo $ECHO_N "(cached) $ECHO_C" >&6
25874 ac_func_search_save_LIBS=$LIBS
25875 ac_cv_search_opendir=no
25876 cat >conftest.$ac_ext <<_ACEOF
25879 cat confdefs.h >>conftest.$ac_ext
25880 cat >>conftest.$ac_ext <<_ACEOF
25881 /* end confdefs.h. */
25883 /* Override any gcc2 internal prototype to avoid an error. */
25887 /* We use char because int might match the return type of a gcc2
25888 builtin and then its argument prototype would still apply. */
25898 rm -f conftest.$ac_objext conftest$ac_exeext
25899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25900 (eval $ac_link) 2>conftest.er1
25902 grep -v '^ *+' conftest.er1 >conftest.err
25904 cat conftest.err >&5
25905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906 (exit $ac_status); } &&
25907 { ac_try='test -z "$ac_c_werror_flag"
25908 || test ! -s conftest.err'
25909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25910 (eval $ac_try) 2>&5
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); }; } &&
25914 { ac_try='test -s conftest$ac_exeext'
25915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25916 (eval $ac_try) 2>&5
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); }; }; then
25920 ac_cv_search_opendir="none required"
25922 echo "$as_me: failed program was:" >&5
25923 sed 's/^/| /' conftest.$ac_ext >&5
25926 rm -f conftest.err conftest.$ac_objext \
25927 conftest$ac_exeext conftest.$ac_ext
25928 if test "$ac_cv_search_opendir" = no; then
25929 for ac_lib in x; do
25930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25931 cat >conftest.$ac_ext <<_ACEOF
25934 cat confdefs.h >>conftest.$ac_ext
25935 cat >>conftest.$ac_ext <<_ACEOF
25936 /* end confdefs.h. */
25938 /* Override any gcc2 internal prototype to avoid an error. */
25942 /* We use char because int might match the return type of a gcc2
25943 builtin and then its argument prototype would still apply. */
25953 rm -f conftest.$ac_objext conftest$ac_exeext
25954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25955 (eval $ac_link) 2>conftest.er1
25957 grep -v '^ *+' conftest.er1 >conftest.err
25959 cat conftest.err >&5
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); } &&
25962 { ac_try='test -z "$ac_c_werror_flag"
25963 || test ! -s conftest.err'
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; } &&
25969 { ac_try='test -s conftest$ac_exeext'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; }; then
25975 ac_cv_search_opendir="-l$ac_lib"
25978 echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25982 rm -f conftest.err conftest.$ac_objext \
25983 conftest$ac_exeext conftest.$ac_ext
25986 LIBS=$ac_func_search_save_LIBS
25988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25990 if test "$ac_cv_search_opendir" != no; then
25991 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25997 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25998 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25999 if test "${ac_cv_header_mmap_anon+set}" = set; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
26003 ac_cpp='$CPP $CPPFLAGS'
26004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26008 cat >conftest.$ac_ext <<_ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 #include <sys/mman.h>
26015 #include <unistd.h>
26020 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26025 rm -f conftest.$ac_objext
26026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26027 (eval $ac_compile) 2>conftest.er1
26029 grep -v '^ *+' conftest.er1 >conftest.err
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } &&
26034 { ac_try='test -z "$ac_c_werror_flag"
26035 || test ! -s conftest.err'
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; } &&
26041 { ac_try='test -s conftest.$ac_objext'
26042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043 (eval $ac_try) 2>&5
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 ac_cv_header_mmap_anon=yes
26049 echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26052 ac_cv_header_mmap_anon=no
26054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26056 ac_cpp='$CPP $CPPFLAGS'
26057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26063 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26064 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26065 if test "$ac_cv_header_mmap_anon" = yes; then
26067 cat >>confdefs.h <<\_ACEOF
26068 #define HAVE_MMAP_ANONYMOUS 1
26073 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26074 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26075 if test "${ac_cv_header_stat_broken+set}" = set; then
26076 echo $ECHO_N "(cached) $ECHO_C" >&6
26078 cat >conftest.$ac_ext <<_ACEOF
26081 cat confdefs.h >>conftest.$ac_ext
26082 cat >>conftest.$ac_ext <<_ACEOF
26083 /* end confdefs.h. */
26084 #include <sys/types.h>
26085 #include <sys/stat.h>
26087 #if defined(S_ISBLK) && defined(S_IFDIR)
26088 # if S_ISBLK (S_IFDIR)
26093 #if defined(S_ISBLK) && defined(S_IFCHR)
26094 # if S_ISBLK (S_IFCHR)
26099 #if defined(S_ISLNK) && defined(S_IFREG)
26100 # if S_ISLNK (S_IFREG)
26105 #if defined(S_ISSOCK) && defined(S_IFREG)
26106 # if S_ISSOCK (S_IFREG)
26112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26113 $EGREP "You lose" >/dev/null 2>&1; then
26114 ac_cv_header_stat_broken=yes
26116 ac_cv_header_stat_broken=no
26121 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26122 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26123 if test $ac_cv_header_stat_broken = yes; then
26125 cat >>confdefs.h <<\_ACEOF
26126 #define STAT_MACROS_BROKEN 1
26131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26133 if test "${ac_cv_header_stdc+set}" = set; then
26134 echo $ECHO_N "(cached) $ECHO_C" >&6
26136 cat >conftest.$ac_ext <<_ACEOF
26139 cat confdefs.h >>conftest.$ac_ext
26140 cat >>conftest.$ac_ext <<_ACEOF
26141 /* end confdefs.h. */
26142 #include <stdlib.h>
26143 #include <stdarg.h>
26144 #include <string.h>
26155 rm -f conftest.$ac_objext
26156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26157 (eval $ac_compile) 2>conftest.er1
26159 grep -v '^ *+' conftest.er1 >conftest.err
26161 cat conftest.err >&5
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); } &&
26164 { ac_try='test -z "$ac_c_werror_flag"
26165 || test ! -s conftest.err'
26166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167 (eval $ac_try) 2>&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); }; } &&
26171 { ac_try='test -s conftest.$ac_objext'
26172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173 (eval $ac_try) 2>&5
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); }; }; then
26177 ac_cv_header_stdc=yes
26179 echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26182 ac_cv_header_stdc=no
26184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26186 if test $ac_cv_header_stdc = yes; then
26187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26188 cat >conftest.$ac_ext <<_ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h. */
26194 #include <string.h>
26197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26198 $EGREP "memchr" >/dev/null 2>&1; then
26201 ac_cv_header_stdc=no
26207 if test $ac_cv_header_stdc = yes; then
26208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26209 cat >conftest.$ac_ext <<_ACEOF
26212 cat confdefs.h >>conftest.$ac_ext
26213 cat >>conftest.$ac_ext <<_ACEOF
26214 /* end confdefs.h. */
26215 #include <stdlib.h>
26218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26219 $EGREP "free" >/dev/null 2>&1; then
26222 ac_cv_header_stdc=no
26228 if test $ac_cv_header_stdc = yes; then
26229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26230 if test "$cross_compiling" = yes; then
26233 cat >conftest.$ac_ext <<_ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h. */
26240 #if ((' ' & 0x0FF) == 0x020)
26241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26244 # define ISLOWER(c) \
26245 (('a' <= (c) && (c) <= 'i') \
26246 || ('j' <= (c) && (c) <= 'r') \
26247 || ('s' <= (c) && (c) <= 'z'))
26248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26256 for (i = 0; i < 256; i++)
26257 if (XOR (islower (i), ISLOWER (i))
26258 || toupper (i) != TOUPPER (i))
26263 rm -f conftest$ac_exeext
26264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26265 (eval $ac_link) 2>&5
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26270 (eval $ac_try) 2>&5
26272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273 (exit $ac_status); }; }; then
26276 echo "$as_me: program exited with status $ac_status" >&5
26277 echo "$as_me: failed program was:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26280 ( exit $ac_status )
26281 ac_cv_header_stdc=no
26283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26289 if test $ac_cv_header_stdc = yes; then
26291 cat >>confdefs.h <<\_ACEOF
26292 #define STDC_HEADERS 1
26297 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26298 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26299 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26302 cat >conftest.$ac_ext <<_ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h. */
26308 #include <sys/types.h>
26309 #include <sys/wait.h>
26310 #ifndef WEXITSTATUS
26311 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26314 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26322 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26327 rm -f conftest.$ac_objext
26328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26329 (eval $ac_compile) 2>conftest.er1
26331 grep -v '^ *+' conftest.er1 >conftest.err
26333 cat conftest.err >&5
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); } &&
26336 { ac_try='test -z "$ac_c_werror_flag"
26337 || test ! -s conftest.err'
26338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26339 (eval $ac_try) 2>&5
26341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); }; } &&
26343 { ac_try='test -s conftest.$ac_objext'
26344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345 (eval $ac_try) 2>&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); }; }; then
26349 ac_cv_header_sys_wait_h=yes
26351 echo "$as_me: failed program was:" >&5
26352 sed 's/^/| /' conftest.$ac_ext >&5
26354 ac_cv_header_sys_wait_h=no
26356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26358 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26359 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26360 if test $ac_cv_header_sys_wait_h = yes; then
26362 cat >>confdefs.h <<\_ACEOF
26363 #define HAVE_SYS_WAIT_H 1
26368 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26369 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26370 if test "${ac_cv_header_time+set}" = set; then
26371 echo $ECHO_N "(cached) $ECHO_C" >&6
26373 cat >conftest.$ac_ext <<_ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h. */
26379 #include <sys/types.h>
26380 #include <sys/time.h>
26386 if ((struct tm *) 0)
26392 rm -f conftest.$ac_objext
26393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26394 (eval $ac_compile) 2>conftest.er1
26396 grep -v '^ *+' conftest.er1 >conftest.err
26398 cat conftest.err >&5
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } &&
26401 { ac_try='test -z "$ac_c_werror_flag"
26402 || test ! -s conftest.err'
26403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404 (eval $ac_try) 2>&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); }; } &&
26408 { ac_try='test -s conftest.$ac_objext'
26409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410 (eval $ac_try) 2>&5
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); }; }; then
26414 ac_cv_header_time=yes
26416 echo "$as_me: failed program was:" >&5
26417 sed 's/^/| /' conftest.$ac_ext >&5
26419 ac_cv_header_time=no
26421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26423 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26424 echo "${ECHO_T}$ac_cv_header_time" >&6
26425 if test $ac_cv_header_time = yes; then
26427 cat >>confdefs.h <<\_ACEOF
26428 #define TIME_WITH_SYS_TIME 1
26440 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26444 echo "$as_me:$LINENO: checking for $ac_header" >&5
26445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26447 echo $ECHO_N "(cached) $ECHO_C" >&6
26449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26452 # Is the header compilable?
26453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26455 cat >conftest.$ac_ext <<_ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h. */
26461 $ac_includes_default
26462 #include <$ac_header>
26464 rm -f conftest.$ac_objext
26465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26466 (eval $ac_compile) 2>conftest.er1
26468 grep -v '^ *+' conftest.er1 >conftest.err
26470 cat conftest.err >&5
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); } &&
26473 { ac_try='test -z "$ac_c_werror_flag"
26474 || test ! -s conftest.err'
26475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476 (eval $ac_try) 2>&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; } &&
26480 { ac_try='test -s conftest.$ac_objext'
26481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482 (eval $ac_try) 2>&5
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); }; }; then
26486 ac_header_compiler=yes
26488 echo "$as_me: failed program was:" >&5
26489 sed 's/^/| /' conftest.$ac_ext >&5
26491 ac_header_compiler=no
26493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26495 echo "${ECHO_T}$ac_header_compiler" >&6
26497 # Is the header present?
26498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26500 cat >conftest.$ac_ext <<_ACEOF
26503 cat confdefs.h >>conftest.$ac_ext
26504 cat >>conftest.$ac_ext <<_ACEOF
26505 /* end confdefs.h. */
26506 #include <$ac_header>
26508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26511 grep -v '^ *+' conftest.er1 >conftest.err
26513 cat conftest.err >&5
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); } >/dev/null; then
26516 if test -s conftest.err; then
26517 ac_cpp_err=$ac_c_preproc_warn_flag
26518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26525 if test -z "$ac_cpp_err"; then
26526 ac_header_preproc=yes
26528 echo "$as_me: failed program was:" >&5
26529 sed 's/^/| /' conftest.$ac_ext >&5
26531 ac_header_preproc=no
26533 rm -f conftest.err conftest.$ac_ext
26534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26535 echo "${ECHO_T}$ac_header_preproc" >&6
26537 # So? What about this header?
26538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26544 ac_header_preproc=yes
26547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26561 ## ----------------------------------- ##
26562 ## Report this to llvmbugs@cs.uiuc.edu ##
26563 ## ----------------------------------- ##
26566 sed "s/^/$as_me: WARNING: /" >&2
26569 echo "$as_me:$LINENO: checking for $ac_header" >&5
26570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26572 echo $ECHO_N "(cached) $ECHO_C" >&6
26574 eval "$as_ac_Header=\$ac_header_preproc"
26576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26581 cat >>confdefs.h <<_ACEOF
26582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26595 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26599 echo "$as_me:$LINENO: checking for $ac_header" >&5
26600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26602 echo $ECHO_N "(cached) $ECHO_C" >&6
26604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26607 # Is the header compilable?
26608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26610 cat >conftest.$ac_ext <<_ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h. */
26616 $ac_includes_default
26617 #include <$ac_header>
26619 rm -f conftest.$ac_objext
26620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26621 (eval $ac_compile) 2>conftest.er1
26623 grep -v '^ *+' conftest.er1 >conftest.err
26625 cat conftest.err >&5
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); } &&
26628 { ac_try='test -z "$ac_c_werror_flag"
26629 || test ! -s conftest.err'
26630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26631 (eval $ac_try) 2>&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); }; } &&
26635 { ac_try='test -s conftest.$ac_objext'
26636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637 (eval $ac_try) 2>&5
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); }; }; then
26641 ac_header_compiler=yes
26643 echo "$as_me: failed program was:" >&5
26644 sed 's/^/| /' conftest.$ac_ext >&5
26646 ac_header_compiler=no
26648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26650 echo "${ECHO_T}$ac_header_compiler" >&6
26652 # Is the header present?
26653 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26655 cat >conftest.$ac_ext <<_ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h. */
26661 #include <$ac_header>
26663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26666 grep -v '^ *+' conftest.er1 >conftest.err
26668 cat conftest.err >&5
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); } >/dev/null; then
26671 if test -s conftest.err; then
26672 ac_cpp_err=$ac_c_preproc_warn_flag
26673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26680 if test -z "$ac_cpp_err"; then
26681 ac_header_preproc=yes
26683 echo "$as_me: failed program was:" >&5
26684 sed 's/^/| /' conftest.$ac_ext >&5
26686 ac_header_preproc=no
26688 rm -f conftest.err conftest.$ac_ext
26689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26690 echo "${ECHO_T}$ac_header_preproc" >&6
26692 # So? What about this header?
26693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26699 ac_header_preproc=yes
26702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26716 ## ----------------------------------- ##
26717 ## Report this to llvmbugs@cs.uiuc.edu ##
26718 ## ----------------------------------- ##
26721 sed "s/^/$as_me: WARNING: /" >&2
26724 echo "$as_me:$LINENO: checking for $ac_header" >&5
26725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26727 echo $ECHO_N "(cached) $ECHO_C" >&6
26729 eval "$as_ac_Header=\$ac_header_preproc"
26731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26736 cat >>confdefs.h <<_ACEOF
26737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26749 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26753 echo "$as_me:$LINENO: checking for $ac_header" >&5
26754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26756 echo $ECHO_N "(cached) $ECHO_C" >&6
26758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26761 # Is the header compilable?
26762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26764 cat >conftest.$ac_ext <<_ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26770 $ac_includes_default
26771 #include <$ac_header>
26773 rm -f conftest.$ac_objext
26774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26775 (eval $ac_compile) 2>conftest.er1
26777 grep -v '^ *+' conftest.er1 >conftest.err
26779 cat conftest.err >&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); } &&
26782 { ac_try='test -z "$ac_c_werror_flag"
26783 || test ! -s conftest.err'
26784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785 (eval $ac_try) 2>&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; } &&
26789 { ac_try='test -s conftest.$ac_objext'
26790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791 (eval $ac_try) 2>&5
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; }; then
26795 ac_header_compiler=yes
26797 echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.$ac_ext >&5
26800 ac_header_compiler=no
26802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26804 echo "${ECHO_T}$ac_header_compiler" >&6
26806 # Is the header present?
26807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26809 cat >conftest.$ac_ext <<_ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 #include <$ac_header>
26817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26820 grep -v '^ *+' conftest.er1 >conftest.err
26822 cat conftest.err >&5
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } >/dev/null; then
26825 if test -s conftest.err; then
26826 ac_cpp_err=$ac_c_preproc_warn_flag
26827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26834 if test -z "$ac_cpp_err"; then
26835 ac_header_preproc=yes
26837 echo "$as_me: failed program was:" >&5
26838 sed 's/^/| /' conftest.$ac_ext >&5
26840 ac_header_preproc=no
26842 rm -f conftest.err conftest.$ac_ext
26843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26844 echo "${ECHO_T}$ac_header_preproc" >&6
26846 # So? What about this header?
26847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26853 ac_header_preproc=yes
26856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26870 ## ----------------------------------- ##
26871 ## Report this to llvmbugs@cs.uiuc.edu ##
26872 ## ----------------------------------- ##
26875 sed "s/^/$as_me: WARNING: /" >&2
26878 echo "$as_me:$LINENO: checking for $ac_header" >&5
26879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881 echo $ECHO_N "(cached) $ECHO_C" >&6
26883 eval "$as_ac_Header=\$ac_header_preproc"
26885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26890 cat >>confdefs.h <<_ACEOF
26891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26899 for ac_header in malloc/malloc.h
26901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26903 echo "$as_me:$LINENO: checking for $ac_header" >&5
26904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26906 echo $ECHO_N "(cached) $ECHO_C" >&6
26908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26911 # Is the header compilable?
26912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26914 cat >conftest.$ac_ext <<_ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h. */
26920 $ac_includes_default
26921 #include <$ac_header>
26923 rm -f conftest.$ac_objext
26924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26925 (eval $ac_compile) 2>conftest.er1
26927 grep -v '^ *+' conftest.er1 >conftest.err
26929 cat conftest.err >&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } &&
26932 { ac_try='test -z "$ac_c_werror_flag"
26933 || test ! -s conftest.err'
26934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935 (eval $ac_try) 2>&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; } &&
26939 { ac_try='test -s conftest.$ac_objext'
26940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941 (eval $ac_try) 2>&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); }; }; then
26945 ac_header_compiler=yes
26947 echo "$as_me: failed program was:" >&5
26948 sed 's/^/| /' conftest.$ac_ext >&5
26950 ac_header_compiler=no
26952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26954 echo "${ECHO_T}$ac_header_compiler" >&6
26956 # Is the header present?
26957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26959 cat >conftest.$ac_ext <<_ACEOF
26962 cat confdefs.h >>conftest.$ac_ext
26963 cat >>conftest.$ac_ext <<_ACEOF
26964 /* end confdefs.h. */
26965 #include <$ac_header>
26967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26970 grep -v '^ *+' conftest.er1 >conftest.err
26972 cat conftest.err >&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } >/dev/null; then
26975 if test -s conftest.err; then
26976 ac_cpp_err=$ac_c_preproc_warn_flag
26977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26984 if test -z "$ac_cpp_err"; then
26985 ac_header_preproc=yes
26987 echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26990 ac_header_preproc=no
26992 rm -f conftest.err conftest.$ac_ext
26993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26994 echo "${ECHO_T}$ac_header_preproc" >&6
26996 # So? What about this header?
26997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27003 ac_header_preproc=yes
27006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27020 ## ----------------------------------- ##
27021 ## Report this to llvmbugs@cs.uiuc.edu ##
27022 ## ----------------------------------- ##
27025 sed "s/^/$as_me: WARNING: /" >&2
27028 echo "$as_me:$LINENO: checking for $ac_header" >&5
27029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27031 echo $ECHO_N "(cached) $ECHO_C" >&6
27033 eval "$as_ac_Header=\$ac_header_preproc"
27035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27040 cat >>confdefs.h <<_ACEOF
27041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27048 if test "$ENABLE_THREADS" -eq 1 ; then
27050 for ac_header in pthread.h
27052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27054 echo "$as_me:$LINENO: checking for $ac_header" >&5
27055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27057 echo $ECHO_N "(cached) $ECHO_C" >&6
27059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27062 # Is the header compilable?
27063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27065 cat >conftest.$ac_ext <<_ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h. */
27071 $ac_includes_default
27072 #include <$ac_header>
27074 rm -f conftest.$ac_objext
27075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27076 (eval $ac_compile) 2>conftest.er1
27078 grep -v '^ *+' conftest.er1 >conftest.err
27080 cat conftest.err >&5
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); } &&
27083 { ac_try='test -z "$ac_c_werror_flag"
27084 || test ! -s conftest.err'
27085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086 (eval $ac_try) 2>&5
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); }; } &&
27090 { ac_try='test -s conftest.$ac_objext'
27091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092 (eval $ac_try) 2>&5
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); }; }; then
27096 ac_header_compiler=yes
27098 echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27101 ac_header_compiler=no
27103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27105 echo "${ECHO_T}$ac_header_compiler" >&6
27107 # Is the header present?
27108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27110 cat >conftest.$ac_ext <<_ACEOF
27113 cat confdefs.h >>conftest.$ac_ext
27114 cat >>conftest.$ac_ext <<_ACEOF
27115 /* end confdefs.h. */
27116 #include <$ac_header>
27118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27121 grep -v '^ *+' conftest.er1 >conftest.err
27123 cat conftest.err >&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } >/dev/null; then
27126 if test -s conftest.err; then
27127 ac_cpp_err=$ac_c_preproc_warn_flag
27128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27135 if test -z "$ac_cpp_err"; then
27136 ac_header_preproc=yes
27138 echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27141 ac_header_preproc=no
27143 rm -f conftest.err conftest.$ac_ext
27144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27145 echo "${ECHO_T}$ac_header_preproc" >&6
27147 # So? What about this header?
27148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27154 ac_header_preproc=yes
27157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27171 ## ----------------------------------- ##
27172 ## Report this to llvmbugs@cs.uiuc.edu ##
27173 ## ----------------------------------- ##
27176 sed "s/^/$as_me: WARNING: /" >&2
27179 echo "$as_me:$LINENO: checking for $ac_header" >&5
27180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27184 eval "$as_ac_Header=\$ac_header_preproc"
27186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27202 echo "$as_me:$LINENO: checking for pid_t" >&5
27203 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27204 if test "${ac_cv_type_pid_t+set}" = set; then
27205 echo $ECHO_N "(cached) $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 $ac_includes_default
27219 if (sizeof (pid_t))
27225 rm -f conftest.$ac_objext
27226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27227 (eval $ac_compile) 2>conftest.er1
27229 grep -v '^ *+' conftest.er1 >conftest.err
27231 cat conftest.err >&5
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); } &&
27234 { ac_try='test -z "$ac_c_werror_flag"
27235 || test ! -s conftest.err'
27236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237 (eval $ac_try) 2>&5
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); }; } &&
27241 { ac_try='test -s conftest.$ac_objext'
27242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27243 (eval $ac_try) 2>&5
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); }; }; then
27247 ac_cv_type_pid_t=yes
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 ac_cv_type_pid_t=no
27254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27256 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27257 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27258 if test $ac_cv_type_pid_t = yes; then
27262 cat >>confdefs.h <<_ACEOF
27268 echo "$as_me:$LINENO: checking for size_t" >&5
27269 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27270 if test "${ac_cv_type_size_t+set}" = set; then
27271 echo $ECHO_N "(cached) $ECHO_C" >&6
27273 cat >conftest.$ac_ext <<_ACEOF
27276 cat confdefs.h >>conftest.$ac_ext
27277 cat >>conftest.$ac_ext <<_ACEOF
27278 /* end confdefs.h. */
27279 $ac_includes_default
27285 if (sizeof (size_t))
27291 rm -f conftest.$ac_objext
27292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27293 (eval $ac_compile) 2>conftest.er1
27295 grep -v '^ *+' conftest.er1 >conftest.err
27297 cat conftest.err >&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } &&
27300 { ac_try='test -z "$ac_c_werror_flag"
27301 || test ! -s conftest.err'
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; } &&
27307 { ac_try='test -s conftest.$ac_objext'
27308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; }; then
27313 ac_cv_type_size_t=yes
27315 echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27318 ac_cv_type_size_t=no
27320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27322 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27323 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27324 if test $ac_cv_type_size_t = yes; then
27328 cat >>confdefs.h <<_ACEOF
27329 #define size_t unsigned
27334 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27335 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27336 if test "${ac_cv_type_signal+set}" = set; then
27337 echo $ECHO_N "(cached) $ECHO_C" >&6
27339 cat >conftest.$ac_ext <<_ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h. */
27345 #include <sys/types.h>
27346 #include <signal.h>
27351 extern "C" void (*signal (int, void (*)(int)))(int);
27353 void (*signal ()) ();
27364 rm -f conftest.$ac_objext
27365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27366 (eval $ac_compile) 2>conftest.er1
27368 grep -v '^ *+' conftest.er1 >conftest.err
27370 cat conftest.err >&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); } &&
27373 { ac_try='test -z "$ac_c_werror_flag"
27374 || test ! -s conftest.err'
27375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376 (eval $ac_try) 2>&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; } &&
27380 { ac_try='test -s conftest.$ac_objext'
27381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27382 (eval $ac_try) 2>&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); }; }; then
27386 ac_cv_type_signal=void
27388 echo "$as_me: failed program was:" >&5
27389 sed 's/^/| /' conftest.$ac_ext >&5
27391 ac_cv_type_signal=int
27393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27395 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27396 echo "${ECHO_T}$ac_cv_type_signal" >&6
27398 cat >>confdefs.h <<_ACEOF
27399 #define RETSIGTYPE $ac_cv_type_signal
27403 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27404 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27405 if test "${ac_cv_struct_tm+set}" = set; then
27406 echo $ECHO_N "(cached) $ECHO_C" >&6
27408 cat >conftest.$ac_ext <<_ACEOF
27411 cat confdefs.h >>conftest.$ac_ext
27412 cat >>conftest.$ac_ext <<_ACEOF
27413 /* end confdefs.h. */
27414 #include <sys/types.h>
27420 struct tm *tp; tp->tm_sec;
27425 rm -f conftest.$ac_objext
27426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27427 (eval $ac_compile) 2>conftest.er1
27429 grep -v '^ *+' conftest.er1 >conftest.err
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
27434 { ac_try='test -z "$ac_c_werror_flag"
27435 || test ! -s conftest.err'
27436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27437 (eval $ac_try) 2>&5
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); }; } &&
27441 { ac_try='test -s conftest.$ac_objext'
27442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27443 (eval $ac_try) 2>&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); }; }; then
27447 ac_cv_struct_tm=time.h
27449 echo "$as_me: failed program was:" >&5
27450 sed 's/^/| /' conftest.$ac_ext >&5
27452 ac_cv_struct_tm=sys/time.h
27454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27456 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27457 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27458 if test $ac_cv_struct_tm = sys/time.h; then
27460 cat >>confdefs.h <<\_ACEOF
27461 #define TM_IN_SYS_TIME 1
27466 echo "$as_me:$LINENO: checking for int64_t" >&5
27467 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27468 if test "${ac_cv_type_int64_t+set}" = set; then
27469 echo $ECHO_N "(cached) $ECHO_C" >&6
27471 cat >conftest.$ac_ext <<_ACEOF
27474 cat confdefs.h >>conftest.$ac_ext
27475 cat >>conftest.$ac_ext <<_ACEOF
27476 /* end confdefs.h. */
27477 $ac_includes_default
27483 if (sizeof (int64_t))
27489 rm -f conftest.$ac_objext
27490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27491 (eval $ac_compile) 2>conftest.er1
27493 grep -v '^ *+' conftest.er1 >conftest.err
27495 cat conftest.err >&5
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); } &&
27498 { ac_try='test -z "$ac_c_werror_flag"
27499 || test ! -s conftest.err'
27500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501 (eval $ac_try) 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; } &&
27505 { ac_try='test -s conftest.$ac_objext'
27506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507 (eval $ac_try) 2>&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; }; then
27511 ac_cv_type_int64_t=yes
27513 echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27516 ac_cv_type_int64_t=no
27518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27520 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27521 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27522 if test $ac_cv_type_int64_t = yes; then
27524 cat >>confdefs.h <<_ACEOF
27525 #define HAVE_INT64_T 1
27530 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27531 echo "$as_me: error: Type int64_t required but not found" >&2;}
27532 { (exit 1); exit 1; }; }
27535 echo "$as_me:$LINENO: checking for uint64_t" >&5
27536 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27537 if test "${ac_cv_type_uint64_t+set}" = set; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
27540 cat >conftest.$ac_ext <<_ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h. */
27546 $ac_includes_default
27550 if ((uint64_t *) 0)
27552 if (sizeof (uint64_t))
27558 rm -f conftest.$ac_objext
27559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27560 (eval $ac_compile) 2>conftest.er1
27562 grep -v '^ *+' conftest.er1 >conftest.err
27564 cat conftest.err >&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } &&
27567 { ac_try='test -z "$ac_c_werror_flag"
27568 || test ! -s conftest.err'
27569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27570 (eval $ac_try) 2>&5
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); }; } &&
27574 { ac_try='test -s conftest.$ac_objext'
27575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576 (eval $ac_try) 2>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; }; then
27580 ac_cv_type_uint64_t=yes
27582 echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27585 ac_cv_type_uint64_t=no
27587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27589 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27590 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27591 if test $ac_cv_type_uint64_t = yes; then
27593 cat >>confdefs.h <<_ACEOF
27594 #define HAVE_UINT64_T 1
27599 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27600 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27601 if test "${ac_cv_type_u_int64_t+set}" = set; then
27602 echo $ECHO_N "(cached) $ECHO_C" >&6
27604 cat >conftest.$ac_ext <<_ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h. */
27610 $ac_includes_default
27614 if ((u_int64_t *) 0)
27616 if (sizeof (u_int64_t))
27622 rm -f conftest.$ac_objext
27623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27624 (eval $ac_compile) 2>conftest.er1
27626 grep -v '^ *+' conftest.er1 >conftest.err
27628 cat conftest.err >&5
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); } &&
27631 { ac_try='test -z "$ac_c_werror_flag"
27632 || test ! -s conftest.err'
27633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27634 (eval $ac_try) 2>&5
27636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); }; } &&
27638 { ac_try='test -s conftest.$ac_objext'
27639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27640 (eval $ac_try) 2>&5
27642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); }; }; then
27644 ac_cv_type_u_int64_t=yes
27646 echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27649 ac_cv_type_u_int64_t=no
27651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27653 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27654 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27655 if test $ac_cv_type_u_int64_t = yes; then
27657 cat >>confdefs.h <<_ACEOF
27658 #define HAVE_U_INT64_T 1
27663 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27664 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27665 { (exit 1); exit 1; }; }
27679 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27682 echo "$as_me:$LINENO: checking for $ac_func" >&5
27683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27684 if eval "test \"\${$as_ac_var+set}\" = set"; then
27685 echo $ECHO_N "(cached) $ECHO_C" >&6
27687 cat >conftest.$ac_ext <<_ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h. */
27693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27695 #define $ac_func innocuous_$ac_func
27697 /* System header to define __stub macros and hopefully few prototypes,
27698 which can conflict with char $ac_func (); below.
27699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27700 <limits.h> exists even on freestanding compilers. */
27703 # include <limits.h>
27705 # include <assert.h>
27710 /* Override any gcc2 internal prototype to avoid an error. */
27715 /* We use char because int might match the return type of a gcc2
27716 builtin and then its argument prototype would still apply. */
27718 /* The GNU C library defines this for functions which it implements
27719 to always fail with ENOSYS. Some functions are actually named
27720 something starting with __ and the normal name is an alias. */
27721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27724 char (*f) () = $ac_func;
27733 return f != $ac_func;
27738 rm -f conftest.$ac_objext conftest$ac_exeext
27739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27740 (eval $ac_link) 2>conftest.er1
27742 grep -v '^ *+' conftest.er1 >conftest.err
27744 cat conftest.err >&5
27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); } &&
27747 { ac_try='test -z "$ac_c_werror_flag"
27748 || test ! -s conftest.err'
27749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750 (eval $ac_try) 2>&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; } &&
27754 { ac_try='test -s conftest$ac_exeext'
27755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756 (eval $ac_try) 2>&5
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; }; then
27760 eval "$as_ac_var=yes"
27762 echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27765 eval "$as_ac_var=no"
27767 rm -f conftest.err conftest.$ac_objext \
27768 conftest$ac_exeext conftest.$ac_ext
27770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27772 if test `eval echo '${'$as_ac_var'}'` = yes; then
27773 cat >>confdefs.h <<_ACEOF
27774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27786 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27789 echo "$as_me:$LINENO: checking for $ac_func" >&5
27790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27791 if eval "test \"\${$as_ac_var+set}\" = set"; then
27792 echo $ECHO_N "(cached) $ECHO_C" >&6
27794 cat >conftest.$ac_ext <<_ACEOF
27797 cat confdefs.h >>conftest.$ac_ext
27798 cat >>conftest.$ac_ext <<_ACEOF
27799 /* end confdefs.h. */
27800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27802 #define $ac_func innocuous_$ac_func
27804 /* System header to define __stub macros and hopefully few prototypes,
27805 which can conflict with char $ac_func (); below.
27806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27807 <limits.h> exists even on freestanding compilers. */
27810 # include <limits.h>
27812 # include <assert.h>
27817 /* Override any gcc2 internal prototype to avoid an error. */
27822 /* We use char because int might match the return type of a gcc2
27823 builtin and then its argument prototype would still apply. */
27825 /* The GNU C library defines this for functions which it implements
27826 to always fail with ENOSYS. Some functions are actually named
27827 something starting with __ and the normal name is an alias. */
27828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27831 char (*f) () = $ac_func;
27840 return f != $ac_func;
27845 rm -f conftest.$ac_objext conftest$ac_exeext
27846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27847 (eval $ac_link) 2>conftest.er1
27849 grep -v '^ *+' conftest.er1 >conftest.err
27851 cat conftest.err >&5
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } &&
27854 { ac_try='test -z "$ac_c_werror_flag"
27855 || test ! -s conftest.err'
27856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27857 (eval $ac_try) 2>&5
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); }; } &&
27861 { ac_try='test -s conftest$ac_exeext'
27862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863 (eval $ac_try) 2>&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; }; then
27867 eval "$as_ac_var=yes"
27869 echo "$as_me: failed program was:" >&5
27870 sed 's/^/| /' conftest.$ac_ext >&5
27872 eval "$as_ac_var=no"
27874 rm -f conftest.err conftest.$ac_objext \
27875 conftest$ac_exeext conftest.$ac_ext
27877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27879 if test `eval echo '${'$as_ac_var'}'` = yes; then
27880 cat >>confdefs.h <<_ACEOF
27881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27894 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27897 echo "$as_me:$LINENO: checking for $ac_func" >&5
27898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27899 if eval "test \"\${$as_ac_var+set}\" = set"; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27902 cat >conftest.$ac_ext <<_ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h. */
27908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27910 #define $ac_func innocuous_$ac_func
27912 /* System header to define __stub macros and hopefully few prototypes,
27913 which can conflict with char $ac_func (); below.
27914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27915 <limits.h> exists even on freestanding compilers. */
27918 # include <limits.h>
27920 # include <assert.h>
27925 /* Override any gcc2 internal prototype to avoid an error. */
27930 /* We use char because int might match the return type of a gcc2
27931 builtin and then its argument prototype would still apply. */
27933 /* The GNU C library defines this for functions which it implements
27934 to always fail with ENOSYS. Some functions are actually named
27935 something starting with __ and the normal name is an alias. */
27936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27939 char (*f) () = $ac_func;
27948 return f != $ac_func;
27953 rm -f conftest.$ac_objext conftest$ac_exeext
27954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27955 (eval $ac_link) 2>conftest.er1
27957 grep -v '^ *+' conftest.er1 >conftest.err
27959 cat conftest.err >&5
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); } &&
27962 { ac_try='test -z "$ac_c_werror_flag"
27963 || test ! -s conftest.err'
27964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27965 (eval $ac_try) 2>&5
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; } &&
27969 { ac_try='test -s conftest$ac_exeext'
27970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27971 (eval $ac_try) 2>&5
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); }; }; then
27975 eval "$as_ac_var=yes"
27977 echo "$as_me: failed program was:" >&5
27978 sed 's/^/| /' conftest.$ac_ext >&5
27980 eval "$as_ac_var=no"
27982 rm -f conftest.err conftest.$ac_objext \
27983 conftest$ac_exeext conftest.$ac_ext
27985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27987 if test `eval echo '${'$as_ac_var'}'` = yes; then
27988 cat >>confdefs.h <<_ACEOF
27989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27999 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28002 echo "$as_me:$LINENO: checking for $ac_func" >&5
28003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28004 if eval "test \"\${$as_ac_var+set}\" = set"; then
28005 echo $ECHO_N "(cached) $ECHO_C" >&6
28007 cat >conftest.$ac_ext <<_ACEOF
28010 cat confdefs.h >>conftest.$ac_ext
28011 cat >>conftest.$ac_ext <<_ACEOF
28012 /* end confdefs.h. */
28013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28015 #define $ac_func innocuous_$ac_func
28017 /* System header to define __stub macros and hopefully few prototypes,
28018 which can conflict with char $ac_func (); below.
28019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28020 <limits.h> exists even on freestanding compilers. */
28023 # include <limits.h>
28025 # include <assert.h>
28030 /* Override any gcc2 internal prototype to avoid an error. */
28035 /* We use char because int might match the return type of a gcc2
28036 builtin and then its argument prototype would still apply. */
28038 /* The GNU C library defines this for functions which it implements
28039 to always fail with ENOSYS. Some functions are actually named
28040 something starting with __ and the normal name is an alias. */
28041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28044 char (*f) () = $ac_func;
28053 return f != $ac_func;
28058 rm -f conftest.$ac_objext conftest$ac_exeext
28059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28060 (eval $ac_link) 2>conftest.er1
28062 grep -v '^ *+' conftest.er1 >conftest.err
28064 cat conftest.err >&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } &&
28067 { ac_try='test -z "$ac_c_werror_flag"
28068 || test ! -s conftest.err'
28069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070 (eval $ac_try) 2>&5
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; } &&
28074 { ac_try='test -s conftest$ac_exeext'
28075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076 (eval $ac_try) 2>&5
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; }; then
28080 eval "$as_ac_var=yes"
28082 echo "$as_me: failed program was:" >&5
28083 sed 's/^/| /' conftest.$ac_ext >&5
28085 eval "$as_ac_var=no"
28087 rm -f conftest.err conftest.$ac_objext \
28088 conftest$ac_exeext conftest.$ac_ext
28090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28092 if test `eval echo '${'$as_ac_var'}'` = yes; then
28093 cat >>confdefs.h <<_ACEOF
28094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28100 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28101 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28102 if test "${llvm_cv_c_printf_a+set}" = set; then
28103 echo $ECHO_N "(cached) $ECHO_C" >&6
28106 ac_cpp='$CPP $CPPFLAGS'
28107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28111 if test "$cross_compiling" = yes; then
28112 llvmac_cv_c_printf_a=no
28114 cat >conftest.$ac_ext <<_ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h. */
28123 #include <stdlib.h>
28129 volatile double A, B;
28133 sprintf(Buffer, "%a", A);
28137 if (A != 0x1.999999999999ap-4)
28144 rm -f conftest$ac_exeext
28145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28146 (eval $ac_link) 2>&5
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151 (eval $ac_try) 2>&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; }; then
28155 llvm_cv_c_printf_a=yes
28157 echo "$as_me: program exited with status $ac_status" >&5
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28161 ( exit $ac_status )
28162 llvmac_cv_c_printf_a=no
28164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28167 ac_cpp='$CPP $CPPFLAGS'
28168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28173 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28174 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28175 if test "$llvm_cv_c_printf_a" = "yes"; then
28177 cat >>confdefs.h <<\_ACEOF
28178 #define HAVE_PRINTF_A 1
28183 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28184 # for constant arguments. Useless!
28185 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28186 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28187 if test "${ac_cv_working_alloca_h+set}" = set; then
28188 echo $ECHO_N "(cached) $ECHO_C" >&6
28190 cat >conftest.$ac_ext <<_ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h. */
28196 #include <alloca.h>
28200 char *p = (char *) alloca (2 * sizeof (int));
28205 rm -f conftest.$ac_objext conftest$ac_exeext
28206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28207 (eval $ac_link) 2>conftest.er1
28209 grep -v '^ *+' conftest.er1 >conftest.err
28211 cat conftest.err >&5
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); } &&
28214 { ac_try='test -z "$ac_c_werror_flag"
28215 || test ! -s conftest.err'
28216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28217 (eval $ac_try) 2>&5
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); }; } &&
28221 { ac_try='test -s conftest$ac_exeext'
28222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28223 (eval $ac_try) 2>&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); }; }; then
28227 ac_cv_working_alloca_h=yes
28229 echo "$as_me: failed program was:" >&5
28230 sed 's/^/| /' conftest.$ac_ext >&5
28232 ac_cv_working_alloca_h=no
28234 rm -f conftest.err conftest.$ac_objext \
28235 conftest$ac_exeext conftest.$ac_ext
28237 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28238 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28239 if test $ac_cv_working_alloca_h = yes; then
28241 cat >>confdefs.h <<\_ACEOF
28242 #define HAVE_ALLOCA_H 1
28247 echo "$as_me:$LINENO: checking for alloca" >&5
28248 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28249 if test "${ac_cv_func_alloca_works+set}" = set; then
28250 echo $ECHO_N "(cached) $ECHO_C" >&6
28252 cat >conftest.$ac_ext <<_ACEOF
28255 cat confdefs.h >>conftest.$ac_ext
28256 cat >>conftest.$ac_ext <<_ACEOF
28257 /* end confdefs.h. */
28259 # define alloca __builtin_alloca
28262 # include <malloc.h>
28263 # define alloca _alloca
28266 # include <alloca.h>
28271 # ifndef alloca /* predefined by HP cc +Olibcalls */
28282 char *p = (char *) alloca (1);
28287 rm -f conftest.$ac_objext conftest$ac_exeext
28288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28289 (eval $ac_link) 2>conftest.er1
28291 grep -v '^ *+' conftest.er1 >conftest.err
28293 cat conftest.err >&5
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); } &&
28296 { ac_try='test -z "$ac_c_werror_flag"
28297 || test ! -s conftest.err'
28298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28299 (eval $ac_try) 2>&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; } &&
28303 { ac_try='test -s conftest$ac_exeext'
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; }; then
28309 ac_cv_func_alloca_works=yes
28311 echo "$as_me: failed program was:" >&5
28312 sed 's/^/| /' conftest.$ac_ext >&5
28314 ac_cv_func_alloca_works=no
28316 rm -f conftest.err conftest.$ac_objext \
28317 conftest$ac_exeext conftest.$ac_ext
28319 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28320 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28322 if test $ac_cv_func_alloca_works = yes; then
28324 cat >>confdefs.h <<\_ACEOF
28325 #define HAVE_ALLOCA 1
28329 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28330 # that cause trouble. Some versions do not even contain alloca or
28331 # contain a buggy version. If you still want to use their alloca,
28332 # use ar to extract alloca.o from them instead of compiling alloca.c.
28334 ALLOCA=alloca.$ac_objext
28336 cat >>confdefs.h <<\_ACEOF
28341 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28342 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28343 if test "${ac_cv_os_cray+set}" = set; then
28344 echo $ECHO_N "(cached) $ECHO_C" >&6
28346 cat >conftest.$ac_ext <<_ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h. */
28352 #if defined(CRAY) && ! defined(CRAY2)
28359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28360 $EGREP "webecray" >/dev/null 2>&1; then
28368 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28369 echo "${ECHO_T}$ac_cv_os_cray" >&6
28370 if test $ac_cv_os_cray = yes; then
28371 for ac_func in _getb67 GETB67 getb67; do
28372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28373 echo "$as_me:$LINENO: checking for $ac_func" >&5
28374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28375 if eval "test \"\${$as_ac_var+set}\" = set"; then
28376 echo $ECHO_N "(cached) $ECHO_C" >&6
28378 cat >conftest.$ac_ext <<_ACEOF
28381 cat confdefs.h >>conftest.$ac_ext
28382 cat >>conftest.$ac_ext <<_ACEOF
28383 /* end confdefs.h. */
28384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28386 #define $ac_func innocuous_$ac_func
28388 /* System header to define __stub macros and hopefully few prototypes,
28389 which can conflict with char $ac_func (); below.
28390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28391 <limits.h> exists even on freestanding compilers. */
28394 # include <limits.h>
28396 # include <assert.h>
28401 /* Override any gcc2 internal prototype to avoid an error. */
28406 /* We use char because int might match the return type of a gcc2
28407 builtin and then its argument prototype would still apply. */
28409 /* The GNU C library defines this for functions which it implements
28410 to always fail with ENOSYS. Some functions are actually named
28411 something starting with __ and the normal name is an alias. */
28412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28415 char (*f) () = $ac_func;
28424 return f != $ac_func;
28429 rm -f conftest.$ac_objext conftest$ac_exeext
28430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28431 (eval $ac_link) 2>conftest.er1
28433 grep -v '^ *+' conftest.er1 >conftest.err
28435 cat conftest.err >&5
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); } &&
28438 { ac_try='test -z "$ac_c_werror_flag"
28439 || test ! -s conftest.err'
28440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441 (eval $ac_try) 2>&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); }; } &&
28445 { ac_try='test -s conftest$ac_exeext'
28446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447 (eval $ac_try) 2>&5
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; }; then
28451 eval "$as_ac_var=yes"
28453 echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28456 eval "$as_ac_var=no"
28458 rm -f conftest.err conftest.$ac_objext \
28459 conftest$ac_exeext conftest.$ac_ext
28461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28463 if test `eval echo '${'$as_ac_var'}'` = yes; then
28465 cat >>confdefs.h <<_ACEOF
28466 #define CRAY_STACKSEG_END $ac_func
28475 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28476 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28477 if test "${ac_cv_c_stack_direction+set}" = set; then
28478 echo $ECHO_N "(cached) $ECHO_C" >&6
28480 if test "$cross_compiling" = yes; then
28481 ac_cv_c_stack_direction=0
28483 cat >conftest.$ac_ext <<_ACEOF
28486 cat confdefs.h >>conftest.$ac_ext
28487 cat >>conftest.$ac_ext <<_ACEOF
28488 /* end confdefs.h. */
28490 find_stack_direction ()
28492 static char *addr = 0;
28497 return find_stack_direction ();
28500 return (&dummy > addr) ? 1 : -1;
28506 exit (find_stack_direction () < 0);
28509 rm -f conftest$ac_exeext
28510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28511 (eval $ac_link) 2>&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516 (eval $ac_try) 2>&5
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; }; then
28520 ac_cv_c_stack_direction=1
28522 echo "$as_me: program exited with status $ac_status" >&5
28523 echo "$as_me: failed program was:" >&5
28524 sed 's/^/| /' conftest.$ac_ext >&5
28526 ( exit $ac_status )
28527 ac_cv_c_stack_direction=-1
28529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28532 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28533 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28535 cat >>confdefs.h <<_ACEOF
28536 #define STACK_DIRECTION $ac_cv_c_stack_direction
28543 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28544 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28545 if test "${ac_cv_func_rand48+set}" = set; then
28546 echo $ECHO_N "(cached) $ECHO_C" >&6
28549 ac_cpp='$CXXCPP $CPPFLAGS'
28550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28554 cat >conftest.$ac_ext <<_ACEOF
28557 cat confdefs.h >>conftest.$ac_ext
28558 cat >>conftest.$ac_ext <<_ACEOF
28559 /* end confdefs.h. */
28560 #include <stdlib.h>
28564 srand48(0);lrand48();drand48();
28569 rm -f conftest.$ac_objext
28570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28571 (eval $ac_compile) 2>conftest.er1
28573 grep -v '^ *+' conftest.er1 >conftest.err
28575 cat conftest.err >&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } &&
28578 { ac_try='test -z "$ac_cxx_werror_flag"
28579 || test ! -s conftest.err'
28580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581 (eval $ac_try) 2>&5
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; } &&
28585 { ac_try='test -s conftest.$ac_objext'
28586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587 (eval $ac_try) 2>&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); }; }; then
28591 ac_cv_func_rand48=yes
28593 echo "$as_me: failed program was:" >&5
28594 sed 's/^/| /' conftest.$ac_ext >&5
28596 ac_cv_func_rand48=no
28598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28600 ac_cpp='$CPP $CPPFLAGS'
28601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28606 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28607 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28609 if test "$ac_cv_func_rand48" = "yes" ; then
28611 cat >>confdefs.h <<\_ACEOF
28612 #define HAVE_RAND48 1
28618 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28619 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28620 if test "${ac_cv_cxx_namespaces+set}" = set; then
28621 echo $ECHO_N "(cached) $ECHO_C" >&6
28624 ac_cpp='$CXXCPP $CPPFLAGS'
28625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28629 cat >conftest.$ac_ext <<_ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28635 namespace Outer { namespace Inner { int i = 0; }}
28639 using namespace Outer::Inner; return i;
28644 rm -f conftest.$ac_objext
28645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28646 (eval $ac_compile) 2>conftest.er1
28648 grep -v '^ *+' conftest.er1 >conftest.err
28650 cat conftest.err >&5
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); } &&
28653 { ac_try='test -z "$ac_cxx_werror_flag"
28654 || test ! -s conftest.err'
28655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656 (eval $ac_try) 2>&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; } &&
28660 { ac_try='test -s conftest.$ac_objext'
28661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662 (eval $ac_try) 2>&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); }; }; then
28666 ac_cv_cxx_namespaces=yes
28668 echo "$as_me: failed program was:" >&5
28669 sed 's/^/| /' conftest.$ac_ext >&5
28671 ac_cv_cxx_namespaces=no
28673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28675 ac_cpp='$CPP $CPPFLAGS'
28676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28682 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28683 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28684 if test "$ac_cv_cxx_namespaces" = yes; then
28686 cat >>confdefs.h <<\_ACEOF
28687 #define HAVE_NAMESPACES
28692 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28693 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28694 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28695 echo $ECHO_N "(cached) $ECHO_C" >&6
28699 ac_cpp='$CXXCPP $CPPFLAGS'
28700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28704 cat >conftest.$ac_ext <<_ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h. */
28710 #include <ext/hash_map>
28711 #ifdef HAVE_NAMESPACES
28712 using namespace std;
28717 hash_map<int, int> t;
28722 rm -f conftest.$ac_objext
28723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28724 (eval $ac_compile) 2>conftest.er1
28726 grep -v '^ *+' conftest.er1 >conftest.err
28728 cat conftest.err >&5
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); } &&
28731 { ac_try='test -z "$ac_cxx_werror_flag"
28732 || test ! -s conftest.err'
28733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734 (eval $ac_try) 2>&5
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; } &&
28738 { ac_try='test -s conftest.$ac_objext'
28739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28740 (eval $ac_try) 2>&5
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); }; }; then
28744 ac_cv_cxx_have_std_ext_hash_map=yes
28746 echo "$as_me: failed program was:" >&5
28747 sed 's/^/| /' conftest.$ac_ext >&5
28749 ac_cv_cxx_have_std_ext_hash_map=no
28751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28753 ac_cpp='$CPP $CPPFLAGS'
28754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28759 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28760 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28761 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28764 cat >>confdefs.h <<\_ACEOF
28765 #define HAVE_STD_EXT_HASH_MAP 1
28770 cat >>confdefs.h <<\_ACEOF
28771 #define HAVE_STD_EXT_HASH_MAP 0
28776 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28777 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28778 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28779 echo $ECHO_N "(cached) $ECHO_C" >&6
28783 ac_cpp='$CXXCPP $CPPFLAGS'
28784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28788 cat >conftest.$ac_ext <<_ACEOF
28791 cat confdefs.h >>conftest.$ac_ext
28792 cat >>conftest.$ac_ext <<_ACEOF
28793 /* end confdefs.h. */
28794 #include <ext/hash_map>
28795 #ifdef HAVE_NAMESPACES
28796 using namespace __gnu_cxx;
28801 hash_map<int,int> t;
28806 rm -f conftest.$ac_objext
28807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28808 (eval $ac_compile) 2>conftest.er1
28810 grep -v '^ *+' conftest.er1 >conftest.err
28812 cat conftest.err >&5
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); } &&
28815 { ac_try='test -z "$ac_cxx_werror_flag"
28816 || test ! -s conftest.err'
28817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28818 (eval $ac_try) 2>&5
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); }; } &&
28822 { ac_try='test -s conftest.$ac_objext'
28823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824 (eval $ac_try) 2>&5
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); }; }; then
28828 ac_cv_cxx_have_gnu_ext_hash_map=yes
28830 echo "$as_me: failed program was:" >&5
28831 sed 's/^/| /' conftest.$ac_ext >&5
28833 ac_cv_cxx_have_gnu_ext_hash_map=no
28835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28837 ac_cpp='$CPP $CPPFLAGS'
28838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28843 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28844 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28845 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28848 cat >>confdefs.h <<\_ACEOF
28849 #define HAVE_GNU_EXT_HASH_MAP 1
28854 cat >>confdefs.h <<\_ACEOF
28855 #define HAVE_GNU_EXT_HASH_MAP 0
28860 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28861 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28862 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28863 echo $ECHO_N "(cached) $ECHO_C" >&6
28867 ac_cpp='$CXXCPP $CPPFLAGS'
28868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28872 cat >conftest.$ac_ext <<_ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h. */
28878 #include <hash_map>
28882 hash_map<int,int> t;
28887 rm -f conftest.$ac_objext
28888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28889 (eval $ac_compile) 2>conftest.er1
28891 grep -v '^ *+' conftest.er1 >conftest.err
28893 cat conftest.err >&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } &&
28896 { ac_try='test -z "$ac_cxx_werror_flag"
28897 || test ! -s conftest.err'
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; } &&
28903 { ac_try='test -s conftest.$ac_objext'
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; }; then
28909 ac_cv_cxx_have_global_hash_map=yes
28911 echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28914 ac_cv_cxx_have_global_hash_map=no
28916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28918 ac_cpp='$CPP $CPPFLAGS'
28919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28924 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28925 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28926 if test "$ac_cv_cxx_have_global_hash_map" = yes
28929 cat >>confdefs.h <<\_ACEOF
28930 #define HAVE_GLOBAL_HASH_MAP 1
28935 cat >>confdefs.h <<\_ACEOF
28936 #define HAVE_GLOBAL_HASH_MAP 0
28941 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28942 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28943 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28944 echo $ECHO_N "(cached) $ECHO_C" >&6
28948 ac_cpp='$CXXCPP $CPPFLAGS'
28949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28953 cat >conftest.$ac_ext <<_ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h. */
28959 #include <ext/hash_set>
28960 #ifdef HAVE_NAMESPACES
28961 using namespace std;
28971 rm -f conftest.$ac_objext
28972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28973 (eval $ac_compile) 2>conftest.er1
28975 grep -v '^ *+' conftest.er1 >conftest.err
28977 cat conftest.err >&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); } &&
28980 { ac_try='test -z "$ac_cxx_werror_flag"
28981 || test ! -s conftest.err'
28982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28983 (eval $ac_try) 2>&5
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); }; } &&
28987 { ac_try='test -s conftest.$ac_objext'
28988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989 (eval $ac_try) 2>&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); }; }; then
28993 ac_cv_cxx_have_std_ext_hash_set=yes
28995 echo "$as_me: failed program was:" >&5
28996 sed 's/^/| /' conftest.$ac_ext >&5
28998 ac_cv_cxx_have_std_ext_hash_set=no
29000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29002 ac_cpp='$CPP $CPPFLAGS'
29003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29008 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29009 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29010 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29013 cat >>confdefs.h <<\_ACEOF
29014 #define HAVE_STD_EXT_HASH_SET 1
29019 cat >>confdefs.h <<\_ACEOF
29020 #define HAVE_STD_EXT_HASH_SET 0
29025 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29026 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29027 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29032 ac_cpp='$CXXCPP $CPPFLAGS'
29033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29037 cat >conftest.$ac_ext <<_ACEOF
29040 cat confdefs.h >>conftest.$ac_ext
29041 cat >>conftest.$ac_ext <<_ACEOF
29042 /* end confdefs.h. */
29043 #include <ext/hash_set>
29044 #ifdef HAVE_NAMESPACES
29045 using namespace __gnu_cxx;
29055 rm -f conftest.$ac_objext
29056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29057 (eval $ac_compile) 2>conftest.er1
29059 grep -v '^ *+' conftest.er1 >conftest.err
29061 cat conftest.err >&5
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); } &&
29064 { ac_try='test -z "$ac_cxx_werror_flag"
29065 || test ! -s conftest.err'
29066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067 (eval $ac_try) 2>&5
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; } &&
29071 { ac_try='test -s conftest.$ac_objext'
29072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073 (eval $ac_try) 2>&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; }; then
29077 ac_cv_cxx_have_gnu_ext_hash_set=yes
29079 echo "$as_me: failed program was:" >&5
29080 sed 's/^/| /' conftest.$ac_ext >&5
29082 ac_cv_cxx_have_gnu_ext_hash_set=no
29084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29086 ac_cpp='$CPP $CPPFLAGS'
29087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29092 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29093 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29094 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29097 cat >>confdefs.h <<\_ACEOF
29098 #define HAVE_GNU_EXT_HASH_SET 1
29103 cat >>confdefs.h <<\_ACEOF
29104 #define HAVE_GNU_EXT_HASH_SET 0
29109 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29110 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29111 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29112 echo $ECHO_N "(cached) $ECHO_C" >&6
29116 ac_cpp='$CXXCPP $CPPFLAGS'
29117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29121 cat >conftest.$ac_ext <<_ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h. */
29127 #include <hash_set>
29131 hash_set<int> t; return 0;
29136 rm -f conftest.$ac_objext
29137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29138 (eval $ac_compile) 2>conftest.er1
29140 grep -v '^ *+' conftest.er1 >conftest.err
29142 cat conftest.err >&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); } &&
29145 { ac_try='test -z "$ac_cxx_werror_flag"
29146 || test ! -s conftest.err'
29147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148 (eval $ac_try) 2>&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); }; } &&
29152 { ac_try='test -s conftest.$ac_objext'
29153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29154 (eval $ac_try) 2>&5
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; }; then
29158 ac_cv_cxx_have_global_hash_set=yes
29160 echo "$as_me: failed program was:" >&5
29161 sed 's/^/| /' conftest.$ac_ext >&5
29163 ac_cv_cxx_have_global_hash_set=no
29165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29167 ac_cpp='$CPP $CPPFLAGS'
29168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29173 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29174 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29175 if test "$ac_cv_cxx_have_global_hash_set" = yes
29178 cat >>confdefs.h <<\_ACEOF
29179 #define HAVE_GLOBAL_HASH_SET 1
29184 cat >>confdefs.h <<\_ACEOF
29185 #define HAVE_GLOBAL_HASH_SET 0
29190 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29191 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29192 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29193 echo $ECHO_N "(cached) $ECHO_C" >&6
29197 ac_cpp='$CXXCPP $CPPFLAGS'
29198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29202 cat >conftest.$ac_ext <<_ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h. */
29208 #include <iterator>
29209 #ifdef HAVE_NAMESPACES
29210 using namespace std;
29215 iterator<int,int,int> t; return 0;
29220 rm -f conftest.$ac_objext
29221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29222 (eval $ac_compile) 2>conftest.er1
29224 grep -v '^ *+' conftest.er1 >conftest.err
29226 cat conftest.err >&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } &&
29229 { ac_try='test -z "$ac_cxx_werror_flag"
29230 || test ! -s conftest.err'
29231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232 (eval $ac_try) 2>&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; } &&
29236 { ac_try='test -s conftest.$ac_objext'
29237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238 (eval $ac_try) 2>&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; }; then
29242 ac_cv_cxx_have_std_iterator=yes
29244 echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29247 ac_cv_cxx_have_std_iterator=no
29249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29251 ac_cpp='$CPP $CPPFLAGS'
29252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29258 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29259 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29260 if test "$ac_cv_cxx_have_std_iterator" = yes
29263 cat >>confdefs.h <<\_ACEOF
29264 #define HAVE_STD_ITERATOR 1
29269 cat >>confdefs.h <<\_ACEOF
29270 #define HAVE_STD_ITERATOR 0
29275 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29276 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29277 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29278 echo $ECHO_N "(cached) $ECHO_C" >&6
29282 ac_cpp='$CXXCPP $CPPFLAGS'
29283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29287 cat >conftest.$ac_ext <<_ACEOF
29290 cat confdefs.h >>conftest.$ac_ext
29291 cat >>conftest.$ac_ext <<_ACEOF
29292 /* end confdefs.h. */
29293 #include <iterator>
29294 #ifdef HAVE_NAMESPACES
29295 using namespace std;
29300 bidirectional_iterator<int,int> t; return 0;
29305 rm -f conftest.$ac_objext
29306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29307 (eval $ac_compile) 2>conftest.er1
29309 grep -v '^ *+' conftest.er1 >conftest.err
29311 cat conftest.err >&5
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); } &&
29314 { ac_try='test -z "$ac_cxx_werror_flag"
29315 || test ! -s conftest.err'
29316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317 (eval $ac_try) 2>&5
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); }; } &&
29321 { ac_try='test -s conftest.$ac_objext'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; }; then
29327 ac_cv_cxx_have_bi_iterator=yes
29329 echo "$as_me: failed program was:" >&5
29330 sed 's/^/| /' conftest.$ac_ext >&5
29332 ac_cv_cxx_have_bi_iterator=no
29334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29336 ac_cpp='$CPP $CPPFLAGS'
29337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29343 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29344 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29345 if test "$ac_cv_cxx_have_bi_iterator" = yes
29348 cat >>confdefs.h <<\_ACEOF
29349 #define HAVE_BI_ITERATOR 1
29354 cat >>confdefs.h <<\_ACEOF
29355 #define HAVE_BI_ITERATOR 0
29360 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29361 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29362 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29363 echo $ECHO_N "(cached) $ECHO_C" >&6
29367 ac_cpp='$CXXCPP $CPPFLAGS'
29368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29372 cat >conftest.$ac_ext <<_ACEOF
29375 cat confdefs.h >>conftest.$ac_ext
29376 cat >>conftest.$ac_ext <<_ACEOF
29377 /* end confdefs.h. */
29378 #include <iterator>
29379 #ifdef HAVE_NAMESPACES
29380 using namespace std;
29385 forward_iterator<int,int> t; return 0;
29390 rm -f conftest.$ac_objext
29391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29392 (eval $ac_compile) 2>conftest.er1
29394 grep -v '^ *+' conftest.er1 >conftest.err
29396 cat conftest.err >&5
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); } &&
29399 { ac_try='test -z "$ac_cxx_werror_flag"
29400 || test ! -s conftest.err'
29401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402 (eval $ac_try) 2>&5
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); }; } &&
29406 { ac_try='test -s conftest.$ac_objext'
29407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408 (eval $ac_try) 2>&5
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; }; then
29412 ac_cv_cxx_have_fwd_iterator=yes
29414 echo "$as_me: failed program was:" >&5
29415 sed 's/^/| /' conftest.$ac_ext >&5
29417 ac_cv_cxx_have_fwd_iterator=no
29419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29421 ac_cpp='$CPP $CPPFLAGS'
29422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29428 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29429 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29430 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29433 cat >>confdefs.h <<\_ACEOF
29434 #define HAVE_FWD_ITERATOR 1
29439 cat >>confdefs.h <<\_ACEOF
29440 #define HAVE_FWD_ITERATOR 0
29446 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29447 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29448 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29452 ac_cpp='$CXXCPP $CPPFLAGS'
29453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29457 cat >conftest.$ac_ext <<_ACEOF
29460 cat confdefs.h >>conftest.$ac_ext
29461 cat >>conftest.$ac_ext <<_ACEOF
29462 /* end confdefs.h. */
29472 rm -f conftest.$ac_objext
29473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29474 (eval $ac_compile) 2>conftest.er1
29476 grep -v '^ *+' conftest.er1 >conftest.err
29478 cat conftest.err >&5
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); } &&
29481 { ac_try='test -z "$ac_cxx_werror_flag"
29482 || test ! -s conftest.err'
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); }; } &&
29488 { ac_try='test -s conftest.$ac_objext'
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; }; then
29494 ac_cv_func_isnan_in_math_h=yes
29496 echo "$as_me: failed program was:" >&5
29497 sed 's/^/| /' conftest.$ac_ext >&5
29499 ac_cv_func_isnan_in_math_h=no
29501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29503 ac_cpp='$CPP $CPPFLAGS'
29504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29509 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29510 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29513 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29515 cat >>confdefs.h <<\_ACEOF
29516 #define HAVE_ISNAN_IN_MATH_H 1
29521 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29522 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29523 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29524 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. */
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_func_isnan_in_cmath=yes
29571 echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29574 ac_cv_func_isnan_in_cmath=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_func_isnan_in_cmath" >&5
29585 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29587 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29589 cat >>confdefs.h <<\_ACEOF
29590 #define HAVE_ISNAN_IN_CMATH 1
29595 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29596 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29597 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29598 echo $ECHO_N "(cached) $ECHO_C" >&6
29601 ac_cpp='$CXXCPP $CPPFLAGS'
29602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29606 cat >conftest.$ac_ext <<_ACEOF
29609 cat confdefs.h >>conftest.$ac_ext
29610 cat >>conftest.$ac_ext <<_ACEOF
29611 /* end confdefs.h. */
29616 float f; std::isnan(f);
29621 rm -f conftest.$ac_objext
29622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29623 (eval $ac_compile) 2>conftest.er1
29625 grep -v '^ *+' conftest.er1 >conftest.err
29627 cat conftest.err >&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); } &&
29630 { ac_try='test -z "$ac_cxx_werror_flag"
29631 || test ! -s conftest.err'
29632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29633 (eval $ac_try) 2>&5
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); }; } &&
29637 { ac_try='test -s conftest.$ac_objext'
29638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29639 (eval $ac_try) 2>&5
29641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642 (exit $ac_status); }; }; then
29643 ac_cv_func_std_isnan_in_cmath=yes
29645 echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29648 ac_cv_func_std_isnan_in_cmath=no
29650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29652 ac_cpp='$CPP $CPPFLAGS'
29653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29658 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29659 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29661 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29663 cat >>confdefs.h <<\_ACEOF
29664 #define HAVE_STD_ISNAN_IN_CMATH 1
29670 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29671 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29672 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29673 echo $ECHO_N "(cached) $ECHO_C" >&6
29676 ac_cpp='$CXXCPP $CPPFLAGS'
29677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29681 cat >conftest.$ac_ext <<_ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h. */
29696 rm -f conftest.$ac_objext
29697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29698 (eval $ac_compile) 2>conftest.er1
29700 grep -v '^ *+' conftest.er1 >conftest.err
29702 cat conftest.err >&5
29703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); } &&
29705 { ac_try='test -z "$ac_cxx_werror_flag"
29706 || test ! -s conftest.err'
29707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708 (eval $ac_try) 2>&5
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); }; } &&
29712 { ac_try='test -s conftest.$ac_objext'
29713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29714 (eval $ac_try) 2>&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); }; }; then
29718 ac_cv_func_isinf_in_math_h=yes
29720 echo "$as_me: failed program was:" >&5
29721 sed 's/^/| /' conftest.$ac_ext >&5
29723 ac_cv_func_isinf_in_math_h=no
29725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29727 ac_cpp='$CPP $CPPFLAGS'
29728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29733 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29734 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29736 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29738 cat >>confdefs.h <<\_ACEOF
29739 #define HAVE_ISINF_IN_MATH_H 1
29744 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29745 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29746 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29747 echo $ECHO_N "(cached) $ECHO_C" >&6
29750 ac_cpp='$CXXCPP $CPPFLAGS'
29751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29755 cat >conftest.$ac_ext <<_ACEOF
29758 cat confdefs.h >>conftest.$ac_ext
29759 cat >>conftest.$ac_ext <<_ACEOF
29760 /* end confdefs.h. */
29770 rm -f conftest.$ac_objext
29771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29772 (eval $ac_compile) 2>conftest.er1
29774 grep -v '^ *+' conftest.er1 >conftest.err
29776 cat conftest.err >&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); } &&
29779 { ac_try='test -z "$ac_cxx_werror_flag"
29780 || test ! -s conftest.err'
29781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782 (eval $ac_try) 2>&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; } &&
29786 { ac_try='test -s conftest.$ac_objext'
29787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788 (eval $ac_try) 2>&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); }; }; then
29792 ac_cv_func_isinf_in_cmath=yes
29794 echo "$as_me: failed program was:" >&5
29795 sed 's/^/| /' conftest.$ac_ext >&5
29797 ac_cv_func_isinf_in_cmath=no
29799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29801 ac_cpp='$CPP $CPPFLAGS'
29802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29807 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29808 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29810 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29812 cat >>confdefs.h <<\_ACEOF
29813 #define HAVE_ISINF_IN_CMATH 1
29818 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29819 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29820 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29821 echo $ECHO_N "(cached) $ECHO_C" >&6
29824 ac_cpp='$CXXCPP $CPPFLAGS'
29825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29829 cat >conftest.$ac_ext <<_ACEOF
29832 cat confdefs.h >>conftest.$ac_ext
29833 cat >>conftest.$ac_ext <<_ACEOF
29834 /* end confdefs.h. */
29839 float f; std::isinf(f)}
29844 rm -f conftest.$ac_objext
29845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29846 (eval $ac_compile) 2>conftest.er1
29848 grep -v '^ *+' conftest.er1 >conftest.err
29850 cat conftest.err >&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); } &&
29853 { ac_try='test -z "$ac_cxx_werror_flag"
29854 || test ! -s conftest.err'
29855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856 (eval $ac_try) 2>&5
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; } &&
29860 { ac_try='test -s conftest.$ac_objext'
29861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862 (eval $ac_try) 2>&5
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); }; }; then
29866 ac_cv_func_std_isinf_in_cmath=yes
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29871 ac_cv_func_std_isinf_in_cmath=no
29873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29875 ac_cpp='$CPP $CPPFLAGS'
29876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29881 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29882 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29884 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29886 cat >>confdefs.h <<\_ACEOF
29887 #define HAVE_STD_ISINF_IN_CMATH 1
29892 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29893 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29894 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29895 echo $ECHO_N "(cached) $ECHO_C" >&6
29898 ac_cpp='$CXXCPP $CPPFLAGS'
29899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29903 cat >conftest.$ac_ext <<_ACEOF
29906 cat confdefs.h >>conftest.$ac_ext
29907 cat >>conftest.$ac_ext <<_ACEOF
29908 /* end confdefs.h. */
29909 #include <ieeefp.h>
29913 float f; finite(f);
29918 rm -f conftest.$ac_objext
29919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29920 (eval $ac_compile) 2>conftest.er1
29922 grep -v '^ *+' conftest.er1 >conftest.err
29924 cat conftest.err >&5
29925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926 (exit $ac_status); } &&
29927 { ac_try='test -z "$ac_cxx_werror_flag"
29928 || test ! -s conftest.err'
29929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29930 (eval $ac_try) 2>&5
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); }; } &&
29934 { ac_try='test -s conftest.$ac_objext'
29935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29936 (eval $ac_try) 2>&5
29938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); }; }; then
29940 ac_cv_func_finite_in_ieeefp_h=yes
29942 echo "$as_me: failed program was:" >&5
29943 sed 's/^/| /' conftest.$ac_ext >&5
29945 ac_cv_func_finite_in_ieeefp_h=no
29947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29949 ac_cpp='$CPP $CPPFLAGS'
29950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29955 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29956 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29958 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29960 cat >>confdefs.h <<\_ACEOF
29961 #define HAVE_FINITE_IN_IEEEFP_H 1
29970 for ac_header in stdlib.h unistd.h
29972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29974 echo "$as_me:$LINENO: checking for $ac_header" >&5
29975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29977 echo $ECHO_N "(cached) $ECHO_C" >&6
29979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29982 # Is the header compilable?
29983 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29985 cat >conftest.$ac_ext <<_ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h. */
29991 $ac_includes_default
29992 #include <$ac_header>
29994 rm -f conftest.$ac_objext
29995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29996 (eval $ac_compile) 2>conftest.er1
29998 grep -v '^ *+' conftest.er1 >conftest.err
30000 cat conftest.err >&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); } &&
30003 { ac_try='test -z "$ac_c_werror_flag"
30004 || test ! -s conftest.err'
30005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30006 (eval $ac_try) 2>&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; } &&
30010 { ac_try='test -s conftest.$ac_objext'
30011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012 (eval $ac_try) 2>&5
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); }; }; then
30016 ac_header_compiler=yes
30018 echo "$as_me: failed program was:" >&5
30019 sed 's/^/| /' conftest.$ac_ext >&5
30021 ac_header_compiler=no
30023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30025 echo "${ECHO_T}$ac_header_compiler" >&6
30027 # Is the header present?
30028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30030 cat >conftest.$ac_ext <<_ACEOF
30033 cat confdefs.h >>conftest.$ac_ext
30034 cat >>conftest.$ac_ext <<_ACEOF
30035 /* end confdefs.h. */
30036 #include <$ac_header>
30038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30041 grep -v '^ *+' conftest.er1 >conftest.err
30043 cat conftest.err >&5
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); } >/dev/null; then
30046 if test -s conftest.err; then
30047 ac_cpp_err=$ac_c_preproc_warn_flag
30048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30055 if test -z "$ac_cpp_err"; then
30056 ac_header_preproc=yes
30058 echo "$as_me: failed program was:" >&5
30059 sed 's/^/| /' conftest.$ac_ext >&5
30061 ac_header_preproc=no
30063 rm -f conftest.err conftest.$ac_ext
30064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30065 echo "${ECHO_T}$ac_header_preproc" >&6
30067 # So? What about this header?
30068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30074 ac_header_preproc=yes
30077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30091 ## ----------------------------------- ##
30092 ## Report this to llvmbugs@cs.uiuc.edu ##
30093 ## ----------------------------------- ##
30096 sed "s/^/$as_me: WARNING: /" >&2
30099 echo "$as_me:$LINENO: checking for $ac_header" >&5
30100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30102 echo $ECHO_N "(cached) $ECHO_C" >&6
30104 eval "$as_ac_Header=\$ac_header_preproc"
30106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30111 cat >>confdefs.h <<_ACEOF
30112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30120 for ac_func in getpagesize
30122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30123 echo "$as_me:$LINENO: checking for $ac_func" >&5
30124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30125 if eval "test \"\${$as_ac_var+set}\" = set"; then
30126 echo $ECHO_N "(cached) $ECHO_C" >&6
30128 cat >conftest.$ac_ext <<_ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h. */
30134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30136 #define $ac_func innocuous_$ac_func
30138 /* System header to define __stub macros and hopefully few prototypes,
30139 which can conflict with char $ac_func (); below.
30140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30141 <limits.h> exists even on freestanding compilers. */
30144 # include <limits.h>
30146 # include <assert.h>
30151 /* Override any gcc2 internal prototype to avoid an error. */
30156 /* We use char because int might match the return type of a gcc2
30157 builtin and then its argument prototype would still apply. */
30159 /* The GNU C library defines this for functions which it implements
30160 to always fail with ENOSYS. Some functions are actually named
30161 something starting with __ and the normal name is an alias. */
30162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30165 char (*f) () = $ac_func;
30174 return f != $ac_func;
30179 rm -f conftest.$ac_objext conftest$ac_exeext
30180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30181 (eval $ac_link) 2>conftest.er1
30183 grep -v '^ *+' conftest.er1 >conftest.err
30185 cat conftest.err >&5
30186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187 (exit $ac_status); } &&
30188 { ac_try='test -z "$ac_c_werror_flag"
30189 || test ! -s conftest.err'
30190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191 (eval $ac_try) 2>&5
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; } &&
30195 { ac_try='test -s conftest$ac_exeext'
30196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30197 (eval $ac_try) 2>&5
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; }; then
30201 eval "$as_ac_var=yes"
30203 echo "$as_me: failed program was:" >&5
30204 sed 's/^/| /' conftest.$ac_ext >&5
30206 eval "$as_ac_var=no"
30208 rm -f conftest.err conftest.$ac_objext \
30209 conftest$ac_exeext conftest.$ac_ext
30211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30213 if test `eval echo '${'$as_ac_var'}'` = yes; then
30214 cat >>confdefs.h <<_ACEOF
30215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30221 echo "$as_me:$LINENO: checking for working mmap" >&5
30222 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30223 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30224 echo $ECHO_N "(cached) $ECHO_C" >&6
30226 if test "$cross_compiling" = yes; then
30227 ac_cv_func_mmap_fixed_mapped=no
30229 cat >conftest.$ac_ext <<_ACEOF
30232 cat confdefs.h >>conftest.$ac_ext
30233 cat >>conftest.$ac_ext <<_ACEOF
30234 /* end confdefs.h. */
30235 $ac_includes_default
30236 /* malloc might have been renamed as rpl_malloc. */
30239 /* Thanks to Mike Haertel and Jim Avera for this test.
30240 Here is a matrix of mmap possibilities:
30241 mmap private not fixed
30242 mmap private fixed at somewhere currently unmapped
30243 mmap private fixed at somewhere already mapped
30244 mmap shared not fixed
30245 mmap shared fixed at somewhere currently unmapped
30246 mmap shared fixed at somewhere already mapped
30247 For private mappings, we should verify that changes cannot be read()
30248 back from the file, nor mmap's back from the file at a different
30249 address. (There have been systems where private was not correctly
30250 implemented like the infamous i386 svr4.0, and systems where the
30251 VM page cache was not coherent with the file system buffer cache
30252 like early versions of FreeBSD and possibly contemporary NetBSD.)
30253 For shared mappings, we should conversely verify that changes get
30254 propagated back to all the places they're supposed to be.
30256 Grep wants private fixed already mapped.
30257 The main things grep needs to know about mmap are:
30258 * does it exist and is it safe to write into the mmap'd area
30259 * how to use it (BSD variants) */
30262 #include <sys/mman.h>
30264 #if !STDC_HEADERS && !HAVE_STDLIB_H
30268 /* This mess was copied from the GNU getpagesize.h. */
30269 #if !HAVE_GETPAGESIZE
30270 /* Assume that all systems that can run configure have sys/param.h. */
30271 # if !HAVE_SYS_PARAM_H
30272 # define HAVE_SYS_PARAM_H 1
30275 # ifdef _SC_PAGESIZE
30276 # define getpagesize() sysconf(_SC_PAGESIZE)
30277 # else /* no _SC_PAGESIZE */
30278 # if HAVE_SYS_PARAM_H
30279 # include <sys/param.h>
30280 # ifdef EXEC_PAGESIZE
30281 # define getpagesize() EXEC_PAGESIZE
30282 # else /* no EXEC_PAGESIZE */
30284 # define getpagesize() NBPG * CLSIZE
30287 # endif /* no CLSIZE */
30288 # else /* no NBPG */
30290 # define getpagesize() NBPC
30291 # else /* no NBPC */
30293 # define getpagesize() PAGESIZE
30294 # endif /* PAGESIZE */
30295 # endif /* no NBPC */
30296 # endif /* no NBPG */
30297 # endif /* no EXEC_PAGESIZE */
30298 # else /* no HAVE_SYS_PARAM_H */
30299 # define getpagesize() 8192 /* punt totally */
30300 # endif /* no HAVE_SYS_PARAM_H */
30301 # endif /* no _SC_PAGESIZE */
30303 #endif /* no HAVE_GETPAGESIZE */
30308 char *data, *data2, *data3;
30312 pagesize = getpagesize ();
30314 /* First, make a file with some known garbage in it. */
30315 data = (char *) malloc (pagesize);
30318 for (i = 0; i < pagesize; ++i)
30319 *(data + i) = rand ();
30321 fd = creat ("conftest.mmap", 0600);
30324 if (write (fd, data, pagesize) != pagesize)
30328 /* Next, try to mmap the file at a fixed address which already has
30329 something else allocated at it. If we can, also make sure that
30330 we see the same garbage. */
30331 fd = open ("conftest.mmap", O_RDWR);
30334 data2 = (char *) malloc (2 * pagesize);
30337 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30338 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30339 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30341 for (i = 0; i < pagesize; ++i)
30342 if (*(data + i) != *(data2 + i))
30345 /* Finally, make sure that changes to the mapped area do not
30346 percolate back to the file as seen by read(). (This is a bug on
30347 some variants of i386 svr4.0.) */
30348 for (i = 0; i < pagesize; ++i)
30349 *(data2 + i) = *(data2 + i) + 1;
30350 data3 = (char *) malloc (pagesize);
30353 if (read (fd, data3, pagesize) != pagesize)
30355 for (i = 0; i < pagesize; ++i)
30356 if (*(data + i) != *(data3 + i))
30362 rm -f conftest$ac_exeext
30363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30364 (eval $ac_link) 2>&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30369 (eval $ac_try) 2>&5
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); }; }; then
30373 ac_cv_func_mmap_fixed_mapped=yes
30375 echo "$as_me: program exited with status $ac_status" >&5
30376 echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30379 ( exit $ac_status )
30380 ac_cv_func_mmap_fixed_mapped=no
30382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30385 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30386 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30387 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30389 cat >>confdefs.h <<\_ACEOF
30390 #define HAVE_MMAP 1
30394 rm -f conftest.mmap
30396 echo "$as_me:$LINENO: checking for mmap of files" >&5
30397 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30398 if test "${ac_cv_func_mmap_file+set}" = set; then
30399 echo $ECHO_N "(cached) $ECHO_C" >&6
30402 ac_cpp='$CPP $CPPFLAGS'
30403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30407 if test "$cross_compiling" = yes; then
30408 ac_cv_func_mmap_file=no
30410 cat >conftest.$ac_ext <<_ACEOF
30414 cat confdefs.h >>conftest.$ac_ext
30415 cat >>conftest.$ac_ext <<_ACEOF
30416 /* end confdefs.h. */
30418 #include <sys/types.h>
30419 #include <sys/mman.h>
30427 fd = creat ("foo",0777);
30428 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30430 return (fd != (int) MAP_FAILED);
30435 rm -f conftest$ac_exeext
30436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30437 (eval $ac_link) 2>&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
30446 ac_cv_func_mmap_file=yes
30448 echo "$as_me: program exited with status $ac_status" >&5
30449 echo "$as_me: failed program was:" >&5
30450 sed 's/^/| /' conftest.$ac_ext >&5
30452 ( exit $ac_status )
30453 ac_cv_func_mmap_file=no
30455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30458 ac_cpp='$CPP $CPPFLAGS'
30459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30465 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30466 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30467 if test "$ac_cv_func_mmap_file" = yes; then
30469 cat >>confdefs.h <<\_ACEOF
30470 #define HAVE_MMAP_FILE
30477 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30478 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30479 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30480 echo $ECHO_N "(cached) $ECHO_C" >&6
30482 if test "$llvm_cv_os_type" = "Interix" ; then
30483 ac_cv_need_dev_zero_for_mmap=yes
30485 ac_cv_need_dev_zero_for_mmap=no
30489 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30490 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30491 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30493 cat >>confdefs.h <<\_ACEOF
30494 #define NEED_DEV_ZERO_FOR_MMAP 1
30498 echo "$as_me:$LINENO: checking for mprotect" >&5
30499 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30500 if test "${ac_cv_func_mprotect+set}" = set; then
30501 echo $ECHO_N "(cached) $ECHO_C" >&6
30503 cat >conftest.$ac_ext <<_ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h. */
30509 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30511 #define mprotect innocuous_mprotect
30513 /* System header to define __stub macros and hopefully few prototypes,
30514 which can conflict with char mprotect (); below.
30515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30516 <limits.h> exists even on freestanding compilers. */
30519 # include <limits.h>
30521 # include <assert.h>
30526 /* Override any gcc2 internal prototype to avoid an error. */
30531 /* We use char because int might match the return type of a gcc2
30532 builtin and then its argument prototype would still apply. */
30534 /* The GNU C library defines this for functions which it implements
30535 to always fail with ENOSYS. Some functions are actually named
30536 something starting with __ and the normal name is an alias. */
30537 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30540 char (*f) () = mprotect;
30549 return f != mprotect;
30554 rm -f conftest.$ac_objext conftest$ac_exeext
30555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30556 (eval $ac_link) 2>conftest.er1
30558 grep -v '^ *+' conftest.er1 >conftest.err
30560 cat conftest.err >&5
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); } &&
30563 { ac_try='test -z "$ac_c_werror_flag"
30564 || test ! -s conftest.err'
30565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30566 (eval $ac_try) 2>&5
30568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569 (exit $ac_status); }; } &&
30570 { ac_try='test -s conftest$ac_exeext'
30571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572 (eval $ac_try) 2>&5
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); }; }; then
30576 ac_cv_func_mprotect=yes
30578 echo "$as_me: failed program was:" >&5
30579 sed 's/^/| /' conftest.$ac_ext >&5
30581 ac_cv_func_mprotect=no
30583 rm -f conftest.err conftest.$ac_objext \
30584 conftest$ac_exeext conftest.$ac_ext
30586 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30587 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30588 if test $ac_cv_func_mprotect = yes; then
30591 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30592 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30593 { (exit 1); exit 1; }; }
30597 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30599 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30600 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30602 if test "$ac_cv_func_mmap_file" = "no"
30604 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30605 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30609 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30610 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30611 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30612 echo $ECHO_N "(cached) $ECHO_C" >&6
30614 llvm_cv_llvmgcc_sanity="no"
30615 if test -x "$LLVMGCC" ; then
30616 cp /dev/null conftest.c
30617 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30618 if test $? -eq 0 ; then
30619 llvm_cv_llvmgcc_sanity="yes"
30624 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30625 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30627 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30628 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30629 LLVMCC1=$llvmcc1path
30631 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30632 LLVMCC1PLUS=$llvmcc1pluspath
30634 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30635 LLVMGCCDIR=$llvmgccdir
30639 SHLIBEXT=$libltdl_cv_shlibext
30642 # Translate the various configuration directories and other basic
30643 # information into substitutions that will end up in Makefile.config.in
30644 # that these configured values can be used by the makefiles
30645 eval LLVM_PREFIX="${prefix}";
30646 eval LLVM_BINDIR="${prefix}/bin";
30647 eval LLVM_LIBDIR="${prefix}/lib";
30648 eval LLVM_DATADIR="${prefix}/share/llvm";
30649 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30650 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30651 eval LLVM_INCLUDEDIR="${prefix}/include";
30652 eval LLVM_INFODIR="${prefix}/info";
30653 eval LLVM_MANDIR="${prefix}/man";
30654 LLVM_CONFIGTIME=`date`
30666 # Place the various directores into the config.h file as #defines so that we
30667 # can know about the installation paths within LLVM.
30669 cat >>confdefs.h <<_ACEOF
30670 #define LLVM_PREFIX "$LLVM_PREFIX"
30674 cat >>confdefs.h <<_ACEOF
30675 #define LLVM_BINDIR "$LLVM_BINDIR"
30679 cat >>confdefs.h <<_ACEOF
30680 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30684 cat >>confdefs.h <<_ACEOF
30685 #define LLVM_DATADIR "$LLVM_DATADIR"
30689 cat >>confdefs.h <<_ACEOF
30690 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30694 cat >>confdefs.h <<_ACEOF
30695 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30699 cat >>confdefs.h <<_ACEOF
30700 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30704 cat >>confdefs.h <<_ACEOF
30705 #define LLVM_INFODIR "$LLVM_INFODIR"
30709 cat >>confdefs.h <<_ACEOF
30710 #define LLVM_MANDIR "$LLVM_MANDIR"
30714 cat >>confdefs.h <<_ACEOF
30715 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30720 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30722 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30724 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30726 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30728 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30731 ac_config_files="$ac_config_files Makefile.config"
30734 ac_config_files="$ac_config_files docs/doxygen.cfg"
30737 ac_config_commands="$ac_config_commands setup"
30739 ac_config_commands="$ac_config_commands Makefile"
30742 ac_config_commands="$ac_config_commands Makefile.common"
30745 ac_config_commands="$ac_config_commands examples/Makefile"
30748 ac_config_commands="$ac_config_commands lib/Makefile"
30751 ac_config_commands="$ac_config_commands runtime/Makefile"
30754 ac_config_commands="$ac_config_commands test/Makefile"
30757 ac_config_commands="$ac_config_commands test/Makefile.tests"
30760 ac_config_commands="$ac_config_commands tools/Makefile"
30763 ac_config_commands="$ac_config_commands utils/Makefile"
30766 ac_config_commands="$ac_config_commands projects/Makefile"
30770 cat >confcache <<\_ACEOF
30771 # This file is a shell script that caches the results of configure
30772 # tests run on this system so they can be shared between configure
30773 # scripts and configure runs, see configure's option --config-cache.
30774 # It is not useful on other systems. If it contains results you don't
30775 # want to keep, you may remove or edit it.
30777 # config.status only pays attention to the cache file if you give it
30778 # the --recheck option to rerun configure.
30780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30782 # following values.
30786 # The following way of writing the cache mishandles newlines in values,
30787 # but we know of no workaround that is simple, portable, and efficient.
30788 # So, don't put newlines in cache variables' values.
30789 # Ultrix sh set writes to stderr and can't be redirected directly,
30790 # and sets the high bit in the cache file unless we assign to the vars.
30793 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30795 # `set' does not quote correctly, so add quotes (double-quote
30796 # substitution turns \\\\ into \\, and sed turns \\ into \).
30799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30802 # `set' quotes correctly as required by POSIX, so do not add quotes.
30804 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30813 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30815 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30816 if test -w $cache_file; then
30817 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30818 cat confcache >$cache_file
30820 echo "not updating unwritable cache $cache_file"
30825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30826 # Let make expand exec_prefix.
30827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30829 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30830 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30831 # trailing colons and then remove the whole line if VPATH becomes empty
30832 # (actually we leave an empty line to preserve line numbers).
30833 if test "x$srcdir" = x.; then
30834 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30835 s/:*\$(srcdir):*/:/;
30836 s/:*\${srcdir}:*/:/;
30838 s/^\([^=]*=[ ]*\):*/\1/;
30844 DEFS=-DHAVE_CONFIG_H
30848 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30849 # 1. Remove the extension, and $U if already installed.
30850 ac_i=`echo "$ac_i" |
30851 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30853 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30854 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30856 LIBOBJS=$ac_libobjs
30858 LTLIBOBJS=$ac_ltlibobjs
30861 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30862 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30863 Usually this means the macro was only invoked conditionally." >&5
30864 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30865 Usually this means the macro was only invoked conditionally." >&2;}
30866 { (exit 1); exit 1; }; }
30868 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30869 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30870 Usually this means the macro was only invoked conditionally." >&5
30871 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30872 Usually this means the macro was only invoked conditionally." >&2;}
30873 { (exit 1); exit 1; }; }
30876 : ${CONFIG_STATUS=./config.status}
30877 ac_clean_files_save=$ac_clean_files
30878 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30879 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30880 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30881 cat >$CONFIG_STATUS <<_ACEOF
30883 # Generated by $as_me.
30884 # Run this file to recreate the current configuration.
30885 # Compiler output produced by configure, useful for debugging
30886 # configure, is in config.log if it exists.
30889 ac_cs_recheck=false
30891 SHELL=\${CONFIG_SHELL-$SHELL}
30894 cat >>$CONFIG_STATUS <<\_ACEOF
30895 ## --------------------- ##
30896 ## M4sh Initialization. ##
30897 ## --------------------- ##
30899 # Be Bourne compatible
30900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30903 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30904 # is contrary to our usage. Disable this feature.
30905 alias -g '${1+"$@"}'='"$@"'
30906 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30909 DUALCASE=1; export DUALCASE # for MKS sh
30911 # Support unset when possible.
30912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30919 # Work around bugs in pre-3.0 UWIN ksh.
30920 $as_unset ENV MAIL MAILPATH
30927 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30928 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30929 LC_TELEPHONE LC_TIME
30931 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30932 eval $as_var=C; export $as_var
30938 # Required to use basename.
30939 if expr a : '\(a\)' >/dev/null 2>&1; then
30945 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30946 as_basename=basename
30952 # Name of the executable.
30953 as_me=`$as_basename "$0" ||
30954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30955 X"$0" : 'X\(//\)$' \| \
30956 X"$0" : 'X\(/\)$' \| \
30957 . : '\(.\)' 2>/dev/null ||
30959 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30960 /^X\/\(\/\/\)$/{ s//\1/; q; }
30961 /^X\/\(\/\).*/{ s//\1/; q; }
30965 # PATH needs CR, and LINENO needs CR and PATH.
30966 # Avoid depending upon Character Ranges.
30967 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30968 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30969 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30970 as_cr_digits='0123456789'
30971 as_cr_alnum=$as_cr_Letters$as_cr_digits
30973 # The user is always right.
30974 if test "${PATH_SEPARATOR+set}" != set; then
30975 echo "#! /bin/sh" >conf$$.sh
30976 echo "exit 0" >>conf$$.sh
30978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30987 as_lineno_1=$LINENO
30988 as_lineno_2=$LINENO
30989 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30990 test "x$as_lineno_1" != "x$as_lineno_2" &&
30991 test "x$as_lineno_3" = "x$as_lineno_2" || {
30992 # Find who we are. Look in the path if we contain no path at all
30995 *[\\/]* ) as_myself=$0 ;;
30996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30997 for as_dir in $PATH
31000 test -z "$as_dir" && as_dir=.
31001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31006 # We did not find ourselves, most probably we were run as `sh COMMAND'
31007 # in which case we are not to be found in the path.
31008 if test "x$as_myself" = x; then
31011 if test ! -f "$as_myself"; then
31012 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31013 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31014 { (exit 1); exit 1; }; }
31016 case $CONFIG_SHELL in
31018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31019 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31022 test -z "$as_dir" && as_dir=.
31023 for as_base in sh bash ksh sh5; do
31026 if ("$as_dir/$as_base" -c '
31027 as_lineno_1=$LINENO
31028 as_lineno_2=$LINENO
31029 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31030 test "x$as_lineno_1" != "x$as_lineno_2" &&
31031 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31032 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31033 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31034 CONFIG_SHELL=$as_dir/$as_base
31035 export CONFIG_SHELL
31036 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31044 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31045 # uniformly replaced by the line number. The first 'sed' inserts a
31046 # line-number line before each line; the second 'sed' does the real
31047 # work. The second script uses 'N' to pair each line-number line
31048 # with the numbered line, and appends trailing '-' during
31049 # substitution so that $LINENO is not a special case at line end.
31050 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31051 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31052 sed '=' <$as_myself |
31057 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31060 s,^['$as_cr_digits']*\n,,
31061 ' >$as_me.lineno &&
31062 chmod +x $as_me.lineno ||
31063 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31064 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31065 { (exit 1); exit 1; }; }
31067 # Don't try to exec as it changes $[0], causing all sort of problems
31068 # (the dirname of $[0] is not the place where we might find the
31069 # original and so on. Autoconf is especially sensible to this).
31071 # Exit status is that of the last command.
31076 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31077 *c*,-n*) ECHO_N= ECHO_C='
31079 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31080 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31083 if expr a : '\(a\)' >/dev/null 2>&1; then
31089 rm -f conf$$ conf$$.exe conf$$.file
31091 if ln -s conf$$.file conf$$ 2>/dev/null; then
31092 # We could just check for DJGPP; but this test a) works b) is more generic
31093 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31094 if test -f conf$$.exe; then
31095 # Don't use ln at all; we don't have any links
31100 elif ln conf$$.file conf$$ 2>/dev/null; then
31105 rm -f conf$$ conf$$.exe conf$$.file
31107 if mkdir -p . 2>/dev/null; then
31110 test -d ./-p && rmdir ./-p
31114 as_executable_p="test -f"
31116 # Sed expression to map a string onto a valid CPP name.
31117 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31119 # Sed expression to map a string onto a valid variable name.
31120 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31124 # We need space, tab and new line, in precisely that order.
31134 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31135 # report actual input values of CONFIG_FILES etc. instead of their
31136 # values after options handling. Logging --version etc. is OK.
31140 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31141 ## Running $as_me. ##
31146 This file was extended by llvm $as_me 1.7cvs, which was
31147 generated by GNU Autoconf 2.59. Invocation command line was
31149 CONFIG_FILES = $CONFIG_FILES
31150 CONFIG_HEADERS = $CONFIG_HEADERS
31151 CONFIG_LINKS = $CONFIG_LINKS
31152 CONFIG_COMMANDS = $CONFIG_COMMANDS
31156 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31160 # Files that config.status was made for.
31161 if test -n "$ac_config_files"; then
31162 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31165 if test -n "$ac_config_headers"; then
31166 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31169 if test -n "$ac_config_links"; then
31170 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31173 if test -n "$ac_config_commands"; then
31174 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31177 cat >>$CONFIG_STATUS <<\_ACEOF
31180 \`$as_me' instantiates files from templates according to the
31181 current configuration.
31183 Usage: $0 [OPTIONS] [FILE]...
31185 -h, --help print this help, then exit
31186 -V, --version print version number, then exit
31187 -q, --quiet do not print progress messages
31188 -d, --debug don't remove temporary files
31189 --recheck update $as_me by reconfiguring in the same conditions
31190 --file=FILE[:TEMPLATE]
31191 instantiate the configuration file FILE
31192 --header=FILE[:TEMPLATE]
31193 instantiate the configuration header FILE
31195 Configuration files:
31198 Configuration headers:
31201 Configuration commands:
31204 Report bugs to <bug-autoconf@gnu.org>."
31207 cat >>$CONFIG_STATUS <<_ACEOF
31209 llvm config.status 1.7cvs
31210 configured by $0, generated by GNU Autoconf 2.59,
31211 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31213 Copyright (C) 2003 Free Software Foundation, Inc.
31214 This config.status script is free software; the Free Software Foundation
31215 gives unlimited permission to copy, distribute and modify it."
31220 cat >>$CONFIG_STATUS <<\_ACEOF
31221 # If no file are specified by the user, then we need to provide default
31222 # value. By we need to know if files were specified by the user.
31228 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31229 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31237 *) # This is not an option, so the user has probably given explicit
31240 ac_need_defaults=false;;
31244 # Handling of the options.
31246 cat >>$CONFIG_STATUS <<\_ACEOF
31247 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31249 --version | --vers* | -V )
31250 echo "$ac_cs_version"; exit 0 ;;
31252 # Conflict between --help and --header
31253 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31254 Try \`$0 --help' for more information." >&5
31255 echo "$as_me: error: ambiguous option: $1
31256 Try \`$0 --help' for more information." >&2;}
31257 { (exit 1); exit 1; }; };;
31258 --help | --hel | -h )
31259 echo "$ac_cs_usage"; exit 0 ;;
31260 --debug | --d* | -d )
31262 --file | --fil | --fi | --f )
31264 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31265 ac_need_defaults=false;;
31266 --header | --heade | --head | --hea )
31268 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31269 ac_need_defaults=false;;
31270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31271 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31274 # This is an error.
31275 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31276 Try \`$0 --help' for more information." >&5
31277 echo "$as_me: error: unrecognized option: $1
31278 Try \`$0 --help' for more information." >&2;}
31279 { (exit 1); exit 1; }; } ;;
31281 *) ac_config_targets="$ac_config_targets $1" ;;
31287 ac_configure_extra_args=
31289 if $ac_cs_silent; then
31291 ac_configure_extra_args="$ac_configure_extra_args --silent"
31295 cat >>$CONFIG_STATUS <<_ACEOF
31296 if \$ac_cs_recheck; then
31297 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31298 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31303 cat >>$CONFIG_STATUS <<_ACEOF
31305 # INIT-COMMANDS section.
31308 llvm_src="${srcdir}"
31314 cat >>$CONFIG_STATUS <<\_ACEOF
31315 for ac_config_target in $ac_config_targets
31317 case "$ac_config_target" in
31318 # Handling of arguments.
31319 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31320 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31321 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31322 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31323 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31324 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31325 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31326 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31327 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31328 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31329 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31330 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31331 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31332 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31333 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31334 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31335 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31336 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31337 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31338 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31339 { (exit 1); exit 1; }; };;
31343 # If the user did not use the arguments to specify the items to instantiate,
31344 # then the envvar interface is used. Set only those that are not.
31345 # We use the long form for the default assignment because of an extremely
31346 # bizarre bug on SunOS 4.1.3.
31347 if $ac_need_defaults; then
31348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31349 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31350 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31353 # Have a temporary directory for convenience. Make it in the build tree
31354 # simply because there is no reason to put it here, and in addition,
31355 # creating and moving files from /tmp can sometimes cause problems.
31356 # Create a temporary directory, and hook for its removal unless debugging.
31359 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31360 trap '{ (exit 1); exit 1; }' 1 2 13 15
31363 # Create a (secure) tmp directory for tmp files.
31366 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31367 test -n "$tmp" && test -d "$tmp"
31370 tmp=./confstat$$-$RANDOM
31371 (umask 077 && mkdir $tmp)
31374 echo "$me: cannot create a temporary directory in ." >&2
31375 { (exit 1); exit 1; }
31380 cat >>$CONFIG_STATUS <<_ACEOF
31383 # CONFIG_FILES section.
31386 # No need to generate the scripts if there are no CONFIG_FILES.
31387 # This happens for instance when ./config.status config.h
31388 if test -n "\$CONFIG_FILES"; then
31389 # Protect against being on the right side of a sed subst in config.status.
31390 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31391 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31392 s,@SHELL@,$SHELL,;t t
31393 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31394 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31395 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31396 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31397 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31398 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31399 s,@exec_prefix@,$exec_prefix,;t t
31400 s,@prefix@,$prefix,;t t
31401 s,@program_transform_name@,$program_transform_name,;t t
31402 s,@bindir@,$bindir,;t t
31403 s,@sbindir@,$sbindir,;t t
31404 s,@libexecdir@,$libexecdir,;t t
31405 s,@datadir@,$datadir,;t t
31406 s,@sysconfdir@,$sysconfdir,;t t
31407 s,@sharedstatedir@,$sharedstatedir,;t t
31408 s,@localstatedir@,$localstatedir,;t t
31409 s,@libdir@,$libdir,;t t
31410 s,@includedir@,$includedir,;t t
31411 s,@oldincludedir@,$oldincludedir,;t t
31412 s,@infodir@,$infodir,;t t
31413 s,@mandir@,$mandir,;t t
31414 s,@build_alias@,$build_alias,;t t
31415 s,@host_alias@,$host_alias,;t t
31416 s,@target_alias@,$target_alias,;t t
31417 s,@DEFS@,$DEFS,;t t
31418 s,@ECHO_C@,$ECHO_C,;t t
31419 s,@ECHO_N@,$ECHO_N,;t t
31420 s,@ECHO_T@,$ECHO_T,;t t
31421 s,@LIBS@,$LIBS,;t t
31422 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31423 s,@subdirs@,$subdirs,;t t
31424 s,@build@,$build,;t t
31425 s,@build_cpu@,$build_cpu,;t t
31426 s,@build_vendor@,$build_vendor,;t t
31427 s,@build_os@,$build_os,;t t
31428 s,@host@,$host,;t t
31429 s,@host_cpu@,$host_cpu,;t t
31430 s,@host_vendor@,$host_vendor,;t t
31431 s,@host_os@,$host_os,;t t
31432 s,@target@,$target,;t t
31433 s,@target_cpu@,$target_cpu,;t t
31434 s,@target_vendor@,$target_vendor,;t t
31435 s,@target_os@,$target_os,;t t
31437 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31438 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31439 s,@ARCH@,$ARCH,;t t
31440 s,@ENDIAN@,$ENDIAN,;t t
31442 s,@CFLAGS@,$CFLAGS,;t t
31443 s,@LDFLAGS@,$LDFLAGS,;t t
31444 s,@CPPFLAGS@,$CPPFLAGS,;t t
31445 s,@ac_ct_CC@,$ac_ct_CC,;t t
31446 s,@EXEEXT@,$EXEEXT,;t t
31447 s,@OBJEXT@,$OBJEXT,;t t
31448 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31449 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31451 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31452 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31453 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31456 s,@CXXFLAGS@,$CXXFLAGS,;t t
31457 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31459 s,@LEXLIB@,$LEXLIB,;t t
31460 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31461 s,@FLEX@,$FLEX,;t t
31462 s,@YACC@,$YACC,;t t
31463 s,@BISON@,$BISON,;t t
31464 s,@ifGNUmake@,$ifGNUmake,;t t
31465 s,@LN_S@,$LN_S,;t t
31468 s,@DATE@,$DATE,;t t
31469 s,@FIND@,$FIND,;t t
31470 s,@GREP@,$GREP,;t t
31471 s,@MKDIR@,$MKDIR,;t t
31473 s,@RANLIB@,$RANLIB,;t t
31474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31478 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31480 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31481 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31482 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31483 s,@BZIP2@,$BZIP2,;t t
31485 s,@DOXYGEN@,$DOXYGEN,;t t
31486 s,@ETAGS@,$ETAGS,;t t
31487 s,@GROFF@,$GROFF,;t t
31488 s,@GZIP@,$GZIP,;t t
31489 s,@POD2HTML@,$POD2HTML,;t t
31490 s,@POD2MAN@,$POD2MAN,;t t
31491 s,@RUNTEST@,$RUNTEST,;t t
31492 s,@TCLSH@,$TCLSH,;t t
31494 s,@EGREP@,$EGREP,;t t
31495 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31496 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31497 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31498 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31499 s,@LIBADD_DL@,$LIBADD_DL,;t t
31500 s,@ECHO@,$ECHO,;t t
31502 s,@ac_ct_AR@,$ac_ct_AR,;t t
31503 s,@STRIP@,$STRIP,;t t
31504 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31505 s,@CXXCPP@,$CXXCPP,;t t
31507 s,@FFLAGS@,$FFLAGS,;t t
31508 s,@ac_ct_F77@,$ac_ct_F77,;t t
31509 s,@LIBTOOL@,$LIBTOOL,;t t
31510 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31511 s,@LLVMGCC@,$LLVMGCC,;t t
31512 s,@LLVMGXX@,$LLVMGXX,;t t
31513 s,@ALLOCA@,$ALLOCA,;t t
31514 s,@MMAP_FILE@,$MMAP_FILE,;t t
31515 s,@LLVMCC1@,$LLVMCC1,;t t
31516 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31517 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31518 s,@SHLIBEXT@,$SHLIBEXT,;t t
31519 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31520 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31521 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31522 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31523 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31524 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31525 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31526 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31527 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31528 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31529 s,@LIBOBJS@,$LIBOBJS,;t t
31530 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31535 cat >>$CONFIG_STATUS <<\_ACEOF
31536 # Split the substitutions into bite-sized pieces for seds with
31537 # small command number limits, like on Digital OSF/1 and HP-UX.
31538 ac_max_sed_lines=48
31539 ac_sed_frag=1 # Number of current file.
31540 ac_beg=1 # First line for current file.
31541 ac_end=$ac_max_sed_lines # Line after last line for current file.
31544 while $ac_more_lines; do
31545 if test $ac_beg -gt 1; then
31546 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31548 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31550 if test ! -s $tmp/subs.frag; then
31551 ac_more_lines=false
31553 # The purpose of the label and of the branching condition is to
31554 # speed up the sed processing (if there are no `@' at all, there
31555 # is no need to browse any of the substitutions).
31556 # These are the two extra sed commands mentioned above.
31558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31559 if test -z "$ac_sed_cmds"; then
31560 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31562 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31564 ac_sed_frag=`expr $ac_sed_frag + 1`
31566 ac_end=`expr $ac_end + $ac_max_sed_lines`
31569 if test -z "$ac_sed_cmds"; then
31572 fi # test -n "$CONFIG_FILES"
31575 cat >>$CONFIG_STATUS <<\_ACEOF
31576 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31577 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31579 - | *:- | *:-:* ) # input from stdin
31581 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31582 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31583 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31584 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31585 * ) ac_file_in=$ac_file.in ;;
31588 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31589 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31591 X"$ac_file" : 'X\(//\)[^/]' \| \
31592 X"$ac_file" : 'X\(//\)$' \| \
31593 X"$ac_file" : 'X\(/\)' \| \
31594 . : '\(.\)' 2>/dev/null ||
31596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31598 /^X\(\/\/\)$/{ s//\1/; q; }
31599 /^X\(\/\).*/{ s//\1/; q; }
31601 { if $as_mkdir_p; then
31606 while test ! -d "$as_dir"; do
31607 as_dirs="$as_dir $as_dirs"
31608 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31610 X"$as_dir" : 'X\(//\)[^/]' \| \
31611 X"$as_dir" : 'X\(//\)$' \| \
31612 X"$as_dir" : 'X\(/\)' \| \
31613 . : '\(.\)' 2>/dev/null ||
31615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31617 /^X\(\/\/\)$/{ s//\1/; q; }
31618 /^X\(\/\).*/{ s//\1/; q; }
31621 test ! -n "$as_dirs" || mkdir $as_dirs
31622 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31623 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31624 { (exit 1); exit 1; }; }; }
31628 if test "$ac_dir" != .; then
31629 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31630 # A "../" for each directory in $ac_dir_suffix.
31631 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31633 ac_dir_suffix= ac_top_builddir=
31637 .) # No --srcdir option. We are building in place.
31639 if test -z "$ac_top_builddir"; then
31642 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31644 [\\/]* | ?:[\\/]* ) # Absolute path.
31645 ac_srcdir=$srcdir$ac_dir_suffix;
31646 ac_top_srcdir=$srcdir ;;
31647 *) # Relative path.
31648 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31649 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31652 # Do not use `cd foo && pwd` to compute absolute paths, because
31653 # the directories may not exist.
31655 .) ac_abs_builddir="$ac_dir";;
31658 .) ac_abs_builddir=`pwd`;;
31659 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31660 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31663 case $ac_abs_builddir in
31664 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31666 case ${ac_top_builddir}. in
31667 .) ac_abs_top_builddir=$ac_abs_builddir;;
31668 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31669 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31672 case $ac_abs_builddir in
31673 .) ac_abs_srcdir=$ac_srcdir;;
31676 .) ac_abs_srcdir=$ac_abs_builddir;;
31677 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31678 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31681 case $ac_abs_builddir in
31682 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31684 case $ac_top_srcdir in
31685 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31686 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31687 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31693 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31694 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31697 if test x"$ac_file" != x-; then
31698 { echo "$as_me:$LINENO: creating $ac_file" >&5
31699 echo "$as_me: creating $ac_file" >&6;}
31702 # Let's still pretend it is `configure' which instantiates (i.e., don't
31703 # use $as_me), people would be surprised to read:
31704 # /* config.h. Generated by config.status. */
31705 if test x"$ac_file" = x-; then
31708 configure_input="$ac_file. "
31710 configure_input=$configure_input"Generated from `echo $ac_file_in |
31711 sed 's,.*/,,'` by configure."
31713 # First look for the input files in the build tree, otherwise in the
31715 ac_file_inputs=`IFS=:
31716 for f in $ac_file_in; do
31718 -) echo $tmp/stdin ;;
31720 # Absolute (can't be DOS-style, as IFS=:)
31721 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31722 echo "$as_me: error: cannot find input file: $f" >&2;}
31723 { (exit 1); exit 1; }; }
31726 if test -f "$f"; then
31729 elif test -f "$srcdir/$f"; then
31734 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31735 echo "$as_me: error: cannot find input file: $f" >&2;}
31736 { (exit 1); exit 1; }; }
31739 done` || { (exit 1); exit 1; }
31741 cat >>$CONFIG_STATUS <<_ACEOF
31745 cat >>$CONFIG_STATUS <<\_ACEOF
31747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31748 s,@configure_input@,$configure_input,;t t
31749 s,@srcdir@,$ac_srcdir,;t t
31750 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31751 s,@top_srcdir@,$ac_top_srcdir,;t t
31752 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31753 s,@builddir@,$ac_builddir,;t t
31754 s,@abs_builddir@,$ac_abs_builddir,;t t
31755 s,@top_builddir@,$ac_top_builddir,;t t
31756 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31757 s,@INSTALL@,$ac_INSTALL,;t t
31758 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31760 if test x"$ac_file" != x-; then
31761 mv $tmp/out $ac_file
31769 cat >>$CONFIG_STATUS <<\_ACEOF
31772 # CONFIG_HEADER section.
31775 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31776 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31778 # ac_d sets the value in "#define NAME VALUE" lines.
31779 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31780 ac_dB='[ ].*$,\1#\2'
31783 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31784 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31785 ac_uB='$,\1#\2define\3'
31789 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31790 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31792 - | *:- | *:-:* ) # input from stdin
31794 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31795 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31796 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31797 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31798 * ) ac_file_in=$ac_file.in ;;
31801 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31802 echo "$as_me: creating $ac_file" >&6;}
31804 # First look for the input files in the build tree, otherwise in the
31806 ac_file_inputs=`IFS=:
31807 for f in $ac_file_in; do
31809 -) echo $tmp/stdin ;;
31811 # Absolute (can't be DOS-style, as IFS=:)
31812 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31813 echo "$as_me: error: cannot find input file: $f" >&2;}
31814 { (exit 1); exit 1; }; }
31815 # Do quote $f, to prevent DOS paths from being IFS'd.
31818 if test -f "$f"; then
31821 elif test -f "$srcdir/$f"; then
31826 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31827 echo "$as_me: error: cannot find input file: $f" >&2;}
31828 { (exit 1); exit 1; }; }
31831 done` || { (exit 1); exit 1; }
31832 # Remove the trailing spaces.
31833 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31837 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31838 # `conftest.undefs', that substitutes the proper values into
31839 # config.h.in to produce config.h. The first handles `#define'
31840 # templates, and the second `#undef' templates.
31841 # And first: Protect against being on the right side of a sed subst in
31842 # config.status. Protect against being in an unquoted here document
31843 # in config.status.
31844 rm -f conftest.defines conftest.undefs
31845 # Using a here document instead of a string reduces the quoting nightmare.
31846 # Putting comments in sed scripts is not portable.
31848 # `end' is used to avoid that the second main sed command (meant for
31849 # 0-ary CPP macros) applies to n-ary macro definitions.
31850 # See the Autoconf documentation for `clear'.
31851 cat >confdef2sed.sed <<\_ACEOF
31856 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31858 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31861 # If some macros were called several times there might be several times
31862 # the same #defines, which is useless. Nevertheless, we may not want to
31863 # sort them, since we want the *last* AC-DEFINE to be honored.
31864 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31865 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31866 rm -f confdef2sed.sed
31868 # This sed command replaces #undef with comments. This is necessary, for
31869 # example, in the case of _POSIX_SOURCE, which is predefined and required
31870 # on some systems where configure will not decide to define it.
31871 cat >>conftest.undefs <<\_ACEOF
31872 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31875 # Break up conftest.defines because some shells have a limit on the size
31876 # of here documents, and old seds have small limits too (100 cmds).
31877 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31878 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31879 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31880 echo ' :' >>$CONFIG_STATUS
31881 rm -f conftest.tail
31882 while grep . conftest.defines >/dev/null
31884 # Write a limited-size here document to $tmp/defines.sed.
31885 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31886 # Speed up: don't consider the non `#define' lines.
31887 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31888 # Work around the forget-to-reset-the-flag bug.
31889 echo 't clr' >>$CONFIG_STATUS
31890 echo ': clr' >>$CONFIG_STATUS
31891 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31893 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31895 mv $tmp/out $tmp/in
31897 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31898 rm -f conftest.defines
31899 mv conftest.tail conftest.defines
31901 rm -f conftest.defines
31902 echo ' fi # grep' >>$CONFIG_STATUS
31903 echo >>$CONFIG_STATUS
31905 # Break up conftest.undefs because some shells have a limit on the size
31906 # of here documents, and old seds have small limits too (100 cmds).
31907 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31908 rm -f conftest.tail
31909 while grep . conftest.undefs >/dev/null
31911 # Write a limited-size here document to $tmp/undefs.sed.
31912 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31913 # Speed up: don't consider the non `#undef'
31914 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31915 # Work around the forget-to-reset-the-flag bug.
31916 echo 't clr' >>$CONFIG_STATUS
31917 echo ': clr' >>$CONFIG_STATUS
31918 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31920 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31922 mv $tmp/out $tmp/in
31924 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31925 rm -f conftest.undefs
31926 mv conftest.tail conftest.undefs
31928 rm -f conftest.undefs
31930 cat >>$CONFIG_STATUS <<\_ACEOF
31931 # Let's still pretend it is `configure' which instantiates (i.e., don't
31932 # use $as_me), people would be surprised to read:
31933 # /* config.h. Generated by config.status. */
31934 if test x"$ac_file" = x-; then
31935 echo "/* Generated by configure. */" >$tmp/config.h
31937 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31939 cat $tmp/in >>$tmp/config.h
31941 if test x"$ac_file" != x-; then
31942 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31943 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31944 echo "$as_me: $ac_file is unchanged" >&6;}
31946 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31948 X"$ac_file" : 'X\(//\)[^/]' \| \
31949 X"$ac_file" : 'X\(//\)$' \| \
31950 X"$ac_file" : 'X\(/\)' \| \
31951 . : '\(.\)' 2>/dev/null ||
31953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31955 /^X\(\/\/\)$/{ s//\1/; q; }
31956 /^X\(\/\).*/{ s//\1/; q; }
31958 { if $as_mkdir_p; then
31963 while test ! -d "$as_dir"; do
31964 as_dirs="$as_dir $as_dirs"
31965 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31967 X"$as_dir" : 'X\(//\)[^/]' \| \
31968 X"$as_dir" : 'X\(//\)$' \| \
31969 X"$as_dir" : 'X\(/\)' \| \
31970 . : '\(.\)' 2>/dev/null ||
31972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31974 /^X\(\/\/\)$/{ s//\1/; q; }
31975 /^X\(\/\).*/{ s//\1/; q; }
31978 test ! -n "$as_dirs" || mkdir $as_dirs
31979 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31980 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31981 { (exit 1); exit 1; }; }; }
31984 mv $tmp/config.h $ac_file
31988 rm -f $tmp/config.h
31992 cat >>$CONFIG_STATUS <<\_ACEOF
31995 # CONFIG_COMMANDS section.
31997 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31998 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31999 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32000 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32001 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32002 X"$ac_dest" : 'X\(//\)[^/]' \| \
32003 X"$ac_dest" : 'X\(//\)$' \| \
32004 X"$ac_dest" : 'X\(/\)' \| \
32005 . : '\(.\)' 2>/dev/null ||
32007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32009 /^X\(\/\/\)$/{ s//\1/; q; }
32010 /^X\(\/\).*/{ s//\1/; q; }
32012 { if $as_mkdir_p; then
32017 while test ! -d "$as_dir"; do
32018 as_dirs="$as_dir $as_dirs"
32019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32021 X"$as_dir" : 'X\(//\)[^/]' \| \
32022 X"$as_dir" : 'X\(//\)$' \| \
32023 X"$as_dir" : 'X\(/\)' \| \
32024 . : '\(.\)' 2>/dev/null ||
32026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32028 /^X\(\/\/\)$/{ s//\1/; q; }
32029 /^X\(\/\).*/{ s//\1/; q; }
32032 test ! -n "$as_dirs" || mkdir $as_dirs
32033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32035 { (exit 1); exit 1; }; }; }
32039 if test "$ac_dir" != .; then
32040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32041 # A "../" for each directory in $ac_dir_suffix.
32042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32044 ac_dir_suffix= ac_top_builddir=
32048 .) # No --srcdir option. We are building in place.
32050 if test -z "$ac_top_builddir"; then
32053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32055 [\\/]* | ?:[\\/]* ) # Absolute path.
32056 ac_srcdir=$srcdir$ac_dir_suffix;
32057 ac_top_srcdir=$srcdir ;;
32058 *) # Relative path.
32059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32063 # Do not use `cd foo && pwd` to compute absolute paths, because
32064 # the directories may not exist.
32066 .) ac_abs_builddir="$ac_dir";;
32069 .) ac_abs_builddir=`pwd`;;
32070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32071 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32074 case $ac_abs_builddir in
32075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32077 case ${ac_top_builddir}. in
32078 .) ac_abs_top_builddir=$ac_abs_builddir;;
32079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32083 case $ac_abs_builddir in
32084 .) ac_abs_srcdir=$ac_srcdir;;
32087 .) ac_abs_srcdir=$ac_abs_builddir;;
32088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32092 case $ac_abs_builddir in
32093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32095 case $ac_top_srcdir in
32096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32103 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32104 echo "$as_me: executing $ac_dest commands" >&6;}
32106 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32107 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32108 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32109 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32110 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32111 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32112 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32113 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32114 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32115 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32116 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32117 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32118 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32119 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32120 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32121 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32122 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32123 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32124 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32125 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32130 cat >>$CONFIG_STATUS <<\_ACEOF
32132 { (exit 0); exit 0; }
32134 chmod +x $CONFIG_STATUS
32135 ac_clean_files=$ac_clean_files_save
32138 # configure is writing to config.log, and then calls config.status.
32139 # config.status does its own redirection, appending to config.log.
32140 # Unfortunately, on DOS this fails, as config.log is still kept open
32141 # by configure, so config.status won't be able to write to it; its
32142 # output is simply discarded. So we exec the FD to /dev/null,
32143 # effectively closing config.log, so it can be properly (re)opened and
32144 # appended to by config.status. When coming back to configure, we
32145 # need to make the FD available again.
32146 if test "$no_create" != yes; then
32148 ac_config_status_args=
32149 test "$silent" = yes &&
32150 ac_config_status_args="$ac_config_status_args --quiet"
32152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32155 # would make configure fail if this is the last instruction.
32156 $ac_cs_success || { (exit 1); exit 1; }
32160 # CONFIG_SUBDIRS section.
32162 if test "$no_recursion" != yes; then
32164 # Remove --cache-file and --srcdir arguments so they do not pile up.
32165 ac_sub_configure_args=
32167 for ac_arg in $ac_configure_args; do
32168 if test -n "$ac_prev"; then
32173 -cache-file | --cache-file | --cache-fil | --cache-fi \
32174 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32175 ac_prev=cache_file ;;
32176 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32177 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32180 --config-cache | -C)
32182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32190 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32194 # Always prepend --prefix to ensure using the same prefix
32195 # in subdir configurations.
32196 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32199 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32201 # Do not complain, so a configure script can configure whichever
32202 # parts of a large source tree are present.
32203 test -d $srcdir/$ac_dir || continue
32205 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32206 echo "$as_me: configuring in $ac_dir" >&6;}
32207 { if $as_mkdir_p; then
32212 while test ! -d "$as_dir"; do
32213 as_dirs="$as_dir $as_dirs"
32214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32216 X"$as_dir" : 'X\(//\)[^/]' \| \
32217 X"$as_dir" : 'X\(//\)$' \| \
32218 X"$as_dir" : 'X\(/\)' \| \
32219 . : '\(.\)' 2>/dev/null ||
32221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32223 /^X\(\/\/\)$/{ s//\1/; q; }
32224 /^X\(\/\).*/{ s//\1/; q; }
32227 test ! -n "$as_dirs" || mkdir $as_dirs
32228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32229 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32230 { (exit 1); exit 1; }; }; }
32234 if test "$ac_dir" != .; then
32235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32236 # A "../" for each directory in $ac_dir_suffix.
32237 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32239 ac_dir_suffix= ac_top_builddir=
32243 .) # No --srcdir option. We are building in place.
32245 if test -z "$ac_top_builddir"; then
32248 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32250 [\\/]* | ?:[\\/]* ) # Absolute path.
32251 ac_srcdir=$srcdir$ac_dir_suffix;
32252 ac_top_srcdir=$srcdir ;;
32253 *) # Relative path.
32254 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32255 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32258 # Do not use `cd foo && pwd` to compute absolute paths, because
32259 # the directories may not exist.
32261 .) ac_abs_builddir="$ac_dir";;
32264 .) ac_abs_builddir=`pwd`;;
32265 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32266 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32269 case $ac_abs_builddir in
32270 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32272 case ${ac_top_builddir}. in
32273 .) ac_abs_top_builddir=$ac_abs_builddir;;
32274 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32275 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32278 case $ac_abs_builddir in
32279 .) ac_abs_srcdir=$ac_srcdir;;
32282 .) ac_abs_srcdir=$ac_abs_builddir;;
32283 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32284 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32287 case $ac_abs_builddir in
32288 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32290 case $ac_top_srcdir in
32291 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32292 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32293 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32300 # Check for guested configure; otherwise get Cygnus style configure.
32301 if test -f $ac_srcdir/configure.gnu; then
32302 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32303 elif test -f $ac_srcdir/configure; then
32304 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32305 elif test -f $ac_srcdir/configure.in; then
32306 ac_sub_configure=$ac_configure
32308 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32309 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32313 # The recursion is here.
32314 if test -n "$ac_sub_configure"; then
32315 # Make the cache file name correct relative to the subdirectory.
32316 case $cache_file in
32317 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32318 *) # Relative path.
32319 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32322 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32323 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32324 # The eval makes quoting arguments work.
32325 eval $ac_sub_configure $ac_sub_configure_args \
32326 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32327 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32328 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32329 { (exit 1); exit 1; }; }
32337 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32338 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32339 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32340 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32341 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32342 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32343 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32344 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32345 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32346 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32347 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}