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" ;;
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 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3104 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3105 { (exit 1); exit 1; }; } ;;
3110 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3111 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3115 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3116 if test "${with_llvmgccdir+set}" = set; then
3117 withval="$with_llvmgccdir"
3123 default) WITH_LLVMGCCDIR=default ;;
3124 /*) WITH_LLVMGCCDIR=$withval ;;
3125 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3126 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3127 { (exit 1); exit 1; }; } ;;
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3138 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3139 # On Suns, sometimes $CPP names a directory.
3140 if test -n "$CPP" && test -d "$CPP"; then
3143 if test -z "$CPP"; then
3144 if test "${ac_cv_prog_CPP+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 # Double quotes because CPP needs to be expanded
3148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3151 for ac_c_preproc_warn_flag in '' yes
3153 # Use a header file that comes with gcc, so configuring glibc
3154 # with a fresh cross-compiler works.
3155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3156 # <limits.h> exists even on freestanding compilers.
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp. "Syntax error" is here to catch this case.
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3166 # include <limits.h>
3168 # include <assert.h>
3172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175 grep -v '^ *+' conftest.er1 >conftest.err
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } >/dev/null; then
3180 if test -s conftest.err; then
3181 ac_cpp_err=$ac_c_preproc_warn_flag
3182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3189 if test -z "$ac_cpp_err"; then
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 # Broken: fails on valid input.
3198 rm -f conftest.err conftest.$ac_ext
3200 # OK, works on sane cases. Now check whether non-existent headers
3201 # can be detected and how.
3202 cat >conftest.$ac_ext <<_ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3208 #include <ac_nonexistent.h>
3210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3213 grep -v '^ *+' conftest.er1 >conftest.err
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } >/dev/null; then
3218 if test -s conftest.err; then
3219 ac_cpp_err=$ac_c_preproc_warn_flag
3220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3227 if test -z "$ac_cpp_err"; then
3228 # Broken: success on invalid input.
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 # Passes both tests.
3238 rm -f conftest.err conftest.$ac_ext
3241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3242 rm -f conftest.err conftest.$ac_ext
3243 if $ac_preproc_ok; then
3255 echo "$as_me:$LINENO: result: $CPP" >&5
3256 echo "${ECHO_T}$CPP" >&6
3258 for ac_c_preproc_warn_flag in '' yes
3260 # Use a header file that comes with gcc, so configuring glibc
3261 # with a fresh cross-compiler works.
3262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263 # <limits.h> exists even on freestanding compilers.
3264 # On the NeXT, cc -E runs the code through the compiler's parser,
3265 # not just through cpp. "Syntax error" is here to catch this case.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3273 # include <limits.h>
3275 # include <assert.h>
3279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296 if test -z "$ac_cpp_err"; then
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 # Broken: fails on valid input.
3305 rm -f conftest.err conftest.$ac_ext
3307 # OK, works on sane cases. Now check whether non-existent headers
3308 # can be detected and how.
3309 cat >conftest.$ac_ext <<_ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315 #include <ac_nonexistent.h>
3317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3320 grep -v '^ *+' conftest.er1 >conftest.err
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } >/dev/null; then
3325 if test -s conftest.err; then
3326 ac_cpp_err=$ac_c_preproc_warn_flag
3327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3334 if test -z "$ac_cpp_err"; then
3335 # Broken: success on invalid input.
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3341 # Passes both tests.
3345 rm -f conftest.err conftest.$ac_ext
3348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3349 rm -f conftest.err conftest.$ac_ext
3350 if $ac_preproc_ok; then
3353 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3354 See \`config.log' for more details." >&5
3355 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3356 See \`config.log' for more details." >&2;}
3357 { (exit 1); exit 1; }; }
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367 ac_cpp='$CPP $CPPFLAGS'
3368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371 if test -n "$ac_tool_prefix"; then
3374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_prog_CC+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 if test -n "$CC"; then
3382 ac_cv_prog_CC="$CC" # Let the user override the test.
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 if test -n "$CC"; then
3402 echo "$as_me:$LINENO: result: $CC" >&5
3403 echo "${ECHO_T}$CC" >&6
3405 echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3409 test -n "$CC" && break
3412 if test -z "$CC"; then
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_ac_ct_CC="$ac_prog"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443 if test -n "$ac_ct_CC"; then
3444 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3445 echo "${ECHO_T}$ac_ct_CC" >&6
3447 echo "$as_me:$LINENO: result: no" >&5
3448 echo "${ECHO_T}no" >&6
3451 test -n "$ac_ct_CC" && break
3458 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3459 See \`config.log' for more details." >&5
3460 echo "$as_me: error: no acceptable C compiler found in \$PATH
3461 See \`config.log' for more details." >&2;}
3462 { (exit 1); exit 1; }; }
3464 # Provide some information about the compiler.
3465 echo "$as_me:$LINENO:" \
3466 "checking for C compiler version" >&5
3467 ac_compiler=`set X $ac_compile; echo $2`
3468 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3469 (eval $ac_compiler --version </dev/null >&5) 2>&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }
3473 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3474 (eval $ac_compiler -v </dev/null >&5) 2>&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }
3478 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3479 (eval $ac_compiler -V </dev/null >&5) 2>&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }
3484 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3485 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3486 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3511 grep -v '^ *+' conftest.er1 >conftest.err
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3540 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3541 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3542 GCC=`test $ac_compiler_gnu = yes && echo yes`
3543 ac_test_CFLAGS=${CFLAGS+set}
3544 ac_save_CFLAGS=$CFLAGS
3546 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3547 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3548 if test "${ac_cv_prog_cc_g+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3570 grep -v '^ *+' conftest.er1 >conftest.err
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3597 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3598 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3599 if test "$ac_test_CFLAGS" = set; then
3600 CFLAGS=$ac_save_CFLAGS
3601 elif test $ac_cv_prog_cc_g = yes; then
3602 if test "$GCC" = yes; then
3608 if test "$GCC" = yes; then
3614 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3615 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3616 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 ac_cv_prog_cc_stdc=no
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3629 #include <sys/types.h>
3630 #include <sys/stat.h>
3631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3632 struct buf { int x; };
3633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3634 static char *e (p, i)
3640 static char *f (char * (*g) (char **, int), char **p, ...)
3645 s = g (p, va_arg (v,int));
3650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3651 function prototypes and stuff, but not '\xHH' hex character constants.
3652 These don't provoke an error unfortunately, instead are silently treated
3653 as 'x'. The following induces an error, until -std1 is added to get
3654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3655 array size at least. It's necessary to write '\x00'==0 to get something
3656 that's true only with -std1. */
3657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3668 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3673 # Don't try gcc -ansi; that turns off useful extensions and
3674 # breaks some systems' header files.
3675 # AIX -qlanglvl=ansi
3676 # Ultrix and OSF/1 -std1
3677 # HP-UX 10.20 and later -Ae
3678 # HP-UX older versions -Aa -D_HPUX_SOURCE
3679 # SVR4 -Xc -D__EXTENSIONS__
3680 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3682 CC="$ac_save_CC $ac_arg"
3683 rm -f conftest.$ac_objext
3684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3685 (eval $ac_compile) 2>conftest.er1
3687 grep -v '^ *+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
3692 { ac_try='test -z "$ac_c_werror_flag"
3693 || test ! -s conftest.err'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; } &&
3699 { ac_try='test -s conftest.$ac_objext'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3705 ac_cv_prog_cc_stdc=$ac_arg
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3712 rm -f conftest.err conftest.$ac_objext
3714 rm -f conftest.$ac_ext conftest.$ac_objext
3719 case "x$ac_cv_prog_cc_stdc" in
3721 echo "$as_me:$LINENO: result: none needed" >&5
3722 echo "${ECHO_T}none needed" >&6 ;;
3724 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3725 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3726 CC="$CC $ac_cv_prog_cc_stdc" ;;
3729 # Some people use a C++ compiler to compile C. Since we use `exit',
3730 # in C++ we need to declare it. In case someone uses the same compiler
3731 # for both compiling C and C++ we need to have the C++ compiler decide
3732 # the declaration of exit, since it's the most demanding environment.
3733 cat >conftest.$ac_ext <<_ACEOF
3738 rm -f conftest.$ac_objext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740 (eval $ac_compile) 2>conftest.er1
3742 grep -v '^ *+' conftest.er1 >conftest.err
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try='test -z "$ac_c_werror_flag"
3748 || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 for ac_declaration in \
3762 'extern "C" void std::exit (int) throw (); using std::exit;' \
3763 'extern "C" void std::exit (int); using std::exit;' \
3764 'extern "C" void exit (int) throw ();' \
3765 'extern "C" void exit (int);' \
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3788 grep -v '^ *+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3833 grep -v '^ *+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3860 if test -n "$ac_declaration"; then
3861 echo '#ifdef __cplusplus' >>confdefs.h
3862 echo $ac_declaration >>confdefs.h
3863 echo '#endif' >>confdefs.h
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879 ac_cpp='$CXXCPP $CPPFLAGS'
3880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3883 if test -n "$ac_tool_prefix"; then
3884 for ac_prog in $CCC g++
3886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3888 echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3890 if test "${ac_cv_prog_CXX+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 if test -n "$CXX"; then
3894 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 if test -n "$CXX"; then
3914 echo "$as_me:$LINENO: result: $CXX" >&5
3915 echo "${ECHO_T}$CXX" >&6
3917 echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3921 test -n "$CXX" && break
3924 if test -z "$CXX"; then
3926 for ac_prog in $CCC g++
3928 # Extract the first word of "$ac_prog", so it can be a program name with args.
3929 set dummy $ac_prog; ac_word=$2
3930 echo "$as_me:$LINENO: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 if test -n "$ac_ct_CXX"; then
3936 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945 ac_cv_prog_ac_ct_CXX="$ac_prog"
3946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3955 if test -n "$ac_ct_CXX"; then
3956 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3957 echo "${ECHO_T}$ac_ct_CXX" >&6
3959 echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3963 test -n "$ac_ct_CXX" && break
3965 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3971 # Provide some information about the compiler.
3972 echo "$as_me:$LINENO:" \
3973 "checking for C++ compiler version" >&5
3974 ac_compiler=`set X $ac_compile; echo $2`
3975 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3976 (eval $ac_compiler --version </dev/null >&5) 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }
3980 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3981 (eval $ac_compiler -v </dev/null >&5) 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }
3985 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3986 (eval $ac_compiler -V </dev/null >&5) 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }
3991 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3992 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3993 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4014 rm -f conftest.$ac_objext
4015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4016 (eval $ac_compile) 2>conftest.er1
4018 grep -v '^ *+' conftest.er1 >conftest.err
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } &&
4023 { ac_try='test -z "$ac_cxx_werror_flag"
4024 || test ! -s conftest.err'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; } &&
4030 { ac_try='test -s conftest.$ac_objext'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4047 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4048 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4049 GXX=`test $ac_compiler_gnu = yes && echo yes`
4050 ac_test_CXXFLAGS=${CXXFLAGS+set}
4051 ac_save_CXXFLAGS=$CXXFLAGS
4053 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4054 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4055 if test "${ac_cv_prog_cxx_g+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 cat >conftest.$ac_ext <<_ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4073 rm -f conftest.$ac_objext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>conftest.er1
4077 grep -v '^ *+' conftest.er1 >conftest.err
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_cxx_werror_flag"
4083 || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_cv_prog_cxx_g=yes
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4104 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4105 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4106 if test "$ac_test_CXXFLAGS" = set; then
4107 CXXFLAGS=$ac_save_CXXFLAGS
4108 elif test $ac_cv_prog_cxx_g = yes; then
4109 if test "$GXX" = yes; then
4115 if test "$GXX" = yes; then
4121 for ac_declaration in \
4123 'extern "C" void std::exit (int) throw (); using std::exit;' \
4124 'extern "C" void std::exit (int); using std::exit;' \
4125 'extern "C" void exit (int) throw ();' \
4126 'extern "C" void exit (int);' \
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_cxx_werror_flag"
4155 || test ! -s conftest.err'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4175 cat >conftest.$ac_ext <<_ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4190 rm -f conftest.$ac_objext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>conftest.er1
4194 grep -v '^ *+' conftest.er1 >conftest.err
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } &&
4199 { ac_try='test -z "$ac_cxx_werror_flag"
4200 || test ! -s conftest.err'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; } &&
4206 { ac_try='test -s conftest.$ac_objext'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221 if test -n "$ac_declaration"; then
4222 echo '#ifdef __cplusplus' >>confdefs.h
4223 echo $ac_declaration >>confdefs.h
4224 echo '#endif' >>confdefs.h
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 echo "$as_me:$LINENO: checking " >&5
4234 echo $ECHO_N "checking ... $ECHO_C" >&6
4235 if test "${ac_cv_has_flex+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 for ac_prog in flex lex
4240 # Extract the first word of "$ac_prog", so it can be a program name with args.
4241 set dummy $ac_prog; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_prog_LEX+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 if test -n "$LEX"; then
4248 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_LEX="$ac_prog"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 if test -n "$LEX"; then
4268 echo "$as_me:$LINENO: result: $LEX" >&5
4269 echo "${ECHO_T}$LEX" >&6
4271 echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4275 test -n "$LEX" && break
4277 test -n "$LEX" || LEX=":"
4279 if test -z "$LEXLIB"
4281 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4282 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4283 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 ac_check_lib_save_LIBS=$LIBS
4288 cat >conftest.$ac_ext <<_ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4295 /* Override any gcc2 internal prototype to avoid an error. */
4299 /* We use char because int might match the return type of a gcc2
4300 builtin and then its argument prototype would still apply. */
4310 rm -f conftest.$ac_objext conftest$ac_exeext
4311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4312 (eval $ac_link) 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -z "$ac_c_werror_flag"
4320 || test ! -s conftest.err'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; } &&
4326 { ac_try='test -s conftest$ac_exeext'
4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; }; then
4332 ac_cv_lib_fl_yywrap=yes
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4337 ac_cv_lib_fl_yywrap=no
4339 rm -f conftest.err conftest.$ac_objext \
4340 conftest$ac_exeext conftest.$ac_ext
4341 LIBS=$ac_check_lib_save_LIBS
4343 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4344 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4345 if test $ac_cv_lib_fl_yywrap = yes; then
4348 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4349 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4350 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 ac_check_lib_save_LIBS=$LIBS
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4362 /* Override any gcc2 internal prototype to avoid an error. */
4366 /* We use char because int might match the return type of a gcc2
4367 builtin and then its argument prototype would still apply. */
4377 rm -f conftest.$ac_objext conftest$ac_exeext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4379 (eval $ac_link) 2>conftest.er1
4381 grep -v '^ *+' conftest.er1 >conftest.err
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest$ac_exeext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_cv_lib_l_yywrap=yes
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 ac_cv_lib_l_yywrap=no
4406 rm -f conftest.err conftest.$ac_objext \
4407 conftest$ac_exeext conftest.$ac_ext
4408 LIBS=$ac_check_lib_save_LIBS
4410 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4411 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4412 if test $ac_cv_lib_l_yywrap = yes; then
4420 if test "x$LEX" != "x:"; then
4421 echo "$as_me:$LINENO: checking lex output file root" >&5
4422 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4423 if test "${ac_cv_prog_lex_root+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 # The minimal lex program is just a single line: %%. But some broken lexes
4427 # (Solaris, I think it was) want two %% lines, so accommodate them.
4428 cat >conftest.l <<_ACEOF
4432 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4433 (eval $LEX conftest.l) 2>&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }
4437 if test -f lex.yy.c; then
4438 ac_cv_prog_lex_root=lex.yy
4439 elif test -f lexyy.c; then
4440 ac_cv_prog_lex_root=lexyy
4442 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4443 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4444 { (exit 1); exit 1; }; }
4447 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4448 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4450 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4452 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4453 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4454 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 # POSIX says lex can declare yytext either as a pointer or an array; the
4458 # default is implementation-dependent. Figure out which it is, since
4459 # not all implementations provide the %pointer and %array declarations.
4460 ac_cv_prog_lex_yytext_pointer=no
4461 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4463 LIBS="$LIBS $LEXLIB"
4464 cat >conftest.$ac_ext <<_ACEOF
4465 `cat $LEX_OUTPUT_ROOT.c`
4467 rm -f conftest.$ac_objext conftest$ac_exeext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469 (eval $ac_link) 2>conftest.er1
4471 grep -v '^ *+' conftest.er1 >conftest.err
4473 cat conftest.err >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } &&
4476 { ac_try='test -z "$ac_c_werror_flag"
4477 || test ! -s conftest.err'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest$ac_exeext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_cv_prog_lex_yytext_pointer=yes
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4495 rm -f conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext conftest.$ac_ext
4498 rm -f "${LEX_OUTPUT_ROOT}.c"
4501 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4502 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4503 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4505 cat >>confdefs.h <<\_ACEOF
4506 #define YYTEXT_POINTER 1
4514 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4515 echo "${ECHO_T}$ac_cv_has_flex" >&6
4516 if test "$LEX" != "flex"; then
4517 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4518 echo "$as_me: error: flex not found but required" >&2;}
4519 { (exit 1); exit 1; }; }
4525 echo "$as_me:$LINENO: checking " >&5
4526 echo $ECHO_N "checking ... $ECHO_C" >&6
4527 if test "${llvm_cv_has_bison+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 for ac_prog in 'bison -y' byacc
4532 # Extract the first word of "$ac_prog", so it can be a program name with args.
4533 set dummy $ac_prog; ac_word=$2
4534 echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4536 if test "${ac_cv_prog_YACC+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 if test -n "$YACC"; then
4540 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_prog_YACC="$ac_prog"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 YACC=$ac_cv_prog_YACC
4559 if test -n "$YACC"; then
4560 echo "$as_me:$LINENO: result: $YACC" >&5
4561 echo "${ECHO_T}$YACC" >&6
4563 echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6
4567 test -n "$YACC" && break
4569 test -n "$YACC" || YACC="yacc"
4572 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4573 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4574 if test "$YACC" != "bison -y"; then
4575 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4576 echo "$as_me: error: bison not found but required" >&2;}
4577 { (exit 1); exit 1; }; }
4583 echo "$as_me:$LINENO: checking for GNU make" >&5
4584 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4585 if test "${llvm_cv_gnu_make_command+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 llvm_cv_gnu_make_command=''
4589 for a in "$MAKE" make gmake gnumake ; do
4590 if test -z "$a" ; then continue ; fi ;
4591 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4593 llvm_cv_gnu_make_command=$a ;
4598 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4599 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4600 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4604 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4605 echo "${ECHO_T}\"Not found\"" >&6;
4609 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4610 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4612 if test "$LN_S" = "ln -s"; then
4613 echo "$as_me:$LINENO: result: yes" >&5
4614 echo "${ECHO_T}yes" >&6
4616 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4617 echo "${ECHO_T}no, using $LN_S" >&6
4620 # Extract the first word of "cmp", so it can be a program name with args.
4621 set dummy cmp; ac_word=$2
4622 echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4624 if test "${ac_cv_path_CMP+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4652 if test -n "$CMP"; then
4653 echo "$as_me:$LINENO: result: $CMP" >&5
4654 echo "${ECHO_T}$CMP" >&6
4656 echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6
4660 # Extract the first word of "cp", so it can be a program name with args.
4661 set dummy cp; ac_word=$2
4662 echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664 if test "${ac_cv_path_CP+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4692 if test -n "$CP"; then
4693 echo "$as_me:$LINENO: result: $CP" >&5
4694 echo "${ECHO_T}$CP" >&6
4696 echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4700 # Extract the first word of "date", so it can be a program name with args.
4701 set dummy date; ac_word=$2
4702 echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704 if test "${ac_cv_path_DATE+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4730 DATE=$ac_cv_path_DATE
4732 if test -n "$DATE"; then
4733 echo "$as_me:$LINENO: result: $DATE" >&5
4734 echo "${ECHO_T}$DATE" >&6
4736 echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4740 # Extract the first word of "find", so it can be a program name with args.
4741 set dummy find; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_path_FIND+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4770 FIND=$ac_cv_path_FIND
4772 if test -n "$FIND"; then
4773 echo "$as_me:$LINENO: result: $FIND" >&5
4774 echo "${ECHO_T}$FIND" >&6
4776 echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6
4780 # Extract the first word of "grep", so it can be a program name with args.
4781 set dummy grep; ac_word=$2
4782 echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784 if test "${ac_cv_path_GREP+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4810 GREP=$ac_cv_path_GREP
4812 if test -n "$GREP"; then
4813 echo "$as_me:$LINENO: result: $GREP" >&5
4814 echo "${ECHO_T}$GREP" >&6
4816 echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 # Extract the first word of "mkdir", so it can be a program name with args.
4821 set dummy mkdir; ac_word=$2
4822 echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824 if test "${ac_cv_path_MKDIR+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4839 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4850 MKDIR=$ac_cv_path_MKDIR
4852 if test -n "$MKDIR"; then
4853 echo "$as_me:$LINENO: result: $MKDIR" >&5
4854 echo "${ECHO_T}$MKDIR" >&6
4856 echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6
4860 # Extract the first word of "mv", so it can be a program name with args.
4861 set dummy mv; ac_word=$2
4862 echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864 if test "${ac_cv_path_MV+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4892 if test -n "$MV"; then
4893 echo "$as_me:$LINENO: result: $MV" >&5
4894 echo "${ECHO_T}$MV" >&6
4896 echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4903 echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905 if test "${ac_cv_prog_RANLIB+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 if test -n "$RANLIB"; then
4909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 RANLIB=$ac_cv_prog_RANLIB
4928 if test -n "$RANLIB"; then
4929 echo "$as_me:$LINENO: result: $RANLIB" >&5
4930 echo "${ECHO_T}$RANLIB" >&6
4932 echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6
4937 if test -z "$ac_cv_prog_RANLIB"; then
4938 ac_ct_RANLIB=$RANLIB
4939 # Extract the first word of "ranlib", so it can be a program name with args.
4940 set dummy ranlib; ac_word=$2
4941 echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 if test -n "$ac_ct_RANLIB"; then
4947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_prog_ac_ct_RANLIB="ranlib"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4967 if test -n "$ac_ct_RANLIB"; then
4968 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4969 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4971 echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6
4975 RANLIB=$ac_ct_RANLIB
4977 RANLIB="$ac_cv_prog_RANLIB"
4980 # Extract the first word of "rm", so it can be a program name with args.
4981 set dummy rm; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_path_RM+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5012 if test -n "$RM"; then
5013 echo "$as_me:$LINENO: result: $RM" >&5
5014 echo "${ECHO_T}$RM" >&6
5016 echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5020 # Extract the first word of "sed", so it can be a program name with args.
5021 set dummy sed; ac_word=$2
5022 echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024 if test "${ac_cv_path_SED+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5052 if test -n "$SED"; then
5053 echo "$as_me:$LINENO: result: $SED" >&5
5054 echo "${ECHO_T}$SED" >&6
5056 echo "$as_me:$LINENO: result: no" >&5
5057 echo "${ECHO_T}no" >&6
5060 # Extract the first word of "tar", so it can be a program name with args.
5061 set dummy tar; ac_word=$2
5062 echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5064 if test "${ac_cv_path_TAR+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5092 if test -n "$TAR"; then
5093 echo "$as_me:$LINENO: result: $TAR" >&5
5094 echo "${ECHO_T}$TAR" >&6
5096 echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6
5100 # Extract the first word of "Graphviz", so it can be a program name with args.
5101 set dummy Graphviz; ac_word=$2
5102 echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5104 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5130 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5132 if test -n "$GRAPHVIZ"; then
5133 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5134 echo "${ECHO_T}$GRAPHVIZ" >&6
5136 echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6
5140 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5142 cat >>confdefs.h <<\_ACEOF
5143 #define HAVE_GRAPHVIZ 1
5147 cat >>confdefs.h <<_ACEOF
5148 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5152 # Extract the first word of "gv", so it can be a program name with args.
5153 set dummy gv; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_path_GV+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5184 if test -n "$GV"; then
5185 echo "$as_me:$LINENO: result: $GV" >&5
5186 echo "${ECHO_T}$GV" >&6
5188 echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5192 if test "$GV" != "echo gv" ; then
5194 cat >>confdefs.h <<\_ACEOF
5199 cat >>confdefs.h <<_ACEOF
5200 #define LLVM_PATH_GV "$GV"
5205 # Find a good install program. We prefer a C program (faster),
5206 # so one script is as good as another. But avoid the broken or
5207 # incompatible versions:
5208 # SysV /etc/install, /usr/sbin/install
5209 # SunOS /usr/etc/install
5210 # IRIX /sbin/install
5212 # AmigaOS /C/install, which installs bootblocks on floppy discs
5213 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5214 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5215 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5216 # OS/2's system install, which has a completely different semantic
5217 # ./install, which can be erroneously created by make from ./install.sh.
5218 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5219 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5220 if test -z "$INSTALL"; then
5221 if test "${ac_cv_path_install+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir=.
5229 # Account for people who put trailing slashes in PATH elements.
5231 ./ | .// | /cC/* | \
5232 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5233 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5236 # OSF1 and SCO ODT 3.0 have their own names for install.
5237 # Don't use installbsd from OSF since it installs stuff as root
5239 for ac_prog in ginstall scoinst install; do
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5242 if test $ac_prog = install &&
5243 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5244 # AIX install. It has an incompatible calling convention.
5246 elif test $ac_prog = install &&
5247 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5248 # program-specific install script used by HP pwplus--don't use.
5251 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5263 if test "${ac_cv_path_install+set}" = set; then
5264 INSTALL=$ac_cv_path_install
5266 # As a last resort, use the slow shell script. We don't cache a
5267 # path for INSTALL within a source directory, because that will
5268 # break other packages using the cache if that directory is
5269 # removed, or if the path is relative.
5270 INSTALL=$ac_install_sh
5273 echo "$as_me:$LINENO: result: $INSTALL" >&5
5274 echo "${ECHO_T}$INSTALL" >&6
5276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5277 # It thinks the first close brace ends the variable substitution.
5278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5285 # Extract the first word of "bzip2", so it can be a program name with args.
5286 set dummy bzip2; ac_word=$2
5287 echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289 if test "${ac_cv_path_BZIP2+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5315 BZIP2=$ac_cv_path_BZIP2
5317 if test -n "$BZIP2"; then
5318 echo "$as_me:$LINENO: result: $BZIP2" >&5
5319 echo "${ECHO_T}$BZIP2" >&6
5321 echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6
5325 # Extract the first word of "dot", so it can be a program name with args.
5326 set dummy dot; ac_word=$2
5327 echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329 if test "${ac_cv_path_DOT+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5357 if test -n "$DOT"; then
5358 echo "$as_me:$LINENO: result: $DOT" >&5
5359 echo "${ECHO_T}$DOT" >&6
5361 echo "$as_me:$LINENO: result: no" >&5
5362 echo "${ECHO_T}no" >&6
5365 # Extract the first word of "doxygen", so it can be a program name with args.
5366 set dummy doxygen; ac_word=$2
5367 echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5395 DOXYGEN=$ac_cv_path_DOXYGEN
5397 if test -n "$DOXYGEN"; then
5398 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5399 echo "${ECHO_T}$DOXYGEN" >&6
5401 echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5405 # Extract the first word of "etags", so it can be a program name with args.
5406 set dummy etags; ac_word=$2
5407 echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409 if test "${ac_cv_path_ETAGS+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5435 ETAGS=$ac_cv_path_ETAGS
5437 if test -n "$ETAGS"; then
5438 echo "$as_me:$LINENO: result: $ETAGS" >&5
5439 echo "${ECHO_T}$ETAGS" >&6
5441 echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6
5445 # Extract the first word of "groff", so it can be a program name with args.
5446 set dummy groff; ac_word=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_path_GROFF+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5475 GROFF=$ac_cv_path_GROFF
5477 if test -n "$GROFF"; then
5478 echo "$as_me:$LINENO: result: $GROFF" >&5
5479 echo "${ECHO_T}$GROFF" >&6
5481 echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6
5485 # Extract the first word of "gzip", so it can be a program name with args.
5486 set dummy gzip; ac_word=$2
5487 echo "$as_me:$LINENO: checking for $ac_word" >&5
5488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5489 if test "${ac_cv_path_GZIP+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5515 GZIP=$ac_cv_path_GZIP
5517 if test -n "$GZIP"; then
5518 echo "$as_me:$LINENO: result: $GZIP" >&5
5519 echo "${ECHO_T}$GZIP" >&6
5521 echo "$as_me:$LINENO: result: no" >&5
5522 echo "${ECHO_T}no" >&6
5525 # Extract the first word of "pod2html", so it can be a program name with args.
5526 set dummy pod2html; ac_word=$2
5527 echo "$as_me:$LINENO: checking for $ac_word" >&5
5528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5529 if test "${ac_cv_path_POD2HTML+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5555 POD2HTML=$ac_cv_path_POD2HTML
5557 if test -n "$POD2HTML"; then
5558 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5559 echo "${ECHO_T}$POD2HTML" >&6
5561 echo "$as_me:$LINENO: result: no" >&5
5562 echo "${ECHO_T}no" >&6
5565 # Extract the first word of "pod2man", so it can be a program name with args.
5566 set dummy pod2man; ac_word=$2
5567 echo "$as_me:$LINENO: checking for $ac_word" >&5
5568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5569 if test "${ac_cv_path_POD2MAN+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5595 POD2MAN=$ac_cv_path_POD2MAN
5597 if test -n "$POD2MAN"; then
5598 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5599 echo "${ECHO_T}$POD2MAN" >&6
5601 echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5605 # Extract the first word of "runtest", so it can be a program name with args.
5606 set dummy runtest; ac_word=$2
5607 echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609 if test "${ac_cv_path_RUNTEST+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5635 RUNTEST=$ac_cv_path_RUNTEST
5637 if test -n "$RUNTEST"; then
5638 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5639 echo "${ECHO_T}$RUNTEST" >&6
5641 echo "$as_me:$LINENO: result: no" >&5
5642 echo "${ECHO_T}no" >&6
5647 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5648 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5650 # Check whether --with-tclinclude or --without-tclinclude was given.
5651 if test "${with_tclinclude+set}" = set; then
5652 withval="$with_tclinclude"
5653 with_tclinclude=${withval}
5657 if test "${ac_cv_path_tclsh+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 if test x"${with_tclinclude}" != x ; then
5662 if test -f ${with_tclinclude}/tclsh ; then
5663 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5664 elif test -f ${with_tclinclude}/src/tclsh ; then
5665 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5667 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5668 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5669 { (exit 1); exit 1; }; }
5673 if test x"${ac_cv_path_tclsh}" = x ; then
5674 echo "$as_me:$LINENO: result: none" >&5
5675 echo "${ECHO_T}none" >&6
5676 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
5678 # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 echo "$as_me:$LINENO: checking for $ac_word" >&5
5681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5682 if test "${ac_cv_path_TCLSH+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 TCLSH=$ac_cv_path_TCLSH
5709 if test -n "$TCLSH"; then
5710 echo "$as_me:$LINENO: result: $TCLSH" >&5
5711 echo "${ECHO_T}$TCLSH" >&6
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5717 test -n "$TCLSH" && break
5720 if test x"${TCLSH}" = x ; then
5721 ac_cv_path_tclsh='';
5723 ac_cv_path_tclsh="${TCLSH}";
5726 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5727 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5728 TCLSH="${ac_cv_path_tclsh}"
5734 # Extract the first word of "zip", so it can be a program name with args.
5735 set dummy zip; ac_word=$2
5736 echo "$as_me:$LINENO: checking for $ac_word" >&5
5737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5738 if test "${ac_cv_path_ZIP+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5766 if test -n "$ZIP"; then
5767 echo "$as_me:$LINENO: result: $ZIP" >&5
5768 echo "${ECHO_T}$ZIP" >&6
5770 echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6
5775 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5776 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5777 if test "${llvm_cv_link_use_r+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787 CFLAGS="$CFLAGS -Wl,-R."
5788 cat >conftest.$ac_ext <<_ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5798 int main() { return 0; }
5803 rm -f conftest.$ac_objext conftest$ac_exeext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5805 (eval $ac_link) 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } &&
5812 { ac_try='test -z "$ac_c_werror_flag"
5813 || test ! -s conftest.err'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; } &&
5819 { ac_try='test -s conftest$ac_exeext'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
5825 llvm_cv_link_use_r=yes
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5830 llvm_cv_link_use_r=no
5832 rm -f conftest.err conftest.$ac_objext \
5833 conftest$ac_exeext conftest.$ac_ext
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5844 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5845 if test "$llvm_cv_link_use_r" = yes ; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define HAVE_LINK_R 1
5856 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5857 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5858 if test "${ac_cv_c_const+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 cat >conftest.$ac_ext <<_ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5871 /* FIXME: Include the comments suggested by Paul. */
5873 /* Ultrix mips cc rejects this. */
5874 typedef int charset[2];
5876 /* SunOS 4.1.1 cc rejects this. */
5877 char const *const *ccp;
5879 /* NEC SVR4.0.2 mips cc rejects this. */
5880 struct point {int x, y;};
5881 static struct point const zero = {0,0};
5882 /* AIX XL C 1.02.0.0 rejects this.
5883 It does not let you subtract one const X* pointer from another in
5884 an arm of an if-expression whose if-part is not a constant
5886 const char *g = "string";
5887 ccp = &g + (g ? g-g : 0);
5888 /* HPUX 7.0 cc rejects these. */
5891 ccp = (char const *const *) p;
5892 { /* SCO 3.2v4 cc rejects this. */
5894 char const *s = 0 ? (char *) 0 : (char const *) 0;
5898 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5900 const int *foo = &x[0];
5903 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5904 typedef const int *iptr;
5908 { /* AIX XL C 1.02.0.0 rejects this saying
5909 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5910 struct s { int j; const int *ap[3]; };
5911 struct s *b; b->j = 5;
5913 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5922 rm -f conftest.$ac_objext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924 (eval $ac_compile) 2>conftest.er1
5926 grep -v '^ *+' conftest.er1 >conftest.err
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -z "$ac_c_werror_flag"
5932 || test ! -s conftest.err'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; } &&
5938 { ac_try='test -s conftest.$ac_objext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5953 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5954 echo "${ECHO_T}$ac_cv_c_const" >&6
5955 if test $ac_cv_c_const = no; then
5957 cat >>confdefs.h <<\_ACEOF
5964 echo "$as_me:$LINENO: checking for egrep" >&5
5965 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5966 if test "${ac_cv_prog_egrep+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5970 then ac_cv_prog_egrep='grep -E'
5971 else ac_cv_prog_egrep='egrep'
5974 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5975 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5976 EGREP=$ac_cv_prog_egrep
5979 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5980 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5981 if test "${ac_cv_header_stdc+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
6003 rm -f conftest.$ac_objext
6004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6005 (eval $ac_compile) 2>conftest.er1
6007 grep -v '^ *+' conftest.er1 >conftest.err
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_c_werror_flag"
6013 || test ! -s conftest.err'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; } &&
6019 { ac_try='test -s conftest.$ac_objext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_header_stdc=yes
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6030 ac_cv_header_stdc=no
6032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6034 if test $ac_cv_header_stdc = yes; then
6035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6036 cat >conftest.$ac_ext <<_ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6046 $EGREP "memchr" >/dev/null 2>&1; then
6049 ac_cv_header_stdc=no
6055 if test $ac_cv_header_stdc = yes; then
6056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6057 cat >conftest.$ac_ext <<_ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "free" >/dev/null 2>&1; then
6070 ac_cv_header_stdc=no
6076 if test $ac_cv_header_stdc = yes; then
6077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6078 if test "$cross_compiling" = yes; then
6081 cat >conftest.$ac_ext <<_ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6088 #if ((' ' & 0x0FF) == 0x020)
6089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6092 # define ISLOWER(c) \
6093 (('a' <= (c) && (c) <= 'i') \
6094 || ('j' <= (c) && (c) <= 'r') \
6095 || ('s' <= (c) && (c) <= 'z'))
6096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6104 for (i = 0; i < 256; i++)
6105 if (XOR (islower (i), ISLOWER (i))
6106 || toupper (i) != TOUPPER (i))
6111 rm -f conftest$ac_exeext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6113 (eval $ac_link) 2>&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6124 echo "$as_me: program exited with status $ac_status" >&5
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6129 ac_cv_header_stdc=no
6131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6136 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6137 if test $ac_cv_header_stdc = yes; then
6139 cat >>confdefs.h <<\_ACEOF
6140 #define STDC_HEADERS 1
6151 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6152 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6153 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6154 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 cat >conftest.$ac_ext <<_ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 #include <sys/types.h>
6176 rm -f conftest.$ac_objext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178 (eval $ac_compile) 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 eval "$as_ac_Header=yes"
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 eval "$as_ac_Header=no"
6205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210 cat >>confdefs.h <<_ACEOF
6211 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6214 ac_header_dirent=$ac_hdr; break
6218 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6219 if test $ac_header_dirent = dirent.h; then
6220 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6221 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6222 if test "${ac_cv_search_opendir+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 ac_func_search_save_LIBS=$LIBS
6226 ac_cv_search_opendir=no
6227 cat >conftest.$ac_ext <<_ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 /* Override any gcc2 internal prototype to avoid an error. */
6238 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest$ac_exeext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 ac_cv_search_opendir="none required"
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6277 rm -f conftest.err conftest.$ac_objext \
6278 conftest$ac_exeext conftest.$ac_ext
6279 if test "$ac_cv_search_opendir" = no; then
6280 for ac_lib in dir; do
6281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6282 cat >conftest.$ac_ext <<_ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6289 /* Override any gcc2 internal prototype to avoid an error. */
6293 /* We use char because int might match the return type of a gcc2
6294 builtin and then its argument prototype would still apply. */
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306 (eval $ac_link) 2>conftest.er1
6308 grep -v '^ *+' conftest.er1 >conftest.err
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -z "$ac_c_werror_flag"
6314 || test ! -s conftest.err'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest$ac_exeext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 ac_cv_search_opendir="-l$ac_lib"
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6333 rm -f conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6337 LIBS=$ac_func_search_save_LIBS
6339 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6340 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6341 if test "$ac_cv_search_opendir" != no; then
6342 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6347 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6348 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6349 if test "${ac_cv_search_opendir+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 ac_func_search_save_LIBS=$LIBS
6353 ac_cv_search_opendir=no
6354 cat >conftest.$ac_ext <<_ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6361 /* Override any gcc2 internal prototype to avoid an error. */
6365 /* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378 (eval $ac_link) 2>conftest.er1
6380 grep -v '^ *+' conftest.er1 >conftest.err
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest$ac_exeext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_cv_search_opendir="none required"
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6404 rm -f conftest.err conftest.$ac_objext \
6405 conftest$ac_exeext conftest.$ac_ext
6406 if test "$ac_cv_search_opendir" = no; then
6408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6409 cat >conftest.$ac_ext <<_ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6416 /* Override any gcc2 internal prototype to avoid an error. */
6420 /* We use char because int might match the return type of a gcc2
6421 builtin and then its argument prototype would still apply. */
6431 rm -f conftest.$ac_objext conftest$ac_exeext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433 (eval $ac_link) 2>conftest.er1
6435 grep -v '^ *+' conftest.er1 >conftest.err
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_c_werror_flag"
6441 || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest$ac_exeext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 ac_cv_search_opendir="-l$ac_lib"
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6460 rm -f conftest.err conftest.$ac_objext \
6461 conftest$ac_exeext conftest.$ac_ext
6464 LIBS=$ac_func_search_save_LIBS
6466 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6467 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6468 if test "$ac_cv_search_opendir" != no; then
6469 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6475 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6485 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6486 inttypes.h stdint.h unistd.h
6488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6489 echo "$as_me:$LINENO: checking for $ac_header" >&5
6490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 cat >conftest.$ac_ext <<_ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 $ac_includes_default
6502 #include <$ac_header>
6504 rm -f conftest.$ac_objext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506 (eval $ac_compile) 2>conftest.er1
6508 grep -v '^ *+' conftest.er1 >conftest.err
6510 cat conftest.err >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } &&
6513 { ac_try='test -z "$ac_c_werror_flag"
6514 || test ! -s conftest.err'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; } &&
6520 { ac_try='test -s conftest.$ac_objext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 eval "$as_ac_Header=yes"
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 eval "$as_ac_Header=no"
6533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6538 cat >>confdefs.h <<_ACEOF
6539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6548 for ac_header in dlfcn.h
6550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6552 echo "$as_me:$LINENO: checking for $ac_header" >&5
6553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6560 # Is the header compilable?
6561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6563 cat >conftest.$ac_ext <<_ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 $ac_includes_default
6570 #include <$ac_header>
6572 rm -f conftest.$ac_objext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6574 (eval $ac_compile) 2>conftest.er1
6576 grep -v '^ *+' conftest.er1 >conftest.err
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try='test -z "$ac_c_werror_flag"
6582 || test ! -s conftest.err'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_header_compiler=yes
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_header_compiler=no
6601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6603 echo "${ECHO_T}$ac_header_compiler" >&6
6605 # Is the header present?
6606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6608 cat >conftest.$ac_ext <<_ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 #include <$ac_header>
6616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6619 grep -v '^ *+' conftest.er1 >conftest.err
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } >/dev/null; then
6624 if test -s conftest.err; then
6625 ac_cpp_err=$ac_c_preproc_warn_flag
6626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6633 if test -z "$ac_cpp_err"; then
6634 ac_header_preproc=yes
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 ac_header_preproc=no
6641 rm -f conftest.err conftest.$ac_ext
6642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6643 echo "${ECHO_T}$ac_header_preproc" >&6
6645 # So? What about this header?
6646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6652 ac_header_preproc=yes
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6669 ## ----------------------------------- ##
6670 ## Report this to llvmbugs@cs.uiuc.edu ##
6671 ## ----------------------------------- ##
6674 sed "s/^/$as_me: WARNING: /" >&2
6677 echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 eval "$as_ac_Header=\$ac_header_preproc"
6684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6689 cat >>confdefs.h <<_ACEOF
6690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6698 if test "${enable_ltdl_install+set}" = set; then
6699 enableval="$enable_ltdl_install"
6705 if test x"${enable_ltdl_install-no}" != xno; then
6707 INSTALL_LTDL_FALSE='#'
6709 INSTALL_LTDL_TRUE='#'
6715 if test x"${enable_ltdl_convenience-no}" != xno; then
6716 CONVENIENCE_LTDL_TRUE=
6717 CONVENIENCE_LTDL_FALSE='#'
6719 CONVENIENCE_LTDL_TRUE='#'
6720 CONVENIENCE_LTDL_FALSE=
6724 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6725 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6727 libname_spec='lib$name'
6735 shlibpath_overrides_runpath=unknown
6737 dynamic_linker="$host_os ld.so"
6738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6739 if test "$GCC" = yes; then
6740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6741 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6742 # if the path contains ";" then we assume it to be the separator
6743 # otherwise default to the standard path separator (i.e. ":") - it is
6744 # assumed that no part of a normal pathname contains ";" but that should
6745 # okay in the real world where ";" in dirpaths is itself problematic.
6746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6753 need_lib_prefix=unknown
6754 hardcode_into_libs=no
6756 # when you set need_version to no, make sure it does not cause -set_version
6757 # flags to be left without arguments
6758 need_version=unknown
6763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6764 shlibpath_var=LIBPATH
6766 # AIX 3 has no versioning support, so we append a major version to the name.
6767 soname_spec='${libname}${release}${shared_ext}$major'
6774 hardcode_into_libs=yes
6775 if test "$host_cpu" = ia64; then
6776 # AIX 5 supports IA64
6777 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6778 shlibpath_var=LD_LIBRARY_PATH
6780 # With GCC up to 2.95.x, collect2 would create an import file
6781 # for dependence libraries. The import file would start with
6782 # the line `#! .'. This would cause the generated library to
6783 # depend on `.', always an invalid library. This was fixed in
6784 # development snapshots of GCC prior to 3.0.
6786 aix4 | aix4.[01] | aix4.[01].*)
6787 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6789 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6796 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6797 # soname into executable. Probably we can add versioning support to
6798 # collect2, so additional links can be useful in future.
6799 if test "$aix_use_runtimelinking" = yes; then
6800 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6801 # instead of lib<name>.a to let people know that these are not
6802 # typical AIX shared libraries.
6803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6805 # We preserve .a as extension for shared libraries through AIX4.2
6806 # and later when we are not doing run time linking.
6807 library_names_spec='${libname}${release}.a $libname.a'
6808 soname_spec='${libname}${release}${shared_ext}$major'
6810 shlibpath_var=LIBPATH
6815 library_names_spec='$libname.ixlibrary $libname.a'
6816 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6817 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'
6821 library_names_spec='${libname}${shared_ext}'
6822 dynamic_linker="$host_os ld.so"
6823 shlibpath_var=LIBRARY_PATH
6829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6830 soname_spec='${libname}${release}${shared_ext}$major'
6831 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6832 shlibpath_var=LD_LIBRARY_PATH
6833 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6834 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6835 # the default ld.so.conf also contains /usr/contrib/lib and
6836 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6837 # libtool to hard-code these into programs
6840 cygwin* | mingw* | pw32*)
6841 version_type=windows
6846 case $GCC,$host_os in
6847 yes,cygwin* | yes,mingw* | yes,pw32*)
6848 library_names_spec='$libname.dll.a'
6849 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6850 postinstall_cmds='base_file=`basename \${file}`~
6851 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6852 dldir=$destdir/`dirname \$dlpath`~
6853 test -d \$dldir || mkdir -p \$dldir~
6854 $install_prog $dir/$dlname \$dldir/$dlname'
6855 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6856 dlpath=$dir/\$dldll~
6858 shlibpath_overrides_runpath=yes
6862 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6863 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6864 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6867 # MinGW DLLs use traditional 'lib' prefix
6868 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6869 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6870 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6871 # It is most probably a Windows format PATH printed by
6872 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6873 # path with ; separators, and with drive letters. We can handle the
6874 # drive letters (cygwin fileutils understands them), so leave them,
6875 # especially as we might pass files found there to a mingw objdump,
6876 # which wouldn't understand a cygwinified path. Ahh.
6877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6883 # pw32 DLLs use 'pw' prefix rather than 'lib'
6884 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6890 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6893 dynamic_linker='Win32 ld.exe'
6894 # FIXME: first we should search . and the directory the executable is in
6898 darwin* | rhapsody*)
6899 dynamic_linker="$host_os dyld"
6903 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6904 soname_spec='${libname}${release}${major}$shared_ext'
6905 shlibpath_overrides_runpath=yes
6906 shlibpath_var=DYLD_LIBRARY_PATH
6907 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6908 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6909 if test "$GCC" = yes; then
6910 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"`
6912 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6922 soname_spec='${libname}${release}${shared_ext}$major'
6923 shlibpath_var=LD_LIBRARY_PATH
6934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6935 soname_spec='${libname}${release}${shared_ext}$major'
6936 shlibpath_var=LD_LIBRARY_PATH
6937 shlibpath_overrides_runpath=no
6938 hardcode_into_libs=yes
6939 dynamic_linker='GNU ld.so'
6943 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6944 version_type=freebsd-$objformat
6945 case $version_type in
6947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6956 shlibpath_var=LD_LIBRARY_PATH
6959 shlibpath_overrides_runpath=yes
6961 freebsd3.01* | freebsdelf3.01*)
6962 shlibpath_overrides_runpath=yes
6963 hardcode_into_libs=yes
6966 shlibpath_overrides_runpath=no
6967 hardcode_into_libs=yes
6976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6977 soname_spec='${libname}${release}${shared_ext}$major'
6978 shlibpath_var=LD_LIBRARY_PATH
6979 hardcode_into_libs=yes
6982 hpux9* | hpux10* | hpux11*)
6983 # Give a soname corresponding to the major version so that dld.sl refuses to
6984 # link against other versions.
6991 hardcode_into_libs=yes
6992 dynamic_linker="$host_os dld.so"
6993 shlibpath_var=LD_LIBRARY_PATH
6994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6996 soname_spec='${libname}${release}${shared_ext}$major'
6997 if test "X$HPUX_IA64_MODE" = X32; then
6998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7006 hardcode_into_libs=yes
7007 dynamic_linker="$host_os dld.sl"
7008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7011 soname_spec='${libname}${release}${shared_ext}$major'
7012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7017 dynamic_linker="$host_os dld.sl"
7018 shlibpath_var=SHLIB_PATH
7019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7021 soname_spec='${libname}${release}${shared_ext}$major'
7024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7025 postinstall_cmds='chmod 555 $lib'
7028 irix5* | irix6* | nonstopux*)
7030 nonstopux*) version_type=nonstopux ;;
7032 if test "$lt_cv_prog_gnu_ld" = yes; then
7040 soname_spec='${libname}${release}${shared_ext}$major'
7041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7043 irix5* | nonstopux*)
7047 case $LD in # libtool.m4 will add one of these switches to LD
7048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7049 libsuff= shlibsuff= libmagic=32-bit;;
7050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7051 libsuff=32 shlibsuff=N32 libmagic=N32;;
7052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7054 *) libsuff= shlibsuff= libmagic=never-match;;
7058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7059 shlibpath_overrides_runpath=no
7060 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7061 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7062 hardcode_into_libs=yes
7065 # No shared lib support for Linux oldld, aout, or coff.
7066 linux*oldld* | linux*aout* | linux*coff*)
7070 # This must be Linux ELF.
7075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7076 soname_spec='${libname}${release}${shared_ext}$major'
7077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7078 shlibpath_var=LD_LIBRARY_PATH
7079 shlibpath_overrides_runpath=no
7080 # This implies no fast_install, which is unacceptable.
7081 # Some rework will be needed to allow for fast_install
7082 # before this can be enabled.
7083 hardcode_into_libs=yes
7085 # Append ld.so.conf contents to the search path
7086 if test -f /etc/ld.so.conf; then
7087 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7088 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7091 # We used to test for /lib/ld.so.1 and disable shared libraries on
7092 # powerpc, because MkLinux only supported shared libraries with the
7093 # GNU dynamic linker. Since this was broken with cross compilers,
7094 # most powerpc-linux boxes support dynamic linking these days and
7095 # people can always --disable-shared, the test was removed, and we
7096 # assume the GNU/Linux dynamic linker is in use.
7097 dynamic_linker='GNU/Linux ld.so'
7104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7105 soname_spec='${libname}${release}${shared_ext}$major'
7106 shlibpath_var=LD_LIBRARY_PATH
7107 shlibpath_overrides_runpath=no
7108 hardcode_into_libs=yes
7109 dynamic_linker='GNU ld.so'
7116 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7119 dynamic_linker='NetBSD (a.out) ld.so'
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7122 soname_spec='${libname}${release}${shared_ext}$major'
7123 dynamic_linker='NetBSD ld.elf_so'
7125 shlibpath_var=LD_LIBRARY_PATH
7126 shlibpath_overrides_runpath=yes
7127 hardcode_into_libs=yes
7132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7133 shlibpath_var=LD_LIBRARY_PATH
7134 shlibpath_overrides_runpath=yes
7141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7142 soname_spec='${libname}${release}${shared_ext}$major'
7143 shlibpath_var=LD_LIBRARY_PATH
7144 shlibpath_overrides_runpath=yes
7151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7153 shlibpath_var=LD_LIBRARY_PATH
7154 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7156 openbsd2.[89] | openbsd2.[89].*)
7157 shlibpath_overrides_runpath=no
7160 shlibpath_overrides_runpath=yes
7164 shlibpath_overrides_runpath=yes
7169 libname_spec='$name'
7172 library_names_spec='$libname${shared_ext} $libname.a'
7173 dynamic_linker='OS/2 ld.exe'
7174 shlibpath_var=LIBPATH
7177 osf3* | osf4* | osf5*)
7181 soname_spec='${libname}${release}${shared_ext}$major'
7182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7183 shlibpath_var=LD_LIBRARY_PATH
7184 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7185 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7190 soname_spec='${libname}${release}${shared_ext}$major'
7191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7192 shlibpath_var=LD_LIBRARY_PATH
7199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7200 soname_spec='${libname}${release}${shared_ext}$major'
7201 shlibpath_var=LD_LIBRARY_PATH
7202 shlibpath_overrides_runpath=yes
7203 hardcode_into_libs=yes
7204 # ldd complains unless libraries are executable
7205 postinstall_cmds='chmod +x $lib'
7210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7212 shlibpath_var=LD_LIBRARY_PATH
7213 shlibpath_overrides_runpath=yes
7214 if test "$with_gnu_ld" = yes; then
7220 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7223 soname_spec='${libname}${release}${shared_ext}$major'
7224 shlibpath_var=LD_LIBRARY_PATH
7225 case $host_vendor in
7227 shlibpath_overrides_runpath=no
7229 export_dynamic_flag_spec='${wl}-Blargedynsym'
7230 runpath_var=LD_RUN_PATH
7238 shlibpath_overrides_runpath=no
7239 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7245 if test -d /usr/nec ;then
7247 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7248 soname_spec='$libname${shared_ext}.$major'
7249 shlibpath_var=LD_LIBRARY_PATH
7255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7256 soname_spec='${libname}${release}${shared_ext}$major'
7257 shlibpath_var=LD_LIBRARY_PATH
7264 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7265 echo "${ECHO_T}$dynamic_linker" >&6
7266 test "$dynamic_linker" = no && can_build_shared=no
7269 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7270 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7271 if test "${libltdl_cv_shlibext+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 eval libltdl_cv_shlibext=$shrext_cmds
7279 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7280 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7281 if test -n "$libltdl_cv_shlibext"; then
7283 cat >>confdefs.h <<_ACEOF
7284 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7290 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7291 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7292 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 libltdl_cv_shlibpath_var="$shlibpath_var"
7297 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7298 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7299 if test -n "$libltdl_cv_shlibpath_var"; then
7301 cat >>confdefs.h <<_ACEOF
7302 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7308 echo "$as_me:$LINENO: checking for the default library search path" >&5
7309 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7310 if test "${libltdl_cv_sys_search_path+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7315 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7316 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7317 if test -n "$libltdl_cv_sys_search_path"; then
7319 for dir in $libltdl_cv_sys_search_path; do
7320 if test -z "$sys_search_path"; then
7321 sys_search_path="$dir"
7323 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7327 cat >>confdefs.h <<_ACEOF
7328 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7333 echo "$as_me:$LINENO: checking for objdir" >&5
7334 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7335 if test "${libltdl_cv_objdir+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 libltdl_cv_objdir="$objdir"
7339 if test -n "$objdir"; then
7342 rm -f .libs 2>/dev/null
7343 mkdir .libs 2>/dev/null
7344 if test -d .libs; then
7345 libltdl_cv_objdir=.libs
7347 # MS-DOS does not allow filenames that begin with a dot.
7348 libltdl_cv_objdir=_libs
7350 rmdir .libs 2>/dev/null
7354 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7355 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7357 cat >>confdefs.h <<_ACEOF
7358 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7362 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7363 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7364 if test "${lt_cv_path_NM+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 if test -n "$NM"; then
7368 # Let the user override the test.
7371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7372 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7374 test -z "$ac_dir" && ac_dir=.
7375 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7376 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7377 # Check to see if the nm accepts a BSD-compat flag.
7378 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7379 # nm: unknown option "B" ignored
7380 # Tru64's nm complains that /dev/null is an invalid object file
7381 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7382 */dev/null* | *'Invalid file or object type'*)
7383 lt_cv_path_NM="$tmp_nm -B"
7387 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7389 lt_cv_path_NM="$tmp_nm -p"
7393 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7394 continue # so that we can try to find one that supports BSD flags
7401 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7404 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7405 echo "${ECHO_T}$lt_cv_path_NM" >&6
7412 # Check for command to grab the raw symbol name followed by C symbol from nm.
7413 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7414 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7415 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 # These are sane defaults that work on at least a few old systems.
7420 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7422 # Character class describing NM global symbol codes.
7423 symcode='[BCDEGRST]'
7425 # Regexp to match symbols that can be accessed directly from C.
7426 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7428 # Transform the above into a raw symbol and a C symbol.
7429 symxfrm='\1 \2\3 \3'
7431 # Transform an extracted symbol line into a proper C declaration
7432 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7434 # Transform an extracted symbol line into symbol name and symbol address
7435 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'"
7437 # Define system-specific variables.
7442 cygwin* | mingw* | pw32*)
7443 symcode='[ABCDGISTW]'
7445 hpux*) # Its linker distinguishes data from code symbols
7446 if test "$host_cpu" = ia64; then
7447 symcode='[ABCDEGRST]'
7449 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7450 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'"
7453 if test "$host_cpu" = ia64; then
7454 symcode='[ABCDGIRSTW]'
7455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7456 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'"
7460 symcode='[BCDEGRST]'
7463 symcode='[BCDEGQRST]'
7473 # Handle CRLF in mingw tool chain
7477 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7481 # If we're using GNU nm, then use its standard symbol codes.
7482 case `$NM -V 2>&1` in
7483 *GNU* | *'with BFD'*)
7484 symcode='[ABCDGIRSTW]' ;;
7487 # Try without a prefix undercore, then with it.
7488 for ac_symprfx in "" "_"; do
7490 # Write the raw and C identifiers.
7491 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7493 # Check to see that the pipe works correctly.
7497 cat > conftest.$ac_ext <<EOF
7502 void nm_test_func(){}
7506 int main(){nm_test_var='a';nm_test_func();return(0);}
7509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510 (eval $ac_compile) 2>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; then
7514 # Now try to grab the symbols.
7516 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7517 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } && test -s "$nlist"; then
7521 # Try sorting and uniquifying the output.
7522 if sort "$nlist" | uniq > "$nlist"T; then
7523 mv -f "$nlist"T "$nlist"
7528 # Make sure that we snagged all the symbols we need.
7529 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7530 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7531 cat <<EOF > conftest.$ac_ext
7537 # Now generate the symbol file.
7538 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7540 cat <<EOF >> conftest.$ac_ext
7541 #if defined (__STDC__) && __STDC__
7542 # define lt_ptr_t void *
7544 # define lt_ptr_t char *
7548 /* The mapping between symbol names and symbols. */
7553 lt_preloaded_symbols[] =
7556 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7557 cat <<\EOF >> conftest.$ac_ext
7565 # Now try linking the two files.
7566 mv conftest.$ac_objext conftstm.$ac_objext
7567 lt_save_LIBS="$LIBS"
7568 lt_save_CFLAGS="$CFLAGS"
7569 LIBS="conftstm.$ac_objext"
7570 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7578 LIBS="$lt_save_LIBS"
7579 CFLAGS="$lt_save_CFLAGS"
7581 echo "cannot find nm_test_func in $nlist" >&5
7584 echo "cannot find nm_test_var in $nlist" >&5
7587 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7590 echo "$progname: failed program was:" >&5
7591 cat conftest.$ac_ext >&5
7593 rm -f conftest* conftst*
7595 # Do not use the global_symbol_pipe unless it works.
7596 if test "$pipe_works" = yes; then
7599 lt_cv_sys_global_symbol_pipe=
7605 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7606 lt_cv_sys_global_symbol_to_cdecl=
7608 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7609 echo "$as_me:$LINENO: result: failed" >&5
7610 echo "${ECHO_T}failed" >&6
7612 echo "$as_me:$LINENO: result: ok" >&5
7613 echo "${ECHO_T}ok" >&6
7617 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7618 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7619 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7623 libltdl_cv_preloaded_symbols=yes
7625 libltdl_cv_preloaded_symbols=no
7629 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7630 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7631 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7633 cat >>confdefs.h <<\_ACEOF
7634 #define HAVE_PRELOADED_SYMBOLS 1
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7648 echo "$as_me:$LINENO: checking for shl_load" >&5
7649 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7650 if test "${ac_cv_func_shl_load+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 cat >conftest.$ac_ext <<_ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7661 #define shl_load innocuous_shl_load
7663 /* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char shl_load (); below.
7665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7666 <limits.h> exists even on freestanding compilers. */
7669 # include <limits.h>
7671 # include <assert.h>
7676 /* Override any gcc2 internal prototype to avoid an error. */
7681 /* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7684 /* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7690 char (*f) () = shl_load;
7699 return f != shl_load;
7704 rm -f conftest.$ac_objext conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>conftest.er1
7708 grep -v '^ *+' conftest.er1 >conftest.err
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try='test -z "$ac_c_werror_flag"
7714 || test ! -s conftest.err'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_cv_func_shl_load=yes
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 ac_cv_func_shl_load=no
7733 rm -f conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
7736 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7737 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7738 if test $ac_cv_func_shl_load = yes; then
7740 cat >>confdefs.h <<\_ACEOF
7741 #define HAVE_SHL_LOAD 1
7745 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7746 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7747 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 ac_check_lib_save_LIBS=$LIBS
7752 cat >conftest.$ac_ext <<_ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7759 /* Override any gcc2 internal prototype to avoid an error. */
7763 /* We use char because int might match the return type of a gcc2
7764 builtin and then its argument prototype would still apply. */
7774 rm -f conftest.$ac_objext conftest$ac_exeext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776 (eval $ac_link) 2>conftest.er1
7778 grep -v '^ *+' conftest.er1 >conftest.err
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -z "$ac_c_werror_flag"
7784 || test ! -s conftest.err'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; } &&
7790 { ac_try='test -s conftest$ac_exeext'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7796 ac_cv_lib_dld_shl_load=yes
7798 echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7801 ac_cv_lib_dld_shl_load=no
7803 rm -f conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 LIBS=$ac_check_lib_save_LIBS
7807 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7808 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7809 if test $ac_cv_lib_dld_shl_load = yes; then
7811 cat >>confdefs.h <<\_ACEOF
7812 #define HAVE_SHL_LOAD 1
7815 LIBADD_DL="$LIBADD_DL -ldld"
7817 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7818 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7819 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 ac_check_lib_save_LIBS=$LIBS
7824 cat >conftest.$ac_ext <<_ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7831 /* Override any gcc2 internal prototype to avoid an error. */
7835 /* We use char because int might match the return type of a gcc2
7836 builtin and then its argument prototype would still apply. */
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848 (eval $ac_link) 2>conftest.er1
7850 grep -v '^ *+' conftest.er1 >conftest.err
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -z "$ac_c_werror_flag"
7856 || test ! -s conftest.err'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest$ac_exeext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_cv_lib_dl_dlopen=yes
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7873 ac_cv_lib_dl_dlopen=no
7875 rm -f conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
7877 LIBS=$ac_check_lib_save_LIBS
7879 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7880 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7881 if test $ac_cv_lib_dl_dlopen = yes; then
7883 cat >>confdefs.h <<\_ACEOF
7884 #define HAVE_LIBDL 1
7887 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7889 cat >conftest.$ac_ext <<_ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7907 rm -f conftest.$ac_objext conftest$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>conftest.er1
7911 grep -v '^ *+' conftest.er1 >conftest.err
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -z "$ac_c_werror_flag"
7917 || test ! -s conftest.err'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7930 cat >>confdefs.h <<\_ACEOF
7931 #define HAVE_LIBDL 1
7933 libltdl_cv_func_dlopen="yes"
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7939 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7940 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 ac_check_lib_save_LIBS=$LIBS
7945 cat >conftest.$ac_ext <<_ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7952 /* Override any gcc2 internal prototype to avoid an error. */
7956 /* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7969 (eval $ac_link) 2>conftest.er1
7971 grep -v '^ *+' conftest.er1 >conftest.err
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } &&
7976 { ac_try='test -z "$ac_c_werror_flag"
7977 || test ! -s conftest.err'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; } &&
7983 { ac_try='test -s conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 ac_cv_lib_svld_dlopen=yes
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_cv_lib_svld_dlopen=no
7996 rm -f conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
7998 LIBS=$ac_check_lib_save_LIBS
8000 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8001 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8002 if test $ac_cv_lib_svld_dlopen = yes; then
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_LIBDL 1
8008 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8010 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8011 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8012 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 ac_check_lib_save_LIBS=$LIBS
8017 cat >conftest.$ac_ext <<_ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8024 /* Override any gcc2 internal prototype to avoid an error. */
8028 /* We use char because int might match the return type of a gcc2
8029 builtin and then its argument prototype would still apply. */
8039 rm -f conftest.$ac_objext conftest$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>conftest.er1
8043 grep -v '^ *+' conftest.er1 >conftest.err
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest$ac_exeext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_cv_lib_dld_dld_link=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_cv_lib_dld_dld_link=no
8068 rm -f conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8070 LIBS=$ac_check_lib_save_LIBS
8072 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8073 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8074 if test $ac_cv_lib_dld_dld_link = yes; then
8076 cat >>confdefs.h <<\_ACEOF
8080 LIBADD_DL="$LIBADD_DL -ldld"
8082 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8083 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8084 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 cat >conftest.$ac_ext <<_ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8095 #define _dyld_func_lookup innocuous__dyld_func_lookup
8097 /* System header to define __stub macros and hopefully few prototypes,
8098 which can conflict with char _dyld_func_lookup (); below.
8099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8100 <limits.h> exists even on freestanding compilers. */
8103 # include <limits.h>
8105 # include <assert.h>
8108 #undef _dyld_func_lookup
8110 /* Override any gcc2 internal prototype to avoid an error. */
8115 /* We use char because int might match the return type of a gcc2
8116 builtin and then its argument prototype would still apply. */
8117 char _dyld_func_lookup ();
8118 /* The GNU C library defines this for functions which it implements
8119 to always fail with ENOSYS. Some functions are actually named
8120 something starting with __ and the normal name is an alias. */
8121 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8124 char (*f) () = _dyld_func_lookup;
8133 return f != _dyld_func_lookup;
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140 (eval $ac_link) 2>conftest.er1
8142 grep -v '^ *+' conftest.er1 >conftest.err
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try='test -z "$ac_c_werror_flag"
8148 || test ! -s conftest.err'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest$ac_exeext'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; }; then
8160 ac_cv_func__dyld_func_lookup=yes
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_cv_func__dyld_func_lookup=no
8167 rm -f conftest.err conftest.$ac_objext \
8168 conftest$ac_exeext conftest.$ac_ext
8170 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8171 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8172 if test $ac_cv_func__dyld_func_lookup = yes; then
8174 cat >>confdefs.h <<\_ACEOF
8188 rm -f conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
8200 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8202 lt_save_LIBS="$LIBS"
8203 LIBS="$LIBS $LIBADD_DL"
8205 for ac_func in dlerror
8207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8208 echo "$as_me:$LINENO: checking for $ac_func" >&5
8209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8210 if eval "test \"\${$as_ac_var+set}\" = set"; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 cat >conftest.$ac_ext <<_ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8221 #define $ac_func innocuous_$ac_func
8223 /* System header to define __stub macros and hopefully few prototypes,
8224 which can conflict with char $ac_func (); below.
8225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8226 <limits.h> exists even on freestanding compilers. */
8229 # include <limits.h>
8231 # include <assert.h>
8236 /* Override any gcc2 internal prototype to avoid an error. */
8241 /* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8244 /* The GNU C library defines this for functions which it implements
8245 to always fail with ENOSYS. Some functions are actually named
8246 something starting with __ and the normal name is an alias. */
8247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8250 char (*f) () = $ac_func;
8259 return f != $ac_func;
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>conftest.er1
8268 grep -v '^ *+' conftest.er1 >conftest.err
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
8273 { ac_try='test -z "$ac_c_werror_flag"
8274 || test ! -s conftest.err'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 eval "$as_ac_var=yes"
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8291 eval "$as_ac_var=no"
8293 rm -f conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8298 if test `eval echo '${'$as_ac_var'}'` = yes; then
8299 cat >>confdefs.h <<_ACEOF
8300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8306 LIBS="$lt_save_LIBS"
8309 ac_cpp='$CPP $CPPFLAGS'
8310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8316 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8317 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8318 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 ac_cv_sys_symbol_underscore=no
8322 cat > conftest.$ac_ext <<EOF
8323 void nm_test_func(){}
8324 int main(){nm_test_func;return 0;}
8326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8327 (eval $ac_compile) 2>&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; then
8331 # Now try to grab the symbols.
8332 ac_nlist=conftest.nm
8333 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8334 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } && test -s "$ac_nlist"; then
8338 # See whether the symbols have a leading underscore.
8339 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8340 ac_cv_sys_symbol_underscore=yes
8342 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8345 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8349 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8352 echo "configure: failed program was:" >&5
8358 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8359 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8362 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8363 if test x"$libltdl_cv_func_dlopen" = xyes ||
8364 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8365 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8366 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8367 if test "${libltdl_cv_need_uscore+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 libltdl_cv_need_uscore=unknown
8372 LIBS="$LIBS $LIBADD_DL"
8373 if test "$cross_compiling" = yes; then :
8374 libltdl_cv_need_uscore=cross
8376 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8377 lt_status=$lt_dlunknown
8378 cat > conftest.$ac_ext <<EOF
8379 #line 8380 "configure"
8380 #include "confdefs.h"
8389 # define LT_DLGLOBAL RTLD_GLOBAL
8392 # define LT_DLGLOBAL DL_GLOBAL
8394 # define LT_DLGLOBAL 0
8398 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8399 find out it does not work in some platform. */
8400 #ifndef LT_DLLAZY_OR_NOW
8402 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8405 # define LT_DLLAZY_OR_NOW DL_LAZY
8408 # define LT_DLLAZY_OR_NOW RTLD_NOW
8411 # define LT_DLLAZY_OR_NOW DL_NOW
8413 # define LT_DLLAZY_OR_NOW 0
8421 extern "C" void exit (int);
8424 void fnord() { int i=42;}
8427 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8428 int status = $lt_dlunknown;
8432 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8433 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8434 /* dlclose (self); */
8440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441 (eval $ac_link) 2>&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8445 (./conftest; exit; ) 2>/dev/null
8448 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8449 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8453 # compilation failed
8462 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8463 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8467 if test x"$libltdl_cv_need_uscore" = xyes; then
8469 cat >>confdefs.h <<\_ACEOF
8470 #define NEED_USCORE 1
8476 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8477 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8478 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 # PORTME does your system automatically load deplibs for dlopen?
8482 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8483 # For now, we just catch OSes we know something about -- in the
8484 # future, we'll try test this programmatically.
8485 libltdl_cv_sys_dlopen_deplibs=unknown
8487 aix3*|aix4.1.*|aix4.2.*)
8488 # Unknown whether this is true for these versions of AIX, but
8489 # we want this `case' here to explicitly catch those versions.
8490 libltdl_cv_sys_dlopen_deplibs=unknown
8493 libltdl_cv_sys_dlopen_deplibs=yes
8496 # Assuming the user has installed a libdl from somewhere, this is true
8497 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8498 libltdl_cv_sys_dlopen_deplibs=yes
8500 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8501 # GNU and its variants, using gnu ld.so (Glibc)
8502 libltdl_cv_sys_dlopen_deplibs=yes
8505 libltdl_cv_sys_dlopen_deplibs=yes
8507 irix[12345]*|irix6.[01]*)
8508 # Catch all versions of IRIX before 6.2, and indicate that we don't
8509 # know how it worked for any of those versions.
8510 libltdl_cv_sys_dlopen_deplibs=unknown
8513 # The case above catches anything before 6.2, and it's known that
8514 # at 6.2 and later dlopen does load deplibs.
8515 libltdl_cv_sys_dlopen_deplibs=yes
8518 libltdl_cv_sys_dlopen_deplibs=yes
8521 libltdl_cv_sys_dlopen_deplibs=yes
8524 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8525 # it did *not* use an RPATH in a shared library to find objects the
8526 # library depends on, so we explictly say `no'.
8527 libltdl_cv_sys_dlopen_deplibs=no
8529 osf5.0|osf5.0a|osf5.1)
8530 # dlopen *does* load deplibs and with the right loader patch applied
8531 # it even uses RPATH in a shared library to search for shared objects
8532 # that the library depends on, but there's no easy way to know if that
8533 # patch is installed. Since this is the case, all we can really
8534 # say is unknown -- it depends on the patch being installed. If
8535 # it is, this changes to `yes'. Without it, it would be `no'.
8536 libltdl_cv_sys_dlopen_deplibs=unknown
8539 # the two cases above should catch all versions of osf <= 5.1. Read
8540 # the comments above for what we know about them.
8541 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8542 # is used to find them so we can finally say `yes'.
8543 libltdl_cv_sys_dlopen_deplibs=yes
8546 libltdl_cv_sys_dlopen_deplibs=yes
8551 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8552 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8553 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8555 cat >>confdefs.h <<\_ACEOF
8556 #define LTDL_DLOPEN_DEPLIBS 1
8562 for ac_header in argz.h
8564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566 echo "$as_me:$LINENO: checking for $ac_header" >&5
8567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8574 # Is the header compilable?
8575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 $ac_includes_default
8584 #include <$ac_header>
8586 rm -f conftest.$ac_objext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588 (eval $ac_compile) 2>conftest.er1
8590 grep -v '^ *+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -z "$ac_c_werror_flag"
8596 || test ! -s conftest.err'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest.$ac_objext'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; }; then
8608 ac_header_compiler=yes
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8613 ac_header_compiler=no
8615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8617 echo "${ECHO_T}$ac_header_compiler" >&6
8619 # Is the header present?
8620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 #include <$ac_header>
8630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } >/dev/null; then
8638 if test -s conftest.err; then
8639 ac_cpp_err=$ac_c_preproc_warn_flag
8640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8647 if test -z "$ac_cpp_err"; then
8648 ac_header_preproc=yes
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8653 ac_header_preproc=no
8655 rm -f conftest.err conftest.$ac_ext
8656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8657 echo "${ECHO_T}$ac_header_preproc" >&6
8659 # So? What about this header?
8660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8666 ac_header_preproc=yes
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8683 ## ----------------------------------- ##
8684 ## Report this to llvmbugs@cs.uiuc.edu ##
8685 ## ----------------------------------- ##
8688 sed "s/^/$as_me: WARNING: /" >&2
8691 echo "$as_me:$LINENO: checking for $ac_header" >&5
8692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 eval "$as_ac_Header=\$ac_header_preproc"
8698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8703 cat >>confdefs.h <<_ACEOF
8704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8712 echo "$as_me:$LINENO: checking for error_t" >&5
8713 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8714 if test "${ac_cv_type_error_t+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 cat >conftest.$ac_ext <<_ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8732 if (sizeof (error_t))
8738 rm -f conftest.$ac_objext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8740 (eval $ac_compile) 2>conftest.er1
8742 grep -v '^ *+' conftest.er1 >conftest.err
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -z "$ac_c_werror_flag"
8748 || test ! -s conftest.err'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; } &&
8754 { ac_try='test -s conftest.$ac_objext'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 ac_cv_type_error_t=yes
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 ac_cv_type_error_t=no
8767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8769 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8770 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8771 if test $ac_cv_type_error_t = yes; then
8773 cat >>confdefs.h <<_ACEOF
8774 #define HAVE_ERROR_T 1
8780 cat >>confdefs.h <<\_ACEOF
8792 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8795 echo "$as_me:$LINENO: checking for $ac_func" >&5
8796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8797 if eval "test \"\${$as_ac_var+set}\" = set"; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 cat >conftest.$ac_ext <<_ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8808 #define $ac_func innocuous_$ac_func
8810 /* System header to define __stub macros and hopefully few prototypes,
8811 which can conflict with char $ac_func (); below.
8812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8813 <limits.h> exists even on freestanding compilers. */
8816 # include <limits.h>
8818 # include <assert.h>
8823 /* Override any gcc2 internal prototype to avoid an error. */
8828 /* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
8831 /* The GNU C library defines this for functions which it implements
8832 to always fail with ENOSYS. Some functions are actually named
8833 something starting with __ and the normal name is an alias. */
8834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8837 char (*f) () = $ac_func;
8846 return f != $ac_func;
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853 (eval $ac_link) 2>conftest.er1
8855 grep -v '^ *+' conftest.er1 >conftest.err
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag"
8861 || test ! -s conftest.err'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; } &&
8867 { ac_try='test -s conftest$ac_exeext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 eval "$as_ac_var=yes"
8875 echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8878 eval "$as_ac_var=no"
8880 rm -f conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8885 if test `eval echo '${'$as_ac_var'}'` = yes; then
8886 cat >>confdefs.h <<_ACEOF
8887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8920 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8925 echo "$as_me:$LINENO: checking for $ac_header" >&5
8926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8933 # Is the header compilable?
8934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8936 cat >conftest.$ac_ext <<_ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 #include <$ac_header>
8945 rm -f conftest.$ac_objext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8947 (eval $ac_compile) 2>conftest.er1
8949 grep -v '^ *+' conftest.er1 >conftest.err
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag"
8955 || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest.$ac_objext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_header_compiler=yes
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 ac_header_compiler=no
8974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8976 echo "${ECHO_T}$ac_header_compiler" >&6
8978 # Is the header present?
8979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8987 #include <$ac_header>
8989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8992 grep -v '^ *+' conftest.er1 >conftest.err
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } >/dev/null; then
8997 if test -s conftest.err; then
8998 ac_cpp_err=$ac_c_preproc_warn_flag
8999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9006 if test -z "$ac_cpp_err"; then
9007 ac_header_preproc=yes
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 ac_header_preproc=no
9014 rm -f conftest.err conftest.$ac_ext
9015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9016 echo "${ECHO_T}$ac_header_preproc" >&6
9018 # So? What about this header?
9019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9025 ac_header_preproc=yes
9028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9042 ## ----------------------------------- ##
9043 ## Report this to llvmbugs@cs.uiuc.edu ##
9044 ## ----------------------------------- ##
9047 sed "s/^/$as_me: WARNING: /" >&2
9050 echo "$as_me:$LINENO: checking for $ac_header" >&5
9051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 eval "$as_ac_Header=\$ac_header_preproc"
9057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9062 cat >>confdefs.h <<_ACEOF
9063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9074 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9078 echo "$as_me:$LINENO: checking for $ac_header" >&5
9079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9086 # Is the header compilable?
9087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9089 cat >conftest.$ac_ext <<_ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 $ac_includes_default
9096 #include <$ac_header>
9098 rm -f conftest.$ac_objext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100 (eval $ac_compile) 2>conftest.er1
9102 grep -v '^ *+' conftest.er1 >conftest.err
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag"
9108 || test ! -s conftest.err'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; } &&
9114 { ac_try='test -s conftest.$ac_objext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_header_compiler=yes
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9125 ac_header_compiler=no
9127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9129 echo "${ECHO_T}$ac_header_compiler" >&6
9131 # Is the header present?
9132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 #include <$ac_header>
9142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9145 grep -v '^ *+' conftest.er1 >conftest.err
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } >/dev/null; then
9150 if test -s conftest.err; then
9151 ac_cpp_err=$ac_c_preproc_warn_flag
9152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9159 if test -z "$ac_cpp_err"; then
9160 ac_header_preproc=yes
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9165 ac_header_preproc=no
9167 rm -f conftest.err conftest.$ac_ext
9168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9169 echo "${ECHO_T}$ac_header_preproc" >&6
9171 # So? What about this header?
9172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9178 ac_header_preproc=yes
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9195 ## ----------------------------------- ##
9196 ## Report this to llvmbugs@cs.uiuc.edu ##
9197 ## ----------------------------------- ##
9200 sed "s/^/$as_me: WARNING: /" >&2
9203 echo "$as_me:$LINENO: checking for $ac_header" >&5
9204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 eval "$as_ac_Header=\$ac_header_preproc"
9210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9215 cat >>confdefs.h <<_ACEOF
9216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9225 for ac_header in string.h strings.h
9227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9229 echo "$as_me:$LINENO: checking for $ac_header" >&5
9230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9237 # Is the header compilable?
9238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9240 cat >conftest.$ac_ext <<_ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 $ac_includes_default
9247 #include <$ac_header>
9249 rm -f conftest.$ac_objext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251 (eval $ac_compile) 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag"
9259 || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest.$ac_objext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 ac_header_compiler=yes
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 ac_header_compiler=no
9278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9280 echo "${ECHO_T}$ac_header_compiler" >&6
9282 # Is the header present?
9283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9285 cat >conftest.$ac_ext <<_ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 #include <$ac_header>
9293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9296 grep -v '^ *+' conftest.er1 >conftest.err
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } >/dev/null; then
9301 if test -s conftest.err; then
9302 ac_cpp_err=$ac_c_preproc_warn_flag
9303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9310 if test -z "$ac_cpp_err"; then
9311 ac_header_preproc=yes
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 ac_header_preproc=no
9318 rm -f conftest.err conftest.$ac_ext
9319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9320 echo "${ECHO_T}$ac_header_preproc" >&6
9322 # So? What about this header?
9323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9329 ac_header_preproc=yes
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9346 ## ----------------------------------- ##
9347 ## Report this to llvmbugs@cs.uiuc.edu ##
9348 ## ----------------------------------- ##
9351 sed "s/^/$as_me: WARNING: /" >&2
9354 echo "$as_me:$LINENO: checking for $ac_header" >&5
9355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 eval "$as_ac_Header=\$ac_header_preproc"
9361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9366 cat >>confdefs.h <<_ACEOF
9367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9377 for ac_func in strchr index
9379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9380 echo "$as_me:$LINENO: checking for $ac_func" >&5
9381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9382 if eval "test \"\${$as_ac_var+set}\" = set"; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 cat >conftest.$ac_ext <<_ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9393 #define $ac_func innocuous_$ac_func
9395 /* System header to define __stub macros and hopefully few prototypes,
9396 which can conflict with char $ac_func (); below.
9397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9398 <limits.h> exists even on freestanding compilers. */
9401 # include <limits.h>
9403 # include <assert.h>
9408 /* Override any gcc2 internal prototype to avoid an error. */
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9416 /* The GNU C library defines this for functions which it implements
9417 to always fail with ENOSYS. Some functions are actually named
9418 something starting with __ and the normal name is an alias. */
9419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9422 char (*f) () = $ac_func;
9431 return f != $ac_func;
9436 rm -f conftest.$ac_objext conftest$ac_exeext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438 (eval $ac_link) 2>conftest.er1
9440 grep -v '^ *+' conftest.er1 >conftest.err
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -z "$ac_c_werror_flag"
9446 || test ! -s conftest.err'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; } &&
9452 { ac_try='test -s conftest$ac_exeext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9458 eval "$as_ac_var=yes"
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 eval "$as_ac_var=no"
9465 rm -f conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9470 if test `eval echo '${'$as_ac_var'}'` = yes; then
9471 cat >>confdefs.h <<_ACEOF
9472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9480 for ac_func in strrchr rindex
9482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9483 echo "$as_me:$LINENO: checking for $ac_func" >&5
9484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9485 if eval "test \"\${$as_ac_var+set}\" = set"; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 cat >conftest.$ac_ext <<_ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9496 #define $ac_func innocuous_$ac_func
9498 /* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char $ac_func (); below.
9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501 <limits.h> exists even on freestanding compilers. */
9504 # include <limits.h>
9506 # include <assert.h>
9511 /* Override any gcc2 internal prototype to avoid an error. */
9516 /* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9519 /* The GNU C library defines this for functions which it implements
9520 to always fail with ENOSYS. Some functions are actually named
9521 something starting with __ and the normal name is an alias. */
9522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9525 char (*f) () = $ac_func;
9534 return f != $ac_func;
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9541 (eval $ac_link) 2>conftest.er1
9543 grep -v '^ *+' conftest.er1 >conftest.err
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -z "$ac_c_werror_flag"
9549 || test ! -s conftest.err'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest$ac_exeext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 eval "$as_ac_var=yes"
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9566 eval "$as_ac_var=no"
9568 rm -f conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext conftest.$ac_ext
9571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9573 if test `eval echo '${'$as_ac_var'}'` = yes; then
9574 cat >>confdefs.h <<_ACEOF
9575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9583 for ac_func in memcpy bcopy
9585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9586 echo "$as_me:$LINENO: checking for $ac_func" >&5
9587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9588 if eval "test \"\${$as_ac_var+set}\" = set"; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 cat >conftest.$ac_ext <<_ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9599 #define $ac_func innocuous_$ac_func
9601 /* System header to define __stub macros and hopefully few prototypes,
9602 which can conflict with char $ac_func (); below.
9603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9604 <limits.h> exists even on freestanding compilers. */
9607 # include <limits.h>
9609 # include <assert.h>
9614 /* Override any gcc2 internal prototype to avoid an error. */
9619 /* We use char because int might match the return type of a gcc2
9620 builtin and then its argument prototype would still apply. */
9622 /* The GNU C library defines this for functions which it implements
9623 to always fail with ENOSYS. Some functions are actually named
9624 something starting with __ and the normal name is an alias. */
9625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9628 char (*f) () = $ac_func;
9637 return f != $ac_func;
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag"
9652 || test ! -s conftest.err'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest$ac_exeext'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 eval "$as_ac_var=yes"
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 eval "$as_ac_var=no"
9671 rm -f conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
9674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9676 if test `eval echo '${'$as_ac_var'}'` = yes; then
9677 cat >>confdefs.h <<_ACEOF
9678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9686 for ac_func in memmove strcmp
9688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9689 echo "$as_me:$LINENO: checking for $ac_func" >&5
9690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9691 if eval "test \"\${$as_ac_var+set}\" = set"; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9702 #define $ac_func innocuous_$ac_func
9704 /* System header to define __stub macros and hopefully few prototypes,
9705 which can conflict with char $ac_func (); below.
9706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9707 <limits.h> exists even on freestanding compilers. */
9710 # include <limits.h>
9712 # include <assert.h>
9717 /* Override any gcc2 internal prototype to avoid an error. */
9722 /* We use char because int might match the return type of a gcc2
9723 builtin and then its argument prototype would still apply. */
9725 /* The GNU C library defines this for functions which it implements
9726 to always fail with ENOSYS. Some functions are actually named
9727 something starting with __ and the normal name is an alias. */
9728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9731 char (*f) () = $ac_func;
9740 return f != $ac_func;
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747 (eval $ac_link) 2>conftest.er1
9749 grep -v '^ *+' conftest.er1 >conftest.err
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 eval "$as_ac_var=yes"
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 eval "$as_ac_var=no"
9774 rm -f conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9779 if test `eval echo '${'$as_ac_var'}'` = yes; then
9780 cat >>confdefs.h <<_ACEOF
9781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9790 for ac_func in closedir opendir readdir
9792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9793 echo "$as_me:$LINENO: checking for $ac_func" >&5
9794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9795 if eval "test \"\${$as_ac_var+set}\" = set"; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9806 #define $ac_func innocuous_$ac_func
9808 /* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char $ac_func (); below.
9810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811 <limits.h> exists even on freestanding compilers. */
9814 # include <limits.h>
9816 # include <assert.h>
9821 /* Override any gcc2 internal prototype to avoid an error. */
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9829 /* The GNU C library defines this for functions which it implements
9830 to always fail with ENOSYS. Some functions are actually named
9831 something starting with __ and the normal name is an alias. */
9832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9835 char (*f) () = $ac_func;
9844 return f != $ac_func;
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag"
9859 || test ! -s conftest.err'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; } &&
9865 { ac_try='test -s conftest$ac_exeext'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; }; then
9871 eval "$as_ac_var=yes"
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9876 eval "$as_ac_var=no"
9878 rm -f conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9883 if test `eval echo '${'$as_ac_var'}'` = yes; then
9884 cat >>confdefs.h <<_ACEOF
9885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9892 # Check whether --enable-shared or --disable-shared was given.
9893 if test "${enable_shared+set}" = set; then
9894 enableval="$enable_shared"
9895 p=${PACKAGE-default}
9897 yes) enable_shared=yes ;;
9898 no) enable_shared=no ;;
9901 # Look at the argument we got. We use all the common list separators.
9902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9903 for pkg in $enableval; do
9905 if test "X$pkg" = "X$p"; then
9916 # Check whether --enable-static or --disable-static was given.
9917 if test "${enable_static+set}" = set; then
9918 enableval="$enable_static"
9919 p=${PACKAGE-default}
9921 yes) enable_static=yes ;;
9922 no) enable_static=no ;;
9925 # Look at the argument we got. We use all the common list separators.
9926 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9927 for pkg in $enableval; do
9929 if test "X$pkg" = "X$p"; then
9940 # Check whether --enable-fast-install or --disable-fast-install was given.
9941 if test "${enable_fast_install+set}" = set; then
9942 enableval="$enable_fast_install"
9943 p=${PACKAGE-default}
9945 yes) enable_fast_install=yes ;;
9946 no) enable_fast_install=no ;;
9948 enable_fast_install=no
9949 # Look at the argument we got. We use all the common list separators.
9950 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9951 for pkg in $enableval; do
9953 if test "X$pkg" = "X$p"; then
9954 enable_fast_install=yes
9961 enable_fast_install=yes
9964 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9965 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9966 if test "${lt_cv_path_SED+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 # Loop through the user's path and test for sed and gsed.
9970 # Then use that list of sed's as ones to test for truncation.
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975 test -z "$as_dir" && as_dir=.
9976 for lt_ac_prog in sed gsed; do
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9979 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9986 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9987 # along with /bin/sed that truncates output.
9988 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9989 test ! -f $lt_ac_sed && break
9990 cat /dev/null > conftest.in
9992 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9993 # Check for GNU sed and select it if it is found.
9994 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9995 lt_cv_path_SED=$lt_ac_sed
9999 cat conftest.in conftest.in >conftest.tmp
10000 mv conftest.tmp conftest.in
10001 cp conftest.in conftest.nl
10003 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10004 cmp -s conftest.out conftest.nl || break
10005 # 10000 chars as input seems more than enough
10006 test $lt_ac_count -gt 10 && break
10007 lt_ac_count=`expr $lt_ac_count + 1`
10008 if test $lt_ac_count -gt $lt_ac_max; then
10009 lt_ac_max=$lt_ac_count
10010 lt_cv_path_SED=$lt_ac_sed
10017 SED=$lt_cv_path_SED
10018 echo "$as_me:$LINENO: result: $SED" >&5
10019 echo "${ECHO_T}$SED" >&6
10022 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10023 if test "${with_gnu_ld+set}" = set; then
10024 withval="$with_gnu_ld"
10025 test "$withval" = no || with_gnu_ld=yes
10030 if test "$GCC" = yes; then
10031 # Check if gcc -print-prog-name=ld gives a path.
10032 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10033 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10036 # gcc leaves a trailing carriage return which upsets mingw
10037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10042 # Accept absolute paths.
10044 re_direlt='/[^/][^/]*/\.\./'
10045 # Canonicalize the pathname of ld
10046 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10047 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10048 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10050 test -z "$LD" && LD="$ac_prog"
10053 # If it fails, then pretend we aren't using GCC.
10057 # If it is relative, then search for the first ld in PATH.
10058 with_gnu_ld=unknown
10061 elif test "$with_gnu_ld" = yes; then
10062 echo "$as_me:$LINENO: checking for GNU ld" >&5
10063 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10065 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10066 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10068 if test "${lt_cv_path_LD+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 if test -z "$LD"; then
10072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10073 for ac_dir in $PATH; do
10075 test -z "$ac_dir" && ac_dir=.
10076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10077 lt_cv_path_LD="$ac_dir/$ac_prog"
10078 # Check to see if the program is GNU ld. I'd rather use --version,
10079 # but apparently some GNU ld's only accept -v.
10080 # Break only if it was the GNU/non-GNU ld that we prefer.
10081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10082 *GNU* | *'with BFD'*)
10083 test "$with_gnu_ld" != no && break
10086 test "$with_gnu_ld" != yes && break
10093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10097 LD="$lt_cv_path_LD"
10098 if test -n "$LD"; then
10099 echo "$as_me:$LINENO: result: $LD" >&5
10100 echo "${ECHO_T}$LD" >&6
10102 echo "$as_me:$LINENO: result: no" >&5
10103 echo "${ECHO_T}no" >&6
10105 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10106 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10107 { (exit 1); exit 1; }; }
10108 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10109 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10110 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10114 case `$LD -v 2>&1 </dev/null` in
10115 *GNU* | *'with BFD'*)
10116 lt_cv_prog_gnu_ld=yes
10119 lt_cv_prog_gnu_ld=no
10123 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10124 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10125 with_gnu_ld=$lt_cv_prog_gnu_ld
10128 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10129 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10130 if test "${lt_cv_ld_reload_flag+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 lt_cv_ld_reload_flag='-r'
10135 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10136 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10137 reload_flag=$lt_cv_ld_reload_flag
10138 case $reload_flag in
10140 *) reload_flag=" $reload_flag" ;;
10142 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10145 if test "$GCC" = yes; then
10146 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10148 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10153 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10154 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10155 if test "${lt_cv_deplibs_check_method+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 lt_cv_file_magic_cmd='$MAGIC_CMD'
10159 lt_cv_file_magic_test_file=
10160 lt_cv_deplibs_check_method='unknown'
10161 # Need to set the preceding variable on all platforms that support
10162 # interlibrary dependencies.
10163 # 'none' -- dependencies not supported.
10164 # `unknown' -- same as none, but documents that we really don't know.
10165 # 'pass_all' -- all dependencies passed with no checks.
10166 # 'test_compile' -- check by making test program.
10167 # 'file_magic [[regex]]' -- check by looking for files in library path
10168 # which responds to the $file_magic_cmd with a given extended regex.
10169 # If you have `file' or equivalent on your system and you're not sure
10170 # whether `pass_all' will *always* work, you probably want this one.
10174 lt_cv_deplibs_check_method=pass_all
10178 lt_cv_deplibs_check_method=pass_all
10182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10183 lt_cv_file_magic_cmd='/usr/bin/file -L'
10184 lt_cv_file_magic_test_file=/shlib/libc.so
10188 # func_win32_libid is a shell function defined in ltmain.sh
10189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10190 lt_cv_file_magic_cmd='func_win32_libid'
10194 # Base MSYS/MinGW do not provide the 'file' command needed by
10195 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10196 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10197 lt_cv_file_magic_cmd='$OBJDUMP -f'
10200 darwin* | rhapsody*)
10201 lt_cv_deplibs_check_method=pass_all
10204 freebsd* | kfreebsd*-gnu)
10205 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10208 # Not sure whether the presence of OpenBSD here was a mistake.
10209 # Let's accept both of them until this is cleared up.
10210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10211 lt_cv_file_magic_cmd=/usr/bin/file
10212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10216 lt_cv_deplibs_check_method=pass_all
10221 lt_cv_deplibs_check_method=pass_all
10224 hpux10.20* | hpux11*)
10225 lt_cv_file_magic_cmd=/usr/bin/file
10226 case "$host_cpu" in
10228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10232 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]'
10233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10242 irix5* | irix6* | nonstopux*)
10244 *-32|*"-32 ") libmagic=32-bit;;
10245 *-n32|*"-n32 ") libmagic=N32;;
10246 *-64|*"-64 ") libmagic=64-bit;;
10247 *) libmagic=never-match;;
10249 lt_cv_deplibs_check_method=pass_all
10252 # This must be Linux ELF.
10254 lt_cv_deplibs_check_method=pass_all
10258 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10267 lt_cv_file_magic_cmd=/usr/bin/file
10268 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10272 lt_cv_deplibs_check_method=unknown
10276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10283 osf3* | osf4* | osf5*)
10284 lt_cv_deplibs_check_method=pass_all
10288 lt_cv_deplibs_check_method=pass_all
10292 lt_cv_deplibs_check_method=pass_all
10295 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10296 case $host_vendor in
10298 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]'
10299 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10302 lt_cv_deplibs_check_method=pass_all
10305 lt_cv_file_magic_cmd='/bin/file'
10306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10309 lt_cv_file_magic_cmd='/bin/file'
10310 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10311 lt_cv_file_magic_test_file=/lib/libc.so
10314 lt_cv_deplibs_check_method=pass_all
10319 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10320 lt_cv_deplibs_check_method=pass_all
10325 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10326 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10327 file_magic_cmd=$lt_cv_file_magic_cmd
10328 deplibs_check_method=$lt_cv_deplibs_check_method
10329 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10333 # If no C compiler was specified, use CC.
10336 # Allow CC to be a program name with arguments.
10339 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10340 if test "${enable_libtool_lock+set}" = set; then
10341 enableval="$enable_libtool_lock"
10344 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10346 # Some flags need to be propagated to the compiler or linker for good
10350 # Find out which ABI we are using.
10351 echo 'int i;' > conftest.$ac_ext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; then
10357 case `/usr/bin/file conftest.$ac_objext` in
10359 HPUX_IA64_MODE="32"
10362 HPUX_IA64_MODE="64"
10369 # Find out which ABI we are using.
10370 echo '#line 10371 "configure"' > conftest.$ac_ext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10372 (eval $ac_compile) 2>&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; then
10376 if test "$lt_cv_prog_gnu_ld" = yes; then
10377 case `/usr/bin/file conftest.$ac_objext` in
10379 LD="${LD-ld} -melf32bsmip"
10382 LD="${LD-ld} -melf32bmipn32"
10385 LD="${LD-ld} -melf64bmip"
10389 case `/usr/bin/file conftest.$ac_objext` in
10405 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10406 # Find out which ABI we are using.
10407 echo 'int i;' > conftest.$ac_ext
10408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409 (eval $ac_compile) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; then
10413 case "`/usr/bin/file conftest.o`" in
10417 LD="${LD-ld} -m elf_i386"
10419 ppc64-*linux*|powerpc64-*linux*)
10420 LD="${LD-ld} -m elf32ppclinux"
10423 LD="${LD-ld} -m elf_s390"
10426 LD="${LD-ld} -m elf32_sparc"
10433 LD="${LD-ld} -m elf_x86_64"
10435 ppc*-*linux*|powerpc*-*linux*)
10436 LD="${LD-ld} -m elf64ppc"
10439 LD="${LD-ld} -m elf64_s390"
10442 LD="${LD-ld} -m elf64_sparc"
10452 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10453 SAVE_CFLAGS="$CFLAGS"
10454 CFLAGS="$CFLAGS -belf"
10455 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10456 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10457 if test "${lt_cv_cc_needs_belf+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 ac_cpp='$CPP $CPPFLAGS'
10462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466 cat >conftest.$ac_ext <<_ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>conftest.er1
10478 grep -v '^ *+' conftest.er1 >conftest.err
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag"
10484 || test ! -s conftest.err'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest$ac_exeext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 lt_cv_cc_needs_belf=yes
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 lt_cv_cc_needs_belf=no
10503 rm -f conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
10506 ac_cpp='$CPP $CPPFLAGS'
10507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10512 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10513 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10514 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10515 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10516 CFLAGS="$SAVE_CFLAGS"
10522 need_locks="$enable_libtool_lock"
10527 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10528 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10529 (test "X$CXX" != "Xg++"))) ; then
10531 ac_cpp='$CXXCPP $CPPFLAGS'
10532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10535 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10536 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10537 if test -z "$CXXCPP"; then
10538 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 # Double quotes because CXXCPP needs to be expanded
10542 for CXXCPP in "$CXX -E" "/lib/cpp"
10544 ac_preproc_ok=false
10545 for ac_cxx_preproc_warn_flag in '' yes
10547 # Use a header file that comes with gcc, so configuring glibc
10548 # with a fresh cross-compiler works.
10549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10550 # <limits.h> exists even on freestanding compilers.
10551 # On the NeXT, cc -E runs the code through the compiler's parser,
10552 # not just through cpp. "Syntax error" is here to catch this case.
10553 cat >conftest.$ac_ext <<_ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10560 # include <limits.h>
10562 # include <assert.h>
10566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10569 grep -v '^ *+' conftest.er1 >conftest.err
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } >/dev/null; then
10574 if test -s conftest.err; then
10575 ac_cpp_err=$ac_cxx_preproc_warn_flag
10576 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10583 if test -z "$ac_cpp_err"; then
10586 echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10589 # Broken: fails on valid input.
10592 rm -f conftest.err conftest.$ac_ext
10594 # OK, works on sane cases. Now check whether non-existent headers
10595 # can be detected and how.
10596 cat >conftest.$ac_ext <<_ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 #include <ac_nonexistent.h>
10604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10607 grep -v '^ *+' conftest.er1 >conftest.err
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } >/dev/null; then
10612 if test -s conftest.err; then
10613 ac_cpp_err=$ac_cxx_preproc_warn_flag
10614 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10621 if test -z "$ac_cpp_err"; then
10622 # Broken: success on invalid input.
10625 echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10628 # Passes both tests.
10632 rm -f conftest.err conftest.$ac_ext
10635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10636 rm -f conftest.err conftest.$ac_ext
10637 if $ac_preproc_ok; then
10642 ac_cv_prog_CXXCPP=$CXXCPP
10645 CXXCPP=$ac_cv_prog_CXXCPP
10647 ac_cv_prog_CXXCPP=$CXXCPP
10649 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10650 echo "${ECHO_T}$CXXCPP" >&6
10651 ac_preproc_ok=false
10652 for ac_cxx_preproc_warn_flag in '' yes
10654 # Use a header file that comes with gcc, so configuring glibc
10655 # with a fresh cross-compiler works.
10656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10657 # <limits.h> exists even on freestanding compilers.
10658 # On the NeXT, cc -E runs the code through the compiler's parser,
10659 # not just through cpp. "Syntax error" is here to catch this case.
10660 cat >conftest.$ac_ext <<_ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10667 # include <limits.h>
10669 # include <assert.h>
10673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10676 grep -v '^ *+' conftest.er1 >conftest.err
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } >/dev/null; then
10681 if test -s conftest.err; then
10682 ac_cpp_err=$ac_cxx_preproc_warn_flag
10683 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10690 if test -z "$ac_cpp_err"; then
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 # Broken: fails on valid input.
10699 rm -f conftest.err conftest.$ac_ext
10701 # OK, works on sane cases. Now check whether non-existent headers
10702 # can be detected and how.
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 #include <ac_nonexistent.h>
10711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10714 grep -v '^ *+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } >/dev/null; then
10719 if test -s conftest.err; then
10720 ac_cpp_err=$ac_cxx_preproc_warn_flag
10721 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10728 if test -z "$ac_cpp_err"; then
10729 # Broken: success on invalid input.
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 # Passes both tests.
10739 rm -f conftest.err conftest.$ac_ext
10742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10743 rm -f conftest.err conftest.$ac_ext
10744 if $ac_preproc_ok; then
10747 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10748 See \`config.log' for more details." >&5
10749 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10750 See \`config.log' for more details." >&2;}
10751 { (exit 1); exit 1; }; }
10755 ac_cpp='$CXXCPP $CPPFLAGS'
10756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10764 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10765 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10766 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10767 if test -n "$ac_tool_prefix"; then
10768 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10772 echo "$as_me:$LINENO: checking for $ac_word" >&5
10773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10774 if test "${ac_cv_prog_F77+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 if test -n "$F77"; then
10778 ac_cv_prog_F77="$F77" # Let the user override the test.
10780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in $PATH
10784 test -z "$as_dir" && as_dir=.
10785 for ac_exec_ext in '' $ac_executable_extensions; do
10786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10787 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10796 F77=$ac_cv_prog_F77
10797 if test -n "$F77"; then
10798 echo "$as_me:$LINENO: result: $F77" >&5
10799 echo "${ECHO_T}$F77" >&6
10801 echo "$as_me:$LINENO: result: no" >&5
10802 echo "${ECHO_T}no" >&6
10805 test -n "$F77" && break
10808 if test -z "$F77"; then
10810 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10812 # Extract the first word of "$ac_prog", so it can be a program name with args.
10813 set dummy $ac_prog; ac_word=$2
10814 echo "$as_me:$LINENO: checking for $ac_word" >&5
10815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10816 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 if test -n "$ac_ct_F77"; then
10820 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823 for as_dir in $PATH
10826 test -z "$as_dir" && as_dir=.
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10829 ac_cv_prog_ac_ct_F77="$ac_prog"
10830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10838 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10839 if test -n "$ac_ct_F77"; then
10840 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10841 echo "${ECHO_T}$ac_ct_F77" >&6
10843 echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6
10847 test -n "$ac_ct_F77" && break
10854 # Provide some information about the compiler.
10855 echo "$as_me:10856:" \
10856 "checking for Fortran 77 compiler version" >&5
10857 ac_compiler=`set X $ac_compile; echo $2`
10858 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10859 (eval $ac_compiler --version </dev/null >&5) 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }
10863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10864 (eval $ac_compiler -v </dev/null >&5) 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }
10868 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10869 (eval $ac_compiler -V </dev/null >&5) 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }
10875 # If we don't use `.F' as extension, the preprocessor is not run on the
10876 # input file. (Note that this only needs to work for GNU compilers.)
10877 ac_save_ext=$ac_ext
10879 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10880 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10881 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 cat >conftest.$ac_ext <<_ACEOF
10892 rm -f conftest.$ac_objext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10894 (eval $ac_compile) 2>conftest.er1
10896 grep -v '^ *+' conftest.er1 >conftest.err
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -z "$ac_f77_werror_flag"
10902 || test ! -s conftest.err'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest.$ac_objext'
10909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910 (eval $ac_try) 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }; then
10914 ac_compiler_gnu=yes
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10922 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10925 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10926 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10927 ac_ext=$ac_save_ext
10928 ac_test_FFLAGS=${FFLAGS+set}
10929 ac_save_FFLAGS=$FFLAGS
10931 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10932 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10933 if test "${ac_cv_prog_f77_g+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 cat >conftest.$ac_ext <<_ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944 (eval $ac_compile) 2>conftest.er1
10946 grep -v '^ *+' conftest.er1 >conftest.err
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_f77_werror_flag"
10952 || test ! -s conftest.err'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_cv_prog_f77_g=yes
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_cv_prog_f77_g=no
10971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10974 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10975 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10976 if test "$ac_test_FFLAGS" = set; then
10977 FFLAGS=$ac_save_FFLAGS
10978 elif test $ac_cv_prog_f77_g = yes; then
10979 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10985 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10992 G77=`test $ac_compiler_gnu = yes && echo yes`
10994 ac_cpp='$CPP $CPPFLAGS'
10995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11001 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11003 # find the maximum length of command line arguments
11004 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11005 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11006 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 # On DJGPP, this test can blow up pretty badly due to problems in libc
11015 # (any single argument exceeding 2000 bytes causes a buffer overrun
11016 # during glob expansion). Even if it were fixed, the result of this
11017 # check would be larger than it should be.
11018 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11022 # Under GNU Hurd, this test is not required because there is
11023 # no limit to the length of command line arguments.
11024 # Libtool will interpret -1 as no limit whatsoever
11025 lt_cv_sys_max_cmd_len=-1;
11029 # On Win9x/ME, this test blows up -- it succeeds, but takes
11030 # about 5 minutes as the teststring grows exponentially.
11031 # Worse, since 9x/ME are not pre-emptively multitasking,
11032 # you end up with a "frozen" computer, even though with patience
11033 # the test eventually succeeds (with a max line length of 256k).
11034 # Instead, let's just punt: use the minimum linelength reported by
11035 # all of the supported platforms: 8192 (on NT/2K/XP).
11036 lt_cv_sys_max_cmd_len=8192;
11040 # On AmigaOS with pdksh, this test takes hours, literally.
11041 # So we just punt and use a minimum line length of 8192.
11042 lt_cv_sys_max_cmd_len=8192;
11045 netbsd* | freebsd* | openbsd* | darwin* )
11046 # This has been around since 386BSD, at least. Likely further.
11047 if test -x /sbin/sysctl; then
11048 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11049 elif test -x /usr/sbin/sysctl; then
11050 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11052 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11054 # And add a safety zone
11055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11059 # If test is not a shell built-in, we'll probably end up computing a
11060 # maximum length that is only half of the actual maximum length, but
11062 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11063 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11064 = "XX$teststring") >/dev/null 2>&1 &&
11065 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11066 lt_cv_sys_max_cmd_len=$new_result &&
11067 test $i != 17 # 1/2 MB should be enough
11070 teststring=$teststring$teststring
11073 # Add a significant safety factor because C++ compilers can tack on massive
11074 # amounts of additional arguments before passing them to the linker.
11075 # It appears as though 1/2 is a usable value.
11076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11082 if test -n $lt_cv_sys_max_cmd_len ; then
11083 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11084 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11086 echo "$as_me:$LINENO: result: none" >&5
11087 echo "${ECHO_T}none" >&6
11093 # Check for command to grab the raw symbol name followed by C symbol from nm.
11094 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11095 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11096 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 # These are sane defaults that work on at least a few old systems.
11101 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11103 # Character class describing NM global symbol codes.
11104 symcode='[BCDEGRST]'
11106 # Regexp to match symbols that can be accessed directly from C.
11107 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11109 # Transform the above into a raw symbol and a C symbol.
11110 symxfrm='\1 \2\3 \3'
11112 # Transform an extracted symbol line into a proper C declaration
11113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11115 # Transform an extracted symbol line into symbol name and symbol address
11116 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'"
11118 # Define system-specific variables.
11123 cygwin* | mingw* | pw32*)
11124 symcode='[ABCDGISTW]'
11126 hpux*) # Its linker distinguishes data from code symbols
11127 if test "$host_cpu" = ia64; then
11128 symcode='[ABCDEGRST]'
11130 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11131 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'"
11134 if test "$host_cpu" = ia64; then
11135 symcode='[ABCDGIRSTW]'
11136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11137 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'"
11140 irix* | nonstopux*)
11141 symcode='[BCDEGRST]'
11144 symcode='[BCDEGQRST]'
11154 # Handle CRLF in mingw tool chain
11158 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11162 # If we're using GNU nm, then use its standard symbol codes.
11163 case `$NM -V 2>&1` in
11164 *GNU* | *'with BFD'*)
11165 symcode='[ABCDGIRSTW]' ;;
11168 # Try without a prefix undercore, then with it.
11169 for ac_symprfx in "" "_"; do
11171 # Write the raw and C identifiers.
11172 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11174 # Check to see that the pipe works correctly.
11178 cat > conftest.$ac_ext <<EOF
11183 void nm_test_func(){}
11187 int main(){nm_test_var='a';nm_test_func();return(0);}
11190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11191 (eval $ac_compile) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; then
11195 # Now try to grab the symbols.
11197 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11198 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && test -s "$nlist"; then
11202 # Try sorting and uniquifying the output.
11203 if sort "$nlist" | uniq > "$nlist"T; then
11204 mv -f "$nlist"T "$nlist"
11209 # Make sure that we snagged all the symbols we need.
11210 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11211 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11212 cat <<EOF > conftest.$ac_ext
11218 # Now generate the symbol file.
11219 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11221 cat <<EOF >> conftest.$ac_ext
11222 #if defined (__STDC__) && __STDC__
11223 # define lt_ptr_t void *
11225 # define lt_ptr_t char *
11229 /* The mapping between symbol names and symbols. */
11234 lt_preloaded_symbols[] =
11237 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11238 cat <<\EOF >> conftest.$ac_ext
11246 # Now try linking the two files.
11247 mv conftest.$ac_objext conftstm.$ac_objext
11248 lt_save_LIBS="$LIBS"
11249 lt_save_CFLAGS="$CFLAGS"
11250 LIBS="conftstm.$ac_objext"
11251 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11259 LIBS="$lt_save_LIBS"
11260 CFLAGS="$lt_save_CFLAGS"
11262 echo "cannot find nm_test_func in $nlist" >&5
11265 echo "cannot find nm_test_var in $nlist" >&5
11268 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11271 echo "$progname: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11274 rm -f conftest* conftst*
11276 # Do not use the global_symbol_pipe unless it works.
11277 if test "$pipe_works" = yes; then
11280 lt_cv_sys_global_symbol_pipe=
11286 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11287 lt_cv_sys_global_symbol_to_cdecl=
11289 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11290 echo "$as_me:$LINENO: result: failed" >&5
11291 echo "${ECHO_T}failed" >&6
11293 echo "$as_me:$LINENO: result: ok" >&5
11294 echo "${ECHO_T}ok" >&6
11297 echo "$as_me:$LINENO: checking for objdir" >&5
11298 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11299 if test "${lt_cv_objdir+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 rm -f .libs 2>/dev/null
11303 mkdir .libs 2>/dev/null
11304 if test -d .libs; then
11307 # MS-DOS does not allow filenames that begin with a dot.
11310 rmdir .libs 2>/dev/null
11312 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11313 echo "${ECHO_T}$lt_cv_objdir" >&6
11314 objdir=$lt_cv_objdir
11322 # AIX sometimes has problems with the GCC collect2 program. For some
11323 # reason, if we set the COLLECT_NAMES environment variable, the problems
11324 # vanish in a puff of smoke.
11325 if test "X${COLLECT_NAMES+set}" != Xset; then
11327 export COLLECT_NAMES
11332 # Sed substitution that helps us do robust quoting. It backslashifies
11333 # metacharacters that are still active within double-quoted strings.
11334 Xsed='sed -e s/^X//'
11335 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11337 # Same as above, but do not quote variable references.
11338 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11340 # Sed substitution to delay expansion of an escaped shell variable in a
11341 # double_quote_subst'ed string.
11342 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11344 # Sed substitution to avoid accidental globbing in evaled expressions
11345 no_glob_subst='s/\*/\\\*/g'
11350 # Global variables:
11351 default_ofile=mklib
11352 can_build_shared=yes
11354 # All known linkers require a `.a' archive for static linking (except M$VC,
11355 # which needs '.lib').
11357 ltmain="$ac_aux_dir/ltmain.sh"
11358 ofile="$default_ofile"
11359 with_gnu_ld="$lt_cv_prog_gnu_ld"
11361 if test -n "$ac_tool_prefix"; then
11362 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11363 set dummy ${ac_tool_prefix}ar; ac_word=$2
11364 echo "$as_me:$LINENO: checking for $ac_word" >&5
11365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11366 if test "${ac_cv_prog_AR+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 if test -n "$AR"; then
11370 ac_cv_prog_AR="$AR" # Let the user override the test.
11372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373 for as_dir in $PATH
11376 test -z "$as_dir" && as_dir=.
11377 for ac_exec_ext in '' $ac_executable_extensions; do
11378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11379 ac_cv_prog_AR="${ac_tool_prefix}ar"
11380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11389 if test -n "$AR"; then
11390 echo "$as_me:$LINENO: result: $AR" >&5
11391 echo "${ECHO_T}$AR" >&6
11393 echo "$as_me:$LINENO: result: no" >&5
11394 echo "${ECHO_T}no" >&6
11398 if test -z "$ac_cv_prog_AR"; then
11400 # Extract the first word of "ar", so it can be a program name with args.
11401 set dummy ar; ac_word=$2
11402 echo "$as_me:$LINENO: checking for $ac_word" >&5
11403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11404 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 if test -n "$ac_ct_AR"; then
11408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $PATH
11414 test -z "$as_dir" && as_dir=.
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11417 ac_cv_prog_ac_ct_AR="ar"
11418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11428 if test -n "$ac_ct_AR"; then
11429 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11430 echo "${ECHO_T}$ac_ct_AR" >&6
11432 echo "$as_me:$LINENO: result: no" >&5
11433 echo "${ECHO_T}no" >&6
11438 AR="$ac_cv_prog_AR"
11441 if test -n "$ac_tool_prefix"; then
11442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11444 echo "$as_me:$LINENO: checking for $ac_word" >&5
11445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11446 if test "${ac_cv_prog_RANLIB+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 if test -n "$RANLIB"; then
11450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 RANLIB=$ac_cv_prog_RANLIB
11469 if test -n "$RANLIB"; then
11470 echo "$as_me:$LINENO: result: $RANLIB" >&5
11471 echo "${ECHO_T}$RANLIB" >&6
11473 echo "$as_me:$LINENO: result: no" >&5
11474 echo "${ECHO_T}no" >&6
11478 if test -z "$ac_cv_prog_RANLIB"; then
11479 ac_ct_RANLIB=$RANLIB
11480 # Extract the first word of "ranlib", so it can be a program name with args.
11481 set dummy ranlib; ac_word=$2
11482 echo "$as_me:$LINENO: checking for $ac_word" >&5
11483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11484 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 if test -n "$ac_ct_RANLIB"; then
11488 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11497 ac_cv_prog_ac_ct_RANLIB="ranlib"
11498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11507 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11508 if test -n "$ac_ct_RANLIB"; then
11509 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11510 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11512 echo "$as_me:$LINENO: result: no" >&5
11513 echo "${ECHO_T}no" >&6
11516 RANLIB=$ac_ct_RANLIB
11518 RANLIB="$ac_cv_prog_RANLIB"
11521 if test -n "$ac_tool_prefix"; then
11522 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11523 set dummy ${ac_tool_prefix}strip; ac_word=$2
11524 echo "$as_me:$LINENO: checking for $ac_word" >&5
11525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11526 if test "${ac_cv_prog_STRIP+set}" = set; then
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 if test -n "$STRIP"; then
11530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533 for as_dir in $PATH
11536 test -z "$as_dir" && as_dir=.
11537 for ac_exec_ext in '' $ac_executable_extensions; do
11538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11539 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11548 STRIP=$ac_cv_prog_STRIP
11549 if test -n "$STRIP"; then
11550 echo "$as_me:$LINENO: result: $STRIP" >&5
11551 echo "${ECHO_T}$STRIP" >&6
11553 echo "$as_me:$LINENO: result: no" >&5
11554 echo "${ECHO_T}no" >&6
11558 if test -z "$ac_cv_prog_STRIP"; then
11560 # Extract the first word of "strip", so it can be a program name with args.
11561 set dummy strip; ac_word=$2
11562 echo "$as_me:$LINENO: checking for $ac_word" >&5
11563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11564 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 if test -n "$ac_ct_STRIP"; then
11568 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571 for as_dir in $PATH
11574 test -z "$as_dir" && as_dir=.
11575 for ac_exec_ext in '' $ac_executable_extensions; do
11576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11577 ac_cv_prog_ac_ct_STRIP="strip"
11578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11587 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11588 if test -n "$ac_ct_STRIP"; then
11589 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11590 echo "${ECHO_T}$ac_ct_STRIP" >&6
11592 echo "$as_me:$LINENO: result: no" >&5
11593 echo "${ECHO_T}no" >&6
11598 STRIP="$ac_cv_prog_STRIP"
11603 old_CFLAGS="$CFLAGS"
11605 # Set sane defaults for various variables
11606 test -z "$AR" && AR=ar
11607 test -z "$AR_FLAGS" && AR_FLAGS=cru
11608 test -z "$AS" && AS=as
11609 test -z "$CC" && CC=cc
11610 test -z "$LTCC" && LTCC=$CC
11611 test -z "$DLLTOOL" && DLLTOOL=dlltool
11612 test -z "$LD" && LD=ld
11613 test -z "$LN_S" && LN_S="ln -s"
11614 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11615 test -z "$NM" && NM=nm
11616 test -z "$SED" && SED=sed
11617 test -z "$OBJDUMP" && OBJDUMP=objdump
11618 test -z "$RANLIB" && RANLIB=:
11619 test -z "$STRIP" && STRIP=:
11620 test -z "$ac_objext" && ac_objext=o
11622 # Determine commands to create old-style static archives.
11623 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11624 old_postinstall_cmds='chmod 644 $oldlib'
11625 old_postuninstall_cmds=
11627 if test -n "$RANLIB"; then
11630 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11633 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11636 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11639 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11641 # Only perform the check for file, if the check method requires it
11642 case $deplibs_check_method in
11644 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11645 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11646 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11647 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11655 lt_save_MAGIC_CMD="$MAGIC_CMD"
11656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11657 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11658 for ac_dir in $ac_dummy; do
11660 test -z "$ac_dir" && ac_dir=.
11661 if test -f $ac_dir/${ac_tool_prefix}file; then
11662 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11663 if test -n "$file_magic_test_file"; then
11664 case $deplibs_check_method in
11666 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11668 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11669 $EGREP "$file_magic_regex" > /dev/null; then
11674 *** Warning: the command libtool uses to detect shared libraries,
11675 *** $file_magic_cmd, produces output that libtool cannot recognize.
11676 *** The result is that libtool may fail to recognize shared libraries
11677 *** as such. This will affect the creation of libtool libraries that
11678 *** depend on shared libraries, but programs linked with such libtool
11679 *** libraries will work regardless of this problem. Nevertheless, you
11680 *** may want to report the problem to your system manager and/or to
11681 *** bug-libtool@gnu.org
11691 MAGIC_CMD="$lt_save_MAGIC_CMD"
11696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11697 if test -n "$MAGIC_CMD"; then
11698 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11699 echo "${ECHO_T}$MAGIC_CMD" >&6
11701 echo "$as_me:$LINENO: result: no" >&5
11702 echo "${ECHO_T}no" >&6
11705 if test -z "$lt_cv_path_MAGIC_CMD"; then
11706 if test -n "$ac_tool_prefix"; then
11707 echo "$as_me:$LINENO: checking for file" >&5
11708 echo $ECHO_N "checking for file... $ECHO_C" >&6
11709 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11717 lt_save_MAGIC_CMD="$MAGIC_CMD"
11718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11719 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11720 for ac_dir in $ac_dummy; do
11722 test -z "$ac_dir" && ac_dir=.
11723 if test -f $ac_dir/file; then
11724 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11725 if test -n "$file_magic_test_file"; then
11726 case $deplibs_check_method in
11728 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11731 $EGREP "$file_magic_regex" > /dev/null; then
11736 *** Warning: the command libtool uses to detect shared libraries,
11737 *** $file_magic_cmd, produces output that libtool cannot recognize.
11738 *** The result is that libtool may fail to recognize shared libraries
11739 *** as such. This will affect the creation of libtool libraries that
11740 *** depend on shared libraries, but programs linked with such libtool
11741 *** libraries will work regardless of this problem. Nevertheless, you
11742 *** may want to report the problem to your system manager and/or to
11743 *** bug-libtool@gnu.org
11753 MAGIC_CMD="$lt_save_MAGIC_CMD"
11758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11759 if test -n "$MAGIC_CMD"; then
11760 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11761 echo "${ECHO_T}$MAGIC_CMD" >&6
11763 echo "$as_me:$LINENO: result: no" >&5
11764 echo "${ECHO_T}no" >&6
11777 enable_win32_dll=no
11779 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11780 if test "${enable_libtool_lock+set}" = set; then
11781 enableval="$enable_libtool_lock"
11784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11787 # Check whether --with-pic or --without-pic was given.
11788 if test "${with_pic+set}" = set; then
11789 withval="$with_pic"
11790 pic_mode="$withval"
11794 test -z "$pic_mode" && pic_mode=default
11796 # Use C for the default configuration in the libtool script
11800 ac_cpp='$CPP $CPPFLAGS'
11801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11806 # Source file extension for C test sources.
11809 # Object file extension for compiled C test sources.
11813 # Code to be used in simple compile tests
11814 lt_simple_compile_test_code="int some_variable = 0;\n"
11816 # Code to be used in simple link tests
11817 lt_simple_link_test_code='int main(){return(0);}\n'
11820 # If no C compiler was specified, use CC.
11823 # Allow CC to be a program name with arguments.
11828 # Check for any special shared library compilation flags.
11831 if test "$GCC" = no; then
11834 lt_prog_cc_shlib='-belf'
11838 if test -n "$lt_prog_cc_shlib"; then
11839 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11840 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11841 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11843 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11844 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11845 lt_cv_prog_cc_can_build_shared=no
11851 # Check to make sure the static flag actually works.
11853 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11854 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11855 if test "${lt_prog_compiler_static_works+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 lt_prog_compiler_static_works=no
11859 save_LDFLAGS="$LDFLAGS"
11860 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11861 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11863 # The compiler can only warn and ignore the option if not recognized
11864 # So say no if there are warnings
11865 if test -s conftest.err; then
11866 # Append any errors to the config.log.
11867 cat conftest.err 1>&5
11869 lt_prog_compiler_static_works=yes
11873 LDFLAGS="$save_LDFLAGS"
11876 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11877 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11879 if test x"$lt_prog_compiler_static_works" = xyes; then
11882 lt_prog_compiler_static=
11888 lt_prog_compiler_no_builtin_flag=
11890 if test "$GCC" = yes; then
11891 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11894 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11895 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11896 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 lt_cv_prog_compiler_rtti_exceptions=no
11900 ac_outfile=conftest.$ac_objext
11901 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11902 lt_compiler_flag="-fno-rtti -fno-exceptions"
11903 # Insert the option either (1) after the last *FLAGS variable, or
11904 # (2) before a word containing "conftest.", or (3) at the end.
11905 # Note that $ac_compile itself does not contain backslashes and begins
11906 # with a dollar sign (not a hyphen), so the echo should work correctly.
11907 # The option is referenced via a variable to avoid confusing sed.
11908 lt_compile=`echo "$ac_compile" | $SED \
11909 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11911 -e 's:$: $lt_compiler_flag:'`
11912 (eval echo "\"\$as_me:11913: $lt_compile\"" >&5)
11913 (eval "$lt_compile" 2>conftest.err)
11915 cat conftest.err >&5
11916 echo "$as_me:11917: \$? = $ac_status" >&5
11917 if (exit $ac_status) && test -s "$ac_outfile"; then
11918 # The compiler can only warn and ignore the option if not recognized
11919 # So say no if there are warnings
11920 if test ! -s conftest.err; then
11921 lt_cv_prog_compiler_rtti_exceptions=yes
11927 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11928 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11930 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11931 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11938 lt_prog_compiler_wl=
11939 lt_prog_compiler_pic=
11940 lt_prog_compiler_static=
11942 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11943 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11945 if test "$GCC" = yes; then
11946 lt_prog_compiler_wl='-Wl,'
11947 lt_prog_compiler_static='-static'
11951 # All AIX code is PIC.
11952 if test "$host_cpu" = ia64; then
11953 # AIX 5 now supports IA64 processor
11954 lt_prog_compiler_static='-Bstatic'
11959 # FIXME: we need at least 68020 code to build shared libraries, but
11960 # adding the `-m68020' flag to GCC prevents building anything better,
11962 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11965 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11966 # PIC is the default for these OSes.
11969 mingw* | pw32* | os2*)
11970 # This hack is so that the source file can tell whether it is being
11971 # built for inclusion in a dll (and should export symbols for example).
11972 lt_prog_compiler_pic='-DDLL_EXPORT'
11975 darwin* | rhapsody*)
11976 # PIC is the default on this platform
11977 # Common symbols not allowed in MH_DYLIB files
11978 lt_prog_compiler_pic='-fno-common'
11982 # Just because we use GCC doesn't mean we suddenly get shared libraries
11983 # on systems that don't support them.
11984 lt_prog_compiler_can_build_shared=no
11989 if test -d /usr/nec; then
11990 lt_prog_compiler_pic=-Kconform_pic
11995 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11996 # not for PA HP-UX.
11997 case "$host_cpu" in
12002 lt_prog_compiler_pic='-fPIC'
12008 lt_prog_compiler_pic='-fPIC'
12012 # PORTME Check for flag to pass linker flags through the system compiler.
12015 lt_prog_compiler_wl='-Wl,'
12016 if test "$host_cpu" = ia64; then
12017 # AIX 5 now supports IA64 processor
12018 lt_prog_compiler_static='-Bstatic'
12020 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12024 # PIC is the default on this platform
12025 # Common symbols not allowed in MH_DYLIB files
12026 case "$cc_basename" in
12028 lt_prog_compiler_pic='-qnocommon'
12029 lt_prog_compiler_wl='-Wl,'
12034 mingw* | pw32* | os2*)
12035 # This hack is so that the source file can tell whether it is being
12036 # built for inclusion in a dll (and should export symbols for example).
12037 lt_prog_compiler_pic='-DDLL_EXPORT'
12040 hpux9* | hpux10* | hpux11*)
12041 lt_prog_compiler_wl='-Wl,'
12042 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12043 # not for PA HP-UX.
12044 case "$host_cpu" in
12049 lt_prog_compiler_pic='+Z'
12052 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12053 lt_prog_compiler_static='${wl}-a ${wl}archive'
12056 irix5* | irix6* | nonstopux*)
12057 lt_prog_compiler_wl='-Wl,'
12058 # PIC (with -KPIC) is the default.
12059 lt_prog_compiler_static='-non_shared'
12063 lt_prog_compiler_pic='-KPIC'
12064 lt_prog_compiler_static='-Bstatic'
12070 lt_prog_compiler_wl='-Wl,'
12071 lt_prog_compiler_pic='-KPIC'
12072 lt_prog_compiler_static='-static'
12075 lt_prog_compiler_wl='-Wl,'
12076 # All Alpha code is PIC.
12077 lt_prog_compiler_static='-non_shared'
12082 osf3* | osf4* | osf5*)
12083 lt_prog_compiler_wl='-Wl,'
12084 # All OSF/1 code is PIC.
12085 lt_prog_compiler_static='-non_shared'
12089 lt_prog_compiler_pic='-Kpic'
12090 lt_prog_compiler_static='-dn'
12094 lt_prog_compiler_wl='-Wl,'
12095 lt_prog_compiler_pic='-KPIC'
12096 lt_prog_compiler_static='-Bstatic'
12100 lt_prog_compiler_wl='-Qoption ld '
12101 lt_prog_compiler_pic='-PIC'
12102 lt_prog_compiler_static='-Bstatic'
12105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12106 lt_prog_compiler_wl='-Wl,'
12107 lt_prog_compiler_pic='-KPIC'
12108 lt_prog_compiler_static='-Bstatic'
12112 if test -d /usr/nec ;then
12113 lt_prog_compiler_pic='-Kconform_pic'
12114 lt_prog_compiler_static='-Bstatic'
12119 lt_prog_compiler_pic='-pic'
12120 lt_prog_compiler_static='-Bstatic'
12124 lt_prog_compiler_can_build_shared=no
12129 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12130 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12133 # Check to make sure the PIC flag actually works.
12135 if test -n "$lt_prog_compiler_pic"; then
12137 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12138 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12139 if test "${lt_prog_compiler_pic_works+set}" = set; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 lt_prog_compiler_pic_works=no
12143 ac_outfile=conftest.$ac_objext
12144 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12145 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12146 # Insert the option either (1) after the last *FLAGS variable, or
12147 # (2) before a word containing "conftest.", or (3) at the end.
12148 # Note that $ac_compile itself does not contain backslashes and begins
12149 # with a dollar sign (not a hyphen), so the echo should work correctly.
12150 # The option is referenced via a variable to avoid confusing sed.
12151 lt_compile=`echo "$ac_compile" | $SED \
12152 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12154 -e 's:$: $lt_compiler_flag:'`
12155 (eval echo "\"\$as_me:12156: $lt_compile\"" >&5)
12156 (eval "$lt_compile" 2>conftest.err)
12158 cat conftest.err >&5
12159 echo "$as_me:12160: \$? = $ac_status" >&5
12160 if (exit $ac_status) && test -s "$ac_outfile"; then
12161 # The compiler can only warn and ignore the option if not recognized
12162 # So say no if there are warnings
12163 if test ! -s conftest.err; then
12164 lt_prog_compiler_pic_works=yes
12170 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12171 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12173 if test x"$lt_prog_compiler_pic_works" = xyes; then
12174 case $lt_prog_compiler_pic in
12176 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12179 lt_prog_compiler_pic=
12180 lt_prog_compiler_can_build_shared=no
12185 # For platforms which do not support PIC, -DPIC is meaningless:
12187 lt_prog_compiler_pic=
12190 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12194 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12195 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12196 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 lt_cv_prog_compiler_c_o=no
12200 $rm -r conftest 2>/dev/null
12204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12206 lt_compiler_flag="-o out/conftest2.$ac_objext"
12207 # Insert the option either (1) after the last *FLAGS variable, or
12208 # (2) before a word containing "conftest.", or (3) at the end.
12209 # Note that $ac_compile itself does not contain backslashes and begins
12210 # with a dollar sign (not a hyphen), so the echo should work correctly.
12211 lt_compile=`echo "$ac_compile" | $SED \
12212 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12214 -e 's:$: $lt_compiler_flag:'`
12215 (eval echo "\"\$as_me:12216: $lt_compile\"" >&5)
12216 (eval "$lt_compile" 2>out/conftest.err)
12218 cat out/conftest.err >&5
12219 echo "$as_me:12220: \$? = $ac_status" >&5
12220 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12222 # The compiler can only warn and ignore the option if not recognized
12223 # So say no if there are warnings
12224 if test ! -s out/conftest.err; then
12225 lt_cv_prog_compiler_c_o=yes
12230 # SGI C++ compiler will create directory out/ii_files/ for
12231 # template instantiation
12232 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12233 $rm out/* && rmdir out
12239 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12240 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12243 hard_links="nottested"
12244 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12245 # do not overwrite the value of need_locks provided by the user
12246 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12247 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12252 ln conftest.a conftest.b 2>&5 || hard_links=no
12253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12254 echo "$as_me:$LINENO: result: $hard_links" >&5
12255 echo "${ECHO_T}$hard_links" >&6
12256 if test "$hard_links" = no; then
12257 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12258 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12265 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12266 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12269 allow_undefined_flag=
12270 enable_shared_with_static_runtimes=no
12272 archive_expsym_cmds=
12273 old_archive_From_new_cmds=
12274 old_archive_from_expsyms_cmds=
12275 export_dynamic_flag_spec=
12276 whole_archive_flag_spec=
12277 thread_safe_flag_spec=
12278 hardcode_libdir_flag_spec=
12279 hardcode_libdir_flag_spec_ld=
12280 hardcode_libdir_separator=
12282 hardcode_minus_L=no
12283 hardcode_shlibpath_var=unsupported
12284 link_all_deplibs=unknown
12285 hardcode_automatic=no
12287 module_expsym_cmds=
12288 always_export_symbols=no
12289 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12290 # include_expsyms should be a list of space-separated symbols to be *always*
12291 # included in the symbol list
12293 # exclude_expsyms can be an extended regexp of symbols to exclude
12294 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12295 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12296 # as well as any symbol that contains `d'.
12297 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12298 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12299 # platforms (ab)use it in PIC code, but their linkers get confused if
12300 # the symbol is explicitly referenced. Since portable code cannot
12301 # rely on this symbol name, it's probably fine to never include it in
12302 # preloaded symbol tables.
12303 extract_expsyms_cmds=
12306 cygwin* | mingw* | pw32*)
12307 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12308 # When not using gcc, we currently assume that we are using
12309 # Microsoft Visual C++.
12310 if test "$GCC" != yes; then
12320 if test "$with_gnu_ld" = yes; then
12321 # If archive_cmds runs LD, not CC, wlarc should be empty
12324 # See if GNU ld supports shared libraries.
12326 aix3* | aix4* | aix5*)
12327 # On AIX/PPC, the GNU linker is very broken
12328 if test "$host_cpu" != ia64; then
12332 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12333 *** to be unable to reliably create shared libraries on AIX.
12334 *** Therefore, libtool is disabling shared libraries support. If you
12335 *** really care for shared libraries, you may want to modify your PATH
12336 *** so that a non-GNU linker is found, and then restart.
12343 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)'
12344 hardcode_libdir_flag_spec='-L$libdir'
12345 hardcode_minus_L=yes
12347 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12348 # that the semantics of dynamic libraries on AmigaOS, at least up
12349 # to version 4, is to share data among multiple programs linked
12350 # with the same dynamic library. Since this doesn't match the
12351 # behavior of shared libraries on other platforms, we can't use
12357 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12358 allow_undefined_flag=unsupported
12359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12360 # support --undefined. This deserves some investigation. FIXME
12361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12367 cygwin* | mingw* | pw32*)
12368 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12369 # as there is no search path for DLLs.
12370 hardcode_libdir_flag_spec='-L$libdir'
12371 allow_undefined_flag=unsupported
12372 always_export_symbols=no
12373 enable_shared_with_static_runtimes=yes
12374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12376 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12378 # If the export-symbols file already is a .def file (1st line
12379 # is EXPORTS), use it as is; otherwise, prepend...
12380 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12381 cp $export_symbols $output_objdir/$soname.def;
12383 echo EXPORTS > $output_objdir/$soname.def;
12384 cat $export_symbols >> $output_objdir/$soname.def;
12386 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12394 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12403 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12407 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12408 *** create shared libraries on Solaris systems. Therefore, libtool
12409 *** is disabling shared libraries support. We urge you to upgrade GNU
12410 *** binutils to release 2.9.1 or newer. Another option is to modify
12411 *** your PATH or compiler configuration so that the native linker is
12412 *** used, and then restart.
12415 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12424 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12426 hardcode_direct=yes
12427 hardcode_shlibpath_var=no
12431 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12432 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12433 archive_cmds="$tmp_archive_cmds"
12434 supports_anon_versioning=no
12435 case `$LD -v 2>/dev/null` in
12436 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12437 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12438 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12439 *\ 2.11.*) ;; # other 2.11 versions
12440 *) supports_anon_versioning=yes ;;
12442 if test $supports_anon_versioning = yes; then
12443 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12445 $echo "local: *; };" >> $output_objdir/$libname.ver~
12446 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12448 archive_expsym_cmds="$tmp_archive_cmds"
12456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12458 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12465 if test "$ld_shlibs" = yes; then
12466 runpath_var=LD_RUN_PATH
12467 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12468 export_dynamic_flag_spec='${wl}--export-dynamic'
12469 # ancient GNU ld didn't support --whole-archive et. al.
12470 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12471 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12473 whole_archive_flag_spec=
12477 # PORTME fill in a description of your system's linker (not GNU ld)
12480 allow_undefined_flag=unsupported
12481 always_export_symbols=yes
12482 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'
12483 # Note: this linker hardcodes the directories in LIBPATH if there
12484 # are no directories specified by -L.
12485 hardcode_minus_L=yes
12486 if test "$GCC" = yes && test -z "$link_static_flag"; then
12487 # Neither direct hardcoding nor static linking is supported with a
12489 hardcode_direct=unsupported
12494 if test "$host_cpu" = ia64; then
12495 # On IA64, the linker does run time linking by default, so we don't
12496 # have to do anything special.
12497 aix_use_runtimelinking=no
12498 exp_sym_flag='-Bexport'
12501 # If we're using GNU nm, then we don't want the "-C" option.
12502 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12503 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12504 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'
12506 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'
12508 aix_use_runtimelinking=no
12510 # Test if we are trying to use run time linking or normal
12511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12512 # need to do runtime linking.
12513 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12514 for ld_flag in $LDFLAGS; do
12515 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12516 aix_use_runtimelinking=yes
12522 exp_sym_flag='-bexport'
12523 no_entry_flag='-bnoentry'
12526 # When large executables or shared objects are built, AIX ld can
12527 # have problems creating the table of contents. If linking a library
12528 # or program results in "error TOC overflow" add -mminimal-toc to
12529 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12530 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12533 hardcode_direct=yes
12534 hardcode_libdir_separator=':'
12535 link_all_deplibs=yes
12537 if test "$GCC" = yes; then
12538 case $host_os in aix4.012|aix4.012.*)
12539 # We only want to do this on AIX 4.2 and lower, the check
12540 # below for broken collect2 doesn't work under 4.3+
12541 collect2name=`${CC} -print-prog-name=collect2`
12542 if test -f "$collect2name" && \
12543 strings "$collect2name" | grep resolve_lib_name >/dev/null
12545 # We have reworked collect2
12546 hardcode_direct=yes
12548 # We have old collect2
12549 hardcode_direct=unsupported
12550 # It fails to find uninstalled libraries when the uninstalled
12551 # path is not listed in the libpath. Setting hardcode_minus_L
12552 # to unsupported forces relinking
12553 hardcode_minus_L=yes
12554 hardcode_libdir_flag_spec='-L$libdir'
12555 hardcode_libdir_separator=
12558 shared_flag='-shared'
12561 if test "$host_cpu" = ia64; then
12562 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12563 # chokes on -Wl,-G. The following line is correct:
12566 if test "$aix_use_runtimelinking" = yes; then
12567 shared_flag='${wl}-G'
12569 shared_flag='${wl}-bM:SRE'
12574 # It seems that -bexpall does not export symbols beginning with
12575 # underscore (_), so it is better to generate a list of symbols to export.
12576 always_export_symbols=yes
12577 if test "$aix_use_runtimelinking" = yes; then
12578 # Warning - without using the other runtime loading flags (-brtl),
12579 # -berok will link without error, but may produce a broken library.
12580 allow_undefined_flag='-berok'
12581 # Determine the default libpath from the value encoded in an empty executable.
12582 cat >conftest.$ac_ext <<_ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12597 rm -f conftest.$ac_objext conftest$ac_exeext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12599 (eval $ac_link) 2>conftest.er1
12601 grep -v '^ *+' conftest.er1 >conftest.err
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -z "$ac_c_werror_flag"
12607 || test ! -s conftest.err'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest$ac_exeext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12622 # Check for a 64-bit object if we didn't find anything.
12623 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; }
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12630 rm -f conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12634 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12635 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"
12637 if test "$host_cpu" = ia64; then
12638 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12639 allow_undefined_flag="-z nodefs"
12640 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"
12642 # Determine the default libpath from the value encoded in an empty executable.
12643 cat >conftest.$ac_ext <<_ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12658 rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12660 (eval $ac_link) 2>conftest.er1
12662 grep -v '^ *+' conftest.er1 >conftest.err
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try='test -z "$ac_c_werror_flag"
12668 || test ! -s conftest.err'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; } &&
12674 { ac_try='test -s conftest$ac_exeext'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12683 # Check for a 64-bit object if we didn't find anything.
12684 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; }
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12691 rm -f conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12695 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12696 # Warning - without using the other run time loading flags,
12697 # -berok will link without error, but may produce a broken library.
12698 no_undefined_flag=' ${wl}-bernotok'
12699 allow_undefined_flag=' ${wl}-berok'
12700 # -bexpall does not export symbols beginning with underscore (_)
12701 always_export_symbols=yes
12702 # Exported symbols can be pulled into shared objects from archives
12703 whole_archive_flag_spec=' '
12704 archive_cmds_need_lc=yes
12705 # This is similar to how AIX traditionally builds it's shared libraries.
12706 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'
12712 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)'
12713 hardcode_libdir_flag_spec='-L$libdir'
12714 hardcode_minus_L=yes
12715 # see comment about different semantics on the GNU ld section
12720 export_dynamic_flag_spec=-rdynamic
12723 cygwin* | mingw* | pw32*)
12724 # When not using gcc, we currently assume that we are using
12725 # Microsoft Visual C++.
12726 # hardcode_libdir_flag_spec is actually meaningless, as there is
12727 # no search path for DLLs.
12728 hardcode_libdir_flag_spec=' '
12729 allow_undefined_flag=unsupported
12730 # Tell ltmain to make .lib files, not .a files.
12732 # Tell ltmain to make .dll files, not .so files.
12734 # FIXME: Setting linknames here is a bad hack.
12735 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12736 # The linker will automatically build a .lib file if we build a DLL.
12737 old_archive_From_new_cmds='true'
12738 # FIXME: Should let the user specify the lib program.
12739 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12740 fix_srcfile_path='`cygpath -w "$srcfile"`'
12741 enable_shared_with_static_runtimes=yes
12744 darwin* | rhapsody*)
12746 rhapsody* | darwin1.[012])
12747 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12750 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12751 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12753 case ${MACOSX_DEPLOYMENT_TARGET} in
12755 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12758 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12764 archive_cmds_need_lc=no
12766 hardcode_automatic=yes
12767 hardcode_shlibpath_var=unsupported
12768 whole_archive_flag_spec=''
12769 link_all_deplibs=yes
12770 if test "$GCC" = yes ; then
12771 output_verbose_link_cmd='echo'
12772 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12773 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12774 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12775 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}'
12776 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}'
12778 case "$cc_basename" in
12780 output_verbose_link_cmd='echo'
12781 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12782 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12783 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12784 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}'
12785 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}'
12795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12796 hardcode_libdir_flag_spec='-L$libdir'
12797 hardcode_shlibpath_var=no
12804 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12805 # support. Future versions do this automatically, but an explicit c++rt0.o
12806 # does not break anything, and helps significantly (at the cost of a little
12809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12810 hardcode_libdir_flag_spec='-R$libdir'
12811 hardcode_direct=yes
12812 hardcode_shlibpath_var=no
12815 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12818 hardcode_direct=yes
12819 hardcode_minus_L=yes
12820 hardcode_shlibpath_var=no
12823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12824 freebsd* | kfreebsd*-gnu)
12825 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12826 hardcode_libdir_flag_spec='-R$libdir'
12827 hardcode_direct=yes
12828 hardcode_shlibpath_var=no
12832 if test "$GCC" = yes; then
12833 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'
12835 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'
12837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12838 hardcode_libdir_separator=:
12839 hardcode_direct=yes
12841 # hardcode_minus_L: Not really in the search PATH,
12842 # but as the default location of the library.
12843 hardcode_minus_L=yes
12844 export_dynamic_flag_spec='${wl}-E'
12848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12849 case "$host_cpu" in
12851 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12854 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12858 case "$host_cpu" in
12860 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12863 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12867 if test "$with_gnu_ld" = no; then
12868 case "$host_cpu" in
12870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12871 hardcode_libdir_flag_spec_ld='+b $libdir'
12872 hardcode_libdir_separator=:
12874 hardcode_shlibpath_var=no
12877 hardcode_libdir_flag_spec='-L$libdir'
12879 hardcode_shlibpath_var=no
12881 # hardcode_minus_L: Not really in the search PATH,
12882 # but as the default location of the library.
12883 hardcode_minus_L=yes
12886 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12887 hardcode_libdir_separator=:
12888 hardcode_direct=yes
12889 export_dynamic_flag_spec='${wl}-E'
12891 # hardcode_minus_L: Not really in the search PATH,
12892 # but as the default location of the library.
12893 hardcode_minus_L=yes
12899 irix5* | irix6* | nonstopux*)
12900 if test "$GCC" = yes; then
12901 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'
12903 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'
12904 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12907 hardcode_libdir_separator=:
12908 link_all_deplibs=yes
12912 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12915 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12917 hardcode_libdir_flag_spec='-R$libdir'
12918 hardcode_direct=yes
12919 hardcode_shlibpath_var=no
12923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12924 hardcode_direct=yes
12925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12926 hardcode_libdir_separator=:
12927 hardcode_shlibpath_var=no
12931 hardcode_direct=yes
12932 hardcode_shlibpath_var=no
12933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12935 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12937 export_dynamic_flag_spec='${wl}-E'
12940 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12942 hardcode_libdir_flag_spec='-R$libdir'
12945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12953 hardcode_libdir_flag_spec='-L$libdir'
12954 hardcode_minus_L=yes
12955 allow_undefined_flag=unsupported
12956 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'
12957 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12961 if test "$GCC" = yes; then
12962 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12963 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'
12965 allow_undefined_flag=' -expect_unresolved \*'
12966 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'
12968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12969 hardcode_libdir_separator=:
12972 osf4* | osf5*) # as osf3* with the addition of -msym flag
12973 if test "$GCC" = yes; then
12974 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12975 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'
12976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12978 allow_undefined_flag=' -expect_unresolved \*'
12979 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'
12980 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12981 $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'
12983 # Both c and cxx compiler support -rpath directly
12984 hardcode_libdir_flag_spec='-rpath $libdir'
12986 hardcode_libdir_separator=:
12990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12991 hardcode_shlibpath_var=no
12992 export_dynamic_flag_spec='${wl}-Bexport'
12993 runpath_var=LD_RUN_PATH
12994 hardcode_runpath_var=yes
12998 no_undefined_flag=' -z text'
12999 if test "$GCC" = yes; then
13000 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13001 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13002 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13004 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13005 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13006 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13008 hardcode_libdir_flag_spec='-R$libdir'
13009 hardcode_shlibpath_var=no
13011 solaris2.[0-5] | solaris2.[0-5].*) ;;
13012 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13013 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13015 link_all_deplibs=yes
13019 if test "x$host_vendor" = xsequent; then
13020 # Use $CC to link under sequent, because it throws in some extra .o
13021 # files that make .init and .fini sections work.
13022 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13024 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13026 hardcode_libdir_flag_spec='-L$libdir'
13027 hardcode_direct=yes
13028 hardcode_minus_L=yes
13029 hardcode_shlibpath_var=no
13033 case $host_vendor in
13035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13036 hardcode_direct=yes # is this really true???
13039 ## LD is ld it makes a PLAMLIB
13040 ## CC just makes a GrossModule.
13041 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13042 reload_cmds='$CC -r -o $output$reload_objs'
13046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13047 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13050 runpath_var='LD_RUN_PATH'
13051 hardcode_shlibpath_var=no
13055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13056 hardcode_shlibpath_var=no
13057 export_dynamic_flag_spec='-Bexport'
13061 if test -d /usr/nec; then
13062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13063 hardcode_shlibpath_var=no
13064 runpath_var=LD_RUN_PATH
13065 hardcode_runpath_var=yes
13071 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13072 hardcode_direct=yes
13073 hardcode_minus_L=no
13074 hardcode_shlibpath_var=no
13075 hardcode_runpath_var=yes
13076 runpath_var=LD_RUN_PATH
13079 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13080 no_undefined_flag='${wl}-z ${wl}text'
13081 if test "$GCC" = yes; then
13082 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13084 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13086 runpath_var='LD_RUN_PATH'
13087 hardcode_shlibpath_var=no
13091 no_undefined_flag=' -z text'
13092 # $CC -shared without GNU ld will not create a library from C++
13093 # object files and a static libstdc++, better avoid it by now
13094 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13095 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13096 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13097 hardcode_libdir_flag_spec=
13098 hardcode_shlibpath_var=no
13099 runpath_var='LD_RUN_PATH'
13103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13104 hardcode_libdir_flag_spec='-L$libdir'
13105 hardcode_shlibpath_var=no
13114 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13115 echo "${ECHO_T}$ld_shlibs" >&6
13116 test "$ld_shlibs" = no && can_build_shared=no
13118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13119 if test "$GCC" = yes; then
13120 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13124 # Do we need to explicitly link libc?
13126 case "x$archive_cmds_need_lc" in
13128 # Assume -lc should be added
13129 archive_cmds_need_lc=yes
13131 if test "$enable_shared" = yes && test "$GCC" = yes; then
13132 case $archive_cmds in
13134 # FIXME: we may have to deal with multi-command sequences.
13137 # Test whether the compiler implicitly links with -lc since on some
13138 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13139 # to ld, don't add -lc before -lgcc.
13140 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13141 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13143 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13146 (eval $ac_compile) 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } 2>conftest.err; then
13152 libobjs=conftest.$ac_objext
13154 wl=$lt_prog_compiler_wl
13160 lt_save_allow_undefined_flag=$allow_undefined_flag
13161 allow_undefined_flag=
13162 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13163 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }
13168 archive_cmds_need_lc=no
13170 archive_cmds_need_lc=yes
13172 allow_undefined_flag=$lt_save_allow_undefined_flag
13174 cat conftest.err 1>&5
13177 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13178 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13185 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13186 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13187 library_names_spec=
13188 libname_spec='lib$name'
13192 postuninstall_cmds=
13196 shlibpath_overrides_runpath=unknown
13198 dynamic_linker="$host_os ld.so"
13199 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13200 if test "$GCC" = yes; then
13201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13202 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13203 # if the path contains ";" then we assume it to be the separator
13204 # otherwise default to the standard path separator (i.e. ":") - it is
13205 # assumed that no part of a normal pathname contains ";" but that should
13206 # okay in the real world where ";" in dirpaths is itself problematic.
13207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13212 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13214 need_lib_prefix=unknown
13215 hardcode_into_libs=no
13217 # when you set need_version to no, make sure it does not cause -set_version
13218 # flags to be left without arguments
13219 need_version=unknown
13224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13225 shlibpath_var=LIBPATH
13227 # AIX 3 has no versioning support, so we append a major version to the name.
13228 soname_spec='${libname}${release}${shared_ext}$major'
13235 hardcode_into_libs=yes
13236 if test "$host_cpu" = ia64; then
13237 # AIX 5 supports IA64
13238 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13239 shlibpath_var=LD_LIBRARY_PATH
13241 # With GCC up to 2.95.x, collect2 would create an import file
13242 # for dependence libraries. The import file would start with
13243 # the line `#! .'. This would cause the generated library to
13244 # depend on `.', always an invalid library. This was fixed in
13245 # development snapshots of GCC prior to 3.0.
13247 aix4 | aix4.[01] | aix4.[01].*)
13248 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13250 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13253 can_build_shared=no
13257 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13258 # soname into executable. Probably we can add versioning support to
13259 # collect2, so additional links can be useful in future.
13260 if test "$aix_use_runtimelinking" = yes; then
13261 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13262 # instead of lib<name>.a to let people know that these are not
13263 # typical AIX shared libraries.
13264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13266 # We preserve .a as extension for shared libraries through AIX4.2
13267 # and later when we are not doing run time linking.
13268 library_names_spec='${libname}${release}.a $libname.a'
13269 soname_spec='${libname}${release}${shared_ext}$major'
13271 shlibpath_var=LIBPATH
13276 library_names_spec='$libname.ixlibrary $libname.a'
13277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13278 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'
13282 library_names_spec='${libname}${shared_ext}'
13283 dynamic_linker="$host_os ld.so"
13284 shlibpath_var=LIBRARY_PATH
13290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13291 soname_spec='${libname}${release}${shared_ext}$major'
13292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13293 shlibpath_var=LD_LIBRARY_PATH
13294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13296 # the default ld.so.conf also contains /usr/contrib/lib and
13297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13298 # libtool to hard-code these into programs
13301 cygwin* | mingw* | pw32*)
13302 version_type=windows
13307 case $GCC,$host_os in
13308 yes,cygwin* | yes,mingw* | yes,pw32*)
13309 library_names_spec='$libname.dll.a'
13310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13311 postinstall_cmds='base_file=`basename \${file}`~
13312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13313 dldir=$destdir/`dirname \$dlpath`~
13314 test -d \$dldir || mkdir -p \$dldir~
13315 $install_prog $dir/$dlname \$dldir/$dlname'
13316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13317 dlpath=$dir/\$dldll~
13319 shlibpath_overrides_runpath=yes
13323 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13324 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13325 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13328 # MinGW DLLs use traditional 'lib' prefix
13329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13331 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13332 # It is most probably a Windows format PATH printed by
13333 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13334 # path with ; separators, and with drive letters. We can handle the
13335 # drive letters (cygwin fileutils understands them), so leave them,
13336 # especially as we might pass files found there to a mingw objdump,
13337 # which wouldn't understand a cygwinified path. Ahh.
13338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13344 # pw32 DLLs use 'pw' prefix rather than 'lib'
13345 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13351 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13354 dynamic_linker='Win32 ld.exe'
13355 # FIXME: first we should search . and the directory the executable is in
13359 darwin* | rhapsody*)
13360 dynamic_linker="$host_os dyld"
13361 version_type=darwin
13364 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13365 soname_spec='${libname}${release}${major}$shared_ext'
13366 shlibpath_overrides_runpath=yes
13367 shlibpath_var=DYLD_LIBRARY_PATH
13368 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13369 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13370 if test "$GCC" = yes; then
13371 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"`
13373 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13383 soname_spec='${libname}${release}${shared_ext}$major'
13384 shlibpath_var=LD_LIBRARY_PATH
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13396 soname_spec='${libname}${release}${shared_ext}$major'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 shlibpath_overrides_runpath=no
13399 hardcode_into_libs=yes
13400 dynamic_linker='GNU ld.so'
13404 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13405 version_type=freebsd-$objformat
13406 case $version_type in
13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13417 shlibpath_var=LD_LIBRARY_PATH
13420 shlibpath_overrides_runpath=yes
13422 freebsd3.01* | freebsdelf3.01*)
13423 shlibpath_overrides_runpath=yes
13424 hardcode_into_libs=yes
13427 shlibpath_overrides_runpath=no
13428 hardcode_into_libs=yes
13437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13438 soname_spec='${libname}${release}${shared_ext}$major'
13439 shlibpath_var=LD_LIBRARY_PATH
13440 hardcode_into_libs=yes
13443 hpux9* | hpux10* | hpux11*)
13444 # Give a soname corresponding to the major version so that dld.sl refuses to
13445 # link against other versions.
13449 case "$host_cpu" in
13452 hardcode_into_libs=yes
13453 dynamic_linker="$host_os dld.so"
13454 shlibpath_var=LD_LIBRARY_PATH
13455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457 soname_spec='${libname}${release}${shared_ext}$major'
13458 if test "X$HPUX_IA64_MODE" = X32; then
13459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13467 hardcode_into_libs=yes
13468 dynamic_linker="$host_os dld.sl"
13469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13478 dynamic_linker="$host_os dld.sl"
13479 shlibpath_var=SHLIB_PATH
13480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482 soname_spec='${libname}${release}${shared_ext}$major'
13485 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13486 postinstall_cmds='chmod 555 $lib'
13489 irix5* | irix6* | nonstopux*)
13491 nonstopux*) version_type=nonstopux ;;
13493 if test "$lt_cv_prog_gnu_ld" = yes; then
13501 soname_spec='${libname}${release}${shared_ext}$major'
13502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13504 irix5* | nonstopux*)
13505 libsuff= shlibsuff=
13508 case $LD in # libtool.m4 will add one of these switches to LD
13509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13510 libsuff= shlibsuff= libmagic=32-bit;;
13511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13512 libsuff=32 shlibsuff=N32 libmagic=N32;;
13513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13515 *) libsuff= shlibsuff= libmagic=never-match;;
13519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13520 shlibpath_overrides_runpath=no
13521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13523 hardcode_into_libs=yes
13526 # No shared lib support for Linux oldld, aout, or coff.
13527 linux*oldld* | linux*aout* | linux*coff*)
13531 # This must be Linux ELF.
13536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537 soname_spec='${libname}${release}${shared_ext}$major'
13538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13539 shlibpath_var=LD_LIBRARY_PATH
13540 shlibpath_overrides_runpath=no
13541 # This implies no fast_install, which is unacceptable.
13542 # Some rework will be needed to allow for fast_install
13543 # before this can be enabled.
13544 hardcode_into_libs=yes
13546 # Append ld.so.conf contents to the search path
13547 if test -f /etc/ld.so.conf; then
13548 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13549 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13552 # We used to test for /lib/ld.so.1 and disable shared libraries on
13553 # powerpc, because MkLinux only supported shared libraries with the
13554 # GNU dynamic linker. Since this was broken with cross compilers,
13555 # most powerpc-linux boxes support dynamic linking these days and
13556 # people can always --disable-shared, the test was removed, and we
13557 # assume the GNU/Linux dynamic linker is in use.
13558 dynamic_linker='GNU/Linux ld.so'
13565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13566 soname_spec='${libname}${release}${shared_ext}$major'
13567 shlibpath_var=LD_LIBRARY_PATH
13568 shlibpath_overrides_runpath=no
13569 hardcode_into_libs=yes
13570 dynamic_linker='GNU ld.so'
13577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13580 dynamic_linker='NetBSD (a.out) ld.so'
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
13584 dynamic_linker='NetBSD ld.elf_so'
13586 shlibpath_var=LD_LIBRARY_PATH
13587 shlibpath_overrides_runpath=yes
13588 hardcode_into_libs=yes
13593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13594 shlibpath_var=LD_LIBRARY_PATH
13595 shlibpath_overrides_runpath=yes
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13603 soname_spec='${libname}${release}${shared_ext}$major'
13604 shlibpath_var=LD_LIBRARY_PATH
13605 shlibpath_overrides_runpath=yes
13612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13614 shlibpath_var=LD_LIBRARY_PATH
13615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13617 openbsd2.[89] | openbsd2.[89].*)
13618 shlibpath_overrides_runpath=no
13621 shlibpath_overrides_runpath=yes
13625 shlibpath_overrides_runpath=yes
13630 libname_spec='$name'
13633 library_names_spec='$libname${shared_ext} $libname.a'
13634 dynamic_linker='OS/2 ld.exe'
13635 shlibpath_var=LIBPATH
13638 osf3* | osf4* | osf5*)
13642 soname_spec='${libname}${release}${shared_ext}$major'
13643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13644 shlibpath_var=LD_LIBRARY_PATH
13645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13651 soname_spec='${libname}${release}${shared_ext}$major'
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653 shlibpath_var=LD_LIBRARY_PATH
13660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661 soname_spec='${libname}${release}${shared_ext}$major'
13662 shlibpath_var=LD_LIBRARY_PATH
13663 shlibpath_overrides_runpath=yes
13664 hardcode_into_libs=yes
13665 # ldd complains unless libraries are executable
13666 postinstall_cmds='chmod +x $lib'
13671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13673 shlibpath_var=LD_LIBRARY_PATH
13674 shlibpath_overrides_runpath=yes
13675 if test "$with_gnu_ld" = yes; then
13681 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13684 soname_spec='${libname}${release}${shared_ext}$major'
13685 shlibpath_var=LD_LIBRARY_PATH
13686 case $host_vendor in
13688 shlibpath_overrides_runpath=no
13690 export_dynamic_flag_spec='${wl}-Blargedynsym'
13691 runpath_var=LD_RUN_PATH
13699 shlibpath_overrides_runpath=no
13700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13706 if test -d /usr/nec ;then
13708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13709 soname_spec='$libname${shared_ext}.$major'
13710 shlibpath_var=LD_LIBRARY_PATH
13716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13717 soname_spec='${libname}${release}${shared_ext}$major'
13718 shlibpath_var=LD_LIBRARY_PATH
13725 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13726 echo "${ECHO_T}$dynamic_linker" >&6
13727 test "$dynamic_linker" = no && can_build_shared=no
13729 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13730 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13732 if test -n "$hardcode_libdir_flag_spec" || \
13733 test -n "$runpath_var" || \
13734 test "X$hardcode_automatic" = "Xyes" ; then
13736 # We can hardcode non-existant directories.
13737 if test "$hardcode_direct" != no &&
13738 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13739 # have to relink, otherwise we might link with an installed library
13740 # when we should be linking with a yet-to-be-installed one
13741 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13742 test "$hardcode_minus_L" != no; then
13743 # Linking always hardcodes the temporary library directory.
13744 hardcode_action=relink
13746 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13747 hardcode_action=immediate
13750 # We cannot hardcode anything, or else we can only hardcode existing
13752 hardcode_action=unsupported
13754 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13755 echo "${ECHO_T}$hardcode_action" >&6
13757 if test "$hardcode_action" = relink; then
13758 # Fast installation is not supported
13759 enable_fast_install=no
13760 elif test "$shlibpath_overrides_runpath" = yes ||
13761 test "$enable_shared" = no; then
13762 # Fast installation is not necessary
13763 enable_fast_install=needless
13768 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13769 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13770 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13771 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13772 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13773 echo "$as_me:$LINENO: result: yes" >&5
13774 echo "${ECHO_T}yes" >&6
13776 # FIXME - insert some real tests, host_os isn't really good enough
13779 if test -n "$STRIP" ; then
13780 striplib="$STRIP -x"
13781 echo "$as_me:$LINENO: result: yes" >&5
13782 echo "${ECHO_T}yes" >&6
13784 echo "$as_me:$LINENO: result: no" >&5
13785 echo "${ECHO_T}no" >&6
13789 echo "$as_me:$LINENO: result: no" >&5
13790 echo "${ECHO_T}no" >&6
13795 if test "x$enable_dlopen" != xyes; then
13796 enable_dlopen=unknown
13797 enable_dlopen_self=unknown
13798 enable_dlopen_self_static=unknown
13805 lt_cv_dlopen="load_add_on"
13807 lt_cv_dlopen_self=yes
13811 lt_cv_dlopen="LoadLibrary"
13816 lt_cv_dlopen="dlopen"
13821 # if libdl is installed we need to link against it
13822 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13823 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13824 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 ac_check_lib_save_LIBS=$LIBS
13829 cat >conftest.$ac_ext <<_ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13836 /* Override any gcc2 internal prototype to avoid an error. */
13840 /* We use char because int might match the return type of a gcc2
13841 builtin and then its argument prototype would still apply. */
13851 rm -f conftest.$ac_objext conftest$ac_exeext
13852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13853 (eval $ac_link) 2>conftest.er1
13855 grep -v '^ *+' conftest.er1 >conftest.err
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -z "$ac_c_werror_flag"
13861 || test ! -s conftest.err'
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; } &&
13867 { ac_try='test -s conftest$ac_exeext'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13873 ac_cv_lib_dl_dlopen=yes
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13878 ac_cv_lib_dl_dlopen=no
13880 rm -f conftest.err conftest.$ac_objext \
13881 conftest$ac_exeext conftest.$ac_ext
13882 LIBS=$ac_check_lib_save_LIBS
13884 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13885 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13886 if test $ac_cv_lib_dl_dlopen = yes; then
13887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13890 lt_cv_dlopen="dyld"
13892 lt_cv_dlopen_self=yes
13899 echo "$as_me:$LINENO: checking for shl_load" >&5
13900 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13901 if test "${ac_cv_func_shl_load+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 cat >conftest.$ac_ext <<_ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13912 #define shl_load innocuous_shl_load
13914 /* System header to define __stub macros and hopefully few prototypes,
13915 which can conflict with char shl_load (); below.
13916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13917 <limits.h> exists even on freestanding compilers. */
13920 # include <limits.h>
13922 # include <assert.h>
13927 /* Override any gcc2 internal prototype to avoid an error. */
13932 /* We use char because int might match the return type of a gcc2
13933 builtin and then its argument prototype would still apply. */
13935 /* The GNU C library defines this for functions which it implements
13936 to always fail with ENOSYS. Some functions are actually named
13937 something starting with __ and the normal name is an alias. */
13938 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13941 char (*f) () = shl_load;
13950 return f != shl_load;
13955 rm -f conftest.$ac_objext conftest$ac_exeext
13956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13957 (eval $ac_link) 2>conftest.er1
13959 grep -v '^ *+' conftest.er1 >conftest.err
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } &&
13964 { ac_try='test -z "$ac_c_werror_flag"
13965 || test ! -s conftest.err'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; } &&
13971 { ac_try='test -s conftest$ac_exeext'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977 ac_cv_func_shl_load=yes
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13982 ac_cv_func_shl_load=no
13984 rm -f conftest.err conftest.$ac_objext \
13985 conftest$ac_exeext conftest.$ac_ext
13987 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13988 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13989 if test $ac_cv_func_shl_load = yes; then
13990 lt_cv_dlopen="shl_load"
13992 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13993 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13994 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 ac_check_lib_save_LIBS=$LIBS
13999 cat >conftest.$ac_ext <<_ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14006 /* Override any gcc2 internal prototype to avoid an error. */
14010 /* We use char because int might match the return type of a gcc2
14011 builtin and then its argument prototype would still apply. */
14021 rm -f conftest.$ac_objext conftest$ac_exeext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14023 (eval $ac_link) 2>conftest.er1
14025 grep -v '^ *+' conftest.er1 >conftest.err
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -z "$ac_c_werror_flag"
14031 || test ! -s conftest.err'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest$ac_exeext'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_cv_lib_dld_shl_load=yes
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_cv_lib_dld_shl_load=no
14050 rm -f conftest.err conftest.$ac_objext \
14051 conftest$ac_exeext conftest.$ac_ext
14052 LIBS=$ac_check_lib_save_LIBS
14054 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14055 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14056 if test $ac_cv_lib_dld_shl_load = yes; then
14057 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14059 echo "$as_me:$LINENO: checking for dlopen" >&5
14060 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14061 if test "${ac_cv_func_dlopen+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 cat >conftest.$ac_ext <<_ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14070 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14072 #define dlopen innocuous_dlopen
14074 /* System header to define __stub macros and hopefully few prototypes,
14075 which can conflict with char dlopen (); below.
14076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14077 <limits.h> exists even on freestanding compilers. */
14080 # include <limits.h>
14082 # include <assert.h>
14087 /* Override any gcc2 internal prototype to avoid an error. */
14092 /* We use char because int might match the return type of a gcc2
14093 builtin and then its argument prototype would still apply. */
14095 /* The GNU C library defines this for functions which it implements
14096 to always fail with ENOSYS. Some functions are actually named
14097 something starting with __ and the normal name is an alias. */
14098 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14101 char (*f) () = dlopen;
14110 return f != dlopen;
14115 rm -f conftest.$ac_objext conftest$ac_exeext
14116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14117 (eval $ac_link) 2>conftest.er1
14119 grep -v '^ *+' conftest.er1 >conftest.err
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try='test -z "$ac_c_werror_flag"
14125 || test ! -s conftest.err'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest$ac_exeext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_cv_func_dlopen=yes
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14142 ac_cv_func_dlopen=no
14144 rm -f conftest.err conftest.$ac_objext \
14145 conftest$ac_exeext conftest.$ac_ext
14147 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14148 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14149 if test $ac_cv_func_dlopen = yes; then
14150 lt_cv_dlopen="dlopen"
14152 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14153 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 ac_check_lib_save_LIBS=$LIBS
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14166 /* Override any gcc2 internal prototype to avoid an error. */
14170 /* We use char because int might match the return type of a gcc2
14171 builtin and then its argument prototype would still apply. */
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183 (eval $ac_link) 2>conftest.er1
14185 grep -v '^ *+' conftest.er1 >conftest.err
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
14190 { ac_try='test -z "$ac_c_werror_flag"
14191 || test ! -s conftest.err'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try='test -s conftest$ac_exeext'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 ac_cv_lib_dl_dlopen=yes
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 ac_cv_lib_dl_dlopen=no
14210 rm -f conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
14212 LIBS=$ac_check_lib_save_LIBS
14214 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14215 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14216 if test $ac_cv_lib_dl_dlopen = yes; then
14217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14219 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14220 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14221 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 ac_check_lib_save_LIBS=$LIBS
14225 LIBS="-lsvld $LIBS"
14226 cat >conftest.$ac_ext <<_ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14233 /* Override any gcc2 internal prototype to avoid an error. */
14237 /* We use char because int might match the return type of a gcc2
14238 builtin and then its argument prototype would still apply. */
14248 rm -f conftest.$ac_objext conftest$ac_exeext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250 (eval $ac_link) 2>conftest.er1
14252 grep -v '^ *+' conftest.er1 >conftest.err
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
14257 { ac_try='test -z "$ac_c_werror_flag"
14258 || test ! -s conftest.err'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; } &&
14264 { ac_try='test -s conftest$ac_exeext'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 ac_cv_lib_svld_dlopen=yes
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_cv_lib_svld_dlopen=no
14277 rm -f conftest.err conftest.$ac_objext \
14278 conftest$ac_exeext conftest.$ac_ext
14279 LIBS=$ac_check_lib_save_LIBS
14281 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14282 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14283 if test $ac_cv_lib_svld_dlopen = yes; then
14284 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14286 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14287 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14288 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 ac_check_lib_save_LIBS=$LIBS
14293 cat >conftest.$ac_ext <<_ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14300 /* Override any gcc2 internal prototype to avoid an error. */
14304 /* We use char because int might match the return type of a gcc2
14305 builtin and then its argument prototype would still apply. */
14315 rm -f conftest.$ac_objext conftest$ac_exeext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14317 (eval $ac_link) 2>conftest.er1
14319 grep -v '^ *+' conftest.er1 >conftest.err
14321 cat conftest.err >&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
14324 { ac_try='test -z "$ac_c_werror_flag"
14325 || test ! -s conftest.err'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest$ac_exeext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_cv_lib_dld_dld_link=yes
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14342 ac_cv_lib_dld_dld_link=no
14344 rm -f conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
14346 LIBS=$ac_check_lib_save_LIBS
14348 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14349 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14350 if test $ac_cv_lib_dld_dld_link = yes; then
14351 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14372 if test "x$lt_cv_dlopen" != xno; then
14378 case $lt_cv_dlopen in
14380 save_CPPFLAGS="$CPPFLAGS"
14381 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14383 save_LDFLAGS="$LDFLAGS"
14384 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14387 LIBS="$lt_cv_dlopen_libs $LIBS"
14389 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14390 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14391 if test "${lt_cv_dlopen_self+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14394 if test "$cross_compiling" = yes; then :
14395 lt_cv_dlopen_self=cross
14397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14398 lt_status=$lt_dlunknown
14399 cat > conftest.$ac_ext <<EOF
14400 #line 14401 "configure"
14401 #include "confdefs.h"
14410 # define LT_DLGLOBAL RTLD_GLOBAL
14413 # define LT_DLGLOBAL DL_GLOBAL
14415 # define LT_DLGLOBAL 0
14419 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14420 find out it does not work in some platform. */
14421 #ifndef LT_DLLAZY_OR_NOW
14423 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14426 # define LT_DLLAZY_OR_NOW DL_LAZY
14429 # define LT_DLLAZY_OR_NOW RTLD_NOW
14432 # define LT_DLLAZY_OR_NOW DL_NOW
14434 # define LT_DLLAZY_OR_NOW 0
14442 extern "C" void exit (int);
14445 void fnord() { int i=42;}
14448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14449 int status = $lt_dlunknown;
14453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14454 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14455 /* dlclose (self); */
14461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462 (eval $ac_link) 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14466 (./conftest; exit; ) 2>/dev/null
14468 case x$lt_status in
14469 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14470 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14471 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14474 # compilation failed
14475 lt_cv_dlopen_self=no
14482 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14483 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14485 if test "x$lt_cv_dlopen_self" = xyes; then
14486 LDFLAGS="$LDFLAGS $link_static_flag"
14487 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14488 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14489 if test "${lt_cv_dlopen_self_static+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 if test "$cross_compiling" = yes; then :
14493 lt_cv_dlopen_self_static=cross
14495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14496 lt_status=$lt_dlunknown
14497 cat > conftest.$ac_ext <<EOF
14498 #line 14499 "configure"
14499 #include "confdefs.h"
14508 # define LT_DLGLOBAL RTLD_GLOBAL
14511 # define LT_DLGLOBAL DL_GLOBAL
14513 # define LT_DLGLOBAL 0
14517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14518 find out it does not work in some platform. */
14519 #ifndef LT_DLLAZY_OR_NOW
14521 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14524 # define LT_DLLAZY_OR_NOW DL_LAZY
14527 # define LT_DLLAZY_OR_NOW RTLD_NOW
14530 # define LT_DLLAZY_OR_NOW DL_NOW
14532 # define LT_DLLAZY_OR_NOW 0
14540 extern "C" void exit (int);
14543 void fnord() { int i=42;}
14546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14547 int status = $lt_dlunknown;
14551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14552 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14553 /* dlclose (self); */
14559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560 (eval $ac_link) 2>&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14564 (./conftest; exit; ) 2>/dev/null
14566 case x$lt_status in
14567 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14568 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14569 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14572 # compilation failed
14573 lt_cv_dlopen_self_static=no
14580 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14581 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14584 CPPFLAGS="$save_CPPFLAGS"
14585 LDFLAGS="$save_LDFLAGS"
14590 case $lt_cv_dlopen_self in
14591 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14592 *) enable_dlopen_self=unknown ;;
14595 case $lt_cv_dlopen_self_static in
14596 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14597 *) enable_dlopen_self_static=unknown ;;
14602 # Report which librarie types wil actually be built
14603 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14604 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14605 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14606 echo "${ECHO_T}$can_build_shared" >&6
14608 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14609 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14610 test "$can_build_shared" = "no" && enable_shared=no
14612 # On AIX, shared libraries and static libraries use the same namespace, and
14613 # are all built from PIC.
14616 test "$enable_shared" = yes && enable_static=no
14617 if test -n "$RANLIB"; then
14618 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14619 postinstall_cmds='$RANLIB $lib'
14624 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14625 test "$enable_shared" = yes && enable_static=no
14629 echo "$as_me:$LINENO: result: $enable_shared" >&5
14630 echo "${ECHO_T}$enable_shared" >&6
14632 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14633 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14634 # Make sure either enable_shared or enable_static is yes.
14635 test "$enable_shared" = yes || enable_static=yes
14636 echo "$as_me:$LINENO: result: $enable_static" >&5
14637 echo "${ECHO_T}$enable_static" >&6
14639 # The else clause should only fire when bootstrapping the
14640 # libtool distribution, otherwise you forgot to ship ltmain.sh
14641 # with your package, and you will get complaints that there are
14642 # no rules to generate ltmain.sh.
14643 if test -f "$ltmain"; then
14644 # See if we are running on zsh, and set the options which allow our commands through
14645 # without removal of \ escapes.
14646 if test -n "${ZSH_VERSION+set}" ; then
14647 setopt NO_GLOB_SUBST
14649 # Now quote all the things that may contain metacharacters while being
14650 # careful not to overquote the AC_SUBSTed values. We take copies of the
14651 # variables and quote the copies for generation of the libtool script.
14652 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14654 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14655 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14656 deplibs_check_method reload_flag reload_cmds need_locks \
14657 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14658 lt_cv_sys_global_symbol_to_c_name_address \
14659 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14660 old_postinstall_cmds old_postuninstall_cmds \
14664 lt_prog_compiler_wl \
14665 lt_prog_compiler_pic \
14666 lt_prog_compiler_static \
14667 lt_prog_compiler_no_builtin_flag \
14668 export_dynamic_flag_spec \
14669 thread_safe_flag_spec \
14670 whole_archive_flag_spec \
14671 enable_shared_with_static_runtimes \
14673 old_archive_from_new_cmds \
14678 compiler_lib_search_path \
14680 archive_expsym_cmds \
14682 postuninstall_cmds \
14683 old_archive_from_expsyms_cmds \
14684 allow_undefined_flag \
14685 no_undefined_flag \
14686 export_symbols_cmds \
14687 hardcode_libdir_flag_spec \
14688 hardcode_libdir_flag_spec_ld \
14689 hardcode_libdir_separator \
14690 hardcode_automatic \
14692 module_expsym_cmds \
14693 lt_cv_prog_compiler_c_o \
14695 include_expsyms; do
14698 old_archive_cmds | \
14699 old_archive_from_new_cmds | \
14701 archive_expsym_cmds | \
14703 module_expsym_cmds | \
14704 old_archive_from_expsyms_cmds | \
14705 export_symbols_cmds | \
14706 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14707 postinstall_cmds | postuninstall_cmds | \
14708 old_postinstall_cmds | old_postuninstall_cmds | \
14709 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14710 # Double-quote double-evaled strings.
14711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14720 *'\$0 --fallback-echo"')
14721 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14725 cfgfile="${ofile}T"
14726 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14728 { echo "$as_me:$LINENO: creating $ofile" >&5
14729 echo "$as_me: creating $ofile" >&6;}
14731 cat <<__EOF__ >> "$cfgfile"
14734 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14735 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14736 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14738 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14739 # Free Software Foundation, Inc.
14741 # This file is part of GNU Libtool:
14742 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14744 # This program is free software; you can redistribute it and/or modify
14745 # it under the terms of the GNU General Public License as published by
14746 # the Free Software Foundation; either version 2 of the License, or
14747 # (at your option) any later version.
14749 # This program is distributed in the hope that it will be useful, but
14750 # WITHOUT ANY WARRANTY; without even the implied warranty of
14751 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14752 # General Public License for more details.
14754 # You should have received a copy of the GNU General Public License
14755 # along with this program; if not, write to the Free Software
14756 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14758 # As a special exception to the GNU General Public License, if you
14759 # distribute this file as part of a program that contains a
14760 # configuration script generated by Autoconf, you may include it under
14761 # the same distribution terms that you use for the rest of that program.
14763 # A sed program that does not truncate output.
14766 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14767 Xsed="$SED -e s/^X//"
14769 # The HP-UX ksh and POSIX shell print the target directory to stdout
14770 # if CDPATH is set.
14771 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14773 # The names of the tagged configurations supported by this script.
14776 # ### BEGIN LIBTOOL CONFIG
14778 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14780 # Shell to use when invoking shell scripts.
14783 # Whether or not to build shared libraries.
14784 build_libtool_libs=$enable_shared
14786 # Whether or not to build static libraries.
14787 build_old_libs=$enable_static
14789 # Whether or not to add -lc for building shared libraries.
14790 build_libtool_need_lc=$archive_cmds_need_lc
14792 # Whether or not to disallow shared libs when runtime libs are static
14793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14795 # Whether or not to optimize for fast installation.
14796 fast_install=$enable_fast_install
14799 host_alias=$host_alias
14802 # An echo program that does not interpret backslashes.
14807 AR_FLAGS=$lt_AR_FLAGS
14812 # A language-specific compiler.
14815 # Is the compiler the GNU C compiler?
14821 # The linker used to build libraries.
14824 # Whether we need hard or soft links.
14827 # A BSD-compatible nm program.
14830 # A symbol stripping program
14833 # Used to examine libraries when file_magic_cmd begins "file"
14834 MAGIC_CMD=$MAGIC_CMD
14836 # Used on cygwin: DLL creation program.
14839 # Used on cygwin: object dumper.
14842 # Used on cygwin: assembler.
14845 # The name of the directory that contains temporary libtool files.
14848 # How to create reloadable object files.
14849 reload_flag=$lt_reload_flag
14850 reload_cmds=$lt_reload_cmds
14852 # How to pass a linker flag through the compiler.
14853 wl=$lt_lt_prog_compiler_wl
14855 # Object file suffix (normally "o").
14856 objext="$ac_objext"
14858 # Old archive suffix (normally "a").
14861 # Shared library suffix (normally ".so").
14862 shrext_cmds='$shrext_cmds'
14864 # Executable file suffix (normally "").
14867 # Additional compiler flags for building library objects.
14868 pic_flag=$lt_lt_prog_compiler_pic
14871 # What is the maximum length of a command?
14872 max_cmd_len=$lt_cv_sys_max_cmd_len
14874 # Does compiler simultaneously support -c and -o options?
14875 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14877 # Must we lock files when doing compilation ?
14878 need_locks=$lt_need_locks
14880 # Do we need the lib prefix for modules?
14881 need_lib_prefix=$need_lib_prefix
14883 # Do we need a version for libraries?
14884 need_version=$need_version
14886 # Whether dlopen is supported.
14887 dlopen_support=$enable_dlopen
14889 # Whether dlopen of programs is supported.
14890 dlopen_self=$enable_dlopen_self
14892 # Whether dlopen of statically linked programs is supported.
14893 dlopen_self_static=$enable_dlopen_self_static
14895 # Compiler flag to prevent dynamic linking.
14896 link_static_flag=$lt_lt_prog_compiler_static
14898 # Compiler flag to turn off builtin functions.
14899 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14901 # Compiler flag to allow reflexive dlopens.
14902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14904 # Compiler flag to generate shared objects directly from archives.
14905 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14907 # Compiler flag to generate thread-safe objects.
14908 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14910 # Library versioning type.
14911 version_type=$version_type
14913 # Format of library name prefix.
14914 libname_spec=$lt_libname_spec
14916 # List of archive names. First name is the real one, the rest are links.
14917 # The last name is the one that the linker finds with -lNAME.
14918 library_names_spec=$lt_library_names_spec
14920 # The coded name of the library, if different from the real name.
14921 soname_spec=$lt_soname_spec
14923 # Commands used to build and install an old-style archive.
14925 old_archive_cmds=$lt_old_archive_cmds
14926 old_postinstall_cmds=$lt_old_postinstall_cmds
14927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14929 # Create an old-style archive from a shared archive.
14930 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14932 # Create a temporary old-style archive to link instead of a shared archive.
14933 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14935 # Commands used to build and install a shared archive.
14936 archive_cmds=$lt_archive_cmds
14937 archive_expsym_cmds=$lt_archive_expsym_cmds
14938 postinstall_cmds=$lt_postinstall_cmds
14939 postuninstall_cmds=$lt_postuninstall_cmds
14941 # Commands used to build a loadable module (assumed same as above if empty)
14942 module_cmds=$lt_module_cmds
14943 module_expsym_cmds=$lt_module_expsym_cmds
14945 # Commands to strip libraries.
14946 old_striplib=$lt_old_striplib
14947 striplib=$lt_striplib
14949 # Dependencies to place before the objects being linked to create a
14951 predep_objects=$lt_predep_objects
14953 # Dependencies to place after the objects being linked to create a
14955 postdep_objects=$lt_postdep_objects
14957 # Dependencies to place before the objects being linked to create a
14959 predeps=$lt_predeps
14961 # Dependencies to place after the objects being linked to create a
14963 postdeps=$lt_postdeps
14965 # The library search path used internally by the compiler when linking
14966 # a shared library.
14967 compiler_lib_search_path=$lt_compiler_lib_search_path
14969 # Method to check whether dependent libraries are shared objects.
14970 deplibs_check_method=$lt_deplibs_check_method
14972 # Command to use when deplibs_check_method == file_magic.
14973 file_magic_cmd=$lt_file_magic_cmd
14975 # Flag that allows shared libraries with undefined symbols to be built.
14976 allow_undefined_flag=$lt_allow_undefined_flag
14978 # Flag that forces no undefined symbols.
14979 no_undefined_flag=$lt_no_undefined_flag
14981 # Commands used to finish a libtool library installation in a directory.
14982 finish_cmds=$lt_finish_cmds
14984 # Same as above, but a single script fragment to be evaled but not shown.
14985 finish_eval=$lt_finish_eval
14987 # Take the output of nm and produce a listing of raw symbols and C names.
14988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14990 # Transform the output of nm in a proper C declaration
14991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14993 # Transform the output of nm in a C name address pair
14994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14996 # This is the shared library runtime path variable.
14997 runpath_var=$runpath_var
14999 # This is the shared library path variable.
15000 shlibpath_var=$shlibpath_var
15002 # Is shlibpath searched before the hard-coded library search path?
15003 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15005 # How to hardcode a shared library path into an executable.
15006 hardcode_action=$hardcode_action
15008 # Whether we should hardcode library paths into libraries.
15009 hardcode_into_libs=$hardcode_into_libs
15011 # Flag to hardcode \$libdir into a binary during linking.
15012 # This must work even if \$libdir does not exist.
15013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15015 # If ld is used when linking, flag to hardcode \$libdir into
15016 # a binary during linking. This must work even if \$libdir does
15018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15020 # Whether we need a single -rpath flag with a separated argument.
15021 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15023 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15024 # resulting binary.
15025 hardcode_direct=$hardcode_direct
15027 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15028 # resulting binary.
15029 hardcode_minus_L=$hardcode_minus_L
15031 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15032 # the resulting binary.
15033 hardcode_shlibpath_var=$hardcode_shlibpath_var
15035 # Set to yes if building a shared library automatically hardcodes DIR into the library
15036 # and all subsequent libraries and executables linked against it.
15037 hardcode_automatic=$hardcode_automatic
15039 # Variables whose values should be saved in libtool wrapper scripts and
15040 # restored at relink time.
15041 variables_saved_for_relink="$variables_saved_for_relink"
15043 # Whether libtool must link a program against all its dependency libraries.
15044 link_all_deplibs=$link_all_deplibs
15046 # Compile-time system search path for libraries
15047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15049 # Run-time system search path for libraries
15050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15052 # Fix the shell variable \$srcfile for the compiler.
15053 fix_srcfile_path="$fix_srcfile_path"
15055 # Set to yes if exported symbols are required.
15056 always_export_symbols=$always_export_symbols
15058 # The commands to list exported symbols.
15059 export_symbols_cmds=$lt_export_symbols_cmds
15061 # The commands to extract the exported symbol list from a shared archive.
15062 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15064 # Symbols that should not be listed in the preloaded symbols.
15065 exclude_expsyms=$lt_exclude_expsyms
15067 # Symbols that must always be exported.
15068 include_expsyms=$lt_include_expsyms
15070 # ### END LIBTOOL CONFIG
15077 cat <<\EOF >> "$cfgfile"
15079 # AIX sometimes has problems with the GCC collect2 program. For some
15080 # reason, if we set the COLLECT_NAMES environment variable, the problems
15081 # vanish in a puff of smoke.
15082 if test "X${COLLECT_NAMES+set}" != Xset; then
15084 export COLLECT_NAMES
15090 # We use sed instead of cat because bash on DJGPP gets confused if
15091 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15092 # text mode, it properly converts lines to CR/LF. This bash problem
15093 # is reportedly fixed, but why not run on old versions too?
15094 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15096 mv -f "$cfgfile" "$ofile" || \
15097 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15101 # If there is no Makefile yet, we rely on a make rule to execute
15102 # `config.status --recheck' to rerun these tests and create the
15103 # libtool script then.
15104 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15105 if test -f "$ltmain_in"; then
15106 test -f Makefile && make "$ltmain"
15112 ac_cpp='$CPP $CPPFLAGS'
15113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15120 # Check whether --with-tags or --without-tags was given.
15121 if test "${with_tags+set}" = set; then
15122 withval="$with_tags"
15123 tagnames="$withval"
15126 if test -f "$ltmain" && test -n "$tagnames"; then
15127 if test ! -f "${ofile}"; then
15128 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15129 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15132 if test -z "$LTCC"; then
15133 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15134 if test -z "$LTCC"; then
15135 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15136 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15139 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15143 # Extract list of available tagged configurations in $ofile.
15144 # Note that this assumes the entire list is on one line.
15145 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15148 for tagname in $tagnames; do
15150 # Check whether tagname contains only valid characters
15151 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15153 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15154 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15155 { (exit 1); exit 1; }; }
15159 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15161 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15162 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15163 { (exit 1); exit 1; }; }
15166 # Update the list of available tags.
15167 if test -n "$tagname"; then
15168 echo appending configuration tag "$tagname" to $ofile
15172 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15173 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15174 (test "X$CXX" != "Xg++"))) ; then
15176 ac_cpp='$CXXCPP $CPPFLAGS'
15177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15184 archive_cmds_need_lc_CXX=no
15185 allow_undefined_flag_CXX=
15186 always_export_symbols_CXX=no
15187 archive_expsym_cmds_CXX=
15188 export_dynamic_flag_spec_CXX=
15189 hardcode_direct_CXX=no
15190 hardcode_libdir_flag_spec_CXX=
15191 hardcode_libdir_flag_spec_ld_CXX=
15192 hardcode_libdir_separator_CXX=
15193 hardcode_minus_L_CXX=no
15194 hardcode_automatic_CXX=no
15196 module_expsym_cmds_CXX=
15197 link_all_deplibs_CXX=unknown
15198 old_archive_cmds_CXX=$old_archive_cmds
15199 no_undefined_flag_CXX=
15200 whole_archive_flag_spec_CXX=
15201 enable_shared_with_static_runtimes_CXX=no
15203 # Dependencies to place before and after the object being linked:
15204 predep_objects_CXX=
15205 postdep_objects_CXX=
15208 compiler_lib_search_path_CXX=
15210 # Source file extension for C++ test sources.
15213 # Object file extension for compiled C++ test sources.
15217 # Code to be used in simple compile tests
15218 lt_simple_compile_test_code="int some_variable = 0;\n"
15220 # Code to be used in simple link tests
15221 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15225 # If no C compiler was specified, use CC.
15228 # Allow CC to be a program name with arguments.
15232 # Allow CC to be a program name with arguments.
15237 lt_save_with_gnu_ld=$with_gnu_ld
15238 lt_save_path_LD=$lt_cv_path_LD
15239 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15240 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15242 unset lt_cv_prog_gnu_ld
15244 if test -n "${lt_cv_path_LDCXX+set}"; then
15245 lt_cv_path_LD=$lt_cv_path_LDCXX
15247 unset lt_cv_path_LD
15249 test -z "${LDCXX+set}" || LD=$LDCXX
15253 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15255 # We don't want -fno-exception wen compiling C++ code, so set the
15256 # no_builtin_flag separately
15257 if test "$GXX" = yes; then
15258 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15260 lt_prog_compiler_no_builtin_flag_CXX=
15263 if test "$GXX" = yes; then
15264 # Set up default GNU C++ configuration
15267 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15268 if test "${with_gnu_ld+set}" = set; then
15269 withval="$with_gnu_ld"
15270 test "$withval" = no || with_gnu_ld=yes
15275 if test "$GCC" = yes; then
15276 # Check if gcc -print-prog-name=ld gives a path.
15277 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15278 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15281 # gcc leaves a trailing carriage return which upsets mingw
15282 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15284 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15287 # Accept absolute paths.
15289 re_direlt='/[^/][^/]*/\.\./'
15290 # Canonicalize the pathname of ld
15291 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15292 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15293 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15295 test -z "$LD" && LD="$ac_prog"
15298 # If it fails, then pretend we aren't using GCC.
15302 # If it is relative, then search for the first ld in PATH.
15303 with_gnu_ld=unknown
15306 elif test "$with_gnu_ld" = yes; then
15307 echo "$as_me:$LINENO: checking for GNU ld" >&5
15308 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15310 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15311 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15313 if test "${lt_cv_path_LD+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 if test -z "$LD"; then
15317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15318 for ac_dir in $PATH; do
15320 test -z "$ac_dir" && ac_dir=.
15321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15322 lt_cv_path_LD="$ac_dir/$ac_prog"
15323 # Check to see if the program is GNU ld. I'd rather use --version,
15324 # but apparently some GNU ld's only accept -v.
15325 # Break only if it was the GNU/non-GNU ld that we prefer.
15326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15327 *GNU* | *'with BFD'*)
15328 test "$with_gnu_ld" != no && break
15331 test "$with_gnu_ld" != yes && break
15338 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15342 LD="$lt_cv_path_LD"
15343 if test -n "$LD"; then
15344 echo "$as_me:$LINENO: result: $LD" >&5
15345 echo "${ECHO_T}$LD" >&6
15347 echo "$as_me:$LINENO: result: no" >&5
15348 echo "${ECHO_T}no" >&6
15350 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15351 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15352 { (exit 1); exit 1; }; }
15353 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15354 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15355 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15359 case `$LD -v 2>&1 </dev/null` in
15360 *GNU* | *'with BFD'*)
15361 lt_cv_prog_gnu_ld=yes
15364 lt_cv_prog_gnu_ld=no
15368 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15369 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15370 with_gnu_ld=$lt_cv_prog_gnu_ld
15374 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15375 # archiving commands below assume that GNU ld is being used.
15376 if test "$with_gnu_ld" = yes; then
15377 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15378 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'
15380 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15381 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15383 # If archive_cmds runs LD, not CC, wlarc should be empty
15384 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15385 # investigate it a little bit more. (MM)
15388 # ancient GNU ld didn't support --whole-archive et. al.
15389 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15390 grep 'no-whole-archive' > /dev/null; then
15391 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15393 whole_archive_flag_spec_CXX=
15399 # A generic and very simple default shared library creation
15400 # command for GNU C++ for the case where it uses the native
15401 # linker, instead of GNU ld. If possible, this setting should
15402 # overridden to take advantage of the native linker features on
15403 # the platform it is being used on.
15404 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15407 # Commands to make compiler produce verbose output that lists
15408 # what "hidden" libraries, object files and flags are used when
15409 # linking a shared library.
15410 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15418 # PORTME: fill in a description of your system's C++ link characteristics
15419 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15420 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15424 # FIXME: insert proper C++ library support
15428 if test "$host_cpu" = ia64; then
15429 # On IA64, the linker does run time linking by default, so we don't
15430 # have to do anything special.
15431 aix_use_runtimelinking=no
15432 exp_sym_flag='-Bexport'
15435 aix_use_runtimelinking=no
15437 # Test if we are trying to use run time linking or normal
15438 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15439 # need to do runtime linking.
15440 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15441 for ld_flag in $LDFLAGS; do
15444 aix_use_runtimelinking=yes
15451 exp_sym_flag='-bexport'
15452 no_entry_flag='-bnoentry'
15455 # When large executables or shared objects are built, AIX ld can
15456 # have problems creating the table of contents. If linking a library
15457 # or program results in "error TOC overflow" add -mminimal-toc to
15458 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15459 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15461 archive_cmds_CXX=''
15462 hardcode_direct_CXX=yes
15463 hardcode_libdir_separator_CXX=':'
15464 link_all_deplibs_CXX=yes
15466 if test "$GXX" = yes; then
15467 case $host_os in aix4.012|aix4.012.*)
15468 # We only want to do this on AIX 4.2 and lower, the check
15469 # below for broken collect2 doesn't work under 4.3+
15470 collect2name=`${CC} -print-prog-name=collect2`
15471 if test -f "$collect2name" && \
15472 strings "$collect2name" | grep resolve_lib_name >/dev/null
15474 # We have reworked collect2
15475 hardcode_direct_CXX=yes
15477 # We have old collect2
15478 hardcode_direct_CXX=unsupported
15479 # It fails to find uninstalled libraries when the uninstalled
15480 # path is not listed in the libpath. Setting hardcode_minus_L
15481 # to unsupported forces relinking
15482 hardcode_minus_L_CXX=yes
15483 hardcode_libdir_flag_spec_CXX='-L$libdir'
15484 hardcode_libdir_separator_CXX=
15487 shared_flag='-shared'
15490 if test "$host_cpu" = ia64; then
15491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15492 # chokes on -Wl,-G. The following line is correct:
15495 if test "$aix_use_runtimelinking" = yes; then
15496 shared_flag='${wl}-G'
15498 shared_flag='${wl}-bM:SRE'
15503 # It seems that -bexpall does not export symbols beginning with
15504 # underscore (_), so it is better to generate a list of symbols to export.
15505 always_export_symbols_CXX=yes
15506 if test "$aix_use_runtimelinking" = yes; then
15507 # Warning - without using the other runtime loading flags (-brtl),
15508 # -berok will link without error, but may produce a broken library.
15509 allow_undefined_flag_CXX='-berok'
15510 # Determine the default libpath from the value encoded in an empty executable.
15511 cat >conftest.$ac_ext <<_ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15526 rm -f conftest.$ac_objext conftest$ac_exeext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528 (eval $ac_link) 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_cxx_werror_flag"
15536 || test ! -s conftest.err'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest$ac_exeext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15551 # Check for a 64-bit object if we didn't find anything.
15552 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; }
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15559 rm -f conftest.err conftest.$ac_objext \
15560 conftest$ac_exeext conftest.$ac_ext
15561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15563 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15565 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"
15567 if test "$host_cpu" = ia64; then
15568 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15569 allow_undefined_flag_CXX="-z nodefs"
15570 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"
15572 # Determine the default libpath from the value encoded in an empty executable.
15573 cat >conftest.$ac_ext <<_ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15588 rm -f conftest.$ac_objext conftest$ac_exeext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15590 (eval $ac_link) 2>conftest.er1
15592 grep -v '^ *+' conftest.er1 >conftest.err
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -z "$ac_cxx_werror_flag"
15598 || test ! -s conftest.err'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest$ac_exeext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15611 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15613 # Check for a 64-bit object if we didn't find anything.
15614 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; }
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15621 rm -f conftest.err conftest.$ac_objext \
15622 conftest$ac_exeext conftest.$ac_ext
15623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15625 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15626 # Warning - without using the other run time loading flags,
15627 # -berok will link without error, but may produce a broken library.
15628 no_undefined_flag_CXX=' ${wl}-bernotok'
15629 allow_undefined_flag_CXX=' ${wl}-berok'
15630 # -bexpall does not export symbols beginning with underscore (_)
15631 always_export_symbols_CXX=yes
15632 # Exported symbols can be pulled into shared objects from archives
15633 whole_archive_flag_spec_CXX=' '
15634 archive_cmds_need_lc_CXX=yes
15635 # This is similar to how AIX traditionally builds it's shared libraries.
15636 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'
15641 case $cc_basename in
15643 # FIXME: insert proper C++ library support
15650 cygwin* | mingw* | pw32*)
15651 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15652 # as there is no search path for DLLs.
15653 hardcode_libdir_flag_spec_CXX='-L$libdir'
15654 allow_undefined_flag_CXX=unsupported
15655 always_export_symbols_CXX=no
15656 enable_shared_with_static_runtimes_CXX=yes
15658 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15659 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'
15660 # If the export-symbols file already is a .def file (1st line
15661 # is EXPORTS), use it as is; otherwise, prepend...
15662 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15663 cp $export_symbols $output_objdir/$soname.def;
15665 echo EXPORTS > $output_objdir/$soname.def;
15666 cat $export_symbols >> $output_objdir/$soname.def;
15668 $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'
15673 darwin* | rhapsody*)
15675 rhapsody* | darwin1.[012])
15676 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15679 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15680 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15682 case ${MACOSX_DEPLOYMENT_TARGET} in
15684 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15687 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15693 archive_cmds_need_lc_CXX=no
15694 hardcode_direct_CXX=no
15695 hardcode_automatic_CXX=yes
15696 hardcode_shlibpath_var_CXX=unsupported
15697 whole_archive_flag_spec_CXX=''
15698 link_all_deplibs_CXX=yes
15700 if test "$GXX" = yes ; then
15701 lt_int_apple_cc_single_mod=no
15702 output_verbose_link_cmd='echo'
15703 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15704 lt_int_apple_cc_single_mod=yes
15706 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15707 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15709 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'
15711 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15712 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15713 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15714 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}'
15716 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}'
15718 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}'
15720 case "$cc_basename" in
15722 output_verbose_link_cmd='echo'
15723 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'
15724 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15726 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}'
15727 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}'
15737 case $cc_basename in
15739 # FIXME: insert proper C++ library support
15743 # Green Hills C++ Compiler
15744 # FIXME: insert proper C++ library support
15748 # FIXME: insert proper C++ library support
15754 # C++ shared libraries reported to be fairly broken before switch to ELF
15758 archive_cmds_need_lc_CXX=no
15760 freebsd* | kfreebsd*-gnu)
15761 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15768 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15769 hardcode_libdir_separator_CXX=:
15770 export_dynamic_flag_spec_CXX='${wl}-E'
15771 hardcode_direct_CXX=yes
15772 hardcode_minus_L_CXX=yes # Not in the search PATH,
15773 # but as the default
15774 # location of the library.
15776 case $cc_basename in
15778 # FIXME: insert proper C++ library support
15782 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'
15783 # Commands to make compiler produce verbose output that lists
15784 # what "hidden" libraries, object files and flags are used when
15785 # linking a shared library.
15787 # There doesn't appear to be a way to prevent this compiler from
15788 # explicitly linking system object files so we need to strip them
15789 # from the output so that they don't get included in the library
15791 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'
15794 if test "$GXX" = yes; then
15795 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'
15797 # FIXME: insert proper C++ library support
15804 if test $with_gnu_ld = no; then
15805 case "$host_cpu" in
15807 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15808 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15809 hardcode_libdir_separator_CXX=:
15812 hardcode_libdir_flag_spec_CXX='-L$libdir'
15815 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15816 hardcode_libdir_separator_CXX=:
15817 export_dynamic_flag_spec_CXX='${wl}-E'
15821 case "$host_cpu" in
15823 hardcode_direct_CXX=no
15824 hardcode_shlibpath_var_CXX=no
15827 hardcode_direct_CXX=no
15828 hardcode_shlibpath_var_CXX=no
15829 hardcode_minus_L_CXX=yes # Not in the search PATH,
15830 # but as the default
15831 # location of the library.
15834 hardcode_direct_CXX=yes
15835 hardcode_minus_L_CXX=yes # Not in the search PATH,
15836 # but as the default
15837 # location of the library.
15841 case $cc_basename in
15843 # FIXME: insert proper C++ library support
15847 case "$host_cpu" in
15849 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15852 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15855 # Commands to make compiler produce verbose output that lists
15856 # what "hidden" libraries, object files and flags are used when
15857 # linking a shared library.
15859 # There doesn't appear to be a way to prevent this compiler from
15860 # explicitly linking system object files so we need to strip them
15861 # from the output so that they don't get included in the library
15863 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'
15866 if test "$GXX" = yes; then
15867 if test $with_gnu_ld = no; then
15868 case "$host_cpu" in
15870 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15873 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'
15878 # FIXME: insert proper C++ library support
15885 case $cc_basename in
15888 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'
15890 # Archives containing C++ object files must be created using
15891 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15892 # necessary to make sure instantiated templates are included
15894 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15897 if test "$GXX" = yes; then
15898 if test "$with_gnu_ld" = no; then
15899 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'
15901 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'
15904 link_all_deplibs_CXX=yes
15907 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15908 hardcode_libdir_separator_CXX=:
15911 case $cc_basename in
15913 # Kuck and Associates, Inc. (KAI) C++ Compiler
15915 # KCC will only create a shared library if the output file
15916 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15917 # to its proper name (with version) after linking.
15918 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'
15919 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'
15920 # Commands to make compiler produce verbose output that lists
15921 # what "hidden" libraries, object files and flags are used when
15922 # linking a shared library.
15924 # There doesn't appear to be a way to prevent this compiler from
15925 # explicitly linking system object files so we need to strip them
15926 # from the output so that they don't get included in the library
15928 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'
15930 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15931 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15933 # Archives containing C++ object files must be created using
15934 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15935 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15940 # version 8.0 and above of icpc choke on multiply defined symbols
15941 # if we add $predep_objects and $postdep_objects, however 7.1 and
15942 # earlier do not add the objects themselves.
15943 case `$CC -V 2>&1` in
15945 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15946 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'
15948 *) # Version 8.0 or newer
15949 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15950 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15953 archive_cmds_need_lc_CXX=no
15954 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15955 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15956 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15960 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15961 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'
15963 runpath_var=LD_RUN_PATH
15964 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15965 hardcode_libdir_separator_CXX=:
15967 # Commands to make compiler produce verbose output that lists
15968 # what "hidden" libraries, object files and flags are used when
15969 # linking a shared library.
15971 # There doesn't appear to be a way to prevent this compiler from
15972 # explicitly linking system object files so we need to strip them
15973 # from the output so that they don't get included in the library
15975 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'
15980 # FIXME: insert proper C++ library support
15984 # FIXME: insert proper C++ library support
15988 case $cc_basename in
15990 # FIXME: insert proper C++ library support
15994 # FIXME: insert proper C++ library support
16000 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16001 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16003 hardcode_libdir_flag_spec_CXX='-R$libdir'
16004 hardcode_direct_CXX=yes
16005 hardcode_shlibpath_var_CXX=no
16007 # Workaround some broken pre-1.5 toolchains
16008 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16011 # C++ shared libraries are fairly broken
16015 hardcode_direct_CXX=yes
16016 hardcode_shlibpath_var_CXX=no
16017 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16020 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16021 export_dynamic_flag_spec_CXX='${wl}-E'
16022 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16024 output_verbose_link_cmd='echo'
16027 case $cc_basename in
16029 # Kuck and Associates, Inc. (KAI) C++ Compiler
16031 # KCC will only create a shared library if the output file
16032 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16033 # to its proper name (with version) after linking.
16034 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'
16036 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16037 hardcode_libdir_separator_CXX=:
16039 # Archives containing C++ object files must be created using
16040 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16041 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16045 # Rational C++ 2.4.1
16046 # FIXME: insert proper C++ library support
16050 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16051 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'
16053 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16054 hardcode_libdir_separator_CXX=:
16056 # Commands to make compiler produce verbose output that lists
16057 # what "hidden" libraries, object files and flags are used when
16058 # linking a shared library.
16060 # There doesn't appear to be a way to prevent this compiler from
16061 # explicitly linking system object files so we need to strip them
16062 # from the output so that they don't get included in the library
16064 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'
16067 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16068 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16069 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'
16071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16072 hardcode_libdir_separator_CXX=:
16074 # Commands to make compiler produce verbose output that lists
16075 # what "hidden" libraries, object files and flags are used when
16076 # linking a shared library.
16077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16080 # FIXME: insert proper C++ library support
16087 case $cc_basename in
16089 # Kuck and Associates, Inc. (KAI) C++ Compiler
16091 # KCC will only create a shared library if the output file
16092 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16093 # to its proper name (with version) after linking.
16094 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'
16096 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16097 hardcode_libdir_separator_CXX=:
16099 # Archives containing C++ object files must be created using
16100 # the KAI C++ compiler.
16101 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16104 # Rational C++ 2.4.1
16105 # FIXME: insert proper C++ library support
16109 allow_undefined_flag_CXX=' -expect_unresolved \*'
16110 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'
16111 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16112 echo "-hidden">> $lib.exp~
16113 $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~
16116 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16117 hardcode_libdir_separator_CXX=:
16119 # Commands to make compiler produce verbose output that lists
16120 # what "hidden" libraries, object files and flags are used when
16121 # linking a shared library.
16123 # There doesn't appear to be a way to prevent this compiler from
16124 # explicitly linking system object files so we need to strip them
16125 # from the output so that they don't get included in the library
16127 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'
16130 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16131 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16132 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'
16134 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16135 hardcode_libdir_separator_CXX=:
16137 # Commands to make compiler produce verbose output that lists
16138 # what "hidden" libraries, object files and flags are used when
16139 # linking a shared library.
16140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16143 # FIXME: insert proper C++ library support
16150 # FIXME: insert proper C++ library support
16154 archive_cmds_need_lc_CXX=no
16155 case $cc_basename in
16157 # FIXME: insert proper C++ library support
16161 # FIXME: insert proper C++ library support
16167 case $cc_basename in
16170 # FIXME: insert proper C++ library support
16175 # FIXME: insert proper C++ library support
16179 # FIXME: insert proper C++ library support
16185 case $cc_basename in
16187 # Sun C++ 4.2, 5.x and Centerline C++
16188 no_undefined_flag_CXX=' -zdefs'
16189 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16190 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16191 $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'
16193 hardcode_libdir_flag_spec_CXX='-R$libdir'
16194 hardcode_shlibpath_var_CXX=no
16196 solaris2.0-5 | solaris2.0-5.*) ;;
16198 # The C++ compiler is used as linker so we must use $wl
16199 # flag to pass the commands to the underlying system
16201 # Supported since Solaris 2.6 (maybe 2.5.1?)
16202 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16205 link_all_deplibs_CXX=yes
16207 # Commands to make compiler produce verbose output that lists
16208 # what "hidden" libraries, object files and flags are used when
16209 # linking a shared library.
16211 # There doesn't appear to be a way to prevent this compiler from
16212 # explicitly linking system object files so we need to strip them
16213 # from the output so that they don't get included in the library
16215 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'
16217 # Archives containing C++ object files must be created using
16218 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16219 # necessary to make sure instantiated templates are included
16221 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16224 # Green Hills C++ Compiler
16225 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16227 # The C++ compiler must be used to create the archive.
16228 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16231 # GNU C++ compiler with Solaris linker
16232 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16233 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16234 if $CC --version | grep -v '^2\.7' > /dev/null; then
16235 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16236 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16237 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16239 # Commands to make compiler produce verbose output that lists
16240 # what "hidden" libraries, object files and flags are used when
16241 # linking a shared library.
16242 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16244 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16246 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16247 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16248 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16250 # Commands to make compiler produce verbose output that lists
16251 # what "hidden" libraries, object files and flags are used when
16252 # linking a shared library.
16253 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16256 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16261 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16262 archive_cmds_need_lc_CXX=no
16265 case $cc_basename in
16267 # NonStop-UX NCC 3.20
16268 # FIXME: insert proper C++ library support
16272 # FIXME: insert proper C++ library support
16278 # FIXME: insert proper C++ library support
16282 # FIXME: insert proper C++ library support
16286 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16287 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16288 test "$ld_shlibs_CXX" = no && can_build_shared=no
16294 cat > conftest.$ac_ext <<EOF
16298 Foo (void) { a = 0; }
16304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305 (eval $ac_compile) 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; then
16309 # Parse the compiler output and extract the necessary
16310 # objects, libraries and library flags.
16312 # Sentinel used to keep track of whether or not we are before
16313 # the conftest object file.
16314 pre_test_object_deps_done=no
16316 # The `*' in the case matches for architectures that use `case' in
16317 # $output_verbose_cmd can trigger glob expansion during the loop
16318 # eval without this substitution.
16319 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16321 for p in `eval $output_verbose_link_cmd`; do
16325 # Some compilers place space between "-{L,R}" and the path.
16326 # Remove the space.
16327 if test $p = "-L" \
16328 || test $p = "-R"; then
16335 if test "$pre_test_object_deps_done" = no; then
16338 # Internal compiler library paths should come after those
16339 # provided the user. The postdeps already come after the
16340 # user supplied libs so there is no need to process them.
16341 if test -z "$compiler_lib_search_path_CXX"; then
16342 compiler_lib_search_path_CXX="${prev}${p}"
16344 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16347 # The "-l" case would never come before the object being
16348 # linked, so don't bother handling this case.
16351 if test -z "$postdeps_CXX"; then
16352 postdeps_CXX="${prev}${p}"
16354 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16360 # This assumes that the test object file only shows up
16361 # once in the compiler output.
16362 if test "$p" = "conftest.$objext"; then
16363 pre_test_object_deps_done=yes
16367 if test "$pre_test_object_deps_done" = no; then
16368 if test -z "$predep_objects_CXX"; then
16369 predep_objects_CXX="$p"
16371 predep_objects_CXX="$predep_objects_CXX $p"
16374 if test -z "$postdep_objects_CXX"; then
16375 postdep_objects_CXX="$p"
16377 postdep_objects_CXX="$postdep_objects_CXX $p"
16382 *) ;; # Ignore the rest.
16390 echo "libtool.m4: error: problem compiling CXX test program"
16393 $rm -f confest.$objext
16395 case " $postdeps_CXX " in
16396 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16399 lt_prog_compiler_wl_CXX=
16400 lt_prog_compiler_pic_CXX=
16401 lt_prog_compiler_static_CXX=
16403 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16404 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16406 # C++ specific cases for pic, static, wl, etc.
16407 if test "$GXX" = yes; then
16408 lt_prog_compiler_wl_CXX='-Wl,'
16409 lt_prog_compiler_static_CXX='-static'
16413 # All AIX code is PIC.
16414 if test "$host_cpu" = ia64; then
16415 # AIX 5 now supports IA64 processor
16416 lt_prog_compiler_static_CXX='-Bstatic'
16420 # FIXME: we need at least 68020 code to build shared libraries, but
16421 # adding the `-m68020' flag to GCC prevents building anything better,
16423 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16425 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16426 # PIC is the default for these OSes.
16428 mingw* | os2* | pw32*)
16429 # This hack is so that the source file can tell whether it is being
16430 # built for inclusion in a dll (and should export symbols for example).
16431 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16433 darwin* | rhapsody*)
16434 # PIC is the default on this platform
16435 # Common symbols not allowed in MH_DYLIB files
16436 lt_prog_compiler_pic_CXX='-fno-common'
16439 # DJGPP does not support shared libraries at all
16440 lt_prog_compiler_pic_CXX=
16443 if test -d /usr/nec; then
16444 lt_prog_compiler_pic_CXX=-Kconform_pic
16448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16449 # not for PA HP-UX.
16450 case "$host_cpu" in
16454 lt_prog_compiler_pic_CXX='-fPIC'
16459 lt_prog_compiler_pic_CXX='-fPIC'
16465 # All AIX code is PIC.
16466 if test "$host_cpu" = ia64; then
16467 # AIX 5 now supports IA64 processor
16468 lt_prog_compiler_static_CXX='-Bstatic'
16470 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16474 case $cc_basename in
16476 # Green Hills C++ Compiler
16477 # _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"
16482 # PIC is the default on this platform
16483 # Common symbols not allowed in MH_DYLIB files
16484 case "$cc_basename" in
16486 lt_prog_compiler_pic_CXX='-qnocommon'
16487 lt_prog_compiler_wl_CXX='-Wl,'
16492 case $cc_basename in
16494 lt_prog_compiler_pic_CXX='-KPIC'
16497 # Green Hills C++ Compiler
16498 lt_prog_compiler_pic_CXX='-pic'
16504 freebsd* | kfreebsd*-gnu)
16505 # FreeBSD uses GNU C++
16507 hpux9* | hpux10* | hpux11*)
16508 case $cc_basename in
16510 lt_prog_compiler_wl_CXX='-Wl,'
16511 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16512 if test "$host_cpu" != ia64; then
16513 lt_prog_compiler_pic_CXX='+Z'
16517 lt_prog_compiler_wl_CXX='-Wl,'
16518 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16519 case "$host_cpu" in
16524 lt_prog_compiler_pic_CXX='+Z'
16532 irix5* | irix6* | nonstopux*)
16533 case $cc_basename in
16535 lt_prog_compiler_wl_CXX='-Wl,'
16536 lt_prog_compiler_static_CXX='-non_shared'
16537 # CC pic flag -KPIC is the default.
16544 case $cc_basename in
16547 lt_prog_compiler_wl_CXX='--backend -Wl,'
16548 lt_prog_compiler_pic_CXX='-fPIC'
16552 lt_prog_compiler_wl_CXX='-Wl,'
16553 lt_prog_compiler_pic_CXX='-KPIC'
16554 lt_prog_compiler_static_CXX='-static'
16558 # Make sure the PIC flag is empty. It appears that all Alpha
16559 # Linux and Compaq Tru64 Unix objects are PIC.
16560 lt_prog_compiler_pic_CXX=
16561 lt_prog_compiler_static_CXX='-non_shared'
16572 case $cc_basename in
16574 lt_prog_compiler_pic_CXX='-W c,exportall'
16582 osf3* | osf4* | osf5*)
16583 case $cc_basename in
16585 lt_prog_compiler_wl_CXX='--backend -Wl,'
16588 # Rational C++ 2.4.1
16589 lt_prog_compiler_pic_CXX='-pic'
16592 # Digital/Compaq C++
16593 lt_prog_compiler_wl_CXX='-Wl,'
16594 # Make sure the PIC flag is empty. It appears that all Alpha
16595 # Linux and Compaq Tru64 Unix objects are PIC.
16596 lt_prog_compiler_pic_CXX=
16597 lt_prog_compiler_static_CXX='-non_shared'
16606 case $cc_basename in
16608 lt_prog_compiler_pic_CXX='-fPIC'
16615 case $cc_basename in
16617 # Sun C++ 4.2, 5.x and Centerline C++
16618 lt_prog_compiler_pic_CXX='-KPIC'
16619 lt_prog_compiler_static_CXX='-Bstatic'
16620 lt_prog_compiler_wl_CXX='-Qoption ld '
16623 # Green Hills C++ Compiler
16624 lt_prog_compiler_pic_CXX='-PIC'
16631 case $cc_basename in
16634 lt_prog_compiler_pic_CXX='-pic'
16635 lt_prog_compiler_static_CXX='-Bstatic'
16639 lt_prog_compiler_pic_CXX='-pic'
16646 case $cc_basename in
16648 # NonStop-UX NCC 3.20
16649 lt_prog_compiler_pic_CXX='-KPIC'
16660 lt_prog_compiler_can_build_shared_CXX=no
16665 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16666 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16669 # Check to make sure the PIC flag actually works.
16671 if test -n "$lt_prog_compiler_pic_CXX"; then
16673 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16674 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16675 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 lt_prog_compiler_pic_works_CXX=no
16679 ac_outfile=conftest.$ac_objext
16680 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16681 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16682 # Insert the option either (1) after the last *FLAGS variable, or
16683 # (2) before a word containing "conftest.", or (3) at the end.
16684 # Note that $ac_compile itself does not contain backslashes and begins
16685 # with a dollar sign (not a hyphen), so the echo should work correctly.
16686 # The option is referenced via a variable to avoid confusing sed.
16687 lt_compile=`echo "$ac_compile" | $SED \
16688 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16690 -e 's:$: $lt_compiler_flag:'`
16691 (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
16692 (eval "$lt_compile" 2>conftest.err)
16694 cat conftest.err >&5
16695 echo "$as_me:16696: \$? = $ac_status" >&5
16696 if (exit $ac_status) && test -s "$ac_outfile"; then
16697 # The compiler can only warn and ignore the option if not recognized
16698 # So say no if there are warnings
16699 if test ! -s conftest.err; then
16700 lt_prog_compiler_pic_works_CXX=yes
16706 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16707 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16709 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16710 case $lt_prog_compiler_pic_CXX in
16712 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16715 lt_prog_compiler_pic_CXX=
16716 lt_prog_compiler_can_build_shared_CXX=no
16721 # For platforms which do not support PIC, -DPIC is meaningless:
16723 lt_prog_compiler_pic_CXX=
16726 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16730 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16731 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16732 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 lt_cv_prog_compiler_c_o_CXX=no
16736 $rm -r conftest 2>/dev/null
16740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16742 lt_compiler_flag="-o out/conftest2.$ac_objext"
16743 # Insert the option either (1) after the last *FLAGS variable, or
16744 # (2) before a word containing "conftest.", or (3) at the end.
16745 # Note that $ac_compile itself does not contain backslashes and begins
16746 # with a dollar sign (not a hyphen), so the echo should work correctly.
16747 lt_compile=`echo "$ac_compile" | $SED \
16748 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16750 -e 's:$: $lt_compiler_flag:'`
16751 (eval echo "\"\$as_me:16752: $lt_compile\"" >&5)
16752 (eval "$lt_compile" 2>out/conftest.err)
16754 cat out/conftest.err >&5
16755 echo "$as_me:16756: \$? = $ac_status" >&5
16756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16758 # The compiler can only warn and ignore the option if not recognized
16759 # So say no if there are warnings
16760 if test ! -s out/conftest.err; then
16761 lt_cv_prog_compiler_c_o_CXX=yes
16766 # SGI C++ compiler will create directory out/ii_files/ for
16767 # template instantiation
16768 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16769 $rm out/* && rmdir out
16775 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16776 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16779 hard_links="nottested"
16780 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16781 # do not overwrite the value of need_locks provided by the user
16782 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16783 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16788 ln conftest.a conftest.b 2>&5 || hard_links=no
16789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16790 echo "$as_me:$LINENO: result: $hard_links" >&5
16791 echo "${ECHO_T}$hard_links" >&6
16792 if test "$hard_links" = no; then
16793 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16794 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16801 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16802 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16804 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16807 # If we're using GNU nm, then we don't want the "-C" option.
16808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16809 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16810 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'
16812 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'
16816 export_symbols_cmds_CXX="$ltdll_cmds"
16819 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16822 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16826 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16827 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16828 test "$ld_shlibs_CXX" = no && can_build_shared=no
16830 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16831 if test "$GCC" = yes; then
16832 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16836 # Do we need to explicitly link libc?
16838 case "x$archive_cmds_need_lc_CXX" in
16840 # Assume -lc should be added
16841 archive_cmds_need_lc_CXX=yes
16843 if test "$enable_shared" = yes && test "$GCC" = yes; then
16844 case $archive_cmds_CXX in
16846 # FIXME: we may have to deal with multi-command sequences.
16849 # Test whether the compiler implicitly links with -lc since on some
16850 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16851 # to ld, don't add -lc before -lgcc.
16852 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16853 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16855 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858 (eval $ac_compile) 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } 2>conftest.err; then
16864 libobjs=conftest.$ac_objext
16866 wl=$lt_prog_compiler_wl_CXX
16872 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16873 allow_undefined_flag_CXX=
16874 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16875 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }
16880 archive_cmds_need_lc_CXX=no
16882 archive_cmds_need_lc_CXX=yes
16884 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16886 cat conftest.err 1>&5
16889 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16890 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16897 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16898 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16899 library_names_spec=
16900 libname_spec='lib$name'
16904 postuninstall_cmds=
16908 shlibpath_overrides_runpath=unknown
16910 dynamic_linker="$host_os ld.so"
16911 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16912 if test "$GCC" = yes; then
16913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16914 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16915 # if the path contains ";" then we assume it to be the separator
16916 # otherwise default to the standard path separator (i.e. ":") - it is
16917 # assumed that no part of a normal pathname contains ";" but that should
16918 # okay in the real world where ";" in dirpaths is itself problematic.
16919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16926 need_lib_prefix=unknown
16927 hardcode_into_libs=no
16929 # when you set need_version to no, make sure it does not cause -set_version
16930 # flags to be left without arguments
16931 need_version=unknown
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16937 shlibpath_var=LIBPATH
16939 # AIX 3 has no versioning support, so we append a major version to the name.
16940 soname_spec='${libname}${release}${shared_ext}$major'
16947 hardcode_into_libs=yes
16948 if test "$host_cpu" = ia64; then
16949 # AIX 5 supports IA64
16950 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16951 shlibpath_var=LD_LIBRARY_PATH
16953 # With GCC up to 2.95.x, collect2 would create an import file
16954 # for dependence libraries. The import file would start with
16955 # the line `#! .'. This would cause the generated library to
16956 # depend on `.', always an invalid library. This was fixed in
16957 # development snapshots of GCC prior to 3.0.
16959 aix4 | aix4.[01] | aix4.[01].*)
16960 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16962 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16965 can_build_shared=no
16969 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16970 # soname into executable. Probably we can add versioning support to
16971 # collect2, so additional links can be useful in future.
16972 if test "$aix_use_runtimelinking" = yes; then
16973 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16974 # instead of lib<name>.a to let people know that these are not
16975 # typical AIX shared libraries.
16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16978 # We preserve .a as extension for shared libraries through AIX4.2
16979 # and later when we are not doing run time linking.
16980 library_names_spec='${libname}${release}.a $libname.a'
16981 soname_spec='${libname}${release}${shared_ext}$major'
16983 shlibpath_var=LIBPATH
16988 library_names_spec='$libname.ixlibrary $libname.a'
16989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16990 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'
16994 library_names_spec='${libname}${shared_ext}'
16995 dynamic_linker="$host_os ld.so"
16996 shlibpath_var=LIBRARY_PATH
17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17003 soname_spec='${libname}${release}${shared_ext}$major'
17004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17005 shlibpath_var=LD_LIBRARY_PATH
17006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17008 # the default ld.so.conf also contains /usr/contrib/lib and
17009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17010 # libtool to hard-code these into programs
17013 cygwin* | mingw* | pw32*)
17014 version_type=windows
17019 case $GCC,$host_os in
17020 yes,cygwin* | yes,mingw* | yes,pw32*)
17021 library_names_spec='$libname.dll.a'
17022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17023 postinstall_cmds='base_file=`basename \${file}`~
17024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17025 dldir=$destdir/`dirname \$dlpath`~
17026 test -d \$dldir || mkdir -p \$dldir~
17027 $install_prog $dir/$dlname \$dldir/$dlname'
17028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17029 dlpath=$dir/\$dldll~
17031 shlibpath_overrides_runpath=yes
17035 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17036 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17037 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17040 # MinGW DLLs use traditional 'lib' prefix
17041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17043 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17044 # It is most probably a Windows format PATH printed by
17045 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17046 # path with ; separators, and with drive letters. We can handle the
17047 # drive letters (cygwin fileutils understands them), so leave them,
17048 # especially as we might pass files found there to a mingw objdump,
17049 # which wouldn't understand a cygwinified path. Ahh.
17050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17056 # pw32 DLLs use 'pw' prefix rather than 'lib'
17057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17063 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17066 dynamic_linker='Win32 ld.exe'
17067 # FIXME: first we should search . and the directory the executable is in
17071 darwin* | rhapsody*)
17072 dynamic_linker="$host_os dyld"
17073 version_type=darwin
17076 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17077 soname_spec='${libname}${release}${major}$shared_ext'
17078 shlibpath_overrides_runpath=yes
17079 shlibpath_var=DYLD_LIBRARY_PATH
17080 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17081 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17082 if test "$GCC" = yes; then
17083 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"`
17085 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17087 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17095 soname_spec='${libname}${release}${shared_ext}$major'
17096 shlibpath_var=LD_LIBRARY_PATH
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath=no
17111 hardcode_into_libs=yes
17112 dynamic_linker='GNU ld.so'
17116 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17117 version_type=freebsd-$objformat
17118 case $version_type in
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17129 shlibpath_var=LD_LIBRARY_PATH
17132 shlibpath_overrides_runpath=yes
17134 freebsd3.01* | freebsdelf3.01*)
17135 shlibpath_overrides_runpath=yes
17136 hardcode_into_libs=yes
17139 shlibpath_overrides_runpath=no
17140 hardcode_into_libs=yes
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17150 soname_spec='${libname}${release}${shared_ext}$major'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 hardcode_into_libs=yes
17155 hpux9* | hpux10* | hpux11*)
17156 # Give a soname corresponding to the major version so that dld.sl refuses to
17157 # link against other versions.
17161 case "$host_cpu" in
17164 hardcode_into_libs=yes
17165 dynamic_linker="$host_os dld.so"
17166 shlibpath_var=LD_LIBRARY_PATH
17167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169 soname_spec='${libname}${release}${shared_ext}$major'
17170 if test "X$HPUX_IA64_MODE" = X32; then
17171 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17179 hardcode_into_libs=yes
17180 dynamic_linker="$host_os dld.sl"
17181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17190 dynamic_linker="$host_os dld.sl"
17191 shlibpath_var=SHLIB_PATH
17192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17194 soname_spec='${libname}${release}${shared_ext}$major'
17197 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17198 postinstall_cmds='chmod 555 $lib'
17201 irix5* | irix6* | nonstopux*)
17203 nonstopux*) version_type=nonstopux ;;
17205 if test "$lt_cv_prog_gnu_ld" = yes; then
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17216 irix5* | nonstopux*)
17217 libsuff= shlibsuff=
17220 case $LD in # libtool.m4 will add one of these switches to LD
17221 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17222 libsuff= shlibsuff= libmagic=32-bit;;
17223 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17224 libsuff=32 shlibsuff=N32 libmagic=N32;;
17225 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17226 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17227 *) libsuff= shlibsuff= libmagic=never-match;;
17231 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17232 shlibpath_overrides_runpath=no
17233 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17234 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17235 hardcode_into_libs=yes
17238 # No shared lib support for Linux oldld, aout, or coff.
17239 linux*oldld* | linux*aout* | linux*coff*)
17243 # This must be Linux ELF.
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17251 shlibpath_var=LD_LIBRARY_PATH
17252 shlibpath_overrides_runpath=no
17253 # This implies no fast_install, which is unacceptable.
17254 # Some rework will be needed to allow for fast_install
17255 # before this can be enabled.
17256 hardcode_into_libs=yes
17258 # Append ld.so.conf contents to the search path
17259 if test -f /etc/ld.so.conf; then
17260 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17264 # We used to test for /lib/ld.so.1 and disable shared libraries on
17265 # powerpc, because MkLinux only supported shared libraries with the
17266 # GNU dynamic linker. Since this was broken with cross compilers,
17267 # most powerpc-linux boxes support dynamic linking these days and
17268 # people can always --disable-shared, the test was removed, and we
17269 # assume the GNU/Linux dynamic linker is in use.
17270 dynamic_linker='GNU/Linux ld.so'
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 shlibpath_overrides_runpath=no
17281 hardcode_into_libs=yes
17282 dynamic_linker='GNU ld.so'
17289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17292 dynamic_linker='NetBSD (a.out) ld.so'
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 dynamic_linker='NetBSD ld.elf_so'
17298 shlibpath_var=LD_LIBRARY_PATH
17299 shlibpath_overrides_runpath=yes
17300 hardcode_into_libs=yes
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 shlibpath_overrides_runpath=yes
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 soname_spec='${libname}${release}${shared_ext}$major'
17316 shlibpath_var=LD_LIBRARY_PATH
17317 shlibpath_overrides_runpath=yes
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17326 shlibpath_var=LD_LIBRARY_PATH
17327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17329 openbsd2.[89] | openbsd2.[89].*)
17330 shlibpath_overrides_runpath=no
17333 shlibpath_overrides_runpath=yes
17337 shlibpath_overrides_runpath=yes
17342 libname_spec='$name'
17345 library_names_spec='$libname${shared_ext} $libname.a'
17346 dynamic_linker='OS/2 ld.exe'
17347 shlibpath_var=LIBPATH
17350 osf3* | osf4* | osf5*)
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 shlibpath_var=LD_LIBRARY_PATH
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 shlibpath_var=LD_LIBRARY_PATH
17375 shlibpath_overrides_runpath=yes
17376 hardcode_into_libs=yes
17377 # ldd complains unless libraries are executable
17378 postinstall_cmds='chmod +x $lib'
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17384 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17385 shlibpath_var=LD_LIBRARY_PATH
17386 shlibpath_overrides_runpath=yes
17387 if test "$with_gnu_ld" = yes; then
17393 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 case $host_vendor in
17400 shlibpath_overrides_runpath=no
17402 export_dynamic_flag_spec='${wl}-Blargedynsym'
17403 runpath_var=LD_RUN_PATH
17411 shlibpath_overrides_runpath=no
17412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17418 if test -d /usr/nec ;then
17420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17421 soname_spec='$libname${shared_ext}.$major'
17422 shlibpath_var=LD_LIBRARY_PATH
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429 soname_spec='${libname}${release}${shared_ext}$major'
17430 shlibpath_var=LD_LIBRARY_PATH
17437 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17438 echo "${ECHO_T}$dynamic_linker" >&6
17439 test "$dynamic_linker" = no && can_build_shared=no
17441 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17442 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17443 hardcode_action_CXX=
17444 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17445 test -n "$runpath_var_CXX" || \
17446 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17448 # We can hardcode non-existant directories.
17449 if test "$hardcode_direct_CXX" != no &&
17450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17451 # have to relink, otherwise we might link with an installed library
17452 # when we should be linking with a yet-to-be-installed one
17453 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17454 test "$hardcode_minus_L_CXX" != no; then
17455 # Linking always hardcodes the temporary library directory.
17456 hardcode_action_CXX=relink
17458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17459 hardcode_action_CXX=immediate
17462 # We cannot hardcode anything, or else we can only hardcode existing
17464 hardcode_action_CXX=unsupported
17466 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17467 echo "${ECHO_T}$hardcode_action_CXX" >&6
17469 if test "$hardcode_action_CXX" = relink; then
17470 # Fast installation is not supported
17471 enable_fast_install=no
17472 elif test "$shlibpath_overrides_runpath" = yes ||
17473 test "$enable_shared" = no; then
17474 # Fast installation is not necessary
17475 enable_fast_install=needless
17480 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17481 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17482 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17483 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17484 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17485 echo "$as_me:$LINENO: result: yes" >&5
17486 echo "${ECHO_T}yes" >&6
17488 # FIXME - insert some real tests, host_os isn't really good enough
17491 if test -n "$STRIP" ; then
17492 striplib="$STRIP -x"
17493 echo "$as_me:$LINENO: result: yes" >&5
17494 echo "${ECHO_T}yes" >&6
17496 echo "$as_me:$LINENO: result: no" >&5
17497 echo "${ECHO_T}no" >&6
17501 echo "$as_me:$LINENO: result: no" >&5
17502 echo "${ECHO_T}no" >&6
17507 if test "x$enable_dlopen" != xyes; then
17508 enable_dlopen=unknown
17509 enable_dlopen_self=unknown
17510 enable_dlopen_self_static=unknown
17517 lt_cv_dlopen="load_add_on"
17519 lt_cv_dlopen_self=yes
17523 lt_cv_dlopen="LoadLibrary"
17528 lt_cv_dlopen="dlopen"
17533 # if libdl is installed we need to link against it
17534 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17535 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17536 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17539 ac_check_lib_save_LIBS=$LIBS
17541 cat >conftest.$ac_ext <<_ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17548 /* Override any gcc2 internal prototype to avoid an error. */
17552 /* We use char because int might match the return type of a gcc2
17553 builtin and then its argument prototype would still apply. */
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17565 (eval $ac_link) 2>conftest.er1
17567 grep -v '^ *+' conftest.er1 >conftest.err
17569 cat conftest.err >&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
17572 { ac_try='test -z "$ac_cxx_werror_flag"
17573 || test ! -s conftest.err'
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; } &&
17579 { ac_try='test -s conftest$ac_exeext'
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
17585 ac_cv_lib_dl_dlopen=yes
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17590 ac_cv_lib_dl_dlopen=no
17592 rm -f conftest.err conftest.$ac_objext \
17593 conftest$ac_exeext conftest.$ac_ext
17594 LIBS=$ac_check_lib_save_LIBS
17596 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17598 if test $ac_cv_lib_dl_dlopen = yes; then
17599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17602 lt_cv_dlopen="dyld"
17604 lt_cv_dlopen_self=yes
17611 echo "$as_me:$LINENO: checking for shl_load" >&5
17612 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17613 if test "${ac_cv_func_shl_load+set}" = set; then
17614 echo $ECHO_N "(cached) $ECHO_C" >&6
17616 cat >conftest.$ac_ext <<_ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17624 #define shl_load innocuous_shl_load
17626 /* System header to define __stub macros and hopefully few prototypes,
17627 which can conflict with char shl_load (); below.
17628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17629 <limits.h> exists even on freestanding compilers. */
17632 # include <limits.h>
17634 # include <assert.h>
17639 /* Override any gcc2 internal prototype to avoid an error. */
17644 /* We use char because int might match the return type of a gcc2
17645 builtin and then its argument prototype would still apply. */
17647 /* The GNU C library defines this for functions which it implements
17648 to always fail with ENOSYS. Some functions are actually named
17649 something starting with __ and the normal name is an alias. */
17650 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17653 char (*f) () = shl_load;
17662 return f != shl_load;
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17669 (eval $ac_link) 2>conftest.er1
17671 grep -v '^ *+' conftest.er1 >conftest.err
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
17676 { ac_try='test -z "$ac_cxx_werror_flag"
17677 || test ! -s conftest.err'
17678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679 (eval $ac_try) 2>&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest$ac_exeext'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; }; then
17689 ac_cv_func_shl_load=yes
17691 echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17694 ac_cv_func_shl_load=no
17696 rm -f conftest.err conftest.$ac_objext \
17697 conftest$ac_exeext conftest.$ac_ext
17699 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17700 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17701 if test $ac_cv_func_shl_load = yes; then
17702 lt_cv_dlopen="shl_load"
17704 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17705 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17706 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17707 echo $ECHO_N "(cached) $ECHO_C" >&6
17709 ac_check_lib_save_LIBS=$LIBS
17711 cat >conftest.$ac_ext <<_ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17718 /* Override any gcc2 internal prototype to avoid an error. */
17722 /* We use char because int might match the return type of a gcc2
17723 builtin and then its argument prototype would still apply. */
17733 rm -f conftest.$ac_objext conftest$ac_exeext
17734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17735 (eval $ac_link) 2>conftest.er1
17737 grep -v '^ *+' conftest.er1 >conftest.err
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -z "$ac_cxx_werror_flag"
17743 || test ! -s conftest.err'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest$ac_exeext'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 ac_cv_lib_dld_shl_load=yes
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 ac_cv_lib_dld_shl_load=no
17762 rm -f conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
17764 LIBS=$ac_check_lib_save_LIBS
17766 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17767 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17768 if test $ac_cv_lib_dld_shl_load = yes; then
17769 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17771 echo "$as_me:$LINENO: checking for dlopen" >&5
17772 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17773 if test "${ac_cv_func_dlopen+set}" = set; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 cat >conftest.$ac_ext <<_ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17782 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17784 #define dlopen innocuous_dlopen
17786 /* System header to define __stub macros and hopefully few prototypes,
17787 which can conflict with char dlopen (); below.
17788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17789 <limits.h> exists even on freestanding compilers. */
17792 # include <limits.h>
17794 # include <assert.h>
17799 /* Override any gcc2 internal prototype to avoid an error. */
17804 /* We use char because int might match the return type of a gcc2
17805 builtin and then its argument prototype would still apply. */
17807 /* The GNU C library defines this for functions which it implements
17808 to always fail with ENOSYS. Some functions are actually named
17809 something starting with __ and the normal name is an alias. */
17810 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17813 char (*f) () = dlopen;
17822 return f != dlopen;
17827 rm -f conftest.$ac_objext conftest$ac_exeext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17829 (eval $ac_link) 2>conftest.er1
17831 grep -v '^ *+' conftest.er1 >conftest.err
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
17836 { ac_try='test -z "$ac_cxx_werror_flag"
17837 || test ! -s conftest.err'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; } &&
17843 { ac_try='test -s conftest$ac_exeext'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17849 ac_cv_func_dlopen=yes
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17854 ac_cv_func_dlopen=no
17856 rm -f conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
17859 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17860 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17861 if test $ac_cv_func_dlopen = yes; then
17862 lt_cv_dlopen="dlopen"
17864 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17865 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17869 ac_check_lib_save_LIBS=$LIBS
17871 cat >conftest.$ac_ext <<_ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17878 /* Override any gcc2 internal prototype to avoid an error. */
17882 /* We use char because int might match the return type of a gcc2
17883 builtin and then its argument prototype would still apply. */
17893 rm -f conftest.$ac_objext conftest$ac_exeext
17894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17895 (eval $ac_link) 2>conftest.er1
17897 grep -v '^ *+' conftest.er1 >conftest.err
17899 cat conftest.err >&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
17902 { ac_try='test -z "$ac_cxx_werror_flag"
17903 || test ! -s conftest.err'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest$ac_exeext'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_cv_lib_dl_dlopen=yes
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17920 ac_cv_lib_dl_dlopen=no
17922 rm -f conftest.err conftest.$ac_objext \
17923 conftest$ac_exeext conftest.$ac_ext
17924 LIBS=$ac_check_lib_save_LIBS
17926 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17927 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17928 if test $ac_cv_lib_dl_dlopen = yes; then
17929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17931 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17932 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17933 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 ac_check_lib_save_LIBS=$LIBS
17937 LIBS="-lsvld $LIBS"
17938 cat >conftest.$ac_ext <<_ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17945 /* Override any gcc2 internal prototype to avoid an error. */
17949 /* We use char because int might match the return type of a gcc2
17950 builtin and then its argument prototype would still apply. */
17960 rm -f conftest.$ac_objext conftest$ac_exeext
17961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17962 (eval $ac_link) 2>conftest.er1
17964 grep -v '^ *+' conftest.er1 >conftest.err
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try='test -z "$ac_cxx_werror_flag"
17970 || test ! -s conftest.err'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; } &&
17976 { ac_try='test -s conftest$ac_exeext'
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; }; then
17982 ac_cv_lib_svld_dlopen=yes
17984 echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17987 ac_cv_lib_svld_dlopen=no
17989 rm -f conftest.err conftest.$ac_objext \
17990 conftest$ac_exeext conftest.$ac_ext
17991 LIBS=$ac_check_lib_save_LIBS
17993 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17994 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17995 if test $ac_cv_lib_svld_dlopen = yes; then
17996 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17998 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17999 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18000 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18001 echo $ECHO_N "(cached) $ECHO_C" >&6
18003 ac_check_lib_save_LIBS=$LIBS
18005 cat >conftest.$ac_ext <<_ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18012 /* Override any gcc2 internal prototype to avoid an error. */
18016 /* We use char because int might match the return type of a gcc2
18017 builtin and then its argument prototype would still apply. */
18027 rm -f conftest.$ac_objext conftest$ac_exeext
18028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18029 (eval $ac_link) 2>conftest.er1
18031 grep -v '^ *+' conftest.er1 >conftest.err
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } &&
18036 { ac_try='test -z "$ac_cxx_werror_flag"
18037 || test ! -s conftest.err'
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; } &&
18043 { ac_try='test -s conftest$ac_exeext'
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; }; then
18049 ac_cv_lib_dld_dld_link=yes
18051 echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18054 ac_cv_lib_dld_dld_link=no
18056 rm -f conftest.err conftest.$ac_objext \
18057 conftest$ac_exeext conftest.$ac_ext
18058 LIBS=$ac_check_lib_save_LIBS
18060 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18061 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18062 if test $ac_cv_lib_dld_dld_link = yes; then
18063 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18084 if test "x$lt_cv_dlopen" != xno; then
18090 case $lt_cv_dlopen in
18092 save_CPPFLAGS="$CPPFLAGS"
18093 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18095 save_LDFLAGS="$LDFLAGS"
18096 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18099 LIBS="$lt_cv_dlopen_libs $LIBS"
18101 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18102 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18103 if test "${lt_cv_dlopen_self+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 if test "$cross_compiling" = yes; then :
18107 lt_cv_dlopen_self=cross
18109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18110 lt_status=$lt_dlunknown
18111 cat > conftest.$ac_ext <<EOF
18112 #line 18113 "configure"
18113 #include "confdefs.h"
18122 # define LT_DLGLOBAL RTLD_GLOBAL
18125 # define LT_DLGLOBAL DL_GLOBAL
18127 # define LT_DLGLOBAL 0
18131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18132 find out it does not work in some platform. */
18133 #ifndef LT_DLLAZY_OR_NOW
18135 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18138 # define LT_DLLAZY_OR_NOW DL_LAZY
18141 # define LT_DLLAZY_OR_NOW RTLD_NOW
18144 # define LT_DLLAZY_OR_NOW DL_NOW
18146 # define LT_DLLAZY_OR_NOW 0
18154 extern "C" void exit (int);
18157 void fnord() { int i=42;}
18160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18161 int status = $lt_dlunknown;
18165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18166 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18167 /* dlclose (self); */
18173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18174 (eval $ac_link) 2>&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18178 (./conftest; exit; ) 2>/dev/null
18180 case x$lt_status in
18181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18183 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18186 # compilation failed
18187 lt_cv_dlopen_self=no
18194 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18195 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18197 if test "x$lt_cv_dlopen_self" = xyes; then
18198 LDFLAGS="$LDFLAGS $link_static_flag"
18199 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18200 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18201 if test "${lt_cv_dlopen_self_static+set}" = set; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18204 if test "$cross_compiling" = yes; then :
18205 lt_cv_dlopen_self_static=cross
18207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18208 lt_status=$lt_dlunknown
18209 cat > conftest.$ac_ext <<EOF
18210 #line 18211 "configure"
18211 #include "confdefs.h"
18220 # define LT_DLGLOBAL RTLD_GLOBAL
18223 # define LT_DLGLOBAL DL_GLOBAL
18225 # define LT_DLGLOBAL 0
18229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18230 find out it does not work in some platform. */
18231 #ifndef LT_DLLAZY_OR_NOW
18233 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18236 # define LT_DLLAZY_OR_NOW DL_LAZY
18239 # define LT_DLLAZY_OR_NOW RTLD_NOW
18242 # define LT_DLLAZY_OR_NOW DL_NOW
18244 # define LT_DLLAZY_OR_NOW 0
18252 extern "C" void exit (int);
18255 void fnord() { int i=42;}
18258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18259 int status = $lt_dlunknown;
18263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18264 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18265 /* dlclose (self); */
18271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18276 (./conftest; exit; ) 2>/dev/null
18278 case x$lt_status in
18279 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18280 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18281 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18284 # compilation failed
18285 lt_cv_dlopen_self_static=no
18292 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18293 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18296 CPPFLAGS="$save_CPPFLAGS"
18297 LDFLAGS="$save_LDFLAGS"
18302 case $lt_cv_dlopen_self in
18303 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18304 *) enable_dlopen_self=unknown ;;
18307 case $lt_cv_dlopen_self_static in
18308 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18309 *) enable_dlopen_self_static=unknown ;;
18314 # The else clause should only fire when bootstrapping the
18315 # libtool distribution, otherwise you forgot to ship ltmain.sh
18316 # with your package, and you will get complaints that there are
18317 # no rules to generate ltmain.sh.
18318 if test -f "$ltmain"; then
18319 # See if we are running on zsh, and set the options which allow our commands through
18320 # without removal of \ escapes.
18321 if test -n "${ZSH_VERSION+set}" ; then
18322 setopt NO_GLOB_SUBST
18324 # Now quote all the things that may contain metacharacters while being
18325 # careful not to overquote the AC_SUBSTed values. We take copies of the
18326 # variables and quote the copies for generation of the libtool script.
18327 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18329 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18330 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18331 deplibs_check_method reload_flag reload_cmds need_locks \
18332 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18333 lt_cv_sys_global_symbol_to_c_name_address \
18334 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18335 old_postinstall_cmds old_postuninstall_cmds \
18339 lt_prog_compiler_wl_CXX \
18340 lt_prog_compiler_pic_CXX \
18341 lt_prog_compiler_static_CXX \
18342 lt_prog_compiler_no_builtin_flag_CXX \
18343 export_dynamic_flag_spec_CXX \
18344 thread_safe_flag_spec_CXX \
18345 whole_archive_flag_spec_CXX \
18346 enable_shared_with_static_runtimes_CXX \
18347 old_archive_cmds_CXX \
18348 old_archive_from_new_cmds_CXX \
18349 predep_objects_CXX \
18350 postdep_objects_CXX \
18353 compiler_lib_search_path_CXX \
18355 archive_expsym_cmds_CXX \
18356 postinstall_cmds_CXX \
18357 postuninstall_cmds_CXX \
18358 old_archive_from_expsyms_cmds_CXX \
18359 allow_undefined_flag_CXX \
18360 no_undefined_flag_CXX \
18361 export_symbols_cmds_CXX \
18362 hardcode_libdir_flag_spec_CXX \
18363 hardcode_libdir_flag_spec_ld_CXX \
18364 hardcode_libdir_separator_CXX \
18365 hardcode_automatic_CXX \
18367 module_expsym_cmds_CXX \
18368 lt_cv_prog_compiler_c_o_CXX \
18369 exclude_expsyms_CXX \
18370 include_expsyms_CXX; do
18373 old_archive_cmds_CXX | \
18374 old_archive_from_new_cmds_CXX | \
18375 archive_cmds_CXX | \
18376 archive_expsym_cmds_CXX | \
18377 module_cmds_CXX | \
18378 module_expsym_cmds_CXX | \
18379 old_archive_from_expsyms_cmds_CXX | \
18380 export_symbols_cmds_CXX | \
18381 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18382 postinstall_cmds | postuninstall_cmds | \
18383 old_postinstall_cmds | old_postuninstall_cmds | \
18384 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18385 # Double-quote double-evaled strings.
18386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18395 *'\$0 --fallback-echo"')
18396 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18402 cat <<__EOF__ >> "$cfgfile"
18403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18407 # Shell to use when invoking shell scripts.
18410 # Whether or not to build shared libraries.
18411 build_libtool_libs=$enable_shared
18413 # Whether or not to build static libraries.
18414 build_old_libs=$enable_static
18416 # Whether or not to add -lc for building shared libraries.
18417 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18419 # Whether or not to disallow shared libs when runtime libs are static
18420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18422 # Whether or not to optimize for fast installation.
18423 fast_install=$enable_fast_install
18426 host_alias=$host_alias
18429 # An echo program that does not interpret backslashes.
18434 AR_FLAGS=$lt_AR_FLAGS
18439 # A language-specific compiler.
18440 CC=$lt_compiler_CXX
18442 # Is the compiler the GNU C compiler?
18448 # The linker used to build libraries.
18451 # Whether we need hard or soft links.
18454 # A BSD-compatible nm program.
18457 # A symbol stripping program
18460 # Used to examine libraries when file_magic_cmd begins "file"
18461 MAGIC_CMD=$MAGIC_CMD
18463 # Used on cygwin: DLL creation program.
18466 # Used on cygwin: object dumper.
18469 # Used on cygwin: assembler.
18472 # The name of the directory that contains temporary libtool files.
18475 # How to create reloadable object files.
18476 reload_flag=$lt_reload_flag
18477 reload_cmds=$lt_reload_cmds
18479 # How to pass a linker flag through the compiler.
18480 wl=$lt_lt_prog_compiler_wl_CXX
18482 # Object file suffix (normally "o").
18483 objext="$ac_objext"
18485 # Old archive suffix (normally "a").
18488 # Shared library suffix (normally ".so").
18489 shrext_cmds='$shrext_cmds'
18491 # Executable file suffix (normally "").
18494 # Additional compiler flags for building library objects.
18495 pic_flag=$lt_lt_prog_compiler_pic_CXX
18498 # What is the maximum length of a command?
18499 max_cmd_len=$lt_cv_sys_max_cmd_len
18501 # Does compiler simultaneously support -c and -o options?
18502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18504 # Must we lock files when doing compilation ?
18505 need_locks=$lt_need_locks
18507 # Do we need the lib prefix for modules?
18508 need_lib_prefix=$need_lib_prefix
18510 # Do we need a version for libraries?
18511 need_version=$need_version
18513 # Whether dlopen is supported.
18514 dlopen_support=$enable_dlopen
18516 # Whether dlopen of programs is supported.
18517 dlopen_self=$enable_dlopen_self
18519 # Whether dlopen of statically linked programs is supported.
18520 dlopen_self_static=$enable_dlopen_self_static
18522 # Compiler flag to prevent dynamic linking.
18523 link_static_flag=$lt_lt_prog_compiler_static_CXX
18525 # Compiler flag to turn off builtin functions.
18526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18528 # Compiler flag to allow reflexive dlopens.
18529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18531 # Compiler flag to generate shared objects directly from archives.
18532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18534 # Compiler flag to generate thread-safe objects.
18535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18537 # Library versioning type.
18538 version_type=$version_type
18540 # Format of library name prefix.
18541 libname_spec=$lt_libname_spec
18543 # List of archive names. First name is the real one, the rest are links.
18544 # The last name is the one that the linker finds with -lNAME.
18545 library_names_spec=$lt_library_names_spec
18547 # The coded name of the library, if different from the real name.
18548 soname_spec=$lt_soname_spec
18550 # Commands used to build and install an old-style archive.
18552 old_archive_cmds=$lt_old_archive_cmds_CXX
18553 old_postinstall_cmds=$lt_old_postinstall_cmds
18554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18556 # Create an old-style archive from a shared archive.
18557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18559 # Create a temporary old-style archive to link instead of a shared archive.
18560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18562 # Commands used to build and install a shared archive.
18563 archive_cmds=$lt_archive_cmds_CXX
18564 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18565 postinstall_cmds=$lt_postinstall_cmds
18566 postuninstall_cmds=$lt_postuninstall_cmds
18568 # Commands used to build a loadable module (assumed same as above if empty)
18569 module_cmds=$lt_module_cmds_CXX
18570 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18572 # Commands to strip libraries.
18573 old_striplib=$lt_old_striplib
18574 striplib=$lt_striplib
18576 # Dependencies to place before the objects being linked to create a
18578 predep_objects=$lt_predep_objects_CXX
18580 # Dependencies to place after the objects being linked to create a
18582 postdep_objects=$lt_postdep_objects_CXX
18584 # Dependencies to place before the objects being linked to create a
18586 predeps=$lt_predeps_CXX
18588 # Dependencies to place after the objects being linked to create a
18590 postdeps=$lt_postdeps_CXX
18592 # The library search path used internally by the compiler when linking
18593 # a shared library.
18594 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18596 # Method to check whether dependent libraries are shared objects.
18597 deplibs_check_method=$lt_deplibs_check_method
18599 # Command to use when deplibs_check_method == file_magic.
18600 file_magic_cmd=$lt_file_magic_cmd
18602 # Flag that allows shared libraries with undefined symbols to be built.
18603 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18605 # Flag that forces no undefined symbols.
18606 no_undefined_flag=$lt_no_undefined_flag_CXX
18608 # Commands used to finish a libtool library installation in a directory.
18609 finish_cmds=$lt_finish_cmds
18611 # Same as above, but a single script fragment to be evaled but not shown.
18612 finish_eval=$lt_finish_eval
18614 # Take the output of nm and produce a listing of raw symbols and C names.
18615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18617 # Transform the output of nm in a proper C declaration
18618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18620 # Transform the output of nm in a C name address pair
18621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18623 # This is the shared library runtime path variable.
18624 runpath_var=$runpath_var
18626 # This is the shared library path variable.
18627 shlibpath_var=$shlibpath_var
18629 # Is shlibpath searched before the hard-coded library search path?
18630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18632 # How to hardcode a shared library path into an executable.
18633 hardcode_action=$hardcode_action_CXX
18635 # Whether we should hardcode library paths into libraries.
18636 hardcode_into_libs=$hardcode_into_libs
18638 # Flag to hardcode \$libdir into a binary during linking.
18639 # This must work even if \$libdir does not exist.
18640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18642 # If ld is used when linking, flag to hardcode \$libdir into
18643 # a binary during linking. This must work even if \$libdir does
18645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18647 # Whether we need a single -rpath flag with a separated argument.
18648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18651 # resulting binary.
18652 hardcode_direct=$hardcode_direct_CXX
18654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18655 # resulting binary.
18656 hardcode_minus_L=$hardcode_minus_L_CXX
18658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18659 # the resulting binary.
18660 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18662 # Set to yes if building a shared library automatically hardcodes DIR into the library
18663 # and all subsequent libraries and executables linked against it.
18664 hardcode_automatic=$hardcode_automatic_CXX
18666 # Variables whose values should be saved in libtool wrapper scripts and
18667 # restored at relink time.
18668 variables_saved_for_relink="$variables_saved_for_relink"
18670 # Whether libtool must link a program against all its dependency libraries.
18671 link_all_deplibs=$link_all_deplibs_CXX
18673 # Compile-time system search path for libraries
18674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18676 # Run-time system search path for libraries
18677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18679 # Fix the shell variable \$srcfile for the compiler.
18680 fix_srcfile_path="$fix_srcfile_path_CXX"
18682 # Set to yes if exported symbols are required.
18683 always_export_symbols=$always_export_symbols_CXX
18685 # The commands to list exported symbols.
18686 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18688 # The commands to extract the exported symbol list from a shared archive.
18689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18691 # Symbols that should not be listed in the preloaded symbols.
18692 exclude_expsyms=$lt_exclude_expsyms_CXX
18694 # Symbols that must always be exported.
18695 include_expsyms=$lt_include_expsyms_CXX
18697 # ### END LIBTOOL TAG CONFIG: $tagname
18703 # If there is no Makefile yet, we rely on a make rule to execute
18704 # `config.status --recheck' to rerun these tests and create the
18705 # libtool script then.
18706 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18707 if test -f "$ltmain_in"; then
18708 test -f Makefile && make "$ltmain"
18714 ac_cpp='$CPP $CPPFLAGS'
18715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18723 with_gnu_ldcxx=$with_gnu_ld
18724 with_gnu_ld=$lt_save_with_gnu_ld
18725 lt_cv_path_LDCXX=$lt_cv_path_LD
18726 lt_cv_path_LD=$lt_save_path_LD
18727 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18728 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18736 if test -n "$F77" && test "X$F77" != "Xno"; then
18739 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18740 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18741 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18744 archive_cmds_need_lc_F77=no
18745 allow_undefined_flag_F77=
18746 always_export_symbols_F77=no
18747 archive_expsym_cmds_F77=
18748 export_dynamic_flag_spec_F77=
18749 hardcode_direct_F77=no
18750 hardcode_libdir_flag_spec_F77=
18751 hardcode_libdir_flag_spec_ld_F77=
18752 hardcode_libdir_separator_F77=
18753 hardcode_minus_L_F77=no
18754 hardcode_automatic_F77=no
18756 module_expsym_cmds_F77=
18757 link_all_deplibs_F77=unknown
18758 old_archive_cmds_F77=$old_archive_cmds
18759 no_undefined_flag_F77=
18760 whole_archive_flag_spec_F77=
18761 enable_shared_with_static_runtimes_F77=no
18763 # Source file extension for f77 test sources.
18766 # Object file extension for compiled f77 test sources.
18770 # Code to be used in simple compile tests
18771 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18773 # Code to be used in simple link tests
18774 lt_simple_link_test_code=" program t\n end\n"
18776 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18778 # If no C compiler was specified, use CC.
18781 # Allow CC to be a program name with arguments.
18785 # Allow CC to be a program name with arguments.
18790 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18792 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18793 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18794 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18795 echo "${ECHO_T}$can_build_shared" >&6
18797 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18798 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18799 test "$can_build_shared" = "no" && enable_shared=no
18801 # On AIX, shared libraries and static libraries use the same namespace, and
18802 # are all built from PIC.
18805 test "$enable_shared" = yes && enable_static=no
18806 if test -n "$RANLIB"; then
18807 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18808 postinstall_cmds='$RANLIB $lib'
18812 test "$enable_shared" = yes && enable_static=no
18815 echo "$as_me:$LINENO: result: $enable_shared" >&5
18816 echo "${ECHO_T}$enable_shared" >&6
18818 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18819 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18820 # Make sure either enable_shared or enable_static is yes.
18821 test "$enable_shared" = yes || enable_static=yes
18822 echo "$as_me:$LINENO: result: $enable_static" >&5
18823 echo "${ECHO_T}$enable_static" >&6
18825 test "$ld_shlibs_F77" = no && can_build_shared=no
18830 lt_prog_compiler_wl_F77=
18831 lt_prog_compiler_pic_F77=
18832 lt_prog_compiler_static_F77=
18834 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18837 if test "$GCC" = yes; then
18838 lt_prog_compiler_wl_F77='-Wl,'
18839 lt_prog_compiler_static_F77='-static'
18843 # All AIX code is PIC.
18844 if test "$host_cpu" = ia64; then
18845 # AIX 5 now supports IA64 processor
18846 lt_prog_compiler_static_F77='-Bstatic'
18851 # FIXME: we need at least 68020 code to build shared libraries, but
18852 # adding the `-m68020' flag to GCC prevents building anything better,
18854 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18857 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18858 # PIC is the default for these OSes.
18861 mingw* | pw32* | os2*)
18862 # This hack is so that the source file can tell whether it is being
18863 # built for inclusion in a dll (and should export symbols for example).
18864 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18867 darwin* | rhapsody*)
18868 # PIC is the default on this platform
18869 # Common symbols not allowed in MH_DYLIB files
18870 lt_prog_compiler_pic_F77='-fno-common'
18874 # Just because we use GCC doesn't mean we suddenly get shared libraries
18875 # on systems that don't support them.
18876 lt_prog_compiler_can_build_shared_F77=no
18881 if test -d /usr/nec; then
18882 lt_prog_compiler_pic_F77=-Kconform_pic
18887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18888 # not for PA HP-UX.
18889 case "$host_cpu" in
18894 lt_prog_compiler_pic_F77='-fPIC'
18900 lt_prog_compiler_pic_F77='-fPIC'
18904 # PORTME Check for flag to pass linker flags through the system compiler.
18907 lt_prog_compiler_wl_F77='-Wl,'
18908 if test "$host_cpu" = ia64; then
18909 # AIX 5 now supports IA64 processor
18910 lt_prog_compiler_static_F77='-Bstatic'
18912 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18916 # PIC is the default on this platform
18917 # Common symbols not allowed in MH_DYLIB files
18918 case "$cc_basename" in
18920 lt_prog_compiler_pic_F77='-qnocommon'
18921 lt_prog_compiler_wl_F77='-Wl,'
18926 mingw* | pw32* | os2*)
18927 # This hack is so that the source file can tell whether it is being
18928 # built for inclusion in a dll (and should export symbols for example).
18929 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18932 hpux9* | hpux10* | hpux11*)
18933 lt_prog_compiler_wl_F77='-Wl,'
18934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18935 # not for PA HP-UX.
18936 case "$host_cpu" in
18941 lt_prog_compiler_pic_F77='+Z'
18944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18945 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18948 irix5* | irix6* | nonstopux*)
18949 lt_prog_compiler_wl_F77='-Wl,'
18950 # PIC (with -KPIC) is the default.
18951 lt_prog_compiler_static_F77='-non_shared'
18955 lt_prog_compiler_pic_F77='-KPIC'
18956 lt_prog_compiler_static_F77='-Bstatic'
18962 lt_prog_compiler_wl_F77='-Wl,'
18963 lt_prog_compiler_pic_F77='-KPIC'
18964 lt_prog_compiler_static_F77='-static'
18967 lt_prog_compiler_wl_F77='-Wl,'
18968 # All Alpha code is PIC.
18969 lt_prog_compiler_static_F77='-non_shared'
18974 osf3* | osf4* | osf5*)
18975 lt_prog_compiler_wl_F77='-Wl,'
18976 # All OSF/1 code is PIC.
18977 lt_prog_compiler_static_F77='-non_shared'
18981 lt_prog_compiler_pic_F77='-Kpic'
18982 lt_prog_compiler_static_F77='-dn'
18986 lt_prog_compiler_wl_F77='-Wl,'
18987 lt_prog_compiler_pic_F77='-KPIC'
18988 lt_prog_compiler_static_F77='-Bstatic'
18992 lt_prog_compiler_wl_F77='-Qoption ld '
18993 lt_prog_compiler_pic_F77='-PIC'
18994 lt_prog_compiler_static_F77='-Bstatic'
18997 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18998 lt_prog_compiler_wl_F77='-Wl,'
18999 lt_prog_compiler_pic_F77='-KPIC'
19000 lt_prog_compiler_static_F77='-Bstatic'
19004 if test -d /usr/nec ;then
19005 lt_prog_compiler_pic_F77='-Kconform_pic'
19006 lt_prog_compiler_static_F77='-Bstatic'
19011 lt_prog_compiler_pic_F77='-pic'
19012 lt_prog_compiler_static_F77='-Bstatic'
19016 lt_prog_compiler_can_build_shared_F77=no
19021 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19022 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19025 # Check to make sure the PIC flag actually works.
19027 if test -n "$lt_prog_compiler_pic_F77"; then
19029 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19030 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19031 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19034 lt_prog_compiler_pic_works_F77=no
19035 ac_outfile=conftest.$ac_objext
19036 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19037 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19038 # Insert the option either (1) after the last *FLAGS variable, or
19039 # (2) before a word containing "conftest.", or (3) at the end.
19040 # Note that $ac_compile itself does not contain backslashes and begins
19041 # with a dollar sign (not a hyphen), so the echo should work correctly.
19042 # The option is referenced via a variable to avoid confusing sed.
19043 lt_compile=`echo "$ac_compile" | $SED \
19044 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19046 -e 's:$: $lt_compiler_flag:'`
19047 (eval echo "\"\$as_me:19048: $lt_compile\"" >&5)
19048 (eval "$lt_compile" 2>conftest.err)
19050 cat conftest.err >&5
19051 echo "$as_me:19052: \$? = $ac_status" >&5
19052 if (exit $ac_status) && test -s "$ac_outfile"; then
19053 # The compiler can only warn and ignore the option if not recognized
19054 # So say no if there are warnings
19055 if test ! -s conftest.err; then
19056 lt_prog_compiler_pic_works_F77=yes
19062 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19063 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19065 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19066 case $lt_prog_compiler_pic_F77 in
19068 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19071 lt_prog_compiler_pic_F77=
19072 lt_prog_compiler_can_build_shared_F77=no
19077 # For platforms which do not support PIC, -DPIC is meaningless:
19079 lt_prog_compiler_pic_F77=
19082 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19086 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19087 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19088 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 lt_cv_prog_compiler_c_o_F77=no
19092 $rm -r conftest 2>/dev/null
19096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19098 lt_compiler_flag="-o out/conftest2.$ac_objext"
19099 # Insert the option either (1) after the last *FLAGS variable, or
19100 # (2) before a word containing "conftest.", or (3) at the end.
19101 # Note that $ac_compile itself does not contain backslashes and begins
19102 # with a dollar sign (not a hyphen), so the echo should work correctly.
19103 lt_compile=`echo "$ac_compile" | $SED \
19104 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19106 -e 's:$: $lt_compiler_flag:'`
19107 (eval echo "\"\$as_me:19108: $lt_compile\"" >&5)
19108 (eval "$lt_compile" 2>out/conftest.err)
19110 cat out/conftest.err >&5
19111 echo "$as_me:19112: \$? = $ac_status" >&5
19112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19114 # The compiler can only warn and ignore the option if not recognized
19115 # So say no if there are warnings
19116 if test ! -s out/conftest.err; then
19117 lt_cv_prog_compiler_c_o_F77=yes
19122 # SGI C++ compiler will create directory out/ii_files/ for
19123 # template instantiation
19124 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19125 $rm out/* && rmdir out
19131 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19132 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19135 hard_links="nottested"
19136 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19137 # do not overwrite the value of need_locks provided by the user
19138 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19139 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19144 ln conftest.a conftest.b 2>&5 || hard_links=no
19145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19146 echo "$as_me:$LINENO: result: $hard_links" >&5
19147 echo "${ECHO_T}$hard_links" >&6
19148 if test "$hard_links" = no; then
19149 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19150 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19157 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19158 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19161 allow_undefined_flag_F77=
19162 enable_shared_with_static_runtimes_F77=no
19164 archive_expsym_cmds_F77=
19165 old_archive_From_new_cmds_F77=
19166 old_archive_from_expsyms_cmds_F77=
19167 export_dynamic_flag_spec_F77=
19168 whole_archive_flag_spec_F77=
19169 thread_safe_flag_spec_F77=
19170 hardcode_libdir_flag_spec_F77=
19171 hardcode_libdir_flag_spec_ld_F77=
19172 hardcode_libdir_separator_F77=
19173 hardcode_direct_F77=no
19174 hardcode_minus_L_F77=no
19175 hardcode_shlibpath_var_F77=unsupported
19176 link_all_deplibs_F77=unknown
19177 hardcode_automatic_F77=no
19179 module_expsym_cmds_F77=
19180 always_export_symbols_F77=no
19181 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19182 # include_expsyms should be a list of space-separated symbols to be *always*
19183 # included in the symbol list
19184 include_expsyms_F77=
19185 # exclude_expsyms can be an extended regexp of symbols to exclude
19186 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19187 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19188 # as well as any symbol that contains `d'.
19189 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19191 # platforms (ab)use it in PIC code, but their linkers get confused if
19192 # the symbol is explicitly referenced. Since portable code cannot
19193 # rely on this symbol name, it's probably fine to never include it in
19194 # preloaded symbol tables.
19195 extract_expsyms_cmds=
19198 cygwin* | mingw* | pw32*)
19199 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19200 # When not using gcc, we currently assume that we are using
19201 # Microsoft Visual C++.
19202 if test "$GCC" != yes; then
19212 if test "$with_gnu_ld" = yes; then
19213 # If archive_cmds runs LD, not CC, wlarc should be empty
19216 # See if GNU ld supports shared libraries.
19218 aix3* | aix4* | aix5*)
19219 # On AIX/PPC, the GNU linker is very broken
19220 if test "$host_cpu" != ia64; then
19224 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19225 *** to be unable to reliably create shared libraries on AIX.
19226 *** Therefore, libtool is disabling shared libraries support. If you
19227 *** really care for shared libraries, you may want to modify your PATH
19228 *** so that a non-GNU linker is found, and then restart.
19235 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)'
19236 hardcode_libdir_flag_spec_F77='-L$libdir'
19237 hardcode_minus_L_F77=yes
19239 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19240 # that the semantics of dynamic libraries on AmigaOS, at least up
19241 # to version 4, is to share data among multiple programs linked
19242 # with the same dynamic library. Since this doesn't match the
19243 # behavior of shared libraries on other platforms, we can't use
19249 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19250 allow_undefined_flag_F77=unsupported
19251 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19252 # support --undefined. This deserves some investigation. FIXME
19253 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19259 cygwin* | mingw* | pw32*)
19260 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19261 # as there is no search path for DLLs.
19262 hardcode_libdir_flag_spec_F77='-L$libdir'
19263 allow_undefined_flag_F77=unsupported
19264 always_export_symbols_F77=no
19265 enable_shared_with_static_runtimes_F77=yes
19266 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19268 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19269 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19270 # If the export-symbols file already is a .def file (1st line
19271 # is EXPORTS), use it as is; otherwise, prepend...
19272 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19273 cp $export_symbols $output_objdir/$soname.def;
19275 echo EXPORTS > $output_objdir/$soname.def;
19276 cat $export_symbols >> $output_objdir/$soname.def;
19278 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19285 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19286 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19289 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19290 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19295 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19299 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19300 *** create shared libraries on Solaris systems. Therefore, libtool
19301 *** is disabling shared libraries support. We urge you to upgrade GNU
19302 *** binutils to release 2.9.1 or newer. Another option is to modify
19303 *** your PATH or compiler configuration so that the native linker is
19304 *** used, and then restart.
19307 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19316 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19318 hardcode_direct_F77=yes
19319 hardcode_shlibpath_var_F77=no
19323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19324 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19325 archive_cmds_F77="$tmp_archive_cmds"
19326 supports_anon_versioning=no
19327 case `$LD -v 2>/dev/null` in
19328 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19330 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19331 *\ 2.11.*) ;; # other 2.11 versions
19332 *) supports_anon_versioning=yes ;;
19334 if test $supports_anon_versioning = yes; then
19335 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19336 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19337 $echo "local: *; };" >> $output_objdir/$libname.ver~
19338 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19340 archive_expsym_cmds_F77="$tmp_archive_cmds"
19348 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19349 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19350 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19357 if test "$ld_shlibs_F77" = yes; then
19358 runpath_var=LD_RUN_PATH
19359 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19360 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19361 # ancient GNU ld didn't support --whole-archive et. al.
19362 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19363 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19365 whole_archive_flag_spec_F77=
19369 # PORTME fill in a description of your system's linker (not GNU ld)
19372 allow_undefined_flag_F77=unsupported
19373 always_export_symbols_F77=yes
19374 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'
19375 # Note: this linker hardcodes the directories in LIBPATH if there
19376 # are no directories specified by -L.
19377 hardcode_minus_L_F77=yes
19378 if test "$GCC" = yes && test -z "$link_static_flag"; then
19379 # Neither direct hardcoding nor static linking is supported with a
19381 hardcode_direct_F77=unsupported
19386 if test "$host_cpu" = ia64; then
19387 # On IA64, the linker does run time linking by default, so we don't
19388 # have to do anything special.
19389 aix_use_runtimelinking=no
19390 exp_sym_flag='-Bexport'
19393 # If we're using GNU nm, then we don't want the "-C" option.
19394 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19395 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19396 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'
19398 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'
19400 aix_use_runtimelinking=no
19402 # Test if we are trying to use run time linking or normal
19403 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19404 # need to do runtime linking.
19405 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19406 for ld_flag in $LDFLAGS; do
19407 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19408 aix_use_runtimelinking=yes
19414 exp_sym_flag='-bexport'
19415 no_entry_flag='-bnoentry'
19418 # When large executables or shared objects are built, AIX ld can
19419 # have problems creating the table of contents. If linking a library
19420 # or program results in "error TOC overflow" add -mminimal-toc to
19421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19424 archive_cmds_F77=''
19425 hardcode_direct_F77=yes
19426 hardcode_libdir_separator_F77=':'
19427 link_all_deplibs_F77=yes
19429 if test "$GCC" = yes; then
19430 case $host_os in aix4.012|aix4.012.*)
19431 # We only want to do this on AIX 4.2 and lower, the check
19432 # below for broken collect2 doesn't work under 4.3+
19433 collect2name=`${CC} -print-prog-name=collect2`
19434 if test -f "$collect2name" && \
19435 strings "$collect2name" | grep resolve_lib_name >/dev/null
19437 # We have reworked collect2
19438 hardcode_direct_F77=yes
19440 # We have old collect2
19441 hardcode_direct_F77=unsupported
19442 # It fails to find uninstalled libraries when the uninstalled
19443 # path is not listed in the libpath. Setting hardcode_minus_L
19444 # to unsupported forces relinking
19445 hardcode_minus_L_F77=yes
19446 hardcode_libdir_flag_spec_F77='-L$libdir'
19447 hardcode_libdir_separator_F77=
19450 shared_flag='-shared'
19453 if test "$host_cpu" = ia64; then
19454 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19455 # chokes on -Wl,-G. The following line is correct:
19458 if test "$aix_use_runtimelinking" = yes; then
19459 shared_flag='${wl}-G'
19461 shared_flag='${wl}-bM:SRE'
19466 # It seems that -bexpall does not export symbols beginning with
19467 # underscore (_), so it is better to generate a list of symbols to export.
19468 always_export_symbols_F77=yes
19469 if test "$aix_use_runtimelinking" = yes; then
19470 # Warning - without using the other runtime loading flags (-brtl),
19471 # -berok will link without error, but may produce a broken library.
19472 allow_undefined_flag_F77='-berok'
19473 # Determine the default libpath from the value encoded in an empty executable.
19474 cat >conftest.$ac_ext <<_ACEOF
19479 rm -f conftest.$ac_objext conftest$ac_exeext
19480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19481 (eval $ac_link) 2>conftest.er1
19483 grep -v '^ *+' conftest.er1 >conftest.err
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
19488 { ac_try='test -z "$ac_f77_werror_flag"
19489 || test ! -s conftest.err'
19490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491 (eval $ac_try) 2>&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; } &&
19495 { ac_try='test -s conftest$ac_exeext'
19496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497 (eval $ac_try) 2>&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; }; then
19502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19504 # Check for a 64-bit object if we didn't find anything.
19505 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; }
19508 echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19512 rm -f conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
19514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19516 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19517 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"
19519 if test "$host_cpu" = ia64; then
19520 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19521 allow_undefined_flag_F77="-z nodefs"
19522 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"
19524 # Determine the default libpath from the value encoded in an empty executable.
19525 cat >conftest.$ac_ext <<_ACEOF
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19532 (eval $ac_link) 2>conftest.er1
19534 grep -v '^ *+' conftest.er1 >conftest.err
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } &&
19539 { ac_try='test -z "$ac_f77_werror_flag"
19540 || test ! -s conftest.err'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try='test -s conftest$ac_exeext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19553 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19555 # Check for a 64-bit object if we didn't find anything.
19556 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; }
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19563 rm -f conftest.err conftest.$ac_objext \
19564 conftest$ac_exeext conftest.$ac_ext
19565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19567 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19568 # Warning - without using the other run time loading flags,
19569 # -berok will link without error, but may produce a broken library.
19570 no_undefined_flag_F77=' ${wl}-bernotok'
19571 allow_undefined_flag_F77=' ${wl}-berok'
19572 # -bexpall does not export symbols beginning with underscore (_)
19573 always_export_symbols_F77=yes
19574 # Exported symbols can be pulled into shared objects from archives
19575 whole_archive_flag_spec_F77=' '
19576 archive_cmds_need_lc_F77=yes
19577 # This is similar to how AIX traditionally builds it's shared libraries.
19578 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'
19584 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)'
19585 hardcode_libdir_flag_spec_F77='-L$libdir'
19586 hardcode_minus_L_F77=yes
19587 # see comment about different semantics on the GNU ld section
19592 export_dynamic_flag_spec_F77=-rdynamic
19595 cygwin* | mingw* | pw32*)
19596 # When not using gcc, we currently assume that we are using
19597 # Microsoft Visual C++.
19598 # hardcode_libdir_flag_spec is actually meaningless, as there is
19599 # no search path for DLLs.
19600 hardcode_libdir_flag_spec_F77=' '
19601 allow_undefined_flag_F77=unsupported
19602 # Tell ltmain to make .lib files, not .a files.
19604 # Tell ltmain to make .dll files, not .so files.
19606 # FIXME: Setting linknames here is a bad hack.
19607 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19608 # The linker will automatically build a .lib file if we build a DLL.
19609 old_archive_From_new_cmds_F77='true'
19610 # FIXME: Should let the user specify the lib program.
19611 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19612 fix_srcfile_path='`cygpath -w "$srcfile"`'
19613 enable_shared_with_static_runtimes_F77=yes
19616 darwin* | rhapsody*)
19618 rhapsody* | darwin1.[012])
19619 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19622 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19623 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19625 case ${MACOSX_DEPLOYMENT_TARGET} in
19627 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19630 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19636 archive_cmds_need_lc_F77=no
19637 hardcode_direct_F77=no
19638 hardcode_automatic_F77=yes
19639 hardcode_shlibpath_var_F77=unsupported
19640 whole_archive_flag_spec_F77=''
19641 link_all_deplibs_F77=yes
19642 if test "$GCC" = yes ; then
19643 output_verbose_link_cmd='echo'
19644 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19645 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19646 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19647 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}'
19648 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}'
19650 case "$cc_basename" in
19652 output_verbose_link_cmd='echo'
19653 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19654 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19655 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19656 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}'
19657 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}'
19667 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19668 hardcode_libdir_flag_spec_F77='-L$libdir'
19669 hardcode_shlibpath_var_F77=no
19676 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19677 # support. Future versions do this automatically, but an explicit c++rt0.o
19678 # does not break anything, and helps significantly (at the cost of a little
19681 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19682 hardcode_libdir_flag_spec_F77='-R$libdir'
19683 hardcode_direct_F77=yes
19684 hardcode_shlibpath_var_F77=no
19687 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19689 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19690 hardcode_direct_F77=yes
19691 hardcode_minus_L_F77=yes
19692 hardcode_shlibpath_var_F77=no
19695 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19696 freebsd* | kfreebsd*-gnu)
19697 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19698 hardcode_libdir_flag_spec_F77='-R$libdir'
19699 hardcode_direct_F77=yes
19700 hardcode_shlibpath_var_F77=no
19704 if test "$GCC" = yes; then
19705 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'
19707 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'
19709 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19710 hardcode_libdir_separator_F77=:
19711 hardcode_direct_F77=yes
19713 # hardcode_minus_L: Not really in the search PATH,
19714 # but as the default location of the library.
19715 hardcode_minus_L_F77=yes
19716 export_dynamic_flag_spec_F77='${wl}-E'
19720 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19721 case "$host_cpu" in
19723 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19726 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19730 case "$host_cpu" in
19732 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19735 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19739 if test "$with_gnu_ld" = no; then
19740 case "$host_cpu" in
19742 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19743 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19744 hardcode_libdir_separator_F77=:
19745 hardcode_direct_F77=no
19746 hardcode_shlibpath_var_F77=no
19749 hardcode_libdir_flag_spec_F77='-L$libdir'
19750 hardcode_direct_F77=no
19751 hardcode_shlibpath_var_F77=no
19753 # hardcode_minus_L: Not really in the search PATH,
19754 # but as the default location of the library.
19755 hardcode_minus_L_F77=yes
19758 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19759 hardcode_libdir_separator_F77=:
19760 hardcode_direct_F77=yes
19761 export_dynamic_flag_spec_F77='${wl}-E'
19763 # hardcode_minus_L: Not really in the search PATH,
19764 # but as the default location of the library.
19765 hardcode_minus_L_F77=yes
19771 irix5* | irix6* | nonstopux*)
19772 if test "$GCC" = yes; then
19773 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'
19775 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'
19776 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19778 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19779 hardcode_libdir_separator_F77=:
19780 link_all_deplibs_F77=yes
19784 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19785 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19787 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19789 hardcode_libdir_flag_spec_F77='-R$libdir'
19790 hardcode_direct_F77=yes
19791 hardcode_shlibpath_var_F77=no
19795 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19796 hardcode_direct_F77=yes
19797 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19798 hardcode_libdir_separator_F77=:
19799 hardcode_shlibpath_var_F77=no
19803 hardcode_direct_F77=yes
19804 hardcode_shlibpath_var_F77=no
19805 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19806 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19807 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19808 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19809 export_dynamic_flag_spec_F77='${wl}-E'
19812 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19813 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19814 hardcode_libdir_flag_spec_F77='-R$libdir'
19817 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19818 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19825 hardcode_libdir_flag_spec_F77='-L$libdir'
19826 hardcode_minus_L_F77=yes
19827 allow_undefined_flag_F77=unsupported
19828 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'
19829 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19833 if test "$GCC" = yes; then
19834 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19835 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'
19837 allow_undefined_flag_F77=' -expect_unresolved \*'
19838 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'
19840 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19841 hardcode_libdir_separator_F77=:
19844 osf4* | osf5*) # as osf3* with the addition of -msym flag
19845 if test "$GCC" = yes; then
19846 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19847 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'
19848 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19850 allow_undefined_flag_F77=' -expect_unresolved \*'
19851 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'
19852 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~
19853 $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'
19855 # Both c and cxx compiler support -rpath directly
19856 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19858 hardcode_libdir_separator_F77=:
19862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19863 hardcode_shlibpath_var_F77=no
19864 export_dynamic_flag_spec_F77='${wl}-Bexport'
19865 runpath_var=LD_RUN_PATH
19866 hardcode_runpath_var=yes
19870 no_undefined_flag_F77=' -z text'
19871 if test "$GCC" = yes; then
19872 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19873 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19874 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19876 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19877 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19878 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19880 hardcode_libdir_flag_spec_F77='-R$libdir'
19881 hardcode_shlibpath_var_F77=no
19883 solaris2.[0-5] | solaris2.[0-5].*) ;;
19884 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19885 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19887 link_all_deplibs_F77=yes
19891 if test "x$host_vendor" = xsequent; then
19892 # Use $CC to link under sequent, because it throws in some extra .o
19893 # files that make .init and .fini sections work.
19894 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19896 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19898 hardcode_libdir_flag_spec_F77='-L$libdir'
19899 hardcode_direct_F77=yes
19900 hardcode_minus_L_F77=yes
19901 hardcode_shlibpath_var_F77=no
19905 case $host_vendor in
19907 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19908 hardcode_direct_F77=yes # is this really true???
19911 ## LD is ld it makes a PLAMLIB
19912 ## CC just makes a GrossModule.
19913 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19914 reload_cmds_F77='$CC -r -o $output$reload_objs'
19915 hardcode_direct_F77=no
19918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19919 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19922 runpath_var='LD_RUN_PATH'
19923 hardcode_shlibpath_var_F77=no
19927 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19928 hardcode_shlibpath_var_F77=no
19929 export_dynamic_flag_spec_F77='-Bexport'
19933 if test -d /usr/nec; then
19934 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19935 hardcode_shlibpath_var_F77=no
19936 runpath_var=LD_RUN_PATH
19937 hardcode_runpath_var=yes
19943 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19944 hardcode_direct_F77=yes
19945 hardcode_minus_L_F77=no
19946 hardcode_shlibpath_var_F77=no
19947 hardcode_runpath_var=yes
19948 runpath_var=LD_RUN_PATH
19951 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19952 no_undefined_flag_F77='${wl}-z ${wl}text'
19953 if test "$GCC" = yes; then
19954 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19956 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19958 runpath_var='LD_RUN_PATH'
19959 hardcode_shlibpath_var_F77=no
19963 no_undefined_flag_F77=' -z text'
19964 # $CC -shared without GNU ld will not create a library from C++
19965 # object files and a static libstdc++, better avoid it by now
19966 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19967 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19968 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19969 hardcode_libdir_flag_spec_F77=
19970 hardcode_shlibpath_var_F77=no
19971 runpath_var='LD_RUN_PATH'
19975 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19976 hardcode_libdir_flag_spec_F77='-L$libdir'
19977 hardcode_shlibpath_var_F77=no
19986 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19987 echo "${ECHO_T}$ld_shlibs_F77" >&6
19988 test "$ld_shlibs_F77" = no && can_build_shared=no
19990 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19991 if test "$GCC" = yes; then
19992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19996 # Do we need to explicitly link libc?
19998 case "x$archive_cmds_need_lc_F77" in
20000 # Assume -lc should be added
20001 archive_cmds_need_lc_F77=yes
20003 if test "$enable_shared" = yes && test "$GCC" = yes; then
20004 case $archive_cmds_F77 in
20006 # FIXME: we may have to deal with multi-command sequences.
20009 # Test whether the compiler implicitly links with -lc since on some
20010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20011 # to ld, don't add -lc before -lgcc.
20012 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20013 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20018 (eval $ac_compile) 2>&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } 2>conftest.err; then
20024 libobjs=conftest.$ac_objext
20026 wl=$lt_prog_compiler_wl_F77
20032 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20033 allow_undefined_flag_F77=
20034 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20035 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }
20040 archive_cmds_need_lc_F77=no
20042 archive_cmds_need_lc_F77=yes
20044 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20046 cat conftest.err 1>&5
20049 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20050 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20057 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20058 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20059 library_names_spec=
20060 libname_spec='lib$name'
20064 postuninstall_cmds=
20068 shlibpath_overrides_runpath=unknown
20070 dynamic_linker="$host_os ld.so"
20071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20072 if test "$GCC" = yes; then
20073 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20074 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20075 # if the path contains ";" then we assume it to be the separator
20076 # otherwise default to the standard path separator (i.e. ":") - it is
20077 # assumed that no part of a normal pathname contains ";" but that should
20078 # okay in the real world where ";" in dirpaths is itself problematic.
20079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20086 need_lib_prefix=unknown
20087 hardcode_into_libs=no
20089 # when you set need_version to no, make sure it does not cause -set_version
20090 # flags to be left without arguments
20091 need_version=unknown
20096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20097 shlibpath_var=LIBPATH
20099 # AIX 3 has no versioning support, so we append a major version to the name.
20100 soname_spec='${libname}${release}${shared_ext}$major'
20107 hardcode_into_libs=yes
20108 if test "$host_cpu" = ia64; then
20109 # AIX 5 supports IA64
20110 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20111 shlibpath_var=LD_LIBRARY_PATH
20113 # With GCC up to 2.95.x, collect2 would create an import file
20114 # for dependence libraries. The import file would start with
20115 # the line `#! .'. This would cause the generated library to
20116 # depend on `.', always an invalid library. This was fixed in
20117 # development snapshots of GCC prior to 3.0.
20119 aix4 | aix4.[01] | aix4.[01].*)
20120 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20122 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20125 can_build_shared=no
20129 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20130 # soname into executable. Probably we can add versioning support to
20131 # collect2, so additional links can be useful in future.
20132 if test "$aix_use_runtimelinking" = yes; then
20133 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20134 # instead of lib<name>.a to let people know that these are not
20135 # typical AIX shared libraries.
20136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20138 # We preserve .a as extension for shared libraries through AIX4.2
20139 # and later when we are not doing run time linking.
20140 library_names_spec='${libname}${release}.a $libname.a'
20141 soname_spec='${libname}${release}${shared_ext}$major'
20143 shlibpath_var=LIBPATH
20148 library_names_spec='$libname.ixlibrary $libname.a'
20149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20150 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'
20154 library_names_spec='${libname}${shared_ext}'
20155 dynamic_linker="$host_os ld.so"
20156 shlibpath_var=LIBRARY_PATH
20162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20163 soname_spec='${libname}${release}${shared_ext}$major'
20164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20165 shlibpath_var=LD_LIBRARY_PATH
20166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20168 # the default ld.so.conf also contains /usr/contrib/lib and
20169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20170 # libtool to hard-code these into programs
20173 cygwin* | mingw* | pw32*)
20174 version_type=windows
20179 case $GCC,$host_os in
20180 yes,cygwin* | yes,mingw* | yes,pw32*)
20181 library_names_spec='$libname.dll.a'
20182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20183 postinstall_cmds='base_file=`basename \${file}`~
20184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20185 dldir=$destdir/`dirname \$dlpath`~
20186 test -d \$dldir || mkdir -p \$dldir~
20187 $install_prog $dir/$dlname \$dldir/$dlname'
20188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20189 dlpath=$dir/\$dldll~
20191 shlibpath_overrides_runpath=yes
20195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20196 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20197 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20200 # MinGW DLLs use traditional 'lib' prefix
20201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20203 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20204 # It is most probably a Windows format PATH printed by
20205 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20206 # path with ; separators, and with drive letters. We can handle the
20207 # drive letters (cygwin fileutils understands them), so leave them,
20208 # especially as we might pass files found there to a mingw objdump,
20209 # which wouldn't understand a cygwinified path. Ahh.
20210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20216 # pw32 DLLs use 'pw' prefix rather than 'lib'
20217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20226 dynamic_linker='Win32 ld.exe'
20227 # FIXME: first we should search . and the directory the executable is in
20231 darwin* | rhapsody*)
20232 dynamic_linker="$host_os dyld"
20233 version_type=darwin
20236 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20237 soname_spec='${libname}${release}${major}$shared_ext'
20238 shlibpath_overrides_runpath=yes
20239 shlibpath_var=DYLD_LIBRARY_PATH
20240 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20241 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20242 if test "$GCC" = yes; then
20243 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"`
20245 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20247 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20255 soname_spec='${libname}${release}${shared_ext}$major'
20256 shlibpath_var=LD_LIBRARY_PATH
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20268 soname_spec='${libname}${release}${shared_ext}$major'
20269 shlibpath_var=LD_LIBRARY_PATH
20270 shlibpath_overrides_runpath=no
20271 hardcode_into_libs=yes
20272 dynamic_linker='GNU ld.so'
20276 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20277 version_type=freebsd-$objformat
20278 case $version_type in
20280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20289 shlibpath_var=LD_LIBRARY_PATH
20292 shlibpath_overrides_runpath=yes
20294 freebsd3.01* | freebsdelf3.01*)
20295 shlibpath_overrides_runpath=yes
20296 hardcode_into_libs=yes
20299 shlibpath_overrides_runpath=no
20300 hardcode_into_libs=yes
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20310 soname_spec='${libname}${release}${shared_ext}$major'
20311 shlibpath_var=LD_LIBRARY_PATH
20312 hardcode_into_libs=yes
20315 hpux9* | hpux10* | hpux11*)
20316 # Give a soname corresponding to the major version so that dld.sl refuses to
20317 # link against other versions.
20321 case "$host_cpu" in
20324 hardcode_into_libs=yes
20325 dynamic_linker="$host_os dld.so"
20326 shlibpath_var=LD_LIBRARY_PATH
20327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329 soname_spec='${libname}${release}${shared_ext}$major'
20330 if test "X$HPUX_IA64_MODE" = X32; then
20331 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20339 hardcode_into_libs=yes
20340 dynamic_linker="$host_os dld.sl"
20341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20350 dynamic_linker="$host_os dld.sl"
20351 shlibpath_var=SHLIB_PATH
20352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 soname_spec='${libname}${release}${shared_ext}$major'
20357 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20358 postinstall_cmds='chmod 555 $lib'
20361 irix5* | irix6* | nonstopux*)
20363 nonstopux*) version_type=nonstopux ;;
20365 if test "$lt_cv_prog_gnu_ld" = yes; then
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20376 irix5* | nonstopux*)
20377 libsuff= shlibsuff=
20380 case $LD in # libtool.m4 will add one of these switches to LD
20381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20382 libsuff= shlibsuff= libmagic=32-bit;;
20383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20384 libsuff=32 shlibsuff=N32 libmagic=N32;;
20385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20387 *) libsuff= shlibsuff= libmagic=never-match;;
20391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20392 shlibpath_overrides_runpath=no
20393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20395 hardcode_into_libs=yes
20398 # No shared lib support for Linux oldld, aout, or coff.
20399 linux*oldld* | linux*aout* | linux*coff*)
20403 # This must be Linux ELF.
20408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20409 soname_spec='${libname}${release}${shared_ext}$major'
20410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 shlibpath_overrides_runpath=no
20413 # This implies no fast_install, which is unacceptable.
20414 # Some rework will be needed to allow for fast_install
20415 # before this can be enabled.
20416 hardcode_into_libs=yes
20418 # Append ld.so.conf contents to the search path
20419 if test -f /etc/ld.so.conf; then
20420 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20424 # We used to test for /lib/ld.so.1 and disable shared libraries on
20425 # powerpc, because MkLinux only supported shared libraries with the
20426 # GNU dynamic linker. Since this was broken with cross compilers,
20427 # most powerpc-linux boxes support dynamic linking these days and
20428 # people can always --disable-shared, the test was removed, and we
20429 # assume the GNU/Linux dynamic linker is in use.
20430 dynamic_linker='GNU/Linux ld.so'
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20438 soname_spec='${libname}${release}${shared_ext}$major'
20439 shlibpath_var=LD_LIBRARY_PATH
20440 shlibpath_overrides_runpath=no
20441 hardcode_into_libs=yes
20442 dynamic_linker='GNU ld.so'
20449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20452 dynamic_linker='NetBSD (a.out) ld.so'
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 dynamic_linker='NetBSD ld.elf_so'
20458 shlibpath_var=LD_LIBRARY_PATH
20459 shlibpath_overrides_runpath=yes
20460 hardcode_into_libs=yes
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466 shlibpath_var=LD_LIBRARY_PATH
20467 shlibpath_overrides_runpath=yes
20474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20475 soname_spec='${libname}${release}${shared_ext}$major'
20476 shlibpath_var=LD_LIBRARY_PATH
20477 shlibpath_overrides_runpath=yes
20484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20486 shlibpath_var=LD_LIBRARY_PATH
20487 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20489 openbsd2.[89] | openbsd2.[89].*)
20490 shlibpath_overrides_runpath=no
20493 shlibpath_overrides_runpath=yes
20497 shlibpath_overrides_runpath=yes
20502 libname_spec='$name'
20505 library_names_spec='$libname${shared_ext} $libname.a'
20506 dynamic_linker='OS/2 ld.exe'
20507 shlibpath_var=LIBPATH
20510 osf3* | osf4* | osf5*)
20514 soname_spec='${libname}${release}${shared_ext}$major'
20515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20516 shlibpath_var=LD_LIBRARY_PATH
20517 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20518 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20523 soname_spec='${libname}${release}${shared_ext}$major'
20524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525 shlibpath_var=LD_LIBRARY_PATH
20532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20533 soname_spec='${libname}${release}${shared_ext}$major'
20534 shlibpath_var=LD_LIBRARY_PATH
20535 shlibpath_overrides_runpath=yes
20536 hardcode_into_libs=yes
20537 # ldd complains unless libraries are executable
20538 postinstall_cmds='chmod +x $lib'
20543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20545 shlibpath_var=LD_LIBRARY_PATH
20546 shlibpath_overrides_runpath=yes
20547 if test "$with_gnu_ld" = yes; then
20553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20556 soname_spec='${libname}${release}${shared_ext}$major'
20557 shlibpath_var=LD_LIBRARY_PATH
20558 case $host_vendor in
20560 shlibpath_overrides_runpath=no
20562 export_dynamic_flag_spec='${wl}-Blargedynsym'
20563 runpath_var=LD_RUN_PATH
20571 shlibpath_overrides_runpath=no
20572 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20578 if test -d /usr/nec ;then
20580 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20581 soname_spec='$libname${shared_ext}.$major'
20582 shlibpath_var=LD_LIBRARY_PATH
20588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20589 soname_spec='${libname}${release}${shared_ext}$major'
20590 shlibpath_var=LD_LIBRARY_PATH
20597 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20598 echo "${ECHO_T}$dynamic_linker" >&6
20599 test "$dynamic_linker" = no && can_build_shared=no
20601 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20602 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20603 hardcode_action_F77=
20604 if test -n "$hardcode_libdir_flag_spec_F77" || \
20605 test -n "$runpath_var_F77" || \
20606 test "X$hardcode_automatic_F77" = "Xyes" ; then
20608 # We can hardcode non-existant directories.
20609 if test "$hardcode_direct_F77" != no &&
20610 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20611 # have to relink, otherwise we might link with an installed library
20612 # when we should be linking with a yet-to-be-installed one
20613 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20614 test "$hardcode_minus_L_F77" != no; then
20615 # Linking always hardcodes the temporary library directory.
20616 hardcode_action_F77=relink
20618 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20619 hardcode_action_F77=immediate
20622 # We cannot hardcode anything, or else we can only hardcode existing
20624 hardcode_action_F77=unsupported
20626 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20627 echo "${ECHO_T}$hardcode_action_F77" >&6
20629 if test "$hardcode_action_F77" = relink; then
20630 # Fast installation is not supported
20631 enable_fast_install=no
20632 elif test "$shlibpath_overrides_runpath" = yes ||
20633 test "$enable_shared" = no; then
20634 # Fast installation is not necessary
20635 enable_fast_install=needless
20640 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20641 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20642 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20645 echo "$as_me:$LINENO: result: yes" >&5
20646 echo "${ECHO_T}yes" >&6
20648 # FIXME - insert some real tests, host_os isn't really good enough
20651 if test -n "$STRIP" ; then
20652 striplib="$STRIP -x"
20653 echo "$as_me:$LINENO: result: yes" >&5
20654 echo "${ECHO_T}yes" >&6
20656 echo "$as_me:$LINENO: result: no" >&5
20657 echo "${ECHO_T}no" >&6
20661 echo "$as_me:$LINENO: result: no" >&5
20662 echo "${ECHO_T}no" >&6
20669 # The else clause should only fire when bootstrapping the
20670 # libtool distribution, otherwise you forgot to ship ltmain.sh
20671 # with your package, and you will get complaints that there are
20672 # no rules to generate ltmain.sh.
20673 if test -f "$ltmain"; then
20674 # See if we are running on zsh, and set the options which allow our commands through
20675 # without removal of \ escapes.
20676 if test -n "${ZSH_VERSION+set}" ; then
20677 setopt NO_GLOB_SUBST
20679 # Now quote all the things that may contain metacharacters while being
20680 # careful not to overquote the AC_SUBSTed values. We take copies of the
20681 # variables and quote the copies for generation of the libtool script.
20682 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20684 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20685 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20686 deplibs_check_method reload_flag reload_cmds need_locks \
20687 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20688 lt_cv_sys_global_symbol_to_c_name_address \
20689 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20690 old_postinstall_cmds old_postuninstall_cmds \
20694 lt_prog_compiler_wl_F77 \
20695 lt_prog_compiler_pic_F77 \
20696 lt_prog_compiler_static_F77 \
20697 lt_prog_compiler_no_builtin_flag_F77 \
20698 export_dynamic_flag_spec_F77 \
20699 thread_safe_flag_spec_F77 \
20700 whole_archive_flag_spec_F77 \
20701 enable_shared_with_static_runtimes_F77 \
20702 old_archive_cmds_F77 \
20703 old_archive_from_new_cmds_F77 \
20704 predep_objects_F77 \
20705 postdep_objects_F77 \
20708 compiler_lib_search_path_F77 \
20710 archive_expsym_cmds_F77 \
20711 postinstall_cmds_F77 \
20712 postuninstall_cmds_F77 \
20713 old_archive_from_expsyms_cmds_F77 \
20714 allow_undefined_flag_F77 \
20715 no_undefined_flag_F77 \
20716 export_symbols_cmds_F77 \
20717 hardcode_libdir_flag_spec_F77 \
20718 hardcode_libdir_flag_spec_ld_F77 \
20719 hardcode_libdir_separator_F77 \
20720 hardcode_automatic_F77 \
20722 module_expsym_cmds_F77 \
20723 lt_cv_prog_compiler_c_o_F77 \
20724 exclude_expsyms_F77 \
20725 include_expsyms_F77; do
20728 old_archive_cmds_F77 | \
20729 old_archive_from_new_cmds_F77 | \
20730 archive_cmds_F77 | \
20731 archive_expsym_cmds_F77 | \
20732 module_cmds_F77 | \
20733 module_expsym_cmds_F77 | \
20734 old_archive_from_expsyms_cmds_F77 | \
20735 export_symbols_cmds_F77 | \
20736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20737 postinstall_cmds | postuninstall_cmds | \
20738 old_postinstall_cmds | old_postuninstall_cmds | \
20739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20740 # Double-quote double-evaled strings.
20741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20750 *'\$0 --fallback-echo"')
20751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20757 cat <<__EOF__ >> "$cfgfile"
20758 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20762 # Shell to use when invoking shell scripts.
20765 # Whether or not to build shared libraries.
20766 build_libtool_libs=$enable_shared
20768 # Whether or not to build static libraries.
20769 build_old_libs=$enable_static
20771 # Whether or not to add -lc for building shared libraries.
20772 build_libtool_need_lc=$archive_cmds_need_lc_F77
20774 # Whether or not to disallow shared libs when runtime libs are static
20775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20777 # Whether or not to optimize for fast installation.
20778 fast_install=$enable_fast_install
20781 host_alias=$host_alias
20784 # An echo program that does not interpret backslashes.
20789 AR_FLAGS=$lt_AR_FLAGS
20794 # A language-specific compiler.
20795 CC=$lt_compiler_F77
20797 # Is the compiler the GNU C compiler?
20803 # The linker used to build libraries.
20806 # Whether we need hard or soft links.
20809 # A BSD-compatible nm program.
20812 # A symbol stripping program
20815 # Used to examine libraries when file_magic_cmd begins "file"
20816 MAGIC_CMD=$MAGIC_CMD
20818 # Used on cygwin: DLL creation program.
20821 # Used on cygwin: object dumper.
20824 # Used on cygwin: assembler.
20827 # The name of the directory that contains temporary libtool files.
20830 # How to create reloadable object files.
20831 reload_flag=$lt_reload_flag
20832 reload_cmds=$lt_reload_cmds
20834 # How to pass a linker flag through the compiler.
20835 wl=$lt_lt_prog_compiler_wl_F77
20837 # Object file suffix (normally "o").
20838 objext="$ac_objext"
20840 # Old archive suffix (normally "a").
20843 # Shared library suffix (normally ".so").
20844 shrext_cmds='$shrext_cmds'
20846 # Executable file suffix (normally "").
20849 # Additional compiler flags for building library objects.
20850 pic_flag=$lt_lt_prog_compiler_pic_F77
20853 # What is the maximum length of a command?
20854 max_cmd_len=$lt_cv_sys_max_cmd_len
20856 # Does compiler simultaneously support -c and -o options?
20857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20859 # Must we lock files when doing compilation ?
20860 need_locks=$lt_need_locks
20862 # Do we need the lib prefix for modules?
20863 need_lib_prefix=$need_lib_prefix
20865 # Do we need a version for libraries?
20866 need_version=$need_version
20868 # Whether dlopen is supported.
20869 dlopen_support=$enable_dlopen
20871 # Whether dlopen of programs is supported.
20872 dlopen_self=$enable_dlopen_self
20874 # Whether dlopen of statically linked programs is supported.
20875 dlopen_self_static=$enable_dlopen_self_static
20877 # Compiler flag to prevent dynamic linking.
20878 link_static_flag=$lt_lt_prog_compiler_static_F77
20880 # Compiler flag to turn off builtin functions.
20881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20883 # Compiler flag to allow reflexive dlopens.
20884 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20886 # Compiler flag to generate shared objects directly from archives.
20887 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20889 # Compiler flag to generate thread-safe objects.
20890 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20892 # Library versioning type.
20893 version_type=$version_type
20895 # Format of library name prefix.
20896 libname_spec=$lt_libname_spec
20898 # List of archive names. First name is the real one, the rest are links.
20899 # The last name is the one that the linker finds with -lNAME.
20900 library_names_spec=$lt_library_names_spec
20902 # The coded name of the library, if different from the real name.
20903 soname_spec=$lt_soname_spec
20905 # Commands used to build and install an old-style archive.
20907 old_archive_cmds=$lt_old_archive_cmds_F77
20908 old_postinstall_cmds=$lt_old_postinstall_cmds
20909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20911 # Create an old-style archive from a shared archive.
20912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20914 # Create a temporary old-style archive to link instead of a shared archive.
20915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20917 # Commands used to build and install a shared archive.
20918 archive_cmds=$lt_archive_cmds_F77
20919 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20920 postinstall_cmds=$lt_postinstall_cmds
20921 postuninstall_cmds=$lt_postuninstall_cmds
20923 # Commands used to build a loadable module (assumed same as above if empty)
20924 module_cmds=$lt_module_cmds_F77
20925 module_expsym_cmds=$lt_module_expsym_cmds_F77
20927 # Commands to strip libraries.
20928 old_striplib=$lt_old_striplib
20929 striplib=$lt_striplib
20931 # Dependencies to place before the objects being linked to create a
20933 predep_objects=$lt_predep_objects_F77
20935 # Dependencies to place after the objects being linked to create a
20937 postdep_objects=$lt_postdep_objects_F77
20939 # Dependencies to place before the objects being linked to create a
20941 predeps=$lt_predeps_F77
20943 # Dependencies to place after the objects being linked to create a
20945 postdeps=$lt_postdeps_F77
20947 # The library search path used internally by the compiler when linking
20948 # a shared library.
20949 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20951 # Method to check whether dependent libraries are shared objects.
20952 deplibs_check_method=$lt_deplibs_check_method
20954 # Command to use when deplibs_check_method == file_magic.
20955 file_magic_cmd=$lt_file_magic_cmd
20957 # Flag that allows shared libraries with undefined symbols to be built.
20958 allow_undefined_flag=$lt_allow_undefined_flag_F77
20960 # Flag that forces no undefined symbols.
20961 no_undefined_flag=$lt_no_undefined_flag_F77
20963 # Commands used to finish a libtool library installation in a directory.
20964 finish_cmds=$lt_finish_cmds
20966 # Same as above, but a single script fragment to be evaled but not shown.
20967 finish_eval=$lt_finish_eval
20969 # Take the output of nm and produce a listing of raw symbols and C names.
20970 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20972 # Transform the output of nm in a proper C declaration
20973 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20975 # Transform the output of nm in a C name address pair
20976 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20978 # This is the shared library runtime path variable.
20979 runpath_var=$runpath_var
20981 # This is the shared library path variable.
20982 shlibpath_var=$shlibpath_var
20984 # Is shlibpath searched before the hard-coded library search path?
20985 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20987 # How to hardcode a shared library path into an executable.
20988 hardcode_action=$hardcode_action_F77
20990 # Whether we should hardcode library paths into libraries.
20991 hardcode_into_libs=$hardcode_into_libs
20993 # Flag to hardcode \$libdir into a binary during linking.
20994 # This must work even if \$libdir does not exist.
20995 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20997 # If ld is used when linking, flag to hardcode \$libdir into
20998 # a binary during linking. This must work even if \$libdir does
21000 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21002 # Whether we need a single -rpath flag with a separated argument.
21003 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21005 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21006 # resulting binary.
21007 hardcode_direct=$hardcode_direct_F77
21009 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21010 # resulting binary.
21011 hardcode_minus_L=$hardcode_minus_L_F77
21013 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21014 # the resulting binary.
21015 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21017 # Set to yes if building a shared library automatically hardcodes DIR into the library
21018 # and all subsequent libraries and executables linked against it.
21019 hardcode_automatic=$hardcode_automatic_F77
21021 # Variables whose values should be saved in libtool wrapper scripts and
21022 # restored at relink time.
21023 variables_saved_for_relink="$variables_saved_for_relink"
21025 # Whether libtool must link a program against all its dependency libraries.
21026 link_all_deplibs=$link_all_deplibs_F77
21028 # Compile-time system search path for libraries
21029 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21031 # Run-time system search path for libraries
21032 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21034 # Fix the shell variable \$srcfile for the compiler.
21035 fix_srcfile_path="$fix_srcfile_path_F77"
21037 # Set to yes if exported symbols are required.
21038 always_export_symbols=$always_export_symbols_F77
21040 # The commands to list exported symbols.
21041 export_symbols_cmds=$lt_export_symbols_cmds_F77
21043 # The commands to extract the exported symbol list from a shared archive.
21044 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21046 # Symbols that should not be listed in the preloaded symbols.
21047 exclude_expsyms=$lt_exclude_expsyms_F77
21049 # Symbols that must always be exported.
21050 include_expsyms=$lt_include_expsyms_F77
21052 # ### END LIBTOOL TAG CONFIG: $tagname
21058 # If there is no Makefile yet, we rely on a make rule to execute
21059 # `config.status --recheck' to rerun these tests and create the
21060 # libtool script then.
21061 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21062 if test -f "$ltmain_in"; then
21063 test -f Makefile && make "$ltmain"
21069 ac_cpp='$CPP $CPPFLAGS'
21070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21082 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21084 ac_cpp='$CPP $CPPFLAGS'
21085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21090 # Source file extension for Java test sources.
21093 # Object file extension for compiled Java test sources.
21097 # Code to be used in simple compile tests
21098 lt_simple_compile_test_code="class foo {}\n"
21100 # Code to be used in simple link tests
21101 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21103 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21105 # If no C compiler was specified, use CC.
21108 # Allow CC to be a program name with arguments.
21112 # Allow CC to be a program name with arguments.
21118 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21119 archive_cmds_need_lc_GCJ=no
21122 lt_prog_compiler_no_builtin_flag_GCJ=
21124 if test "$GCC" = yes; then
21125 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21128 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21129 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21130 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21133 lt_cv_prog_compiler_rtti_exceptions=no
21134 ac_outfile=conftest.$ac_objext
21135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21136 lt_compiler_flag="-fno-rtti -fno-exceptions"
21137 # Insert the option either (1) after the last *FLAGS variable, or
21138 # (2) before a word containing "conftest.", or (3) at the end.
21139 # Note that $ac_compile itself does not contain backslashes and begins
21140 # with a dollar sign (not a hyphen), so the echo should work correctly.
21141 # The option is referenced via a variable to avoid confusing sed.
21142 lt_compile=`echo "$ac_compile" | $SED \
21143 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21145 -e 's:$: $lt_compiler_flag:'`
21146 (eval echo "\"\$as_me:21147: $lt_compile\"" >&5)
21147 (eval "$lt_compile" 2>conftest.err)
21149 cat conftest.err >&5
21150 echo "$as_me:21151: \$? = $ac_status" >&5
21151 if (exit $ac_status) && test -s "$ac_outfile"; then
21152 # The compiler can only warn and ignore the option if not recognized
21153 # So say no if there are warnings
21154 if test ! -s conftest.err; then
21155 lt_cv_prog_compiler_rtti_exceptions=yes
21161 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21162 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21164 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21165 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21172 lt_prog_compiler_wl_GCJ=
21173 lt_prog_compiler_pic_GCJ=
21174 lt_prog_compiler_static_GCJ=
21176 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21177 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21179 if test "$GCC" = yes; then
21180 lt_prog_compiler_wl_GCJ='-Wl,'
21181 lt_prog_compiler_static_GCJ='-static'
21185 # All AIX code is PIC.
21186 if test "$host_cpu" = ia64; then
21187 # AIX 5 now supports IA64 processor
21188 lt_prog_compiler_static_GCJ='-Bstatic'
21193 # FIXME: we need at least 68020 code to build shared libraries, but
21194 # adding the `-m68020' flag to GCC prevents building anything better,
21196 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21199 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21200 # PIC is the default for these OSes.
21203 mingw* | pw32* | os2*)
21204 # This hack is so that the source file can tell whether it is being
21205 # built for inclusion in a dll (and should export symbols for example).
21206 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21209 darwin* | rhapsody*)
21210 # PIC is the default on this platform
21211 # Common symbols not allowed in MH_DYLIB files
21212 lt_prog_compiler_pic_GCJ='-fno-common'
21216 # Just because we use GCC doesn't mean we suddenly get shared libraries
21217 # on systems that don't support them.
21218 lt_prog_compiler_can_build_shared_GCJ=no
21223 if test -d /usr/nec; then
21224 lt_prog_compiler_pic_GCJ=-Kconform_pic
21229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21230 # not for PA HP-UX.
21231 case "$host_cpu" in
21236 lt_prog_compiler_pic_GCJ='-fPIC'
21242 lt_prog_compiler_pic_GCJ='-fPIC'
21246 # PORTME Check for flag to pass linker flags through the system compiler.
21249 lt_prog_compiler_wl_GCJ='-Wl,'
21250 if test "$host_cpu" = ia64; then
21251 # AIX 5 now supports IA64 processor
21252 lt_prog_compiler_static_GCJ='-Bstatic'
21254 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21258 # PIC is the default on this platform
21259 # Common symbols not allowed in MH_DYLIB files
21260 case "$cc_basename" in
21262 lt_prog_compiler_pic_GCJ='-qnocommon'
21263 lt_prog_compiler_wl_GCJ='-Wl,'
21268 mingw* | pw32* | os2*)
21269 # This hack is so that the source file can tell whether it is being
21270 # built for inclusion in a dll (and should export symbols for example).
21271 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21274 hpux9* | hpux10* | hpux11*)
21275 lt_prog_compiler_wl_GCJ='-Wl,'
21276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21277 # not for PA HP-UX.
21278 case "$host_cpu" in
21283 lt_prog_compiler_pic_GCJ='+Z'
21286 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21287 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21290 irix5* | irix6* | nonstopux*)
21291 lt_prog_compiler_wl_GCJ='-Wl,'
21292 # PIC (with -KPIC) is the default.
21293 lt_prog_compiler_static_GCJ='-non_shared'
21297 lt_prog_compiler_pic_GCJ='-KPIC'
21298 lt_prog_compiler_static_GCJ='-Bstatic'
21304 lt_prog_compiler_wl_GCJ='-Wl,'
21305 lt_prog_compiler_pic_GCJ='-KPIC'
21306 lt_prog_compiler_static_GCJ='-static'
21309 lt_prog_compiler_wl_GCJ='-Wl,'
21310 # All Alpha code is PIC.
21311 lt_prog_compiler_static_GCJ='-non_shared'
21316 osf3* | osf4* | osf5*)
21317 lt_prog_compiler_wl_GCJ='-Wl,'
21318 # All OSF/1 code is PIC.
21319 lt_prog_compiler_static_GCJ='-non_shared'
21323 lt_prog_compiler_pic_GCJ='-Kpic'
21324 lt_prog_compiler_static_GCJ='-dn'
21328 lt_prog_compiler_wl_GCJ='-Wl,'
21329 lt_prog_compiler_pic_GCJ='-KPIC'
21330 lt_prog_compiler_static_GCJ='-Bstatic'
21334 lt_prog_compiler_wl_GCJ='-Qoption ld '
21335 lt_prog_compiler_pic_GCJ='-PIC'
21336 lt_prog_compiler_static_GCJ='-Bstatic'
21339 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21340 lt_prog_compiler_wl_GCJ='-Wl,'
21341 lt_prog_compiler_pic_GCJ='-KPIC'
21342 lt_prog_compiler_static_GCJ='-Bstatic'
21346 if test -d /usr/nec ;then
21347 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21348 lt_prog_compiler_static_GCJ='-Bstatic'
21353 lt_prog_compiler_pic_GCJ='-pic'
21354 lt_prog_compiler_static_GCJ='-Bstatic'
21358 lt_prog_compiler_can_build_shared_GCJ=no
21363 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21364 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21367 # Check to make sure the PIC flag actually works.
21369 if test -n "$lt_prog_compiler_pic_GCJ"; then
21371 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21372 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21373 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21374 echo $ECHO_N "(cached) $ECHO_C" >&6
21376 lt_prog_compiler_pic_works_GCJ=no
21377 ac_outfile=conftest.$ac_objext
21378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21379 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21380 # Insert the option either (1) after the last *FLAGS variable, or
21381 # (2) before a word containing "conftest.", or (3) at the end.
21382 # Note that $ac_compile itself does not contain backslashes and begins
21383 # with a dollar sign (not a hyphen), so the echo should work correctly.
21384 # The option is referenced via a variable to avoid confusing sed.
21385 lt_compile=`echo "$ac_compile" | $SED \
21386 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21388 -e 's:$: $lt_compiler_flag:'`
21389 (eval echo "\"\$as_me:21390: $lt_compile\"" >&5)
21390 (eval "$lt_compile" 2>conftest.err)
21392 cat conftest.err >&5
21393 echo "$as_me:21394: \$? = $ac_status" >&5
21394 if (exit $ac_status) && test -s "$ac_outfile"; then
21395 # The compiler can only warn and ignore the option if not recognized
21396 # So say no if there are warnings
21397 if test ! -s conftest.err; then
21398 lt_prog_compiler_pic_works_GCJ=yes
21404 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21405 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21407 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21408 case $lt_prog_compiler_pic_GCJ in
21410 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21413 lt_prog_compiler_pic_GCJ=
21414 lt_prog_compiler_can_build_shared_GCJ=no
21419 # For platforms which do not support PIC, -DPIC is meaningless:
21421 lt_prog_compiler_pic_GCJ=
21424 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21428 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21429 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21430 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21431 echo $ECHO_N "(cached) $ECHO_C" >&6
21433 lt_cv_prog_compiler_c_o_GCJ=no
21434 $rm -r conftest 2>/dev/null
21438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21440 lt_compiler_flag="-o out/conftest2.$ac_objext"
21441 # Insert the option either (1) after the last *FLAGS variable, or
21442 # (2) before a word containing "conftest.", or (3) at the end.
21443 # Note that $ac_compile itself does not contain backslashes and begins
21444 # with a dollar sign (not a hyphen), so the echo should work correctly.
21445 lt_compile=`echo "$ac_compile" | $SED \
21446 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21448 -e 's:$: $lt_compiler_flag:'`
21449 (eval echo "\"\$as_me:21450: $lt_compile\"" >&5)
21450 (eval "$lt_compile" 2>out/conftest.err)
21452 cat out/conftest.err >&5
21453 echo "$as_me:21454: \$? = $ac_status" >&5
21454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21456 # The compiler can only warn and ignore the option if not recognized
21457 # So say no if there are warnings
21458 if test ! -s out/conftest.err; then
21459 lt_cv_prog_compiler_c_o_GCJ=yes
21464 # SGI C++ compiler will create directory out/ii_files/ for
21465 # template instantiation
21466 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21467 $rm out/* && rmdir out
21473 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21474 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21477 hard_links="nottested"
21478 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21479 # do not overwrite the value of need_locks provided by the user
21480 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21486 ln conftest.a conftest.b 2>&5 || hard_links=no
21487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21488 echo "$as_me:$LINENO: result: $hard_links" >&5
21489 echo "${ECHO_T}$hard_links" >&6
21490 if test "$hard_links" = no; then
21491 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21499 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21500 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21503 allow_undefined_flag_GCJ=
21504 enable_shared_with_static_runtimes_GCJ=no
21506 archive_expsym_cmds_GCJ=
21507 old_archive_From_new_cmds_GCJ=
21508 old_archive_from_expsyms_cmds_GCJ=
21509 export_dynamic_flag_spec_GCJ=
21510 whole_archive_flag_spec_GCJ=
21511 thread_safe_flag_spec_GCJ=
21512 hardcode_libdir_flag_spec_GCJ=
21513 hardcode_libdir_flag_spec_ld_GCJ=
21514 hardcode_libdir_separator_GCJ=
21515 hardcode_direct_GCJ=no
21516 hardcode_minus_L_GCJ=no
21517 hardcode_shlibpath_var_GCJ=unsupported
21518 link_all_deplibs_GCJ=unknown
21519 hardcode_automatic_GCJ=no
21521 module_expsym_cmds_GCJ=
21522 always_export_symbols_GCJ=no
21523 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21524 # include_expsyms should be a list of space-separated symbols to be *always*
21525 # included in the symbol list
21526 include_expsyms_GCJ=
21527 # exclude_expsyms can be an extended regexp of symbols to exclude
21528 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21529 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21530 # as well as any symbol that contains `d'.
21531 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21532 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21533 # platforms (ab)use it in PIC code, but their linkers get confused if
21534 # the symbol is explicitly referenced. Since portable code cannot
21535 # rely on this symbol name, it's probably fine to never include it in
21536 # preloaded symbol tables.
21537 extract_expsyms_cmds=
21540 cygwin* | mingw* | pw32*)
21541 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21542 # When not using gcc, we currently assume that we are using
21543 # Microsoft Visual C++.
21544 if test "$GCC" != yes; then
21554 if test "$with_gnu_ld" = yes; then
21555 # If archive_cmds runs LD, not CC, wlarc should be empty
21558 # See if GNU ld supports shared libraries.
21560 aix3* | aix4* | aix5*)
21561 # On AIX/PPC, the GNU linker is very broken
21562 if test "$host_cpu" != ia64; then
21566 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21567 *** to be unable to reliably create shared libraries on AIX.
21568 *** Therefore, libtool is disabling shared libraries support. If you
21569 *** really care for shared libraries, you may want to modify your PATH
21570 *** so that a non-GNU linker is found, and then restart.
21577 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)'
21578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21579 hardcode_minus_L_GCJ=yes
21581 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21582 # that the semantics of dynamic libraries on AmigaOS, at least up
21583 # to version 4, is to share data among multiple programs linked
21584 # with the same dynamic library. Since this doesn't match the
21585 # behavior of shared libraries on other platforms, we can't use
21591 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21592 allow_undefined_flag_GCJ=unsupported
21593 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21594 # support --undefined. This deserves some investigation. FIXME
21595 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21601 cygwin* | mingw* | pw32*)
21602 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21603 # as there is no search path for DLLs.
21604 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21605 allow_undefined_flag_GCJ=unsupported
21606 always_export_symbols_GCJ=no
21607 enable_shared_with_static_runtimes_GCJ=yes
21608 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21610 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21611 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21612 # If the export-symbols file already is a .def file (1st line
21613 # is EXPORTS), use it as is; otherwise, prepend...
21614 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21615 cp $export_symbols $output_objdir/$soname.def;
21617 echo EXPORTS > $output_objdir/$soname.def;
21618 cat $export_symbols >> $output_objdir/$soname.def;
21620 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21627 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21628 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21631 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21632 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21637 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21641 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21642 *** create shared libraries on Solaris systems. Therefore, libtool
21643 *** is disabling shared libraries support. We urge you to upgrade GNU
21644 *** binutils to release 2.9.1 or newer. Another option is to modify
21645 *** your PATH or compiler configuration so that the native linker is
21646 *** used, and then restart.
21649 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21650 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21651 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21658 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21660 hardcode_direct_GCJ=yes
21661 hardcode_shlibpath_var_GCJ=no
21665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21666 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21667 archive_cmds_GCJ="$tmp_archive_cmds"
21668 supports_anon_versioning=no
21669 case `$LD -v 2>/dev/null` in
21670 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21671 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21672 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21673 *\ 2.11.*) ;; # other 2.11 versions
21674 *) supports_anon_versioning=yes ;;
21676 if test $supports_anon_versioning = yes; then
21677 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21679 $echo "local: *; };" >> $output_objdir/$libname.ver~
21680 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21682 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21690 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21692 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21699 if test "$ld_shlibs_GCJ" = yes; then
21700 runpath_var=LD_RUN_PATH
21701 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21702 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21703 # ancient GNU ld didn't support --whole-archive et. al.
21704 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21705 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21707 whole_archive_flag_spec_GCJ=
21711 # PORTME fill in a description of your system's linker (not GNU ld)
21714 allow_undefined_flag_GCJ=unsupported
21715 always_export_symbols_GCJ=yes
21716 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'
21717 # Note: this linker hardcodes the directories in LIBPATH if there
21718 # are no directories specified by -L.
21719 hardcode_minus_L_GCJ=yes
21720 if test "$GCC" = yes && test -z "$link_static_flag"; then
21721 # Neither direct hardcoding nor static linking is supported with a
21723 hardcode_direct_GCJ=unsupported
21728 if test "$host_cpu" = ia64; then
21729 # On IA64, the linker does run time linking by default, so we don't
21730 # have to do anything special.
21731 aix_use_runtimelinking=no
21732 exp_sym_flag='-Bexport'
21735 # If we're using GNU nm, then we don't want the "-C" option.
21736 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21737 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21738 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'
21740 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'
21742 aix_use_runtimelinking=no
21744 # Test if we are trying to use run time linking or normal
21745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21746 # need to do runtime linking.
21747 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21748 for ld_flag in $LDFLAGS; do
21749 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21750 aix_use_runtimelinking=yes
21756 exp_sym_flag='-bexport'
21757 no_entry_flag='-bnoentry'
21760 # When large executables or shared objects are built, AIX ld can
21761 # have problems creating the table of contents. If linking a library
21762 # or program results in "error TOC overflow" add -mminimal-toc to
21763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21766 archive_cmds_GCJ=''
21767 hardcode_direct_GCJ=yes
21768 hardcode_libdir_separator_GCJ=':'
21769 link_all_deplibs_GCJ=yes
21771 if test "$GCC" = yes; then
21772 case $host_os in aix4.012|aix4.012.*)
21773 # We only want to do this on AIX 4.2 and lower, the check
21774 # below for broken collect2 doesn't work under 4.3+
21775 collect2name=`${CC} -print-prog-name=collect2`
21776 if test -f "$collect2name" && \
21777 strings "$collect2name" | grep resolve_lib_name >/dev/null
21779 # We have reworked collect2
21780 hardcode_direct_GCJ=yes
21782 # We have old collect2
21783 hardcode_direct_GCJ=unsupported
21784 # It fails to find uninstalled libraries when the uninstalled
21785 # path is not listed in the libpath. Setting hardcode_minus_L
21786 # to unsupported forces relinking
21787 hardcode_minus_L_GCJ=yes
21788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21789 hardcode_libdir_separator_GCJ=
21792 shared_flag='-shared'
21795 if test "$host_cpu" = ia64; then
21796 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21797 # chokes on -Wl,-G. The following line is correct:
21800 if test "$aix_use_runtimelinking" = yes; then
21801 shared_flag='${wl}-G'
21803 shared_flag='${wl}-bM:SRE'
21808 # It seems that -bexpall does not export symbols beginning with
21809 # underscore (_), so it is better to generate a list of symbols to export.
21810 always_export_symbols_GCJ=yes
21811 if test "$aix_use_runtimelinking" = yes; then
21812 # Warning - without using the other runtime loading flags (-brtl),
21813 # -berok will link without error, but may produce a broken library.
21814 allow_undefined_flag_GCJ='-berok'
21815 # Determine the default libpath from the value encoded in an empty executable.
21816 cat >conftest.$ac_ext <<_ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21831 rm -f conftest.$ac_objext conftest$ac_exeext
21832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21833 (eval $ac_link) 2>conftest.er1
21835 grep -v '^ *+' conftest.er1 >conftest.err
21837 cat conftest.err >&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } &&
21840 { ac_try='test -z "$ac_c_werror_flag"
21841 || test ! -s conftest.err'
21842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843 (eval $ac_try) 2>&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); }; } &&
21847 { ac_try='test -s conftest$ac_exeext'
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21854 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21856 # Check for a 64-bit object if we didn't find anything.
21857 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; }
21860 echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21864 rm -f conftest.err conftest.$ac_objext \
21865 conftest$ac_exeext conftest.$ac_ext
21866 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21868 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21869 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"
21871 if test "$host_cpu" = ia64; then
21872 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21873 allow_undefined_flag_GCJ="-z nodefs"
21874 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"
21876 # Determine the default libpath from the value encoded in an empty executable.
21877 cat >conftest.$ac_ext <<_ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h. */
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21894 (eval $ac_link) 2>conftest.er1
21896 grep -v '^ *+' conftest.er1 >conftest.err
21898 cat conftest.err >&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } &&
21901 { ac_try='test -z "$ac_c_werror_flag"
21902 || test ! -s conftest.err'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; } &&
21908 { ac_try='test -s conftest$ac_exeext'
21909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910 (eval $ac_try) 2>&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; }; then
21915 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21917 # Check for a 64-bit object if we didn't find anything.
21918 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; }
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21925 rm -f conftest.err conftest.$ac_objext \
21926 conftest$ac_exeext conftest.$ac_ext
21927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21929 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21930 # Warning - without using the other run time loading flags,
21931 # -berok will link without error, but may produce a broken library.
21932 no_undefined_flag_GCJ=' ${wl}-bernotok'
21933 allow_undefined_flag_GCJ=' ${wl}-berok'
21934 # -bexpall does not export symbols beginning with underscore (_)
21935 always_export_symbols_GCJ=yes
21936 # Exported symbols can be pulled into shared objects from archives
21937 whole_archive_flag_spec_GCJ=' '
21938 archive_cmds_need_lc_GCJ=yes
21939 # This is similar to how AIX traditionally builds it's shared libraries.
21940 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'
21946 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)'
21947 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21948 hardcode_minus_L_GCJ=yes
21949 # see comment about different semantics on the GNU ld section
21954 export_dynamic_flag_spec_GCJ=-rdynamic
21957 cygwin* | mingw* | pw32*)
21958 # When not using gcc, we currently assume that we are using
21959 # Microsoft Visual C++.
21960 # hardcode_libdir_flag_spec is actually meaningless, as there is
21961 # no search path for DLLs.
21962 hardcode_libdir_flag_spec_GCJ=' '
21963 allow_undefined_flag_GCJ=unsupported
21964 # Tell ltmain to make .lib files, not .a files.
21966 # Tell ltmain to make .dll files, not .so files.
21968 # FIXME: Setting linknames here is a bad hack.
21969 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21970 # The linker will automatically build a .lib file if we build a DLL.
21971 old_archive_From_new_cmds_GCJ='true'
21972 # FIXME: Should let the user specify the lib program.
21973 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21974 fix_srcfile_path='`cygpath -w "$srcfile"`'
21975 enable_shared_with_static_runtimes_GCJ=yes
21978 darwin* | rhapsody*)
21980 rhapsody* | darwin1.[012])
21981 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21984 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21985 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21987 case ${MACOSX_DEPLOYMENT_TARGET} in
21989 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21992 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21998 archive_cmds_need_lc_GCJ=no
21999 hardcode_direct_GCJ=no
22000 hardcode_automatic_GCJ=yes
22001 hardcode_shlibpath_var_GCJ=unsupported
22002 whole_archive_flag_spec_GCJ=''
22003 link_all_deplibs_GCJ=yes
22004 if test "$GCC" = yes ; then
22005 output_verbose_link_cmd='echo'
22006 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22007 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22008 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22009 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}'
22010 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}'
22012 case "$cc_basename" in
22014 output_verbose_link_cmd='echo'
22015 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22016 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22018 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}'
22019 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}'
22029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22030 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22031 hardcode_shlibpath_var_GCJ=no
22038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22039 # support. Future versions do this automatically, but an explicit c++rt0.o
22040 # does not break anything, and helps significantly (at the cost of a little
22043 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22044 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22045 hardcode_direct_GCJ=yes
22046 hardcode_shlibpath_var_GCJ=no
22049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22051 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22052 hardcode_direct_GCJ=yes
22053 hardcode_minus_L_GCJ=yes
22054 hardcode_shlibpath_var_GCJ=no
22057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22058 freebsd* | kfreebsd*-gnu)
22059 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22060 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22061 hardcode_direct_GCJ=yes
22062 hardcode_shlibpath_var_GCJ=no
22066 if test "$GCC" = yes; then
22067 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'
22069 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'
22071 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22072 hardcode_libdir_separator_GCJ=:
22073 hardcode_direct_GCJ=yes
22075 # hardcode_minus_L: Not really in the search PATH,
22076 # but as the default location of the library.
22077 hardcode_minus_L_GCJ=yes
22078 export_dynamic_flag_spec_GCJ='${wl}-E'
22082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22083 case "$host_cpu" in
22085 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22088 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22092 case "$host_cpu" in
22094 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22097 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22101 if test "$with_gnu_ld" = no; then
22102 case "$host_cpu" in
22104 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22105 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22106 hardcode_libdir_separator_GCJ=:
22107 hardcode_direct_GCJ=no
22108 hardcode_shlibpath_var_GCJ=no
22111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22112 hardcode_direct_GCJ=no
22113 hardcode_shlibpath_var_GCJ=no
22115 # hardcode_minus_L: Not really in the search PATH,
22116 # but as the default location of the library.
22117 hardcode_minus_L_GCJ=yes
22120 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22121 hardcode_libdir_separator_GCJ=:
22122 hardcode_direct_GCJ=yes
22123 export_dynamic_flag_spec_GCJ='${wl}-E'
22125 # hardcode_minus_L: Not really in the search PATH,
22126 # but as the default location of the library.
22127 hardcode_minus_L_GCJ=yes
22133 irix5* | irix6* | nonstopux*)
22134 if test "$GCC" = yes; then
22135 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'
22137 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'
22138 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22141 hardcode_libdir_separator_GCJ=:
22142 link_all_deplibs_GCJ=yes
22146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22147 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22149 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22151 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22152 hardcode_direct_GCJ=yes
22153 hardcode_shlibpath_var_GCJ=no
22157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22158 hardcode_direct_GCJ=yes
22159 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22160 hardcode_libdir_separator_GCJ=:
22161 hardcode_shlibpath_var_GCJ=no
22165 hardcode_direct_GCJ=yes
22166 hardcode_shlibpath_var_GCJ=no
22167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22168 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22169 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22171 export_dynamic_flag_spec_GCJ='${wl}-E'
22174 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22175 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22176 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22179 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22180 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22188 hardcode_minus_L_GCJ=yes
22189 allow_undefined_flag_GCJ=unsupported
22190 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'
22191 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22195 if test "$GCC" = yes; then
22196 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22197 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'
22199 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22200 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'
22202 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22203 hardcode_libdir_separator_GCJ=:
22206 osf4* | osf5*) # as osf3* with the addition of -msym flag
22207 if test "$GCC" = yes; then
22208 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22209 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'
22210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22212 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22213 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'
22214 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~
22215 $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'
22217 # Both c and cxx compiler support -rpath directly
22218 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22220 hardcode_libdir_separator_GCJ=:
22224 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22225 hardcode_shlibpath_var_GCJ=no
22226 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22227 runpath_var=LD_RUN_PATH
22228 hardcode_runpath_var=yes
22232 no_undefined_flag_GCJ=' -z text'
22233 if test "$GCC" = yes; then
22234 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22235 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22236 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22238 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22239 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22240 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22243 hardcode_shlibpath_var_GCJ=no
22245 solaris2.[0-5] | solaris2.[0-5].*) ;;
22246 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22247 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22249 link_all_deplibs_GCJ=yes
22253 if test "x$host_vendor" = xsequent; then
22254 # Use $CC to link under sequent, because it throws in some extra .o
22255 # files that make .init and .fini sections work.
22256 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22258 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22261 hardcode_direct_GCJ=yes
22262 hardcode_minus_L_GCJ=yes
22263 hardcode_shlibpath_var_GCJ=no
22267 case $host_vendor in
22269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22270 hardcode_direct_GCJ=yes # is this really true???
22273 ## LD is ld it makes a PLAMLIB
22274 ## CC just makes a GrossModule.
22275 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22276 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22277 hardcode_direct_GCJ=no
22280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22281 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22284 runpath_var='LD_RUN_PATH'
22285 hardcode_shlibpath_var_GCJ=no
22289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22290 hardcode_shlibpath_var_GCJ=no
22291 export_dynamic_flag_spec_GCJ='-Bexport'
22295 if test -d /usr/nec; then
22296 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22297 hardcode_shlibpath_var_GCJ=no
22298 runpath_var=LD_RUN_PATH
22299 hardcode_runpath_var=yes
22305 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22306 hardcode_direct_GCJ=yes
22307 hardcode_minus_L_GCJ=no
22308 hardcode_shlibpath_var_GCJ=no
22309 hardcode_runpath_var=yes
22310 runpath_var=LD_RUN_PATH
22313 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22314 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22315 if test "$GCC" = yes; then
22316 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22318 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22320 runpath_var='LD_RUN_PATH'
22321 hardcode_shlibpath_var_GCJ=no
22325 no_undefined_flag_GCJ=' -z text'
22326 # $CC -shared without GNU ld will not create a library from C++
22327 # object files and a static libstdc++, better avoid it by now
22328 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22329 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22330 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22331 hardcode_libdir_flag_spec_GCJ=
22332 hardcode_shlibpath_var_GCJ=no
22333 runpath_var='LD_RUN_PATH'
22337 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22339 hardcode_shlibpath_var_GCJ=no
22348 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22349 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22350 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22352 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22353 if test "$GCC" = yes; then
22354 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22358 # Do we need to explicitly link libc?
22360 case "x$archive_cmds_need_lc_GCJ" in
22362 # Assume -lc should be added
22363 archive_cmds_need_lc_GCJ=yes
22365 if test "$enable_shared" = yes && test "$GCC" = yes; then
22366 case $archive_cmds_GCJ in
22368 # FIXME: we may have to deal with multi-command sequences.
22371 # Test whether the compiler implicitly links with -lc since on some
22372 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22373 # to ld, don't add -lc before -lgcc.
22374 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22375 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22377 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22380 (eval $ac_compile) 2>&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } 2>conftest.err; then
22386 libobjs=conftest.$ac_objext
22388 wl=$lt_prog_compiler_wl_GCJ
22394 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22395 allow_undefined_flag_GCJ=
22396 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22397 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }
22402 archive_cmds_need_lc_GCJ=no
22404 archive_cmds_need_lc_GCJ=yes
22406 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22408 cat conftest.err 1>&5
22411 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22412 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22419 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22420 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22421 library_names_spec=
22422 libname_spec='lib$name'
22426 postuninstall_cmds=
22430 shlibpath_overrides_runpath=unknown
22432 dynamic_linker="$host_os ld.so"
22433 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22434 if test "$GCC" = yes; then
22435 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22436 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22437 # if the path contains ";" then we assume it to be the separator
22438 # otherwise default to the standard path separator (i.e. ":") - it is
22439 # assumed that no part of a normal pathname contains ";" but that should
22440 # okay in the real world where ";" in dirpaths is itself problematic.
22441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22446 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22448 need_lib_prefix=unknown
22449 hardcode_into_libs=no
22451 # when you set need_version to no, make sure it does not cause -set_version
22452 # flags to be left without arguments
22453 need_version=unknown
22458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22459 shlibpath_var=LIBPATH
22461 # AIX 3 has no versioning support, so we append a major version to the name.
22462 soname_spec='${libname}${release}${shared_ext}$major'
22469 hardcode_into_libs=yes
22470 if test "$host_cpu" = ia64; then
22471 # AIX 5 supports IA64
22472 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22473 shlibpath_var=LD_LIBRARY_PATH
22475 # With GCC up to 2.95.x, collect2 would create an import file
22476 # for dependence libraries. The import file would start with
22477 # the line `#! .'. This would cause the generated library to
22478 # depend on `.', always an invalid library. This was fixed in
22479 # development snapshots of GCC prior to 3.0.
22481 aix4 | aix4.[01] | aix4.[01].*)
22482 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22484 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22487 can_build_shared=no
22491 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22492 # soname into executable. Probably we can add versioning support to
22493 # collect2, so additional links can be useful in future.
22494 if test "$aix_use_runtimelinking" = yes; then
22495 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22496 # instead of lib<name>.a to let people know that these are not
22497 # typical AIX shared libraries.
22498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22500 # We preserve .a as extension for shared libraries through AIX4.2
22501 # and later when we are not doing run time linking.
22502 library_names_spec='${libname}${release}.a $libname.a'
22503 soname_spec='${libname}${release}${shared_ext}$major'
22505 shlibpath_var=LIBPATH
22510 library_names_spec='$libname.ixlibrary $libname.a'
22511 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22512 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'
22516 library_names_spec='${libname}${shared_ext}'
22517 dynamic_linker="$host_os ld.so"
22518 shlibpath_var=LIBRARY_PATH
22524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22525 soname_spec='${libname}${release}${shared_ext}$major'
22526 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22527 shlibpath_var=LD_LIBRARY_PATH
22528 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22529 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22530 # the default ld.so.conf also contains /usr/contrib/lib and
22531 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22532 # libtool to hard-code these into programs
22535 cygwin* | mingw* | pw32*)
22536 version_type=windows
22541 case $GCC,$host_os in
22542 yes,cygwin* | yes,mingw* | yes,pw32*)
22543 library_names_spec='$libname.dll.a'
22544 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22545 postinstall_cmds='base_file=`basename \${file}`~
22546 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22547 dldir=$destdir/`dirname \$dlpath`~
22548 test -d \$dldir || mkdir -p \$dldir~
22549 $install_prog $dir/$dlname \$dldir/$dlname'
22550 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22551 dlpath=$dir/\$dldll~
22553 shlibpath_overrides_runpath=yes
22557 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22558 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22559 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22562 # MinGW DLLs use traditional 'lib' prefix
22563 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22564 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22565 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22566 # It is most probably a Windows format PATH printed by
22567 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22568 # path with ; separators, and with drive letters. We can handle the
22569 # drive letters (cygwin fileutils understands them), so leave them,
22570 # especially as we might pass files found there to a mingw objdump,
22571 # which wouldn't understand a cygwinified path. Ahh.
22572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22578 # pw32 DLLs use 'pw' prefix rather than 'lib'
22579 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22585 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22588 dynamic_linker='Win32 ld.exe'
22589 # FIXME: first we should search . and the directory the executable is in
22593 darwin* | rhapsody*)
22594 dynamic_linker="$host_os dyld"
22595 version_type=darwin
22598 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22599 soname_spec='${libname}${release}${major}$shared_ext'
22600 shlibpath_overrides_runpath=yes
22601 shlibpath_var=DYLD_LIBRARY_PATH
22602 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22603 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22604 if test "$GCC" = yes; then
22605 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"`
22607 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22609 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22617 soname_spec='${libname}${release}${shared_ext}$major'
22618 shlibpath_var=LD_LIBRARY_PATH
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22630 soname_spec='${libname}${release}${shared_ext}$major'
22631 shlibpath_var=LD_LIBRARY_PATH
22632 shlibpath_overrides_runpath=no
22633 hardcode_into_libs=yes
22634 dynamic_linker='GNU ld.so'
22638 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22639 version_type=freebsd-$objformat
22640 case $version_type in
22642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22651 shlibpath_var=LD_LIBRARY_PATH
22654 shlibpath_overrides_runpath=yes
22656 freebsd3.01* | freebsdelf3.01*)
22657 shlibpath_overrides_runpath=yes
22658 hardcode_into_libs=yes
22661 shlibpath_overrides_runpath=no
22662 hardcode_into_libs=yes
22671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22672 soname_spec='${libname}${release}${shared_ext}$major'
22673 shlibpath_var=LD_LIBRARY_PATH
22674 hardcode_into_libs=yes
22677 hpux9* | hpux10* | hpux11*)
22678 # Give a soname corresponding to the major version so that dld.sl refuses to
22679 # link against other versions.
22683 case "$host_cpu" in
22686 hardcode_into_libs=yes
22687 dynamic_linker="$host_os dld.so"
22688 shlibpath_var=LD_LIBRARY_PATH
22689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22691 soname_spec='${libname}${release}${shared_ext}$major'
22692 if test "X$HPUX_IA64_MODE" = X32; then
22693 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22695 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22701 hardcode_into_libs=yes
22702 dynamic_linker="$host_os dld.sl"
22703 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22706 soname_spec='${libname}${release}${shared_ext}$major'
22707 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22712 dynamic_linker="$host_os dld.sl"
22713 shlibpath_var=SHLIB_PATH
22714 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22716 soname_spec='${libname}${release}${shared_ext}$major'
22719 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22720 postinstall_cmds='chmod 555 $lib'
22723 irix5* | irix6* | nonstopux*)
22725 nonstopux*) version_type=nonstopux ;;
22727 if test "$lt_cv_prog_gnu_ld" = yes; then
22735 soname_spec='${libname}${release}${shared_ext}$major'
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22738 irix5* | nonstopux*)
22739 libsuff= shlibsuff=
22742 case $LD in # libtool.m4 will add one of these switches to LD
22743 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22744 libsuff= shlibsuff= libmagic=32-bit;;
22745 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22746 libsuff=32 shlibsuff=N32 libmagic=N32;;
22747 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22748 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22749 *) libsuff= shlibsuff= libmagic=never-match;;
22753 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22754 shlibpath_overrides_runpath=no
22755 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22756 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22757 hardcode_into_libs=yes
22760 # No shared lib support for Linux oldld, aout, or coff.
22761 linux*oldld* | linux*aout* | linux*coff*)
22765 # This must be Linux ELF.
22770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22771 soname_spec='${libname}${release}${shared_ext}$major'
22772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22773 shlibpath_var=LD_LIBRARY_PATH
22774 shlibpath_overrides_runpath=no
22775 # This implies no fast_install, which is unacceptable.
22776 # Some rework will be needed to allow for fast_install
22777 # before this can be enabled.
22778 hardcode_into_libs=yes
22780 # Append ld.so.conf contents to the search path
22781 if test -f /etc/ld.so.conf; then
22782 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22783 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22786 # We used to test for /lib/ld.so.1 and disable shared libraries on
22787 # powerpc, because MkLinux only supported shared libraries with the
22788 # GNU dynamic linker. Since this was broken with cross compilers,
22789 # most powerpc-linux boxes support dynamic linking these days and
22790 # people can always --disable-shared, the test was removed, and we
22791 # assume the GNU/Linux dynamic linker is in use.
22792 dynamic_linker='GNU/Linux ld.so'
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22800 soname_spec='${libname}${release}${shared_ext}$major'
22801 shlibpath_var=LD_LIBRARY_PATH
22802 shlibpath_overrides_runpath=no
22803 hardcode_into_libs=yes
22804 dynamic_linker='GNU ld.so'
22811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22814 dynamic_linker='NetBSD (a.out) ld.so'
22816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22817 soname_spec='${libname}${release}${shared_ext}$major'
22818 dynamic_linker='NetBSD ld.elf_so'
22820 shlibpath_var=LD_LIBRARY_PATH
22821 shlibpath_overrides_runpath=yes
22822 hardcode_into_libs=yes
22827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22828 shlibpath_var=LD_LIBRARY_PATH
22829 shlibpath_overrides_runpath=yes
22836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22837 soname_spec='${libname}${release}${shared_ext}$major'
22838 shlibpath_var=LD_LIBRARY_PATH
22839 shlibpath_overrides_runpath=yes
22846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22848 shlibpath_var=LD_LIBRARY_PATH
22849 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22851 openbsd2.[89] | openbsd2.[89].*)
22852 shlibpath_overrides_runpath=no
22855 shlibpath_overrides_runpath=yes
22859 shlibpath_overrides_runpath=yes
22864 libname_spec='$name'
22867 library_names_spec='$libname${shared_ext} $libname.a'
22868 dynamic_linker='OS/2 ld.exe'
22869 shlibpath_var=LIBPATH
22872 osf3* | osf4* | osf5*)
22876 soname_spec='${libname}${release}${shared_ext}$major'
22877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22878 shlibpath_var=LD_LIBRARY_PATH
22879 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22880 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22885 soname_spec='${libname}${release}${shared_ext}$major'
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887 shlibpath_var=LD_LIBRARY_PATH
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22895 soname_spec='${libname}${release}${shared_ext}$major'
22896 shlibpath_var=LD_LIBRARY_PATH
22897 shlibpath_overrides_runpath=yes
22898 hardcode_into_libs=yes
22899 # ldd complains unless libraries are executable
22900 postinstall_cmds='chmod +x $lib'
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22907 shlibpath_var=LD_LIBRARY_PATH
22908 shlibpath_overrides_runpath=yes
22909 if test "$with_gnu_ld" = yes; then
22915 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 case $host_vendor in
22922 shlibpath_overrides_runpath=no
22924 export_dynamic_flag_spec='${wl}-Blargedynsym'
22925 runpath_var=LD_RUN_PATH
22933 shlibpath_overrides_runpath=no
22934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22940 if test -d /usr/nec ;then
22942 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22943 soname_spec='$libname${shared_ext}.$major'
22944 shlibpath_var=LD_LIBRARY_PATH
22950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22951 soname_spec='${libname}${release}${shared_ext}$major'
22952 shlibpath_var=LD_LIBRARY_PATH
22959 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22960 echo "${ECHO_T}$dynamic_linker" >&6
22961 test "$dynamic_linker" = no && can_build_shared=no
22963 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22964 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22965 hardcode_action_GCJ=
22966 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22967 test -n "$runpath_var_GCJ" || \
22968 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22970 # We can hardcode non-existant directories.
22971 if test "$hardcode_direct_GCJ" != no &&
22972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22973 # have to relink, otherwise we might link with an installed library
22974 # when we should be linking with a yet-to-be-installed one
22975 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22976 test "$hardcode_minus_L_GCJ" != no; then
22977 # Linking always hardcodes the temporary library directory.
22978 hardcode_action_GCJ=relink
22980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22981 hardcode_action_GCJ=immediate
22984 # We cannot hardcode anything, or else we can only hardcode existing
22986 hardcode_action_GCJ=unsupported
22988 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22989 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22991 if test "$hardcode_action_GCJ" = relink; then
22992 # Fast installation is not supported
22993 enable_fast_install=no
22994 elif test "$shlibpath_overrides_runpath" = yes ||
22995 test "$enable_shared" = no; then
22996 # Fast installation is not necessary
22997 enable_fast_install=needless
23002 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23003 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23004 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23005 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23006 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23007 echo "$as_me:$LINENO: result: yes" >&5
23008 echo "${ECHO_T}yes" >&6
23010 # FIXME - insert some real tests, host_os isn't really good enough
23013 if test -n "$STRIP" ; then
23014 striplib="$STRIP -x"
23015 echo "$as_me:$LINENO: result: yes" >&5
23016 echo "${ECHO_T}yes" >&6
23018 echo "$as_me:$LINENO: result: no" >&5
23019 echo "${ECHO_T}no" >&6
23023 echo "$as_me:$LINENO: result: no" >&5
23024 echo "${ECHO_T}no" >&6
23029 if test "x$enable_dlopen" != xyes; then
23030 enable_dlopen=unknown
23031 enable_dlopen_self=unknown
23032 enable_dlopen_self_static=unknown
23039 lt_cv_dlopen="load_add_on"
23041 lt_cv_dlopen_self=yes
23045 lt_cv_dlopen="LoadLibrary"
23050 lt_cv_dlopen="dlopen"
23055 # if libdl is installed we need to link against it
23056 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23057 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23058 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23061 ac_check_lib_save_LIBS=$LIBS
23063 cat >conftest.$ac_ext <<_ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
23070 /* Override any gcc2 internal prototype to avoid an error. */
23074 /* We use char because int might match the return type of a gcc2
23075 builtin and then its argument prototype would still apply. */
23085 rm -f conftest.$ac_objext conftest$ac_exeext
23086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23087 (eval $ac_link) 2>conftest.er1
23089 grep -v '^ *+' conftest.er1 >conftest.err
23091 cat conftest.err >&5
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); } &&
23094 { ac_try='test -z "$ac_c_werror_flag"
23095 || test ! -s conftest.err'
23096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097 (eval $ac_try) 2>&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); }; } &&
23101 { ac_try='test -s conftest$ac_exeext'
23102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; }; then
23107 ac_cv_lib_dl_dlopen=yes
23109 echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23112 ac_cv_lib_dl_dlopen=no
23114 rm -f conftest.err conftest.$ac_objext \
23115 conftest$ac_exeext conftest.$ac_ext
23116 LIBS=$ac_check_lib_save_LIBS
23118 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23119 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23120 if test $ac_cv_lib_dl_dlopen = yes; then
23121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23124 lt_cv_dlopen="dyld"
23126 lt_cv_dlopen_self=yes
23133 echo "$as_me:$LINENO: checking for shl_load" >&5
23134 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23135 if test "${ac_cv_func_shl_load+set}" = set; then
23136 echo $ECHO_N "(cached) $ECHO_C" >&6
23138 cat >conftest.$ac_ext <<_ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h. */
23144 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23146 #define shl_load innocuous_shl_load
23148 /* System header to define __stub macros and hopefully few prototypes,
23149 which can conflict with char shl_load (); below.
23150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23151 <limits.h> exists even on freestanding compilers. */
23154 # include <limits.h>
23156 # include <assert.h>
23161 /* Override any gcc2 internal prototype to avoid an error. */
23166 /* We use char because int might match the return type of a gcc2
23167 builtin and then its argument prototype would still apply. */
23169 /* The GNU C library defines this for functions which it implements
23170 to always fail with ENOSYS. Some functions are actually named
23171 something starting with __ and the normal name is an alias. */
23172 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23175 char (*f) () = shl_load;
23184 return f != shl_load;
23189 rm -f conftest.$ac_objext conftest$ac_exeext
23190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23191 (eval $ac_link) 2>conftest.er1
23193 grep -v '^ *+' conftest.er1 >conftest.err
23195 cat conftest.err >&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } &&
23198 { ac_try='test -z "$ac_c_werror_flag"
23199 || test ! -s conftest.err'
23200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23201 (eval $ac_try) 2>&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); }; } &&
23205 { ac_try='test -s conftest$ac_exeext'
23206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207 (eval $ac_try) 2>&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; }; then
23211 ac_cv_func_shl_load=yes
23213 echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23216 ac_cv_func_shl_load=no
23218 rm -f conftest.err conftest.$ac_objext \
23219 conftest$ac_exeext conftest.$ac_ext
23221 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23222 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23223 if test $ac_cv_func_shl_load = yes; then
23224 lt_cv_dlopen="shl_load"
23226 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23227 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23228 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23229 echo $ECHO_N "(cached) $ECHO_C" >&6
23231 ac_check_lib_save_LIBS=$LIBS
23233 cat >conftest.$ac_ext <<_ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h. */
23240 /* Override any gcc2 internal prototype to avoid an error. */
23244 /* We use char because int might match the return type of a gcc2
23245 builtin and then its argument prototype would still apply. */
23255 rm -f conftest.$ac_objext conftest$ac_exeext
23256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23257 (eval $ac_link) 2>conftest.er1
23259 grep -v '^ *+' conftest.er1 >conftest.err
23261 cat conftest.err >&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } &&
23264 { ac_try='test -z "$ac_c_werror_flag"
23265 || test ! -s conftest.err'
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; } &&
23271 { ac_try='test -s conftest$ac_exeext'
23272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 ac_cv_lib_dld_shl_load=yes
23279 echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23282 ac_cv_lib_dld_shl_load=no
23284 rm -f conftest.err conftest.$ac_objext \
23285 conftest$ac_exeext conftest.$ac_ext
23286 LIBS=$ac_check_lib_save_LIBS
23288 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23289 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23290 if test $ac_cv_lib_dld_shl_load = yes; then
23291 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23293 echo "$as_me:$LINENO: checking for dlopen" >&5
23294 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23295 if test "${ac_cv_func_dlopen+set}" = set; then
23296 echo $ECHO_N "(cached) $ECHO_C" >&6
23298 cat >conftest.$ac_ext <<_ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23304 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23306 #define dlopen innocuous_dlopen
23308 /* System header to define __stub macros and hopefully few prototypes,
23309 which can conflict with char dlopen (); below.
23310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23311 <limits.h> exists even on freestanding compilers. */
23314 # include <limits.h>
23316 # include <assert.h>
23321 /* Override any gcc2 internal prototype to avoid an error. */
23326 /* We use char because int might match the return type of a gcc2
23327 builtin and then its argument prototype would still apply. */
23329 /* The GNU C library defines this for functions which it implements
23330 to always fail with ENOSYS. Some functions are actually named
23331 something starting with __ and the normal name is an alias. */
23332 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23335 char (*f) () = dlopen;
23344 return f != dlopen;
23349 rm -f conftest.$ac_objext conftest$ac_exeext
23350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23351 (eval $ac_link) 2>conftest.er1
23353 grep -v '^ *+' conftest.er1 >conftest.err
23355 cat conftest.err >&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); } &&
23358 { ac_try='test -z "$ac_c_werror_flag"
23359 || test ! -s conftest.err'
23360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361 (eval $ac_try) 2>&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); }; } &&
23365 { ac_try='test -s conftest$ac_exeext'
23366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23367 (eval $ac_try) 2>&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); }; }; then
23371 ac_cv_func_dlopen=yes
23373 echo "$as_me: failed program was:" >&5
23374 sed 's/^/| /' conftest.$ac_ext >&5
23376 ac_cv_func_dlopen=no
23378 rm -f conftest.err conftest.$ac_objext \
23379 conftest$ac_exeext conftest.$ac_ext
23381 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23382 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23383 if test $ac_cv_func_dlopen = yes; then
23384 lt_cv_dlopen="dlopen"
23386 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23387 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23388 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23389 echo $ECHO_N "(cached) $ECHO_C" >&6
23391 ac_check_lib_save_LIBS=$LIBS
23393 cat >conftest.$ac_ext <<_ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h. */
23400 /* Override any gcc2 internal prototype to avoid an error. */
23404 /* We use char because int might match the return type of a gcc2
23405 builtin and then its argument prototype would still apply. */
23415 rm -f conftest.$ac_objext conftest$ac_exeext
23416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23417 (eval $ac_link) 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } &&
23424 { ac_try='test -z "$ac_c_werror_flag"
23425 || test ! -s conftest.err'
23426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23427 (eval $ac_try) 2>&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; } &&
23431 { ac_try='test -s conftest$ac_exeext'
23432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433 (eval $ac_try) 2>&5
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); }; }; then
23437 ac_cv_lib_dl_dlopen=yes
23439 echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23442 ac_cv_lib_dl_dlopen=no
23444 rm -f conftest.err conftest.$ac_objext \
23445 conftest$ac_exeext conftest.$ac_ext
23446 LIBS=$ac_check_lib_save_LIBS
23448 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23449 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23450 if test $ac_cv_lib_dl_dlopen = yes; then
23451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23453 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23454 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23455 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23456 echo $ECHO_N "(cached) $ECHO_C" >&6
23458 ac_check_lib_save_LIBS=$LIBS
23459 LIBS="-lsvld $LIBS"
23460 cat >conftest.$ac_ext <<_ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23467 /* Override any gcc2 internal prototype to avoid an error. */
23471 /* We use char because int might match the return type of a gcc2
23472 builtin and then its argument prototype would still apply. */
23482 rm -f conftest.$ac_objext conftest$ac_exeext
23483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23484 (eval $ac_link) 2>conftest.er1
23486 grep -v '^ *+' conftest.er1 >conftest.err
23488 cat conftest.err >&5
23489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); } &&
23491 { ac_try='test -z "$ac_c_werror_flag"
23492 || test ! -s conftest.err'
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; } &&
23498 { ac_try='test -s conftest$ac_exeext'
23499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500 (eval $ac_try) 2>&5
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; }; then
23504 ac_cv_lib_svld_dlopen=yes
23506 echo "$as_me: failed program was:" >&5
23507 sed 's/^/| /' conftest.$ac_ext >&5
23509 ac_cv_lib_svld_dlopen=no
23511 rm -f conftest.err conftest.$ac_objext \
23512 conftest$ac_exeext conftest.$ac_ext
23513 LIBS=$ac_check_lib_save_LIBS
23515 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23516 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23517 if test $ac_cv_lib_svld_dlopen = yes; then
23518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23520 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23523 echo $ECHO_N "(cached) $ECHO_C" >&6
23525 ac_check_lib_save_LIBS=$LIBS
23527 cat >conftest.$ac_ext <<_ACEOF
23530 cat confdefs.h >>conftest.$ac_ext
23531 cat >>conftest.$ac_ext <<_ACEOF
23532 /* end confdefs.h. */
23534 /* Override any gcc2 internal prototype to avoid an error. */
23538 /* We use char because int might match the return type of a gcc2
23539 builtin and then its argument prototype would still apply. */
23549 rm -f conftest.$ac_objext conftest$ac_exeext
23550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23551 (eval $ac_link) 2>conftest.er1
23553 grep -v '^ *+' conftest.er1 >conftest.err
23555 cat conftest.err >&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } &&
23558 { ac_try='test -z "$ac_c_werror_flag"
23559 || test ! -s conftest.err'
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; } &&
23565 { ac_try='test -s conftest$ac_exeext'
23566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23567 (eval $ac_try) 2>&5
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); }; }; then
23571 ac_cv_lib_dld_dld_link=yes
23573 echo "$as_me: failed program was:" >&5
23574 sed 's/^/| /' conftest.$ac_ext >&5
23576 ac_cv_lib_dld_dld_link=no
23578 rm -f conftest.err conftest.$ac_objext \
23579 conftest$ac_exeext conftest.$ac_ext
23580 LIBS=$ac_check_lib_save_LIBS
23582 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23583 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23584 if test $ac_cv_lib_dld_dld_link = yes; then
23585 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23606 if test "x$lt_cv_dlopen" != xno; then
23612 case $lt_cv_dlopen in
23614 save_CPPFLAGS="$CPPFLAGS"
23615 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23617 save_LDFLAGS="$LDFLAGS"
23618 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23621 LIBS="$lt_cv_dlopen_libs $LIBS"
23623 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23624 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23625 if test "${lt_cv_dlopen_self+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23628 if test "$cross_compiling" = yes; then :
23629 lt_cv_dlopen_self=cross
23631 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23632 lt_status=$lt_dlunknown
23633 cat > conftest.$ac_ext <<EOF
23634 #line 23635 "configure"
23635 #include "confdefs.h"
23644 # define LT_DLGLOBAL RTLD_GLOBAL
23647 # define LT_DLGLOBAL DL_GLOBAL
23649 # define LT_DLGLOBAL 0
23653 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23654 find out it does not work in some platform. */
23655 #ifndef LT_DLLAZY_OR_NOW
23657 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23660 # define LT_DLLAZY_OR_NOW DL_LAZY
23663 # define LT_DLLAZY_OR_NOW RTLD_NOW
23666 # define LT_DLLAZY_OR_NOW DL_NOW
23668 # define LT_DLLAZY_OR_NOW 0
23676 extern "C" void exit (int);
23679 void fnord() { int i=42;}
23682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23683 int status = $lt_dlunknown;
23687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23688 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23689 /* dlclose (self); */
23695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23696 (eval $ac_link) 2>&5
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23700 (./conftest; exit; ) 2>/dev/null
23702 case x$lt_status in
23703 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23704 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23705 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23708 # compilation failed
23709 lt_cv_dlopen_self=no
23716 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23717 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23719 if test "x$lt_cv_dlopen_self" = xyes; then
23720 LDFLAGS="$LDFLAGS $link_static_flag"
23721 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23722 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23723 if test "${lt_cv_dlopen_self_static+set}" = set; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23726 if test "$cross_compiling" = yes; then :
23727 lt_cv_dlopen_self_static=cross
23729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23730 lt_status=$lt_dlunknown
23731 cat > conftest.$ac_ext <<EOF
23732 #line 23733 "configure"
23733 #include "confdefs.h"
23742 # define LT_DLGLOBAL RTLD_GLOBAL
23745 # define LT_DLGLOBAL DL_GLOBAL
23747 # define LT_DLGLOBAL 0
23751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23752 find out it does not work in some platform. */
23753 #ifndef LT_DLLAZY_OR_NOW
23755 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23758 # define LT_DLLAZY_OR_NOW DL_LAZY
23761 # define LT_DLLAZY_OR_NOW RTLD_NOW
23764 # define LT_DLLAZY_OR_NOW DL_NOW
23766 # define LT_DLLAZY_OR_NOW 0
23774 extern "C" void exit (int);
23777 void fnord() { int i=42;}
23780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23781 int status = $lt_dlunknown;
23785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23786 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23787 /* dlclose (self); */
23793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23794 (eval $ac_link) 2>&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23798 (./conftest; exit; ) 2>/dev/null
23800 case x$lt_status in
23801 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23802 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23803 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23806 # compilation failed
23807 lt_cv_dlopen_self_static=no
23814 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23815 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23818 CPPFLAGS="$save_CPPFLAGS"
23819 LDFLAGS="$save_LDFLAGS"
23824 case $lt_cv_dlopen_self in
23825 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23826 *) enable_dlopen_self=unknown ;;
23829 case $lt_cv_dlopen_self_static in
23830 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23831 *) enable_dlopen_self_static=unknown ;;
23836 # The else clause should only fire when bootstrapping the
23837 # libtool distribution, otherwise you forgot to ship ltmain.sh
23838 # with your package, and you will get complaints that there are
23839 # no rules to generate ltmain.sh.
23840 if test -f "$ltmain"; then
23841 # See if we are running on zsh, and set the options which allow our commands through
23842 # without removal of \ escapes.
23843 if test -n "${ZSH_VERSION+set}" ; then
23844 setopt NO_GLOB_SUBST
23846 # Now quote all the things that may contain metacharacters while being
23847 # careful not to overquote the AC_SUBSTed values. We take copies of the
23848 # variables and quote the copies for generation of the libtool script.
23849 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23851 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23852 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23853 deplibs_check_method reload_flag reload_cmds need_locks \
23854 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23855 lt_cv_sys_global_symbol_to_c_name_address \
23856 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23857 old_postinstall_cmds old_postuninstall_cmds \
23861 lt_prog_compiler_wl_GCJ \
23862 lt_prog_compiler_pic_GCJ \
23863 lt_prog_compiler_static_GCJ \
23864 lt_prog_compiler_no_builtin_flag_GCJ \
23865 export_dynamic_flag_spec_GCJ \
23866 thread_safe_flag_spec_GCJ \
23867 whole_archive_flag_spec_GCJ \
23868 enable_shared_with_static_runtimes_GCJ \
23869 old_archive_cmds_GCJ \
23870 old_archive_from_new_cmds_GCJ \
23871 predep_objects_GCJ \
23872 postdep_objects_GCJ \
23875 compiler_lib_search_path_GCJ \
23877 archive_expsym_cmds_GCJ \
23878 postinstall_cmds_GCJ \
23879 postuninstall_cmds_GCJ \
23880 old_archive_from_expsyms_cmds_GCJ \
23881 allow_undefined_flag_GCJ \
23882 no_undefined_flag_GCJ \
23883 export_symbols_cmds_GCJ \
23884 hardcode_libdir_flag_spec_GCJ \
23885 hardcode_libdir_flag_spec_ld_GCJ \
23886 hardcode_libdir_separator_GCJ \
23887 hardcode_automatic_GCJ \
23889 module_expsym_cmds_GCJ \
23890 lt_cv_prog_compiler_c_o_GCJ \
23891 exclude_expsyms_GCJ \
23892 include_expsyms_GCJ; do
23895 old_archive_cmds_GCJ | \
23896 old_archive_from_new_cmds_GCJ | \
23897 archive_cmds_GCJ | \
23898 archive_expsym_cmds_GCJ | \
23899 module_cmds_GCJ | \
23900 module_expsym_cmds_GCJ | \
23901 old_archive_from_expsyms_cmds_GCJ | \
23902 export_symbols_cmds_GCJ | \
23903 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23904 postinstall_cmds | postuninstall_cmds | \
23905 old_postinstall_cmds | old_postuninstall_cmds | \
23906 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23907 # Double-quote double-evaled strings.
23908 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23917 *'\$0 --fallback-echo"')
23918 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23924 cat <<__EOF__ >> "$cfgfile"
23925 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23927 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23929 # Shell to use when invoking shell scripts.
23932 # Whether or not to build shared libraries.
23933 build_libtool_libs=$enable_shared
23935 # Whether or not to build static libraries.
23936 build_old_libs=$enable_static
23938 # Whether or not to add -lc for building shared libraries.
23939 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23941 # Whether or not to disallow shared libs when runtime libs are static
23942 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23944 # Whether or not to optimize for fast installation.
23945 fast_install=$enable_fast_install
23948 host_alias=$host_alias
23951 # An echo program that does not interpret backslashes.
23956 AR_FLAGS=$lt_AR_FLAGS
23961 # A language-specific compiler.
23962 CC=$lt_compiler_GCJ
23964 # Is the compiler the GNU C compiler?
23970 # The linker used to build libraries.
23973 # Whether we need hard or soft links.
23976 # A BSD-compatible nm program.
23979 # A symbol stripping program
23982 # Used to examine libraries when file_magic_cmd begins "file"
23983 MAGIC_CMD=$MAGIC_CMD
23985 # Used on cygwin: DLL creation program.
23988 # Used on cygwin: object dumper.
23991 # Used on cygwin: assembler.
23994 # The name of the directory that contains temporary libtool files.
23997 # How to create reloadable object files.
23998 reload_flag=$lt_reload_flag
23999 reload_cmds=$lt_reload_cmds
24001 # How to pass a linker flag through the compiler.
24002 wl=$lt_lt_prog_compiler_wl_GCJ
24004 # Object file suffix (normally "o").
24005 objext="$ac_objext"
24007 # Old archive suffix (normally "a").
24010 # Shared library suffix (normally ".so").
24011 shrext_cmds='$shrext_cmds'
24013 # Executable file suffix (normally "").
24016 # Additional compiler flags for building library objects.
24017 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24020 # What is the maximum length of a command?
24021 max_cmd_len=$lt_cv_sys_max_cmd_len
24023 # Does compiler simultaneously support -c and -o options?
24024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24026 # Must we lock files when doing compilation ?
24027 need_locks=$lt_need_locks
24029 # Do we need the lib prefix for modules?
24030 need_lib_prefix=$need_lib_prefix
24032 # Do we need a version for libraries?
24033 need_version=$need_version
24035 # Whether dlopen is supported.
24036 dlopen_support=$enable_dlopen
24038 # Whether dlopen of programs is supported.
24039 dlopen_self=$enable_dlopen_self
24041 # Whether dlopen of statically linked programs is supported.
24042 dlopen_self_static=$enable_dlopen_self_static
24044 # Compiler flag to prevent dynamic linking.
24045 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24047 # Compiler flag to turn off builtin functions.
24048 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24050 # Compiler flag to allow reflexive dlopens.
24051 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24053 # Compiler flag to generate shared objects directly from archives.
24054 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24056 # Compiler flag to generate thread-safe objects.
24057 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24059 # Library versioning type.
24060 version_type=$version_type
24062 # Format of library name prefix.
24063 libname_spec=$lt_libname_spec
24065 # List of archive names. First name is the real one, the rest are links.
24066 # The last name is the one that the linker finds with -lNAME.
24067 library_names_spec=$lt_library_names_spec
24069 # The coded name of the library, if different from the real name.
24070 soname_spec=$lt_soname_spec
24072 # Commands used to build and install an old-style archive.
24074 old_archive_cmds=$lt_old_archive_cmds_GCJ
24075 old_postinstall_cmds=$lt_old_postinstall_cmds
24076 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24078 # Create an old-style archive from a shared archive.
24079 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24081 # Create a temporary old-style archive to link instead of a shared archive.
24082 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24084 # Commands used to build and install a shared archive.
24085 archive_cmds=$lt_archive_cmds_GCJ
24086 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24087 postinstall_cmds=$lt_postinstall_cmds
24088 postuninstall_cmds=$lt_postuninstall_cmds
24090 # Commands used to build a loadable module (assumed same as above if empty)
24091 module_cmds=$lt_module_cmds_GCJ
24092 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24094 # Commands to strip libraries.
24095 old_striplib=$lt_old_striplib
24096 striplib=$lt_striplib
24098 # Dependencies to place before the objects being linked to create a
24100 predep_objects=$lt_predep_objects_GCJ
24102 # Dependencies to place after the objects being linked to create a
24104 postdep_objects=$lt_postdep_objects_GCJ
24106 # Dependencies to place before the objects being linked to create a
24108 predeps=$lt_predeps_GCJ
24110 # Dependencies to place after the objects being linked to create a
24112 postdeps=$lt_postdeps_GCJ
24114 # The library search path used internally by the compiler when linking
24115 # a shared library.
24116 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24118 # Method to check whether dependent libraries are shared objects.
24119 deplibs_check_method=$lt_deplibs_check_method
24121 # Command to use when deplibs_check_method == file_magic.
24122 file_magic_cmd=$lt_file_magic_cmd
24124 # Flag that allows shared libraries with undefined symbols to be built.
24125 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24127 # Flag that forces no undefined symbols.
24128 no_undefined_flag=$lt_no_undefined_flag_GCJ
24130 # Commands used to finish a libtool library installation in a directory.
24131 finish_cmds=$lt_finish_cmds
24133 # Same as above, but a single script fragment to be evaled but not shown.
24134 finish_eval=$lt_finish_eval
24136 # Take the output of nm and produce a listing of raw symbols and C names.
24137 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24139 # Transform the output of nm in a proper C declaration
24140 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24142 # Transform the output of nm in a C name address pair
24143 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24145 # This is the shared library runtime path variable.
24146 runpath_var=$runpath_var
24148 # This is the shared library path variable.
24149 shlibpath_var=$shlibpath_var
24151 # Is shlibpath searched before the hard-coded library search path?
24152 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24154 # How to hardcode a shared library path into an executable.
24155 hardcode_action=$hardcode_action_GCJ
24157 # Whether we should hardcode library paths into libraries.
24158 hardcode_into_libs=$hardcode_into_libs
24160 # Flag to hardcode \$libdir into a binary during linking.
24161 # This must work even if \$libdir does not exist.
24162 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24164 # If ld is used when linking, flag to hardcode \$libdir into
24165 # a binary during linking. This must work even if \$libdir does
24167 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24169 # Whether we need a single -rpath flag with a separated argument.
24170 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24172 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24173 # resulting binary.
24174 hardcode_direct=$hardcode_direct_GCJ
24176 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24177 # resulting binary.
24178 hardcode_minus_L=$hardcode_minus_L_GCJ
24180 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24181 # the resulting binary.
24182 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24184 # Set to yes if building a shared library automatically hardcodes DIR into the library
24185 # and all subsequent libraries and executables linked against it.
24186 hardcode_automatic=$hardcode_automatic_GCJ
24188 # Variables whose values should be saved in libtool wrapper scripts and
24189 # restored at relink time.
24190 variables_saved_for_relink="$variables_saved_for_relink"
24192 # Whether libtool must link a program against all its dependency libraries.
24193 link_all_deplibs=$link_all_deplibs_GCJ
24195 # Compile-time system search path for libraries
24196 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24198 # Run-time system search path for libraries
24199 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24201 # Fix the shell variable \$srcfile for the compiler.
24202 fix_srcfile_path="$fix_srcfile_path_GCJ"
24204 # Set to yes if exported symbols are required.
24205 always_export_symbols=$always_export_symbols_GCJ
24207 # The commands to list exported symbols.
24208 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24210 # The commands to extract the exported symbol list from a shared archive.
24211 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24213 # Symbols that should not be listed in the preloaded symbols.
24214 exclude_expsyms=$lt_exclude_expsyms_GCJ
24216 # Symbols that must always be exported.
24217 include_expsyms=$lt_include_expsyms_GCJ
24219 # ### END LIBTOOL TAG CONFIG: $tagname
24225 # If there is no Makefile yet, we rely on a make rule to execute
24226 # `config.status --recheck' to rerun these tests and create the
24227 # libtool script then.
24228 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24229 if test -f "$ltmain_in"; then
24230 test -f Makefile && make "$ltmain"
24236 ac_cpp='$CPP $CPPFLAGS'
24237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24250 ac_cpp='$CPP $CPPFLAGS'
24251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24256 # Source file extension for RC test sources.
24259 # Object file extension for compiled RC test sources.
24263 # Code to be used in simple compile tests
24264 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24266 # Code to be used in simple link tests
24267 lt_simple_link_test_code="$lt_simple_compile_test_code"
24269 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24271 # If no C compiler was specified, use CC.
24274 # Allow CC to be a program name with arguments.
24278 # Allow CC to be a program name with arguments.
24283 lt_cv_prog_compiler_c_o_RC=yes
24285 # The else clause should only fire when bootstrapping the
24286 # libtool distribution, otherwise you forgot to ship ltmain.sh
24287 # with your package, and you will get complaints that there are
24288 # no rules to generate ltmain.sh.
24289 if test -f "$ltmain"; then
24290 # See if we are running on zsh, and set the options which allow our commands through
24291 # without removal of \ escapes.
24292 if test -n "${ZSH_VERSION+set}" ; then
24293 setopt NO_GLOB_SUBST
24295 # Now quote all the things that may contain metacharacters while being
24296 # careful not to overquote the AC_SUBSTed values. We take copies of the
24297 # variables and quote the copies for generation of the libtool script.
24298 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24300 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24301 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24302 deplibs_check_method reload_flag reload_cmds need_locks \
24303 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24304 lt_cv_sys_global_symbol_to_c_name_address \
24305 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24306 old_postinstall_cmds old_postuninstall_cmds \
24310 lt_prog_compiler_wl_RC \
24311 lt_prog_compiler_pic_RC \
24312 lt_prog_compiler_static_RC \
24313 lt_prog_compiler_no_builtin_flag_RC \
24314 export_dynamic_flag_spec_RC \
24315 thread_safe_flag_spec_RC \
24316 whole_archive_flag_spec_RC \
24317 enable_shared_with_static_runtimes_RC \
24318 old_archive_cmds_RC \
24319 old_archive_from_new_cmds_RC \
24320 predep_objects_RC \
24321 postdep_objects_RC \
24324 compiler_lib_search_path_RC \
24326 archive_expsym_cmds_RC \
24327 postinstall_cmds_RC \
24328 postuninstall_cmds_RC \
24329 old_archive_from_expsyms_cmds_RC \
24330 allow_undefined_flag_RC \
24331 no_undefined_flag_RC \
24332 export_symbols_cmds_RC \
24333 hardcode_libdir_flag_spec_RC \
24334 hardcode_libdir_flag_spec_ld_RC \
24335 hardcode_libdir_separator_RC \
24336 hardcode_automatic_RC \
24338 module_expsym_cmds_RC \
24339 lt_cv_prog_compiler_c_o_RC \
24340 exclude_expsyms_RC \
24341 include_expsyms_RC; do
24344 old_archive_cmds_RC | \
24345 old_archive_from_new_cmds_RC | \
24346 archive_cmds_RC | \
24347 archive_expsym_cmds_RC | \
24349 module_expsym_cmds_RC | \
24350 old_archive_from_expsyms_cmds_RC | \
24351 export_symbols_cmds_RC | \
24352 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24353 postinstall_cmds | postuninstall_cmds | \
24354 old_postinstall_cmds | old_postuninstall_cmds | \
24355 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24356 # Double-quote double-evaled strings.
24357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24366 *'\$0 --fallback-echo"')
24367 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24373 cat <<__EOF__ >> "$cfgfile"
24374 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24376 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24378 # Shell to use when invoking shell scripts.
24381 # Whether or not to build shared libraries.
24382 build_libtool_libs=$enable_shared
24384 # Whether or not to build static libraries.
24385 build_old_libs=$enable_static
24387 # Whether or not to add -lc for building shared libraries.
24388 build_libtool_need_lc=$archive_cmds_need_lc_RC
24390 # Whether or not to disallow shared libs when runtime libs are static
24391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24393 # Whether or not to optimize for fast installation.
24394 fast_install=$enable_fast_install
24397 host_alias=$host_alias
24400 # An echo program that does not interpret backslashes.
24405 AR_FLAGS=$lt_AR_FLAGS
24410 # A language-specific compiler.
24413 # Is the compiler the GNU C compiler?
24419 # The linker used to build libraries.
24422 # Whether we need hard or soft links.
24425 # A BSD-compatible nm program.
24428 # A symbol stripping program
24431 # Used to examine libraries when file_magic_cmd begins "file"
24432 MAGIC_CMD=$MAGIC_CMD
24434 # Used on cygwin: DLL creation program.
24437 # Used on cygwin: object dumper.
24440 # Used on cygwin: assembler.
24443 # The name of the directory that contains temporary libtool files.
24446 # How to create reloadable object files.
24447 reload_flag=$lt_reload_flag
24448 reload_cmds=$lt_reload_cmds
24450 # How to pass a linker flag through the compiler.
24451 wl=$lt_lt_prog_compiler_wl_RC
24453 # Object file suffix (normally "o").
24454 objext="$ac_objext"
24456 # Old archive suffix (normally "a").
24459 # Shared library suffix (normally ".so").
24460 shrext_cmds='$shrext_cmds'
24462 # Executable file suffix (normally "").
24465 # Additional compiler flags for building library objects.
24466 pic_flag=$lt_lt_prog_compiler_pic_RC
24469 # What is the maximum length of a command?
24470 max_cmd_len=$lt_cv_sys_max_cmd_len
24472 # Does compiler simultaneously support -c and -o options?
24473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24475 # Must we lock files when doing compilation ?
24476 need_locks=$lt_need_locks
24478 # Do we need the lib prefix for modules?
24479 need_lib_prefix=$need_lib_prefix
24481 # Do we need a version for libraries?
24482 need_version=$need_version
24484 # Whether dlopen is supported.
24485 dlopen_support=$enable_dlopen
24487 # Whether dlopen of programs is supported.
24488 dlopen_self=$enable_dlopen_self
24490 # Whether dlopen of statically linked programs is supported.
24491 dlopen_self_static=$enable_dlopen_self_static
24493 # Compiler flag to prevent dynamic linking.
24494 link_static_flag=$lt_lt_prog_compiler_static_RC
24496 # Compiler flag to turn off builtin functions.
24497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24499 # Compiler flag to allow reflexive dlopens.
24500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24502 # Compiler flag to generate shared objects directly from archives.
24503 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24505 # Compiler flag to generate thread-safe objects.
24506 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24508 # Library versioning type.
24509 version_type=$version_type
24511 # Format of library name prefix.
24512 libname_spec=$lt_libname_spec
24514 # List of archive names. First name is the real one, the rest are links.
24515 # The last name is the one that the linker finds with -lNAME.
24516 library_names_spec=$lt_library_names_spec
24518 # The coded name of the library, if different from the real name.
24519 soname_spec=$lt_soname_spec
24521 # Commands used to build and install an old-style archive.
24523 old_archive_cmds=$lt_old_archive_cmds_RC
24524 old_postinstall_cmds=$lt_old_postinstall_cmds
24525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24527 # Create an old-style archive from a shared archive.
24528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24530 # Create a temporary old-style archive to link instead of a shared archive.
24531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24533 # Commands used to build and install a shared archive.
24534 archive_cmds=$lt_archive_cmds_RC
24535 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24536 postinstall_cmds=$lt_postinstall_cmds
24537 postuninstall_cmds=$lt_postuninstall_cmds
24539 # Commands used to build a loadable module (assumed same as above if empty)
24540 module_cmds=$lt_module_cmds_RC
24541 module_expsym_cmds=$lt_module_expsym_cmds_RC
24543 # Commands to strip libraries.
24544 old_striplib=$lt_old_striplib
24545 striplib=$lt_striplib
24547 # Dependencies to place before the objects being linked to create a
24549 predep_objects=$lt_predep_objects_RC
24551 # Dependencies to place after the objects being linked to create a
24553 postdep_objects=$lt_postdep_objects_RC
24555 # Dependencies to place before the objects being linked to create a
24557 predeps=$lt_predeps_RC
24559 # Dependencies to place after the objects being linked to create a
24561 postdeps=$lt_postdeps_RC
24563 # The library search path used internally by the compiler when linking
24564 # a shared library.
24565 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24567 # Method to check whether dependent libraries are shared objects.
24568 deplibs_check_method=$lt_deplibs_check_method
24570 # Command to use when deplibs_check_method == file_magic.
24571 file_magic_cmd=$lt_file_magic_cmd
24573 # Flag that allows shared libraries with undefined symbols to be built.
24574 allow_undefined_flag=$lt_allow_undefined_flag_RC
24576 # Flag that forces no undefined symbols.
24577 no_undefined_flag=$lt_no_undefined_flag_RC
24579 # Commands used to finish a libtool library installation in a directory.
24580 finish_cmds=$lt_finish_cmds
24582 # Same as above, but a single script fragment to be evaled but not shown.
24583 finish_eval=$lt_finish_eval
24585 # Take the output of nm and produce a listing of raw symbols and C names.
24586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24588 # Transform the output of nm in a proper C declaration
24589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24591 # Transform the output of nm in a C name address pair
24592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24594 # This is the shared library runtime path variable.
24595 runpath_var=$runpath_var
24597 # This is the shared library path variable.
24598 shlibpath_var=$shlibpath_var
24600 # Is shlibpath searched before the hard-coded library search path?
24601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24603 # How to hardcode a shared library path into an executable.
24604 hardcode_action=$hardcode_action_RC
24606 # Whether we should hardcode library paths into libraries.
24607 hardcode_into_libs=$hardcode_into_libs
24609 # Flag to hardcode \$libdir into a binary during linking.
24610 # This must work even if \$libdir does not exist.
24611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24613 # If ld is used when linking, flag to hardcode \$libdir into
24614 # a binary during linking. This must work even if \$libdir does
24616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24618 # Whether we need a single -rpath flag with a separated argument.
24619 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24621 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24622 # resulting binary.
24623 hardcode_direct=$hardcode_direct_RC
24625 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24626 # resulting binary.
24627 hardcode_minus_L=$hardcode_minus_L_RC
24629 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24630 # the resulting binary.
24631 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24633 # Set to yes if building a shared library automatically hardcodes DIR into the library
24634 # and all subsequent libraries and executables linked against it.
24635 hardcode_automatic=$hardcode_automatic_RC
24637 # Variables whose values should be saved in libtool wrapper scripts and
24638 # restored at relink time.
24639 variables_saved_for_relink="$variables_saved_for_relink"
24641 # Whether libtool must link a program against all its dependency libraries.
24642 link_all_deplibs=$link_all_deplibs_RC
24644 # Compile-time system search path for libraries
24645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24647 # Run-time system search path for libraries
24648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24650 # Fix the shell variable \$srcfile for the compiler.
24651 fix_srcfile_path="$fix_srcfile_path_RC"
24653 # Set to yes if exported symbols are required.
24654 always_export_symbols=$always_export_symbols_RC
24656 # The commands to list exported symbols.
24657 export_symbols_cmds=$lt_export_symbols_cmds_RC
24659 # The commands to extract the exported symbol list from a shared archive.
24660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24662 # Symbols that should not be listed in the preloaded symbols.
24663 exclude_expsyms=$lt_exclude_expsyms_RC
24665 # Symbols that must always be exported.
24666 include_expsyms=$lt_include_expsyms_RC
24668 # ### END LIBTOOL TAG CONFIG: $tagname
24674 # If there is no Makefile yet, we rely on a make rule to execute
24675 # `config.status --recheck' to rerun these tests and create the
24676 # libtool script then.
24677 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24678 if test -f "$ltmain_in"; then
24679 test -f Makefile && make "$ltmain"
24685 ac_cpp='$CPP $CPPFLAGS'
24686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24695 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24696 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24697 { (exit 1); exit 1; }; }
24701 # Append the new tag name to the list of available tags.
24702 if test -n "$tagname" ; then
24703 available_tags="$available_tags $tagname"
24709 # Now substitute the updated list of available tags.
24710 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24711 mv "${ofile}T" "$ofile"
24715 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24716 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24717 { (exit 1); exit 1; }; }
24723 # This can be used to rebuild libtool when needed
24724 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24726 # Always use our own libtool.
24727 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24729 # Prevent multiple expansion
24751 if test "$lt_cv_dlopen_self" = "yes" ; then
24753 cat >>confdefs.h <<\_ACEOF
24754 #define CAN_DLOPEN_SELF 1
24759 etags_version=`$ETAGS --version 2>&1`
24760 case "$etags_version" in
24761 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24762 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24763 *) ETAGSFLAGS="" ;;
24765 ETAGSFLAGS=$ETAGSFLAGS
24768 if test "$WITH_LLVMGCCDIR" = "default" ; then
24769 LLVMGCC="llvm-gcc${EXEEXT}"
24770 LLVMGXX="llvm-g++${EXEEXT}"
24771 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24772 set dummy $LLVMGCC; ac_word=$2
24773 echo "$as_me:$LINENO: checking for $ac_word" >&5
24774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24775 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24776 echo $ECHO_N "(cached) $ECHO_C" >&6
24780 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24784 for as_dir in $PATH
24787 test -z "$as_dir" && as_dir=.
24788 for ac_exec_ext in '' $ac_executable_extensions; do
24789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24790 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24800 LLVMGCC=$ac_cv_path_LLVMGCC
24802 if test -n "$LLVMGCC"; then
24803 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24804 echo "${ECHO_T}$LLVMGCC" >&6
24806 echo "$as_me:$LINENO: result: no" >&5
24807 echo "${ECHO_T}no" >&6
24810 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24811 set dummy $LLVMGXX; ac_word=$2
24812 echo "$as_me:$LINENO: checking for $ac_word" >&5
24813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24814 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24815 echo $ECHO_N "(cached) $ECHO_C" >&6
24819 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24823 for as_dir in $PATH
24826 test -z "$as_dir" && as_dir=.
24827 for ac_exec_ext in '' $ac_executable_extensions; do
24828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24829 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24839 LLVMGXX=$ac_cv_path_LLVMGXX
24841 if test -n "$LLVMGXX"; then
24842 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24843 echo "${ECHO_T}$LLVMGXX" >&6
24845 echo "$as_me:$LINENO: result: no" >&5
24846 echo "${ECHO_T}no" >&6
24850 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24851 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24858 echo "$as_me:$LINENO: checking tool compatibility" >&5
24859 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24872 if test "$GCC" != "yes" && test "$ICC" != "yes"
24874 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24875 echo "$as_me: error: gcc|icc required but not found" >&2;}
24876 { (exit 1); exit 1; }; }
24879 if test "$GXX" != "yes" && test "$IXX" != "yes"
24881 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24882 echo "$as_me: error: g++|icc required but not found" >&2;}
24883 { (exit 1); exit 1; }; }
24886 if test "$GCC" = "yes"
24888 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24889 if test "$gccmajor" -lt "3"
24891 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24892 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24893 { (exit 1); exit 1; }; }
24897 if test -z "$llvm_cv_gnu_make_command"
24899 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24900 echo "$as_me: error: GNU Make required but not found" >&2;}
24901 { (exit 1); exit 1; }; }
24904 echo "$as_me:$LINENO: result: ok" >&5
24905 echo "${ECHO_T}ok" >&6
24909 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24910 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24911 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24912 echo $ECHO_N "(cached) $ECHO_C" >&6
24914 ac_check_lib_save_LIBS=$LIBS
24916 cat >conftest.$ac_ext <<_ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24923 /* Override any gcc2 internal prototype to avoid an error. */
24927 /* We use char because int might match the return type of a gcc2
24928 builtin and then its argument prototype would still apply. */
24938 rm -f conftest.$ac_objext conftest$ac_exeext
24939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24940 (eval $ac_link) 2>conftest.er1
24942 grep -v '^ *+' conftest.er1 >conftest.err
24944 cat conftest.err >&5
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); } &&
24947 { ac_try='test -z "$ac_c_werror_flag"
24948 || test ! -s conftest.err'
24949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950 (eval $ac_try) 2>&5
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); }; } &&
24954 { ac_try='test -s conftest$ac_exeext'
24955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24956 (eval $ac_try) 2>&5
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); }; }; then
24960 ac_cv_lib_elf_elf_begin=yes
24962 echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24965 ac_cv_lib_elf_elf_begin=no
24967 rm -f conftest.err conftest.$ac_objext \
24968 conftest$ac_exeext conftest.$ac_ext
24969 LIBS=$ac_check_lib_save_LIBS
24971 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24972 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24973 if test $ac_cv_lib_elf_elf_begin = yes; then
24974 cat >>confdefs.h <<_ACEOF
24975 #define HAVE_LIBELF 1
24983 echo "$as_me:$LINENO: checking for sin in -lm" >&5
24984 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
24985 if test "${ac_cv_lib_m_sin+set}" = set; then
24986 echo $ECHO_N "(cached) $ECHO_C" >&6
24988 ac_check_lib_save_LIBS=$LIBS
24990 cat >conftest.$ac_ext <<_ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24997 /* Override any gcc2 internal prototype to avoid an error. */
25001 /* We use char because int might match the return type of a gcc2
25002 builtin and then its argument prototype would still apply. */
25012 rm -f conftest.$ac_objext conftest$ac_exeext
25013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25014 (eval $ac_link) 2>conftest.er1
25016 grep -v '^ *+' conftest.er1 >conftest.err
25018 cat conftest.err >&5
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); } &&
25021 { ac_try='test -z "$ac_c_werror_flag"
25022 || test ! -s conftest.err'
25023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25024 (eval $ac_try) 2>&5
25026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); }; } &&
25028 { ac_try='test -s conftest$ac_exeext'
25029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25030 (eval $ac_try) 2>&5
25032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); }; }; then
25034 ac_cv_lib_m_sin=yes
25036 echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25041 rm -f conftest.err conftest.$ac_objext \
25042 conftest$ac_exeext conftest.$ac_ext
25043 LIBS=$ac_check_lib_save_LIBS
25045 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25046 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25047 if test $ac_cv_lib_m_sin = yes; then
25048 cat >>confdefs.h <<_ACEOF
25049 #define HAVE_LIBM 1
25057 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25058 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25059 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25060 echo $ECHO_N "(cached) $ECHO_C" >&6
25062 ac_func_search_save_LIBS=$LIBS
25063 ac_cv_search_lt_dlopen=no
25064 cat >conftest.$ac_ext <<_ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h. */
25071 /* Override any gcc2 internal prototype to avoid an error. */
25075 /* We use char because int might match the return type of a gcc2
25076 builtin and then its argument prototype would still apply. */
25086 rm -f conftest.$ac_objext conftest$ac_exeext
25087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25088 (eval $ac_link) 2>conftest.er1
25090 grep -v '^ *+' conftest.er1 >conftest.err
25092 cat conftest.err >&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } &&
25095 { ac_try='test -z "$ac_c_werror_flag"
25096 || test ! -s conftest.err'
25097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098 (eval $ac_try) 2>&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; } &&
25102 { ac_try='test -s conftest$ac_exeext'
25103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25104 (eval $ac_try) 2>&5
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); }; }; then
25108 ac_cv_search_lt_dlopen="none required"
25110 echo "$as_me: failed program was:" >&5
25111 sed 's/^/| /' conftest.$ac_ext >&5
25114 rm -f conftest.err conftest.$ac_objext \
25115 conftest$ac_exeext conftest.$ac_ext
25116 if test "$ac_cv_search_lt_dlopen" = no; then
25117 for ac_lib in ltdl; do
25118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25119 cat >conftest.$ac_ext <<_ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h. */
25126 /* Override any gcc2 internal prototype to avoid an error. */
25130 /* We use char because int might match the return type of a gcc2
25131 builtin and then its argument prototype would still apply. */
25141 rm -f conftest.$ac_objext conftest$ac_exeext
25142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25143 (eval $ac_link) 2>conftest.er1
25145 grep -v '^ *+' conftest.er1 >conftest.err
25147 cat conftest.err >&5
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); } &&
25150 { ac_try='test -z "$ac_c_werror_flag"
25151 || test ! -s conftest.err'
25152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25153 (eval $ac_try) 2>&5
25155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); }; } &&
25157 { ac_try='test -s conftest$ac_exeext'
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
25163 ac_cv_search_lt_dlopen="-l$ac_lib"
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25170 rm -f conftest.err conftest.$ac_objext \
25171 conftest$ac_exeext conftest.$ac_ext
25174 LIBS=$ac_func_search_save_LIBS
25176 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25177 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25178 if test "$ac_cv_search_lt_dlopen" != no; then
25179 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25181 cat >>confdefs.h <<\_ACEOF
25182 #define HAVE_LT_DLOPEN 1
25186 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25187 not be available" >&5
25188 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25189 not be available" >&2;}
25193 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25194 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25195 if test "${ac_cv_search_dlopen+set}" = set; then
25196 echo $ECHO_N "(cached) $ECHO_C" >&6
25198 ac_func_search_save_LIBS=$LIBS
25199 ac_cv_search_dlopen=no
25200 cat >conftest.$ac_ext <<_ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h. */
25207 /* Override any gcc2 internal prototype to avoid an error. */
25211 /* We use char because int might match the return type of a gcc2
25212 builtin and then its argument prototype would still apply. */
25222 rm -f conftest.$ac_objext conftest$ac_exeext
25223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25224 (eval $ac_link) 2>conftest.er1
25226 grep -v '^ *+' conftest.er1 >conftest.err
25228 cat conftest.err >&5
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); } &&
25231 { ac_try='test -z "$ac_c_werror_flag"
25232 || test ! -s conftest.err'
25233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25234 (eval $ac_try) 2>&5
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; } &&
25238 { ac_try='test -s conftest$ac_exeext'
25239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240 (eval $ac_try) 2>&5
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; }; then
25244 ac_cv_search_dlopen="none required"
25246 echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25250 rm -f conftest.err conftest.$ac_objext \
25251 conftest$ac_exeext conftest.$ac_ext
25252 if test "$ac_cv_search_dlopen" = no; then
25253 for ac_lib in dl; do
25254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25255 cat >conftest.$ac_ext <<_ACEOF
25258 cat confdefs.h >>conftest.$ac_ext
25259 cat >>conftest.$ac_ext <<_ACEOF
25260 /* end confdefs.h. */
25262 /* Override any gcc2 internal prototype to avoid an error. */
25266 /* We use char because int might match the return type of a gcc2
25267 builtin and then its argument prototype would still apply. */
25277 rm -f conftest.$ac_objext conftest$ac_exeext
25278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25279 (eval $ac_link) 2>conftest.er1
25281 grep -v '^ *+' conftest.er1 >conftest.err
25283 cat conftest.err >&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); } &&
25286 { ac_try='test -z "$ac_c_werror_flag"
25287 || test ! -s conftest.err'
25288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289 (eval $ac_try) 2>&5
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; } &&
25293 { ac_try='test -s conftest$ac_exeext'
25294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25295 (eval $ac_try) 2>&5
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); }; }; then
25299 ac_cv_search_dlopen="-l$ac_lib"
25302 echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25306 rm -f conftest.err conftest.$ac_objext \
25307 conftest$ac_exeext conftest.$ac_ext
25310 LIBS=$ac_func_search_save_LIBS
25312 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25313 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25314 if test "$ac_cv_search_dlopen" != no; then
25315 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25317 cat >>confdefs.h <<\_ACEOF
25318 #define HAVE_DLOPEN 1
25322 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25323 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25327 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25328 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25329 if test "${ac_cv_search_mallinfo+set}" = set; then
25330 echo $ECHO_N "(cached) $ECHO_C" >&6
25332 ac_func_search_save_LIBS=$LIBS
25333 ac_cv_search_mallinfo=no
25334 cat >conftest.$ac_ext <<_ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h. */
25341 /* Override any gcc2 internal prototype to avoid an error. */
25345 /* We use char because int might match the return type of a gcc2
25346 builtin and then its argument prototype would still apply. */
25356 rm -f conftest.$ac_objext conftest$ac_exeext
25357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25358 (eval $ac_link) 2>conftest.er1
25360 grep -v '^ *+' conftest.er1 >conftest.err
25362 cat conftest.err >&5
25363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); } &&
25365 { ac_try='test -z "$ac_c_werror_flag"
25366 || test ! -s conftest.err'
25367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25368 (eval $ac_try) 2>&5
25370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); }; } &&
25372 { ac_try='test -s conftest$ac_exeext'
25373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374 (eval $ac_try) 2>&5
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); }; }; then
25378 ac_cv_search_mallinfo="none required"
25380 echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25384 rm -f conftest.err conftest.$ac_objext \
25385 conftest$ac_exeext conftest.$ac_ext
25386 if test "$ac_cv_search_mallinfo" = no; then
25387 for ac_lib in malloc; do
25388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25389 cat >conftest.$ac_ext <<_ACEOF
25392 cat confdefs.h >>conftest.$ac_ext
25393 cat >>conftest.$ac_ext <<_ACEOF
25394 /* end confdefs.h. */
25396 /* Override any gcc2 internal prototype to avoid an error. */
25400 /* We use char because int might match the return type of a gcc2
25401 builtin and then its argument prototype would still apply. */
25411 rm -f conftest.$ac_objext conftest$ac_exeext
25412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25413 (eval $ac_link) 2>conftest.er1
25415 grep -v '^ *+' conftest.er1 >conftest.err
25417 cat conftest.err >&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); } &&
25420 { ac_try='test -z "$ac_c_werror_flag"
25421 || test ! -s conftest.err'
25422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423 (eval $ac_try) 2>&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; } &&
25427 { ac_try='test -s conftest$ac_exeext'
25428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429 (eval $ac_try) 2>&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); }; }; then
25433 ac_cv_search_mallinfo="-l$ac_lib"
25436 echo "$as_me: failed program was:" >&5
25437 sed 's/^/| /' conftest.$ac_ext >&5
25440 rm -f conftest.err conftest.$ac_objext \
25441 conftest$ac_exeext conftest.$ac_ext
25444 LIBS=$ac_func_search_save_LIBS
25446 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25447 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25448 if test "$ac_cv_search_mallinfo" != no; then
25449 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25451 cat >>confdefs.h <<\_ACEOF
25452 #define HAVE_MALLINFO 1
25458 if test "$ENABLE_THREADS" -eq 1 ; then
25460 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25461 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25462 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25465 ac_check_lib_save_LIBS=$LIBS
25466 LIBS="-lpthread $LIBS"
25467 cat >conftest.$ac_ext <<_ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h. */
25474 /* Override any gcc2 internal prototype to avoid an error. */
25478 /* We use char because int might match the return type of a gcc2
25479 builtin and then its argument prototype would still apply. */
25480 char pthread_mutex_init ();
25484 pthread_mutex_init ();
25489 rm -f conftest.$ac_objext conftest$ac_exeext
25490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25491 (eval $ac_link) 2>conftest.er1
25493 grep -v '^ *+' conftest.er1 >conftest.err
25495 cat conftest.err >&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); } &&
25498 { ac_try='test -z "$ac_c_werror_flag"
25499 || test ! -s conftest.err'
25500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501 (eval $ac_try) 2>&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; } &&
25505 { ac_try='test -s conftest$ac_exeext'
25506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25507 (eval $ac_try) 2>&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); }; }; then
25511 ac_cv_lib_pthread_pthread_mutex_init=yes
25513 echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25516 ac_cv_lib_pthread_pthread_mutex_init=no
25518 rm -f conftest.err conftest.$ac_objext \
25519 conftest$ac_exeext conftest.$ac_ext
25520 LIBS=$ac_check_lib_save_LIBS
25522 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25523 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25524 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25525 cat >>confdefs.h <<_ACEOF
25526 #define HAVE_LIBPTHREAD 1
25529 LIBS="-lpthread $LIBS"
25533 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25534 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25535 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25536 echo $ECHO_N "(cached) $ECHO_C" >&6
25538 ac_func_search_save_LIBS=$LIBS
25539 ac_cv_search_pthread_mutex_lock=no
25540 cat >conftest.$ac_ext <<_ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h. */
25547 /* Override any gcc2 internal prototype to avoid an error. */
25551 /* We use char because int might match the return type of a gcc2
25552 builtin and then its argument prototype would still apply. */
25553 char pthread_mutex_lock ();
25557 pthread_mutex_lock ();
25562 rm -f conftest.$ac_objext conftest$ac_exeext
25563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25564 (eval $ac_link) 2>conftest.er1
25566 grep -v '^ *+' conftest.er1 >conftest.err
25568 cat conftest.err >&5
25569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); } &&
25571 { ac_try='test -z "$ac_c_werror_flag"
25572 || test ! -s conftest.err'
25573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25574 (eval $ac_try) 2>&5
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); }; } &&
25578 { ac_try='test -s conftest$ac_exeext'
25579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25580 (eval $ac_try) 2>&5
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); }; }; then
25584 ac_cv_search_pthread_mutex_lock="none required"
25586 echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25590 rm -f conftest.err conftest.$ac_objext \
25591 conftest$ac_exeext conftest.$ac_ext
25592 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25593 for ac_lib in pthread; do
25594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25595 cat >conftest.$ac_ext <<_ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h. */
25602 /* Override any gcc2 internal prototype to avoid an error. */
25606 /* We use char because int might match the return type of a gcc2
25607 builtin and then its argument prototype would still apply. */
25608 char pthread_mutex_lock ();
25612 pthread_mutex_lock ();
25617 rm -f conftest.$ac_objext conftest$ac_exeext
25618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25619 (eval $ac_link) 2>conftest.er1
25621 grep -v '^ *+' conftest.er1 >conftest.err
25623 cat conftest.err >&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); } &&
25626 { ac_try='test -z "$ac_c_werror_flag"
25627 || test ! -s conftest.err'
25628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629 (eval $ac_try) 2>&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); }; } &&
25633 { ac_try='test -s conftest$ac_exeext'
25634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635 (eval $ac_try) 2>&5
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; }; then
25639 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25642 echo "$as_me: failed program was:" >&5
25643 sed 's/^/| /' conftest.$ac_ext >&5
25646 rm -f conftest.err conftest.$ac_objext \
25647 conftest$ac_exeext conftest.$ac_ext
25650 LIBS=$ac_func_search_save_LIBS
25652 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25653 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25654 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25655 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25657 cat >>confdefs.h <<\_ACEOF
25658 #define HAVE_PTHREAD_MUTEX_LOCK 1
25671 ac_header_dirent=no
25672 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25673 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25674 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25675 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25677 echo $ECHO_N "(cached) $ECHO_C" >&6
25679 cat >conftest.$ac_ext <<_ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h. */
25685 #include <sys/types.h>
25697 rm -f conftest.$ac_objext
25698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699 (eval $ac_compile) 2>conftest.er1
25701 grep -v '^ *+' conftest.er1 >conftest.err
25703 cat conftest.err >&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } &&
25706 { ac_try='test -z "$ac_c_werror_flag"
25707 || test ! -s conftest.err'
25708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709 (eval $ac_try) 2>&5
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); }; } &&
25713 { ac_try='test -s conftest.$ac_objext'
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; }; then
25719 eval "$as_ac_Header=yes"
25721 echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25724 eval "$as_ac_Header=no"
25726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25731 cat >>confdefs.h <<_ACEOF
25732 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25735 ac_header_dirent=$ac_hdr; break
25739 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25740 if test $ac_header_dirent = dirent.h; then
25741 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25742 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25743 if test "${ac_cv_search_opendir+set}" = set; then
25744 echo $ECHO_N "(cached) $ECHO_C" >&6
25746 ac_func_search_save_LIBS=$LIBS
25747 ac_cv_search_opendir=no
25748 cat >conftest.$ac_ext <<_ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h. */
25755 /* Override any gcc2 internal prototype to avoid an error. */
25759 /* We use char because int might match the return type of a gcc2
25760 builtin and then its argument prototype would still apply. */
25770 rm -f conftest.$ac_objext conftest$ac_exeext
25771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25772 (eval $ac_link) 2>conftest.er1
25774 grep -v '^ *+' conftest.er1 >conftest.err
25776 cat conftest.err >&5
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); } &&
25779 { ac_try='test -z "$ac_c_werror_flag"
25780 || test ! -s conftest.err'
25781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782 (eval $ac_try) 2>&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); }; } &&
25786 { ac_try='test -s conftest$ac_exeext'
25787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788 (eval $ac_try) 2>&5
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); }; }; then
25792 ac_cv_search_opendir="none required"
25794 echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25798 rm -f conftest.err conftest.$ac_objext \
25799 conftest$ac_exeext conftest.$ac_ext
25800 if test "$ac_cv_search_opendir" = no; then
25801 for ac_lib in dir; do
25802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25803 cat >conftest.$ac_ext <<_ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h. */
25810 /* Override any gcc2 internal prototype to avoid an error. */
25814 /* We use char because int might match the return type of a gcc2
25815 builtin and then its argument prototype would still apply. */
25825 rm -f conftest.$ac_objext conftest$ac_exeext
25826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25827 (eval $ac_link) 2>conftest.er1
25829 grep -v '^ *+' conftest.er1 >conftest.err
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } &&
25834 { ac_try='test -z "$ac_c_werror_flag"
25835 || test ! -s conftest.err'
25836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837 (eval $ac_try) 2>&5
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; } &&
25841 { ac_try='test -s conftest$ac_exeext'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; }; then
25847 ac_cv_search_opendir="-l$ac_lib"
25850 echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25854 rm -f conftest.err conftest.$ac_objext \
25855 conftest$ac_exeext conftest.$ac_ext
25858 LIBS=$ac_func_search_save_LIBS
25860 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25861 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25862 if test "$ac_cv_search_opendir" != no; then
25863 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25868 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25869 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25870 if test "${ac_cv_search_opendir+set}" = set; then
25871 echo $ECHO_N "(cached) $ECHO_C" >&6
25873 ac_func_search_save_LIBS=$LIBS
25874 ac_cv_search_opendir=no
25875 cat >conftest.$ac_ext <<_ACEOF
25878 cat confdefs.h >>conftest.$ac_ext
25879 cat >>conftest.$ac_ext <<_ACEOF
25880 /* end confdefs.h. */
25882 /* Override any gcc2 internal prototype to avoid an error. */
25886 /* We use char because int might match the return type of a gcc2
25887 builtin and then its argument prototype would still apply. */
25897 rm -f conftest.$ac_objext conftest$ac_exeext
25898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25899 (eval $ac_link) 2>conftest.er1
25901 grep -v '^ *+' conftest.er1 >conftest.err
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } &&
25906 { ac_try='test -z "$ac_c_werror_flag"
25907 || test ! -s conftest.err'
25908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25909 (eval $ac_try) 2>&5
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); }; } &&
25913 { ac_try='test -s conftest$ac_exeext'
25914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915 (eval $ac_try) 2>&5
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); }; }; then
25919 ac_cv_search_opendir="none required"
25921 echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25925 rm -f conftest.err conftest.$ac_objext \
25926 conftest$ac_exeext conftest.$ac_ext
25927 if test "$ac_cv_search_opendir" = no; then
25928 for ac_lib in x; do
25929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25930 cat >conftest.$ac_ext <<_ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h. */
25937 /* Override any gcc2 internal prototype to avoid an error. */
25941 /* We use char because int might match the return type of a gcc2
25942 builtin and then its argument prototype would still apply. */
25952 rm -f conftest.$ac_objext conftest$ac_exeext
25953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25954 (eval $ac_link) 2>conftest.er1
25956 grep -v '^ *+' conftest.er1 >conftest.err
25958 cat conftest.err >&5
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); } &&
25961 { ac_try='test -z "$ac_c_werror_flag"
25962 || test ! -s conftest.err'
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; } &&
25968 { ac_try='test -s conftest$ac_exeext'
25969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970 (eval $ac_try) 2>&5
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); }; }; then
25974 ac_cv_search_opendir="-l$ac_lib"
25977 echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25981 rm -f conftest.err conftest.$ac_objext \
25982 conftest$ac_exeext conftest.$ac_ext
25985 LIBS=$ac_func_search_save_LIBS
25987 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25988 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25989 if test "$ac_cv_search_opendir" != no; then
25990 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25996 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25997 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25998 if test "${ac_cv_header_mmap_anon+set}" = set; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26002 ac_cpp='$CPP $CPPFLAGS'
26003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26007 cat >conftest.$ac_ext <<_ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h. */
26013 #include <sys/mman.h>
26014 #include <unistd.h>
26019 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26024 rm -f conftest.$ac_objext
26025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26026 (eval $ac_compile) 2>conftest.er1
26028 grep -v '^ *+' conftest.er1 >conftest.err
26030 cat conftest.err >&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } &&
26033 { ac_try='test -z "$ac_c_werror_flag"
26034 || test ! -s conftest.err'
26035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); }; } &&
26040 { ac_try='test -s conftest.$ac_objext'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; }; then
26046 ac_cv_header_mmap_anon=yes
26048 echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26051 ac_cv_header_mmap_anon=no
26053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26055 ac_cpp='$CPP $CPPFLAGS'
26056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26062 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26063 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26064 if test "$ac_cv_header_mmap_anon" = yes; then
26066 cat >>confdefs.h <<\_ACEOF
26067 #define HAVE_MMAP_ANONYMOUS 1
26072 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26073 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26074 if test "${ac_cv_header_stat_broken+set}" = set; then
26075 echo $ECHO_N "(cached) $ECHO_C" >&6
26077 cat >conftest.$ac_ext <<_ACEOF
26080 cat confdefs.h >>conftest.$ac_ext
26081 cat >>conftest.$ac_ext <<_ACEOF
26082 /* end confdefs.h. */
26083 #include <sys/types.h>
26084 #include <sys/stat.h>
26086 #if defined(S_ISBLK) && defined(S_IFDIR)
26087 # if S_ISBLK (S_IFDIR)
26092 #if defined(S_ISBLK) && defined(S_IFCHR)
26093 # if S_ISBLK (S_IFCHR)
26098 #if defined(S_ISLNK) && defined(S_IFREG)
26099 # if S_ISLNK (S_IFREG)
26104 #if defined(S_ISSOCK) && defined(S_IFREG)
26105 # if S_ISSOCK (S_IFREG)
26111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26112 $EGREP "You lose" >/dev/null 2>&1; then
26113 ac_cv_header_stat_broken=yes
26115 ac_cv_header_stat_broken=no
26120 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26121 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26122 if test $ac_cv_header_stat_broken = yes; then
26124 cat >>confdefs.h <<\_ACEOF
26125 #define STAT_MACROS_BROKEN 1
26130 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26131 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26132 if test "${ac_cv_header_stdc+set}" = set; then
26133 echo $ECHO_N "(cached) $ECHO_C" >&6
26135 cat >conftest.$ac_ext <<_ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h. */
26141 #include <stdlib.h>
26142 #include <stdarg.h>
26143 #include <string.h>
26154 rm -f conftest.$ac_objext
26155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26156 (eval $ac_compile) 2>conftest.er1
26158 grep -v '^ *+' conftest.er1 >conftest.err
26160 cat conftest.err >&5
26161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } &&
26163 { ac_try='test -z "$ac_c_werror_flag"
26164 || test ! -s conftest.err'
26165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166 (eval $ac_try) 2>&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); }; } &&
26170 { ac_try='test -s conftest.$ac_objext'
26171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172 (eval $ac_try) 2>&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; }; then
26176 ac_cv_header_stdc=yes
26178 echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26181 ac_cv_header_stdc=no
26183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26185 if test $ac_cv_header_stdc = yes; then
26186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26187 cat >conftest.$ac_ext <<_ACEOF
26190 cat confdefs.h >>conftest.$ac_ext
26191 cat >>conftest.$ac_ext <<_ACEOF
26192 /* end confdefs.h. */
26193 #include <string.h>
26196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26197 $EGREP "memchr" >/dev/null 2>&1; then
26200 ac_cv_header_stdc=no
26206 if test $ac_cv_header_stdc = yes; then
26207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26208 cat >conftest.$ac_ext <<_ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h. */
26214 #include <stdlib.h>
26217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26218 $EGREP "free" >/dev/null 2>&1; then
26221 ac_cv_header_stdc=no
26227 if test $ac_cv_header_stdc = yes; then
26228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26229 if test "$cross_compiling" = yes; then
26232 cat >conftest.$ac_ext <<_ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26239 #if ((' ' & 0x0FF) == 0x020)
26240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26243 # define ISLOWER(c) \
26244 (('a' <= (c) && (c) <= 'i') \
26245 || ('j' <= (c) && (c) <= 'r') \
26246 || ('s' <= (c) && (c) <= 'z'))
26247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26255 for (i = 0; i < 256; i++)
26256 if (XOR (islower (i), ISLOWER (i))
26257 || toupper (i) != TOUPPER (i))
26262 rm -f conftest$ac_exeext
26263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26264 (eval $ac_link) 2>&5
26266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26269 (eval $ac_try) 2>&5
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); }; }; then
26275 echo "$as_me: program exited with status $ac_status" >&5
26276 echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26279 ( exit $ac_status )
26280 ac_cv_header_stdc=no
26282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26286 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26287 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26288 if test $ac_cv_header_stdc = yes; then
26290 cat >>confdefs.h <<\_ACEOF
26291 #define STDC_HEADERS 1
26296 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26297 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26298 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26299 echo $ECHO_N "(cached) $ECHO_C" >&6
26301 cat >conftest.$ac_ext <<_ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h. */
26307 #include <sys/types.h>
26308 #include <sys/wait.h>
26309 #ifndef WEXITSTATUS
26310 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26313 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26321 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26326 rm -f conftest.$ac_objext
26327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26328 (eval $ac_compile) 2>conftest.er1
26330 grep -v '^ *+' conftest.er1 >conftest.err
26332 cat conftest.err >&5
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } &&
26335 { ac_try='test -z "$ac_c_werror_flag"
26336 || test ! -s conftest.err'
26337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338 (eval $ac_try) 2>&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); }; } &&
26342 { ac_try='test -s conftest.$ac_objext'
26343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344 (eval $ac_try) 2>&5
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); }; }; then
26348 ac_cv_header_sys_wait_h=yes
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26353 ac_cv_header_sys_wait_h=no
26355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26357 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26358 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26359 if test $ac_cv_header_sys_wait_h = yes; then
26361 cat >>confdefs.h <<\_ACEOF
26362 #define HAVE_SYS_WAIT_H 1
26367 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26368 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26369 if test "${ac_cv_header_time+set}" = set; then
26370 echo $ECHO_N "(cached) $ECHO_C" >&6
26372 cat >conftest.$ac_ext <<_ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h. */
26378 #include <sys/types.h>
26379 #include <sys/time.h>
26385 if ((struct tm *) 0)
26391 rm -f conftest.$ac_objext
26392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26393 (eval $ac_compile) 2>conftest.er1
26395 grep -v '^ *+' conftest.er1 >conftest.err
26397 cat conftest.err >&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); } &&
26400 { ac_try='test -z "$ac_c_werror_flag"
26401 || test ! -s conftest.err'
26402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403 (eval $ac_try) 2>&5
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); }; } &&
26407 { ac_try='test -s conftest.$ac_objext'
26408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26409 (eval $ac_try) 2>&5
26411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); }; }; then
26413 ac_cv_header_time=yes
26415 echo "$as_me: failed program was:" >&5
26416 sed 's/^/| /' conftest.$ac_ext >&5
26418 ac_cv_header_time=no
26420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26422 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26423 echo "${ECHO_T}$ac_cv_header_time" >&6
26424 if test $ac_cv_header_time = yes; then
26426 cat >>confdefs.h <<\_ACEOF
26427 #define TIME_WITH_SYS_TIME 1
26439 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26443 echo "$as_me:$LINENO: checking for $ac_header" >&5
26444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26451 # Is the header compilable?
26452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26454 cat >conftest.$ac_ext <<_ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h. */
26460 $ac_includes_default
26461 #include <$ac_header>
26463 rm -f conftest.$ac_objext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26465 (eval $ac_compile) 2>conftest.er1
26467 grep -v '^ *+' conftest.er1 >conftest.err
26469 cat conftest.err >&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } &&
26472 { ac_try='test -z "$ac_c_werror_flag"
26473 || test ! -s conftest.err'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; } &&
26479 { ac_try='test -s conftest.$ac_objext'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; }; then
26485 ac_header_compiler=yes
26487 echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26490 ac_header_compiler=no
26492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26494 echo "${ECHO_T}$ac_header_compiler" >&6
26496 # Is the header present?
26497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26499 cat >conftest.$ac_ext <<_ACEOF
26502 cat confdefs.h >>conftest.$ac_ext
26503 cat >>conftest.$ac_ext <<_ACEOF
26504 /* end confdefs.h. */
26505 #include <$ac_header>
26507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26510 grep -v '^ *+' conftest.er1 >conftest.err
26512 cat conftest.err >&5
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); } >/dev/null; then
26515 if test -s conftest.err; then
26516 ac_cpp_err=$ac_c_preproc_warn_flag
26517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26524 if test -z "$ac_cpp_err"; then
26525 ac_header_preproc=yes
26527 echo "$as_me: failed program was:" >&5
26528 sed 's/^/| /' conftest.$ac_ext >&5
26530 ac_header_preproc=no
26532 rm -f conftest.err conftest.$ac_ext
26533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26534 echo "${ECHO_T}$ac_header_preproc" >&6
26536 # So? What about this header?
26537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26543 ac_header_preproc=yes
26546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26560 ## ----------------------------------- ##
26561 ## Report this to llvmbugs@cs.uiuc.edu ##
26562 ## ----------------------------------- ##
26565 sed "s/^/$as_me: WARNING: /" >&2
26568 echo "$as_me:$LINENO: checking for $ac_header" >&5
26569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26571 echo $ECHO_N "(cached) $ECHO_C" >&6
26573 eval "$as_ac_Header=\$ac_header_preproc"
26575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26580 cat >>confdefs.h <<_ACEOF
26581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26594 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26598 echo "$as_me:$LINENO: checking for $ac_header" >&5
26599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26601 echo $ECHO_N "(cached) $ECHO_C" >&6
26603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26606 # Is the header compilable?
26607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26609 cat >conftest.$ac_ext <<_ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h. */
26615 $ac_includes_default
26616 #include <$ac_header>
26618 rm -f conftest.$ac_objext
26619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26620 (eval $ac_compile) 2>conftest.er1
26622 grep -v '^ *+' conftest.er1 >conftest.err
26624 cat conftest.err >&5
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); } &&
26627 { ac_try='test -z "$ac_c_werror_flag"
26628 || test ! -s conftest.err'
26629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26630 (eval $ac_try) 2>&5
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); }; } &&
26634 { ac_try='test -s conftest.$ac_objext'
26635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636 (eval $ac_try) 2>&5
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); }; }; then
26640 ac_header_compiler=yes
26642 echo "$as_me: failed program was:" >&5
26643 sed 's/^/| /' conftest.$ac_ext >&5
26645 ac_header_compiler=no
26647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26649 echo "${ECHO_T}$ac_header_compiler" >&6
26651 # Is the header present?
26652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26654 cat >conftest.$ac_ext <<_ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h. */
26660 #include <$ac_header>
26662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26665 grep -v '^ *+' conftest.er1 >conftest.err
26667 cat conftest.err >&5
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); } >/dev/null; then
26670 if test -s conftest.err; then
26671 ac_cpp_err=$ac_c_preproc_warn_flag
26672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26679 if test -z "$ac_cpp_err"; then
26680 ac_header_preproc=yes
26682 echo "$as_me: failed program was:" >&5
26683 sed 's/^/| /' conftest.$ac_ext >&5
26685 ac_header_preproc=no
26687 rm -f conftest.err conftest.$ac_ext
26688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26689 echo "${ECHO_T}$ac_header_preproc" >&6
26691 # So? What about this header?
26692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26698 ac_header_preproc=yes
26701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26715 ## ----------------------------------- ##
26716 ## Report this to llvmbugs@cs.uiuc.edu ##
26717 ## ----------------------------------- ##
26720 sed "s/^/$as_me: WARNING: /" >&2
26723 echo "$as_me:$LINENO: checking for $ac_header" >&5
26724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26726 echo $ECHO_N "(cached) $ECHO_C" >&6
26728 eval "$as_ac_Header=\$ac_header_preproc"
26730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26735 cat >>confdefs.h <<_ACEOF
26736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26748 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26752 echo "$as_me:$LINENO: checking for $ac_header" >&5
26753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26755 echo $ECHO_N "(cached) $ECHO_C" >&6
26757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26760 # Is the header compilable?
26761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26763 cat >conftest.$ac_ext <<_ACEOF
26766 cat confdefs.h >>conftest.$ac_ext
26767 cat >>conftest.$ac_ext <<_ACEOF
26768 /* end confdefs.h. */
26769 $ac_includes_default
26770 #include <$ac_header>
26772 rm -f conftest.$ac_objext
26773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26774 (eval $ac_compile) 2>conftest.er1
26776 grep -v '^ *+' conftest.er1 >conftest.err
26778 cat conftest.err >&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); } &&
26781 { ac_try='test -z "$ac_c_werror_flag"
26782 || test ! -s conftest.err'
26783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784 (eval $ac_try) 2>&5
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); }; } &&
26788 { ac_try='test -s conftest.$ac_objext'
26789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26790 (eval $ac_try) 2>&5
26792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793 (exit $ac_status); }; }; then
26794 ac_header_compiler=yes
26796 echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26799 ac_header_compiler=no
26801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26803 echo "${ECHO_T}$ac_header_compiler" >&6
26805 # Is the header present?
26806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26808 cat >conftest.$ac_ext <<_ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h. */
26814 #include <$ac_header>
26816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26819 grep -v '^ *+' conftest.er1 >conftest.err
26821 cat conftest.err >&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); } >/dev/null; then
26824 if test -s conftest.err; then
26825 ac_cpp_err=$ac_c_preproc_warn_flag
26826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26833 if test -z "$ac_cpp_err"; then
26834 ac_header_preproc=yes
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26839 ac_header_preproc=no
26841 rm -f conftest.err conftest.$ac_ext
26842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26843 echo "${ECHO_T}$ac_header_preproc" >&6
26845 # So? What about this header?
26846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26852 ac_header_preproc=yes
26855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26869 ## ----------------------------------- ##
26870 ## Report this to llvmbugs@cs.uiuc.edu ##
26871 ## ----------------------------------- ##
26874 sed "s/^/$as_me: WARNING: /" >&2
26877 echo "$as_me:$LINENO: checking for $ac_header" >&5
26878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26880 echo $ECHO_N "(cached) $ECHO_C" >&6
26882 eval "$as_ac_Header=\$ac_header_preproc"
26884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26889 cat >>confdefs.h <<_ACEOF
26890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26898 for ac_header in malloc/malloc.h
26900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26902 echo "$as_me:$LINENO: checking for $ac_header" >&5
26903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26905 echo $ECHO_N "(cached) $ECHO_C" >&6
26907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26910 # Is the header compilable?
26911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26913 cat >conftest.$ac_ext <<_ACEOF
26916 cat confdefs.h >>conftest.$ac_ext
26917 cat >>conftest.$ac_ext <<_ACEOF
26918 /* end confdefs.h. */
26919 $ac_includes_default
26920 #include <$ac_header>
26922 rm -f conftest.$ac_objext
26923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26924 (eval $ac_compile) 2>conftest.er1
26926 grep -v '^ *+' conftest.er1 >conftest.err
26928 cat conftest.err >&5
26929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930 (exit $ac_status); } &&
26931 { ac_try='test -z "$ac_c_werror_flag"
26932 || test ! -s conftest.err'
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; } &&
26938 { ac_try='test -s conftest.$ac_objext'
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; }; then
26944 ac_header_compiler=yes
26946 echo "$as_me: failed program was:" >&5
26947 sed 's/^/| /' conftest.$ac_ext >&5
26949 ac_header_compiler=no
26951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26953 echo "${ECHO_T}$ac_header_compiler" >&6
26955 # Is the header present?
26956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26958 cat >conftest.$ac_ext <<_ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h. */
26964 #include <$ac_header>
26966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26969 grep -v '^ *+' conftest.er1 >conftest.err
26971 cat conftest.err >&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } >/dev/null; then
26974 if test -s conftest.err; then
26975 ac_cpp_err=$ac_c_preproc_warn_flag
26976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26983 if test -z "$ac_cpp_err"; then
26984 ac_header_preproc=yes
26986 echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26989 ac_header_preproc=no
26991 rm -f conftest.err conftest.$ac_ext
26992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26993 echo "${ECHO_T}$ac_header_preproc" >&6
26995 # So? What about this header?
26996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27002 ac_header_preproc=yes
27005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27019 ## ----------------------------------- ##
27020 ## Report this to llvmbugs@cs.uiuc.edu ##
27021 ## ----------------------------------- ##
27024 sed "s/^/$as_me: WARNING: /" >&2
27027 echo "$as_me:$LINENO: checking for $ac_header" >&5
27028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27030 echo $ECHO_N "(cached) $ECHO_C" >&6
27032 eval "$as_ac_Header=\$ac_header_preproc"
27034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27039 cat >>confdefs.h <<_ACEOF
27040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27047 if test "$ENABLE_THREADS" -eq 1 ; then
27049 for ac_header in pthread.h
27051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27053 echo "$as_me:$LINENO: checking for $ac_header" >&5
27054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27056 echo $ECHO_N "(cached) $ECHO_C" >&6
27058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27061 # Is the header compilable?
27062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27064 cat >conftest.$ac_ext <<_ACEOF
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h. */
27070 $ac_includes_default
27071 #include <$ac_header>
27073 rm -f conftest.$ac_objext
27074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27075 (eval $ac_compile) 2>conftest.er1
27077 grep -v '^ *+' conftest.er1 >conftest.err
27079 cat conftest.err >&5
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); } &&
27082 { ac_try='test -z "$ac_c_werror_flag"
27083 || test ! -s conftest.err'
27084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085 (eval $ac_try) 2>&5
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; } &&
27089 { ac_try='test -s conftest.$ac_objext'
27090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27091 (eval $ac_try) 2>&5
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); }; }; then
27095 ac_header_compiler=yes
27097 echo "$as_me: failed program was:" >&5
27098 sed 's/^/| /' conftest.$ac_ext >&5
27100 ac_header_compiler=no
27102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27104 echo "${ECHO_T}$ac_header_compiler" >&6
27106 # Is the header present?
27107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27109 cat >conftest.$ac_ext <<_ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h. */
27115 #include <$ac_header>
27117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27120 grep -v '^ *+' conftest.er1 >conftest.err
27122 cat conftest.err >&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); } >/dev/null; then
27125 if test -s conftest.err; then
27126 ac_cpp_err=$ac_c_preproc_warn_flag
27127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27134 if test -z "$ac_cpp_err"; then
27135 ac_header_preproc=yes
27137 echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27140 ac_header_preproc=no
27142 rm -f conftest.err conftest.$ac_ext
27143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27144 echo "${ECHO_T}$ac_header_preproc" >&6
27146 # So? What about this header?
27147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27153 ac_header_preproc=yes
27156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27170 ## ----------------------------------- ##
27171 ## Report this to llvmbugs@cs.uiuc.edu ##
27172 ## ----------------------------------- ##
27175 sed "s/^/$as_me: WARNING: /" >&2
27178 echo "$as_me:$LINENO: checking for $ac_header" >&5
27179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27183 eval "$as_ac_Header=\$ac_header_preproc"
27185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27190 cat >>confdefs.h <<_ACEOF
27191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27201 echo "$as_me:$LINENO: checking for pid_t" >&5
27202 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27203 if test "${ac_cv_type_pid_t+set}" = set; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27206 cat >conftest.$ac_ext <<_ACEOF
27209 cat confdefs.h >>conftest.$ac_ext
27210 cat >>conftest.$ac_ext <<_ACEOF
27211 /* end confdefs.h. */
27212 $ac_includes_default
27218 if (sizeof (pid_t))
27224 rm -f conftest.$ac_objext
27225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27226 (eval $ac_compile) 2>conftest.er1
27228 grep -v '^ *+' conftest.er1 >conftest.err
27230 cat conftest.err >&5
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); } &&
27233 { ac_try='test -z "$ac_c_werror_flag"
27234 || test ! -s conftest.err'
27235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236 (eval $ac_try) 2>&5
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); }; } &&
27240 { ac_try='test -s conftest.$ac_objext'
27241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242 (eval $ac_try) 2>&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); }; }; then
27246 ac_cv_type_pid_t=yes
27248 echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27251 ac_cv_type_pid_t=no
27253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27255 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27256 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27257 if test $ac_cv_type_pid_t = yes; then
27261 cat >>confdefs.h <<_ACEOF
27267 echo "$as_me:$LINENO: checking for size_t" >&5
27268 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27269 if test "${ac_cv_type_size_t+set}" = set; then
27270 echo $ECHO_N "(cached) $ECHO_C" >&6
27272 cat >conftest.$ac_ext <<_ACEOF
27275 cat confdefs.h >>conftest.$ac_ext
27276 cat >>conftest.$ac_ext <<_ACEOF
27277 /* end confdefs.h. */
27278 $ac_includes_default
27284 if (sizeof (size_t))
27290 rm -f conftest.$ac_objext
27291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27292 (eval $ac_compile) 2>conftest.er1
27294 grep -v '^ *+' conftest.er1 >conftest.err
27296 cat conftest.err >&5
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); } &&
27299 { ac_try='test -z "$ac_c_werror_flag"
27300 || test ! -s conftest.err'
27301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27302 (eval $ac_try) 2>&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; } &&
27306 { ac_try='test -s conftest.$ac_objext'
27307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308 (eval $ac_try) 2>&5
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; }; then
27312 ac_cv_type_size_t=yes
27314 echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27317 ac_cv_type_size_t=no
27319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27321 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27322 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27323 if test $ac_cv_type_size_t = yes; then
27327 cat >>confdefs.h <<_ACEOF
27328 #define size_t unsigned
27333 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27334 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27335 if test "${ac_cv_type_signal+set}" = set; then
27336 echo $ECHO_N "(cached) $ECHO_C" >&6
27338 cat >conftest.$ac_ext <<_ACEOF
27341 cat confdefs.h >>conftest.$ac_ext
27342 cat >>conftest.$ac_ext <<_ACEOF
27343 /* end confdefs.h. */
27344 #include <sys/types.h>
27345 #include <signal.h>
27350 extern "C" void (*signal (int, void (*)(int)))(int);
27352 void (*signal ()) ();
27363 rm -f conftest.$ac_objext
27364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27365 (eval $ac_compile) 2>conftest.er1
27367 grep -v '^ *+' conftest.er1 >conftest.err
27369 cat conftest.err >&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); } &&
27372 { ac_try='test -z "$ac_c_werror_flag"
27373 || test ! -s conftest.err'
27374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375 (eval $ac_try) 2>&5
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); }; } &&
27379 { ac_try='test -s conftest.$ac_objext'
27380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381 (eval $ac_try) 2>&5
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; }; then
27385 ac_cv_type_signal=void
27387 echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27390 ac_cv_type_signal=int
27392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27394 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27395 echo "${ECHO_T}$ac_cv_type_signal" >&6
27397 cat >>confdefs.h <<_ACEOF
27398 #define RETSIGTYPE $ac_cv_type_signal
27402 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27403 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27404 if test "${ac_cv_struct_tm+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27407 cat >conftest.$ac_ext <<_ACEOF
27410 cat confdefs.h >>conftest.$ac_ext
27411 cat >>conftest.$ac_ext <<_ACEOF
27412 /* end confdefs.h. */
27413 #include <sys/types.h>
27419 struct tm *tp; tp->tm_sec;
27424 rm -f conftest.$ac_objext
27425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27426 (eval $ac_compile) 2>conftest.er1
27428 grep -v '^ *+' conftest.er1 >conftest.err
27430 cat conftest.err >&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); } &&
27433 { ac_try='test -z "$ac_c_werror_flag"
27434 || test ! -s conftest.err'
27435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436 (eval $ac_try) 2>&5
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; } &&
27440 { ac_try='test -s conftest.$ac_objext'
27441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27442 (eval $ac_try) 2>&5
27444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27445 (exit $ac_status); }; }; then
27446 ac_cv_struct_tm=time.h
27448 echo "$as_me: failed program was:" >&5
27449 sed 's/^/| /' conftest.$ac_ext >&5
27451 ac_cv_struct_tm=sys/time.h
27453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27455 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27456 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27457 if test $ac_cv_struct_tm = sys/time.h; then
27459 cat >>confdefs.h <<\_ACEOF
27460 #define TM_IN_SYS_TIME 1
27465 echo "$as_me:$LINENO: checking for int64_t" >&5
27466 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27467 if test "${ac_cv_type_int64_t+set}" = set; then
27468 echo $ECHO_N "(cached) $ECHO_C" >&6
27470 cat >conftest.$ac_ext <<_ACEOF
27473 cat confdefs.h >>conftest.$ac_ext
27474 cat >>conftest.$ac_ext <<_ACEOF
27475 /* end confdefs.h. */
27476 $ac_includes_default
27482 if (sizeof (int64_t))
27488 rm -f conftest.$ac_objext
27489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27490 (eval $ac_compile) 2>conftest.er1
27492 grep -v '^ *+' conftest.er1 >conftest.err
27494 cat conftest.err >&5
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); } &&
27497 { ac_try='test -z "$ac_c_werror_flag"
27498 || test ! -s conftest.err'
27499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27500 (eval $ac_try) 2>&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; } &&
27504 { ac_try='test -s conftest.$ac_objext'
27505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27506 (eval $ac_try) 2>&5
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); }; }; then
27510 ac_cv_type_int64_t=yes
27512 echo "$as_me: failed program was:" >&5
27513 sed 's/^/| /' conftest.$ac_ext >&5
27515 ac_cv_type_int64_t=no
27517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27519 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27520 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27521 if test $ac_cv_type_int64_t = yes; then
27523 cat >>confdefs.h <<_ACEOF
27524 #define HAVE_INT64_T 1
27529 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27530 echo "$as_me: error: Type int64_t required but not found" >&2;}
27531 { (exit 1); exit 1; }; }
27534 echo "$as_me:$LINENO: checking for uint64_t" >&5
27535 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27536 if test "${ac_cv_type_uint64_t+set}" = set; then
27537 echo $ECHO_N "(cached) $ECHO_C" >&6
27539 cat >conftest.$ac_ext <<_ACEOF
27542 cat confdefs.h >>conftest.$ac_ext
27543 cat >>conftest.$ac_ext <<_ACEOF
27544 /* end confdefs.h. */
27545 $ac_includes_default
27549 if ((uint64_t *) 0)
27551 if (sizeof (uint64_t))
27557 rm -f conftest.$ac_objext
27558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27559 (eval $ac_compile) 2>conftest.er1
27561 grep -v '^ *+' conftest.er1 >conftest.err
27563 cat conftest.err >&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } &&
27566 { ac_try='test -z "$ac_c_werror_flag"
27567 || test ! -s conftest.err'
27568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569 (eval $ac_try) 2>&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; } &&
27573 { ac_try='test -s conftest.$ac_objext'
27574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27575 (eval $ac_try) 2>&5
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); }; }; then
27579 ac_cv_type_uint64_t=yes
27581 echo "$as_me: failed program was:" >&5
27582 sed 's/^/| /' conftest.$ac_ext >&5
27584 ac_cv_type_uint64_t=no
27586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27588 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27589 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27590 if test $ac_cv_type_uint64_t = yes; then
27592 cat >>confdefs.h <<_ACEOF
27593 #define HAVE_UINT64_T 1
27598 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27599 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27600 if test "${ac_cv_type_u_int64_t+set}" = set; then
27601 echo $ECHO_N "(cached) $ECHO_C" >&6
27603 cat >conftest.$ac_ext <<_ACEOF
27606 cat confdefs.h >>conftest.$ac_ext
27607 cat >>conftest.$ac_ext <<_ACEOF
27608 /* end confdefs.h. */
27609 $ac_includes_default
27613 if ((u_int64_t *) 0)
27615 if (sizeof (u_int64_t))
27621 rm -f conftest.$ac_objext
27622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27623 (eval $ac_compile) 2>conftest.er1
27625 grep -v '^ *+' conftest.er1 >conftest.err
27627 cat conftest.err >&5
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); } &&
27630 { ac_try='test -z "$ac_c_werror_flag"
27631 || test ! -s conftest.err'
27632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27633 (eval $ac_try) 2>&5
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); }; } &&
27637 { ac_try='test -s conftest.$ac_objext'
27638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639 (eval $ac_try) 2>&5
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); }; }; then
27643 ac_cv_type_u_int64_t=yes
27645 echo "$as_me: failed program was:" >&5
27646 sed 's/^/| /' conftest.$ac_ext >&5
27648 ac_cv_type_u_int64_t=no
27650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27652 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27653 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27654 if test $ac_cv_type_u_int64_t = yes; then
27656 cat >>confdefs.h <<_ACEOF
27657 #define HAVE_U_INT64_T 1
27662 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27663 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27664 { (exit 1); exit 1; }; }
27678 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27681 echo "$as_me:$LINENO: checking for $ac_func" >&5
27682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27683 if eval "test \"\${$as_ac_var+set}\" = set"; then
27684 echo $ECHO_N "(cached) $ECHO_C" >&6
27686 cat >conftest.$ac_ext <<_ACEOF
27689 cat confdefs.h >>conftest.$ac_ext
27690 cat >>conftest.$ac_ext <<_ACEOF
27691 /* end confdefs.h. */
27692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27694 #define $ac_func innocuous_$ac_func
27696 /* System header to define __stub macros and hopefully few prototypes,
27697 which can conflict with char $ac_func (); below.
27698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27699 <limits.h> exists even on freestanding compilers. */
27702 # include <limits.h>
27704 # include <assert.h>
27709 /* Override any gcc2 internal prototype to avoid an error. */
27714 /* We use char because int might match the return type of a gcc2
27715 builtin and then its argument prototype would still apply. */
27717 /* The GNU C library defines this for functions which it implements
27718 to always fail with ENOSYS. Some functions are actually named
27719 something starting with __ and the normal name is an alias. */
27720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27723 char (*f) () = $ac_func;
27732 return f != $ac_func;
27737 rm -f conftest.$ac_objext conftest$ac_exeext
27738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27739 (eval $ac_link) 2>conftest.er1
27741 grep -v '^ *+' conftest.er1 >conftest.err
27743 cat conftest.err >&5
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); } &&
27746 { ac_try='test -z "$ac_c_werror_flag"
27747 || test ! -s conftest.err'
27748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27749 (eval $ac_try) 2>&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); }; } &&
27753 { ac_try='test -s conftest$ac_exeext'
27754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27755 (eval $ac_try) 2>&5
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758 (exit $ac_status); }; }; then
27759 eval "$as_ac_var=yes"
27761 echo "$as_me: failed program was:" >&5
27762 sed 's/^/| /' conftest.$ac_ext >&5
27764 eval "$as_ac_var=no"
27766 rm -f conftest.err conftest.$ac_objext \
27767 conftest$ac_exeext conftest.$ac_ext
27769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27771 if test `eval echo '${'$as_ac_var'}'` = yes; then
27772 cat >>confdefs.h <<_ACEOF
27773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27785 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27788 echo "$as_me:$LINENO: checking for $ac_func" >&5
27789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27790 if eval "test \"\${$as_ac_var+set}\" = set"; then
27791 echo $ECHO_N "(cached) $ECHO_C" >&6
27793 cat >conftest.$ac_ext <<_ACEOF
27796 cat confdefs.h >>conftest.$ac_ext
27797 cat >>conftest.$ac_ext <<_ACEOF
27798 /* end confdefs.h. */
27799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27801 #define $ac_func innocuous_$ac_func
27803 /* System header to define __stub macros and hopefully few prototypes,
27804 which can conflict with char $ac_func (); below.
27805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27806 <limits.h> exists even on freestanding compilers. */
27809 # include <limits.h>
27811 # include <assert.h>
27816 /* Override any gcc2 internal prototype to avoid an error. */
27821 /* We use char because int might match the return type of a gcc2
27822 builtin and then its argument prototype would still apply. */
27824 /* The GNU C library defines this for functions which it implements
27825 to always fail with ENOSYS. Some functions are actually named
27826 something starting with __ and the normal name is an alias. */
27827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27830 char (*f) () = $ac_func;
27839 return f != $ac_func;
27844 rm -f conftest.$ac_objext conftest$ac_exeext
27845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27846 (eval $ac_link) 2>conftest.er1
27848 grep -v '^ *+' conftest.er1 >conftest.err
27850 cat conftest.err >&5
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } &&
27853 { ac_try='test -z "$ac_c_werror_flag"
27854 || test ! -s conftest.err'
27855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856 (eval $ac_try) 2>&5
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; } &&
27860 { ac_try='test -s conftest$ac_exeext'
27861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27862 (eval $ac_try) 2>&5
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); }; }; then
27866 eval "$as_ac_var=yes"
27868 echo "$as_me: failed program was:" >&5
27869 sed 's/^/| /' conftest.$ac_ext >&5
27871 eval "$as_ac_var=no"
27873 rm -f conftest.err conftest.$ac_objext \
27874 conftest$ac_exeext conftest.$ac_ext
27876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27878 if test `eval echo '${'$as_ac_var'}'` = yes; then
27879 cat >>confdefs.h <<_ACEOF
27880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27893 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27896 echo "$as_me:$LINENO: checking for $ac_func" >&5
27897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27898 if eval "test \"\${$as_ac_var+set}\" = set"; then
27899 echo $ECHO_N "(cached) $ECHO_C" >&6
27901 cat >conftest.$ac_ext <<_ACEOF
27904 cat confdefs.h >>conftest.$ac_ext
27905 cat >>conftest.$ac_ext <<_ACEOF
27906 /* end confdefs.h. */
27907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27909 #define $ac_func innocuous_$ac_func
27911 /* System header to define __stub macros and hopefully few prototypes,
27912 which can conflict with char $ac_func (); below.
27913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27914 <limits.h> exists even on freestanding compilers. */
27917 # include <limits.h>
27919 # include <assert.h>
27924 /* Override any gcc2 internal prototype to avoid an error. */
27929 /* We use char because int might match the return type of a gcc2
27930 builtin and then its argument prototype would still apply. */
27932 /* The GNU C library defines this for functions which it implements
27933 to always fail with ENOSYS. Some functions are actually named
27934 something starting with __ and the normal name is an alias. */
27935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27938 char (*f) () = $ac_func;
27947 return f != $ac_func;
27952 rm -f conftest.$ac_objext conftest$ac_exeext
27953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27954 (eval $ac_link) 2>conftest.er1
27956 grep -v '^ *+' conftest.er1 >conftest.err
27958 cat conftest.err >&5
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } &&
27961 { ac_try='test -z "$ac_c_werror_flag"
27962 || test ! -s conftest.err'
27963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964 (eval $ac_try) 2>&5
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; } &&
27968 { ac_try='test -s conftest$ac_exeext'
27969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970 (eval $ac_try) 2>&5
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; }; then
27974 eval "$as_ac_var=yes"
27976 echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27979 eval "$as_ac_var=no"
27981 rm -f conftest.err conftest.$ac_objext \
27982 conftest$ac_exeext conftest.$ac_ext
27984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27986 if test `eval echo '${'$as_ac_var'}'` = yes; then
27987 cat >>confdefs.h <<_ACEOF
27988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27998 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28001 echo "$as_me:$LINENO: checking for $ac_func" >&5
28002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28003 if eval "test \"\${$as_ac_var+set}\" = set"; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
28006 cat >conftest.$ac_ext <<_ACEOF
28009 cat confdefs.h >>conftest.$ac_ext
28010 cat >>conftest.$ac_ext <<_ACEOF
28011 /* end confdefs.h. */
28012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28014 #define $ac_func innocuous_$ac_func
28016 /* System header to define __stub macros and hopefully few prototypes,
28017 which can conflict with char $ac_func (); below.
28018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28019 <limits.h> exists even on freestanding compilers. */
28022 # include <limits.h>
28024 # include <assert.h>
28029 /* Override any gcc2 internal prototype to avoid an error. */
28034 /* We use char because int might match the return type of a gcc2
28035 builtin and then its argument prototype would still apply. */
28037 /* The GNU C library defines this for functions which it implements
28038 to always fail with ENOSYS. Some functions are actually named
28039 something starting with __ and the normal name is an alias. */
28040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28043 char (*f) () = $ac_func;
28052 return f != $ac_func;
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28059 (eval $ac_link) 2>conftest.er1
28061 grep -v '^ *+' conftest.er1 >conftest.err
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag"
28067 || test ! -s conftest.err'
28068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069 (eval $ac_try) 2>&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; } &&
28073 { ac_try='test -s conftest$ac_exeext'
28074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075 (eval $ac_try) 2>&5
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; }; then
28079 eval "$as_ac_var=yes"
28081 echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28084 eval "$as_ac_var=no"
28086 rm -f conftest.err conftest.$ac_objext \
28087 conftest$ac_exeext conftest.$ac_ext
28089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28091 if test `eval echo '${'$as_ac_var'}'` = yes; then
28092 cat >>confdefs.h <<_ACEOF
28093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28099 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28100 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28101 if test "${llvm_cv_c_printf_a+set}" = set; then
28102 echo $ECHO_N "(cached) $ECHO_C" >&6
28105 ac_cpp='$CPP $CPPFLAGS'
28106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28110 if test "$cross_compiling" = yes; then
28111 llvmac_cv_c_printf_a=no
28113 cat >conftest.$ac_ext <<_ACEOF
28117 cat confdefs.h >>conftest.$ac_ext
28118 cat >>conftest.$ac_ext <<_ACEOF
28119 /* end confdefs.h. */
28122 #include <stdlib.h>
28128 volatile double A, B;
28132 sprintf(Buffer, "%a", A);
28136 if (A != 0x1.999999999999ap-4)
28143 rm -f conftest$ac_exeext
28144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28145 (eval $ac_link) 2>&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28150 (eval $ac_try) 2>&5
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); }; }; then
28154 llvm_cv_c_printf_a=yes
28156 echo "$as_me: program exited with status $ac_status" >&5
28157 echo "$as_me: failed program was:" >&5
28158 sed 's/^/| /' conftest.$ac_ext >&5
28160 ( exit $ac_status )
28161 llvmac_cv_c_printf_a=no
28163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28166 ac_cpp='$CPP $CPPFLAGS'
28167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28172 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28173 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28174 if test "$llvm_cv_c_printf_a" = "yes"; then
28176 cat >>confdefs.h <<\_ACEOF
28177 #define HAVE_PRINTF_A 1
28182 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28183 # for constant arguments. Useless!
28184 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28185 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28186 if test "${ac_cv_working_alloca_h+set}" = set; then
28187 echo $ECHO_N "(cached) $ECHO_C" >&6
28189 cat >conftest.$ac_ext <<_ACEOF
28192 cat confdefs.h >>conftest.$ac_ext
28193 cat >>conftest.$ac_ext <<_ACEOF
28194 /* end confdefs.h. */
28195 #include <alloca.h>
28199 char *p = (char *) alloca (2 * sizeof (int));
28204 rm -f conftest.$ac_objext conftest$ac_exeext
28205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28206 (eval $ac_link) 2>conftest.er1
28208 grep -v '^ *+' conftest.er1 >conftest.err
28210 cat conftest.err >&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); } &&
28213 { ac_try='test -z "$ac_c_werror_flag"
28214 || test ! -s conftest.err'
28215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216 (eval $ac_try) 2>&5
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); }; } &&
28220 { ac_try='test -s conftest$ac_exeext'
28221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222 (eval $ac_try) 2>&5
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); }; }; then
28226 ac_cv_working_alloca_h=yes
28228 echo "$as_me: failed program was:" >&5
28229 sed 's/^/| /' conftest.$ac_ext >&5
28231 ac_cv_working_alloca_h=no
28233 rm -f conftest.err conftest.$ac_objext \
28234 conftest$ac_exeext conftest.$ac_ext
28236 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28237 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28238 if test $ac_cv_working_alloca_h = yes; then
28240 cat >>confdefs.h <<\_ACEOF
28241 #define HAVE_ALLOCA_H 1
28246 echo "$as_me:$LINENO: checking for alloca" >&5
28247 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28248 if test "${ac_cv_func_alloca_works+set}" = set; then
28249 echo $ECHO_N "(cached) $ECHO_C" >&6
28251 cat >conftest.$ac_ext <<_ACEOF
28254 cat confdefs.h >>conftest.$ac_ext
28255 cat >>conftest.$ac_ext <<_ACEOF
28256 /* end confdefs.h. */
28258 # define alloca __builtin_alloca
28261 # include <malloc.h>
28262 # define alloca _alloca
28265 # include <alloca.h>
28270 # ifndef alloca /* predefined by HP cc +Olibcalls */
28281 char *p = (char *) alloca (1);
28286 rm -f conftest.$ac_objext conftest$ac_exeext
28287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28288 (eval $ac_link) 2>conftest.er1
28290 grep -v '^ *+' conftest.er1 >conftest.err
28292 cat conftest.err >&5
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); } &&
28295 { ac_try='test -z "$ac_c_werror_flag"
28296 || test ! -s conftest.err'
28297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28298 (eval $ac_try) 2>&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); }; } &&
28302 { ac_try='test -s conftest$ac_exeext'
28303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28304 (eval $ac_try) 2>&5
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); }; }; then
28308 ac_cv_func_alloca_works=yes
28310 echo "$as_me: failed program was:" >&5
28311 sed 's/^/| /' conftest.$ac_ext >&5
28313 ac_cv_func_alloca_works=no
28315 rm -f conftest.err conftest.$ac_objext \
28316 conftest$ac_exeext conftest.$ac_ext
28318 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28319 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28321 if test $ac_cv_func_alloca_works = yes; then
28323 cat >>confdefs.h <<\_ACEOF
28324 #define HAVE_ALLOCA 1
28328 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28329 # that cause trouble. Some versions do not even contain alloca or
28330 # contain a buggy version. If you still want to use their alloca,
28331 # use ar to extract alloca.o from them instead of compiling alloca.c.
28333 ALLOCA=alloca.$ac_objext
28335 cat >>confdefs.h <<\_ACEOF
28340 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28341 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28342 if test "${ac_cv_os_cray+set}" = set; then
28343 echo $ECHO_N "(cached) $ECHO_C" >&6
28345 cat >conftest.$ac_ext <<_ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h. */
28351 #if defined(CRAY) && ! defined(CRAY2)
28358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28359 $EGREP "webecray" >/dev/null 2>&1; then
28367 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28368 echo "${ECHO_T}$ac_cv_os_cray" >&6
28369 if test $ac_cv_os_cray = yes; then
28370 for ac_func in _getb67 GETB67 getb67; do
28371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28372 echo "$as_me:$LINENO: checking for $ac_func" >&5
28373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28374 if eval "test \"\${$as_ac_var+set}\" = set"; then
28375 echo $ECHO_N "(cached) $ECHO_C" >&6
28377 cat >conftest.$ac_ext <<_ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h. */
28383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28385 #define $ac_func innocuous_$ac_func
28387 /* System header to define __stub macros and hopefully few prototypes,
28388 which can conflict with char $ac_func (); below.
28389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28390 <limits.h> exists even on freestanding compilers. */
28393 # include <limits.h>
28395 # include <assert.h>
28400 /* Override any gcc2 internal prototype to avoid an error. */
28405 /* We use char because int might match the return type of a gcc2
28406 builtin and then its argument prototype would still apply. */
28408 /* The GNU C library defines this for functions which it implements
28409 to always fail with ENOSYS. Some functions are actually named
28410 something starting with __ and the normal name is an alias. */
28411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28414 char (*f) () = $ac_func;
28423 return f != $ac_func;
28428 rm -f conftest.$ac_objext conftest$ac_exeext
28429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28430 (eval $ac_link) 2>conftest.er1
28432 grep -v '^ *+' conftest.er1 >conftest.err
28434 cat conftest.err >&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } &&
28437 { ac_try='test -z "$ac_c_werror_flag"
28438 || test ! -s conftest.err'
28439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440 (eval $ac_try) 2>&5
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); }; } &&
28444 { ac_try='test -s conftest$ac_exeext'
28445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28446 (eval $ac_try) 2>&5
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); }; }; then
28450 eval "$as_ac_var=yes"
28452 echo "$as_me: failed program was:" >&5
28453 sed 's/^/| /' conftest.$ac_ext >&5
28455 eval "$as_ac_var=no"
28457 rm -f conftest.err conftest.$ac_objext \
28458 conftest$ac_exeext conftest.$ac_ext
28460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28462 if test `eval echo '${'$as_ac_var'}'` = yes; then
28464 cat >>confdefs.h <<_ACEOF
28465 #define CRAY_STACKSEG_END $ac_func
28474 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28475 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28476 if test "${ac_cv_c_stack_direction+set}" = set; then
28477 echo $ECHO_N "(cached) $ECHO_C" >&6
28479 if test "$cross_compiling" = yes; then
28480 ac_cv_c_stack_direction=0
28482 cat >conftest.$ac_ext <<_ACEOF
28485 cat confdefs.h >>conftest.$ac_ext
28486 cat >>conftest.$ac_ext <<_ACEOF
28487 /* end confdefs.h. */
28489 find_stack_direction ()
28491 static char *addr = 0;
28496 return find_stack_direction ();
28499 return (&dummy > addr) ? 1 : -1;
28505 exit (find_stack_direction () < 0);
28508 rm -f conftest$ac_exeext
28509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28510 (eval $ac_link) 2>&5
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28515 (eval $ac_try) 2>&5
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
28519 ac_cv_c_stack_direction=1
28521 echo "$as_me: program exited with status $ac_status" >&5
28522 echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28525 ( exit $ac_status )
28526 ac_cv_c_stack_direction=-1
28528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28531 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28532 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28534 cat >>confdefs.h <<_ACEOF
28535 #define STACK_DIRECTION $ac_cv_c_stack_direction
28542 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28543 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28544 if test "${ac_cv_func_rand48+set}" = set; then
28545 echo $ECHO_N "(cached) $ECHO_C" >&6
28548 ac_cpp='$CXXCPP $CPPFLAGS'
28549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28553 cat >conftest.$ac_ext <<_ACEOF
28556 cat confdefs.h >>conftest.$ac_ext
28557 cat >>conftest.$ac_ext <<_ACEOF
28558 /* end confdefs.h. */
28559 #include <stdlib.h>
28563 srand48(0);lrand48();drand48();
28568 rm -f conftest.$ac_objext
28569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28570 (eval $ac_compile) 2>conftest.er1
28572 grep -v '^ *+' conftest.er1 >conftest.err
28574 cat conftest.err >&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); } &&
28577 { ac_try='test -z "$ac_cxx_werror_flag"
28578 || test ! -s conftest.err'
28579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28580 (eval $ac_try) 2>&5
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); }; } &&
28584 { ac_try='test -s conftest.$ac_objext'
28585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28586 (eval $ac_try) 2>&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); }; }; then
28590 ac_cv_func_rand48=yes
28592 echo "$as_me: failed program was:" >&5
28593 sed 's/^/| /' conftest.$ac_ext >&5
28595 ac_cv_func_rand48=no
28597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28599 ac_cpp='$CPP $CPPFLAGS'
28600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28605 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28606 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28608 if test "$ac_cv_func_rand48" = "yes" ; then
28610 cat >>confdefs.h <<\_ACEOF
28611 #define HAVE_RAND48 1
28617 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28618 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28619 if test "${ac_cv_cxx_namespaces+set}" = set; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28623 ac_cpp='$CXXCPP $CPPFLAGS'
28624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28628 cat >conftest.$ac_ext <<_ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634 namespace Outer { namespace Inner { int i = 0; }}
28638 using namespace Outer::Inner; return i;
28643 rm -f conftest.$ac_objext
28644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28645 (eval $ac_compile) 2>conftest.er1
28647 grep -v '^ *+' conftest.er1 >conftest.err
28649 cat conftest.err >&5
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); } &&
28652 { ac_try='test -z "$ac_cxx_werror_flag"
28653 || test ! -s conftest.err'
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; } &&
28659 { ac_try='test -s conftest.$ac_objext'
28660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661 (eval $ac_try) 2>&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); }; }; then
28665 ac_cv_cxx_namespaces=yes
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28670 ac_cv_cxx_namespaces=no
28672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28674 ac_cpp='$CPP $CPPFLAGS'
28675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28681 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28682 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28683 if test "$ac_cv_cxx_namespaces" = yes; then
28685 cat >>confdefs.h <<\_ACEOF
28686 #define HAVE_NAMESPACES
28691 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28692 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28693 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28694 echo $ECHO_N "(cached) $ECHO_C" >&6
28698 ac_cpp='$CXXCPP $CPPFLAGS'
28699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28703 cat >conftest.$ac_ext <<_ACEOF
28706 cat confdefs.h >>conftest.$ac_ext
28707 cat >>conftest.$ac_ext <<_ACEOF
28708 /* end confdefs.h. */
28709 #include <ext/hash_map>
28710 #ifdef HAVE_NAMESPACES
28711 using namespace std;
28716 hash_map<int, int> t;
28721 rm -f conftest.$ac_objext
28722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28723 (eval $ac_compile) 2>conftest.er1
28725 grep -v '^ *+' conftest.er1 >conftest.err
28727 cat conftest.err >&5
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); } &&
28730 { ac_try='test -z "$ac_cxx_werror_flag"
28731 || test ! -s conftest.err'
28732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28733 (eval $ac_try) 2>&5
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; } &&
28737 { ac_try='test -s conftest.$ac_objext'
28738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739 (eval $ac_try) 2>&5
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; }; then
28743 ac_cv_cxx_have_std_ext_hash_map=yes
28745 echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28748 ac_cv_cxx_have_std_ext_hash_map=no
28750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28752 ac_cpp='$CPP $CPPFLAGS'
28753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28758 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28759 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28760 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28763 cat >>confdefs.h <<\_ACEOF
28764 #define HAVE_STD_EXT_HASH_MAP 1
28769 cat >>confdefs.h <<\_ACEOF
28770 #define HAVE_STD_EXT_HASH_MAP 0
28775 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28776 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28777 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28778 echo $ECHO_N "(cached) $ECHO_C" >&6
28782 ac_cpp='$CXXCPP $CPPFLAGS'
28783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28787 cat >conftest.$ac_ext <<_ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h. */
28793 #include <ext/hash_map>
28794 #ifdef HAVE_NAMESPACES
28795 using namespace __gnu_cxx;
28800 hash_map<int,int> t;
28805 rm -f conftest.$ac_objext
28806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28807 (eval $ac_compile) 2>conftest.er1
28809 grep -v '^ *+' conftest.er1 >conftest.err
28811 cat conftest.err >&5
28812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813 (exit $ac_status); } &&
28814 { ac_try='test -z "$ac_cxx_werror_flag"
28815 || test ! -s conftest.err'
28816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817 (eval $ac_try) 2>&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; } &&
28821 { ac_try='test -s conftest.$ac_objext'
28822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28823 (eval $ac_try) 2>&5
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); }; }; then
28827 ac_cv_cxx_have_gnu_ext_hash_map=yes
28829 echo "$as_me: failed program was:" >&5
28830 sed 's/^/| /' conftest.$ac_ext >&5
28832 ac_cv_cxx_have_gnu_ext_hash_map=no
28834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28836 ac_cpp='$CPP $CPPFLAGS'
28837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28842 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28843 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28844 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28847 cat >>confdefs.h <<\_ACEOF
28848 #define HAVE_GNU_EXT_HASH_MAP 1
28853 cat >>confdefs.h <<\_ACEOF
28854 #define HAVE_GNU_EXT_HASH_MAP 0
28859 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28860 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28861 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28862 echo $ECHO_N "(cached) $ECHO_C" >&6
28866 ac_cpp='$CXXCPP $CPPFLAGS'
28867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28871 cat >conftest.$ac_ext <<_ACEOF
28874 cat confdefs.h >>conftest.$ac_ext
28875 cat >>conftest.$ac_ext <<_ACEOF
28876 /* end confdefs.h. */
28877 #include <hash_map>
28881 hash_map<int,int> t;
28886 rm -f conftest.$ac_objext
28887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28888 (eval $ac_compile) 2>conftest.er1
28890 grep -v '^ *+' conftest.er1 >conftest.err
28892 cat conftest.err >&5
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); } &&
28895 { ac_try='test -z "$ac_cxx_werror_flag"
28896 || test ! -s conftest.err'
28897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28898 (eval $ac_try) 2>&5
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); }; } &&
28902 { ac_try='test -s conftest.$ac_objext'
28903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904 (eval $ac_try) 2>&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); }; }; then
28908 ac_cv_cxx_have_global_hash_map=yes
28910 echo "$as_me: failed program was:" >&5
28911 sed 's/^/| /' conftest.$ac_ext >&5
28913 ac_cv_cxx_have_global_hash_map=no
28915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28917 ac_cpp='$CPP $CPPFLAGS'
28918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28923 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28924 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28925 if test "$ac_cv_cxx_have_global_hash_map" = yes
28928 cat >>confdefs.h <<\_ACEOF
28929 #define HAVE_GLOBAL_HASH_MAP 1
28934 cat >>confdefs.h <<\_ACEOF
28935 #define HAVE_GLOBAL_HASH_MAP 0
28940 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28941 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28942 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28943 echo $ECHO_N "(cached) $ECHO_C" >&6
28947 ac_cpp='$CXXCPP $CPPFLAGS'
28948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28952 cat >conftest.$ac_ext <<_ACEOF
28955 cat confdefs.h >>conftest.$ac_ext
28956 cat >>conftest.$ac_ext <<_ACEOF
28957 /* end confdefs.h. */
28958 #include <ext/hash_set>
28959 #ifdef HAVE_NAMESPACES
28960 using namespace std;
28970 rm -f conftest.$ac_objext
28971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28972 (eval $ac_compile) 2>conftest.er1
28974 grep -v '^ *+' conftest.er1 >conftest.err
28976 cat conftest.err >&5
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); } &&
28979 { ac_try='test -z "$ac_cxx_werror_flag"
28980 || test ! -s conftest.err'
28981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28982 (eval $ac_try) 2>&5
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); }; } &&
28986 { ac_try='test -s conftest.$ac_objext'
28987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988 (eval $ac_try) 2>&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); }; }; then
28992 ac_cv_cxx_have_std_ext_hash_set=yes
28994 echo "$as_me: failed program was:" >&5
28995 sed 's/^/| /' conftest.$ac_ext >&5
28997 ac_cv_cxx_have_std_ext_hash_set=no
28999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29001 ac_cpp='$CPP $CPPFLAGS'
29002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29007 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29008 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29009 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29012 cat >>confdefs.h <<\_ACEOF
29013 #define HAVE_STD_EXT_HASH_SET 1
29018 cat >>confdefs.h <<\_ACEOF
29019 #define HAVE_STD_EXT_HASH_SET 0
29024 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29025 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29026 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29027 echo $ECHO_N "(cached) $ECHO_C" >&6
29031 ac_cpp='$CXXCPP $CPPFLAGS'
29032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29036 cat >conftest.$ac_ext <<_ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h. */
29042 #include <ext/hash_set>
29043 #ifdef HAVE_NAMESPACES
29044 using namespace __gnu_cxx;
29054 rm -f conftest.$ac_objext
29055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29056 (eval $ac_compile) 2>conftest.er1
29058 grep -v '^ *+' conftest.er1 >conftest.err
29060 cat conftest.err >&5
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } &&
29063 { ac_try='test -z "$ac_cxx_werror_flag"
29064 || test ! -s conftest.err'
29065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066 (eval $ac_try) 2>&5
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); }; } &&
29070 { ac_try='test -s conftest.$ac_objext'
29071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072 (eval $ac_try) 2>&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); }; }; then
29076 ac_cv_cxx_have_gnu_ext_hash_set=yes
29078 echo "$as_me: failed program was:" >&5
29079 sed 's/^/| /' conftest.$ac_ext >&5
29081 ac_cv_cxx_have_gnu_ext_hash_set=no
29083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29085 ac_cpp='$CPP $CPPFLAGS'
29086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29091 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29092 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29093 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29096 cat >>confdefs.h <<\_ACEOF
29097 #define HAVE_GNU_EXT_HASH_SET 1
29102 cat >>confdefs.h <<\_ACEOF
29103 #define HAVE_GNU_EXT_HASH_SET 0
29108 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29109 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29110 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29115 ac_cpp='$CXXCPP $CPPFLAGS'
29116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29120 cat >conftest.$ac_ext <<_ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h. */
29126 #include <hash_set>
29130 hash_set<int> t; return 0;
29135 rm -f conftest.$ac_objext
29136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29137 (eval $ac_compile) 2>conftest.er1
29139 grep -v '^ *+' conftest.er1 >conftest.err
29141 cat conftest.err >&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); } &&
29144 { ac_try='test -z "$ac_cxx_werror_flag"
29145 || test ! -s conftest.err'
29146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29147 (eval $ac_try) 2>&5
29149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); }; } &&
29151 { ac_try='test -s conftest.$ac_objext'
29152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29153 (eval $ac_try) 2>&5
29155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156 (exit $ac_status); }; }; then
29157 ac_cv_cxx_have_global_hash_set=yes
29159 echo "$as_me: failed program was:" >&5
29160 sed 's/^/| /' conftest.$ac_ext >&5
29162 ac_cv_cxx_have_global_hash_set=no
29164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29166 ac_cpp='$CPP $CPPFLAGS'
29167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29172 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29173 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29174 if test "$ac_cv_cxx_have_global_hash_set" = yes
29177 cat >>confdefs.h <<\_ACEOF
29178 #define HAVE_GLOBAL_HASH_SET 1
29183 cat >>confdefs.h <<\_ACEOF
29184 #define HAVE_GLOBAL_HASH_SET 0
29189 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29190 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29191 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29192 echo $ECHO_N "(cached) $ECHO_C" >&6
29196 ac_cpp='$CXXCPP $CPPFLAGS'
29197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29201 cat >conftest.$ac_ext <<_ACEOF
29204 cat confdefs.h >>conftest.$ac_ext
29205 cat >>conftest.$ac_ext <<_ACEOF
29206 /* end confdefs.h. */
29207 #include <iterator>
29208 #ifdef HAVE_NAMESPACES
29209 using namespace std;
29214 iterator<int,int,int> t; return 0;
29219 rm -f conftest.$ac_objext
29220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29221 (eval $ac_compile) 2>conftest.er1
29223 grep -v '^ *+' conftest.er1 >conftest.err
29225 cat conftest.err >&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); } &&
29228 { ac_try='test -z "$ac_cxx_werror_flag"
29229 || test ! -s conftest.err'
29230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231 (eval $ac_try) 2>&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; } &&
29235 { ac_try='test -s conftest.$ac_objext'
29236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237 (eval $ac_try) 2>&5
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; }; then
29241 ac_cv_cxx_have_std_iterator=yes
29243 echo "$as_me: failed program was:" >&5
29244 sed 's/^/| /' conftest.$ac_ext >&5
29246 ac_cv_cxx_have_std_iterator=no
29248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29250 ac_cpp='$CPP $CPPFLAGS'
29251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29257 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29258 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29259 if test "$ac_cv_cxx_have_std_iterator" = yes
29262 cat >>confdefs.h <<\_ACEOF
29263 #define HAVE_STD_ITERATOR 1
29268 cat >>confdefs.h <<\_ACEOF
29269 #define HAVE_STD_ITERATOR 0
29274 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29275 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29276 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29281 ac_cpp='$CXXCPP $CPPFLAGS'
29282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29286 cat >conftest.$ac_ext <<_ACEOF
29289 cat confdefs.h >>conftest.$ac_ext
29290 cat >>conftest.$ac_ext <<_ACEOF
29291 /* end confdefs.h. */
29292 #include <iterator>
29293 #ifdef HAVE_NAMESPACES
29294 using namespace std;
29299 bidirectional_iterator<int,int> t; return 0;
29304 rm -f conftest.$ac_objext
29305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29306 (eval $ac_compile) 2>conftest.er1
29308 grep -v '^ *+' conftest.er1 >conftest.err
29310 cat conftest.err >&5
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); } &&
29313 { ac_try='test -z "$ac_cxx_werror_flag"
29314 || test ! -s conftest.err'
29315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29316 (eval $ac_try) 2>&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); }; } &&
29320 { ac_try='test -s conftest.$ac_objext'
29321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322 (eval $ac_try) 2>&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; }; then
29326 ac_cv_cxx_have_bi_iterator=yes
29328 echo "$as_me: failed program was:" >&5
29329 sed 's/^/| /' conftest.$ac_ext >&5
29331 ac_cv_cxx_have_bi_iterator=no
29333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29335 ac_cpp='$CPP $CPPFLAGS'
29336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29342 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29343 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29344 if test "$ac_cv_cxx_have_bi_iterator" = yes
29347 cat >>confdefs.h <<\_ACEOF
29348 #define HAVE_BI_ITERATOR 1
29353 cat >>confdefs.h <<\_ACEOF
29354 #define HAVE_BI_ITERATOR 0
29359 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29360 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29361 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29362 echo $ECHO_N "(cached) $ECHO_C" >&6
29366 ac_cpp='$CXXCPP $CPPFLAGS'
29367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29371 cat >conftest.$ac_ext <<_ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h. */
29377 #include <iterator>
29378 #ifdef HAVE_NAMESPACES
29379 using namespace std;
29384 forward_iterator<int,int> t; return 0;
29389 rm -f conftest.$ac_objext
29390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29391 (eval $ac_compile) 2>conftest.er1
29393 grep -v '^ *+' conftest.er1 >conftest.err
29395 cat conftest.err >&5
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); } &&
29398 { ac_try='test -z "$ac_cxx_werror_flag"
29399 || test ! -s conftest.err'
29400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29401 (eval $ac_try) 2>&5
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); }; } &&
29405 { ac_try='test -s conftest.$ac_objext'
29406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407 (eval $ac_try) 2>&5
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; }; then
29411 ac_cv_cxx_have_fwd_iterator=yes
29413 echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29416 ac_cv_cxx_have_fwd_iterator=no
29418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29420 ac_cpp='$CPP $CPPFLAGS'
29421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29427 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29428 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29429 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29432 cat >>confdefs.h <<\_ACEOF
29433 #define HAVE_FWD_ITERATOR 1
29438 cat >>confdefs.h <<\_ACEOF
29439 #define HAVE_FWD_ITERATOR 0
29445 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29446 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29447 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29451 ac_cpp='$CXXCPP $CPPFLAGS'
29452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29456 cat >conftest.$ac_ext <<_ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h. */
29471 rm -f conftest.$ac_objext
29472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29473 (eval $ac_compile) 2>conftest.er1
29475 grep -v '^ *+' conftest.er1 >conftest.err
29477 cat conftest.err >&5
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } &&
29480 { ac_try='test -z "$ac_cxx_werror_flag"
29481 || test ! -s conftest.err'
29482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29483 (eval $ac_try) 2>&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; } &&
29487 { ac_try='test -s conftest.$ac_objext'
29488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29489 (eval $ac_try) 2>&5
29491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492 (exit $ac_status); }; }; then
29493 ac_cv_func_isnan_in_math_h=yes
29495 echo "$as_me: failed program was:" >&5
29496 sed 's/^/| /' conftest.$ac_ext >&5
29498 ac_cv_func_isnan_in_math_h=no
29500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29502 ac_cpp='$CPP $CPPFLAGS'
29503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29508 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29509 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29512 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29514 cat >>confdefs.h <<\_ACEOF
29515 #define HAVE_ISNAN_IN_MATH_H 1
29520 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29521 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29522 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29526 ac_cpp='$CXXCPP $CPPFLAGS'
29527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29531 cat >conftest.$ac_ext <<_ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h. */
29546 rm -f conftest.$ac_objext
29547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29548 (eval $ac_compile) 2>conftest.er1
29550 grep -v '^ *+' conftest.er1 >conftest.err
29552 cat conftest.err >&5
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); } &&
29555 { ac_try='test -z "$ac_cxx_werror_flag"
29556 || test ! -s conftest.err'
29557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558 (eval $ac_try) 2>&5
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); }; } &&
29562 { ac_try='test -s conftest.$ac_objext'
29563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564 (eval $ac_try) 2>&5
29566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567 (exit $ac_status); }; }; then
29568 ac_cv_func_isnan_in_cmath=yes
29570 echo "$as_me: failed program was:" >&5
29571 sed 's/^/| /' conftest.$ac_ext >&5
29573 ac_cv_func_isnan_in_cmath=no
29575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29577 ac_cpp='$CPP $CPPFLAGS'
29578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29583 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29584 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29586 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29588 cat >>confdefs.h <<\_ACEOF
29589 #define HAVE_ISNAN_IN_CMATH 1
29594 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29595 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29596 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29597 echo $ECHO_N "(cached) $ECHO_C" >&6
29600 ac_cpp='$CXXCPP $CPPFLAGS'
29601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29605 cat >conftest.$ac_ext <<_ACEOF
29608 cat confdefs.h >>conftest.$ac_ext
29609 cat >>conftest.$ac_ext <<_ACEOF
29610 /* end confdefs.h. */
29615 float f; std::isnan(f);
29620 rm -f conftest.$ac_objext
29621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29622 (eval $ac_compile) 2>conftest.er1
29624 grep -v '^ *+' conftest.er1 >conftest.err
29626 cat conftest.err >&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); } &&
29629 { ac_try='test -z "$ac_cxx_werror_flag"
29630 || test ! -s conftest.err'
29631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29632 (eval $ac_try) 2>&5
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; } &&
29636 { ac_try='test -s conftest.$ac_objext'
29637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29638 (eval $ac_try) 2>&5
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); }; }; then
29642 ac_cv_func_std_isnan_in_cmath=yes
29644 echo "$as_me: failed program was:" >&5
29645 sed 's/^/| /' conftest.$ac_ext >&5
29647 ac_cv_func_std_isnan_in_cmath=no
29649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29651 ac_cpp='$CPP $CPPFLAGS'
29652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29657 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29658 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29660 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29662 cat >>confdefs.h <<\_ACEOF
29663 #define HAVE_STD_ISNAN_IN_CMATH 1
29669 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29670 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29671 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29672 echo $ECHO_N "(cached) $ECHO_C" >&6
29675 ac_cpp='$CXXCPP $CPPFLAGS'
29676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29680 cat >conftest.$ac_ext <<_ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h. */
29695 rm -f conftest.$ac_objext
29696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29697 (eval $ac_compile) 2>conftest.er1
29699 grep -v '^ *+' conftest.er1 >conftest.err
29701 cat conftest.err >&5
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); } &&
29704 { ac_try='test -z "$ac_cxx_werror_flag"
29705 || test ! -s conftest.err'
29706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29707 (eval $ac_try) 2>&5
29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); }; } &&
29711 { ac_try='test -s conftest.$ac_objext'
29712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713 (eval $ac_try) 2>&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); }; }; then
29717 ac_cv_func_isinf_in_math_h=yes
29719 echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29722 ac_cv_func_isinf_in_math_h=no
29724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29726 ac_cpp='$CPP $CPPFLAGS'
29727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29732 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29733 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29735 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29737 cat >>confdefs.h <<\_ACEOF
29738 #define HAVE_ISINF_IN_MATH_H 1
29743 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29744 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29745 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29746 echo $ECHO_N "(cached) $ECHO_C" >&6
29749 ac_cpp='$CXXCPP $CPPFLAGS'
29750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29754 cat >conftest.$ac_ext <<_ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h. */
29769 rm -f conftest.$ac_objext
29770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29771 (eval $ac_compile) 2>conftest.er1
29773 grep -v '^ *+' conftest.er1 >conftest.err
29775 cat conftest.err >&5
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } &&
29778 { ac_try='test -z "$ac_cxx_werror_flag"
29779 || test ! -s conftest.err'
29780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781 (eval $ac_try) 2>&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; } &&
29785 { ac_try='test -s conftest.$ac_objext'
29786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787 (eval $ac_try) 2>&5
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; }; then
29791 ac_cv_func_isinf_in_cmath=yes
29793 echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29796 ac_cv_func_isinf_in_cmath=no
29798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29800 ac_cpp='$CPP $CPPFLAGS'
29801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29806 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29807 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29809 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29811 cat >>confdefs.h <<\_ACEOF
29812 #define HAVE_ISINF_IN_CMATH 1
29817 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29818 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29819 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29820 echo $ECHO_N "(cached) $ECHO_C" >&6
29823 ac_cpp='$CXXCPP $CPPFLAGS'
29824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29828 cat >conftest.$ac_ext <<_ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h. */
29838 float f; std::isinf(f)}
29843 rm -f conftest.$ac_objext
29844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29845 (eval $ac_compile) 2>conftest.er1
29847 grep -v '^ *+' conftest.er1 >conftest.err
29849 cat conftest.err >&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); } &&
29852 { ac_try='test -z "$ac_cxx_werror_flag"
29853 || test ! -s conftest.err'
29854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29855 (eval $ac_try) 2>&5
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); }; } &&
29859 { ac_try='test -s conftest.$ac_objext'
29860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29861 (eval $ac_try) 2>&5
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); }; }; then
29865 ac_cv_func_std_isinf_in_cmath=yes
29867 echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.$ac_ext >&5
29870 ac_cv_func_std_isinf_in_cmath=no
29872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29874 ac_cpp='$CPP $CPPFLAGS'
29875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29880 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29881 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29883 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29885 cat >>confdefs.h <<\_ACEOF
29886 #define HAVE_STD_ISINF_IN_CMATH 1
29891 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29892 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29893 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29894 echo $ECHO_N "(cached) $ECHO_C" >&6
29897 ac_cpp='$CXXCPP $CPPFLAGS'
29898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29902 cat >conftest.$ac_ext <<_ACEOF
29905 cat confdefs.h >>conftest.$ac_ext
29906 cat >>conftest.$ac_ext <<_ACEOF
29907 /* end confdefs.h. */
29908 #include <ieeefp.h>
29912 float f; finite(f);
29917 rm -f conftest.$ac_objext
29918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29919 (eval $ac_compile) 2>conftest.er1
29921 grep -v '^ *+' conftest.er1 >conftest.err
29923 cat conftest.err >&5
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); } &&
29926 { ac_try='test -z "$ac_cxx_werror_flag"
29927 || test ! -s conftest.err'
29928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929 (eval $ac_try) 2>&5
29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932 (exit $ac_status); }; } &&
29933 { ac_try='test -s conftest.$ac_objext'
29934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935 (eval $ac_try) 2>&5
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); }; }; then
29939 ac_cv_func_finite_in_ieeefp_h=yes
29941 echo "$as_me: failed program was:" >&5
29942 sed 's/^/| /' conftest.$ac_ext >&5
29944 ac_cv_func_finite_in_ieeefp_h=no
29946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29948 ac_cpp='$CPP $CPPFLAGS'
29949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29954 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29955 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29957 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29959 cat >>confdefs.h <<\_ACEOF
29960 #define HAVE_FINITE_IN_IEEEFP_H 1
29969 for ac_header in stdlib.h unistd.h
29971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29973 echo "$as_me:$LINENO: checking for $ac_header" >&5
29974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29981 # Is the header compilable?
29982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29984 cat >conftest.$ac_ext <<_ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h. */
29990 $ac_includes_default
29991 #include <$ac_header>
29993 rm -f conftest.$ac_objext
29994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29995 (eval $ac_compile) 2>conftest.er1
29997 grep -v '^ *+' conftest.er1 >conftest.err
29999 cat conftest.err >&5
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); } &&
30002 { ac_try='test -z "$ac_c_werror_flag"
30003 || test ! -s conftest.err'
30004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005 (eval $ac_try) 2>&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; } &&
30009 { ac_try='test -s conftest.$ac_objext'
30010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011 (eval $ac_try) 2>&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); }; }; then
30015 ac_header_compiler=yes
30017 echo "$as_me: failed program was:" >&5
30018 sed 's/^/| /' conftest.$ac_ext >&5
30020 ac_header_compiler=no
30022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30024 echo "${ECHO_T}$ac_header_compiler" >&6
30026 # Is the header present?
30027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30029 cat >conftest.$ac_ext <<_ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h. */
30035 #include <$ac_header>
30037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30040 grep -v '^ *+' conftest.er1 >conftest.err
30042 cat conftest.err >&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } >/dev/null; then
30045 if test -s conftest.err; then
30046 ac_cpp_err=$ac_c_preproc_warn_flag
30047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30054 if test -z "$ac_cpp_err"; then
30055 ac_header_preproc=yes
30057 echo "$as_me: failed program was:" >&5
30058 sed 's/^/| /' conftest.$ac_ext >&5
30060 ac_header_preproc=no
30062 rm -f conftest.err conftest.$ac_ext
30063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30064 echo "${ECHO_T}$ac_header_preproc" >&6
30066 # So? What about this header?
30067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30073 ac_header_preproc=yes
30076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30090 ## ----------------------------------- ##
30091 ## Report this to llvmbugs@cs.uiuc.edu ##
30092 ## ----------------------------------- ##
30095 sed "s/^/$as_me: WARNING: /" >&2
30098 echo "$as_me:$LINENO: checking for $ac_header" >&5
30099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30101 echo $ECHO_N "(cached) $ECHO_C" >&6
30103 eval "$as_ac_Header=\$ac_header_preproc"
30105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30110 cat >>confdefs.h <<_ACEOF
30111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30119 for ac_func in getpagesize
30121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30122 echo "$as_me:$LINENO: checking for $ac_func" >&5
30123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30124 if eval "test \"\${$as_ac_var+set}\" = set"; then
30125 echo $ECHO_N "(cached) $ECHO_C" >&6
30127 cat >conftest.$ac_ext <<_ACEOF
30130 cat confdefs.h >>conftest.$ac_ext
30131 cat >>conftest.$ac_ext <<_ACEOF
30132 /* end confdefs.h. */
30133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30135 #define $ac_func innocuous_$ac_func
30137 /* System header to define __stub macros and hopefully few prototypes,
30138 which can conflict with char $ac_func (); below.
30139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30140 <limits.h> exists even on freestanding compilers. */
30143 # include <limits.h>
30145 # include <assert.h>
30150 /* Override any gcc2 internal prototype to avoid an error. */
30155 /* We use char because int might match the return type of a gcc2
30156 builtin and then its argument prototype would still apply. */
30158 /* The GNU C library defines this for functions which it implements
30159 to always fail with ENOSYS. Some functions are actually named
30160 something starting with __ and the normal name is an alias. */
30161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30164 char (*f) () = $ac_func;
30173 return f != $ac_func;
30178 rm -f conftest.$ac_objext conftest$ac_exeext
30179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30180 (eval $ac_link) 2>conftest.er1
30182 grep -v '^ *+' conftest.er1 >conftest.err
30184 cat conftest.err >&5
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); } &&
30187 { ac_try='test -z "$ac_c_werror_flag"
30188 || test ! -s conftest.err'
30189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30190 (eval $ac_try) 2>&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; } &&
30194 { ac_try='test -s conftest$ac_exeext'
30195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30196 (eval $ac_try) 2>&5
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; }; then
30200 eval "$as_ac_var=yes"
30202 echo "$as_me: failed program was:" >&5
30203 sed 's/^/| /' conftest.$ac_ext >&5
30205 eval "$as_ac_var=no"
30207 rm -f conftest.err conftest.$ac_objext \
30208 conftest$ac_exeext conftest.$ac_ext
30210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30212 if test `eval echo '${'$as_ac_var'}'` = yes; then
30213 cat >>confdefs.h <<_ACEOF
30214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30220 echo "$as_me:$LINENO: checking for working mmap" >&5
30221 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30222 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30223 echo $ECHO_N "(cached) $ECHO_C" >&6
30225 if test "$cross_compiling" = yes; then
30226 ac_cv_func_mmap_fixed_mapped=no
30228 cat >conftest.$ac_ext <<_ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h. */
30234 $ac_includes_default
30235 /* malloc might have been renamed as rpl_malloc. */
30238 /* Thanks to Mike Haertel and Jim Avera for this test.
30239 Here is a matrix of mmap possibilities:
30240 mmap private not fixed
30241 mmap private fixed at somewhere currently unmapped
30242 mmap private fixed at somewhere already mapped
30243 mmap shared not fixed
30244 mmap shared fixed at somewhere currently unmapped
30245 mmap shared fixed at somewhere already mapped
30246 For private mappings, we should verify that changes cannot be read()
30247 back from the file, nor mmap's back from the file at a different
30248 address. (There have been systems where private was not correctly
30249 implemented like the infamous i386 svr4.0, and systems where the
30250 VM page cache was not coherent with the file system buffer cache
30251 like early versions of FreeBSD and possibly contemporary NetBSD.)
30252 For shared mappings, we should conversely verify that changes get
30253 propagated back to all the places they're supposed to be.
30255 Grep wants private fixed already mapped.
30256 The main things grep needs to know about mmap are:
30257 * does it exist and is it safe to write into the mmap'd area
30258 * how to use it (BSD variants) */
30261 #include <sys/mman.h>
30263 #if !STDC_HEADERS && !HAVE_STDLIB_H
30267 /* This mess was copied from the GNU getpagesize.h. */
30268 #if !HAVE_GETPAGESIZE
30269 /* Assume that all systems that can run configure have sys/param.h. */
30270 # if !HAVE_SYS_PARAM_H
30271 # define HAVE_SYS_PARAM_H 1
30274 # ifdef _SC_PAGESIZE
30275 # define getpagesize() sysconf(_SC_PAGESIZE)
30276 # else /* no _SC_PAGESIZE */
30277 # if HAVE_SYS_PARAM_H
30278 # include <sys/param.h>
30279 # ifdef EXEC_PAGESIZE
30280 # define getpagesize() EXEC_PAGESIZE
30281 # else /* no EXEC_PAGESIZE */
30283 # define getpagesize() NBPG * CLSIZE
30286 # endif /* no CLSIZE */
30287 # else /* no NBPG */
30289 # define getpagesize() NBPC
30290 # else /* no NBPC */
30292 # define getpagesize() PAGESIZE
30293 # endif /* PAGESIZE */
30294 # endif /* no NBPC */
30295 # endif /* no NBPG */
30296 # endif /* no EXEC_PAGESIZE */
30297 # else /* no HAVE_SYS_PARAM_H */
30298 # define getpagesize() 8192 /* punt totally */
30299 # endif /* no HAVE_SYS_PARAM_H */
30300 # endif /* no _SC_PAGESIZE */
30302 #endif /* no HAVE_GETPAGESIZE */
30307 char *data, *data2, *data3;
30311 pagesize = getpagesize ();
30313 /* First, make a file with some known garbage in it. */
30314 data = (char *) malloc (pagesize);
30317 for (i = 0; i < pagesize; ++i)
30318 *(data + i) = rand ();
30320 fd = creat ("conftest.mmap", 0600);
30323 if (write (fd, data, pagesize) != pagesize)
30327 /* Next, try to mmap the file at a fixed address which already has
30328 something else allocated at it. If we can, also make sure that
30329 we see the same garbage. */
30330 fd = open ("conftest.mmap", O_RDWR);
30333 data2 = (char *) malloc (2 * pagesize);
30336 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30337 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30338 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30340 for (i = 0; i < pagesize; ++i)
30341 if (*(data + i) != *(data2 + i))
30344 /* Finally, make sure that changes to the mapped area do not
30345 percolate back to the file as seen by read(). (This is a bug on
30346 some variants of i386 svr4.0.) */
30347 for (i = 0; i < pagesize; ++i)
30348 *(data2 + i) = *(data2 + i) + 1;
30349 data3 = (char *) malloc (pagesize);
30352 if (read (fd, data3, pagesize) != pagesize)
30354 for (i = 0; i < pagesize; ++i)
30355 if (*(data + i) != *(data3 + i))
30361 rm -f conftest$ac_exeext
30362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30363 (eval $ac_link) 2>&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368 (eval $ac_try) 2>&5
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; }; then
30372 ac_cv_func_mmap_fixed_mapped=yes
30374 echo "$as_me: program exited with status $ac_status" >&5
30375 echo "$as_me: failed program was:" >&5
30376 sed 's/^/| /' conftest.$ac_ext >&5
30378 ( exit $ac_status )
30379 ac_cv_func_mmap_fixed_mapped=no
30381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30384 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30385 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30386 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30388 cat >>confdefs.h <<\_ACEOF
30389 #define HAVE_MMAP 1
30393 rm -f conftest.mmap
30395 echo "$as_me:$LINENO: checking for mmap of files" >&5
30396 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30397 if test "${ac_cv_func_mmap_file+set}" = set; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30401 ac_cpp='$CPP $CPPFLAGS'
30402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30406 if test "$cross_compiling" = yes; then
30407 ac_cv_func_mmap_file=no
30409 cat >conftest.$ac_ext <<_ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h. */
30417 #include <sys/types.h>
30418 #include <sys/mman.h>
30426 fd = creat ("foo",0777);
30427 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30429 return (fd != (int) MAP_FAILED);
30434 rm -f conftest$ac_exeext
30435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30436 (eval $ac_link) 2>&5
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30441 (eval $ac_try) 2>&5
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); }; }; then
30445 ac_cv_func_mmap_file=yes
30447 echo "$as_me: program exited with status $ac_status" >&5
30448 echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30451 ( exit $ac_status )
30452 ac_cv_func_mmap_file=no
30454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30457 ac_cpp='$CPP $CPPFLAGS'
30458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30464 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30465 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30466 if test "$ac_cv_func_mmap_file" = yes; then
30468 cat >>confdefs.h <<\_ACEOF
30469 #define HAVE_MMAP_FILE
30476 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30477 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30478 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30479 echo $ECHO_N "(cached) $ECHO_C" >&6
30481 if test "$llvm_cv_os_type" = "Interix" ; then
30482 ac_cv_need_dev_zero_for_mmap=yes
30484 ac_cv_need_dev_zero_for_mmap=no
30488 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30489 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30490 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30492 cat >>confdefs.h <<\_ACEOF
30493 #define NEED_DEV_ZERO_FOR_MMAP 1
30497 echo "$as_me:$LINENO: checking for mprotect" >&5
30498 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30499 if test "${ac_cv_func_mprotect+set}" = set; then
30500 echo $ECHO_N "(cached) $ECHO_C" >&6
30502 cat >conftest.$ac_ext <<_ACEOF
30505 cat confdefs.h >>conftest.$ac_ext
30506 cat >>conftest.$ac_ext <<_ACEOF
30507 /* end confdefs.h. */
30508 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30510 #define mprotect innocuous_mprotect
30512 /* System header to define __stub macros and hopefully few prototypes,
30513 which can conflict with char mprotect (); below.
30514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30515 <limits.h> exists even on freestanding compilers. */
30518 # include <limits.h>
30520 # include <assert.h>
30525 /* Override any gcc2 internal prototype to avoid an error. */
30530 /* We use char because int might match the return type of a gcc2
30531 builtin and then its argument prototype would still apply. */
30533 /* The GNU C library defines this for functions which it implements
30534 to always fail with ENOSYS. Some functions are actually named
30535 something starting with __ and the normal name is an alias. */
30536 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30539 char (*f) () = mprotect;
30548 return f != mprotect;
30553 rm -f conftest.$ac_objext conftest$ac_exeext
30554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30555 (eval $ac_link) 2>conftest.er1
30557 grep -v '^ *+' conftest.er1 >conftest.err
30559 cat conftest.err >&5
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); } &&
30562 { ac_try='test -z "$ac_c_werror_flag"
30563 || test ! -s conftest.err'
30564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30565 (eval $ac_try) 2>&5
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); }; } &&
30569 { ac_try='test -s conftest$ac_exeext'
30570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30571 (eval $ac_try) 2>&5
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); }; }; then
30575 ac_cv_func_mprotect=yes
30577 echo "$as_me: failed program was:" >&5
30578 sed 's/^/| /' conftest.$ac_ext >&5
30580 ac_cv_func_mprotect=no
30582 rm -f conftest.err conftest.$ac_objext \
30583 conftest$ac_exeext conftest.$ac_ext
30585 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30586 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30587 if test $ac_cv_func_mprotect = yes; then
30590 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30591 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30592 { (exit 1); exit 1; }; }
30596 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30598 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30599 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30601 if test "$ac_cv_func_mmap_file" = "no"
30603 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30604 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30608 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30609 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30610 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30611 echo $ECHO_N "(cached) $ECHO_C" >&6
30613 llvm_cv_llvmgcc_sanity="no"
30614 if test -x "$LLVMGCC" ; then
30615 cp /dev/null conftest.c
30616 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30617 if test $? -eq 0 ; then
30618 llvm_cv_llvmgcc_sanity="yes"
30623 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30624 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30626 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30627 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30628 LLVMCC1=$llvmcc1path
30630 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30631 LLVMCC1PLUS=$llvmcc1pluspath
30633 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30634 LLVMGCCDIR=$llvmgccdir
30638 SHLIBEXT=$libltdl_cv_shlibext
30641 # Translate the various configuration directories and other basic
30642 # information into substitutions that will end up in Makefile.config.in
30643 # that these configured values can be used by the makefiles
30644 eval LLVM_PREFIX="${prefix}";
30645 eval LLVM_BINDIR="${prefix}/bin";
30646 eval LLVM_LIBDIR="${prefix}/lib";
30647 eval LLVM_DATADIR="${prefix}/share/llvm";
30648 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30649 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30650 eval LLVM_INCLUDEDIR="${prefix}/include";
30651 eval LLVM_INFODIR="${prefix}/info";
30652 eval LLVM_MANDIR="${prefix}/man";
30653 LLVM_CONFIGTIME=`date`
30665 # Place the various directores into the config.h file as #defines so that we
30666 # can know about the installation paths within LLVM.
30668 cat >>confdefs.h <<_ACEOF
30669 #define LLVM_PREFIX "$LLVM_PREFIX"
30673 cat >>confdefs.h <<_ACEOF
30674 #define LLVM_BINDIR "$LLVM_BINDIR"
30678 cat >>confdefs.h <<_ACEOF
30679 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30683 cat >>confdefs.h <<_ACEOF
30684 #define LLVM_DATADIR "$LLVM_DATADIR"
30688 cat >>confdefs.h <<_ACEOF
30689 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30693 cat >>confdefs.h <<_ACEOF
30694 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30698 cat >>confdefs.h <<_ACEOF
30699 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30703 cat >>confdefs.h <<_ACEOF
30704 #define LLVM_INFODIR "$LLVM_INFODIR"
30708 cat >>confdefs.h <<_ACEOF
30709 #define LLVM_MANDIR "$LLVM_MANDIR"
30713 cat >>confdefs.h <<_ACEOF
30714 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30719 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30721 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30723 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30725 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30727 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30730 ac_config_files="$ac_config_files Makefile.config"
30733 ac_config_files="$ac_config_files docs/doxygen.cfg"
30736 ac_config_commands="$ac_config_commands setup"
30738 ac_config_commands="$ac_config_commands Makefile"
30741 ac_config_commands="$ac_config_commands Makefile.common"
30744 ac_config_commands="$ac_config_commands examples/Makefile"
30747 ac_config_commands="$ac_config_commands lib/Makefile"
30750 ac_config_commands="$ac_config_commands runtime/Makefile"
30753 ac_config_commands="$ac_config_commands test/Makefile"
30756 ac_config_commands="$ac_config_commands test/Makefile.tests"
30759 ac_config_commands="$ac_config_commands tools/Makefile"
30762 ac_config_commands="$ac_config_commands utils/Makefile"
30765 ac_config_commands="$ac_config_commands projects/Makefile"
30769 cat >confcache <<\_ACEOF
30770 # This file is a shell script that caches the results of configure
30771 # tests run on this system so they can be shared between configure
30772 # scripts and configure runs, see configure's option --config-cache.
30773 # It is not useful on other systems. If it contains results you don't
30774 # want to keep, you may remove or edit it.
30776 # config.status only pays attention to the cache file if you give it
30777 # the --recheck option to rerun configure.
30779 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30781 # following values.
30785 # The following way of writing the cache mishandles newlines in values,
30786 # but we know of no workaround that is simple, portable, and efficient.
30787 # So, don't put newlines in cache variables' values.
30788 # Ultrix sh set writes to stderr and can't be redirected directly,
30789 # and sets the high bit in the cache file unless we assign to the vars.
30792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30794 # `set' does not quote correctly, so add quotes (double-quote
30795 # substitution turns \\\\ into \\, and sed turns \\ into \).
30798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30801 # `set' quotes correctly as required by POSIX, so do not add quotes.
30803 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30812 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30814 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30815 if test -w $cache_file; then
30816 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30817 cat confcache >$cache_file
30819 echo "not updating unwritable cache $cache_file"
30824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30825 # Let make expand exec_prefix.
30826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30828 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30830 # trailing colons and then remove the whole line if VPATH becomes empty
30831 # (actually we leave an empty line to preserve line numbers).
30832 if test "x$srcdir" = x.; then
30833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30834 s/:*\$(srcdir):*/:/;
30835 s/:*\${srcdir}:*/:/;
30837 s/^\([^=]*=[ ]*\):*/\1/;
30843 DEFS=-DHAVE_CONFIG_H
30847 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30848 # 1. Remove the extension, and $U if already installed.
30849 ac_i=`echo "$ac_i" |
30850 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30852 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30853 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30855 LIBOBJS=$ac_libobjs
30857 LTLIBOBJS=$ac_ltlibobjs
30860 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30861 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30862 Usually this means the macro was only invoked conditionally." >&5
30863 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30864 Usually this means the macro was only invoked conditionally." >&2;}
30865 { (exit 1); exit 1; }; }
30867 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30868 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30869 Usually this means the macro was only invoked conditionally." >&5
30870 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30871 Usually this means the macro was only invoked conditionally." >&2;}
30872 { (exit 1); exit 1; }; }
30875 : ${CONFIG_STATUS=./config.status}
30876 ac_clean_files_save=$ac_clean_files
30877 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30878 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30879 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30880 cat >$CONFIG_STATUS <<_ACEOF
30882 # Generated by $as_me.
30883 # Run this file to recreate the current configuration.
30884 # Compiler output produced by configure, useful for debugging
30885 # configure, is in config.log if it exists.
30888 ac_cs_recheck=false
30890 SHELL=\${CONFIG_SHELL-$SHELL}
30893 cat >>$CONFIG_STATUS <<\_ACEOF
30894 ## --------------------- ##
30895 ## M4sh Initialization. ##
30896 ## --------------------- ##
30898 # Be Bourne compatible
30899 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30902 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30903 # is contrary to our usage. Disable this feature.
30904 alias -g '${1+"$@"}'='"$@"'
30905 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30908 DUALCASE=1; export DUALCASE # for MKS sh
30910 # Support unset when possible.
30911 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30918 # Work around bugs in pre-3.0 UWIN ksh.
30919 $as_unset ENV MAIL MAILPATH
30926 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30927 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30928 LC_TELEPHONE LC_TIME
30930 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30931 eval $as_var=C; export $as_var
30937 # Required to use basename.
30938 if expr a : '\(a\)' >/dev/null 2>&1; then
30944 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30945 as_basename=basename
30951 # Name of the executable.
30952 as_me=`$as_basename "$0" ||
30953 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30954 X"$0" : 'X\(//\)$' \| \
30955 X"$0" : 'X\(/\)$' \| \
30956 . : '\(.\)' 2>/dev/null ||
30958 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30959 /^X\/\(\/\/\)$/{ s//\1/; q; }
30960 /^X\/\(\/\).*/{ s//\1/; q; }
30964 # PATH needs CR, and LINENO needs CR and PATH.
30965 # Avoid depending upon Character Ranges.
30966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30969 as_cr_digits='0123456789'
30970 as_cr_alnum=$as_cr_Letters$as_cr_digits
30972 # The user is always right.
30973 if test "${PATH_SEPARATOR+set}" != set; then
30974 echo "#! /bin/sh" >conf$$.sh
30975 echo "exit 0" >>conf$$.sh
30977 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30986 as_lineno_1=$LINENO
30987 as_lineno_2=$LINENO
30988 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30989 test "x$as_lineno_1" != "x$as_lineno_2" &&
30990 test "x$as_lineno_3" = "x$as_lineno_2" || {
30991 # Find who we are. Look in the path if we contain no path at all
30994 *[\\/]* ) as_myself=$0 ;;
30995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30996 for as_dir in $PATH
30999 test -z "$as_dir" && as_dir=.
31000 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31005 # We did not find ourselves, most probably we were run as `sh COMMAND'
31006 # in which case we are not to be found in the path.
31007 if test "x$as_myself" = x; then
31010 if test ! -f "$as_myself"; then
31011 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31012 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31013 { (exit 1); exit 1; }; }
31015 case $CONFIG_SHELL in
31017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31018 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31021 test -z "$as_dir" && as_dir=.
31022 for as_base in sh bash ksh sh5; do
31025 if ("$as_dir/$as_base" -c '
31026 as_lineno_1=$LINENO
31027 as_lineno_2=$LINENO
31028 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31029 test "x$as_lineno_1" != "x$as_lineno_2" &&
31030 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31031 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31032 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31033 CONFIG_SHELL=$as_dir/$as_base
31034 export CONFIG_SHELL
31035 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31043 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31044 # uniformly replaced by the line number. The first 'sed' inserts a
31045 # line-number line before each line; the second 'sed' does the real
31046 # work. The second script uses 'N' to pair each line-number line
31047 # with the numbered line, and appends trailing '-' during
31048 # substitution so that $LINENO is not a special case at line end.
31049 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31050 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31051 sed '=' <$as_myself |
31056 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31059 s,^['$as_cr_digits']*\n,,
31060 ' >$as_me.lineno &&
31061 chmod +x $as_me.lineno ||
31062 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31063 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31064 { (exit 1); exit 1; }; }
31066 # Don't try to exec as it changes $[0], causing all sort of problems
31067 # (the dirname of $[0] is not the place where we might find the
31068 # original and so on. Autoconf is especially sensible to this).
31070 # Exit status is that of the last command.
31075 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31076 *c*,-n*) ECHO_N= ECHO_C='
31078 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31079 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31082 if expr a : '\(a\)' >/dev/null 2>&1; then
31088 rm -f conf$$ conf$$.exe conf$$.file
31090 if ln -s conf$$.file conf$$ 2>/dev/null; then
31091 # We could just check for DJGPP; but this test a) works b) is more generic
31092 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31093 if test -f conf$$.exe; then
31094 # Don't use ln at all; we don't have any links
31099 elif ln conf$$.file conf$$ 2>/dev/null; then
31104 rm -f conf$$ conf$$.exe conf$$.file
31106 if mkdir -p . 2>/dev/null; then
31109 test -d ./-p && rmdir ./-p
31113 as_executable_p="test -f"
31115 # Sed expression to map a string onto a valid CPP name.
31116 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31118 # Sed expression to map a string onto a valid variable name.
31119 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31123 # We need space, tab and new line, in precisely that order.
31133 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31134 # report actual input values of CONFIG_FILES etc. instead of their
31135 # values after options handling. Logging --version etc. is OK.
31139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31140 ## Running $as_me. ##
31145 This file was extended by llvm $as_me 1.7cvs, which was
31146 generated by GNU Autoconf 2.59. Invocation command line was
31148 CONFIG_FILES = $CONFIG_FILES
31149 CONFIG_HEADERS = $CONFIG_HEADERS
31150 CONFIG_LINKS = $CONFIG_LINKS
31151 CONFIG_COMMANDS = $CONFIG_COMMANDS
31155 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31159 # Files that config.status was made for.
31160 if test -n "$ac_config_files"; then
31161 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31164 if test -n "$ac_config_headers"; then
31165 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31168 if test -n "$ac_config_links"; then
31169 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31172 if test -n "$ac_config_commands"; then
31173 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31176 cat >>$CONFIG_STATUS <<\_ACEOF
31179 \`$as_me' instantiates files from templates according to the
31180 current configuration.
31182 Usage: $0 [OPTIONS] [FILE]...
31184 -h, --help print this help, then exit
31185 -V, --version print version number, then exit
31186 -q, --quiet do not print progress messages
31187 -d, --debug don't remove temporary files
31188 --recheck update $as_me by reconfiguring in the same conditions
31189 --file=FILE[:TEMPLATE]
31190 instantiate the configuration file FILE
31191 --header=FILE[:TEMPLATE]
31192 instantiate the configuration header FILE
31194 Configuration files:
31197 Configuration headers:
31200 Configuration commands:
31203 Report bugs to <bug-autoconf@gnu.org>."
31206 cat >>$CONFIG_STATUS <<_ACEOF
31208 llvm config.status 1.7cvs
31209 configured by $0, generated by GNU Autoconf 2.59,
31210 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31212 Copyright (C) 2003 Free Software Foundation, Inc.
31213 This config.status script is free software; the Free Software Foundation
31214 gives unlimited permission to copy, distribute and modify it."
31219 cat >>$CONFIG_STATUS <<\_ACEOF
31220 # If no file are specified by the user, then we need to provide default
31221 # value. By we need to know if files were specified by the user.
31227 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31228 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31236 *) # This is not an option, so the user has probably given explicit
31239 ac_need_defaults=false;;
31243 # Handling of the options.
31245 cat >>$CONFIG_STATUS <<\_ACEOF
31246 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31248 --version | --vers* | -V )
31249 echo "$ac_cs_version"; exit 0 ;;
31251 # Conflict between --help and --header
31252 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31253 Try \`$0 --help' for more information." >&5
31254 echo "$as_me: error: ambiguous option: $1
31255 Try \`$0 --help' for more information." >&2;}
31256 { (exit 1); exit 1; }; };;
31257 --help | --hel | -h )
31258 echo "$ac_cs_usage"; exit 0 ;;
31259 --debug | --d* | -d )
31261 --file | --fil | --fi | --f )
31263 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31264 ac_need_defaults=false;;
31265 --header | --heade | --head | --hea )
31267 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31268 ac_need_defaults=false;;
31269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31270 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31273 # This is an error.
31274 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31275 Try \`$0 --help' for more information." >&5
31276 echo "$as_me: error: unrecognized option: $1
31277 Try \`$0 --help' for more information." >&2;}
31278 { (exit 1); exit 1; }; } ;;
31280 *) ac_config_targets="$ac_config_targets $1" ;;
31286 ac_configure_extra_args=
31288 if $ac_cs_silent; then
31290 ac_configure_extra_args="$ac_configure_extra_args --silent"
31294 cat >>$CONFIG_STATUS <<_ACEOF
31295 if \$ac_cs_recheck; then
31296 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31297 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31302 cat >>$CONFIG_STATUS <<_ACEOF
31304 # INIT-COMMANDS section.
31307 llvm_src="${srcdir}"
31313 cat >>$CONFIG_STATUS <<\_ACEOF
31314 for ac_config_target in $ac_config_targets
31316 case "$ac_config_target" in
31317 # Handling of arguments.
31318 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31319 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31320 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31321 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31322 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31323 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31324 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31325 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31326 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31327 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31328 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31329 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31330 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31331 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31332 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31333 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31334 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31335 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31336 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31337 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31338 { (exit 1); exit 1; }; };;
31342 # If the user did not use the arguments to specify the items to instantiate,
31343 # then the envvar interface is used. Set only those that are not.
31344 # We use the long form for the default assignment because of an extremely
31345 # bizarre bug on SunOS 4.1.3.
31346 if $ac_need_defaults; then
31347 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31348 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31352 # Have a temporary directory for convenience. Make it in the build tree
31353 # simply because there is no reason to put it here, and in addition,
31354 # creating and moving files from /tmp can sometimes cause problems.
31355 # Create a temporary directory, and hook for its removal unless debugging.
31358 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31359 trap '{ (exit 1); exit 1; }' 1 2 13 15
31362 # Create a (secure) tmp directory for tmp files.
31365 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31366 test -n "$tmp" && test -d "$tmp"
31369 tmp=./confstat$$-$RANDOM
31370 (umask 077 && mkdir $tmp)
31373 echo "$me: cannot create a temporary directory in ." >&2
31374 { (exit 1); exit 1; }
31379 cat >>$CONFIG_STATUS <<_ACEOF
31382 # CONFIG_FILES section.
31385 # No need to generate the scripts if there are no CONFIG_FILES.
31386 # This happens for instance when ./config.status config.h
31387 if test -n "\$CONFIG_FILES"; then
31388 # Protect against being on the right side of a sed subst in config.status.
31389 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31390 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31391 s,@SHELL@,$SHELL,;t t
31392 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31393 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31394 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31395 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31396 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31397 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31398 s,@exec_prefix@,$exec_prefix,;t t
31399 s,@prefix@,$prefix,;t t
31400 s,@program_transform_name@,$program_transform_name,;t t
31401 s,@bindir@,$bindir,;t t
31402 s,@sbindir@,$sbindir,;t t
31403 s,@libexecdir@,$libexecdir,;t t
31404 s,@datadir@,$datadir,;t t
31405 s,@sysconfdir@,$sysconfdir,;t t
31406 s,@sharedstatedir@,$sharedstatedir,;t t
31407 s,@localstatedir@,$localstatedir,;t t
31408 s,@libdir@,$libdir,;t t
31409 s,@includedir@,$includedir,;t t
31410 s,@oldincludedir@,$oldincludedir,;t t
31411 s,@infodir@,$infodir,;t t
31412 s,@mandir@,$mandir,;t t
31413 s,@build_alias@,$build_alias,;t t
31414 s,@host_alias@,$host_alias,;t t
31415 s,@target_alias@,$target_alias,;t t
31416 s,@DEFS@,$DEFS,;t t
31417 s,@ECHO_C@,$ECHO_C,;t t
31418 s,@ECHO_N@,$ECHO_N,;t t
31419 s,@ECHO_T@,$ECHO_T,;t t
31420 s,@LIBS@,$LIBS,;t t
31421 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31422 s,@subdirs@,$subdirs,;t t
31423 s,@build@,$build,;t t
31424 s,@build_cpu@,$build_cpu,;t t
31425 s,@build_vendor@,$build_vendor,;t t
31426 s,@build_os@,$build_os,;t t
31427 s,@host@,$host,;t t
31428 s,@host_cpu@,$host_cpu,;t t
31429 s,@host_vendor@,$host_vendor,;t t
31430 s,@host_os@,$host_os,;t t
31431 s,@target@,$target,;t t
31432 s,@target_cpu@,$target_cpu,;t t
31433 s,@target_vendor@,$target_vendor,;t t
31434 s,@target_os@,$target_os,;t t
31436 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31437 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31438 s,@ARCH@,$ARCH,;t t
31439 s,@ENDIAN@,$ENDIAN,;t t
31441 s,@CFLAGS@,$CFLAGS,;t t
31442 s,@LDFLAGS@,$LDFLAGS,;t t
31443 s,@CPPFLAGS@,$CPPFLAGS,;t t
31444 s,@ac_ct_CC@,$ac_ct_CC,;t t
31445 s,@EXEEXT@,$EXEEXT,;t t
31446 s,@OBJEXT@,$OBJEXT,;t t
31447 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31448 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31450 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31451 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31452 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31455 s,@CXXFLAGS@,$CXXFLAGS,;t t
31456 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31458 s,@LEXLIB@,$LEXLIB,;t t
31459 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31460 s,@FLEX@,$FLEX,;t t
31461 s,@YACC@,$YACC,;t t
31462 s,@BISON@,$BISON,;t t
31463 s,@ifGNUmake@,$ifGNUmake,;t t
31464 s,@LN_S@,$LN_S,;t t
31467 s,@DATE@,$DATE,;t t
31468 s,@FIND@,$FIND,;t t
31469 s,@GREP@,$GREP,;t t
31470 s,@MKDIR@,$MKDIR,;t t
31472 s,@RANLIB@,$RANLIB,;t t
31473 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31477 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31479 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31480 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31481 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31482 s,@BZIP2@,$BZIP2,;t t
31484 s,@DOXYGEN@,$DOXYGEN,;t t
31485 s,@ETAGS@,$ETAGS,;t t
31486 s,@GROFF@,$GROFF,;t t
31487 s,@GZIP@,$GZIP,;t t
31488 s,@POD2HTML@,$POD2HTML,;t t
31489 s,@POD2MAN@,$POD2MAN,;t t
31490 s,@RUNTEST@,$RUNTEST,;t t
31491 s,@TCLSH@,$TCLSH,;t t
31493 s,@EGREP@,$EGREP,;t t
31494 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31495 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31496 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31497 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31498 s,@LIBADD_DL@,$LIBADD_DL,;t t
31499 s,@ECHO@,$ECHO,;t t
31501 s,@ac_ct_AR@,$ac_ct_AR,;t t
31502 s,@STRIP@,$STRIP,;t t
31503 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31504 s,@CXXCPP@,$CXXCPP,;t t
31506 s,@FFLAGS@,$FFLAGS,;t t
31507 s,@ac_ct_F77@,$ac_ct_F77,;t t
31508 s,@LIBTOOL@,$LIBTOOL,;t t
31509 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31510 s,@LLVMGCC@,$LLVMGCC,;t t
31511 s,@LLVMGXX@,$LLVMGXX,;t t
31512 s,@ALLOCA@,$ALLOCA,;t t
31513 s,@MMAP_FILE@,$MMAP_FILE,;t t
31514 s,@LLVMCC1@,$LLVMCC1,;t t
31515 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31516 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31517 s,@SHLIBEXT@,$SHLIBEXT,;t t
31518 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31519 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31520 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31521 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31522 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31523 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31524 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31525 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31526 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31527 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31528 s,@LIBOBJS@,$LIBOBJS,;t t
31529 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31534 cat >>$CONFIG_STATUS <<\_ACEOF
31535 # Split the substitutions into bite-sized pieces for seds with
31536 # small command number limits, like on Digital OSF/1 and HP-UX.
31537 ac_max_sed_lines=48
31538 ac_sed_frag=1 # Number of current file.
31539 ac_beg=1 # First line for current file.
31540 ac_end=$ac_max_sed_lines # Line after last line for current file.
31543 while $ac_more_lines; do
31544 if test $ac_beg -gt 1; then
31545 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31547 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31549 if test ! -s $tmp/subs.frag; then
31550 ac_more_lines=false
31552 # The purpose of the label and of the branching condition is to
31553 # speed up the sed processing (if there are no `@' at all, there
31554 # is no need to browse any of the substitutions).
31555 # These are the two extra sed commands mentioned above.
31557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31558 if test -z "$ac_sed_cmds"; then
31559 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31561 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31563 ac_sed_frag=`expr $ac_sed_frag + 1`
31565 ac_end=`expr $ac_end + $ac_max_sed_lines`
31568 if test -z "$ac_sed_cmds"; then
31571 fi # test -n "$CONFIG_FILES"
31574 cat >>$CONFIG_STATUS <<\_ACEOF
31575 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31576 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31578 - | *:- | *:-:* ) # input from stdin
31580 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31581 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31582 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31584 * ) ac_file_in=$ac_file.in ;;
31587 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31588 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31590 X"$ac_file" : 'X\(//\)[^/]' \| \
31591 X"$ac_file" : 'X\(//\)$' \| \
31592 X"$ac_file" : 'X\(/\)' \| \
31593 . : '\(.\)' 2>/dev/null ||
31595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31597 /^X\(\/\/\)$/{ s//\1/; q; }
31598 /^X\(\/\).*/{ s//\1/; q; }
31600 { if $as_mkdir_p; then
31605 while test ! -d "$as_dir"; do
31606 as_dirs="$as_dir $as_dirs"
31607 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31609 X"$as_dir" : 'X\(//\)[^/]' \| \
31610 X"$as_dir" : 'X\(//\)$' \| \
31611 X"$as_dir" : 'X\(/\)' \| \
31612 . : '\(.\)' 2>/dev/null ||
31614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31616 /^X\(\/\/\)$/{ s//\1/; q; }
31617 /^X\(\/\).*/{ s//\1/; q; }
31620 test ! -n "$as_dirs" || mkdir $as_dirs
31621 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31622 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31623 { (exit 1); exit 1; }; }; }
31627 if test "$ac_dir" != .; then
31628 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31629 # A "../" for each directory in $ac_dir_suffix.
31630 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31632 ac_dir_suffix= ac_top_builddir=
31636 .) # No --srcdir option. We are building in place.
31638 if test -z "$ac_top_builddir"; then
31641 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31643 [\\/]* | ?:[\\/]* ) # Absolute path.
31644 ac_srcdir=$srcdir$ac_dir_suffix;
31645 ac_top_srcdir=$srcdir ;;
31646 *) # Relative path.
31647 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31648 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31651 # Do not use `cd foo && pwd` to compute absolute paths, because
31652 # the directories may not exist.
31654 .) ac_abs_builddir="$ac_dir";;
31657 .) ac_abs_builddir=`pwd`;;
31658 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31659 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31662 case $ac_abs_builddir in
31663 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31665 case ${ac_top_builddir}. in
31666 .) ac_abs_top_builddir=$ac_abs_builddir;;
31667 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31668 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31671 case $ac_abs_builddir in
31672 .) ac_abs_srcdir=$ac_srcdir;;
31675 .) ac_abs_srcdir=$ac_abs_builddir;;
31676 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31677 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31680 case $ac_abs_builddir in
31681 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31683 case $ac_top_srcdir in
31684 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31685 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31686 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31693 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31696 if test x"$ac_file" != x-; then
31697 { echo "$as_me:$LINENO: creating $ac_file" >&5
31698 echo "$as_me: creating $ac_file" >&6;}
31701 # Let's still pretend it is `configure' which instantiates (i.e., don't
31702 # use $as_me), people would be surprised to read:
31703 # /* config.h. Generated by config.status. */
31704 if test x"$ac_file" = x-; then
31707 configure_input="$ac_file. "
31709 configure_input=$configure_input"Generated from `echo $ac_file_in |
31710 sed 's,.*/,,'` by configure."
31712 # First look for the input files in the build tree, otherwise in the
31714 ac_file_inputs=`IFS=:
31715 for f in $ac_file_in; do
31717 -) echo $tmp/stdin ;;
31719 # Absolute (can't be DOS-style, as IFS=:)
31720 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31721 echo "$as_me: error: cannot find input file: $f" >&2;}
31722 { (exit 1); exit 1; }; }
31725 if test -f "$f"; then
31728 elif test -f "$srcdir/$f"; then
31733 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31734 echo "$as_me: error: cannot find input file: $f" >&2;}
31735 { (exit 1); exit 1; }; }
31738 done` || { (exit 1); exit 1; }
31740 cat >>$CONFIG_STATUS <<_ACEOF
31744 cat >>$CONFIG_STATUS <<\_ACEOF
31746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31747 s,@configure_input@,$configure_input,;t t
31748 s,@srcdir@,$ac_srcdir,;t t
31749 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31750 s,@top_srcdir@,$ac_top_srcdir,;t t
31751 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31752 s,@builddir@,$ac_builddir,;t t
31753 s,@abs_builddir@,$ac_abs_builddir,;t t
31754 s,@top_builddir@,$ac_top_builddir,;t t
31755 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31756 s,@INSTALL@,$ac_INSTALL,;t t
31757 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31759 if test x"$ac_file" != x-; then
31760 mv $tmp/out $ac_file
31768 cat >>$CONFIG_STATUS <<\_ACEOF
31771 # CONFIG_HEADER section.
31774 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31775 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31777 # ac_d sets the value in "#define NAME VALUE" lines.
31778 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31779 ac_dB='[ ].*$,\1#\2'
31782 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31783 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31784 ac_uB='$,\1#\2define\3'
31788 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31791 - | *:- | *:-:* ) # input from stdin
31793 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31795 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31796 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31797 * ) ac_file_in=$ac_file.in ;;
31800 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31801 echo "$as_me: creating $ac_file" >&6;}
31803 # First look for the input files in the build tree, otherwise in the
31805 ac_file_inputs=`IFS=:
31806 for f in $ac_file_in; do
31808 -) echo $tmp/stdin ;;
31810 # Absolute (can't be DOS-style, as IFS=:)
31811 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31812 echo "$as_me: error: cannot find input file: $f" >&2;}
31813 { (exit 1); exit 1; }; }
31814 # Do quote $f, to prevent DOS paths from being IFS'd.
31817 if test -f "$f"; then
31820 elif test -f "$srcdir/$f"; then
31825 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31826 echo "$as_me: error: cannot find input file: $f" >&2;}
31827 { (exit 1); exit 1; }; }
31830 done` || { (exit 1); exit 1; }
31831 # Remove the trailing spaces.
31832 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31836 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31837 # `conftest.undefs', that substitutes the proper values into
31838 # config.h.in to produce config.h. The first handles `#define'
31839 # templates, and the second `#undef' templates.
31840 # And first: Protect against being on the right side of a sed subst in
31841 # config.status. Protect against being in an unquoted here document
31842 # in config.status.
31843 rm -f conftest.defines conftest.undefs
31844 # Using a here document instead of a string reduces the quoting nightmare.
31845 # Putting comments in sed scripts is not portable.
31847 # `end' is used to avoid that the second main sed command (meant for
31848 # 0-ary CPP macros) applies to n-ary macro definitions.
31849 # See the Autoconf documentation for `clear'.
31850 cat >confdef2sed.sed <<\_ACEOF
31855 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31857 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31860 # If some macros were called several times there might be several times
31861 # the same #defines, which is useless. Nevertheless, we may not want to
31862 # sort them, since we want the *last* AC-DEFINE to be honored.
31863 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31864 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31865 rm -f confdef2sed.sed
31867 # This sed command replaces #undef with comments. This is necessary, for
31868 # example, in the case of _POSIX_SOURCE, which is predefined and required
31869 # on some systems where configure will not decide to define it.
31870 cat >>conftest.undefs <<\_ACEOF
31871 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31874 # Break up conftest.defines because some shells have a limit on the size
31875 # of here documents, and old seds have small limits too (100 cmds).
31876 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31877 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31878 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31879 echo ' :' >>$CONFIG_STATUS
31880 rm -f conftest.tail
31881 while grep . conftest.defines >/dev/null
31883 # Write a limited-size here document to $tmp/defines.sed.
31884 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31885 # Speed up: don't consider the non `#define' lines.
31886 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31887 # Work around the forget-to-reset-the-flag bug.
31888 echo 't clr' >>$CONFIG_STATUS
31889 echo ': clr' >>$CONFIG_STATUS
31890 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31892 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31894 mv $tmp/out $tmp/in
31896 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31897 rm -f conftest.defines
31898 mv conftest.tail conftest.defines
31900 rm -f conftest.defines
31901 echo ' fi # grep' >>$CONFIG_STATUS
31902 echo >>$CONFIG_STATUS
31904 # Break up conftest.undefs because some shells have a limit on the size
31905 # of here documents, and old seds have small limits too (100 cmds).
31906 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31907 rm -f conftest.tail
31908 while grep . conftest.undefs >/dev/null
31910 # Write a limited-size here document to $tmp/undefs.sed.
31911 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31912 # Speed up: don't consider the non `#undef'
31913 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31914 # Work around the forget-to-reset-the-flag bug.
31915 echo 't clr' >>$CONFIG_STATUS
31916 echo ': clr' >>$CONFIG_STATUS
31917 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31919 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31921 mv $tmp/out $tmp/in
31923 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31924 rm -f conftest.undefs
31925 mv conftest.tail conftest.undefs
31927 rm -f conftest.undefs
31929 cat >>$CONFIG_STATUS <<\_ACEOF
31930 # Let's still pretend it is `configure' which instantiates (i.e., don't
31931 # use $as_me), people would be surprised to read:
31932 # /* config.h. Generated by config.status. */
31933 if test x"$ac_file" = x-; then
31934 echo "/* Generated by configure. */" >$tmp/config.h
31936 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31938 cat $tmp/in >>$tmp/config.h
31940 if test x"$ac_file" != x-; then
31941 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31942 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31943 echo "$as_me: $ac_file is unchanged" >&6;}
31945 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31947 X"$ac_file" : 'X\(//\)[^/]' \| \
31948 X"$ac_file" : 'X\(//\)$' \| \
31949 X"$ac_file" : 'X\(/\)' \| \
31950 . : '\(.\)' 2>/dev/null ||
31952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31954 /^X\(\/\/\)$/{ s//\1/; q; }
31955 /^X\(\/\).*/{ s//\1/; q; }
31957 { if $as_mkdir_p; then
31962 while test ! -d "$as_dir"; do
31963 as_dirs="$as_dir $as_dirs"
31964 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31966 X"$as_dir" : 'X\(//\)[^/]' \| \
31967 X"$as_dir" : 'X\(//\)$' \| \
31968 X"$as_dir" : 'X\(/\)' \| \
31969 . : '\(.\)' 2>/dev/null ||
31971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31973 /^X\(\/\/\)$/{ s//\1/; q; }
31974 /^X\(\/\).*/{ s//\1/; q; }
31977 test ! -n "$as_dirs" || mkdir $as_dirs
31978 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31979 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31980 { (exit 1); exit 1; }; }; }
31983 mv $tmp/config.h $ac_file
31987 rm -f $tmp/config.h
31991 cat >>$CONFIG_STATUS <<\_ACEOF
31994 # CONFIG_COMMANDS section.
31996 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31997 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31998 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31999 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32000 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32001 X"$ac_dest" : 'X\(//\)[^/]' \| \
32002 X"$ac_dest" : 'X\(//\)$' \| \
32003 X"$ac_dest" : 'X\(/\)' \| \
32004 . : '\(.\)' 2>/dev/null ||
32006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32008 /^X\(\/\/\)$/{ s//\1/; q; }
32009 /^X\(\/\).*/{ s//\1/; q; }
32011 { if $as_mkdir_p; then
32016 while test ! -d "$as_dir"; do
32017 as_dirs="$as_dir $as_dirs"
32018 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32020 X"$as_dir" : 'X\(//\)[^/]' \| \
32021 X"$as_dir" : 'X\(//\)$' \| \
32022 X"$as_dir" : 'X\(/\)' \| \
32023 . : '\(.\)' 2>/dev/null ||
32025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32027 /^X\(\/\/\)$/{ s//\1/; q; }
32028 /^X\(\/\).*/{ s//\1/; q; }
32031 test ! -n "$as_dirs" || mkdir $as_dirs
32032 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32033 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32034 { (exit 1); exit 1; }; }; }
32038 if test "$ac_dir" != .; then
32039 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32040 # A "../" for each directory in $ac_dir_suffix.
32041 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32043 ac_dir_suffix= ac_top_builddir=
32047 .) # No --srcdir option. We are building in place.
32049 if test -z "$ac_top_builddir"; then
32052 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32054 [\\/]* | ?:[\\/]* ) # Absolute path.
32055 ac_srcdir=$srcdir$ac_dir_suffix;
32056 ac_top_srcdir=$srcdir ;;
32057 *) # Relative path.
32058 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32059 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32062 # Do not use `cd foo && pwd` to compute absolute paths, because
32063 # the directories may not exist.
32065 .) ac_abs_builddir="$ac_dir";;
32068 .) ac_abs_builddir=`pwd`;;
32069 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32070 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32073 case $ac_abs_builddir in
32074 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32076 case ${ac_top_builddir}. in
32077 .) ac_abs_top_builddir=$ac_abs_builddir;;
32078 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32079 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32082 case $ac_abs_builddir in
32083 .) ac_abs_srcdir=$ac_srcdir;;
32086 .) ac_abs_srcdir=$ac_abs_builddir;;
32087 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32088 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32091 case $ac_abs_builddir in
32092 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32094 case $ac_top_srcdir in
32095 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32096 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32097 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32102 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32103 echo "$as_me: executing $ac_dest commands" >&6;}
32105 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32106 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32107 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32108 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32109 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32110 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32111 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32112 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32113 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32114 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32115 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32116 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32117 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32118 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32119 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32120 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32121 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32122 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32123 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32124 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32129 cat >>$CONFIG_STATUS <<\_ACEOF
32131 { (exit 0); exit 0; }
32133 chmod +x $CONFIG_STATUS
32134 ac_clean_files=$ac_clean_files_save
32137 # configure is writing to config.log, and then calls config.status.
32138 # config.status does its own redirection, appending to config.log.
32139 # Unfortunately, on DOS this fails, as config.log is still kept open
32140 # by configure, so config.status won't be able to write to it; its
32141 # output is simply discarded. So we exec the FD to /dev/null,
32142 # effectively closing config.log, so it can be properly (re)opened and
32143 # appended to by config.status. When coming back to configure, we
32144 # need to make the FD available again.
32145 if test "$no_create" != yes; then
32147 ac_config_status_args=
32148 test "$silent" = yes &&
32149 ac_config_status_args="$ac_config_status_args --quiet"
32151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32154 # would make configure fail if this is the last instruction.
32155 $ac_cs_success || { (exit 1); exit 1; }
32159 # CONFIG_SUBDIRS section.
32161 if test "$no_recursion" != yes; then
32163 # Remove --cache-file and --srcdir arguments so they do not pile up.
32164 ac_sub_configure_args=
32166 for ac_arg in $ac_configure_args; do
32167 if test -n "$ac_prev"; then
32172 -cache-file | --cache-file | --cache-fil | --cache-fi \
32173 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32174 ac_prev=cache_file ;;
32175 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32176 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32179 --config-cache | -C)
32181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32189 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32193 # Always prepend --prefix to ensure using the same prefix
32194 # in subdir configurations.
32195 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32198 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32200 # Do not complain, so a configure script can configure whichever
32201 # parts of a large source tree are present.
32202 test -d $srcdir/$ac_dir || continue
32204 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32205 echo "$as_me: configuring in $ac_dir" >&6;}
32206 { if $as_mkdir_p; then
32211 while test ! -d "$as_dir"; do
32212 as_dirs="$as_dir $as_dirs"
32213 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32215 X"$as_dir" : 'X\(//\)[^/]' \| \
32216 X"$as_dir" : 'X\(//\)$' \| \
32217 X"$as_dir" : 'X\(/\)' \| \
32218 . : '\(.\)' 2>/dev/null ||
32220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32222 /^X\(\/\/\)$/{ s//\1/; q; }
32223 /^X\(\/\).*/{ s//\1/; q; }
32226 test ! -n "$as_dirs" || mkdir $as_dirs
32227 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32228 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32229 { (exit 1); exit 1; }; }; }
32233 if test "$ac_dir" != .; then
32234 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32235 # A "../" for each directory in $ac_dir_suffix.
32236 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32238 ac_dir_suffix= ac_top_builddir=
32242 .) # No --srcdir option. We are building in place.
32244 if test -z "$ac_top_builddir"; then
32247 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32249 [\\/]* | ?:[\\/]* ) # Absolute path.
32250 ac_srcdir=$srcdir$ac_dir_suffix;
32251 ac_top_srcdir=$srcdir ;;
32252 *) # Relative path.
32253 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32254 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32257 # Do not use `cd foo && pwd` to compute absolute paths, because
32258 # the directories may not exist.
32260 .) ac_abs_builddir="$ac_dir";;
32263 .) ac_abs_builddir=`pwd`;;
32264 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32265 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32268 case $ac_abs_builddir in
32269 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32271 case ${ac_top_builddir}. in
32272 .) ac_abs_top_builddir=$ac_abs_builddir;;
32273 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32274 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32277 case $ac_abs_builddir in
32278 .) ac_abs_srcdir=$ac_srcdir;;
32281 .) ac_abs_srcdir=$ac_abs_builddir;;
32282 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32283 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32286 case $ac_abs_builddir in
32287 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32289 case $ac_top_srcdir in
32290 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32291 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32292 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32299 # Check for guested configure; otherwise get Cygnus style configure.
32300 if test -f $ac_srcdir/configure.gnu; then
32301 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32302 elif test -f $ac_srcdir/configure; then
32303 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32304 elif test -f $ac_srcdir/configure.in; then
32305 ac_sub_configure=$ac_configure
32307 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32308 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32312 # The recursion is here.
32313 if test -n "$ac_sub_configure"; then
32314 # Make the cache file name correct relative to the subdirectory.
32315 case $cache_file in
32316 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32317 *) # Relative path.
32318 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32321 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32322 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32323 # The eval makes quoting arguments work.
32324 eval $ac_sub_configure $ac_sub_configure_args \
32325 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32326 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32327 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32328 { (exit 1); exit 1; }; }
32336 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32337 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32338 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32339 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32340 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32341 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32342 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32343 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32344 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32345 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32346 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}