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 TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR 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) TARGET_HAS_JIT=1
3016 Sparc) TARGET_HAS_JIT=1
3018 PowerPC) TARGET_HAS_JIT=1
3020 x86_64) TARGET_HAS_JIT=0
3022 Alpha) TARGET_HAS_JIT=1
3024 IA64) TARGET_HAS_JIT=0
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"
5206 # Extract the first word of "perl", so it can be a program name with args.
5207 set dummy perl; ac_word=$2
5208 echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210 if test "${ac_cv_path_PERL+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5236 PERL=$ac_cv_path_PERL
5238 if test -n "$PERL"; then
5239 echo "$as_me:$LINENO: result: $PERL" >&5
5240 echo "${ECHO_T}$PERL" >&6
5242 echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5246 if test "$PERL" != "none"; then
5247 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5248 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5249 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5250 echo "$as_me:$LINENO: result: yes" >&5
5251 echo "${ECHO_T}yes" >&6
5254 echo "$as_me:$LINENO: result: not found" >&5
5255 echo "${ECHO_T}not found" >&6
5260 if test x"$PERL" = xnone; then
5268 # Find a good install program. We prefer a C program (faster),
5269 # so one script is as good as another. But avoid the broken or
5270 # incompatible versions:
5271 # SysV /etc/install, /usr/sbin/install
5272 # SunOS /usr/etc/install
5273 # IRIX /sbin/install
5275 # AmigaOS /C/install, which installs bootblocks on floppy discs
5276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5279 # OS/2's system install, which has a completely different semantic
5280 # ./install, which can be erroneously created by make from ./install.sh.
5281 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5282 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5283 if test -z "$INSTALL"; then
5284 if test "${ac_cv_path_install+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 # Account for people who put trailing slashes in PATH elements.
5294 ./ | .// | /cC/* | \
5295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5296 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5299 # OSF1 and SCO ODT 3.0 have their own names for install.
5300 # Don't use installbsd from OSF since it installs stuff as root
5302 for ac_prog in ginstall scoinst install; do
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5305 if test $ac_prog = install &&
5306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5307 # AIX install. It has an incompatible calling convention.
5309 elif test $ac_prog = install &&
5310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5311 # program-specific install script used by HP pwplus--don't use.
5314 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5326 if test "${ac_cv_path_install+set}" = set; then
5327 INSTALL=$ac_cv_path_install
5329 # As a last resort, use the slow shell script. We don't cache a
5330 # path for INSTALL within a source directory, because that will
5331 # break other packages using the cache if that directory is
5332 # removed, or if the path is relative.
5333 INSTALL=$ac_install_sh
5336 echo "$as_me:$LINENO: result: $INSTALL" >&5
5337 echo "${ECHO_T}$INSTALL" >&6
5339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5340 # It thinks the first close brace ends the variable substitution.
5341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5345 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5348 # Extract the first word of "bzip2", so it can be a program name with args.
5349 set dummy bzip2; ac_word=$2
5350 echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5352 if test "${ac_cv_path_BZIP2+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5378 BZIP2=$ac_cv_path_BZIP2
5380 if test -n "$BZIP2"; then
5381 echo "$as_me:$LINENO: result: $BZIP2" >&5
5382 echo "${ECHO_T}$BZIP2" >&6
5384 echo "$as_me:$LINENO: result: no" >&5
5385 echo "${ECHO_T}no" >&6
5388 # Extract the first word of "dot", so it can be a program name with args.
5389 set dummy dot; ac_word=$2
5390 echo "$as_me:$LINENO: checking for $ac_word" >&5
5391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392 if test "${ac_cv_path_DOT+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5420 if test -n "$DOT"; then
5421 echo "$as_me:$LINENO: result: $DOT" >&5
5422 echo "${ECHO_T}$DOT" >&6
5424 echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6
5428 # Extract the first word of "doxygen", so it can be a program name with args.
5429 set dummy doxygen; ac_word=$2
5430 echo "$as_me:$LINENO: checking for $ac_word" >&5
5431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5432 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5458 DOXYGEN=$ac_cv_path_DOXYGEN
5460 if test -n "$DOXYGEN"; then
5461 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5462 echo "${ECHO_T}$DOXYGEN" >&6
5464 echo "$as_me:$LINENO: result: no" >&5
5465 echo "${ECHO_T}no" >&6
5468 # Extract the first word of "etags", so it can be a program name with args.
5469 set dummy etags; ac_word=$2
5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 if test "${ac_cv_path_ETAGS+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5498 ETAGS=$ac_cv_path_ETAGS
5500 if test -n "$ETAGS"; then
5501 echo "$as_me:$LINENO: result: $ETAGS" >&5
5502 echo "${ECHO_T}$ETAGS" >&6
5504 echo "$as_me:$LINENO: result: no" >&5
5505 echo "${ECHO_T}no" >&6
5508 # Extract the first word of "groff", so it can be a program name with args.
5509 set dummy groff; ac_word=$2
5510 echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5512 if test "${ac_cv_path_GROFF+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5538 GROFF=$ac_cv_path_GROFF
5540 if test -n "$GROFF"; then
5541 echo "$as_me:$LINENO: result: $GROFF" >&5
5542 echo "${ECHO_T}$GROFF" >&6
5544 echo "$as_me:$LINENO: result: no" >&5
5545 echo "${ECHO_T}no" >&6
5548 # Extract the first word of "gzip", so it can be a program name with args.
5549 set dummy gzip; ac_word=$2
5550 echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552 if test "${ac_cv_path_GZIP+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5578 GZIP=$ac_cv_path_GZIP
5580 if test -n "$GZIP"; then
5581 echo "$as_me:$LINENO: result: $GZIP" >&5
5582 echo "${ECHO_T}$GZIP" >&6
5584 echo "$as_me:$LINENO: result: no" >&5
5585 echo "${ECHO_T}no" >&6
5588 # Extract the first word of "pod2html", so it can be a program name with args.
5589 set dummy pod2html; ac_word=$2
5590 echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5592 if test "${ac_cv_path_POD2HTML+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5618 POD2HTML=$ac_cv_path_POD2HTML
5620 if test -n "$POD2HTML"; then
5621 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5622 echo "${ECHO_T}$POD2HTML" >&6
5624 echo "$as_me:$LINENO: result: no" >&5
5625 echo "${ECHO_T}no" >&6
5628 # Extract the first word of "pod2man", so it can be a program name with args.
5629 set dummy pod2man; ac_word=$2
5630 echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5632 if test "${ac_cv_path_POD2MAN+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5658 POD2MAN=$ac_cv_path_POD2MAN
5660 if test -n "$POD2MAN"; then
5661 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5662 echo "${ECHO_T}$POD2MAN" >&6
5664 echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5668 # Extract the first word of "runtest", so it can be a program name with args.
5669 set dummy runtest; ac_word=$2
5670 echo "$as_me:$LINENO: checking for $ac_word" >&5
5671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5672 if test "${ac_cv_path_RUNTEST+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5698 RUNTEST=$ac_cv_path_RUNTEST
5700 if test -n "$RUNTEST"; then
5701 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5702 echo "${ECHO_T}$RUNTEST" >&6
5704 echo "$as_me:$LINENO: result: no" >&5
5705 echo "${ECHO_T}no" >&6
5710 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5711 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5713 # Check whether --with-tclinclude or --without-tclinclude was given.
5714 if test "${with_tclinclude+set}" = set; then
5715 withval="$with_tclinclude"
5716 with_tclinclude=${withval}
5720 if test "${ac_cv_path_tclsh+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 if test x"${with_tclinclude}" != x ; then
5725 if test -f ${with_tclinclude}/tclsh ; then
5726 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5727 elif test -f ${with_tclinclude}/src/tclsh ; then
5728 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5730 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5731 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5732 { (exit 1); exit 1; }; }
5736 if test x"${ac_cv_path_tclsh}" = x ; then
5737 echo "$as_me:$LINENO: result: none" >&5
5738 echo "${ECHO_T}none" >&6
5739 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
5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
5742 set dummy $ac_prog; ac_word=$2
5743 echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5745 if test "${ac_cv_path_TCLSH+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 TCLSH=$ac_cv_path_TCLSH
5772 if test -n "$TCLSH"; then
5773 echo "$as_me:$LINENO: result: $TCLSH" >&5
5774 echo "${ECHO_T}$TCLSH" >&6
5776 echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6
5780 test -n "$TCLSH" && break
5783 if test x"${TCLSH}" = x ; then
5784 ac_cv_path_tclsh='';
5786 ac_cv_path_tclsh="${TCLSH}";
5789 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5790 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5791 TCLSH="${ac_cv_path_tclsh}"
5797 # Extract the first word of "zip", so it can be a program name with args.
5798 set dummy zip; ac_word=$2
5799 echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801 if test "${ac_cv_path_ZIP+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5829 if test -n "$ZIP"; then
5830 echo "$as_me:$LINENO: result: $ZIP" >&5
5831 echo "${ECHO_T}$ZIP" >&6
5833 echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6
5838 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5839 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5840 if test "${llvm_cv_link_use_r+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 ac_cpp='$CPP $CPPFLAGS'
5845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5850 CFLAGS="$CFLAGS -Wl,-R."
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5861 int main() { return 0; }
5866 rm -f conftest.$ac_objext conftest$ac_exeext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5868 (eval $ac_link) 2>conftest.er1
5870 grep -v '^ *+' conftest.er1 >conftest.err
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest$ac_exeext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 llvm_cv_link_use_r=yes
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 llvm_cv_link_use_r=no
5895 rm -f conftest.err conftest.$ac_objext \
5896 conftest$ac_exeext conftest.$ac_ext
5899 ac_cpp='$CPP $CPPFLAGS'
5900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5906 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5907 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5908 if test "$llvm_cv_link_use_r" = yes ; then
5910 cat >>confdefs.h <<\_ACEOF
5911 #define HAVE_LINK_R 1
5919 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5920 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5921 if test "${ac_cv_c_const+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 cat >conftest.$ac_ext <<_ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5934 /* FIXME: Include the comments suggested by Paul. */
5936 /* Ultrix mips cc rejects this. */
5937 typedef int charset[2];
5939 /* SunOS 4.1.1 cc rejects this. */
5940 char const *const *ccp;
5942 /* NEC SVR4.0.2 mips cc rejects this. */
5943 struct point {int x, y;};
5944 static struct point const zero = {0,0};
5945 /* AIX XL C 1.02.0.0 rejects this.
5946 It does not let you subtract one const X* pointer from another in
5947 an arm of an if-expression whose if-part is not a constant
5949 const char *g = "string";
5950 ccp = &g + (g ? g-g : 0);
5951 /* HPUX 7.0 cc rejects these. */
5954 ccp = (char const *const *) p;
5955 { /* SCO 3.2v4 cc rejects this. */
5957 char const *s = 0 ? (char *) 0 : (char const *) 0;
5961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5963 const int *foo = &x[0];
5966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5967 typedef const int *iptr;
5971 { /* AIX XL C 1.02.0.0 rejects this saying
5972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5973 struct s { int j; const int *ap[3]; };
5974 struct s *b; b->j = 5;
5976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6017 echo "${ECHO_T}$ac_cv_c_const" >&6
6018 if test $ac_cv_c_const = no; then
6020 cat >>confdefs.h <<\_ACEOF
6027 echo "$as_me:$LINENO: checking for egrep" >&5
6028 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6029 if test "${ac_cv_prog_egrep+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6033 then ac_cv_prog_egrep='grep -E'
6034 else ac_cv_prog_egrep='egrep'
6037 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6038 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6039 EGREP=$ac_cv_prog_egrep
6042 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6044 if test "${ac_cv_header_stdc+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6066 rm -f conftest.$ac_objext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068 (eval $ac_compile) 2>conftest.er1
6070 grep -v '^ *+' conftest.er1 >conftest.err
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
6075 { ac_try='test -z "$ac_c_werror_flag"
6076 || test ! -s conftest.err'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; } &&
6082 { ac_try='test -s conftest.$ac_objext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_cv_header_stdc=yes
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 ac_cv_header_stdc=no
6095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6097 if test $ac_cv_header_stdc = yes; then
6098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6099 cat >conftest.$ac_ext <<_ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109 $EGREP "memchr" >/dev/null 2>&1; then
6112 ac_cv_header_stdc=no
6118 if test $ac_cv_header_stdc = yes; then
6119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6120 cat >conftest.$ac_ext <<_ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130 $EGREP "free" >/dev/null 2>&1; then
6133 ac_cv_header_stdc=no
6139 if test $ac_cv_header_stdc = yes; then
6140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6141 if test "$cross_compiling" = yes; then
6144 cat >conftest.$ac_ext <<_ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6151 #if ((' ' & 0x0FF) == 0x020)
6152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6155 # define ISLOWER(c) \
6156 (('a' <= (c) && (c) <= 'i') \
6157 || ('j' <= (c) && (c) <= 'r') \
6158 || ('s' <= (c) && (c) <= 'z'))
6159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6167 for (i = 0; i < 256; i++)
6168 if (XOR (islower (i), ISLOWER (i))
6169 || toupper (i) != TOUPPER (i))
6174 rm -f conftest$ac_exeext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6176 (eval $ac_link) 2>&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6187 echo "$as_me: program exited with status $ac_status" >&5
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6192 ac_cv_header_stdc=no
6194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6198 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6199 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6200 if test $ac_cv_header_stdc = yes; then
6202 cat >>confdefs.h <<\_ACEOF
6203 #define STDC_HEADERS 1
6214 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6215 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6216 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6217 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 cat >conftest.$ac_ext <<_ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <sys/types.h>
6239 rm -f conftest.$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag"
6249 || test ! -s conftest.err'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; } &&
6255 { ac_try='test -s conftest.$ac_objext'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 eval "$as_ac_Header=yes"
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6266 eval "$as_ac_Header=no"
6268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6273 cat >>confdefs.h <<_ACEOF
6274 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6277 ac_header_dirent=$ac_hdr; break
6281 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6282 if test $ac_header_dirent = dirent.h; then
6283 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6284 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6285 if test "${ac_cv_search_opendir+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 ac_func_search_save_LIBS=$LIBS
6289 ac_cv_search_opendir=no
6290 cat >conftest.$ac_ext <<_ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6297 /* Override any gcc2 internal prototype to avoid an error. */
6301 /* We use char because int might match the return type of a gcc2
6302 builtin and then its argument prototype would still apply. */
6312 rm -f conftest.$ac_objext conftest$ac_exeext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6314 (eval $ac_link) 2>conftest.er1
6316 grep -v '^ *+' conftest.er1 >conftest.err
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -z "$ac_c_werror_flag"
6322 || test ! -s conftest.err'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; } &&
6328 { ac_try='test -s conftest$ac_exeext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6334 ac_cv_search_opendir="none required"
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6340 rm -f conftest.err conftest.$ac_objext \
6341 conftest$ac_exeext conftest.$ac_ext
6342 if test "$ac_cv_search_opendir" = no; then
6343 for ac_lib in dir; do
6344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6345 cat >conftest.$ac_ext <<_ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6352 /* Override any gcc2 internal prototype to avoid an error. */
6356 /* We use char because int might match the return type of a gcc2
6357 builtin and then its argument prototype would still apply. */
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>conftest.er1
6371 grep -v '^ *+' conftest.er1 >conftest.err
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -z "$ac_c_werror_flag"
6377 || test ! -s conftest.err'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; } &&
6383 { ac_try='test -s conftest$ac_exeext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 ac_cv_search_opendir="-l$ac_lib"
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6396 rm -f conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6400 LIBS=$ac_func_search_save_LIBS
6402 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6403 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6404 if test "$ac_cv_search_opendir" != no; then
6405 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6410 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6411 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6412 if test "${ac_cv_search_opendir+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 ac_func_search_save_LIBS=$LIBS
6416 ac_cv_search_opendir=no
6417 cat >conftest.$ac_ext <<_ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6424 /* Override any gcc2 internal prototype to avoid an error. */
6428 /* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */
6439 rm -f conftest.$ac_objext conftest$ac_exeext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441 (eval $ac_link) 2>conftest.er1
6443 grep -v '^ *+' conftest.er1 >conftest.err
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try='test -z "$ac_c_werror_flag"
6449 || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest$ac_exeext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_cv_search_opendir="none required"
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6467 rm -f conftest.err conftest.$ac_objext \
6468 conftest$ac_exeext conftest.$ac_ext
6469 if test "$ac_cv_search_opendir" = no; then
6471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6472 cat >conftest.$ac_ext <<_ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6479 /* Override any gcc2 internal prototype to avoid an error. */
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6494 rm -f conftest.$ac_objext conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>conftest.er1
6498 grep -v '^ *+' conftest.er1 >conftest.err
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -z "$ac_c_werror_flag"
6504 || test ! -s conftest.err'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; } &&
6510 { ac_try='test -s conftest$ac_exeext'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; }; then
6516 ac_cv_search_opendir="-l$ac_lib"
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6523 rm -f conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
6527 LIBS=$ac_func_search_save_LIBS
6529 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6530 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6531 if test "$ac_cv_search_opendir" != no; then
6532 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6538 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6548 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6549 inttypes.h stdint.h unistd.h
6551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 cat >conftest.$ac_ext <<_ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 $ac_includes_default
6565 #include <$ac_header>
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569 (eval $ac_compile) 2>conftest.er1
6571 grep -v '^ *+' conftest.er1 >conftest.err
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try='test -z "$ac_c_werror_flag"
6577 || test ! -s conftest.err'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; } &&
6583 { ac_try='test -s conftest.$ac_objext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 eval "$as_ac_Header=yes"
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 eval "$as_ac_Header=no"
6596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6601 cat >>confdefs.h <<_ACEOF
6602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6611 for ac_header in dlfcn.h
6613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615 echo "$as_me:$LINENO: checking for $ac_header" >&5
6616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6623 # Is the header compilable?
6624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6626 cat >conftest.$ac_ext <<_ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 $ac_includes_default
6633 #include <$ac_header>
6635 rm -f conftest.$ac_objext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6637 (eval $ac_compile) 2>conftest.er1
6639 grep -v '^ *+' conftest.er1 >conftest.err
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
6644 { ac_try='test -z "$ac_c_werror_flag"
6645 || test ! -s conftest.err'
6646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; } &&
6651 { ac_try='test -s conftest.$ac_objext'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
6657 ac_header_compiler=yes
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 ac_header_compiler=no
6664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6666 echo "${ECHO_T}$ac_header_compiler" >&6
6668 # Is the header present?
6669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6671 cat >conftest.$ac_ext <<_ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <$ac_header>
6679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6682 grep -v '^ *+' conftest.er1 >conftest.err
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } >/dev/null; then
6687 if test -s conftest.err; then
6688 ac_cpp_err=$ac_c_preproc_warn_flag
6689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6696 if test -z "$ac_cpp_err"; then
6697 ac_header_preproc=yes
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6702 ac_header_preproc=no
6704 rm -f conftest.err conftest.$ac_ext
6705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6706 echo "${ECHO_T}$ac_header_preproc" >&6
6708 # So? What about this header?
6709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6715 ac_header_preproc=yes
6718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6732 ## ----------------------------------- ##
6733 ## Report this to llvmbugs@cs.uiuc.edu ##
6734 ## ----------------------------------- ##
6737 sed "s/^/$as_me: WARNING: /" >&2
6740 echo "$as_me:$LINENO: checking for $ac_header" >&5
6741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 eval "$as_ac_Header=\$ac_header_preproc"
6747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6752 cat >>confdefs.h <<_ACEOF
6753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6760 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6761 if test "${enable_ltdl_install+set}" = set; then
6762 enableval="$enable_ltdl_install"
6768 if test x"${enable_ltdl_install-no}" != xno; then
6770 INSTALL_LTDL_FALSE='#'
6772 INSTALL_LTDL_TRUE='#'
6778 if test x"${enable_ltdl_convenience-no}" != xno; then
6779 CONVENIENCE_LTDL_TRUE=
6780 CONVENIENCE_LTDL_FALSE='#'
6782 CONVENIENCE_LTDL_TRUE='#'
6783 CONVENIENCE_LTDL_FALSE=
6787 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6788 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6790 libname_spec='lib$name'
6798 shlibpath_overrides_runpath=unknown
6800 dynamic_linker="$host_os ld.so"
6801 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6802 if test "$GCC" = yes; then
6803 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6804 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6805 # if the path contains ";" then we assume it to be the separator
6806 # otherwise default to the standard path separator (i.e. ":") - it is
6807 # assumed that no part of a normal pathname contains ";" but that should
6808 # okay in the real world where ";" in dirpaths is itself problematic.
6809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6814 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6816 need_lib_prefix=unknown
6817 hardcode_into_libs=no
6819 # when you set need_version to no, make sure it does not cause -set_version
6820 # flags to be left without arguments
6821 need_version=unknown
6826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6827 shlibpath_var=LIBPATH
6829 # AIX 3 has no versioning support, so we append a major version to the name.
6830 soname_spec='${libname}${release}${shared_ext}$major'
6837 hardcode_into_libs=yes
6838 if test "$host_cpu" = ia64; then
6839 # AIX 5 supports IA64
6840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6841 shlibpath_var=LD_LIBRARY_PATH
6843 # With GCC up to 2.95.x, collect2 would create an import file
6844 # for dependence libraries. The import file would start with
6845 # the line `#! .'. This would cause the generated library to
6846 # depend on `.', always an invalid library. This was fixed in
6847 # development snapshots of GCC prior to 3.0.
6849 aix4 | aix4.[01] | aix4.[01].*)
6850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6852 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6860 # soname into executable. Probably we can add versioning support to
6861 # collect2, so additional links can be useful in future.
6862 if test "$aix_use_runtimelinking" = yes; then
6863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6864 # instead of lib<name>.a to let people know that these are not
6865 # typical AIX shared libraries.
6866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6868 # We preserve .a as extension for shared libraries through AIX4.2
6869 # and later when we are not doing run time linking.
6870 library_names_spec='${libname}${release}.a $libname.a'
6871 soname_spec='${libname}${release}${shared_ext}$major'
6873 shlibpath_var=LIBPATH
6878 library_names_spec='$libname.ixlibrary $libname.a'
6879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6880 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'
6884 library_names_spec='${libname}${shared_ext}'
6885 dynamic_linker="$host_os ld.so"
6886 shlibpath_var=LIBRARY_PATH
6892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6893 soname_spec='${libname}${release}${shared_ext}$major'
6894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6895 shlibpath_var=LD_LIBRARY_PATH
6896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6898 # the default ld.so.conf also contains /usr/contrib/lib and
6899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6900 # libtool to hard-code these into programs
6903 cygwin* | mingw* | pw32*)
6904 version_type=windows
6909 case $GCC,$host_os in
6910 yes,cygwin* | yes,mingw* | yes,pw32*)
6911 library_names_spec='$libname.dll.a'
6912 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6913 postinstall_cmds='base_file=`basename \${file}`~
6914 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6915 dldir=$destdir/`dirname \$dlpath`~
6916 test -d \$dldir || mkdir -p \$dldir~
6917 $install_prog $dir/$dlname \$dldir/$dlname'
6918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6919 dlpath=$dir/\$dldll~
6921 shlibpath_overrides_runpath=yes
6925 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6926 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6927 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6930 # MinGW DLLs use traditional 'lib' prefix
6931 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6933 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6934 # It is most probably a Windows format PATH printed by
6935 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6936 # path with ; separators, and with drive letters. We can handle the
6937 # drive letters (cygwin fileutils understands them), so leave them,
6938 # especially as we might pass files found there to a mingw objdump,
6939 # which wouldn't understand a cygwinified path. Ahh.
6940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6946 # pw32 DLLs use 'pw' prefix rather than 'lib'
6947 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6953 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6956 dynamic_linker='Win32 ld.exe'
6957 # FIXME: first we should search . and the directory the executable is in
6961 darwin* | rhapsody*)
6962 dynamic_linker="$host_os dyld"
6966 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6967 soname_spec='${libname}${release}${major}$shared_ext'
6968 shlibpath_overrides_runpath=yes
6969 shlibpath_var=DYLD_LIBRARY_PATH
6970 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6971 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6972 if test "$GCC" = yes; then
6973 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"`
6975 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6977 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6985 soname_spec='${libname}${release}${shared_ext}$major'
6986 shlibpath_var=LD_LIBRARY_PATH
6997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6998 soname_spec='${libname}${release}${shared_ext}$major'
6999 shlibpath_var=LD_LIBRARY_PATH
7000 shlibpath_overrides_runpath=no
7001 hardcode_into_libs=yes
7002 dynamic_linker='GNU ld.so'
7006 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7007 version_type=freebsd-$objformat
7008 case $version_type in
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7019 shlibpath_var=LD_LIBRARY_PATH
7022 shlibpath_overrides_runpath=yes
7024 freebsd3.01* | freebsdelf3.01*)
7025 shlibpath_overrides_runpath=yes
7026 hardcode_into_libs=yes
7029 shlibpath_overrides_runpath=no
7030 hardcode_into_libs=yes
7039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7040 soname_spec='${libname}${release}${shared_ext}$major'
7041 shlibpath_var=LD_LIBRARY_PATH
7042 hardcode_into_libs=yes
7045 hpux9* | hpux10* | hpux11*)
7046 # Give a soname corresponding to the major version so that dld.sl refuses to
7047 # link against other versions.
7054 hardcode_into_libs=yes
7055 dynamic_linker="$host_os dld.so"
7056 shlibpath_var=LD_LIBRARY_PATH
7057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7059 soname_spec='${libname}${release}${shared_ext}$major'
7060 if test "X$HPUX_IA64_MODE" = X32; then
7061 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7063 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7069 hardcode_into_libs=yes
7070 dynamic_linker="$host_os dld.sl"
7071 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7074 soname_spec='${libname}${release}${shared_ext}$major'
7075 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7080 dynamic_linker="$host_os dld.sl"
7081 shlibpath_var=SHLIB_PATH
7082 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7084 soname_spec='${libname}${release}${shared_ext}$major'
7087 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7088 postinstall_cmds='chmod 555 $lib'
7091 irix5* | irix6* | nonstopux*)
7093 nonstopux*) version_type=nonstopux ;;
7095 if test "$lt_cv_prog_gnu_ld" = yes; then
7103 soname_spec='${libname}${release}${shared_ext}$major'
7104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7106 irix5* | nonstopux*)
7110 case $LD in # libtool.m4 will add one of these switches to LD
7111 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7112 libsuff= shlibsuff= libmagic=32-bit;;
7113 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7114 libsuff=32 shlibsuff=N32 libmagic=N32;;
7115 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7116 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7117 *) libsuff= shlibsuff= libmagic=never-match;;
7121 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7122 shlibpath_overrides_runpath=no
7123 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7124 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7125 hardcode_into_libs=yes
7128 # No shared lib support for Linux oldld, aout, or coff.
7129 linux*oldld* | linux*aout* | linux*coff*)
7133 # This must be Linux ELF.
7138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7139 soname_spec='${libname}${release}${shared_ext}$major'
7140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7141 shlibpath_var=LD_LIBRARY_PATH
7142 shlibpath_overrides_runpath=no
7143 # This implies no fast_install, which is unacceptable.
7144 # Some rework will be needed to allow for fast_install
7145 # before this can be enabled.
7146 hardcode_into_libs=yes
7148 # Append ld.so.conf contents to the search path
7149 if test -f /etc/ld.so.conf; then
7150 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7151 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7154 # We used to test for /lib/ld.so.1 and disable shared libraries on
7155 # powerpc, because MkLinux only supported shared libraries with the
7156 # GNU dynamic linker. Since this was broken with cross compilers,
7157 # most powerpc-linux boxes support dynamic linking these days and
7158 # people can always --disable-shared, the test was removed, and we
7159 # assume the GNU/Linux dynamic linker is in use.
7160 dynamic_linker='GNU/Linux ld.so'
7167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7168 soname_spec='${libname}${release}${shared_ext}$major'
7169 shlibpath_var=LD_LIBRARY_PATH
7170 shlibpath_overrides_runpath=no
7171 hardcode_into_libs=yes
7172 dynamic_linker='GNU ld.so'
7179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7182 dynamic_linker='NetBSD (a.out) ld.so'
7184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7185 soname_spec='${libname}${release}${shared_ext}$major'
7186 dynamic_linker='NetBSD ld.elf_so'
7188 shlibpath_var=LD_LIBRARY_PATH
7189 shlibpath_overrides_runpath=yes
7190 hardcode_into_libs=yes
7195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7196 shlibpath_var=LD_LIBRARY_PATH
7197 shlibpath_overrides_runpath=yes
7204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7205 soname_spec='${libname}${release}${shared_ext}$major'
7206 shlibpath_var=LD_LIBRARY_PATH
7207 shlibpath_overrides_runpath=yes
7214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7216 shlibpath_var=LD_LIBRARY_PATH
7217 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7219 openbsd2.[89] | openbsd2.[89].*)
7220 shlibpath_overrides_runpath=no
7223 shlibpath_overrides_runpath=yes
7227 shlibpath_overrides_runpath=yes
7232 libname_spec='$name'
7235 library_names_spec='$libname${shared_ext} $libname.a'
7236 dynamic_linker='OS/2 ld.exe'
7237 shlibpath_var=LIBPATH
7240 osf3* | osf4* | osf5*)
7244 soname_spec='${libname}${release}${shared_ext}$major'
7245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7246 shlibpath_var=LD_LIBRARY_PATH
7247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7248 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7253 soname_spec='${libname}${release}${shared_ext}$major'
7254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7255 shlibpath_var=LD_LIBRARY_PATH
7262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7263 soname_spec='${libname}${release}${shared_ext}$major'
7264 shlibpath_var=LD_LIBRARY_PATH
7265 shlibpath_overrides_runpath=yes
7266 hardcode_into_libs=yes
7267 # ldd complains unless libraries are executable
7268 postinstall_cmds='chmod +x $lib'
7273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7274 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7275 shlibpath_var=LD_LIBRARY_PATH
7276 shlibpath_overrides_runpath=yes
7277 if test "$with_gnu_ld" = yes; then
7283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7286 soname_spec='${libname}${release}${shared_ext}$major'
7287 shlibpath_var=LD_LIBRARY_PATH
7288 case $host_vendor in
7290 shlibpath_overrides_runpath=no
7292 export_dynamic_flag_spec='${wl}-Blargedynsym'
7293 runpath_var=LD_RUN_PATH
7301 shlibpath_overrides_runpath=no
7302 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7308 if test -d /usr/nec ;then
7310 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7311 soname_spec='$libname${shared_ext}.$major'
7312 shlibpath_var=LD_LIBRARY_PATH
7318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7319 soname_spec='${libname}${release}${shared_ext}$major'
7320 shlibpath_var=LD_LIBRARY_PATH
7327 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7328 echo "${ECHO_T}$dynamic_linker" >&6
7329 test "$dynamic_linker" = no && can_build_shared=no
7332 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7333 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7334 if test "${libltdl_cv_shlibext+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 eval libltdl_cv_shlibext=$shrext_cmds
7342 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7343 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7344 if test -n "$libltdl_cv_shlibext"; then
7346 cat >>confdefs.h <<_ACEOF
7347 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7353 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7354 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7355 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 libltdl_cv_shlibpath_var="$shlibpath_var"
7360 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7361 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7362 if test -n "$libltdl_cv_shlibpath_var"; then
7364 cat >>confdefs.h <<_ACEOF
7365 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7371 echo "$as_me:$LINENO: checking for the default library search path" >&5
7372 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7373 if test "${libltdl_cv_sys_search_path+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7378 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7379 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7380 if test -n "$libltdl_cv_sys_search_path"; then
7382 for dir in $libltdl_cv_sys_search_path; do
7383 if test -z "$sys_search_path"; then
7384 sys_search_path="$dir"
7386 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7390 cat >>confdefs.h <<_ACEOF
7391 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7396 echo "$as_me:$LINENO: checking for objdir" >&5
7397 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7398 if test "${libltdl_cv_objdir+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 libltdl_cv_objdir="$objdir"
7402 if test -n "$objdir"; then
7405 rm -f .libs 2>/dev/null
7406 mkdir .libs 2>/dev/null
7407 if test -d .libs; then
7408 libltdl_cv_objdir=.libs
7410 # MS-DOS does not allow filenames that begin with a dot.
7411 libltdl_cv_objdir=_libs
7413 rmdir .libs 2>/dev/null
7417 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7418 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7420 cat >>confdefs.h <<_ACEOF
7421 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7425 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7426 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7427 if test "${lt_cv_path_NM+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 if test -n "$NM"; then
7431 # Let the user override the test.
7434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7435 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7437 test -z "$ac_dir" && ac_dir=.
7438 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7439 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7440 # Check to see if the nm accepts a BSD-compat flag.
7441 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7442 # nm: unknown option "B" ignored
7443 # Tru64's nm complains that /dev/null is an invalid object file
7444 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7445 */dev/null* | *'Invalid file or object type'*)
7446 lt_cv_path_NM="$tmp_nm -B"
7450 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7452 lt_cv_path_NM="$tmp_nm -p"
7456 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7457 continue # so that we can try to find one that supports BSD flags
7464 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7467 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7468 echo "${ECHO_T}$lt_cv_path_NM" >&6
7475 # Check for command to grab the raw symbol name followed by C symbol from nm.
7476 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7477 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7478 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 # These are sane defaults that work on at least a few old systems.
7483 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7485 # Character class describing NM global symbol codes.
7486 symcode='[BCDEGRST]'
7488 # Regexp to match symbols that can be accessed directly from C.
7489 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7491 # Transform the above into a raw symbol and a C symbol.
7492 symxfrm='\1 \2\3 \3'
7494 # Transform an extracted symbol line into a proper C declaration
7495 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7497 # Transform an extracted symbol line into symbol name and symbol address
7498 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'"
7500 # Define system-specific variables.
7505 cygwin* | mingw* | pw32*)
7506 symcode='[ABCDGISTW]'
7508 hpux*) # Its linker distinguishes data from code symbols
7509 if test "$host_cpu" = ia64; then
7510 symcode='[ABCDEGRST]'
7512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7513 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'"
7516 if test "$host_cpu" = ia64; then
7517 symcode='[ABCDGIRSTW]'
7518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7519 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'"
7523 symcode='[BCDEGRST]'
7526 symcode='[BCDEGQRST]'
7536 # Handle CRLF in mingw tool chain
7540 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7544 # If we're using GNU nm, then use its standard symbol codes.
7545 case `$NM -V 2>&1` in
7546 *GNU* | *'with BFD'*)
7547 symcode='[ABCDGIRSTW]' ;;
7550 # Try without a prefix undercore, then with it.
7551 for ac_symprfx in "" "_"; do
7553 # Write the raw and C identifiers.
7554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7556 # Check to see that the pipe works correctly.
7560 cat > conftest.$ac_ext <<EOF
7565 void nm_test_func(){}
7569 int main(){nm_test_var='a';nm_test_func();return(0);}
7572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573 (eval $ac_compile) 2>&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; then
7577 # Now try to grab the symbols.
7579 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7580 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } && test -s "$nlist"; then
7584 # Try sorting and uniquifying the output.
7585 if sort "$nlist" | uniq > "$nlist"T; then
7586 mv -f "$nlist"T "$nlist"
7591 # Make sure that we snagged all the symbols we need.
7592 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7593 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7594 cat <<EOF > conftest.$ac_ext
7600 # Now generate the symbol file.
7601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7603 cat <<EOF >> conftest.$ac_ext
7604 #if defined (__STDC__) && __STDC__
7605 # define lt_ptr_t void *
7607 # define lt_ptr_t char *
7611 /* The mapping between symbol names and symbols. */
7616 lt_preloaded_symbols[] =
7619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7620 cat <<\EOF >> conftest.$ac_ext
7628 # Now try linking the two files.
7629 mv conftest.$ac_objext conftstm.$ac_objext
7630 lt_save_LIBS="$LIBS"
7631 lt_save_CFLAGS="$CFLAGS"
7632 LIBS="conftstm.$ac_objext"
7633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7641 LIBS="$lt_save_LIBS"
7642 CFLAGS="$lt_save_CFLAGS"
7644 echo "cannot find nm_test_func in $nlist" >&5
7647 echo "cannot find nm_test_var in $nlist" >&5
7650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7653 echo "$progname: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7656 rm -f conftest* conftst*
7658 # Do not use the global_symbol_pipe unless it works.
7659 if test "$pipe_works" = yes; then
7662 lt_cv_sys_global_symbol_pipe=
7668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7669 lt_cv_sys_global_symbol_to_cdecl=
7671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7672 echo "$as_me:$LINENO: result: failed" >&5
7673 echo "${ECHO_T}failed" >&6
7675 echo "$as_me:$LINENO: result: ok" >&5
7676 echo "${ECHO_T}ok" >&6
7680 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7681 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7682 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7686 libltdl_cv_preloaded_symbols=yes
7688 libltdl_cv_preloaded_symbols=no
7692 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7693 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7694 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7696 cat >>confdefs.h <<\_ACEOF
7697 #define HAVE_PRELOADED_SYMBOLS 1
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711 echo "$as_me:$LINENO: checking for shl_load" >&5
7712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7713 if test "${ac_cv_func_shl_load+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 cat >conftest.$ac_ext <<_ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7724 #define shl_load innocuous_shl_load
7726 /* System header to define __stub macros and hopefully few prototypes,
7727 which can conflict with char shl_load (); below.
7728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7729 <limits.h> exists even on freestanding compilers. */
7732 # include <limits.h>
7734 # include <assert.h>
7739 /* Override any gcc2 internal prototype to avoid an error. */
7744 /* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7747 /* The GNU C library defines this for functions which it implements
7748 to always fail with ENOSYS. Some functions are actually named
7749 something starting with __ and the normal name is an alias. */
7750 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7753 char (*f) () = shl_load;
7762 return f != shl_load;
7767 rm -f conftest.$ac_objext conftest$ac_exeext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769 (eval $ac_link) 2>conftest.er1
7771 grep -v '^ *+' conftest.er1 >conftest.err
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
7776 { ac_try='test -z "$ac_c_werror_flag"
7777 || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try='test -s conftest$ac_exeext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_func_shl_load=yes
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_cv_func_shl_load=no
7796 rm -f conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7799 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7800 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7801 if test $ac_cv_func_shl_load = yes; then
7803 cat >>confdefs.h <<\_ACEOF
7804 #define HAVE_SHL_LOAD 1
7808 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7809 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7810 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 ac_check_lib_save_LIBS=$LIBS
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7822 /* Override any gcc2 internal prototype to avoid an error. */
7826 /* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839 (eval $ac_link) 2>conftest.er1
7841 grep -v '^ *+' conftest.er1 >conftest.err
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -z "$ac_c_werror_flag"
7847 || test ! -s conftest.err'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_lib_dld_shl_load=yes
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 ac_cv_lib_dld_shl_load=no
7866 rm -f conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 LIBS=$ac_check_lib_save_LIBS
7870 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7871 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7872 if test $ac_cv_lib_dld_shl_load = yes; then
7874 cat >>confdefs.h <<\_ACEOF
7875 #define HAVE_SHL_LOAD 1
7878 LIBADD_DL="$LIBADD_DL -ldld"
7880 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7881 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 ac_check_lib_save_LIBS=$LIBS
7887 cat >conftest.$ac_ext <<_ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7894 /* Override any gcc2 internal prototype to avoid an error. */
7898 /* We use char because int might match the return type of a gcc2
7899 builtin and then its argument prototype would still apply. */
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7911 (eval $ac_link) 2>conftest.er1
7913 grep -v '^ *+' conftest.er1 >conftest.err
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } &&
7918 { ac_try='test -z "$ac_c_werror_flag"
7919 || test ! -s conftest.err'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; } &&
7925 { ac_try='test -s conftest$ac_exeext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_lib_dl_dlopen=yes
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 ac_cv_lib_dl_dlopen=no
7938 rm -f conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7940 LIBS=$ac_check_lib_save_LIBS
7942 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7943 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7944 if test $ac_cv_lib_dl_dlopen = yes; then
7946 cat >>confdefs.h <<\_ACEOF
7947 #define HAVE_LIBDL 1
7950 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7952 cat >conftest.$ac_ext <<_ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7972 (eval $ac_link) 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -z "$ac_c_werror_flag"
7980 || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try='test -s conftest$ac_exeext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7993 cat >>confdefs.h <<\_ACEOF
7994 #define HAVE_LIBDL 1
7996 libltdl_cv_func_dlopen="yes"
7998 echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8001 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8002 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8003 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 ac_check_lib_save_LIBS=$LIBS
8008 cat >conftest.$ac_ext <<_ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8015 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8030 rm -f conftest.$ac_objext conftest$ac_exeext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8032 (eval $ac_link) 2>conftest.er1
8034 grep -v '^ *+' conftest.er1 >conftest.err
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } &&
8039 { ac_try='test -z "$ac_c_werror_flag"
8040 || test ! -s conftest.err'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 ac_cv_lib_svld_dlopen=yes
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_cv_lib_svld_dlopen=no
8059 rm -f conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061 LIBS=$ac_check_lib_save_LIBS
8063 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8064 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8065 if test $ac_cv_lib_svld_dlopen = yes; then
8067 cat >>confdefs.h <<\_ACEOF
8068 #define HAVE_LIBDL 1
8071 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8073 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8074 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8075 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 ac_check_lib_save_LIBS=$LIBS
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8087 /* Override any gcc2 internal prototype to avoid an error. */
8091 /* We use char because int might match the return type of a gcc2
8092 builtin and then its argument prototype would still apply. */
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104 (eval $ac_link) 2>conftest.er1
8106 grep -v '^ *+' conftest.er1 >conftest.err
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag"
8112 || test ! -s conftest.err'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_lib_dld_dld_link=yes
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 ac_cv_lib_dld_dld_link=no
8131 rm -f conftest.err conftest.$ac_objext \
8132 conftest$ac_exeext conftest.$ac_ext
8133 LIBS=$ac_check_lib_save_LIBS
8135 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8136 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8137 if test $ac_cv_lib_dld_dld_link = yes; then
8139 cat >>confdefs.h <<\_ACEOF
8143 LIBADD_DL="$LIBADD_DL -ldld"
8145 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8146 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8147 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8156 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8158 #define _dyld_func_lookup innocuous__dyld_func_lookup
8160 /* System header to define __stub macros and hopefully few prototypes,
8161 which can conflict with char _dyld_func_lookup (); below.
8162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8163 <limits.h> exists even on freestanding compilers. */
8166 # include <limits.h>
8168 # include <assert.h>
8171 #undef _dyld_func_lookup
8173 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8180 char _dyld_func_lookup ();
8181 /* The GNU C library defines this for functions which it implements
8182 to always fail with ENOSYS. Some functions are actually named
8183 something starting with __ and the normal name is an alias. */
8184 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8187 char (*f) () = _dyld_func_lookup;
8196 return f != _dyld_func_lookup;
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_cv_func__dyld_func_lookup=yes
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_cv_func__dyld_func_lookup=no
8230 rm -f conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8233 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8234 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8235 if test $ac_cv_func__dyld_func_lookup = yes; then
8237 cat >>confdefs.h <<\_ACEOF
8251 rm -f conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8263 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8265 lt_save_LIBS="$LIBS"
8266 LIBS="$LIBS $LIBADD_DL"
8268 for ac_func in dlerror
8270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8271 echo "$as_me:$LINENO: checking for $ac_func" >&5
8272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8273 if eval "test \"\${$as_ac_var+set}\" = set"; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 cat >conftest.$ac_ext <<_ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8284 #define $ac_func innocuous_$ac_func
8286 /* System header to define __stub macros and hopefully few prototypes,
8287 which can conflict with char $ac_func (); below.
8288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8289 <limits.h> exists even on freestanding compilers. */
8292 # include <limits.h>
8294 # include <assert.h>
8299 /* Override any gcc2 internal prototype to avoid an error. */
8304 /* We use char because int might match the return type of a gcc2
8305 builtin and then its argument prototype would still apply. */
8307 /* The GNU C library defines this for functions which it implements
8308 to always fail with ENOSYS. Some functions are actually named
8309 something starting with __ and the normal name is an alias. */
8310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8313 char (*f) () = $ac_func;
8322 return f != $ac_func;
8327 rm -f conftest.$ac_objext conftest$ac_exeext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329 (eval $ac_link) 2>conftest.er1
8331 grep -v '^ *+' conftest.er1 >conftest.err
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -z "$ac_c_werror_flag"
8337 || test ! -s conftest.err'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; } &&
8343 { ac_try='test -s conftest$ac_exeext'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; }; then
8349 eval "$as_ac_var=yes"
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 eval "$as_ac_var=no"
8356 rm -f conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8361 if test `eval echo '${'$as_ac_var'}'` = yes; then
8362 cat >>confdefs.h <<_ACEOF
8363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8369 LIBS="$lt_save_LIBS"
8372 ac_cpp='$CPP $CPPFLAGS'
8373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8380 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8381 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 ac_cv_sys_symbol_underscore=no
8385 cat > conftest.$ac_ext <<EOF
8386 void nm_test_func(){}
8387 int main(){nm_test_func;return 0;}
8389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8390 (eval $ac_compile) 2>&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; then
8394 # Now try to grab the symbols.
8395 ac_nlist=conftest.nm
8396 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8397 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } && test -s "$ac_nlist"; then
8401 # See whether the symbols have a leading underscore.
8402 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8403 ac_cv_sys_symbol_underscore=yes
8405 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8408 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8412 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8415 echo "configure: failed program was:" >&5
8421 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8422 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8425 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8426 if test x"$libltdl_cv_func_dlopen" = xyes ||
8427 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8428 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8429 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8430 if test "${libltdl_cv_need_uscore+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 libltdl_cv_need_uscore=unknown
8435 LIBS="$LIBS $LIBADD_DL"
8436 if test "$cross_compiling" = yes; then :
8437 libltdl_cv_need_uscore=cross
8439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8440 lt_status=$lt_dlunknown
8441 cat > conftest.$ac_ext <<EOF
8442 #line 8442 "configure"
8443 #include "confdefs.h"
8452 # define LT_DLGLOBAL RTLD_GLOBAL
8455 # define LT_DLGLOBAL DL_GLOBAL
8457 # define LT_DLGLOBAL 0
8461 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8462 find out it does not work in some platform. */
8463 #ifndef LT_DLLAZY_OR_NOW
8465 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8468 # define LT_DLLAZY_OR_NOW DL_LAZY
8471 # define LT_DLLAZY_OR_NOW RTLD_NOW
8474 # define LT_DLLAZY_OR_NOW DL_NOW
8476 # define LT_DLLAZY_OR_NOW 0
8484 extern "C" void exit (int);
8487 void fnord() { int i=42;}
8490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8491 int status = $lt_dlunknown;
8495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8496 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8497 /* dlclose (self); */
8503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504 (eval $ac_link) 2>&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8508 (./conftest; exit; ) 2>/dev/null
8511 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8512 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8516 # compilation failed
8525 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8526 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8530 if test x"$libltdl_cv_need_uscore" = xyes; then
8532 cat >>confdefs.h <<\_ACEOF
8533 #define NEED_USCORE 1
8539 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8540 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8541 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 # PORTME does your system automatically load deplibs for dlopen?
8545 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8546 # For now, we just catch OSes we know something about -- in the
8547 # future, we'll try test this programmatically.
8548 libltdl_cv_sys_dlopen_deplibs=unknown
8550 aix3*|aix4.1.*|aix4.2.*)
8551 # Unknown whether this is true for these versions of AIX, but
8552 # we want this `case' here to explicitly catch those versions.
8553 libltdl_cv_sys_dlopen_deplibs=unknown
8556 libltdl_cv_sys_dlopen_deplibs=yes
8559 # Assuming the user has installed a libdl from somewhere, this is true
8560 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8561 libltdl_cv_sys_dlopen_deplibs=yes
8563 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8564 # GNU and its variants, using gnu ld.so (Glibc)
8565 libltdl_cv_sys_dlopen_deplibs=yes
8568 libltdl_cv_sys_dlopen_deplibs=yes
8570 irix[12345]*|irix6.[01]*)
8571 # Catch all versions of IRIX before 6.2, and indicate that we don't
8572 # know how it worked for any of those versions.
8573 libltdl_cv_sys_dlopen_deplibs=unknown
8576 # The case above catches anything before 6.2, and it's known that
8577 # at 6.2 and later dlopen does load deplibs.
8578 libltdl_cv_sys_dlopen_deplibs=yes
8581 libltdl_cv_sys_dlopen_deplibs=yes
8584 libltdl_cv_sys_dlopen_deplibs=yes
8587 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8588 # it did *not* use an RPATH in a shared library to find objects the
8589 # library depends on, so we explictly say `no'.
8590 libltdl_cv_sys_dlopen_deplibs=no
8592 osf5.0|osf5.0a|osf5.1)
8593 # dlopen *does* load deplibs and with the right loader patch applied
8594 # it even uses RPATH in a shared library to search for shared objects
8595 # that the library depends on, but there's no easy way to know if that
8596 # patch is installed. Since this is the case, all we can really
8597 # say is unknown -- it depends on the patch being installed. If
8598 # it is, this changes to `yes'. Without it, it would be `no'.
8599 libltdl_cv_sys_dlopen_deplibs=unknown
8602 # the two cases above should catch all versions of osf <= 5.1. Read
8603 # the comments above for what we know about them.
8604 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8605 # is used to find them so we can finally say `yes'.
8606 libltdl_cv_sys_dlopen_deplibs=yes
8609 libltdl_cv_sys_dlopen_deplibs=yes
8614 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8615 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8616 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8618 cat >>confdefs.h <<\_ACEOF
8619 #define LTDL_DLOPEN_DEPLIBS 1
8625 for ac_header in argz.h
8627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8629 echo "$as_me:$LINENO: checking for $ac_header" >&5
8630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8637 # Is the header compilable?
8638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8640 cat >conftest.$ac_ext <<_ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8646 $ac_includes_default
8647 #include <$ac_header>
8649 rm -f conftest.$ac_objext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651 (eval $ac_compile) 2>conftest.er1
8653 grep -v '^ *+' conftest.er1 >conftest.err
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_c_werror_flag"
8659 || test ! -s conftest.err'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest.$ac_objext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_header_compiler=yes
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8676 ac_header_compiler=no
8678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8680 echo "${ECHO_T}$ac_header_compiler" >&6
8682 # Is the header present?
8683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8685 cat >conftest.$ac_ext <<_ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8691 #include <$ac_header>
8693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8696 grep -v '^ *+' conftest.er1 >conftest.err
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } >/dev/null; then
8701 if test -s conftest.err; then
8702 ac_cpp_err=$ac_c_preproc_warn_flag
8703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8710 if test -z "$ac_cpp_err"; then
8711 ac_header_preproc=yes
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_header_preproc=no
8718 rm -f conftest.err conftest.$ac_ext
8719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8720 echo "${ECHO_T}$ac_header_preproc" >&6
8722 # So? What about this header?
8723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8729 ac_header_preproc=yes
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8746 ## ----------------------------------- ##
8747 ## Report this to llvmbugs@cs.uiuc.edu ##
8748 ## ----------------------------------- ##
8751 sed "s/^/$as_me: WARNING: /" >&2
8754 echo "$as_me:$LINENO: checking for $ac_header" >&5
8755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 eval "$as_ac_Header=\$ac_header_preproc"
8761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8766 cat >>confdefs.h <<_ACEOF
8767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8775 echo "$as_me:$LINENO: checking for error_t" >&5
8776 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8777 if test "${ac_cv_type_error_t+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8795 if (sizeof (error_t))
8801 rm -f conftest.$ac_objext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8803 (eval $ac_compile) 2>conftest.er1
8805 grep -v '^ *+' conftest.er1 >conftest.err
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -z "$ac_c_werror_flag"
8811 || test ! -s conftest.err'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; } &&
8817 { ac_try='test -s conftest.$ac_objext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_cv_type_error_t=yes
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8828 ac_cv_type_error_t=no
8830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8832 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8833 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8834 if test $ac_cv_type_error_t = yes; then
8836 cat >>confdefs.h <<_ACEOF
8837 #define HAVE_ERROR_T 1
8843 cat >>confdefs.h <<\_ACEOF
8855 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8858 echo "$as_me:$LINENO: checking for $ac_func" >&5
8859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8860 if eval "test \"\${$as_ac_var+set}\" = set"; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 cat >conftest.$ac_ext <<_ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8871 #define $ac_func innocuous_$ac_func
8873 /* System header to define __stub macros and hopefully few prototypes,
8874 which can conflict with char $ac_func (); below.
8875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8876 <limits.h> exists even on freestanding compilers. */
8879 # include <limits.h>
8881 # include <assert.h>
8886 /* Override any gcc2 internal prototype to avoid an error. */
8891 /* We use char because int might match the return type of a gcc2
8892 builtin and then its argument prototype would still apply. */
8894 /* The GNU C library defines this for functions which it implements
8895 to always fail with ENOSYS. Some functions are actually named
8896 something starting with __ and the normal name is an alias. */
8897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8900 char (*f) () = $ac_func;
8909 return f != $ac_func;
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8918 grep -v '^ *+' conftest.er1 >conftest.err
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 eval "$as_ac_var=yes"
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 eval "$as_ac_var=no"
8943 rm -f conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8948 if test `eval echo '${'$as_ac_var'}'` = yes; then
8949 cat >>confdefs.h <<_ACEOF
8950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8983 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8988 echo "$as_me:$LINENO: checking for $ac_header" >&5
8989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8996 # Is the header compilable?
8997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8999 cat >conftest.$ac_ext <<_ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9005 $ac_includes_default
9006 #include <$ac_header>
9008 rm -f conftest.$ac_objext
9009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9010 (eval $ac_compile) 2>conftest.er1
9012 grep -v '^ *+' conftest.er1 >conftest.err
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -z "$ac_c_werror_flag"
9018 || test ! -s conftest.err'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; } &&
9024 { ac_try='test -s conftest.$ac_objext'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 ac_header_compiler=yes
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 ac_header_compiler=no
9037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9039 echo "${ECHO_T}$ac_header_compiler" >&6
9041 # Is the header present?
9042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9044 cat >conftest.$ac_ext <<_ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9050 #include <$ac_header>
9052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9055 grep -v '^ *+' conftest.er1 >conftest.err
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } >/dev/null; then
9060 if test -s conftest.err; then
9061 ac_cpp_err=$ac_c_preproc_warn_flag
9062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9069 if test -z "$ac_cpp_err"; then
9070 ac_header_preproc=yes
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9075 ac_header_preproc=no
9077 rm -f conftest.err conftest.$ac_ext
9078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9079 echo "${ECHO_T}$ac_header_preproc" >&6
9081 # So? What about this header?
9082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9088 ac_header_preproc=yes
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9105 ## ----------------------------------- ##
9106 ## Report this to llvmbugs@cs.uiuc.edu ##
9107 ## ----------------------------------- ##
9110 sed "s/^/$as_me: WARNING: /" >&2
9113 echo "$as_me:$LINENO: checking for $ac_header" >&5
9114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 eval "$as_ac_Header=\$ac_header_preproc"
9120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9125 cat >>confdefs.h <<_ACEOF
9126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9137 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9141 echo "$as_me:$LINENO: checking for $ac_header" >&5
9142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9149 # Is the header compilable?
9150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9152 cat >conftest.$ac_ext <<_ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 $ac_includes_default
9159 #include <$ac_header>
9161 rm -f conftest.$ac_objext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9163 (eval $ac_compile) 2>conftest.er1
9165 grep -v '^ *+' conftest.er1 >conftest.err
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -z "$ac_c_werror_flag"
9171 || test ! -s conftest.err'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; } &&
9177 { ac_try='test -s conftest.$ac_objext'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; }; then
9183 ac_header_compiler=yes
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9188 ac_header_compiler=no
9190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9192 echo "${ECHO_T}$ac_header_compiler" >&6
9194 # Is the header present?
9195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9197 cat >conftest.$ac_ext <<_ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 #include <$ac_header>
9205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9208 grep -v '^ *+' conftest.er1 >conftest.err
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } >/dev/null; then
9213 if test -s conftest.err; then
9214 ac_cpp_err=$ac_c_preproc_warn_flag
9215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9222 if test -z "$ac_cpp_err"; then
9223 ac_header_preproc=yes
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9228 ac_header_preproc=no
9230 rm -f conftest.err conftest.$ac_ext
9231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9232 echo "${ECHO_T}$ac_header_preproc" >&6
9234 # So? What about this header?
9235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9241 ac_header_preproc=yes
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9247 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9251 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9258 ## ----------------------------------- ##
9259 ## Report this to llvmbugs@cs.uiuc.edu ##
9260 ## ----------------------------------- ##
9263 sed "s/^/$as_me: WARNING: /" >&2
9266 echo "$as_me:$LINENO: checking for $ac_header" >&5
9267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 eval "$as_ac_Header=\$ac_header_preproc"
9273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9278 cat >>confdefs.h <<_ACEOF
9279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9288 for ac_header in string.h strings.h
9290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292 echo "$as_me:$LINENO: checking for $ac_header" >&5
9293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9300 # Is the header compilable?
9301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9303 cat >conftest.$ac_ext <<_ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 $ac_includes_default
9310 #include <$ac_header>
9312 rm -f conftest.$ac_objext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9314 (eval $ac_compile) 2>conftest.er1
9316 grep -v '^ *+' conftest.er1 >conftest.err
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_c_werror_flag"
9322 || test ! -s conftest.err'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; } &&
9328 { ac_try='test -s conftest.$ac_objext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 ac_header_compiler=yes
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 ac_header_compiler=no
9341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9343 echo "${ECHO_T}$ac_header_compiler" >&6
9345 # Is the header present?
9346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 #include <$ac_header>
9356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9359 grep -v '^ *+' conftest.er1 >conftest.err
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } >/dev/null; then
9364 if test -s conftest.err; then
9365 ac_cpp_err=$ac_c_preproc_warn_flag
9366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9373 if test -z "$ac_cpp_err"; then
9374 ac_header_preproc=yes
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9379 ac_header_preproc=no
9381 rm -f conftest.err conftest.$ac_ext
9382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9383 echo "${ECHO_T}$ac_header_preproc" >&6
9385 # So? What about this header?
9386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9392 ac_header_preproc=yes
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9409 ## ----------------------------------- ##
9410 ## Report this to llvmbugs@cs.uiuc.edu ##
9411 ## ----------------------------------- ##
9414 sed "s/^/$as_me: WARNING: /" >&2
9417 echo "$as_me:$LINENO: checking for $ac_header" >&5
9418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 eval "$as_ac_Header=\$ac_header_preproc"
9424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9429 cat >>confdefs.h <<_ACEOF
9430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9440 for ac_func in strchr index
9442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9443 echo "$as_me:$LINENO: checking for $ac_func" >&5
9444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9445 if eval "test \"\${$as_ac_var+set}\" = set"; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 cat >conftest.$ac_ext <<_ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9456 #define $ac_func innocuous_$ac_func
9458 /* System header to define __stub macros and hopefully few prototypes,
9459 which can conflict with char $ac_func (); below.
9460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461 <limits.h> exists even on freestanding compilers. */
9464 # include <limits.h>
9466 # include <assert.h>
9471 /* Override any gcc2 internal prototype to avoid an error. */
9476 /* We use char because int might match the return type of a gcc2
9477 builtin and then its argument prototype would still apply. */
9479 /* The GNU C library defines this for functions which it implements
9480 to always fail with ENOSYS. Some functions are actually named
9481 something starting with __ and the normal name is an alias. */
9482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9485 char (*f) () = $ac_func;
9494 return f != $ac_func;
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501 (eval $ac_link) 2>conftest.er1
9503 grep -v '^ *+' conftest.er1 >conftest.err
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -z "$ac_c_werror_flag"
9509 || test ! -s conftest.err'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; } &&
9515 { ac_try='test -s conftest$ac_exeext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 eval "$as_ac_var=yes"
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 eval "$as_ac_var=no"
9528 rm -f conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9533 if test `eval echo '${'$as_ac_var'}'` = yes; then
9534 cat >>confdefs.h <<_ACEOF
9535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9543 for ac_func in strrchr rindex
9545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9546 echo "$as_me:$LINENO: checking for $ac_func" >&5
9547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9548 if eval "test \"\${$as_ac_var+set}\" = set"; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 cat >conftest.$ac_ext <<_ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9559 #define $ac_func innocuous_$ac_func
9561 /* System header to define __stub macros and hopefully few prototypes,
9562 which can conflict with char $ac_func (); below.
9563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564 <limits.h> exists even on freestanding compilers. */
9567 # include <limits.h>
9569 # include <assert.h>
9574 /* Override any gcc2 internal prototype to avoid an error. */
9579 /* We use char because int might match the return type of a gcc2
9580 builtin and then its argument prototype would still apply. */
9582 /* The GNU C library defines this for functions which it implements
9583 to always fail with ENOSYS. Some functions are actually named
9584 something starting with __ and the normal name is an alias. */
9585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9588 char (*f) () = $ac_func;
9597 return f != $ac_func;
9602 rm -f conftest.$ac_objext conftest$ac_exeext
9603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9604 (eval $ac_link) 2>conftest.er1
9606 grep -v '^ *+' conftest.er1 >conftest.err
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } &&
9611 { ac_try='test -z "$ac_c_werror_flag"
9612 || test ! -s conftest.err'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; } &&
9618 { ac_try='test -s conftest$ac_exeext'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9624 eval "$as_ac_var=yes"
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 eval "$as_ac_var=no"
9631 rm -f conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9636 if test `eval echo '${'$as_ac_var'}'` = yes; then
9637 cat >>confdefs.h <<_ACEOF
9638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9646 for ac_func in memcpy bcopy
9648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9649 echo "$as_me:$LINENO: checking for $ac_func" >&5
9650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9651 if eval "test \"\${$as_ac_var+set}\" = set"; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9662 #define $ac_func innocuous_$ac_func
9664 /* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char $ac_func (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9670 # include <limits.h>
9672 # include <assert.h>
9677 /* Override any gcc2 internal prototype to avoid an error. */
9682 /* We use char because int might match the return type of a gcc2
9683 builtin and then its argument prototype would still apply. */
9685 /* The GNU C library defines this for functions which it implements
9686 to always fail with ENOSYS. Some functions are actually named
9687 something starting with __ and the normal name is an alias. */
9688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9691 char (*f) () = $ac_func;
9700 return f != $ac_func;
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9707 (eval $ac_link) 2>conftest.er1
9709 grep -v '^ *+' conftest.er1 >conftest.err
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -z "$ac_c_werror_flag"
9715 || test ! -s conftest.err'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; } &&
9721 { ac_try='test -s conftest$ac_exeext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 eval "$as_ac_var=yes"
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9732 eval "$as_ac_var=no"
9734 rm -f conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9739 if test `eval echo '${'$as_ac_var'}'` = yes; then
9740 cat >>confdefs.h <<_ACEOF
9741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9749 for ac_func in memmove strcmp
9751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9752 echo "$as_me:$LINENO: checking for $ac_func" >&5
9753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9754 if eval "test \"\${$as_ac_var+set}\" = set"; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 cat >conftest.$ac_ext <<_ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9765 #define $ac_func innocuous_$ac_func
9767 /* System header to define __stub macros and hopefully few prototypes,
9768 which can conflict with char $ac_func (); below.
9769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9770 <limits.h> exists even on freestanding compilers. */
9773 # include <limits.h>
9775 # include <assert.h>
9780 /* Override any gcc2 internal prototype to avoid an error. */
9785 /* We use char because int might match the return type of a gcc2
9786 builtin and then its argument prototype would still apply. */
9788 /* The GNU C library defines this for functions which it implements
9789 to always fail with ENOSYS. Some functions are actually named
9790 something starting with __ and the normal name is an alias. */
9791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9794 char (*f) () = $ac_func;
9803 return f != $ac_func;
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810 (eval $ac_link) 2>conftest.er1
9812 grep -v '^ *+' conftest.er1 >conftest.err
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -z "$ac_c_werror_flag"
9818 || test ! -s conftest.err'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; } &&
9824 { ac_try='test -s conftest$ac_exeext'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
9830 eval "$as_ac_var=yes"
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9835 eval "$as_ac_var=no"
9837 rm -f conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext conftest.$ac_ext
9840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9842 if test `eval echo '${'$as_ac_var'}'` = yes; then
9843 cat >>confdefs.h <<_ACEOF
9844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9853 for ac_func in closedir opendir readdir
9855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9856 echo "$as_me:$LINENO: checking for $ac_func" >&5
9857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9858 if eval "test \"\${$as_ac_var+set}\" = set"; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 cat >conftest.$ac_ext <<_ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9869 #define $ac_func innocuous_$ac_func
9871 /* System header to define __stub macros and hopefully few prototypes,
9872 which can conflict with char $ac_func (); below.
9873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9874 <limits.h> exists even on freestanding compilers. */
9877 # include <limits.h>
9879 # include <assert.h>
9884 /* Override any gcc2 internal prototype to avoid an error. */
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9892 /* The GNU C library defines this for functions which it implements
9893 to always fail with ENOSYS. Some functions are actually named
9894 something starting with __ and the normal name is an alias. */
9895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9898 char (*f) () = $ac_func;
9907 return f != $ac_func;
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>conftest.er1
9916 grep -v '^ *+' conftest.er1 >conftest.err
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try='test -z "$ac_c_werror_flag"
9922 || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest$ac_exeext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 eval "$as_ac_var=yes"
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 eval "$as_ac_var=no"
9941 rm -f conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
9944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9946 if test `eval echo '${'$as_ac_var'}'` = yes; then
9947 cat >>confdefs.h <<_ACEOF
9948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9955 # Check whether --enable-shared or --disable-shared was given.
9956 if test "${enable_shared+set}" = set; then
9957 enableval="$enable_shared"
9958 p=${PACKAGE-default}
9960 yes) enable_shared=yes ;;
9961 no) enable_shared=no ;;
9964 # Look at the argument we got. We use all the common list separators.
9965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9966 for pkg in $enableval; do
9968 if test "X$pkg" = "X$p"; then
9979 # Check whether --enable-static or --disable-static was given.
9980 if test "${enable_static+set}" = set; then
9981 enableval="$enable_static"
9982 p=${PACKAGE-default}
9984 yes) enable_static=yes ;;
9985 no) enable_static=no ;;
9988 # Look at the argument we got. We use all the common list separators.
9989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9990 for pkg in $enableval; do
9992 if test "X$pkg" = "X$p"; then
10003 # Check whether --enable-fast-install or --disable-fast-install was given.
10004 if test "${enable_fast_install+set}" = set; then
10005 enableval="$enable_fast_install"
10006 p=${PACKAGE-default}
10008 yes) enable_fast_install=yes ;;
10009 no) enable_fast_install=no ;;
10011 enable_fast_install=no
10012 # Look at the argument we got. We use all the common list separators.
10013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10014 for pkg in $enableval; do
10016 if test "X$pkg" = "X$p"; then
10017 enable_fast_install=yes
10024 enable_fast_install=yes
10027 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10028 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10029 if test "${lt_cv_path_SED+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 # Loop through the user's path and test for sed and gsed.
10033 # Then use that list of sed's as ones to test for truncation.
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10038 test -z "$as_dir" && as_dir=.
10039 for lt_ac_prog in sed gsed; do
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10042 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10049 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10050 # along with /bin/sed that truncates output.
10051 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10052 test ! -f $lt_ac_sed && break
10053 cat /dev/null > conftest.in
10055 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10056 # Check for GNU sed and select it if it is found.
10057 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10058 lt_cv_path_SED=$lt_ac_sed
10062 cat conftest.in conftest.in >conftest.tmp
10063 mv conftest.tmp conftest.in
10064 cp conftest.in conftest.nl
10066 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10067 cmp -s conftest.out conftest.nl || break
10068 # 10000 chars as input seems more than enough
10069 test $lt_ac_count -gt 10 && break
10070 lt_ac_count=`expr $lt_ac_count + 1`
10071 if test $lt_ac_count -gt $lt_ac_max; then
10072 lt_ac_max=$lt_ac_count
10073 lt_cv_path_SED=$lt_ac_sed
10080 SED=$lt_cv_path_SED
10081 echo "$as_me:$LINENO: result: $SED" >&5
10082 echo "${ECHO_T}$SED" >&6
10085 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10086 if test "${with_gnu_ld+set}" = set; then
10087 withval="$with_gnu_ld"
10088 test "$withval" = no || with_gnu_ld=yes
10093 if test "$GCC" = yes; then
10094 # Check if gcc -print-prog-name=ld gives a path.
10095 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10096 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10099 # gcc leaves a trailing carriage return which upsets mingw
10100 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10102 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10105 # Accept absolute paths.
10107 re_direlt='/[^/][^/]*/\.\./'
10108 # Canonicalize the pathname of ld
10109 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10110 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10111 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10113 test -z "$LD" && LD="$ac_prog"
10116 # If it fails, then pretend we aren't using GCC.
10120 # If it is relative, then search for the first ld in PATH.
10121 with_gnu_ld=unknown
10124 elif test "$with_gnu_ld" = yes; then
10125 echo "$as_me:$LINENO: checking for GNU ld" >&5
10126 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10128 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10129 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10131 if test "${lt_cv_path_LD+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 if test -z "$LD"; then
10135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10136 for ac_dir in $PATH; do
10138 test -z "$ac_dir" && ac_dir=.
10139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10140 lt_cv_path_LD="$ac_dir/$ac_prog"
10141 # Check to see if the program is GNU ld. I'd rather use --version,
10142 # but apparently some GNU ld's only accept -v.
10143 # Break only if it was the GNU/non-GNU ld that we prefer.
10144 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10145 *GNU* | *'with BFD'*)
10146 test "$with_gnu_ld" != no && break
10149 test "$with_gnu_ld" != yes && break
10156 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10160 LD="$lt_cv_path_LD"
10161 if test -n "$LD"; then
10162 echo "$as_me:$LINENO: result: $LD" >&5
10163 echo "${ECHO_T}$LD" >&6
10165 echo "$as_me:$LINENO: result: no" >&5
10166 echo "${ECHO_T}no" >&6
10168 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10169 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10170 { (exit 1); exit 1; }; }
10171 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10172 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10173 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10177 case `$LD -v 2>&1 </dev/null` in
10178 *GNU* | *'with BFD'*)
10179 lt_cv_prog_gnu_ld=yes
10182 lt_cv_prog_gnu_ld=no
10186 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10187 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10188 with_gnu_ld=$lt_cv_prog_gnu_ld
10191 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10192 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10193 if test "${lt_cv_ld_reload_flag+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 lt_cv_ld_reload_flag='-r'
10198 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10199 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10200 reload_flag=$lt_cv_ld_reload_flag
10201 case $reload_flag in
10203 *) reload_flag=" $reload_flag" ;;
10205 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10208 if test "$GCC" = yes; then
10209 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10211 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10216 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10217 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10218 if test "${lt_cv_deplibs_check_method+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 lt_cv_file_magic_cmd='$MAGIC_CMD'
10222 lt_cv_file_magic_test_file=
10223 lt_cv_deplibs_check_method='unknown'
10224 # Need to set the preceding variable on all platforms that support
10225 # interlibrary dependencies.
10226 # 'none' -- dependencies not supported.
10227 # `unknown' -- same as none, but documents that we really don't know.
10228 # 'pass_all' -- all dependencies passed with no checks.
10229 # 'test_compile' -- check by making test program.
10230 # 'file_magic [[regex]]' -- check by looking for files in library path
10231 # which responds to the $file_magic_cmd with a given extended regex.
10232 # If you have `file' or equivalent on your system and you're not sure
10233 # whether `pass_all' will *always* work, you probably want this one.
10237 lt_cv_deplibs_check_method=pass_all
10241 lt_cv_deplibs_check_method=pass_all
10245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10246 lt_cv_file_magic_cmd='/usr/bin/file -L'
10247 lt_cv_file_magic_test_file=/shlib/libc.so
10251 # func_win32_libid is a shell function defined in ltmain.sh
10252 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10253 lt_cv_file_magic_cmd='func_win32_libid'
10257 # Base MSYS/MinGW do not provide the 'file' command needed by
10258 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10259 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10260 lt_cv_file_magic_cmd='$OBJDUMP -f'
10263 darwin* | rhapsody*)
10264 lt_cv_deplibs_check_method=pass_all
10267 freebsd* | kfreebsd*-gnu)
10268 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10271 # Not sure whether the presence of OpenBSD here was a mistake.
10272 # Let's accept both of them until this is cleared up.
10273 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10274 lt_cv_file_magic_cmd=/usr/bin/file
10275 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10279 lt_cv_deplibs_check_method=pass_all
10284 lt_cv_deplibs_check_method=pass_all
10287 hpux10.20* | hpux11*)
10288 lt_cv_file_magic_cmd=/usr/bin/file
10289 case "$host_cpu" in
10291 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10292 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10295 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]'
10296 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10300 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10305 irix5* | irix6* | nonstopux*)
10307 *-32|*"-32 ") libmagic=32-bit;;
10308 *-n32|*"-n32 ") libmagic=N32;;
10309 *-64|*"-64 ") libmagic=64-bit;;
10310 *) libmagic=never-match;;
10312 lt_cv_deplibs_check_method=pass_all
10315 # This must be Linux ELF.
10317 lt_cv_deplibs_check_method=pass_all
10321 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10329 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10330 lt_cv_file_magic_cmd=/usr/bin/file
10331 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10335 lt_cv_deplibs_check_method=unknown
10339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10346 osf3* | osf4* | osf5*)
10347 lt_cv_deplibs_check_method=pass_all
10351 lt_cv_deplibs_check_method=pass_all
10355 lt_cv_deplibs_check_method=pass_all
10358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10359 case $host_vendor in
10361 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]'
10362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10365 lt_cv_deplibs_check_method=pass_all
10368 lt_cv_file_magic_cmd='/bin/file'
10369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10372 lt_cv_file_magic_cmd='/bin/file'
10373 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10374 lt_cv_file_magic_test_file=/lib/libc.so
10377 lt_cv_deplibs_check_method=pass_all
10382 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10383 lt_cv_deplibs_check_method=pass_all
10388 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10389 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10390 file_magic_cmd=$lt_cv_file_magic_cmd
10391 deplibs_check_method=$lt_cv_deplibs_check_method
10392 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10396 # If no C compiler was specified, use CC.
10399 # Allow CC to be a program name with arguments.
10402 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10403 if test "${enable_libtool_lock+set}" = set; then
10404 enableval="$enable_libtool_lock"
10407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10409 # Some flags need to be propagated to the compiler or linker for good
10413 # Find out which ABI we are using.
10414 echo 'int i;' > conftest.$ac_ext
10415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10416 (eval $ac_compile) 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; then
10420 case `/usr/bin/file conftest.$ac_objext` in
10422 HPUX_IA64_MODE="32"
10425 HPUX_IA64_MODE="64"
10432 # Find out which ABI we are using.
10433 echo '#line 10433 "configure"' > conftest.$ac_ext
10434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10435 (eval $ac_compile) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; then
10439 if test "$lt_cv_prog_gnu_ld" = yes; then
10440 case `/usr/bin/file conftest.$ac_objext` in
10442 LD="${LD-ld} -melf32bsmip"
10445 LD="${LD-ld} -melf32bmipn32"
10448 LD="${LD-ld} -melf64bmip"
10452 case `/usr/bin/file conftest.$ac_objext` in
10468 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10469 # Find out which ABI we are using.
10470 echo 'int i;' > conftest.$ac_ext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472 (eval $ac_compile) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; then
10476 case "`/usr/bin/file conftest.o`" in
10480 LD="${LD-ld} -m elf_i386"
10482 ppc64-*linux*|powerpc64-*linux*)
10483 LD="${LD-ld} -m elf32ppclinux"
10486 LD="${LD-ld} -m elf_s390"
10489 LD="${LD-ld} -m elf32_sparc"
10496 LD="${LD-ld} -m elf_x86_64"
10498 ppc*-*linux*|powerpc*-*linux*)
10499 LD="${LD-ld} -m elf64ppc"
10502 LD="${LD-ld} -m elf64_s390"
10505 LD="${LD-ld} -m elf64_sparc"
10515 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10516 SAVE_CFLAGS="$CFLAGS"
10517 CFLAGS="$CFLAGS -belf"
10518 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10519 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10520 if test "${lt_cv_cc_needs_belf+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 ac_cpp='$CPP $CPPFLAGS'
10525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10529 cat >conftest.$ac_ext <<_ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539 (eval $ac_link) 2>conftest.er1
10541 grep -v '^ *+' conftest.er1 >conftest.err
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 lt_cv_cc_needs_belf=yes
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 lt_cv_cc_needs_belf=no
10566 rm -f conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10569 ac_cpp='$CPP $CPPFLAGS'
10570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10575 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10576 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10577 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10578 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10579 CFLAGS="$SAVE_CFLAGS"
10585 need_locks="$enable_libtool_lock"
10590 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10591 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10592 (test "X$CXX" != "Xg++"))) ; then
10594 ac_cpp='$CXXCPP $CPPFLAGS'
10595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10598 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10599 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10600 if test -z "$CXXCPP"; then
10601 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 # Double quotes because CXXCPP needs to be expanded
10605 for CXXCPP in "$CXX -E" "/lib/cpp"
10607 ac_preproc_ok=false
10608 for ac_cxx_preproc_warn_flag in '' yes
10610 # Use a header file that comes with gcc, so configuring glibc
10611 # with a fresh cross-compiler works.
10612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613 # <limits.h> exists even on freestanding compilers.
10614 # On the NeXT, cc -E runs the code through the compiler's parser,
10615 # not just through cpp. "Syntax error" is here to catch this case.
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10623 # include <limits.h>
10625 # include <assert.h>
10629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10632 grep -v '^ *+' conftest.er1 >conftest.err
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } >/dev/null; then
10637 if test -s conftest.err; then
10638 ac_cpp_err=$ac_cxx_preproc_warn_flag
10639 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10646 if test -z "$ac_cpp_err"; then
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 # Broken: fails on valid input.
10655 rm -f conftest.err conftest.$ac_ext
10657 # OK, works on sane cases. Now check whether non-existent headers
10658 # can be detected and how.
10659 cat >conftest.$ac_ext <<_ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10665 #include <ac_nonexistent.h>
10667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10670 grep -v '^ *+' conftest.er1 >conftest.err
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } >/dev/null; then
10675 if test -s conftest.err; then
10676 ac_cpp_err=$ac_cxx_preproc_warn_flag
10677 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10684 if test -z "$ac_cpp_err"; then
10685 # Broken: success on invalid input.
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 # Passes both tests.
10695 rm -f conftest.err conftest.$ac_ext
10698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10699 rm -f conftest.err conftest.$ac_ext
10700 if $ac_preproc_ok; then
10705 ac_cv_prog_CXXCPP=$CXXCPP
10708 CXXCPP=$ac_cv_prog_CXXCPP
10710 ac_cv_prog_CXXCPP=$CXXCPP
10712 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10713 echo "${ECHO_T}$CXXCPP" >&6
10714 ac_preproc_ok=false
10715 for ac_cxx_preproc_warn_flag in '' yes
10717 # Use a header file that comes with gcc, so configuring glibc
10718 # with a fresh cross-compiler works.
10719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10720 # <limits.h> exists even on freestanding compilers.
10721 # On the NeXT, cc -E runs the code through the compiler's parser,
10722 # not just through cpp. "Syntax error" is here to catch this case.
10723 cat >conftest.$ac_ext <<_ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10730 # include <limits.h>
10732 # include <assert.h>
10736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10739 grep -v '^ *+' conftest.er1 >conftest.err
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } >/dev/null; then
10744 if test -s conftest.err; then
10745 ac_cpp_err=$ac_cxx_preproc_warn_flag
10746 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10753 if test -z "$ac_cpp_err"; then
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 # Broken: fails on valid input.
10762 rm -f conftest.err conftest.$ac_ext
10764 # OK, works on sane cases. Now check whether non-existent headers
10765 # can be detected and how.
10766 cat >conftest.$ac_ext <<_ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 #include <ac_nonexistent.h>
10774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10777 grep -v '^ *+' conftest.er1 >conftest.err
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } >/dev/null; then
10782 if test -s conftest.err; then
10783 ac_cpp_err=$ac_cxx_preproc_warn_flag
10784 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10791 if test -z "$ac_cpp_err"; then
10792 # Broken: success on invalid input.
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 # Passes both tests.
10802 rm -f conftest.err conftest.$ac_ext
10805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10806 rm -f conftest.err conftest.$ac_ext
10807 if $ac_preproc_ok; then
10810 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10811 See \`config.log' for more details." >&5
10812 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10813 See \`config.log' for more details." >&2;}
10814 { (exit 1); exit 1; }; }
10818 ac_cpp='$CXXCPP $CPPFLAGS'
10819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10827 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10828 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10829 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10830 if test -n "$ac_tool_prefix"; then
10831 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10835 echo "$as_me:$LINENO: checking for $ac_word" >&5
10836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10837 if test "${ac_cv_prog_F77+set}" = set; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 if test -n "$F77"; then
10841 ac_cv_prog_F77="$F77" # Let the user override the test.
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 F77=$ac_cv_prog_F77
10860 if test -n "$F77"; then
10861 echo "$as_me:$LINENO: result: $F77" >&5
10862 echo "${ECHO_T}$F77" >&6
10864 echo "$as_me:$LINENO: result: no" >&5
10865 echo "${ECHO_T}no" >&6
10868 test -n "$F77" && break
10871 if test -z "$F77"; then
10873 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10875 # Extract the first word of "$ac_prog", so it can be a program name with args.
10876 set dummy $ac_prog; ac_word=$2
10877 echo "$as_me:$LINENO: checking for $ac_word" >&5
10878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10879 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 if test -n "$ac_ct_F77"; then
10883 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892 ac_cv_prog_ac_ct_F77="$ac_prog"
10893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10901 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10902 if test -n "$ac_ct_F77"; then
10903 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10904 echo "${ECHO_T}$ac_ct_F77" >&6
10906 echo "$as_me:$LINENO: result: no" >&5
10907 echo "${ECHO_T}no" >&6
10910 test -n "$ac_ct_F77" && break
10917 # Provide some information about the compiler.
10918 echo "$as_me:10918:" \
10919 "checking for Fortran 77 compiler version" >&5
10920 ac_compiler=`set X $ac_compile; echo $2`
10921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10922 (eval $ac_compiler --version </dev/null >&5) 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }
10926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10927 (eval $ac_compiler -v </dev/null >&5) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }
10931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10932 (eval $ac_compiler -V </dev/null >&5) 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }
10938 # If we don't use `.F' as extension, the preprocessor is not run on the
10939 # input file. (Note that this only needs to work for GNU compilers.)
10940 ac_save_ext=$ac_ext
10942 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10943 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10944 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 cat >conftest.$ac_ext <<_ACEOF
10955 rm -f conftest.$ac_objext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10957 (eval $ac_compile) 2>conftest.er1
10959 grep -v '^ *+' conftest.er1 >conftest.err
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } &&
10964 { ac_try='test -z "$ac_f77_werror_flag"
10965 || test ! -s conftest.err'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; } &&
10971 { ac_try='test -s conftest.$ac_objext'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 ac_compiler_gnu=yes
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10985 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10988 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10989 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10990 ac_ext=$ac_save_ext
10991 ac_test_FFLAGS=${FFLAGS+set}
10992 ac_save_FFLAGS=$FFLAGS
10994 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10995 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10996 if test "${ac_cv_prog_f77_g+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 cat >conftest.$ac_ext <<_ACEOF
11005 rm -f conftest.$ac_objext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11007 (eval $ac_compile) 2>conftest.er1
11009 grep -v '^ *+' conftest.er1 >conftest.err
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_f77_werror_flag"
11015 || test ! -s conftest.err'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest.$ac_objext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_cv_prog_f77_g=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_cv_prog_f77_g=no
11034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11037 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11038 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11039 if test "$ac_test_FFLAGS" = set; then
11040 FFLAGS=$ac_save_FFLAGS
11041 elif test $ac_cv_prog_f77_g = yes; then
11042 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11048 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11055 G77=`test $ac_compiler_gnu = yes && echo yes`
11057 ac_cpp='$CPP $CPPFLAGS'
11058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11064 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11066 # find the maximum length of command line arguments
11067 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11068 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11069 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 # On DJGPP, this test can blow up pretty badly due to problems in libc
11078 # (any single argument exceeding 2000 bytes causes a buffer overrun
11079 # during glob expansion). Even if it were fixed, the result of this
11080 # check would be larger than it should be.
11081 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11085 # Under GNU Hurd, this test is not required because there is
11086 # no limit to the length of command line arguments.
11087 # Libtool will interpret -1 as no limit whatsoever
11088 lt_cv_sys_max_cmd_len=-1;
11092 # On Win9x/ME, this test blows up -- it succeeds, but takes
11093 # about 5 minutes as the teststring grows exponentially.
11094 # Worse, since 9x/ME are not pre-emptively multitasking,
11095 # you end up with a "frozen" computer, even though with patience
11096 # the test eventually succeeds (with a max line length of 256k).
11097 # Instead, let's just punt: use the minimum linelength reported by
11098 # all of the supported platforms: 8192 (on NT/2K/XP).
11099 lt_cv_sys_max_cmd_len=8192;
11103 # On AmigaOS with pdksh, this test takes hours, literally.
11104 # So we just punt and use a minimum line length of 8192.
11105 lt_cv_sys_max_cmd_len=8192;
11108 netbsd* | freebsd* | openbsd* | darwin* )
11109 # This has been around since 386BSD, at least. Likely further.
11110 if test -x /sbin/sysctl; then
11111 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11112 elif test -x /usr/sbin/sysctl; then
11113 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11115 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11117 # And add a safety zone
11118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11122 # If test is not a shell built-in, we'll probably end up computing a
11123 # maximum length that is only half of the actual maximum length, but
11125 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11126 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11127 = "XX$teststring") >/dev/null 2>&1 &&
11128 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11129 lt_cv_sys_max_cmd_len=$new_result &&
11130 test $i != 17 # 1/2 MB should be enough
11133 teststring=$teststring$teststring
11136 # Add a significant safety factor because C++ compilers can tack on massive
11137 # amounts of additional arguments before passing them to the linker.
11138 # It appears as though 1/2 is a usable value.
11139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11145 if test -n $lt_cv_sys_max_cmd_len ; then
11146 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11147 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11149 echo "$as_me:$LINENO: result: none" >&5
11150 echo "${ECHO_T}none" >&6
11156 # Check for command to grab the raw symbol name followed by C symbol from nm.
11157 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11158 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11159 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 # These are sane defaults that work on at least a few old systems.
11164 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11166 # Character class describing NM global symbol codes.
11167 symcode='[BCDEGRST]'
11169 # Regexp to match symbols that can be accessed directly from C.
11170 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11172 # Transform the above into a raw symbol and a C symbol.
11173 symxfrm='\1 \2\3 \3'
11175 # Transform an extracted symbol line into a proper C declaration
11176 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11178 # Transform an extracted symbol line into symbol name and symbol address
11179 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'"
11181 # Define system-specific variables.
11186 cygwin* | mingw* | pw32*)
11187 symcode='[ABCDGISTW]'
11189 hpux*) # Its linker distinguishes data from code symbols
11190 if test "$host_cpu" = ia64; then
11191 symcode='[ABCDEGRST]'
11193 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11194 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'"
11197 if test "$host_cpu" = ia64; then
11198 symcode='[ABCDGIRSTW]'
11199 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11200 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'"
11203 irix* | nonstopux*)
11204 symcode='[BCDEGRST]'
11207 symcode='[BCDEGQRST]'
11217 # Handle CRLF in mingw tool chain
11221 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11225 # If we're using GNU nm, then use its standard symbol codes.
11226 case `$NM -V 2>&1` in
11227 *GNU* | *'with BFD'*)
11228 symcode='[ABCDGIRSTW]' ;;
11231 # Try without a prefix undercore, then with it.
11232 for ac_symprfx in "" "_"; do
11234 # Write the raw and C identifiers.
11235 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11237 # Check to see that the pipe works correctly.
11241 cat > conftest.$ac_ext <<EOF
11246 void nm_test_func(){}
11250 int main(){nm_test_var='a';nm_test_func();return(0);}
11253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11254 (eval $ac_compile) 2>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; then
11258 # Now try to grab the symbols.
11260 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11261 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && test -s "$nlist"; then
11265 # Try sorting and uniquifying the output.
11266 if sort "$nlist" | uniq > "$nlist"T; then
11267 mv -f "$nlist"T "$nlist"
11272 # Make sure that we snagged all the symbols we need.
11273 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11274 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11275 cat <<EOF > conftest.$ac_ext
11281 # Now generate the symbol file.
11282 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11284 cat <<EOF >> conftest.$ac_ext
11285 #if defined (__STDC__) && __STDC__
11286 # define lt_ptr_t void *
11288 # define lt_ptr_t char *
11292 /* The mapping between symbol names and symbols. */
11297 lt_preloaded_symbols[] =
11300 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11301 cat <<\EOF >> conftest.$ac_ext
11309 # Now try linking the two files.
11310 mv conftest.$ac_objext conftstm.$ac_objext
11311 lt_save_LIBS="$LIBS"
11312 lt_save_CFLAGS="$CFLAGS"
11313 LIBS="conftstm.$ac_objext"
11314 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316 (eval $ac_link) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11322 LIBS="$lt_save_LIBS"
11323 CFLAGS="$lt_save_CFLAGS"
11325 echo "cannot find nm_test_func in $nlist" >&5
11328 echo "cannot find nm_test_var in $nlist" >&5
11331 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11334 echo "$progname: failed program was:" >&5
11335 cat conftest.$ac_ext >&5
11337 rm -f conftest* conftst*
11339 # Do not use the global_symbol_pipe unless it works.
11340 if test "$pipe_works" = yes; then
11343 lt_cv_sys_global_symbol_pipe=
11349 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11350 lt_cv_sys_global_symbol_to_cdecl=
11352 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11353 echo "$as_me:$LINENO: result: failed" >&5
11354 echo "${ECHO_T}failed" >&6
11356 echo "$as_me:$LINENO: result: ok" >&5
11357 echo "${ECHO_T}ok" >&6
11360 echo "$as_me:$LINENO: checking for objdir" >&5
11361 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11362 if test "${lt_cv_objdir+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 rm -f .libs 2>/dev/null
11366 mkdir .libs 2>/dev/null
11367 if test -d .libs; then
11370 # MS-DOS does not allow filenames that begin with a dot.
11373 rmdir .libs 2>/dev/null
11375 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11376 echo "${ECHO_T}$lt_cv_objdir" >&6
11377 objdir=$lt_cv_objdir
11385 # AIX sometimes has problems with the GCC collect2 program. For some
11386 # reason, if we set the COLLECT_NAMES environment variable, the problems
11387 # vanish in a puff of smoke.
11388 if test "X${COLLECT_NAMES+set}" != Xset; then
11390 export COLLECT_NAMES
11395 # Sed substitution that helps us do robust quoting. It backslashifies
11396 # metacharacters that are still active within double-quoted strings.
11397 Xsed='sed -e s/^X//'
11398 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11400 # Same as above, but do not quote variable references.
11401 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11403 # Sed substitution to delay expansion of an escaped shell variable in a
11404 # double_quote_subst'ed string.
11405 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11407 # Sed substitution to avoid accidental globbing in evaled expressions
11408 no_glob_subst='s/\*/\\\*/g'
11413 # Global variables:
11414 default_ofile=mklib
11415 can_build_shared=yes
11417 # All known linkers require a `.a' archive for static linking (except M$VC,
11418 # which needs '.lib').
11420 ltmain="$ac_aux_dir/ltmain.sh"
11421 ofile="$default_ofile"
11422 with_gnu_ld="$lt_cv_prog_gnu_ld"
11424 if test -n "$ac_tool_prefix"; then
11425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11426 set dummy ${ac_tool_prefix}ar; ac_word=$2
11427 echo "$as_me:$LINENO: checking for $ac_word" >&5
11428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11429 if test "${ac_cv_prog_AR+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 if test -n "$AR"; then
11433 ac_cv_prog_AR="$AR" # Let the user override the test.
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11442 ac_cv_prog_AR="${ac_tool_prefix}ar"
11443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 if test -n "$AR"; then
11453 echo "$as_me:$LINENO: result: $AR" >&5
11454 echo "${ECHO_T}$AR" >&6
11456 echo "$as_me:$LINENO: result: no" >&5
11457 echo "${ECHO_T}no" >&6
11461 if test -z "$ac_cv_prog_AR"; then
11463 # Extract the first word of "ar", so it can be a program name with args.
11464 set dummy ar; ac_word=$2
11465 echo "$as_me:$LINENO: checking for $ac_word" >&5
11466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11467 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 if test -n "$ac_ct_AR"; then
11471 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11480 ac_cv_prog_ac_ct_AR="ar"
11481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11490 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11491 if test -n "$ac_ct_AR"; then
11492 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11493 echo "${ECHO_T}$ac_ct_AR" >&6
11495 echo "$as_me:$LINENO: result: no" >&5
11496 echo "${ECHO_T}no" >&6
11501 AR="$ac_cv_prog_AR"
11504 if test -n "$ac_tool_prefix"; then
11505 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11506 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11507 echo "$as_me:$LINENO: checking for $ac_word" >&5
11508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11509 if test "${ac_cv_prog_RANLIB+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 if test -n "$RANLIB"; then
11513 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11522 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 RANLIB=$ac_cv_prog_RANLIB
11532 if test -n "$RANLIB"; then
11533 echo "$as_me:$LINENO: result: $RANLIB" >&5
11534 echo "${ECHO_T}$RANLIB" >&6
11536 echo "$as_me:$LINENO: result: no" >&5
11537 echo "${ECHO_T}no" >&6
11541 if test -z "$ac_cv_prog_RANLIB"; then
11542 ac_ct_RANLIB=$RANLIB
11543 # Extract the first word of "ranlib", so it can be a program name with args.
11544 set dummy ranlib; ac_word=$2
11545 echo "$as_me:$LINENO: checking for $ac_word" >&5
11546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11547 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 if test -n "$ac_ct_RANLIB"; then
11551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11560 ac_cv_prog_ac_ct_RANLIB="ranlib"
11561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11571 if test -n "$ac_ct_RANLIB"; then
11572 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11573 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11575 echo "$as_me:$LINENO: result: no" >&5
11576 echo "${ECHO_T}no" >&6
11579 RANLIB=$ac_ct_RANLIB
11581 RANLIB="$ac_cv_prog_RANLIB"
11584 if test -n "$ac_tool_prefix"; then
11585 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11586 set dummy ${ac_tool_prefix}strip; ac_word=$2
11587 echo "$as_me:$LINENO: checking for $ac_word" >&5
11588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11589 if test "${ac_cv_prog_STRIP+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 if test -n "$STRIP"; then
11593 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $PATH
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
11601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11611 STRIP=$ac_cv_prog_STRIP
11612 if test -n "$STRIP"; then
11613 echo "$as_me:$LINENO: result: $STRIP" >&5
11614 echo "${ECHO_T}$STRIP" >&6
11616 echo "$as_me:$LINENO: result: no" >&5
11617 echo "${ECHO_T}no" >&6
11621 if test -z "$ac_cv_prog_STRIP"; then
11623 # Extract the first word of "strip", so it can be a program name with args.
11624 set dummy strip; ac_word=$2
11625 echo "$as_me:$LINENO: checking for $ac_word" >&5
11626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11627 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 if test -n "$ac_ct_STRIP"; then
11631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11640 ac_cv_prog_ac_ct_STRIP="strip"
11641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11651 if test -n "$ac_ct_STRIP"; then
11652 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11653 echo "${ECHO_T}$ac_ct_STRIP" >&6
11655 echo "$as_me:$LINENO: result: no" >&5
11656 echo "${ECHO_T}no" >&6
11661 STRIP="$ac_cv_prog_STRIP"
11666 old_CFLAGS="$CFLAGS"
11668 # Set sane defaults for various variables
11669 test -z "$AR" && AR=ar
11670 test -z "$AR_FLAGS" && AR_FLAGS=cru
11671 test -z "$AS" && AS=as
11672 test -z "$CC" && CC=cc
11673 test -z "$LTCC" && LTCC=$CC
11674 test -z "$DLLTOOL" && DLLTOOL=dlltool
11675 test -z "$LD" && LD=ld
11676 test -z "$LN_S" && LN_S="ln -s"
11677 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11678 test -z "$NM" && NM=nm
11679 test -z "$SED" && SED=sed
11680 test -z "$OBJDUMP" && OBJDUMP=objdump
11681 test -z "$RANLIB" && RANLIB=:
11682 test -z "$STRIP" && STRIP=:
11683 test -z "$ac_objext" && ac_objext=o
11685 # Determine commands to create old-style static archives.
11686 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11687 old_postinstall_cmds='chmod 644 $oldlib'
11688 old_postuninstall_cmds=
11690 if test -n "$RANLIB"; then
11693 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11696 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11699 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11702 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11704 # Only perform the check for file, if the check method requires it
11705 case $deplibs_check_method in
11707 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11708 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11709 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11718 lt_save_MAGIC_CMD="$MAGIC_CMD"
11719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11721 for ac_dir in $ac_dummy; do
11723 test -z "$ac_dir" && ac_dir=.
11724 if test -f $ac_dir/${ac_tool_prefix}file; then
11725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11726 if test -n "$file_magic_test_file"; then
11727 case $deplibs_check_method in
11729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11732 $EGREP "$file_magic_regex" > /dev/null; then
11737 *** Warning: the command libtool uses to detect shared libraries,
11738 *** $file_magic_cmd, produces output that libtool cannot recognize.
11739 *** The result is that libtool may fail to recognize shared libraries
11740 *** as such. This will affect the creation of libtool libraries that
11741 *** depend on shared libraries, but programs linked with such libtool
11742 *** libraries will work regardless of this problem. Nevertheless, you
11743 *** may want to report the problem to your system manager and/or to
11744 *** bug-libtool@gnu.org
11754 MAGIC_CMD="$lt_save_MAGIC_CMD"
11759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760 if test -n "$MAGIC_CMD"; then
11761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11762 echo "${ECHO_T}$MAGIC_CMD" >&6
11764 echo "$as_me:$LINENO: result: no" >&5
11765 echo "${ECHO_T}no" >&6
11768 if test -z "$lt_cv_path_MAGIC_CMD"; then
11769 if test -n "$ac_tool_prefix"; then
11770 echo "$as_me:$LINENO: checking for file" >&5
11771 echo $ECHO_N "checking for file... $ECHO_C" >&6
11772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11780 lt_save_MAGIC_CMD="$MAGIC_CMD"
11781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11783 for ac_dir in $ac_dummy; do
11785 test -z "$ac_dir" && ac_dir=.
11786 if test -f $ac_dir/file; then
11787 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11788 if test -n "$file_magic_test_file"; then
11789 case $deplibs_check_method in
11791 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11794 $EGREP "$file_magic_regex" > /dev/null; then
11799 *** Warning: the command libtool uses to detect shared libraries,
11800 *** $file_magic_cmd, produces output that libtool cannot recognize.
11801 *** The result is that libtool may fail to recognize shared libraries
11802 *** as such. This will affect the creation of libtool libraries that
11803 *** depend on shared libraries, but programs linked with such libtool
11804 *** libraries will work regardless of this problem. Nevertheless, you
11805 *** may want to report the problem to your system manager and/or to
11806 *** bug-libtool@gnu.org
11816 MAGIC_CMD="$lt_save_MAGIC_CMD"
11821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11822 if test -n "$MAGIC_CMD"; then
11823 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11824 echo "${ECHO_T}$MAGIC_CMD" >&6
11826 echo "$as_me:$LINENO: result: no" >&5
11827 echo "${ECHO_T}no" >&6
11840 enable_win32_dll=no
11842 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11843 if test "${enable_libtool_lock+set}" = set; then
11844 enableval="$enable_libtool_lock"
11847 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11850 # Check whether --with-pic or --without-pic was given.
11851 if test "${with_pic+set}" = set; then
11852 withval="$with_pic"
11853 pic_mode="$withval"
11857 test -z "$pic_mode" && pic_mode=default
11859 # Use C for the default configuration in the libtool script
11863 ac_cpp='$CPP $CPPFLAGS'
11864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11869 # Source file extension for C test sources.
11872 # Object file extension for compiled C test sources.
11876 # Code to be used in simple compile tests
11877 lt_simple_compile_test_code="int some_variable = 0;\n"
11879 # Code to be used in simple link tests
11880 lt_simple_link_test_code='int main(){return(0);}\n'
11883 # If no C compiler was specified, use CC.
11886 # Allow CC to be a program name with arguments.
11891 # Check for any special shared library compilation flags.
11894 if test "$GCC" = no; then
11897 lt_prog_cc_shlib='-belf'
11901 if test -n "$lt_prog_cc_shlib"; then
11902 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11903 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11904 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11906 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11907 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11908 lt_cv_prog_cc_can_build_shared=no
11914 # Check to make sure the static flag actually works.
11916 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11917 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11918 if test "${lt_prog_compiler_static_works+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 lt_prog_compiler_static_works=no
11922 save_LDFLAGS="$LDFLAGS"
11923 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11924 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11925 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11926 # The compiler can only warn and ignore the option if not recognized
11927 # So say no if there are warnings
11928 if test -s conftest.err; then
11929 # Append any errors to the config.log.
11930 cat conftest.err 1>&5
11932 lt_prog_compiler_static_works=yes
11936 LDFLAGS="$save_LDFLAGS"
11939 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11940 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11942 if test x"$lt_prog_compiler_static_works" = xyes; then
11945 lt_prog_compiler_static=
11951 lt_prog_compiler_no_builtin_flag=
11953 if test "$GCC" = yes; then
11954 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11957 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11958 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11959 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 lt_cv_prog_compiler_rtti_exceptions=no
11963 ac_outfile=conftest.$ac_objext
11964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11965 lt_compiler_flag="-fno-rtti -fno-exceptions"
11966 # Insert the option either (1) after the last *FLAGS variable, or
11967 # (2) before a word containing "conftest.", or (3) at the end.
11968 # Note that $ac_compile itself does not contain backslashes and begins
11969 # with a dollar sign (not a hyphen), so the echo should work correctly.
11970 # The option is referenced via a variable to avoid confusing sed.
11971 lt_compile=`echo "$ac_compile" | $SED \
11972 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11974 -e 's:$: $lt_compiler_flag:'`
11975 (eval echo "\"\$as_me:11975: $lt_compile\"" >&5)
11976 (eval "$lt_compile" 2>conftest.err)
11978 cat conftest.err >&5
11979 echo "$as_me:11979: \$? = $ac_status" >&5
11980 if (exit $ac_status) && test -s "$ac_outfile"; then
11981 # The compiler can only warn and ignore the option if not recognized
11982 # So say no if there are warnings
11983 if test ! -s conftest.err; then
11984 lt_cv_prog_compiler_rtti_exceptions=yes
11990 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11991 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11993 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11994 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12001 lt_prog_compiler_wl=
12002 lt_prog_compiler_pic=
12003 lt_prog_compiler_static=
12005 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12006 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12008 if test "$GCC" = yes; then
12009 lt_prog_compiler_wl='-Wl,'
12010 lt_prog_compiler_static='-static'
12014 # All AIX code is PIC.
12015 if test "$host_cpu" = ia64; then
12016 # AIX 5 now supports IA64 processor
12017 lt_prog_compiler_static='-Bstatic'
12022 # FIXME: we need at least 68020 code to build shared libraries, but
12023 # adding the `-m68020' flag to GCC prevents building anything better,
12025 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12028 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12029 # PIC is the default for these OSes.
12032 mingw* | pw32* | os2*)
12033 # This hack is so that the source file can tell whether it is being
12034 # built for inclusion in a dll (and should export symbols for example).
12035 lt_prog_compiler_pic='-DDLL_EXPORT'
12038 darwin* | rhapsody*)
12039 # PIC is the default on this platform
12040 # Common symbols not allowed in MH_DYLIB files
12041 lt_prog_compiler_pic='-fno-common'
12045 # Just because we use GCC doesn't mean we suddenly get shared libraries
12046 # on systems that don't support them.
12047 lt_prog_compiler_can_build_shared=no
12052 if test -d /usr/nec; then
12053 lt_prog_compiler_pic=-Kconform_pic
12058 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12059 # not for PA HP-UX.
12060 case "$host_cpu" in
12065 lt_prog_compiler_pic='-fPIC'
12071 lt_prog_compiler_pic='-fPIC'
12075 # PORTME Check for flag to pass linker flags through the system compiler.
12078 lt_prog_compiler_wl='-Wl,'
12079 if test "$host_cpu" = ia64; then
12080 # AIX 5 now supports IA64 processor
12081 lt_prog_compiler_static='-Bstatic'
12083 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12087 # PIC is the default on this platform
12088 # Common symbols not allowed in MH_DYLIB files
12089 case "$cc_basename" in
12091 lt_prog_compiler_pic='-qnocommon'
12092 lt_prog_compiler_wl='-Wl,'
12097 mingw* | pw32* | os2*)
12098 # This hack is so that the source file can tell whether it is being
12099 # built for inclusion in a dll (and should export symbols for example).
12100 lt_prog_compiler_pic='-DDLL_EXPORT'
12103 hpux9* | hpux10* | hpux11*)
12104 lt_prog_compiler_wl='-Wl,'
12105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12106 # not for PA HP-UX.
12107 case "$host_cpu" in
12112 lt_prog_compiler_pic='+Z'
12115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12116 lt_prog_compiler_static='${wl}-a ${wl}archive'
12119 irix5* | irix6* | nonstopux*)
12120 lt_prog_compiler_wl='-Wl,'
12121 # PIC (with -KPIC) is the default.
12122 lt_prog_compiler_static='-non_shared'
12126 lt_prog_compiler_pic='-KPIC'
12127 lt_prog_compiler_static='-Bstatic'
12133 lt_prog_compiler_wl='-Wl,'
12134 lt_prog_compiler_pic='-KPIC'
12135 lt_prog_compiler_static='-static'
12138 lt_prog_compiler_wl='-Wl,'
12139 # All Alpha code is PIC.
12140 lt_prog_compiler_static='-non_shared'
12145 osf3* | osf4* | osf5*)
12146 lt_prog_compiler_wl='-Wl,'
12147 # All OSF/1 code is PIC.
12148 lt_prog_compiler_static='-non_shared'
12152 lt_prog_compiler_pic='-Kpic'
12153 lt_prog_compiler_static='-dn'
12157 lt_prog_compiler_wl='-Wl,'
12158 lt_prog_compiler_pic='-KPIC'
12159 lt_prog_compiler_static='-Bstatic'
12163 lt_prog_compiler_wl='-Qoption ld '
12164 lt_prog_compiler_pic='-PIC'
12165 lt_prog_compiler_static='-Bstatic'
12168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12169 lt_prog_compiler_wl='-Wl,'
12170 lt_prog_compiler_pic='-KPIC'
12171 lt_prog_compiler_static='-Bstatic'
12175 if test -d /usr/nec ;then
12176 lt_prog_compiler_pic='-Kconform_pic'
12177 lt_prog_compiler_static='-Bstatic'
12182 lt_prog_compiler_pic='-pic'
12183 lt_prog_compiler_static='-Bstatic'
12187 lt_prog_compiler_can_build_shared=no
12192 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12193 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12196 # Check to make sure the PIC flag actually works.
12198 if test -n "$lt_prog_compiler_pic"; then
12200 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12201 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12202 if test "${lt_prog_compiler_pic_works+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 lt_prog_compiler_pic_works=no
12206 ac_outfile=conftest.$ac_objext
12207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12208 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12209 # Insert the option either (1) after the last *FLAGS variable, or
12210 # (2) before a word containing "conftest.", or (3) at the end.
12211 # Note that $ac_compile itself does not contain backslashes and begins
12212 # with a dollar sign (not a hyphen), so the echo should work correctly.
12213 # The option is referenced via a variable to avoid confusing sed.
12214 lt_compile=`echo "$ac_compile" | $SED \
12215 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12217 -e 's:$: $lt_compiler_flag:'`
12218 (eval echo "\"\$as_me:12218: $lt_compile\"" >&5)
12219 (eval "$lt_compile" 2>conftest.err)
12221 cat conftest.err >&5
12222 echo "$as_me:12222: \$? = $ac_status" >&5
12223 if (exit $ac_status) && test -s "$ac_outfile"; then
12224 # The compiler can only warn and ignore the option if not recognized
12225 # So say no if there are warnings
12226 if test ! -s conftest.err; then
12227 lt_prog_compiler_pic_works=yes
12233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12234 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12236 if test x"$lt_prog_compiler_pic_works" = xyes; then
12237 case $lt_prog_compiler_pic in
12239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12242 lt_prog_compiler_pic=
12243 lt_prog_compiler_can_build_shared=no
12248 # For platforms which do not support PIC, -DPIC is meaningless:
12250 lt_prog_compiler_pic=
12253 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12257 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12258 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12259 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 lt_cv_prog_compiler_c_o=no
12263 $rm -r conftest 2>/dev/null
12267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12269 lt_compiler_flag="-o out/conftest2.$ac_objext"
12270 # Insert the option either (1) after the last *FLAGS variable, or
12271 # (2) before a word containing "conftest.", or (3) at the end.
12272 # Note that $ac_compile itself does not contain backslashes and begins
12273 # with a dollar sign (not a hyphen), so the echo should work correctly.
12274 lt_compile=`echo "$ac_compile" | $SED \
12275 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12277 -e 's:$: $lt_compiler_flag:'`
12278 (eval echo "\"\$as_me:12278: $lt_compile\"" >&5)
12279 (eval "$lt_compile" 2>out/conftest.err)
12281 cat out/conftest.err >&5
12282 echo "$as_me:12282: \$? = $ac_status" >&5
12283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12285 # The compiler can only warn and ignore the option if not recognized
12286 # So say no if there are warnings
12287 if test ! -s out/conftest.err; then
12288 lt_cv_prog_compiler_c_o=yes
12293 # SGI C++ compiler will create directory out/ii_files/ for
12294 # template instantiation
12295 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12296 $rm out/* && rmdir out
12302 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12303 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12306 hard_links="nottested"
12307 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12308 # do not overwrite the value of need_locks provided by the user
12309 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12310 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12315 ln conftest.a conftest.b 2>&5 || hard_links=no
12316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12317 echo "$as_me:$LINENO: result: $hard_links" >&5
12318 echo "${ECHO_T}$hard_links" >&6
12319 if test "$hard_links" = no; then
12320 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12321 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12328 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12329 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12332 allow_undefined_flag=
12333 enable_shared_with_static_runtimes=no
12335 archive_expsym_cmds=
12336 old_archive_From_new_cmds=
12337 old_archive_from_expsyms_cmds=
12338 export_dynamic_flag_spec=
12339 whole_archive_flag_spec=
12340 thread_safe_flag_spec=
12341 hardcode_libdir_flag_spec=
12342 hardcode_libdir_flag_spec_ld=
12343 hardcode_libdir_separator=
12345 hardcode_minus_L=no
12346 hardcode_shlibpath_var=unsupported
12347 link_all_deplibs=unknown
12348 hardcode_automatic=no
12350 module_expsym_cmds=
12351 always_export_symbols=no
12352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12353 # include_expsyms should be a list of space-separated symbols to be *always*
12354 # included in the symbol list
12356 # exclude_expsyms can be an extended regexp of symbols to exclude
12357 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12358 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12359 # as well as any symbol that contains `d'.
12360 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12361 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12362 # platforms (ab)use it in PIC code, but their linkers get confused if
12363 # the symbol is explicitly referenced. Since portable code cannot
12364 # rely on this symbol name, it's probably fine to never include it in
12365 # preloaded symbol tables.
12366 extract_expsyms_cmds=
12369 cygwin* | mingw* | pw32*)
12370 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12371 # When not using gcc, we currently assume that we are using
12372 # Microsoft Visual C++.
12373 if test "$GCC" != yes; then
12383 if test "$with_gnu_ld" = yes; then
12384 # If archive_cmds runs LD, not CC, wlarc should be empty
12387 # See if GNU ld supports shared libraries.
12389 aix3* | aix4* | aix5*)
12390 # On AIX/PPC, the GNU linker is very broken
12391 if test "$host_cpu" != ia64; then
12395 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12396 *** to be unable to reliably create shared libraries on AIX.
12397 *** Therefore, libtool is disabling shared libraries support. If you
12398 *** really care for shared libraries, you may want to modify your PATH
12399 *** so that a non-GNU linker is found, and then restart.
12406 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)'
12407 hardcode_libdir_flag_spec='-L$libdir'
12408 hardcode_minus_L=yes
12410 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12411 # that the semantics of dynamic libraries on AmigaOS, at least up
12412 # to version 4, is to share data among multiple programs linked
12413 # with the same dynamic library. Since this doesn't match the
12414 # behavior of shared libraries on other platforms, we can't use
12420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12421 allow_undefined_flag=unsupported
12422 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12423 # support --undefined. This deserves some investigation. FIXME
12424 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12430 cygwin* | mingw* | pw32*)
12431 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12432 # as there is no search path for DLLs.
12433 hardcode_libdir_flag_spec='-L$libdir'
12434 allow_undefined_flag=unsupported
12435 always_export_symbols=no
12436 enable_shared_with_static_runtimes=yes
12437 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12439 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12441 # If the export-symbols file already is a .def file (1st line
12442 # is EXPORTS), use it as is; otherwise, prepend...
12443 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12444 cp $export_symbols $output_objdir/$soname.def;
12446 echo EXPORTS > $output_objdir/$soname.def;
12447 cat $export_symbols >> $output_objdir/$soname.def;
12449 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12457 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12466 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12471 *** create shared libraries on Solaris systems. Therefore, libtool
12472 *** is disabling shared libraries support. We urge you to upgrade GNU
12473 *** binutils to release 2.9.1 or newer. Another option is to modify
12474 *** your PATH or compiler configuration so that the native linker is
12475 *** used, and then restart.
12478 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12480 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12487 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12489 hardcode_direct=yes
12490 hardcode_shlibpath_var=no
12494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12495 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12496 archive_cmds="$tmp_archive_cmds"
12497 supports_anon_versioning=no
12498 case `$LD -v 2>/dev/null` in
12499 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12502 *\ 2.11.*) ;; # other 2.11 versions
12503 *) supports_anon_versioning=yes ;;
12505 if test $supports_anon_versioning = yes; then
12506 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12508 $echo "local: *; };" >> $output_objdir/$libname.ver~
12509 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12511 archive_expsym_cmds="$tmp_archive_cmds"
12519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12521 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12528 if test "$ld_shlibs" = yes; then
12529 runpath_var=LD_RUN_PATH
12530 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12531 export_dynamic_flag_spec='${wl}--export-dynamic'
12532 # ancient GNU ld didn't support --whole-archive et. al.
12533 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12534 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12536 whole_archive_flag_spec=
12540 # PORTME fill in a description of your system's linker (not GNU ld)
12543 allow_undefined_flag=unsupported
12544 always_export_symbols=yes
12545 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'
12546 # Note: this linker hardcodes the directories in LIBPATH if there
12547 # are no directories specified by -L.
12548 hardcode_minus_L=yes
12549 if test "$GCC" = yes && test -z "$link_static_flag"; then
12550 # Neither direct hardcoding nor static linking is supported with a
12552 hardcode_direct=unsupported
12557 if test "$host_cpu" = ia64; then
12558 # On IA64, the linker does run time linking by default, so we don't
12559 # have to do anything special.
12560 aix_use_runtimelinking=no
12561 exp_sym_flag='-Bexport'
12564 # If we're using GNU nm, then we don't want the "-C" option.
12565 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12566 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12567 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'
12569 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'
12571 aix_use_runtimelinking=no
12573 # Test if we are trying to use run time linking or normal
12574 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12575 # need to do runtime linking.
12576 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12577 for ld_flag in $LDFLAGS; do
12578 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12579 aix_use_runtimelinking=yes
12585 exp_sym_flag='-bexport'
12586 no_entry_flag='-bnoentry'
12589 # When large executables or shared objects are built, AIX ld can
12590 # have problems creating the table of contents. If linking a library
12591 # or program results in "error TOC overflow" add -mminimal-toc to
12592 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12593 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12596 hardcode_direct=yes
12597 hardcode_libdir_separator=':'
12598 link_all_deplibs=yes
12600 if test "$GCC" = yes; then
12601 case $host_os in aix4.012|aix4.012.*)
12602 # We only want to do this on AIX 4.2 and lower, the check
12603 # below for broken collect2 doesn't work under 4.3+
12604 collect2name=`${CC} -print-prog-name=collect2`
12605 if test -f "$collect2name" && \
12606 strings "$collect2name" | grep resolve_lib_name >/dev/null
12608 # We have reworked collect2
12609 hardcode_direct=yes
12611 # We have old collect2
12612 hardcode_direct=unsupported
12613 # It fails to find uninstalled libraries when the uninstalled
12614 # path is not listed in the libpath. Setting hardcode_minus_L
12615 # to unsupported forces relinking
12616 hardcode_minus_L=yes
12617 hardcode_libdir_flag_spec='-L$libdir'
12618 hardcode_libdir_separator=
12621 shared_flag='-shared'
12624 if test "$host_cpu" = ia64; then
12625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12626 # chokes on -Wl,-G. The following line is correct:
12629 if test "$aix_use_runtimelinking" = yes; then
12630 shared_flag='${wl}-G'
12632 shared_flag='${wl}-bM:SRE'
12637 # It seems that -bexpall does not export symbols beginning with
12638 # underscore (_), so it is better to generate a list of symbols to export.
12639 always_export_symbols=yes
12640 if test "$aix_use_runtimelinking" = yes; then
12641 # Warning - without using the other runtime loading flags (-brtl),
12642 # -berok will link without error, but may produce a broken library.
12643 allow_undefined_flag='-berok'
12644 # Determine the default libpath from the value encoded in an empty executable.
12645 cat >conftest.$ac_ext <<_ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12660 rm -f conftest.$ac_objext conftest$ac_exeext
12661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12662 (eval $ac_link) 2>conftest.er1
12664 grep -v '^ *+' conftest.er1 >conftest.err
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try='test -z "$ac_c_werror_flag"
12670 || test ! -s conftest.err'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } &&
12676 { ac_try='test -s conftest$ac_exeext'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12685 # Check for a 64-bit object if we didn't find anything.
12686 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; }
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12693 rm -f conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12697 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12698 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"
12700 if test "$host_cpu" = ia64; then
12701 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12702 allow_undefined_flag="-z nodefs"
12703 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"
12705 # Determine the default libpath from the value encoded in an empty executable.
12706 cat >conftest.$ac_ext <<_ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12723 (eval $ac_link) 2>conftest.er1
12725 grep -v '^ *+' conftest.er1 >conftest.err
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -z "$ac_c_werror_flag"
12731 || test ! -s conftest.err'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; } &&
12737 { ac_try='test -s conftest$ac_exeext'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
12744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12746 # Check for a 64-bit object if we didn't find anything.
12747 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; }
12750 echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12754 rm -f conftest.err conftest.$ac_objext \
12755 conftest$ac_exeext conftest.$ac_ext
12756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12758 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12759 # Warning - without using the other run time loading flags,
12760 # -berok will link without error, but may produce a broken library.
12761 no_undefined_flag=' ${wl}-bernotok'
12762 allow_undefined_flag=' ${wl}-berok'
12763 # -bexpall does not export symbols beginning with underscore (_)
12764 always_export_symbols=yes
12765 # Exported symbols can be pulled into shared objects from archives
12766 whole_archive_flag_spec=' '
12767 archive_cmds_need_lc=yes
12768 # This is similar to how AIX traditionally builds it's shared libraries.
12769 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'
12775 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)'
12776 hardcode_libdir_flag_spec='-L$libdir'
12777 hardcode_minus_L=yes
12778 # see comment about different semantics on the GNU ld section
12783 export_dynamic_flag_spec=-rdynamic
12786 cygwin* | mingw* | pw32*)
12787 # When not using gcc, we currently assume that we are using
12788 # Microsoft Visual C++.
12789 # hardcode_libdir_flag_spec is actually meaningless, as there is
12790 # no search path for DLLs.
12791 hardcode_libdir_flag_spec=' '
12792 allow_undefined_flag=unsupported
12793 # Tell ltmain to make .lib files, not .a files.
12795 # Tell ltmain to make .dll files, not .so files.
12797 # FIXME: Setting linknames here is a bad hack.
12798 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12799 # The linker will automatically build a .lib file if we build a DLL.
12800 old_archive_From_new_cmds='true'
12801 # FIXME: Should let the user specify the lib program.
12802 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12803 fix_srcfile_path='`cygpath -w "$srcfile"`'
12804 enable_shared_with_static_runtimes=yes
12807 darwin* | rhapsody*)
12809 rhapsody* | darwin1.[012])
12810 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12813 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12814 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12816 case ${MACOSX_DEPLOYMENT_TARGET} in
12818 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12821 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12827 archive_cmds_need_lc=no
12829 hardcode_automatic=yes
12830 hardcode_shlibpath_var=unsupported
12831 whole_archive_flag_spec=''
12832 link_all_deplibs=yes
12833 if test "$GCC" = yes ; then
12834 output_verbose_link_cmd='echo'
12835 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12836 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12837 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12838 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}'
12839 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}'
12841 case "$cc_basename" in
12843 output_verbose_link_cmd='echo'
12844 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12845 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12846 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12847 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}'
12848 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}'
12858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12859 hardcode_libdir_flag_spec='-L$libdir'
12860 hardcode_shlibpath_var=no
12867 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12868 # support. Future versions do this automatically, but an explicit c++rt0.o
12869 # does not break anything, and helps significantly (at the cost of a little
12872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12873 hardcode_libdir_flag_spec='-R$libdir'
12874 hardcode_direct=yes
12875 hardcode_shlibpath_var=no
12878 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12881 hardcode_direct=yes
12882 hardcode_minus_L=yes
12883 hardcode_shlibpath_var=no
12886 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12887 freebsd* | kfreebsd*-gnu)
12888 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12889 hardcode_libdir_flag_spec='-R$libdir'
12890 hardcode_direct=yes
12891 hardcode_shlibpath_var=no
12895 if test "$GCC" = yes; then
12896 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'
12898 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'
12900 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12901 hardcode_libdir_separator=:
12902 hardcode_direct=yes
12904 # hardcode_minus_L: Not really in the search PATH,
12905 # but as the default location of the library.
12906 hardcode_minus_L=yes
12907 export_dynamic_flag_spec='${wl}-E'
12911 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12912 case "$host_cpu" in
12914 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12921 case "$host_cpu" in
12923 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12926 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12930 if test "$with_gnu_ld" = no; then
12931 case "$host_cpu" in
12933 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12934 hardcode_libdir_flag_spec_ld='+b $libdir'
12935 hardcode_libdir_separator=:
12937 hardcode_shlibpath_var=no
12940 hardcode_libdir_flag_spec='-L$libdir'
12942 hardcode_shlibpath_var=no
12944 # hardcode_minus_L: Not really in the search PATH,
12945 # but as the default location of the library.
12946 hardcode_minus_L=yes
12949 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12950 hardcode_libdir_separator=:
12951 hardcode_direct=yes
12952 export_dynamic_flag_spec='${wl}-E'
12954 # hardcode_minus_L: Not really in the search PATH,
12955 # but as the default location of the library.
12956 hardcode_minus_L=yes
12962 irix5* | irix6* | nonstopux*)
12963 if test "$GCC" = yes; then
12964 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'
12966 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'
12967 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12970 hardcode_libdir_separator=:
12971 link_all_deplibs=yes
12975 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12978 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12980 hardcode_libdir_flag_spec='-R$libdir'
12981 hardcode_direct=yes
12982 hardcode_shlibpath_var=no
12986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12987 hardcode_direct=yes
12988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12989 hardcode_libdir_separator=:
12990 hardcode_shlibpath_var=no
12994 hardcode_direct=yes
12995 hardcode_shlibpath_var=no
12996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12997 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12998 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13000 export_dynamic_flag_spec='${wl}-E'
13003 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13005 hardcode_libdir_flag_spec='-R$libdir'
13008 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13009 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13016 hardcode_libdir_flag_spec='-L$libdir'
13017 hardcode_minus_L=yes
13018 allow_undefined_flag=unsupported
13019 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'
13020 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13024 if test "$GCC" = yes; then
13025 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13026 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'
13028 allow_undefined_flag=' -expect_unresolved \*'
13029 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'
13031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13032 hardcode_libdir_separator=:
13035 osf4* | osf5*) # as osf3* with the addition of -msym flag
13036 if test "$GCC" = yes; then
13037 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13038 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'
13039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13041 allow_undefined_flag=' -expect_unresolved \*'
13042 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'
13043 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13044 $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'
13046 # Both c and cxx compiler support -rpath directly
13047 hardcode_libdir_flag_spec='-rpath $libdir'
13049 hardcode_libdir_separator=:
13053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054 hardcode_shlibpath_var=no
13055 export_dynamic_flag_spec='${wl}-Bexport'
13056 runpath_var=LD_RUN_PATH
13057 hardcode_runpath_var=yes
13061 no_undefined_flag=' -z text'
13062 if test "$GCC" = yes; then
13063 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13064 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13065 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13067 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13068 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13071 hardcode_libdir_flag_spec='-R$libdir'
13072 hardcode_shlibpath_var=no
13074 solaris2.[0-5] | solaris2.[0-5].*) ;;
13075 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13076 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13078 link_all_deplibs=yes
13082 if test "x$host_vendor" = xsequent; then
13083 # Use $CC to link under sequent, because it throws in some extra .o
13084 # files that make .init and .fini sections work.
13085 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13087 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13089 hardcode_libdir_flag_spec='-L$libdir'
13090 hardcode_direct=yes
13091 hardcode_minus_L=yes
13092 hardcode_shlibpath_var=no
13096 case $host_vendor in
13098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13099 hardcode_direct=yes # is this really true???
13102 ## LD is ld it makes a PLAMLIB
13103 ## CC just makes a GrossModule.
13104 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13105 reload_cmds='$CC -r -o $output$reload_objs'
13109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13110 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13113 runpath_var='LD_RUN_PATH'
13114 hardcode_shlibpath_var=no
13118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13119 hardcode_shlibpath_var=no
13120 export_dynamic_flag_spec='-Bexport'
13124 if test -d /usr/nec; then
13125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13126 hardcode_shlibpath_var=no
13127 runpath_var=LD_RUN_PATH
13128 hardcode_runpath_var=yes
13134 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13135 hardcode_direct=yes
13136 hardcode_minus_L=no
13137 hardcode_shlibpath_var=no
13138 hardcode_runpath_var=yes
13139 runpath_var=LD_RUN_PATH
13142 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13143 no_undefined_flag='${wl}-z ${wl}text'
13144 if test "$GCC" = yes; then
13145 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13147 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13149 runpath_var='LD_RUN_PATH'
13150 hardcode_shlibpath_var=no
13154 no_undefined_flag=' -z text'
13155 # $CC -shared without GNU ld will not create a library from C++
13156 # object files and a static libstdc++, better avoid it by now
13157 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13158 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13160 hardcode_libdir_flag_spec=
13161 hardcode_shlibpath_var=no
13162 runpath_var='LD_RUN_PATH'
13166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13167 hardcode_libdir_flag_spec='-L$libdir'
13168 hardcode_shlibpath_var=no
13177 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13178 echo "${ECHO_T}$ld_shlibs" >&6
13179 test "$ld_shlibs" = no && can_build_shared=no
13181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13182 if test "$GCC" = yes; then
13183 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13187 # Do we need to explicitly link libc?
13189 case "x$archive_cmds_need_lc" in
13191 # Assume -lc should be added
13192 archive_cmds_need_lc=yes
13194 if test "$enable_shared" = yes && test "$GCC" = yes; then
13195 case $archive_cmds in
13197 # FIXME: we may have to deal with multi-command sequences.
13200 # Test whether the compiler implicitly links with -lc since on some
13201 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13202 # to ld, don't add -lc before -lgcc.
13203 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13204 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13206 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } 2>conftest.err; then
13215 libobjs=conftest.$ac_objext
13217 wl=$lt_prog_compiler_wl
13223 lt_save_allow_undefined_flag=$allow_undefined_flag
13224 allow_undefined_flag=
13225 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13226 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }
13231 archive_cmds_need_lc=no
13233 archive_cmds_need_lc=yes
13235 allow_undefined_flag=$lt_save_allow_undefined_flag
13237 cat conftest.err 1>&5
13240 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13241 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13248 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13249 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13250 library_names_spec=
13251 libname_spec='lib$name'
13255 postuninstall_cmds=
13259 shlibpath_overrides_runpath=unknown
13261 dynamic_linker="$host_os ld.so"
13262 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13263 if test "$GCC" = yes; then
13264 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13265 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13266 # if the path contains ";" then we assume it to be the separator
13267 # otherwise default to the standard path separator (i.e. ":") - it is
13268 # assumed that no part of a normal pathname contains ";" but that should
13269 # okay in the real world where ";" in dirpaths is itself problematic.
13270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13275 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13277 need_lib_prefix=unknown
13278 hardcode_into_libs=no
13280 # when you set need_version to no, make sure it does not cause -set_version
13281 # flags to be left without arguments
13282 need_version=unknown
13287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13288 shlibpath_var=LIBPATH
13290 # AIX 3 has no versioning support, so we append a major version to the name.
13291 soname_spec='${libname}${release}${shared_ext}$major'
13298 hardcode_into_libs=yes
13299 if test "$host_cpu" = ia64; then
13300 # AIX 5 supports IA64
13301 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13302 shlibpath_var=LD_LIBRARY_PATH
13304 # With GCC up to 2.95.x, collect2 would create an import file
13305 # for dependence libraries. The import file would start with
13306 # the line `#! .'. This would cause the generated library to
13307 # depend on `.', always an invalid library. This was fixed in
13308 # development snapshots of GCC prior to 3.0.
13310 aix4 | aix4.[01] | aix4.[01].*)
13311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13313 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13316 can_build_shared=no
13320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13321 # soname into executable. Probably we can add versioning support to
13322 # collect2, so additional links can be useful in future.
13323 if test "$aix_use_runtimelinking" = yes; then
13324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13325 # instead of lib<name>.a to let people know that these are not
13326 # typical AIX shared libraries.
13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13329 # We preserve .a as extension for shared libraries through AIX4.2
13330 # and later when we are not doing run time linking.
13331 library_names_spec='${libname}${release}.a $libname.a'
13332 soname_spec='${libname}${release}${shared_ext}$major'
13334 shlibpath_var=LIBPATH
13339 library_names_spec='$libname.ixlibrary $libname.a'
13340 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13341 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'
13345 library_names_spec='${libname}${shared_ext}'
13346 dynamic_linker="$host_os ld.so"
13347 shlibpath_var=LIBRARY_PATH
13353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354 soname_spec='${libname}${release}${shared_ext}$major'
13355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13359 # the default ld.so.conf also contains /usr/contrib/lib and
13360 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13361 # libtool to hard-code these into programs
13364 cygwin* | mingw* | pw32*)
13365 version_type=windows
13370 case $GCC,$host_os in
13371 yes,cygwin* | yes,mingw* | yes,pw32*)
13372 library_names_spec='$libname.dll.a'
13373 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13374 postinstall_cmds='base_file=`basename \${file}`~
13375 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13376 dldir=$destdir/`dirname \$dlpath`~
13377 test -d \$dldir || mkdir -p \$dldir~
13378 $install_prog $dir/$dlname \$dldir/$dlname'
13379 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13380 dlpath=$dir/\$dldll~
13382 shlibpath_overrides_runpath=yes
13386 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13387 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13388 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13391 # MinGW DLLs use traditional 'lib' prefix
13392 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13394 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13395 # It is most probably a Windows format PATH printed by
13396 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13397 # path with ; separators, and with drive letters. We can handle the
13398 # drive letters (cygwin fileutils understands them), so leave them,
13399 # especially as we might pass files found there to a mingw objdump,
13400 # which wouldn't understand a cygwinified path. Ahh.
13401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13407 # pw32 DLLs use 'pw' prefix rather than 'lib'
13408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13414 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13417 dynamic_linker='Win32 ld.exe'
13418 # FIXME: first we should search . and the directory the executable is in
13422 darwin* | rhapsody*)
13423 dynamic_linker="$host_os dyld"
13424 version_type=darwin
13427 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13428 soname_spec='${libname}${release}${major}$shared_ext'
13429 shlibpath_overrides_runpath=yes
13430 shlibpath_var=DYLD_LIBRARY_PATH
13431 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13432 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13433 if test "$GCC" = yes; then
13434 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"`
13436 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13446 soname_spec='${libname}${release}${shared_ext}$major'
13447 shlibpath_var=LD_LIBRARY_PATH
13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13459 soname_spec='${libname}${release}${shared_ext}$major'
13460 shlibpath_var=LD_LIBRARY_PATH
13461 shlibpath_overrides_runpath=no
13462 hardcode_into_libs=yes
13463 dynamic_linker='GNU ld.so'
13467 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13468 version_type=freebsd-$objformat
13469 case $version_type in
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13480 shlibpath_var=LD_LIBRARY_PATH
13483 shlibpath_overrides_runpath=yes
13485 freebsd3.01* | freebsdelf3.01*)
13486 shlibpath_overrides_runpath=yes
13487 hardcode_into_libs=yes
13490 shlibpath_overrides_runpath=no
13491 hardcode_into_libs=yes
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13501 soname_spec='${libname}${release}${shared_ext}$major'
13502 shlibpath_var=LD_LIBRARY_PATH
13503 hardcode_into_libs=yes
13506 hpux9* | hpux10* | hpux11*)
13507 # Give a soname corresponding to the major version so that dld.sl refuses to
13508 # link against other versions.
13512 case "$host_cpu" in
13515 hardcode_into_libs=yes
13516 dynamic_linker="$host_os dld.so"
13517 shlibpath_var=LD_LIBRARY_PATH
13518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520 soname_spec='${libname}${release}${shared_ext}$major'
13521 if test "X$HPUX_IA64_MODE" = X32; then
13522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13524 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13530 hardcode_into_libs=yes
13531 dynamic_linker="$host_os dld.sl"
13532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13535 soname_spec='${libname}${release}${shared_ext}$major'
13536 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13541 dynamic_linker="$host_os dld.sl"
13542 shlibpath_var=SHLIB_PATH
13543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545 soname_spec='${libname}${release}${shared_ext}$major'
13548 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13549 postinstall_cmds='chmod 555 $lib'
13552 irix5* | irix6* | nonstopux*)
13554 nonstopux*) version_type=nonstopux ;;
13556 if test "$lt_cv_prog_gnu_ld" = yes; then
13564 soname_spec='${libname}${release}${shared_ext}$major'
13565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13567 irix5* | nonstopux*)
13568 libsuff= shlibsuff=
13571 case $LD in # libtool.m4 will add one of these switches to LD
13572 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13573 libsuff= shlibsuff= libmagic=32-bit;;
13574 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13575 libsuff=32 shlibsuff=N32 libmagic=N32;;
13576 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13577 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13578 *) libsuff= shlibsuff= libmagic=never-match;;
13582 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13583 shlibpath_overrides_runpath=no
13584 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13585 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13586 hardcode_into_libs=yes
13589 # No shared lib support for Linux oldld, aout, or coff.
13590 linux*oldld* | linux*aout* | linux*coff*)
13594 # This must be Linux ELF.
13599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600 soname_spec='${libname}${release}${shared_ext}$major'
13601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13602 shlibpath_var=LD_LIBRARY_PATH
13603 shlibpath_overrides_runpath=no
13604 # This implies no fast_install, which is unacceptable.
13605 # Some rework will be needed to allow for fast_install
13606 # before this can be enabled.
13607 hardcode_into_libs=yes
13609 # Append ld.so.conf contents to the search path
13610 if test -f /etc/ld.so.conf; then
13611 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13612 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13615 # We used to test for /lib/ld.so.1 and disable shared libraries on
13616 # powerpc, because MkLinux only supported shared libraries with the
13617 # GNU dynamic linker. Since this was broken with cross compilers,
13618 # most powerpc-linux boxes support dynamic linking these days and
13619 # people can always --disable-shared, the test was removed, and we
13620 # assume the GNU/Linux dynamic linker is in use.
13621 dynamic_linker='GNU/Linux ld.so'
13628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13629 soname_spec='${libname}${release}${shared_ext}$major'
13630 shlibpath_var=LD_LIBRARY_PATH
13631 shlibpath_overrides_runpath=no
13632 hardcode_into_libs=yes
13633 dynamic_linker='GNU ld.so'
13640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13643 dynamic_linker='NetBSD (a.out) ld.so'
13645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13646 soname_spec='${libname}${release}${shared_ext}$major'
13647 dynamic_linker='NetBSD ld.elf_so'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=yes
13651 hardcode_into_libs=yes
13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13657 shlibpath_var=LD_LIBRARY_PATH
13658 shlibpath_overrides_runpath=yes
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666 soname_spec='${libname}${release}${shared_ext}$major'
13667 shlibpath_var=LD_LIBRARY_PATH
13668 shlibpath_overrides_runpath=yes
13675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13677 shlibpath_var=LD_LIBRARY_PATH
13678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13680 openbsd2.[89] | openbsd2.[89].*)
13681 shlibpath_overrides_runpath=no
13684 shlibpath_overrides_runpath=yes
13688 shlibpath_overrides_runpath=yes
13693 libname_spec='$name'
13696 library_names_spec='$libname${shared_ext} $libname.a'
13697 dynamic_linker='OS/2 ld.exe'
13698 shlibpath_var=LIBPATH
13701 osf3* | osf4* | osf5*)
13705 soname_spec='${libname}${release}${shared_ext}$major'
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707 shlibpath_var=LD_LIBRARY_PATH
13708 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13709 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13714 soname_spec='${libname}${release}${shared_ext}$major'
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716 shlibpath_var=LD_LIBRARY_PATH
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724 soname_spec='${libname}${release}${shared_ext}$major'
13725 shlibpath_var=LD_LIBRARY_PATH
13726 shlibpath_overrides_runpath=yes
13727 hardcode_into_libs=yes
13728 # ldd complains unless libraries are executable
13729 postinstall_cmds='chmod +x $lib'
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13735 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 shlibpath_overrides_runpath=yes
13738 if test "$with_gnu_ld" = yes; then
13744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747 soname_spec='${libname}${release}${shared_ext}$major'
13748 shlibpath_var=LD_LIBRARY_PATH
13749 case $host_vendor in
13751 shlibpath_overrides_runpath=no
13753 export_dynamic_flag_spec='${wl}-Blargedynsym'
13754 runpath_var=LD_RUN_PATH
13762 shlibpath_overrides_runpath=no
13763 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13769 if test -d /usr/nec ;then
13771 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13772 soname_spec='$libname${shared_ext}.$major'
13773 shlibpath_var=LD_LIBRARY_PATH
13779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780 soname_spec='${libname}${release}${shared_ext}$major'
13781 shlibpath_var=LD_LIBRARY_PATH
13788 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13789 echo "${ECHO_T}$dynamic_linker" >&6
13790 test "$dynamic_linker" = no && can_build_shared=no
13792 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13793 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13795 if test -n "$hardcode_libdir_flag_spec" || \
13796 test -n "$runpath_var" || \
13797 test "X$hardcode_automatic" = "Xyes" ; then
13799 # We can hardcode non-existant directories.
13800 if test "$hardcode_direct" != no &&
13801 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13802 # have to relink, otherwise we might link with an installed library
13803 # when we should be linking with a yet-to-be-installed one
13804 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13805 test "$hardcode_minus_L" != no; then
13806 # Linking always hardcodes the temporary library directory.
13807 hardcode_action=relink
13809 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13810 hardcode_action=immediate
13813 # We cannot hardcode anything, or else we can only hardcode existing
13815 hardcode_action=unsupported
13817 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13818 echo "${ECHO_T}$hardcode_action" >&6
13820 if test "$hardcode_action" = relink; then
13821 # Fast installation is not supported
13822 enable_fast_install=no
13823 elif test "$shlibpath_overrides_runpath" = yes ||
13824 test "$enable_shared" = no; then
13825 # Fast installation is not necessary
13826 enable_fast_install=needless
13831 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13832 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13833 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13834 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13835 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13836 echo "$as_me:$LINENO: result: yes" >&5
13837 echo "${ECHO_T}yes" >&6
13839 # FIXME - insert some real tests, host_os isn't really good enough
13842 if test -n "$STRIP" ; then
13843 striplib="$STRIP -x"
13844 echo "$as_me:$LINENO: result: yes" >&5
13845 echo "${ECHO_T}yes" >&6
13847 echo "$as_me:$LINENO: result: no" >&5
13848 echo "${ECHO_T}no" >&6
13852 echo "$as_me:$LINENO: result: no" >&5
13853 echo "${ECHO_T}no" >&6
13858 if test "x$enable_dlopen" != xyes; then
13859 enable_dlopen=unknown
13860 enable_dlopen_self=unknown
13861 enable_dlopen_self_static=unknown
13868 lt_cv_dlopen="load_add_on"
13870 lt_cv_dlopen_self=yes
13874 lt_cv_dlopen="LoadLibrary"
13879 lt_cv_dlopen="dlopen"
13884 # if libdl is installed we need to link against it
13885 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13886 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 ac_check_lib_save_LIBS=$LIBS
13892 cat >conftest.$ac_ext <<_ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13899 /* Override any gcc2 internal prototype to avoid an error. */
13903 /* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13916 (eval $ac_link) 2>conftest.er1
13918 grep -v '^ *+' conftest.er1 >conftest.err
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
13923 { ac_try='test -z "$ac_c_werror_flag"
13924 || test ! -s conftest.err'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest$ac_exeext'
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_cv_lib_dl_dlopen=yes
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 ac_cv_lib_dl_dlopen=no
13943 rm -f conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13949 if test $ac_cv_lib_dl_dlopen = yes; then
13950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13953 lt_cv_dlopen="dyld"
13955 lt_cv_dlopen_self=yes
13962 echo "$as_me:$LINENO: checking for shl_load" >&5
13963 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13964 if test "${ac_cv_func_shl_load+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13975 #define shl_load innocuous_shl_load
13977 /* System header to define __stub macros and hopefully few prototypes,
13978 which can conflict with char shl_load (); below.
13979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13980 <limits.h> exists even on freestanding compilers. */
13983 # include <limits.h>
13985 # include <assert.h>
13990 /* Override any gcc2 internal prototype to avoid an error. */
13995 /* We use char because int might match the return type of a gcc2
13996 builtin and then its argument prototype would still apply. */
13998 /* The GNU C library defines this for functions which it implements
13999 to always fail with ENOSYS. Some functions are actually named
14000 something starting with __ and the normal name is an alias. */
14001 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14004 char (*f) () = shl_load;
14013 return f != shl_load;
14018 rm -f conftest.$ac_objext conftest$ac_exeext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14020 (eval $ac_link) 2>conftest.er1
14022 grep -v '^ *+' conftest.er1 >conftest.err
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try='test -s conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_cv_func_shl_load=yes
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_cv_func_shl_load=no
14047 rm -f conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14050 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14051 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14052 if test $ac_cv_func_shl_load = yes; then
14053 lt_cv_dlopen="shl_load"
14055 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14056 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14057 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 ac_check_lib_save_LIBS=$LIBS
14062 cat >conftest.$ac_ext <<_ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14069 /* Override any gcc2 internal prototype to avoid an error. */
14073 /* We use char because int might match the return type of a gcc2
14074 builtin and then its argument prototype would still apply. */
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086 (eval $ac_link) 2>conftest.er1
14088 grep -v '^ *+' conftest.er1 >conftest.err
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
14093 { ac_try='test -z "$ac_c_werror_flag"
14094 || test ! -s conftest.err'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; } &&
14100 { ac_try='test -s conftest$ac_exeext'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }; then
14106 ac_cv_lib_dld_shl_load=yes
14108 echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14111 ac_cv_lib_dld_shl_load=no
14113 rm -f conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 LIBS=$ac_check_lib_save_LIBS
14117 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14118 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14119 if test $ac_cv_lib_dld_shl_load = yes; then
14120 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14122 echo "$as_me:$LINENO: checking for dlopen" >&5
14123 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14124 if test "${ac_cv_func_dlopen+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 cat >conftest.$ac_ext <<_ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14135 #define dlopen innocuous_dlopen
14137 /* System header to define __stub macros and hopefully few prototypes,
14138 which can conflict with char dlopen (); below.
14139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14140 <limits.h> exists even on freestanding compilers. */
14143 # include <limits.h>
14145 # include <assert.h>
14150 /* Override any gcc2 internal prototype to avoid an error. */
14155 /* We use char because int might match the return type of a gcc2
14156 builtin and then its argument prototype would still apply. */
14158 /* The GNU C library defines this for functions which it implements
14159 to always fail with ENOSYS. Some functions are actually named
14160 something starting with __ and the normal name is an alias. */
14161 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14164 char (*f) () = dlopen;
14173 return f != dlopen;
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14180 (eval $ac_link) 2>conftest.er1
14182 grep -v '^ *+' conftest.er1 >conftest.err
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -z "$ac_c_werror_flag"
14188 || test ! -s conftest.err'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest$ac_exeext'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_cv_func_dlopen=yes
14202 echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14205 ac_cv_func_dlopen=no
14207 rm -f conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
14210 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14211 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14212 if test $ac_cv_func_dlopen = yes; then
14213 lt_cv_dlopen="dlopen"
14215 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14216 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 ac_check_lib_save_LIBS=$LIBS
14222 cat >conftest.$ac_ext <<_ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 /* Override any gcc2 internal prototype to avoid an error. */
14233 /* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14246 (eval $ac_link) 2>conftest.er1
14248 grep -v '^ *+' conftest.er1 >conftest.err
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try='test -z "$ac_c_werror_flag"
14254 || test ! -s conftest.err'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest$ac_exeext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_cv_lib_dl_dlopen=yes
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 ac_cv_lib_dl_dlopen=no
14273 rm -f conftest.err conftest.$ac_objext \
14274 conftest$ac_exeext conftest.$ac_ext
14275 LIBS=$ac_check_lib_save_LIBS
14277 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14278 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14279 if test $ac_cv_lib_dl_dlopen = yes; then
14280 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14282 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14283 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14284 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 ac_check_lib_save_LIBS=$LIBS
14288 LIBS="-lsvld $LIBS"
14289 cat >conftest.$ac_ext <<_ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14296 /* Override any gcc2 internal prototype to avoid an error. */
14300 /* We use char because int might match the return type of a gcc2
14301 builtin and then its argument prototype would still apply. */
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313 (eval $ac_link) 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest$ac_exeext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_cv_lib_svld_dlopen=yes
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_cv_lib_svld_dlopen=no
14340 rm -f conftest.err conftest.$ac_objext \
14341 conftest$ac_exeext conftest.$ac_ext
14342 LIBS=$ac_check_lib_save_LIBS
14344 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14345 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14346 if test $ac_cv_lib_svld_dlopen = yes; then
14347 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14349 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14350 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14351 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 ac_check_lib_save_LIBS=$LIBS
14356 cat >conftest.$ac_ext <<_ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14363 /* Override any gcc2 internal prototype to avoid an error. */
14367 /* We use char because int might match the return type of a gcc2
14368 builtin and then its argument prototype would still apply. */
14378 rm -f conftest.$ac_objext conftest$ac_exeext
14379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14380 (eval $ac_link) 2>conftest.er1
14382 grep -v '^ *+' conftest.er1 >conftest.err
14384 cat conftest.err >&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try='test -z "$ac_c_werror_flag"
14388 || test ! -s conftest.err'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; } &&
14394 { ac_try='test -s conftest$ac_exeext'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }; then
14400 ac_cv_lib_dld_dld_link=yes
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14405 ac_cv_lib_dld_dld_link=no
14407 rm -f conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
14409 LIBS=$ac_check_lib_save_LIBS
14411 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14412 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14413 if test $ac_cv_lib_dld_dld_link = yes; then
14414 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14435 if test "x$lt_cv_dlopen" != xno; then
14441 case $lt_cv_dlopen in
14443 save_CPPFLAGS="$CPPFLAGS"
14444 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14446 save_LDFLAGS="$LDFLAGS"
14447 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14450 LIBS="$lt_cv_dlopen_libs $LIBS"
14452 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14453 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14454 if test "${lt_cv_dlopen_self+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 if test "$cross_compiling" = yes; then :
14458 lt_cv_dlopen_self=cross
14460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14461 lt_status=$lt_dlunknown
14462 cat > conftest.$ac_ext <<EOF
14463 #line 14463 "configure"
14464 #include "confdefs.h"
14473 # define LT_DLGLOBAL RTLD_GLOBAL
14476 # define LT_DLGLOBAL DL_GLOBAL
14478 # define LT_DLGLOBAL 0
14482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14483 find out it does not work in some platform. */
14484 #ifndef LT_DLLAZY_OR_NOW
14486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14489 # define LT_DLLAZY_OR_NOW DL_LAZY
14492 # define LT_DLLAZY_OR_NOW RTLD_NOW
14495 # define LT_DLLAZY_OR_NOW DL_NOW
14497 # define LT_DLLAZY_OR_NOW 0
14505 extern "C" void exit (int);
14508 void fnord() { int i=42;}
14511 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14512 int status = $lt_dlunknown;
14516 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14517 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14518 /* dlclose (self); */
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525 (eval $ac_link) 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14529 (./conftest; exit; ) 2>/dev/null
14531 case x$lt_status in
14532 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14533 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14534 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14537 # compilation failed
14538 lt_cv_dlopen_self=no
14545 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14546 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14548 if test "x$lt_cv_dlopen_self" = xyes; then
14549 LDFLAGS="$LDFLAGS $link_static_flag"
14550 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14551 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14552 if test "${lt_cv_dlopen_self_static+set}" = set; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14555 if test "$cross_compiling" = yes; then :
14556 lt_cv_dlopen_self_static=cross
14558 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14559 lt_status=$lt_dlunknown
14560 cat > conftest.$ac_ext <<EOF
14561 #line 14561 "configure"
14562 #include "confdefs.h"
14571 # define LT_DLGLOBAL RTLD_GLOBAL
14574 # define LT_DLGLOBAL DL_GLOBAL
14576 # define LT_DLGLOBAL 0
14580 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14581 find out it does not work in some platform. */
14582 #ifndef LT_DLLAZY_OR_NOW
14584 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14587 # define LT_DLLAZY_OR_NOW DL_LAZY
14590 # define LT_DLLAZY_OR_NOW RTLD_NOW
14593 # define LT_DLLAZY_OR_NOW DL_NOW
14595 # define LT_DLLAZY_OR_NOW 0
14603 extern "C" void exit (int);
14606 void fnord() { int i=42;}
14609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14610 int status = $lt_dlunknown;
14614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14615 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14616 /* dlclose (self); */
14622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623 (eval $ac_link) 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14627 (./conftest; exit; ) 2>/dev/null
14629 case x$lt_status in
14630 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14631 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14632 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14635 # compilation failed
14636 lt_cv_dlopen_self_static=no
14643 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14644 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14647 CPPFLAGS="$save_CPPFLAGS"
14648 LDFLAGS="$save_LDFLAGS"
14653 case $lt_cv_dlopen_self in
14654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14655 *) enable_dlopen_self=unknown ;;
14658 case $lt_cv_dlopen_self_static in
14659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14660 *) enable_dlopen_self_static=unknown ;;
14665 # Report which librarie types wil actually be built
14666 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14667 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14668 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14669 echo "${ECHO_T}$can_build_shared" >&6
14671 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14672 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14673 test "$can_build_shared" = "no" && enable_shared=no
14675 # On AIX, shared libraries and static libraries use the same namespace, and
14676 # are all built from PIC.
14679 test "$enable_shared" = yes && enable_static=no
14680 if test -n "$RANLIB"; then
14681 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14682 postinstall_cmds='$RANLIB $lib'
14687 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14688 test "$enable_shared" = yes && enable_static=no
14692 echo "$as_me:$LINENO: result: $enable_shared" >&5
14693 echo "${ECHO_T}$enable_shared" >&6
14695 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14696 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14697 # Make sure either enable_shared or enable_static is yes.
14698 test "$enable_shared" = yes || enable_static=yes
14699 echo "$as_me:$LINENO: result: $enable_static" >&5
14700 echo "${ECHO_T}$enable_static" >&6
14702 # The else clause should only fire when bootstrapping the
14703 # libtool distribution, otherwise you forgot to ship ltmain.sh
14704 # with your package, and you will get complaints that there are
14705 # no rules to generate ltmain.sh.
14706 if test -f "$ltmain"; then
14707 # See if we are running on zsh, and set the options which allow our commands through
14708 # without removal of \ escapes.
14709 if test -n "${ZSH_VERSION+set}" ; then
14710 setopt NO_GLOB_SUBST
14712 # Now quote all the things that may contain metacharacters while being
14713 # careful not to overquote the AC_SUBSTed values. We take copies of the
14714 # variables and quote the copies for generation of the libtool script.
14715 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14717 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14718 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14719 deplibs_check_method reload_flag reload_cmds need_locks \
14720 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14721 lt_cv_sys_global_symbol_to_c_name_address \
14722 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14723 old_postinstall_cmds old_postuninstall_cmds \
14727 lt_prog_compiler_wl \
14728 lt_prog_compiler_pic \
14729 lt_prog_compiler_static \
14730 lt_prog_compiler_no_builtin_flag \
14731 export_dynamic_flag_spec \
14732 thread_safe_flag_spec \
14733 whole_archive_flag_spec \
14734 enable_shared_with_static_runtimes \
14736 old_archive_from_new_cmds \
14741 compiler_lib_search_path \
14743 archive_expsym_cmds \
14745 postuninstall_cmds \
14746 old_archive_from_expsyms_cmds \
14747 allow_undefined_flag \
14748 no_undefined_flag \
14749 export_symbols_cmds \
14750 hardcode_libdir_flag_spec \
14751 hardcode_libdir_flag_spec_ld \
14752 hardcode_libdir_separator \
14753 hardcode_automatic \
14755 module_expsym_cmds \
14756 lt_cv_prog_compiler_c_o \
14758 include_expsyms; do
14761 old_archive_cmds | \
14762 old_archive_from_new_cmds | \
14764 archive_expsym_cmds | \
14766 module_expsym_cmds | \
14767 old_archive_from_expsyms_cmds | \
14768 export_symbols_cmds | \
14769 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14770 postinstall_cmds | postuninstall_cmds | \
14771 old_postinstall_cmds | old_postuninstall_cmds | \
14772 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14773 # Double-quote double-evaled strings.
14774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14783 *'\$0 --fallback-echo"')
14784 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14788 cfgfile="${ofile}T"
14789 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14791 { echo "$as_me:$LINENO: creating $ofile" >&5
14792 echo "$as_me: creating $ofile" >&6;}
14794 cat <<__EOF__ >> "$cfgfile"
14797 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14798 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14799 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14801 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14802 # Free Software Foundation, Inc.
14804 # This file is part of GNU Libtool:
14805 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14807 # This program is free software; you can redistribute it and/or modify
14808 # it under the terms of the GNU General Public License as published by
14809 # the Free Software Foundation; either version 2 of the License, or
14810 # (at your option) any later version.
14812 # This program is distributed in the hope that it will be useful, but
14813 # WITHOUT ANY WARRANTY; without even the implied warranty of
14814 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14815 # General Public License for more details.
14817 # You should have received a copy of the GNU General Public License
14818 # along with this program; if not, write to the Free Software
14819 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14821 # As a special exception to the GNU General Public License, if you
14822 # distribute this file as part of a program that contains a
14823 # configuration script generated by Autoconf, you may include it under
14824 # the same distribution terms that you use for the rest of that program.
14826 # A sed program that does not truncate output.
14829 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14830 Xsed="$SED -e s/^X//"
14832 # The HP-UX ksh and POSIX shell print the target directory to stdout
14833 # if CDPATH is set.
14834 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14836 # The names of the tagged configurations supported by this script.
14839 # ### BEGIN LIBTOOL CONFIG
14841 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14843 # Shell to use when invoking shell scripts.
14846 # Whether or not to build shared libraries.
14847 build_libtool_libs=$enable_shared
14849 # Whether or not to build static libraries.
14850 build_old_libs=$enable_static
14852 # Whether or not to add -lc for building shared libraries.
14853 build_libtool_need_lc=$archive_cmds_need_lc
14855 # Whether or not to disallow shared libs when runtime libs are static
14856 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14858 # Whether or not to optimize for fast installation.
14859 fast_install=$enable_fast_install
14862 host_alias=$host_alias
14865 # An echo program that does not interpret backslashes.
14870 AR_FLAGS=$lt_AR_FLAGS
14875 # A language-specific compiler.
14878 # Is the compiler the GNU C compiler?
14884 # The linker used to build libraries.
14887 # Whether we need hard or soft links.
14890 # A BSD-compatible nm program.
14893 # A symbol stripping program
14896 # Used to examine libraries when file_magic_cmd begins "file"
14897 MAGIC_CMD=$MAGIC_CMD
14899 # Used on cygwin: DLL creation program.
14902 # Used on cygwin: object dumper.
14905 # Used on cygwin: assembler.
14908 # The name of the directory that contains temporary libtool files.
14911 # How to create reloadable object files.
14912 reload_flag=$lt_reload_flag
14913 reload_cmds=$lt_reload_cmds
14915 # How to pass a linker flag through the compiler.
14916 wl=$lt_lt_prog_compiler_wl
14918 # Object file suffix (normally "o").
14919 objext="$ac_objext"
14921 # Old archive suffix (normally "a").
14924 # Shared library suffix (normally ".so").
14925 shrext_cmds='$shrext_cmds'
14927 # Executable file suffix (normally "").
14930 # Additional compiler flags for building library objects.
14931 pic_flag=$lt_lt_prog_compiler_pic
14934 # What is the maximum length of a command?
14935 max_cmd_len=$lt_cv_sys_max_cmd_len
14937 # Does compiler simultaneously support -c and -o options?
14938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14940 # Must we lock files when doing compilation ?
14941 need_locks=$lt_need_locks
14943 # Do we need the lib prefix for modules?
14944 need_lib_prefix=$need_lib_prefix
14946 # Do we need a version for libraries?
14947 need_version=$need_version
14949 # Whether dlopen is supported.
14950 dlopen_support=$enable_dlopen
14952 # Whether dlopen of programs is supported.
14953 dlopen_self=$enable_dlopen_self
14955 # Whether dlopen of statically linked programs is supported.
14956 dlopen_self_static=$enable_dlopen_self_static
14958 # Compiler flag to prevent dynamic linking.
14959 link_static_flag=$lt_lt_prog_compiler_static
14961 # Compiler flag to turn off builtin functions.
14962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14964 # Compiler flag to allow reflexive dlopens.
14965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14967 # Compiler flag to generate shared objects directly from archives.
14968 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14970 # Compiler flag to generate thread-safe objects.
14971 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14973 # Library versioning type.
14974 version_type=$version_type
14976 # Format of library name prefix.
14977 libname_spec=$lt_libname_spec
14979 # List of archive names. First name is the real one, the rest are links.
14980 # The last name is the one that the linker finds with -lNAME.
14981 library_names_spec=$lt_library_names_spec
14983 # The coded name of the library, if different from the real name.
14984 soname_spec=$lt_soname_spec
14986 # Commands used to build and install an old-style archive.
14988 old_archive_cmds=$lt_old_archive_cmds
14989 old_postinstall_cmds=$lt_old_postinstall_cmds
14990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14992 # Create an old-style archive from a shared archive.
14993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14995 # Create a temporary old-style archive to link instead of a shared archive.
14996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14998 # Commands used to build and install a shared archive.
14999 archive_cmds=$lt_archive_cmds
15000 archive_expsym_cmds=$lt_archive_expsym_cmds
15001 postinstall_cmds=$lt_postinstall_cmds
15002 postuninstall_cmds=$lt_postuninstall_cmds
15004 # Commands used to build a loadable module (assumed same as above if empty)
15005 module_cmds=$lt_module_cmds
15006 module_expsym_cmds=$lt_module_expsym_cmds
15008 # Commands to strip libraries.
15009 old_striplib=$lt_old_striplib
15010 striplib=$lt_striplib
15012 # Dependencies to place before the objects being linked to create a
15014 predep_objects=$lt_predep_objects
15016 # Dependencies to place after the objects being linked to create a
15018 postdep_objects=$lt_postdep_objects
15020 # Dependencies to place before the objects being linked to create a
15022 predeps=$lt_predeps
15024 # Dependencies to place after the objects being linked to create a
15026 postdeps=$lt_postdeps
15028 # The library search path used internally by the compiler when linking
15029 # a shared library.
15030 compiler_lib_search_path=$lt_compiler_lib_search_path
15032 # Method to check whether dependent libraries are shared objects.
15033 deplibs_check_method=$lt_deplibs_check_method
15035 # Command to use when deplibs_check_method == file_magic.
15036 file_magic_cmd=$lt_file_magic_cmd
15038 # Flag that allows shared libraries with undefined symbols to be built.
15039 allow_undefined_flag=$lt_allow_undefined_flag
15041 # Flag that forces no undefined symbols.
15042 no_undefined_flag=$lt_no_undefined_flag
15044 # Commands used to finish a libtool library installation in a directory.
15045 finish_cmds=$lt_finish_cmds
15047 # Same as above, but a single script fragment to be evaled but not shown.
15048 finish_eval=$lt_finish_eval
15050 # Take the output of nm and produce a listing of raw symbols and C names.
15051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15053 # Transform the output of nm in a proper C declaration
15054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15056 # Transform the output of nm in a C name address pair
15057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15059 # This is the shared library runtime path variable.
15060 runpath_var=$runpath_var
15062 # This is the shared library path variable.
15063 shlibpath_var=$shlibpath_var
15065 # Is shlibpath searched before the hard-coded library search path?
15066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15068 # How to hardcode a shared library path into an executable.
15069 hardcode_action=$hardcode_action
15071 # Whether we should hardcode library paths into libraries.
15072 hardcode_into_libs=$hardcode_into_libs
15074 # Flag to hardcode \$libdir into a binary during linking.
15075 # This must work even if \$libdir does not exist.
15076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15078 # If ld is used when linking, flag to hardcode \$libdir into
15079 # a binary during linking. This must work even if \$libdir does
15081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15083 # Whether we need a single -rpath flag with a separated argument.
15084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15086 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15087 # resulting binary.
15088 hardcode_direct=$hardcode_direct
15090 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15091 # resulting binary.
15092 hardcode_minus_L=$hardcode_minus_L
15094 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15095 # the resulting binary.
15096 hardcode_shlibpath_var=$hardcode_shlibpath_var
15098 # Set to yes if building a shared library automatically hardcodes DIR into the library
15099 # and all subsequent libraries and executables linked against it.
15100 hardcode_automatic=$hardcode_automatic
15102 # Variables whose values should be saved in libtool wrapper scripts and
15103 # restored at relink time.
15104 variables_saved_for_relink="$variables_saved_for_relink"
15106 # Whether libtool must link a program against all its dependency libraries.
15107 link_all_deplibs=$link_all_deplibs
15109 # Compile-time system search path for libraries
15110 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15112 # Run-time system search path for libraries
15113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15115 # Fix the shell variable \$srcfile for the compiler.
15116 fix_srcfile_path="$fix_srcfile_path"
15118 # Set to yes if exported symbols are required.
15119 always_export_symbols=$always_export_symbols
15121 # The commands to list exported symbols.
15122 export_symbols_cmds=$lt_export_symbols_cmds
15124 # The commands to extract the exported symbol list from a shared archive.
15125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15127 # Symbols that should not be listed in the preloaded symbols.
15128 exclude_expsyms=$lt_exclude_expsyms
15130 # Symbols that must always be exported.
15131 include_expsyms=$lt_include_expsyms
15133 # ### END LIBTOOL CONFIG
15140 cat <<\EOF >> "$cfgfile"
15142 # AIX sometimes has problems with the GCC collect2 program. For some
15143 # reason, if we set the COLLECT_NAMES environment variable, the problems
15144 # vanish in a puff of smoke.
15145 if test "X${COLLECT_NAMES+set}" != Xset; then
15147 export COLLECT_NAMES
15153 # We use sed instead of cat because bash on DJGPP gets confused if
15154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15155 # text mode, it properly converts lines to CR/LF. This bash problem
15156 # is reportedly fixed, but why not run on old versions too?
15157 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15159 mv -f "$cfgfile" "$ofile" || \
15160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15164 # If there is no Makefile yet, we rely on a make rule to execute
15165 # `config.status --recheck' to rerun these tests and create the
15166 # libtool script then.
15167 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15168 if test -f "$ltmain_in"; then
15169 test -f Makefile && make "$ltmain"
15175 ac_cpp='$CPP $CPPFLAGS'
15176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15183 # Check whether --with-tags or --without-tags was given.
15184 if test "${with_tags+set}" = set; then
15185 withval="$with_tags"
15186 tagnames="$withval"
15189 if test -f "$ltmain" && test -n "$tagnames"; then
15190 if test ! -f "${ofile}"; then
15191 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15192 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15195 if test -z "$LTCC"; then
15196 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15197 if test -z "$LTCC"; then
15198 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15199 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15201 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15202 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15206 # Extract list of available tagged configurations in $ofile.
15207 # Note that this assumes the entire list is on one line.
15208 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15211 for tagname in $tagnames; do
15213 # Check whether tagname contains only valid characters
15214 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15216 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15217 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15218 { (exit 1); exit 1; }; }
15222 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15224 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15225 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15226 { (exit 1); exit 1; }; }
15229 # Update the list of available tags.
15230 if test -n "$tagname"; then
15231 echo appending configuration tag "$tagname" to $ofile
15235 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15236 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15237 (test "X$CXX" != "Xg++"))) ; then
15239 ac_cpp='$CXXCPP $CPPFLAGS'
15240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15247 archive_cmds_need_lc_CXX=no
15248 allow_undefined_flag_CXX=
15249 always_export_symbols_CXX=no
15250 archive_expsym_cmds_CXX=
15251 export_dynamic_flag_spec_CXX=
15252 hardcode_direct_CXX=no
15253 hardcode_libdir_flag_spec_CXX=
15254 hardcode_libdir_flag_spec_ld_CXX=
15255 hardcode_libdir_separator_CXX=
15256 hardcode_minus_L_CXX=no
15257 hardcode_automatic_CXX=no
15259 module_expsym_cmds_CXX=
15260 link_all_deplibs_CXX=unknown
15261 old_archive_cmds_CXX=$old_archive_cmds
15262 no_undefined_flag_CXX=
15263 whole_archive_flag_spec_CXX=
15264 enable_shared_with_static_runtimes_CXX=no
15266 # Dependencies to place before and after the object being linked:
15267 predep_objects_CXX=
15268 postdep_objects_CXX=
15271 compiler_lib_search_path_CXX=
15273 # Source file extension for C++ test sources.
15276 # Object file extension for compiled C++ test sources.
15280 # Code to be used in simple compile tests
15281 lt_simple_compile_test_code="int some_variable = 0;\n"
15283 # Code to be used in simple link tests
15284 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15286 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15288 # If no C compiler was specified, use CC.
15291 # Allow CC to be a program name with arguments.
15295 # Allow CC to be a program name with arguments.
15300 lt_save_with_gnu_ld=$with_gnu_ld
15301 lt_save_path_LD=$lt_cv_path_LD
15302 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15303 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15305 unset lt_cv_prog_gnu_ld
15307 if test -n "${lt_cv_path_LDCXX+set}"; then
15308 lt_cv_path_LD=$lt_cv_path_LDCXX
15310 unset lt_cv_path_LD
15312 test -z "${LDCXX+set}" || LD=$LDCXX
15316 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15318 # We don't want -fno-exception wen compiling C++ code, so set the
15319 # no_builtin_flag separately
15320 if test "$GXX" = yes; then
15321 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15323 lt_prog_compiler_no_builtin_flag_CXX=
15326 if test "$GXX" = yes; then
15327 # Set up default GNU C++ configuration
15330 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15331 if test "${with_gnu_ld+set}" = set; then
15332 withval="$with_gnu_ld"
15333 test "$withval" = no || with_gnu_ld=yes
15338 if test "$GCC" = yes; then
15339 # Check if gcc -print-prog-name=ld gives a path.
15340 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15341 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15344 # gcc leaves a trailing carriage return which upsets mingw
15345 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15347 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15350 # Accept absolute paths.
15352 re_direlt='/[^/][^/]*/\.\./'
15353 # Canonicalize the pathname of ld
15354 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15355 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15356 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15358 test -z "$LD" && LD="$ac_prog"
15361 # If it fails, then pretend we aren't using GCC.
15365 # If it is relative, then search for the first ld in PATH.
15366 with_gnu_ld=unknown
15369 elif test "$with_gnu_ld" = yes; then
15370 echo "$as_me:$LINENO: checking for GNU ld" >&5
15371 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15373 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15374 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15376 if test "${lt_cv_path_LD+set}" = set; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15379 if test -z "$LD"; then
15380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15381 for ac_dir in $PATH; do
15383 test -z "$ac_dir" && ac_dir=.
15384 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15385 lt_cv_path_LD="$ac_dir/$ac_prog"
15386 # Check to see if the program is GNU ld. I'd rather use --version,
15387 # but apparently some GNU ld's only accept -v.
15388 # Break only if it was the GNU/non-GNU ld that we prefer.
15389 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15390 *GNU* | *'with BFD'*)
15391 test "$with_gnu_ld" != no && break
15394 test "$with_gnu_ld" != yes && break
15401 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15405 LD="$lt_cv_path_LD"
15406 if test -n "$LD"; then
15407 echo "$as_me:$LINENO: result: $LD" >&5
15408 echo "${ECHO_T}$LD" >&6
15410 echo "$as_me:$LINENO: result: no" >&5
15411 echo "${ECHO_T}no" >&6
15413 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15414 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15415 { (exit 1); exit 1; }; }
15416 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15417 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15418 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15422 case `$LD -v 2>&1 </dev/null` in
15423 *GNU* | *'with BFD'*)
15424 lt_cv_prog_gnu_ld=yes
15427 lt_cv_prog_gnu_ld=no
15431 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15432 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15433 with_gnu_ld=$lt_cv_prog_gnu_ld
15437 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15438 # archiving commands below assume that GNU ld is being used.
15439 if test "$with_gnu_ld" = yes; then
15440 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15441 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'
15443 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15444 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15446 # If archive_cmds runs LD, not CC, wlarc should be empty
15447 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15448 # investigate it a little bit more. (MM)
15451 # ancient GNU ld didn't support --whole-archive et. al.
15452 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15453 grep 'no-whole-archive' > /dev/null; then
15454 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15456 whole_archive_flag_spec_CXX=
15462 # A generic and very simple default shared library creation
15463 # command for GNU C++ for the case where it uses the native
15464 # linker, instead of GNU ld. If possible, this setting should
15465 # overridden to take advantage of the native linker features on
15466 # the platform it is being used on.
15467 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15470 # Commands to make compiler produce verbose output that lists
15471 # what "hidden" libraries, object files and flags are used when
15472 # linking a shared library.
15473 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15481 # PORTME: fill in a description of your system's C++ link characteristics
15482 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15483 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15487 # FIXME: insert proper C++ library support
15491 if test "$host_cpu" = ia64; then
15492 # On IA64, the linker does run time linking by default, so we don't
15493 # have to do anything special.
15494 aix_use_runtimelinking=no
15495 exp_sym_flag='-Bexport'
15498 aix_use_runtimelinking=no
15500 # Test if we are trying to use run time linking or normal
15501 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15502 # need to do runtime linking.
15503 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15504 for ld_flag in $LDFLAGS; do
15507 aix_use_runtimelinking=yes
15514 exp_sym_flag='-bexport'
15515 no_entry_flag='-bnoentry'
15518 # When large executables or shared objects are built, AIX ld can
15519 # have problems creating the table of contents. If linking a library
15520 # or program results in "error TOC overflow" add -mminimal-toc to
15521 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15522 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15524 archive_cmds_CXX=''
15525 hardcode_direct_CXX=yes
15526 hardcode_libdir_separator_CXX=':'
15527 link_all_deplibs_CXX=yes
15529 if test "$GXX" = yes; then
15530 case $host_os in aix4.012|aix4.012.*)
15531 # We only want to do this on AIX 4.2 and lower, the check
15532 # below for broken collect2 doesn't work under 4.3+
15533 collect2name=`${CC} -print-prog-name=collect2`
15534 if test -f "$collect2name" && \
15535 strings "$collect2name" | grep resolve_lib_name >/dev/null
15537 # We have reworked collect2
15538 hardcode_direct_CXX=yes
15540 # We have old collect2
15541 hardcode_direct_CXX=unsupported
15542 # It fails to find uninstalled libraries when the uninstalled
15543 # path is not listed in the libpath. Setting hardcode_minus_L
15544 # to unsupported forces relinking
15545 hardcode_minus_L_CXX=yes
15546 hardcode_libdir_flag_spec_CXX='-L$libdir'
15547 hardcode_libdir_separator_CXX=
15550 shared_flag='-shared'
15553 if test "$host_cpu" = ia64; then
15554 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15555 # chokes on -Wl,-G. The following line is correct:
15558 if test "$aix_use_runtimelinking" = yes; then
15559 shared_flag='${wl}-G'
15561 shared_flag='${wl}-bM:SRE'
15566 # It seems that -bexpall does not export symbols beginning with
15567 # underscore (_), so it is better to generate a list of symbols to export.
15568 always_export_symbols_CXX=yes
15569 if test "$aix_use_runtimelinking" = yes; then
15570 # Warning - without using the other runtime loading flags (-brtl),
15571 # -berok will link without error, but may produce a broken library.
15572 allow_undefined_flag_CXX='-berok'
15573 # Determine the default libpath from the value encoded in an empty executable.
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591 (eval $ac_link) 2>conftest.er1
15593 grep -v '^ *+' conftest.er1 >conftest.err
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try='test -z "$ac_cxx_werror_flag"
15599 || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest$ac_exeext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15614 # Check for a 64-bit object if we didn't find anything.
15615 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15622 rm -f conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15628 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"
15630 if test "$host_cpu" = ia64; then
15631 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15632 allow_undefined_flag_CXX="-z nodefs"
15633 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"
15635 # Determine the default libpath from the value encoded in an empty executable.
15636 cat >conftest.$ac_ext <<_ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15651 rm -f conftest.$ac_objext conftest$ac_exeext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15653 (eval $ac_link) 2>conftest.er1
15655 grep -v '^ *+' conftest.er1 >conftest.err
15657 cat conftest.err >&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try='test -z "$ac_cxx_werror_flag"
15661 || test ! -s conftest.err'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; } &&
15667 { ac_try='test -s conftest$ac_exeext'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15676 # Check for a 64-bit object if we didn't find anything.
15677 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; }
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15684 rm -f conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
15686 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15688 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15689 # Warning - without using the other run time loading flags,
15690 # -berok will link without error, but may produce a broken library.
15691 no_undefined_flag_CXX=' ${wl}-bernotok'
15692 allow_undefined_flag_CXX=' ${wl}-berok'
15693 # -bexpall does not export symbols beginning with underscore (_)
15694 always_export_symbols_CXX=yes
15695 # Exported symbols can be pulled into shared objects from archives
15696 whole_archive_flag_spec_CXX=' '
15697 archive_cmds_need_lc_CXX=yes
15698 # This is similar to how AIX traditionally builds it's shared libraries.
15699 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'
15704 case $cc_basename in
15706 # FIXME: insert proper C++ library support
15713 cygwin* | mingw* | pw32*)
15714 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15715 # as there is no search path for DLLs.
15716 hardcode_libdir_flag_spec_CXX='-L$libdir'
15717 allow_undefined_flag_CXX=unsupported
15718 always_export_symbols_CXX=no
15719 enable_shared_with_static_runtimes_CXX=yes
15721 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15722 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'
15723 # If the export-symbols file already is a .def file (1st line
15724 # is EXPORTS), use it as is; otherwise, prepend...
15725 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15726 cp $export_symbols $output_objdir/$soname.def;
15728 echo EXPORTS > $output_objdir/$soname.def;
15729 cat $export_symbols >> $output_objdir/$soname.def;
15731 $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'
15736 darwin* | rhapsody*)
15738 rhapsody* | darwin1.[012])
15739 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15742 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15743 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15745 case ${MACOSX_DEPLOYMENT_TARGET} in
15747 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15750 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15756 archive_cmds_need_lc_CXX=no
15757 hardcode_direct_CXX=no
15758 hardcode_automatic_CXX=yes
15759 hardcode_shlibpath_var_CXX=unsupported
15760 whole_archive_flag_spec_CXX=''
15761 link_all_deplibs_CXX=yes
15763 if test "$GXX" = yes ; then
15764 lt_int_apple_cc_single_mod=no
15765 output_verbose_link_cmd='echo'
15766 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15767 lt_int_apple_cc_single_mod=yes
15769 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15770 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15772 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'
15774 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15775 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15776 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15777 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}'
15779 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}'
15781 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}'
15783 case "$cc_basename" in
15785 output_verbose_link_cmd='echo'
15786 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'
15787 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15788 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15789 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}'
15790 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}'
15800 case $cc_basename in
15802 # FIXME: insert proper C++ library support
15806 # Green Hills C++ Compiler
15807 # FIXME: insert proper C++ library support
15811 # FIXME: insert proper C++ library support
15817 # C++ shared libraries reported to be fairly broken before switch to ELF
15821 archive_cmds_need_lc_CXX=no
15823 freebsd* | kfreebsd*-gnu)
15824 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15831 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15832 hardcode_libdir_separator_CXX=:
15833 export_dynamic_flag_spec_CXX='${wl}-E'
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.
15839 case $cc_basename in
15841 # FIXME: insert proper C++ library support
15845 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'
15846 # Commands to make compiler produce verbose output that lists
15847 # what "hidden" libraries, object files and flags are used when
15848 # linking a shared library.
15850 # There doesn't appear to be a way to prevent this compiler from
15851 # explicitly linking system object files so we need to strip them
15852 # from the output so that they don't get included in the library
15854 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'
15857 if test "$GXX" = yes; then
15858 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'
15860 # FIXME: insert proper C++ library support
15867 if test $with_gnu_ld = no; then
15868 case "$host_cpu" in
15870 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15871 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15872 hardcode_libdir_separator_CXX=:
15875 hardcode_libdir_flag_spec_CXX='-L$libdir'
15878 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15879 hardcode_libdir_separator_CXX=:
15880 export_dynamic_flag_spec_CXX='${wl}-E'
15884 case "$host_cpu" in
15886 hardcode_direct_CXX=no
15887 hardcode_shlibpath_var_CXX=no
15890 hardcode_direct_CXX=no
15891 hardcode_shlibpath_var_CXX=no
15892 hardcode_minus_L_CXX=yes # Not in the search PATH,
15893 # but as the default
15894 # location of the library.
15897 hardcode_direct_CXX=yes
15898 hardcode_minus_L_CXX=yes # Not in the search PATH,
15899 # but as the default
15900 # location of the library.
15904 case $cc_basename in
15906 # FIXME: insert proper C++ library support
15910 case "$host_cpu" in
15912 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15915 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15918 # Commands to make compiler produce verbose output that lists
15919 # what "hidden" libraries, object files and flags are used when
15920 # linking a shared library.
15922 # There doesn't appear to be a way to prevent this compiler from
15923 # explicitly linking system object files so we need to strip them
15924 # from the output so that they don't get included in the library
15926 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'
15929 if test "$GXX" = yes; then
15930 if test $with_gnu_ld = no; then
15931 case "$host_cpu" in
15933 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15936 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'
15941 # FIXME: insert proper C++ library support
15948 case $cc_basename in
15951 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'
15953 # Archives containing C++ object files must be created using
15954 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15955 # necessary to make sure instantiated templates are included
15957 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15960 if test "$GXX" = yes; then
15961 if test "$with_gnu_ld" = no; then
15962 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'
15964 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'
15967 link_all_deplibs_CXX=yes
15970 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15971 hardcode_libdir_separator_CXX=:
15974 case $cc_basename in
15976 # Kuck and Associates, Inc. (KAI) C++ Compiler
15978 # KCC will only create a shared library if the output file
15979 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15980 # to its proper name (with version) after linking.
15981 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'
15982 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'
15983 # Commands to make compiler produce verbose output that lists
15984 # what "hidden" libraries, object files and flags are used when
15985 # linking a shared library.
15987 # There doesn't appear to be a way to prevent this compiler from
15988 # explicitly linking system object files so we need to strip them
15989 # from the output so that they don't get included in the library
15991 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'
15993 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15994 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15996 # Archives containing C++ object files must be created using
15997 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15998 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16003 # version 8.0 and above of icpc choke on multiply defined symbols
16004 # if we add $predep_objects and $postdep_objects, however 7.1 and
16005 # earlier do not add the objects themselves.
16006 case `$CC -V 2>&1` in
16008 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16009 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'
16011 *) # Version 8.0 or newer
16012 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16013 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16016 archive_cmds_need_lc_CXX=no
16017 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16019 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16024 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'
16026 runpath_var=LD_RUN_PATH
16027 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16028 hardcode_libdir_separator_CXX=:
16030 # Commands to make compiler produce verbose output that lists
16031 # what "hidden" libraries, object files and flags are used when
16032 # linking a shared library.
16034 # There doesn't appear to be a way to prevent this compiler from
16035 # explicitly linking system object files so we need to strip them
16036 # from the output so that they don't get included in the library
16038 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'
16043 # FIXME: insert proper C++ library support
16047 # FIXME: insert proper C++ library support
16051 case $cc_basename in
16053 # FIXME: insert proper C++ library support
16057 # FIXME: insert proper C++ library support
16063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16064 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16066 hardcode_libdir_flag_spec_CXX='-R$libdir'
16067 hardcode_direct_CXX=yes
16068 hardcode_shlibpath_var_CXX=no
16070 # Workaround some broken pre-1.5 toolchains
16071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16074 # C++ shared libraries are fairly broken
16078 hardcode_direct_CXX=yes
16079 hardcode_shlibpath_var_CXX=no
16080 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16081 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16083 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16084 export_dynamic_flag_spec_CXX='${wl}-E'
16085 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16087 output_verbose_link_cmd='echo'
16090 case $cc_basename in
16092 # Kuck and Associates, Inc. (KAI) C++ Compiler
16094 # KCC will only create a shared library if the output file
16095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16096 # to its proper name (with version) after linking.
16097 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'
16099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16100 hardcode_libdir_separator_CXX=:
16102 # Archives containing C++ object files must be created using
16103 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16104 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16108 # Rational C++ 2.4.1
16109 # FIXME: insert proper C++ library support
16113 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16114 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'
16116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$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}-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 case $cc_basename in
16152 # Kuck and Associates, Inc. (KAI) C++ Compiler
16154 # KCC will only create a shared library if the output file
16155 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16156 # to its proper name (with version) after linking.
16157 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'
16159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16160 hardcode_libdir_separator_CXX=:
16162 # Archives containing C++ object files must be created using
16163 # the KAI C++ compiler.
16164 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16167 # Rational C++ 2.4.1
16168 # FIXME: insert proper C++ library support
16172 allow_undefined_flag_CXX=' -expect_unresolved \*'
16173 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'
16174 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16175 echo "-hidden">> $lib.exp~
16176 $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~
16179 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16180 hardcode_libdir_separator_CXX=:
16182 # Commands to make compiler produce verbose output that lists
16183 # what "hidden" libraries, object files and flags are used when
16184 # linking a shared library.
16186 # There doesn't appear to be a way to prevent this compiler from
16187 # explicitly linking system object files so we need to strip them
16188 # from the output so that they don't get included in the library
16190 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'
16193 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16194 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16195 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'
16197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16198 hardcode_libdir_separator_CXX=:
16200 # Commands to make compiler produce verbose output that lists
16201 # what "hidden" libraries, object files and flags are used when
16202 # linking a shared library.
16203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16206 # FIXME: insert proper C++ library support
16213 # FIXME: insert proper C++ library support
16217 archive_cmds_need_lc_CXX=no
16218 case $cc_basename in
16220 # FIXME: insert proper C++ library support
16224 # FIXME: insert proper C++ library support
16230 case $cc_basename in
16233 # FIXME: insert proper C++ library support
16238 # FIXME: insert proper C++ library support
16242 # FIXME: insert proper C++ library support
16248 case $cc_basename in
16250 # Sun C++ 4.2, 5.x and Centerline C++
16251 no_undefined_flag_CXX=' -zdefs'
16252 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16253 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16254 $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'
16256 hardcode_libdir_flag_spec_CXX='-R$libdir'
16257 hardcode_shlibpath_var_CXX=no
16259 solaris2.0-5 | solaris2.0-5.*) ;;
16261 # The C++ compiler is used as linker so we must use $wl
16262 # flag to pass the commands to the underlying system
16264 # Supported since Solaris 2.6 (maybe 2.5.1?)
16265 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16268 link_all_deplibs_CXX=yes
16270 # Commands to make compiler produce verbose output that lists
16271 # what "hidden" libraries, object files and flags are used when
16272 # linking a shared library.
16274 # There doesn't appear to be a way to prevent this compiler from
16275 # explicitly linking system object files so we need to strip them
16276 # from the output so that they don't get included in the library
16278 output_verbose_link_cmd='templist=`$CC -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'
16280 # Archives containing C++ object files must be created using
16281 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16282 # necessary to make sure instantiated templates are included
16284 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16287 # Green Hills C++ Compiler
16288 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16290 # The C++ compiler must be used to create the archive.
16291 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16294 # GNU C++ compiler with Solaris linker
16295 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16296 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16297 if $CC --version | grep -v '^2\.7' > /dev/null; then
16298 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16299 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16300 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16302 # Commands to make compiler produce verbose output that lists
16303 # what "hidden" libraries, object files and flags are used when
16304 # linking a shared library.
16305 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16307 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16309 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16310 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16311 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16313 # Commands to make compiler produce verbose output that lists
16314 # what "hidden" libraries, object files and flags are used when
16315 # linking a shared library.
16316 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16319 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16324 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16325 archive_cmds_need_lc_CXX=no
16328 case $cc_basename in
16330 # NonStop-UX NCC 3.20
16331 # FIXME: insert proper C++ library support
16335 # FIXME: insert proper C++ library support
16341 # FIXME: insert proper C++ library support
16345 # FIXME: insert proper C++ library support
16349 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16350 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16351 test "$ld_shlibs_CXX" = no && can_build_shared=no
16357 cat > conftest.$ac_ext <<EOF
16361 Foo (void) { a = 0; }
16367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16368 (eval $ac_compile) 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; then
16372 # Parse the compiler output and extract the necessary
16373 # objects, libraries and library flags.
16375 # Sentinel used to keep track of whether or not we are before
16376 # the conftest object file.
16377 pre_test_object_deps_done=no
16379 # The `*' in the case matches for architectures that use `case' in
16380 # $output_verbose_cmd can trigger glob expansion during the loop
16381 # eval without this substitution.
16382 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16384 for p in `eval $output_verbose_link_cmd`; do
16388 # Some compilers place space between "-{L,R}" and the path.
16389 # Remove the space.
16390 if test $p = "-L" \
16391 || test $p = "-R"; then
16398 if test "$pre_test_object_deps_done" = no; then
16401 # Internal compiler library paths should come after those
16402 # provided the user. The postdeps already come after the
16403 # user supplied libs so there is no need to process them.
16404 if test -z "$compiler_lib_search_path_CXX"; then
16405 compiler_lib_search_path_CXX="${prev}${p}"
16407 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16410 # The "-l" case would never come before the object being
16411 # linked, so don't bother handling this case.
16414 if test -z "$postdeps_CXX"; then
16415 postdeps_CXX="${prev}${p}"
16417 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16423 # This assumes that the test object file only shows up
16424 # once in the compiler output.
16425 if test "$p" = "conftest.$objext"; then
16426 pre_test_object_deps_done=yes
16430 if test "$pre_test_object_deps_done" = no; then
16431 if test -z "$predep_objects_CXX"; then
16432 predep_objects_CXX="$p"
16434 predep_objects_CXX="$predep_objects_CXX $p"
16437 if test -z "$postdep_objects_CXX"; then
16438 postdep_objects_CXX="$p"
16440 postdep_objects_CXX="$postdep_objects_CXX $p"
16445 *) ;; # Ignore the rest.
16453 echo "libtool.m4: error: problem compiling CXX test program"
16456 $rm -f confest.$objext
16458 case " $postdeps_CXX " in
16459 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16462 lt_prog_compiler_wl_CXX=
16463 lt_prog_compiler_pic_CXX=
16464 lt_prog_compiler_static_CXX=
16466 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16467 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16469 # C++ specific cases for pic, static, wl, etc.
16470 if test "$GXX" = yes; then
16471 lt_prog_compiler_wl_CXX='-Wl,'
16472 lt_prog_compiler_static_CXX='-static'
16476 # All AIX code is PIC.
16477 if test "$host_cpu" = ia64; then
16478 # AIX 5 now supports IA64 processor
16479 lt_prog_compiler_static_CXX='-Bstatic'
16483 # FIXME: we need at least 68020 code to build shared libraries, but
16484 # adding the `-m68020' flag to GCC prevents building anything better,
16486 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16488 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16489 # PIC is the default for these OSes.
16491 mingw* | os2* | pw32*)
16492 # This hack is so that the source file can tell whether it is being
16493 # built for inclusion in a dll (and should export symbols for example).
16494 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16496 darwin* | rhapsody*)
16497 # PIC is the default on this platform
16498 # Common symbols not allowed in MH_DYLIB files
16499 lt_prog_compiler_pic_CXX='-fno-common'
16502 # DJGPP does not support shared libraries at all
16503 lt_prog_compiler_pic_CXX=
16506 if test -d /usr/nec; then
16507 lt_prog_compiler_pic_CXX=-Kconform_pic
16511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16512 # not for PA HP-UX.
16513 case "$host_cpu" in
16517 lt_prog_compiler_pic_CXX='-fPIC'
16522 lt_prog_compiler_pic_CXX='-fPIC'
16528 # All AIX code is PIC.
16529 if test "$host_cpu" = ia64; then
16530 # AIX 5 now supports IA64 processor
16531 lt_prog_compiler_static_CXX='-Bstatic'
16533 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16537 case $cc_basename in
16539 # Green Hills C++ Compiler
16540 # _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"
16545 # PIC is the default on this platform
16546 # Common symbols not allowed in MH_DYLIB files
16547 case "$cc_basename" in
16549 lt_prog_compiler_pic_CXX='-qnocommon'
16550 lt_prog_compiler_wl_CXX='-Wl,'
16555 case $cc_basename in
16557 lt_prog_compiler_pic_CXX='-KPIC'
16560 # Green Hills C++ Compiler
16561 lt_prog_compiler_pic_CXX='-pic'
16567 freebsd* | kfreebsd*-gnu)
16568 # FreeBSD uses GNU C++
16570 hpux9* | hpux10* | hpux11*)
16571 case $cc_basename in
16573 lt_prog_compiler_wl_CXX='-Wl,'
16574 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16575 if test "$host_cpu" != ia64; then
16576 lt_prog_compiler_pic_CXX='+Z'
16580 lt_prog_compiler_wl_CXX='-Wl,'
16581 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16582 case "$host_cpu" in
16587 lt_prog_compiler_pic_CXX='+Z'
16595 irix5* | irix6* | nonstopux*)
16596 case $cc_basename in
16598 lt_prog_compiler_wl_CXX='-Wl,'
16599 lt_prog_compiler_static_CXX='-non_shared'
16600 # CC pic flag -KPIC is the default.
16607 case $cc_basename in
16610 lt_prog_compiler_wl_CXX='--backend -Wl,'
16611 lt_prog_compiler_pic_CXX='-fPIC'
16615 lt_prog_compiler_wl_CXX='-Wl,'
16616 lt_prog_compiler_pic_CXX='-KPIC'
16617 lt_prog_compiler_static_CXX='-static'
16621 # Make sure the PIC flag is empty. It appears that all Alpha
16622 # Linux and Compaq Tru64 Unix objects are PIC.
16623 lt_prog_compiler_pic_CXX=
16624 lt_prog_compiler_static_CXX='-non_shared'
16635 case $cc_basename in
16637 lt_prog_compiler_pic_CXX='-W c,exportall'
16645 osf3* | osf4* | osf5*)
16646 case $cc_basename in
16648 lt_prog_compiler_wl_CXX='--backend -Wl,'
16651 # Rational C++ 2.4.1
16652 lt_prog_compiler_pic_CXX='-pic'
16655 # Digital/Compaq C++
16656 lt_prog_compiler_wl_CXX='-Wl,'
16657 # Make sure the PIC flag is empty. It appears that all Alpha
16658 # Linux and Compaq Tru64 Unix objects are PIC.
16659 lt_prog_compiler_pic_CXX=
16660 lt_prog_compiler_static_CXX='-non_shared'
16669 case $cc_basename in
16671 lt_prog_compiler_pic_CXX='-fPIC'
16678 case $cc_basename in
16680 # Sun C++ 4.2, 5.x and Centerline C++
16681 lt_prog_compiler_pic_CXX='-KPIC'
16682 lt_prog_compiler_static_CXX='-Bstatic'
16683 lt_prog_compiler_wl_CXX='-Qoption ld '
16686 # Green Hills C++ Compiler
16687 lt_prog_compiler_pic_CXX='-PIC'
16694 case $cc_basename in
16697 lt_prog_compiler_pic_CXX='-pic'
16698 lt_prog_compiler_static_CXX='-Bstatic'
16702 lt_prog_compiler_pic_CXX='-pic'
16709 case $cc_basename in
16711 # NonStop-UX NCC 3.20
16712 lt_prog_compiler_pic_CXX='-KPIC'
16723 lt_prog_compiler_can_build_shared_CXX=no
16728 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16729 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16732 # Check to make sure the PIC flag actually works.
16734 if test -n "$lt_prog_compiler_pic_CXX"; then
16736 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16738 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 lt_prog_compiler_pic_works_CXX=no
16742 ac_outfile=conftest.$ac_objext
16743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16744 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16745 # Insert the option either (1) after the last *FLAGS variable, or
16746 # (2) before a word containing "conftest.", or (3) at the end.
16747 # Note that $ac_compile itself does not contain backslashes and begins
16748 # with a dollar sign (not a hyphen), so the echo should work correctly.
16749 # The option is referenced via a variable to avoid confusing sed.
16750 lt_compile=`echo "$ac_compile" | $SED \
16751 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16753 -e 's:$: $lt_compiler_flag:'`
16754 (eval echo "\"\$as_me:16754: $lt_compile\"" >&5)
16755 (eval "$lt_compile" 2>conftest.err)
16757 cat conftest.err >&5
16758 echo "$as_me:16758: \$? = $ac_status" >&5
16759 if (exit $ac_status) && test -s "$ac_outfile"; then
16760 # The compiler can only warn and ignore the option if not recognized
16761 # So say no if there are warnings
16762 if test ! -s conftest.err; then
16763 lt_prog_compiler_pic_works_CXX=yes
16769 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16770 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16772 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16773 case $lt_prog_compiler_pic_CXX in
16775 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16778 lt_prog_compiler_pic_CXX=
16779 lt_prog_compiler_can_build_shared_CXX=no
16784 # For platforms which do not support PIC, -DPIC is meaningless:
16786 lt_prog_compiler_pic_CXX=
16789 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16793 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16794 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16795 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16798 lt_cv_prog_compiler_c_o_CXX=no
16799 $rm -r conftest 2>/dev/null
16803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16805 lt_compiler_flag="-o out/conftest2.$ac_objext"
16806 # Insert the option either (1) after the last *FLAGS variable, or
16807 # (2) before a word containing "conftest.", or (3) at the end.
16808 # Note that $ac_compile itself does not contain backslashes and begins
16809 # with a dollar sign (not a hyphen), so the echo should work correctly.
16810 lt_compile=`echo "$ac_compile" | $SED \
16811 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16813 -e 's:$: $lt_compiler_flag:'`
16814 (eval echo "\"\$as_me:16814: $lt_compile\"" >&5)
16815 (eval "$lt_compile" 2>out/conftest.err)
16817 cat out/conftest.err >&5
16818 echo "$as_me:16818: \$? = $ac_status" >&5
16819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16821 # The compiler can only warn and ignore the option if not recognized
16822 # So say no if there are warnings
16823 if test ! -s out/conftest.err; then
16824 lt_cv_prog_compiler_c_o_CXX=yes
16829 # SGI C++ compiler will create directory out/ii_files/ for
16830 # template instantiation
16831 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16832 $rm out/* && rmdir out
16838 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16839 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16842 hard_links="nottested"
16843 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16844 # do not overwrite the value of need_locks provided by the user
16845 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16846 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16851 ln conftest.a conftest.b 2>&5 || hard_links=no
16852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16853 echo "$as_me:$LINENO: result: $hard_links" >&5
16854 echo "${ECHO_T}$hard_links" >&6
16855 if test "$hard_links" = no; then
16856 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16857 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16864 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16865 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16867 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16870 # If we're using GNU nm, then we don't want the "-C" option.
16871 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16872 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16873 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'
16875 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'
16879 export_symbols_cmds_CXX="$ltdll_cmds"
16882 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16885 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16889 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16890 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16891 test "$ld_shlibs_CXX" = no && can_build_shared=no
16893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16894 if test "$GCC" = yes; then
16895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16899 # Do we need to explicitly link libc?
16901 case "x$archive_cmds_need_lc_CXX" in
16903 # Assume -lc should be added
16904 archive_cmds_need_lc_CXX=yes
16906 if test "$enable_shared" = yes && test "$GCC" = yes; then
16907 case $archive_cmds_CXX in
16909 # FIXME: we may have to deal with multi-command sequences.
16912 # Test whether the compiler implicitly links with -lc since on some
16913 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16914 # to ld, don't add -lc before -lgcc.
16915 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16916 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921 (eval $ac_compile) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } 2>conftest.err; then
16927 libobjs=conftest.$ac_objext
16929 wl=$lt_prog_compiler_wl_CXX
16935 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16936 allow_undefined_flag_CXX=
16937 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16938 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }
16943 archive_cmds_need_lc_CXX=no
16945 archive_cmds_need_lc_CXX=yes
16947 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16949 cat conftest.err 1>&5
16952 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16953 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16960 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16961 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16962 library_names_spec=
16963 libname_spec='lib$name'
16967 postuninstall_cmds=
16971 shlibpath_overrides_runpath=unknown
16973 dynamic_linker="$host_os ld.so"
16974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16975 if test "$GCC" = yes; then
16976 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16977 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16978 # if the path contains ";" then we assume it to be the separator
16979 # otherwise default to the standard path separator (i.e. ":") - it is
16980 # assumed that no part of a normal pathname contains ";" but that should
16981 # okay in the real world where ";" in dirpaths is itself problematic.
16982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16989 need_lib_prefix=unknown
16990 hardcode_into_libs=no
16992 # when you set need_version to no, make sure it does not cause -set_version
16993 # flags to be left without arguments
16994 need_version=unknown
16999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17000 shlibpath_var=LIBPATH
17002 # AIX 3 has no versioning support, so we append a major version to the name.
17003 soname_spec='${libname}${release}${shared_ext}$major'
17010 hardcode_into_libs=yes
17011 if test "$host_cpu" = ia64; then
17012 # AIX 5 supports IA64
17013 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17014 shlibpath_var=LD_LIBRARY_PATH
17016 # With GCC up to 2.95.x, collect2 would create an import file
17017 # for dependence libraries. The import file would start with
17018 # the line `#! .'. This would cause the generated library to
17019 # depend on `.', always an invalid library. This was fixed in
17020 # development snapshots of GCC prior to 3.0.
17022 aix4 | aix4.[01] | aix4.[01].*)
17023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17025 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17028 can_build_shared=no
17032 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17033 # soname into executable. Probably we can add versioning support to
17034 # collect2, so additional links can be useful in future.
17035 if test "$aix_use_runtimelinking" = yes; then
17036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17037 # instead of lib<name>.a to let people know that these are not
17038 # typical AIX shared libraries.
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17041 # We preserve .a as extension for shared libraries through AIX4.2
17042 # and later when we are not doing run time linking.
17043 library_names_spec='${libname}${release}.a $libname.a'
17044 soname_spec='${libname}${release}${shared_ext}$major'
17046 shlibpath_var=LIBPATH
17051 library_names_spec='$libname.ixlibrary $libname.a'
17052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17053 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'
17057 library_names_spec='${libname}${shared_ext}'
17058 dynamic_linker="$host_os ld.so"
17059 shlibpath_var=LIBRARY_PATH
17065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17066 soname_spec='${libname}${release}${shared_ext}$major'
17067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17068 shlibpath_var=LD_LIBRARY_PATH
17069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17071 # the default ld.so.conf also contains /usr/contrib/lib and
17072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17073 # libtool to hard-code these into programs
17076 cygwin* | mingw* | pw32*)
17077 version_type=windows
17082 case $GCC,$host_os in
17083 yes,cygwin* | yes,mingw* | yes,pw32*)
17084 library_names_spec='$libname.dll.a'
17085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17086 postinstall_cmds='base_file=`basename \${file}`~
17087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17088 dldir=$destdir/`dirname \$dlpath`~
17089 test -d \$dldir || mkdir -p \$dldir~
17090 $install_prog $dir/$dlname \$dldir/$dlname'
17091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17092 dlpath=$dir/\$dldll~
17094 shlibpath_overrides_runpath=yes
17098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17100 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17103 # MinGW DLLs use traditional 'lib' prefix
17104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17105 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17106 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17107 # It is most probably a Windows format PATH printed by
17108 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17109 # path with ; separators, and with drive letters. We can handle the
17110 # drive letters (cygwin fileutils understands them), so leave them,
17111 # especially as we might pass files found there to a mingw objdump,
17112 # which wouldn't understand a cygwinified path. Ahh.
17113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17119 # pw32 DLLs use 'pw' prefix rather than 'lib'
17120 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17126 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17129 dynamic_linker='Win32 ld.exe'
17130 # FIXME: first we should search . and the directory the executable is in
17134 darwin* | rhapsody*)
17135 dynamic_linker="$host_os dyld"
17136 version_type=darwin
17139 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17140 soname_spec='${libname}${release}${major}$shared_ext'
17141 shlibpath_overrides_runpath=yes
17142 shlibpath_var=DYLD_LIBRARY_PATH
17143 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17144 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17145 if test "$GCC" = yes; then
17146 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"`
17148 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17159 shlibpath_var=LD_LIBRARY_PATH
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 shlibpath_overrides_runpath=no
17174 hardcode_into_libs=yes
17175 dynamic_linker='GNU ld.so'
17179 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17180 version_type=freebsd-$objformat
17181 case $version_type in
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17192 shlibpath_var=LD_LIBRARY_PATH
17195 shlibpath_overrides_runpath=yes
17197 freebsd3.01* | freebsdelf3.01*)
17198 shlibpath_overrides_runpath=yes
17199 hardcode_into_libs=yes
17202 shlibpath_overrides_runpath=no
17203 hardcode_into_libs=yes
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 hardcode_into_libs=yes
17218 hpux9* | hpux10* | hpux11*)
17219 # Give a soname corresponding to the major version so that dld.sl refuses to
17220 # link against other versions.
17224 case "$host_cpu" in
17227 hardcode_into_libs=yes
17228 dynamic_linker="$host_os dld.so"
17229 shlibpath_var=LD_LIBRARY_PATH
17230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 if test "X$HPUX_IA64_MODE" = X32; then
17234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17242 hardcode_into_libs=yes
17243 dynamic_linker="$host_os dld.sl"
17244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 soname_spec='${libname}${release}${shared_ext}$major'
17248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17253 dynamic_linker="$host_os dld.sl"
17254 shlibpath_var=SHLIB_PATH
17255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257 soname_spec='${libname}${release}${shared_ext}$major'
17260 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17261 postinstall_cmds='chmod 555 $lib'
17264 irix5* | irix6* | nonstopux*)
17266 nonstopux*) version_type=nonstopux ;;
17268 if test "$lt_cv_prog_gnu_ld" = yes; then
17276 soname_spec='${libname}${release}${shared_ext}$major'
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17279 irix5* | nonstopux*)
17280 libsuff= shlibsuff=
17283 case $LD in # libtool.m4 will add one of these switches to LD
17284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17285 libsuff= shlibsuff= libmagic=32-bit;;
17286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17287 libsuff=32 shlibsuff=N32 libmagic=N32;;
17288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17289 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17290 *) libsuff= shlibsuff= libmagic=never-match;;
17294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17295 shlibpath_overrides_runpath=no
17296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17298 hardcode_into_libs=yes
17301 # No shared lib support for Linux oldld, aout, or coff.
17302 linux*oldld* | linux*aout* | linux*coff*)
17306 # This must be Linux ELF.
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17314 shlibpath_var=LD_LIBRARY_PATH
17315 shlibpath_overrides_runpath=no
17316 # This implies no fast_install, which is unacceptable.
17317 # Some rework will be needed to allow for fast_install
17318 # before this can be enabled.
17319 hardcode_into_libs=yes
17321 # Append ld.so.conf contents to the search path
17322 if test -f /etc/ld.so.conf; then
17323 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17327 # We used to test for /lib/ld.so.1 and disable shared libraries on
17328 # powerpc, because MkLinux only supported shared libraries with the
17329 # GNU dynamic linker. Since this was broken with cross compilers,
17330 # most powerpc-linux boxes support dynamic linking these days and
17331 # people can always --disable-shared, the test was removed, and we
17332 # assume the GNU/Linux dynamic linker is in use.
17333 dynamic_linker='GNU/Linux ld.so'
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=no
17344 hardcode_into_libs=yes
17345 dynamic_linker='GNU ld.so'
17352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17355 dynamic_linker='NetBSD (a.out) ld.so'
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 dynamic_linker='NetBSD ld.elf_so'
17361 shlibpath_var=LD_LIBRARY_PATH
17362 shlibpath_overrides_runpath=yes
17363 hardcode_into_libs=yes
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 shlibpath_var=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath=yes
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath=yes
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17389 shlibpath_var=LD_LIBRARY_PATH
17390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17392 openbsd2.[89] | openbsd2.[89].*)
17393 shlibpath_overrides_runpath=no
17396 shlibpath_overrides_runpath=yes
17400 shlibpath_overrides_runpath=yes
17405 libname_spec='$name'
17408 library_names_spec='$libname${shared_ext} $libname.a'
17409 dynamic_linker='OS/2 ld.exe'
17410 shlibpath_var=LIBPATH
17413 osf3* | osf4* | osf5*)
17417 soname_spec='${libname}${release}${shared_ext}$major'
17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17419 shlibpath_var=LD_LIBRARY_PATH
17420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17426 soname_spec='${libname}${release}${shared_ext}$major'
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428 shlibpath_var=LD_LIBRARY_PATH
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436 soname_spec='${libname}${release}${shared_ext}$major'
17437 shlibpath_var=LD_LIBRARY_PATH
17438 shlibpath_overrides_runpath=yes
17439 hardcode_into_libs=yes
17440 # ldd complains unless libraries are executable
17441 postinstall_cmds='chmod +x $lib'
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17447 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17448 shlibpath_var=LD_LIBRARY_PATH
17449 shlibpath_overrides_runpath=yes
17450 if test "$with_gnu_ld" = yes; then
17456 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17459 soname_spec='${libname}${release}${shared_ext}$major'
17460 shlibpath_var=LD_LIBRARY_PATH
17461 case $host_vendor in
17463 shlibpath_overrides_runpath=no
17465 export_dynamic_flag_spec='${wl}-Blargedynsym'
17466 runpath_var=LD_RUN_PATH
17474 shlibpath_overrides_runpath=no
17475 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17481 if test -d /usr/nec ;then
17483 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17484 soname_spec='$libname${shared_ext}.$major'
17485 shlibpath_var=LD_LIBRARY_PATH
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492 soname_spec='${libname}${release}${shared_ext}$major'
17493 shlibpath_var=LD_LIBRARY_PATH
17500 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17501 echo "${ECHO_T}$dynamic_linker" >&6
17502 test "$dynamic_linker" = no && can_build_shared=no
17504 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17505 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17506 hardcode_action_CXX=
17507 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17508 test -n "$runpath_var_CXX" || \
17509 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17511 # We can hardcode non-existant directories.
17512 if test "$hardcode_direct_CXX" != no &&
17513 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17514 # have to relink, otherwise we might link with an installed library
17515 # when we should be linking with a yet-to-be-installed one
17516 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17517 test "$hardcode_minus_L_CXX" != no; then
17518 # Linking always hardcodes the temporary library directory.
17519 hardcode_action_CXX=relink
17521 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17522 hardcode_action_CXX=immediate
17525 # We cannot hardcode anything, or else we can only hardcode existing
17527 hardcode_action_CXX=unsupported
17529 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17530 echo "${ECHO_T}$hardcode_action_CXX" >&6
17532 if test "$hardcode_action_CXX" = relink; then
17533 # Fast installation is not supported
17534 enable_fast_install=no
17535 elif test "$shlibpath_overrides_runpath" = yes ||
17536 test "$enable_shared" = no; then
17537 # Fast installation is not necessary
17538 enable_fast_install=needless
17543 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17544 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17545 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17546 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17547 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17548 echo "$as_me:$LINENO: result: yes" >&5
17549 echo "${ECHO_T}yes" >&6
17551 # FIXME - insert some real tests, host_os isn't really good enough
17554 if test -n "$STRIP" ; then
17555 striplib="$STRIP -x"
17556 echo "$as_me:$LINENO: result: yes" >&5
17557 echo "${ECHO_T}yes" >&6
17559 echo "$as_me:$LINENO: result: no" >&5
17560 echo "${ECHO_T}no" >&6
17564 echo "$as_me:$LINENO: result: no" >&5
17565 echo "${ECHO_T}no" >&6
17570 if test "x$enable_dlopen" != xyes; then
17571 enable_dlopen=unknown
17572 enable_dlopen_self=unknown
17573 enable_dlopen_self_static=unknown
17580 lt_cv_dlopen="load_add_on"
17582 lt_cv_dlopen_self=yes
17586 lt_cv_dlopen="LoadLibrary"
17591 lt_cv_dlopen="dlopen"
17596 # if libdl is installed we need to link against it
17597 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17598 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17599 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 ac_check_lib_save_LIBS=$LIBS
17604 cat >conftest.$ac_ext <<_ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17611 /* Override any gcc2 internal prototype to avoid an error. */
17615 /* We use char because int might match the return type of a gcc2
17616 builtin and then its argument prototype would still apply. */
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17628 (eval $ac_link) 2>conftest.er1
17630 grep -v '^ *+' conftest.er1 >conftest.err
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -z "$ac_cxx_werror_flag"
17636 || test ! -s conftest.err'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; } &&
17642 { ac_try='test -s conftest$ac_exeext'
17643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; }; then
17648 ac_cv_lib_dl_dlopen=yes
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17653 ac_cv_lib_dl_dlopen=no
17655 rm -f conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
17657 LIBS=$ac_check_lib_save_LIBS
17659 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17660 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17661 if test $ac_cv_lib_dl_dlopen = yes; then
17662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17665 lt_cv_dlopen="dyld"
17667 lt_cv_dlopen_self=yes
17674 echo "$as_me:$LINENO: checking for shl_load" >&5
17675 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17676 if test "${ac_cv_func_shl_load+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 cat >conftest.$ac_ext <<_ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17687 #define shl_load innocuous_shl_load
17689 /* System header to define __stub macros and hopefully few prototypes,
17690 which can conflict with char shl_load (); below.
17691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17692 <limits.h> exists even on freestanding compilers. */
17695 # include <limits.h>
17697 # include <assert.h>
17702 /* Override any gcc2 internal prototype to avoid an error. */
17707 /* We use char because int might match the return type of a gcc2
17708 builtin and then its argument prototype would still apply. */
17710 /* The GNU C library defines this for functions which it implements
17711 to always fail with ENOSYS. Some functions are actually named
17712 something starting with __ and the normal name is an alias. */
17713 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17716 char (*f) () = shl_load;
17725 return f != shl_load;
17730 rm -f conftest.$ac_objext conftest$ac_exeext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17732 (eval $ac_link) 2>conftest.er1
17734 grep -v '^ *+' conftest.er1 >conftest.err
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_cxx_werror_flag"
17740 || test ! -s conftest.err'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest$ac_exeext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_func_shl_load=yes
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 ac_cv_func_shl_load=no
17759 rm -f conftest.err conftest.$ac_objext \
17760 conftest$ac_exeext conftest.$ac_ext
17762 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17763 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17764 if test $ac_cv_func_shl_load = yes; then
17765 lt_cv_dlopen="shl_load"
17767 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17768 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17769 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 ac_check_lib_save_LIBS=$LIBS
17774 cat >conftest.$ac_ext <<_ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17781 /* Override any gcc2 internal prototype to avoid an error. */
17785 /* We use char because int might match the return type of a gcc2
17786 builtin and then its argument prototype would still apply. */
17796 rm -f conftest.$ac_objext conftest$ac_exeext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17798 (eval $ac_link) 2>conftest.er1
17800 grep -v '^ *+' conftest.er1 >conftest.err
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
17805 { ac_try='test -z "$ac_cxx_werror_flag"
17806 || test ! -s conftest.err'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest$ac_exeext'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 ac_cv_lib_dld_shl_load=yes
17820 echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17823 ac_cv_lib_dld_shl_load=no
17825 rm -f conftest.err conftest.$ac_objext \
17826 conftest$ac_exeext conftest.$ac_ext
17827 LIBS=$ac_check_lib_save_LIBS
17829 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17830 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17831 if test $ac_cv_lib_dld_shl_load = yes; then
17832 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17834 echo "$as_me:$LINENO: checking for dlopen" >&5
17835 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17836 if test "${ac_cv_func_dlopen+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 cat >conftest.$ac_ext <<_ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17845 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17847 #define dlopen innocuous_dlopen
17849 /* System header to define __stub macros and hopefully few prototypes,
17850 which can conflict with char dlopen (); below.
17851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17852 <limits.h> exists even on freestanding compilers. */
17855 # include <limits.h>
17857 # include <assert.h>
17862 /* Override any gcc2 internal prototype to avoid an error. */
17867 /* We use char because int might match the return type of a gcc2
17868 builtin and then its argument prototype would still apply. */
17870 /* The GNU C library defines this for functions which it implements
17871 to always fail with ENOSYS. Some functions are actually named
17872 something starting with __ and the normal name is an alias. */
17873 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17876 char (*f) () = dlopen;
17885 return f != dlopen;
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17892 (eval $ac_link) 2>conftest.er1
17894 grep -v '^ *+' conftest.er1 >conftest.err
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
17899 { ac_try='test -z "$ac_cxx_werror_flag"
17900 || test ! -s conftest.err'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest$ac_exeext'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 ac_cv_func_dlopen=yes
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 ac_cv_func_dlopen=no
17919 rm -f conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17922 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17923 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17924 if test $ac_cv_func_dlopen = yes; then
17925 lt_cv_dlopen="dlopen"
17927 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17928 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17929 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17932 ac_check_lib_save_LIBS=$LIBS
17934 cat >conftest.$ac_ext <<_ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17941 /* Override any gcc2 internal prototype to avoid an error. */
17945 /* We use char because int might match the return type of a gcc2
17946 builtin and then its argument prototype would still apply. */
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17958 (eval $ac_link) 2>conftest.er1
17960 grep -v '^ *+' conftest.er1 >conftest.err
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } &&
17965 { ac_try='test -z "$ac_cxx_werror_flag"
17966 || test ! -s conftest.err'
17967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968 (eval $ac_try) 2>&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; } &&
17972 { ac_try='test -s conftest$ac_exeext'
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; }; then
17978 ac_cv_lib_dl_dlopen=yes
17980 echo "$as_me: failed program was:" >&5
17981 sed 's/^/| /' conftest.$ac_ext >&5
17983 ac_cv_lib_dl_dlopen=no
17985 rm -f conftest.err conftest.$ac_objext \
17986 conftest$ac_exeext conftest.$ac_ext
17987 LIBS=$ac_check_lib_save_LIBS
17989 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17990 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17991 if test $ac_cv_lib_dl_dlopen = yes; then
17992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17994 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17995 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17996 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17997 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 ac_check_lib_save_LIBS=$LIBS
18000 LIBS="-lsvld $LIBS"
18001 cat >conftest.$ac_ext <<_ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18008 /* Override any gcc2 internal prototype to avoid an error. */
18012 /* We use char because int might match the return type of a gcc2
18013 builtin and then its argument prototype would still apply. */
18023 rm -f conftest.$ac_objext conftest$ac_exeext
18024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18025 (eval $ac_link) 2>conftest.er1
18027 grep -v '^ *+' conftest.er1 >conftest.err
18029 cat conftest.err >&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } &&
18032 { ac_try='test -z "$ac_cxx_werror_flag"
18033 || test ! -s conftest.err'
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; } &&
18039 { ac_try='test -s conftest$ac_exeext'
18040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 ac_cv_lib_svld_dlopen=yes
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18050 ac_cv_lib_svld_dlopen=no
18052 rm -f conftest.err conftest.$ac_objext \
18053 conftest$ac_exeext conftest.$ac_ext
18054 LIBS=$ac_check_lib_save_LIBS
18056 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18057 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18058 if test $ac_cv_lib_svld_dlopen = yes; then
18059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18061 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18062 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18063 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
18066 ac_check_lib_save_LIBS=$LIBS
18068 cat >conftest.$ac_ext <<_ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18075 /* Override any gcc2 internal prototype to avoid an error. */
18079 /* We use char because int might match the return type of a gcc2
18080 builtin and then its argument prototype would still apply. */
18090 rm -f conftest.$ac_objext conftest$ac_exeext
18091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18092 (eval $ac_link) 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
18099 { ac_try='test -z "$ac_cxx_werror_flag"
18100 || test ! -s conftest.err'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest$ac_exeext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 ac_cv_lib_dld_dld_link=yes
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18117 ac_cv_lib_dld_dld_link=no
18119 rm -f conftest.err conftest.$ac_objext \
18120 conftest$ac_exeext conftest.$ac_ext
18121 LIBS=$ac_check_lib_save_LIBS
18123 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18124 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18125 if test $ac_cv_lib_dld_dld_link = yes; then
18126 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18147 if test "x$lt_cv_dlopen" != xno; then
18153 case $lt_cv_dlopen in
18155 save_CPPFLAGS="$CPPFLAGS"
18156 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18158 save_LDFLAGS="$LDFLAGS"
18159 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18162 LIBS="$lt_cv_dlopen_libs $LIBS"
18164 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18165 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18166 if test "${lt_cv_dlopen_self+set}" = set; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18169 if test "$cross_compiling" = yes; then :
18170 lt_cv_dlopen_self=cross
18172 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18173 lt_status=$lt_dlunknown
18174 cat > conftest.$ac_ext <<EOF
18175 #line 18175 "configure"
18176 #include "confdefs.h"
18185 # define LT_DLGLOBAL RTLD_GLOBAL
18188 # define LT_DLGLOBAL DL_GLOBAL
18190 # define LT_DLGLOBAL 0
18194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18195 find out it does not work in some platform. */
18196 #ifndef LT_DLLAZY_OR_NOW
18198 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18201 # define LT_DLLAZY_OR_NOW DL_LAZY
18204 # define LT_DLLAZY_OR_NOW RTLD_NOW
18207 # define LT_DLLAZY_OR_NOW DL_NOW
18209 # define LT_DLLAZY_OR_NOW 0
18217 extern "C" void exit (int);
18220 void fnord() { int i=42;}
18223 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18224 int status = $lt_dlunknown;
18228 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18229 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18230 /* dlclose (self); */
18236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18237 (eval $ac_link) 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18241 (./conftest; exit; ) 2>/dev/null
18243 case x$lt_status in
18244 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18245 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18246 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18249 # compilation failed
18250 lt_cv_dlopen_self=no
18257 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18258 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18260 if test "x$lt_cv_dlopen_self" = xyes; then
18261 LDFLAGS="$LDFLAGS $link_static_flag"
18262 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18263 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18264 if test "${lt_cv_dlopen_self_static+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 if test "$cross_compiling" = yes; then :
18268 lt_cv_dlopen_self_static=cross
18270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18271 lt_status=$lt_dlunknown
18272 cat > conftest.$ac_ext <<EOF
18273 #line 18273 "configure"
18274 #include "confdefs.h"
18283 # define LT_DLGLOBAL RTLD_GLOBAL
18286 # define LT_DLGLOBAL DL_GLOBAL
18288 # define LT_DLGLOBAL 0
18292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18293 find out it does not work in some platform. */
18294 #ifndef LT_DLLAZY_OR_NOW
18296 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18299 # define LT_DLLAZY_OR_NOW DL_LAZY
18302 # define LT_DLLAZY_OR_NOW RTLD_NOW
18305 # define LT_DLLAZY_OR_NOW DL_NOW
18307 # define LT_DLLAZY_OR_NOW 0
18315 extern "C" void exit (int);
18318 void fnord() { int i=42;}
18321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18322 int status = $lt_dlunknown;
18326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18328 /* dlclose (self); */
18334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335 (eval $ac_link) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18339 (./conftest; exit; ) 2>/dev/null
18341 case x$lt_status in
18342 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18343 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18344 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18347 # compilation failed
18348 lt_cv_dlopen_self_static=no
18355 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18356 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18359 CPPFLAGS="$save_CPPFLAGS"
18360 LDFLAGS="$save_LDFLAGS"
18365 case $lt_cv_dlopen_self in
18366 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18367 *) enable_dlopen_self=unknown ;;
18370 case $lt_cv_dlopen_self_static in
18371 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18372 *) enable_dlopen_self_static=unknown ;;
18377 # The else clause should only fire when bootstrapping the
18378 # libtool distribution, otherwise you forgot to ship ltmain.sh
18379 # with your package, and you will get complaints that there are
18380 # no rules to generate ltmain.sh.
18381 if test -f "$ltmain"; then
18382 # See if we are running on zsh, and set the options which allow our commands through
18383 # without removal of \ escapes.
18384 if test -n "${ZSH_VERSION+set}" ; then
18385 setopt NO_GLOB_SUBST
18387 # Now quote all the things that may contain metacharacters while being
18388 # careful not to overquote the AC_SUBSTed values. We take copies of the
18389 # variables and quote the copies for generation of the libtool script.
18390 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18392 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18393 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18394 deplibs_check_method reload_flag reload_cmds need_locks \
18395 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18396 lt_cv_sys_global_symbol_to_c_name_address \
18397 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18398 old_postinstall_cmds old_postuninstall_cmds \
18402 lt_prog_compiler_wl_CXX \
18403 lt_prog_compiler_pic_CXX \
18404 lt_prog_compiler_static_CXX \
18405 lt_prog_compiler_no_builtin_flag_CXX \
18406 export_dynamic_flag_spec_CXX \
18407 thread_safe_flag_spec_CXX \
18408 whole_archive_flag_spec_CXX \
18409 enable_shared_with_static_runtimes_CXX \
18410 old_archive_cmds_CXX \
18411 old_archive_from_new_cmds_CXX \
18412 predep_objects_CXX \
18413 postdep_objects_CXX \
18416 compiler_lib_search_path_CXX \
18418 archive_expsym_cmds_CXX \
18419 postinstall_cmds_CXX \
18420 postuninstall_cmds_CXX \
18421 old_archive_from_expsyms_cmds_CXX \
18422 allow_undefined_flag_CXX \
18423 no_undefined_flag_CXX \
18424 export_symbols_cmds_CXX \
18425 hardcode_libdir_flag_spec_CXX \
18426 hardcode_libdir_flag_spec_ld_CXX \
18427 hardcode_libdir_separator_CXX \
18428 hardcode_automatic_CXX \
18430 module_expsym_cmds_CXX \
18431 lt_cv_prog_compiler_c_o_CXX \
18432 exclude_expsyms_CXX \
18433 include_expsyms_CXX; do
18436 old_archive_cmds_CXX | \
18437 old_archive_from_new_cmds_CXX | \
18438 archive_cmds_CXX | \
18439 archive_expsym_cmds_CXX | \
18440 module_cmds_CXX | \
18441 module_expsym_cmds_CXX | \
18442 old_archive_from_expsyms_cmds_CXX | \
18443 export_symbols_cmds_CXX | \
18444 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18445 postinstall_cmds | postuninstall_cmds | \
18446 old_postinstall_cmds | old_postuninstall_cmds | \
18447 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18448 # Double-quote double-evaled strings.
18449 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18458 *'\$0 --fallback-echo"')
18459 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18465 cat <<__EOF__ >> "$cfgfile"
18466 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18468 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18470 # Shell to use when invoking shell scripts.
18473 # Whether or not to build shared libraries.
18474 build_libtool_libs=$enable_shared
18476 # Whether or not to build static libraries.
18477 build_old_libs=$enable_static
18479 # Whether or not to add -lc for building shared libraries.
18480 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18482 # Whether or not to disallow shared libs when runtime libs are static
18483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18485 # Whether or not to optimize for fast installation.
18486 fast_install=$enable_fast_install
18489 host_alias=$host_alias
18492 # An echo program that does not interpret backslashes.
18497 AR_FLAGS=$lt_AR_FLAGS
18502 # A language-specific compiler.
18503 CC=$lt_compiler_CXX
18505 # Is the compiler the GNU C compiler?
18511 # The linker used to build libraries.
18514 # Whether we need hard or soft links.
18517 # A BSD-compatible nm program.
18520 # A symbol stripping program
18523 # Used to examine libraries when file_magic_cmd begins "file"
18524 MAGIC_CMD=$MAGIC_CMD
18526 # Used on cygwin: DLL creation program.
18529 # Used on cygwin: object dumper.
18532 # Used on cygwin: assembler.
18535 # The name of the directory that contains temporary libtool files.
18538 # How to create reloadable object files.
18539 reload_flag=$lt_reload_flag
18540 reload_cmds=$lt_reload_cmds
18542 # How to pass a linker flag through the compiler.
18543 wl=$lt_lt_prog_compiler_wl_CXX
18545 # Object file suffix (normally "o").
18546 objext="$ac_objext"
18548 # Old archive suffix (normally "a").
18551 # Shared library suffix (normally ".so").
18552 shrext_cmds='$shrext_cmds'
18554 # Executable file suffix (normally "").
18557 # Additional compiler flags for building library objects.
18558 pic_flag=$lt_lt_prog_compiler_pic_CXX
18561 # What is the maximum length of a command?
18562 max_cmd_len=$lt_cv_sys_max_cmd_len
18564 # Does compiler simultaneously support -c and -o options?
18565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18567 # Must we lock files when doing compilation ?
18568 need_locks=$lt_need_locks
18570 # Do we need the lib prefix for modules?
18571 need_lib_prefix=$need_lib_prefix
18573 # Do we need a version for libraries?
18574 need_version=$need_version
18576 # Whether dlopen is supported.
18577 dlopen_support=$enable_dlopen
18579 # Whether dlopen of programs is supported.
18580 dlopen_self=$enable_dlopen_self
18582 # Whether dlopen of statically linked programs is supported.
18583 dlopen_self_static=$enable_dlopen_self_static
18585 # Compiler flag to prevent dynamic linking.
18586 link_static_flag=$lt_lt_prog_compiler_static_CXX
18588 # Compiler flag to turn off builtin functions.
18589 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18591 # Compiler flag to allow reflexive dlopens.
18592 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18594 # Compiler flag to generate shared objects directly from archives.
18595 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18597 # Compiler flag to generate thread-safe objects.
18598 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18600 # Library versioning type.
18601 version_type=$version_type
18603 # Format of library name prefix.
18604 libname_spec=$lt_libname_spec
18606 # List of archive names. First name is the real one, the rest are links.
18607 # The last name is the one that the linker finds with -lNAME.
18608 library_names_spec=$lt_library_names_spec
18610 # The coded name of the library, if different from the real name.
18611 soname_spec=$lt_soname_spec
18613 # Commands used to build and install an old-style archive.
18615 old_archive_cmds=$lt_old_archive_cmds_CXX
18616 old_postinstall_cmds=$lt_old_postinstall_cmds
18617 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18619 # Create an old-style archive from a shared archive.
18620 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18622 # Create a temporary old-style archive to link instead of a shared archive.
18623 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18625 # Commands used to build and install a shared archive.
18626 archive_cmds=$lt_archive_cmds_CXX
18627 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18628 postinstall_cmds=$lt_postinstall_cmds
18629 postuninstall_cmds=$lt_postuninstall_cmds
18631 # Commands used to build a loadable module (assumed same as above if empty)
18632 module_cmds=$lt_module_cmds_CXX
18633 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18635 # Commands to strip libraries.
18636 old_striplib=$lt_old_striplib
18637 striplib=$lt_striplib
18639 # Dependencies to place before the objects being linked to create a
18641 predep_objects=$lt_predep_objects_CXX
18643 # Dependencies to place after the objects being linked to create a
18645 postdep_objects=$lt_postdep_objects_CXX
18647 # Dependencies to place before the objects being linked to create a
18649 predeps=$lt_predeps_CXX
18651 # Dependencies to place after the objects being linked to create a
18653 postdeps=$lt_postdeps_CXX
18655 # The library search path used internally by the compiler when linking
18656 # a shared library.
18657 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18659 # Method to check whether dependent libraries are shared objects.
18660 deplibs_check_method=$lt_deplibs_check_method
18662 # Command to use when deplibs_check_method == file_magic.
18663 file_magic_cmd=$lt_file_magic_cmd
18665 # Flag that allows shared libraries with undefined symbols to be built.
18666 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18668 # Flag that forces no undefined symbols.
18669 no_undefined_flag=$lt_no_undefined_flag_CXX
18671 # Commands used to finish a libtool library installation in a directory.
18672 finish_cmds=$lt_finish_cmds
18674 # Same as above, but a single script fragment to be evaled but not shown.
18675 finish_eval=$lt_finish_eval
18677 # Take the output of nm and produce a listing of raw symbols and C names.
18678 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18680 # Transform the output of nm in a proper C declaration
18681 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18683 # Transform the output of nm in a C name address pair
18684 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18686 # This is the shared library runtime path variable.
18687 runpath_var=$runpath_var
18689 # This is the shared library path variable.
18690 shlibpath_var=$shlibpath_var
18692 # Is shlibpath searched before the hard-coded library search path?
18693 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18695 # How to hardcode a shared library path into an executable.
18696 hardcode_action=$hardcode_action_CXX
18698 # Whether we should hardcode library paths into libraries.
18699 hardcode_into_libs=$hardcode_into_libs
18701 # Flag to hardcode \$libdir into a binary during linking.
18702 # This must work even if \$libdir does not exist.
18703 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18705 # If ld is used when linking, flag to hardcode \$libdir into
18706 # a binary during linking. This must work even if \$libdir does
18708 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18710 # Whether we need a single -rpath flag with a separated argument.
18711 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18713 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18714 # resulting binary.
18715 hardcode_direct=$hardcode_direct_CXX
18717 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18718 # resulting binary.
18719 hardcode_minus_L=$hardcode_minus_L_CXX
18721 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18722 # the resulting binary.
18723 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18725 # Set to yes if building a shared library automatically hardcodes DIR into the library
18726 # and all subsequent libraries and executables linked against it.
18727 hardcode_automatic=$hardcode_automatic_CXX
18729 # Variables whose values should be saved in libtool wrapper scripts and
18730 # restored at relink time.
18731 variables_saved_for_relink="$variables_saved_for_relink"
18733 # Whether libtool must link a program against all its dependency libraries.
18734 link_all_deplibs=$link_all_deplibs_CXX
18736 # Compile-time system search path for libraries
18737 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18739 # Run-time system search path for libraries
18740 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18742 # Fix the shell variable \$srcfile for the compiler.
18743 fix_srcfile_path="$fix_srcfile_path_CXX"
18745 # Set to yes if exported symbols are required.
18746 always_export_symbols=$always_export_symbols_CXX
18748 # The commands to list exported symbols.
18749 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18751 # The commands to extract the exported symbol list from a shared archive.
18752 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18754 # Symbols that should not be listed in the preloaded symbols.
18755 exclude_expsyms=$lt_exclude_expsyms_CXX
18757 # Symbols that must always be exported.
18758 include_expsyms=$lt_include_expsyms_CXX
18760 # ### END LIBTOOL TAG CONFIG: $tagname
18766 # If there is no Makefile yet, we rely on a make rule to execute
18767 # `config.status --recheck' to rerun these tests and create the
18768 # libtool script then.
18769 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18770 if test -f "$ltmain_in"; then
18771 test -f Makefile && make "$ltmain"
18777 ac_cpp='$CPP $CPPFLAGS'
18778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18786 with_gnu_ldcxx=$with_gnu_ld
18787 with_gnu_ld=$lt_save_with_gnu_ld
18788 lt_cv_path_LDCXX=$lt_cv_path_LD
18789 lt_cv_path_LD=$lt_save_path_LD
18790 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18791 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18799 if test -n "$F77" && test "X$F77" != "Xno"; then
18802 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18803 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18804 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18807 archive_cmds_need_lc_F77=no
18808 allow_undefined_flag_F77=
18809 always_export_symbols_F77=no
18810 archive_expsym_cmds_F77=
18811 export_dynamic_flag_spec_F77=
18812 hardcode_direct_F77=no
18813 hardcode_libdir_flag_spec_F77=
18814 hardcode_libdir_flag_spec_ld_F77=
18815 hardcode_libdir_separator_F77=
18816 hardcode_minus_L_F77=no
18817 hardcode_automatic_F77=no
18819 module_expsym_cmds_F77=
18820 link_all_deplibs_F77=unknown
18821 old_archive_cmds_F77=$old_archive_cmds
18822 no_undefined_flag_F77=
18823 whole_archive_flag_spec_F77=
18824 enable_shared_with_static_runtimes_F77=no
18826 # Source file extension for f77 test sources.
18829 # Object file extension for compiled f77 test sources.
18833 # Code to be used in simple compile tests
18834 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18836 # Code to be used in simple link tests
18837 lt_simple_link_test_code=" program t\n end\n"
18839 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18841 # If no C compiler was specified, use CC.
18844 # Allow CC to be a program name with arguments.
18848 # Allow CC to be a program name with arguments.
18853 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18855 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18856 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18857 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18858 echo "${ECHO_T}$can_build_shared" >&6
18860 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18861 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18862 test "$can_build_shared" = "no" && enable_shared=no
18864 # On AIX, shared libraries and static libraries use the same namespace, and
18865 # are all built from PIC.
18868 test "$enable_shared" = yes && enable_static=no
18869 if test -n "$RANLIB"; then
18870 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18871 postinstall_cmds='$RANLIB $lib'
18875 test "$enable_shared" = yes && enable_static=no
18878 echo "$as_me:$LINENO: result: $enable_shared" >&5
18879 echo "${ECHO_T}$enable_shared" >&6
18881 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18882 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18883 # Make sure either enable_shared or enable_static is yes.
18884 test "$enable_shared" = yes || enable_static=yes
18885 echo "$as_me:$LINENO: result: $enable_static" >&5
18886 echo "${ECHO_T}$enable_static" >&6
18888 test "$ld_shlibs_F77" = no && can_build_shared=no
18893 lt_prog_compiler_wl_F77=
18894 lt_prog_compiler_pic_F77=
18895 lt_prog_compiler_static_F77=
18897 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18898 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18900 if test "$GCC" = yes; then
18901 lt_prog_compiler_wl_F77='-Wl,'
18902 lt_prog_compiler_static_F77='-static'
18906 # All AIX code is PIC.
18907 if test "$host_cpu" = ia64; then
18908 # AIX 5 now supports IA64 processor
18909 lt_prog_compiler_static_F77='-Bstatic'
18914 # FIXME: we need at least 68020 code to build shared libraries, but
18915 # adding the `-m68020' flag to GCC prevents building anything better,
18917 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18920 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18921 # PIC is the default for these OSes.
18924 mingw* | pw32* | os2*)
18925 # This hack is so that the source file can tell whether it is being
18926 # built for inclusion in a dll (and should export symbols for example).
18927 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18930 darwin* | rhapsody*)
18931 # PIC is the default on this platform
18932 # Common symbols not allowed in MH_DYLIB files
18933 lt_prog_compiler_pic_F77='-fno-common'
18937 # Just because we use GCC doesn't mean we suddenly get shared libraries
18938 # on systems that don't support them.
18939 lt_prog_compiler_can_build_shared_F77=no
18944 if test -d /usr/nec; then
18945 lt_prog_compiler_pic_F77=-Kconform_pic
18950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18951 # not for PA HP-UX.
18952 case "$host_cpu" in
18957 lt_prog_compiler_pic_F77='-fPIC'
18963 lt_prog_compiler_pic_F77='-fPIC'
18967 # PORTME Check for flag to pass linker flags through the system compiler.
18970 lt_prog_compiler_wl_F77='-Wl,'
18971 if test "$host_cpu" = ia64; then
18972 # AIX 5 now supports IA64 processor
18973 lt_prog_compiler_static_F77='-Bstatic'
18975 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18979 # PIC is the default on this platform
18980 # Common symbols not allowed in MH_DYLIB files
18981 case "$cc_basename" in
18983 lt_prog_compiler_pic_F77='-qnocommon'
18984 lt_prog_compiler_wl_F77='-Wl,'
18989 mingw* | pw32* | os2*)
18990 # This hack is so that the source file can tell whether it is being
18991 # built for inclusion in a dll (and should export symbols for example).
18992 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18995 hpux9* | hpux10* | hpux11*)
18996 lt_prog_compiler_wl_F77='-Wl,'
18997 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18998 # not for PA HP-UX.
18999 case "$host_cpu" in
19004 lt_prog_compiler_pic_F77='+Z'
19007 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19008 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19011 irix5* | irix6* | nonstopux*)
19012 lt_prog_compiler_wl_F77='-Wl,'
19013 # PIC (with -KPIC) is the default.
19014 lt_prog_compiler_static_F77='-non_shared'
19018 lt_prog_compiler_pic_F77='-KPIC'
19019 lt_prog_compiler_static_F77='-Bstatic'
19025 lt_prog_compiler_wl_F77='-Wl,'
19026 lt_prog_compiler_pic_F77='-KPIC'
19027 lt_prog_compiler_static_F77='-static'
19030 lt_prog_compiler_wl_F77='-Wl,'
19031 # All Alpha code is PIC.
19032 lt_prog_compiler_static_F77='-non_shared'
19037 osf3* | osf4* | osf5*)
19038 lt_prog_compiler_wl_F77='-Wl,'
19039 # All OSF/1 code is PIC.
19040 lt_prog_compiler_static_F77='-non_shared'
19044 lt_prog_compiler_pic_F77='-Kpic'
19045 lt_prog_compiler_static_F77='-dn'
19049 lt_prog_compiler_wl_F77='-Wl,'
19050 lt_prog_compiler_pic_F77='-KPIC'
19051 lt_prog_compiler_static_F77='-Bstatic'
19055 lt_prog_compiler_wl_F77='-Qoption ld '
19056 lt_prog_compiler_pic_F77='-PIC'
19057 lt_prog_compiler_static_F77='-Bstatic'
19060 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19061 lt_prog_compiler_wl_F77='-Wl,'
19062 lt_prog_compiler_pic_F77='-KPIC'
19063 lt_prog_compiler_static_F77='-Bstatic'
19067 if test -d /usr/nec ;then
19068 lt_prog_compiler_pic_F77='-Kconform_pic'
19069 lt_prog_compiler_static_F77='-Bstatic'
19074 lt_prog_compiler_pic_F77='-pic'
19075 lt_prog_compiler_static_F77='-Bstatic'
19079 lt_prog_compiler_can_build_shared_F77=no
19084 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19085 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19088 # Check to make sure the PIC flag actually works.
19090 if test -n "$lt_prog_compiler_pic_F77"; then
19092 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19093 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19094 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19097 lt_prog_compiler_pic_works_F77=no
19098 ac_outfile=conftest.$ac_objext
19099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19100 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19101 # Insert the option either (1) after the last *FLAGS variable, or
19102 # (2) before a word containing "conftest.", or (3) at the end.
19103 # Note that $ac_compile itself does not contain backslashes and begins
19104 # with a dollar sign (not a hyphen), so the echo should work correctly.
19105 # The option is referenced via a variable to avoid confusing sed.
19106 lt_compile=`echo "$ac_compile" | $SED \
19107 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19109 -e 's:$: $lt_compiler_flag:'`
19110 (eval echo "\"\$as_me:19110: $lt_compile\"" >&5)
19111 (eval "$lt_compile" 2>conftest.err)
19113 cat conftest.err >&5
19114 echo "$as_me:19114: \$? = $ac_status" >&5
19115 if (exit $ac_status) && test -s "$ac_outfile"; then
19116 # The compiler can only warn and ignore the option if not recognized
19117 # So say no if there are warnings
19118 if test ! -s conftest.err; then
19119 lt_prog_compiler_pic_works_F77=yes
19125 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19126 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19128 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19129 case $lt_prog_compiler_pic_F77 in
19131 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19134 lt_prog_compiler_pic_F77=
19135 lt_prog_compiler_can_build_shared_F77=no
19140 # For platforms which do not support PIC, -DPIC is meaningless:
19142 lt_prog_compiler_pic_F77=
19145 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19149 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19150 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19151 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 lt_cv_prog_compiler_c_o_F77=no
19155 $rm -r conftest 2>/dev/null
19159 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19161 lt_compiler_flag="-o out/conftest2.$ac_objext"
19162 # Insert the option either (1) after the last *FLAGS variable, or
19163 # (2) before a word containing "conftest.", or (3) at the end.
19164 # Note that $ac_compile itself does not contain backslashes and begins
19165 # with a dollar sign (not a hyphen), so the echo should work correctly.
19166 lt_compile=`echo "$ac_compile" | $SED \
19167 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19169 -e 's:$: $lt_compiler_flag:'`
19170 (eval echo "\"\$as_me:19170: $lt_compile\"" >&5)
19171 (eval "$lt_compile" 2>out/conftest.err)
19173 cat out/conftest.err >&5
19174 echo "$as_me:19174: \$? = $ac_status" >&5
19175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19177 # The compiler can only warn and ignore the option if not recognized
19178 # So say no if there are warnings
19179 if test ! -s out/conftest.err; then
19180 lt_cv_prog_compiler_c_o_F77=yes
19185 # SGI C++ compiler will create directory out/ii_files/ for
19186 # template instantiation
19187 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19188 $rm out/* && rmdir out
19194 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19195 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19198 hard_links="nottested"
19199 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19200 # do not overwrite the value of need_locks provided by the user
19201 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19202 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19207 ln conftest.a conftest.b 2>&5 || hard_links=no
19208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19209 echo "$as_me:$LINENO: result: $hard_links" >&5
19210 echo "${ECHO_T}$hard_links" >&6
19211 if test "$hard_links" = no; then
19212 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19213 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19220 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19221 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19224 allow_undefined_flag_F77=
19225 enable_shared_with_static_runtimes_F77=no
19227 archive_expsym_cmds_F77=
19228 old_archive_From_new_cmds_F77=
19229 old_archive_from_expsyms_cmds_F77=
19230 export_dynamic_flag_spec_F77=
19231 whole_archive_flag_spec_F77=
19232 thread_safe_flag_spec_F77=
19233 hardcode_libdir_flag_spec_F77=
19234 hardcode_libdir_flag_spec_ld_F77=
19235 hardcode_libdir_separator_F77=
19236 hardcode_direct_F77=no
19237 hardcode_minus_L_F77=no
19238 hardcode_shlibpath_var_F77=unsupported
19239 link_all_deplibs_F77=unknown
19240 hardcode_automatic_F77=no
19242 module_expsym_cmds_F77=
19243 always_export_symbols_F77=no
19244 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19245 # include_expsyms should be a list of space-separated symbols to be *always*
19246 # included in the symbol list
19247 include_expsyms_F77=
19248 # exclude_expsyms can be an extended regexp of symbols to exclude
19249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19251 # as well as any symbol that contains `d'.
19252 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19254 # platforms (ab)use it in PIC code, but their linkers get confused if
19255 # the symbol is explicitly referenced. Since portable code cannot
19256 # rely on this symbol name, it's probably fine to never include it in
19257 # preloaded symbol tables.
19258 extract_expsyms_cmds=
19261 cygwin* | mingw* | pw32*)
19262 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19263 # When not using gcc, we currently assume that we are using
19264 # Microsoft Visual C++.
19265 if test "$GCC" != yes; then
19275 if test "$with_gnu_ld" = yes; then
19276 # If archive_cmds runs LD, not CC, wlarc should be empty
19279 # See if GNU ld supports shared libraries.
19281 aix3* | aix4* | aix5*)
19282 # On AIX/PPC, the GNU linker is very broken
19283 if test "$host_cpu" != ia64; then
19287 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19288 *** to be unable to reliably create shared libraries on AIX.
19289 *** Therefore, libtool is disabling shared libraries support. If you
19290 *** really care for shared libraries, you may want to modify your PATH
19291 *** so that a non-GNU linker is found, and then restart.
19298 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)'
19299 hardcode_libdir_flag_spec_F77='-L$libdir'
19300 hardcode_minus_L_F77=yes
19302 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19303 # that the semantics of dynamic libraries on AmigaOS, at least up
19304 # to version 4, is to share data among multiple programs linked
19305 # with the same dynamic library. Since this doesn't match the
19306 # behavior of shared libraries on other platforms, we can't use
19312 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19313 allow_undefined_flag_F77=unsupported
19314 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19315 # support --undefined. This deserves some investigation. FIXME
19316 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19322 cygwin* | mingw* | pw32*)
19323 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19324 # as there is no search path for DLLs.
19325 hardcode_libdir_flag_spec_F77='-L$libdir'
19326 allow_undefined_flag_F77=unsupported
19327 always_export_symbols_F77=no
19328 enable_shared_with_static_runtimes_F77=yes
19329 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19331 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19332 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19333 # If the export-symbols file already is a .def file (1st line
19334 # is EXPORTS), use it as is; otherwise, prepend...
19335 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19336 cp $export_symbols $output_objdir/$soname.def;
19338 echo EXPORTS > $output_objdir/$soname.def;
19339 cat $export_symbols >> $output_objdir/$soname.def;
19341 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19349 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19352 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19353 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19358 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19363 *** create shared libraries on Solaris systems. Therefore, libtool
19364 *** is disabling shared libraries support. We urge you to upgrade GNU
19365 *** binutils to release 2.9.1 or newer. Another option is to modify
19366 *** your PATH or compiler configuration so that the native linker is
19367 *** used, and then restart.
19370 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19371 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19372 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19379 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19381 hardcode_direct_F77=yes
19382 hardcode_shlibpath_var_F77=no
19386 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19387 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19388 archive_cmds_F77="$tmp_archive_cmds"
19389 supports_anon_versioning=no
19390 case `$LD -v 2>/dev/null` in
19391 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19392 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19393 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19394 *\ 2.11.*) ;; # other 2.11 versions
19395 *) supports_anon_versioning=yes ;;
19397 if test $supports_anon_versioning = yes; then
19398 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19400 $echo "local: *; };" >> $output_objdir/$libname.ver~
19401 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19403 archive_expsym_cmds_F77="$tmp_archive_cmds"
19411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19412 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19413 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19420 if test "$ld_shlibs_F77" = yes; then
19421 runpath_var=LD_RUN_PATH
19422 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19423 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19424 # ancient GNU ld didn't support --whole-archive et. al.
19425 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19426 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19428 whole_archive_flag_spec_F77=
19432 # PORTME fill in a description of your system's linker (not GNU ld)
19435 allow_undefined_flag_F77=unsupported
19436 always_export_symbols_F77=yes
19437 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'
19438 # Note: this linker hardcodes the directories in LIBPATH if there
19439 # are no directories specified by -L.
19440 hardcode_minus_L_F77=yes
19441 if test "$GCC" = yes && test -z "$link_static_flag"; then
19442 # Neither direct hardcoding nor static linking is supported with a
19444 hardcode_direct_F77=unsupported
19449 if test "$host_cpu" = ia64; then
19450 # On IA64, the linker does run time linking by default, so we don't
19451 # have to do anything special.
19452 aix_use_runtimelinking=no
19453 exp_sym_flag='-Bexport'
19456 # If we're using GNU nm, then we don't want the "-C" option.
19457 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19458 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19459 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'
19461 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'
19463 aix_use_runtimelinking=no
19465 # Test if we are trying to use run time linking or normal
19466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19467 # need to do runtime linking.
19468 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19469 for ld_flag in $LDFLAGS; do
19470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19471 aix_use_runtimelinking=yes
19477 exp_sym_flag='-bexport'
19478 no_entry_flag='-bnoentry'
19481 # When large executables or shared objects are built, AIX ld can
19482 # have problems creating the table of contents. If linking a library
19483 # or program results in "error TOC overflow" add -mminimal-toc to
19484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19487 archive_cmds_F77=''
19488 hardcode_direct_F77=yes
19489 hardcode_libdir_separator_F77=':'
19490 link_all_deplibs_F77=yes
19492 if test "$GCC" = yes; then
19493 case $host_os in aix4.012|aix4.012.*)
19494 # We only want to do this on AIX 4.2 and lower, the check
19495 # below for broken collect2 doesn't work under 4.3+
19496 collect2name=`${CC} -print-prog-name=collect2`
19497 if test -f "$collect2name" && \
19498 strings "$collect2name" | grep resolve_lib_name >/dev/null
19500 # We have reworked collect2
19501 hardcode_direct_F77=yes
19503 # We have old collect2
19504 hardcode_direct_F77=unsupported
19505 # It fails to find uninstalled libraries when the uninstalled
19506 # path is not listed in the libpath. Setting hardcode_minus_L
19507 # to unsupported forces relinking
19508 hardcode_minus_L_F77=yes
19509 hardcode_libdir_flag_spec_F77='-L$libdir'
19510 hardcode_libdir_separator_F77=
19513 shared_flag='-shared'
19516 if test "$host_cpu" = ia64; then
19517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19518 # chokes on -Wl,-G. The following line is correct:
19521 if test "$aix_use_runtimelinking" = yes; then
19522 shared_flag='${wl}-G'
19524 shared_flag='${wl}-bM:SRE'
19529 # It seems that -bexpall does not export symbols beginning with
19530 # underscore (_), so it is better to generate a list of symbols to export.
19531 always_export_symbols_F77=yes
19532 if test "$aix_use_runtimelinking" = yes; then
19533 # Warning - without using the other runtime loading flags (-brtl),
19534 # -berok will link without error, but may produce a broken library.
19535 allow_undefined_flag_F77='-berok'
19536 # Determine the default libpath from the value encoded in an empty executable.
19537 cat >conftest.$ac_ext <<_ACEOF
19542 rm -f conftest.$ac_objext conftest$ac_exeext
19543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19544 (eval $ac_link) 2>conftest.er1
19546 grep -v '^ *+' conftest.er1 >conftest.err
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try='test -z "$ac_f77_werror_flag"
19552 || test ! -s conftest.err'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest$ac_exeext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19567 # Check for a 64-bit object if we didn't find anything.
19568 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; }
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19575 rm -f conftest.err conftest.$ac_objext \
19576 conftest$ac_exeext conftest.$ac_ext
19577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19579 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19580 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"
19582 if test "$host_cpu" = ia64; then
19583 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19584 allow_undefined_flag_F77="-z nodefs"
19585 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"
19587 # Determine the default libpath from the value encoded in an empty executable.
19588 cat >conftest.$ac_ext <<_ACEOF
19593 rm -f conftest.$ac_objext conftest$ac_exeext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19595 (eval $ac_link) 2>conftest.er1
19597 grep -v '^ *+' conftest.er1 >conftest.err
19599 cat conftest.err >&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
19602 { ac_try='test -z "$ac_f77_werror_flag"
19603 || test ! -s conftest.err'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest$ac_exeext'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; }; then
19616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19618 # Check for a 64-bit object if we didn't find anything.
19619 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; }
19622 echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19626 rm -f conftest.err conftest.$ac_objext \
19627 conftest$ac_exeext conftest.$ac_ext
19628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19630 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19631 # Warning - without using the other run time loading flags,
19632 # -berok will link without error, but may produce a broken library.
19633 no_undefined_flag_F77=' ${wl}-bernotok'
19634 allow_undefined_flag_F77=' ${wl}-berok'
19635 # -bexpall does not export symbols beginning with underscore (_)
19636 always_export_symbols_F77=yes
19637 # Exported symbols can be pulled into shared objects from archives
19638 whole_archive_flag_spec_F77=' '
19639 archive_cmds_need_lc_F77=yes
19640 # This is similar to how AIX traditionally builds it's shared libraries.
19641 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'
19647 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)'
19648 hardcode_libdir_flag_spec_F77='-L$libdir'
19649 hardcode_minus_L_F77=yes
19650 # see comment about different semantics on the GNU ld section
19655 export_dynamic_flag_spec_F77=-rdynamic
19658 cygwin* | mingw* | pw32*)
19659 # When not using gcc, we currently assume that we are using
19660 # Microsoft Visual C++.
19661 # hardcode_libdir_flag_spec is actually meaningless, as there is
19662 # no search path for DLLs.
19663 hardcode_libdir_flag_spec_F77=' '
19664 allow_undefined_flag_F77=unsupported
19665 # Tell ltmain to make .lib files, not .a files.
19667 # Tell ltmain to make .dll files, not .so files.
19669 # FIXME: Setting linknames here is a bad hack.
19670 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19671 # The linker will automatically build a .lib file if we build a DLL.
19672 old_archive_From_new_cmds_F77='true'
19673 # FIXME: Should let the user specify the lib program.
19674 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19675 fix_srcfile_path='`cygpath -w "$srcfile"`'
19676 enable_shared_with_static_runtimes_F77=yes
19679 darwin* | rhapsody*)
19681 rhapsody* | darwin1.[012])
19682 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19685 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19686 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19688 case ${MACOSX_DEPLOYMENT_TARGET} in
19690 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19693 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19699 archive_cmds_need_lc_F77=no
19700 hardcode_direct_F77=no
19701 hardcode_automatic_F77=yes
19702 hardcode_shlibpath_var_F77=unsupported
19703 whole_archive_flag_spec_F77=''
19704 link_all_deplibs_F77=yes
19705 if test "$GCC" = yes ; then
19706 output_verbose_link_cmd='echo'
19707 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19708 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19709 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19710 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}'
19711 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}'
19713 case "$cc_basename" in
19715 output_verbose_link_cmd='echo'
19716 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19717 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19718 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19719 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}'
19720 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}'
19730 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19731 hardcode_libdir_flag_spec_F77='-L$libdir'
19732 hardcode_shlibpath_var_F77=no
19739 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19740 # support. Future versions do this automatically, but an explicit c++rt0.o
19741 # does not break anything, and helps significantly (at the cost of a little
19744 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19745 hardcode_libdir_flag_spec_F77='-R$libdir'
19746 hardcode_direct_F77=yes
19747 hardcode_shlibpath_var_F77=no
19750 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19752 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19753 hardcode_direct_F77=yes
19754 hardcode_minus_L_F77=yes
19755 hardcode_shlibpath_var_F77=no
19758 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19759 freebsd* | kfreebsd*-gnu)
19760 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19761 hardcode_libdir_flag_spec_F77='-R$libdir'
19762 hardcode_direct_F77=yes
19763 hardcode_shlibpath_var_F77=no
19767 if test "$GCC" = yes; then
19768 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'
19770 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'
19772 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19773 hardcode_libdir_separator_F77=:
19774 hardcode_direct_F77=yes
19776 # hardcode_minus_L: Not really in the search PATH,
19777 # but as the default location of the library.
19778 hardcode_minus_L_F77=yes
19779 export_dynamic_flag_spec_F77='${wl}-E'
19783 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19784 case "$host_cpu" in
19786 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19789 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19793 case "$host_cpu" in
19795 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19798 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19802 if test "$with_gnu_ld" = no; then
19803 case "$host_cpu" in
19805 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19806 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19807 hardcode_libdir_separator_F77=:
19808 hardcode_direct_F77=no
19809 hardcode_shlibpath_var_F77=no
19812 hardcode_libdir_flag_spec_F77='-L$libdir'
19813 hardcode_direct_F77=no
19814 hardcode_shlibpath_var_F77=no
19816 # hardcode_minus_L: Not really in the search PATH,
19817 # but as the default location of the library.
19818 hardcode_minus_L_F77=yes
19821 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19822 hardcode_libdir_separator_F77=:
19823 hardcode_direct_F77=yes
19824 export_dynamic_flag_spec_F77='${wl}-E'
19826 # hardcode_minus_L: Not really in the search PATH,
19827 # but as the default location of the library.
19828 hardcode_minus_L_F77=yes
19834 irix5* | irix6* | nonstopux*)
19835 if test "$GCC" = yes; then
19836 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'
19838 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'
19839 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19841 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19842 hardcode_libdir_separator_F77=:
19843 link_all_deplibs_F77=yes
19847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19848 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19850 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19852 hardcode_libdir_flag_spec_F77='-R$libdir'
19853 hardcode_direct_F77=yes
19854 hardcode_shlibpath_var_F77=no
19858 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19859 hardcode_direct_F77=yes
19860 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19861 hardcode_libdir_separator_F77=:
19862 hardcode_shlibpath_var_F77=no
19866 hardcode_direct_F77=yes
19867 hardcode_shlibpath_var_F77=no
19868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19869 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19870 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19871 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19872 export_dynamic_flag_spec_F77='${wl}-E'
19875 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19876 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19877 hardcode_libdir_flag_spec_F77='-R$libdir'
19880 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19881 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19888 hardcode_libdir_flag_spec_F77='-L$libdir'
19889 hardcode_minus_L_F77=yes
19890 allow_undefined_flag_F77=unsupported
19891 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'
19892 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19896 if test "$GCC" = yes; then
19897 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19898 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'
19900 allow_undefined_flag_F77=' -expect_unresolved \*'
19901 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'
19903 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19904 hardcode_libdir_separator_F77=:
19907 osf4* | osf5*) # as osf3* with the addition of -msym flag
19908 if test "$GCC" = yes; then
19909 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19910 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'
19911 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19913 allow_undefined_flag_F77=' -expect_unresolved \*'
19914 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'
19915 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~
19916 $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'
19918 # Both c and cxx compiler support -rpath directly
19919 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19921 hardcode_libdir_separator_F77=:
19925 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19926 hardcode_shlibpath_var_F77=no
19927 export_dynamic_flag_spec_F77='${wl}-Bexport'
19928 runpath_var=LD_RUN_PATH
19929 hardcode_runpath_var=yes
19933 no_undefined_flag_F77=' -z text'
19934 if test "$GCC" = yes; then
19935 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19936 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19937 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19939 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19940 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19941 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19943 hardcode_libdir_flag_spec_F77='-R$libdir'
19944 hardcode_shlibpath_var_F77=no
19946 solaris2.[0-5] | solaris2.[0-5].*) ;;
19947 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19948 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19950 link_all_deplibs_F77=yes
19954 if test "x$host_vendor" = xsequent; then
19955 # Use $CC to link under sequent, because it throws in some extra .o
19956 # files that make .init and .fini sections work.
19957 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19959 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19961 hardcode_libdir_flag_spec_F77='-L$libdir'
19962 hardcode_direct_F77=yes
19963 hardcode_minus_L_F77=yes
19964 hardcode_shlibpath_var_F77=no
19968 case $host_vendor in
19970 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19971 hardcode_direct_F77=yes # is this really true???
19974 ## LD is ld it makes a PLAMLIB
19975 ## CC just makes a GrossModule.
19976 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19977 reload_cmds_F77='$CC -r -o $output$reload_objs'
19978 hardcode_direct_F77=no
19981 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19982 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19985 runpath_var='LD_RUN_PATH'
19986 hardcode_shlibpath_var_F77=no
19990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19991 hardcode_shlibpath_var_F77=no
19992 export_dynamic_flag_spec_F77='-Bexport'
19996 if test -d /usr/nec; then
19997 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19998 hardcode_shlibpath_var_F77=no
19999 runpath_var=LD_RUN_PATH
20000 hardcode_runpath_var=yes
20006 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20007 hardcode_direct_F77=yes
20008 hardcode_minus_L_F77=no
20009 hardcode_shlibpath_var_F77=no
20010 hardcode_runpath_var=yes
20011 runpath_var=LD_RUN_PATH
20014 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20015 no_undefined_flag_F77='${wl}-z ${wl}text'
20016 if test "$GCC" = yes; then
20017 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20019 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20021 runpath_var='LD_RUN_PATH'
20022 hardcode_shlibpath_var_F77=no
20026 no_undefined_flag_F77=' -z text'
20027 # $CC -shared without GNU ld will not create a library from C++
20028 # object files and a static libstdc++, better avoid it by now
20029 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20030 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20032 hardcode_libdir_flag_spec_F77=
20033 hardcode_shlibpath_var_F77=no
20034 runpath_var='LD_RUN_PATH'
20038 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20039 hardcode_libdir_flag_spec_F77='-L$libdir'
20040 hardcode_shlibpath_var_F77=no
20049 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20050 echo "${ECHO_T}$ld_shlibs_F77" >&6
20051 test "$ld_shlibs_F77" = no && can_build_shared=no
20053 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20054 if test "$GCC" = yes; then
20055 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20059 # Do we need to explicitly link libc?
20061 case "x$archive_cmds_need_lc_F77" in
20063 # Assume -lc should be added
20064 archive_cmds_need_lc_F77=yes
20066 if test "$enable_shared" = yes && test "$GCC" = yes; then
20067 case $archive_cmds_F77 in
20069 # FIXME: we may have to deal with multi-command sequences.
20072 # Test whether the compiler implicitly links with -lc since on some
20073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20074 # to ld, don't add -lc before -lgcc.
20075 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20076 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20078 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20081 (eval $ac_compile) 2>&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } 2>conftest.err; then
20087 libobjs=conftest.$ac_objext
20089 wl=$lt_prog_compiler_wl_F77
20095 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20096 allow_undefined_flag_F77=
20097 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20098 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }
20103 archive_cmds_need_lc_F77=no
20105 archive_cmds_need_lc_F77=yes
20107 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20109 cat conftest.err 1>&5
20112 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20113 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20120 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20121 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20122 library_names_spec=
20123 libname_spec='lib$name'
20127 postuninstall_cmds=
20131 shlibpath_overrides_runpath=unknown
20133 dynamic_linker="$host_os ld.so"
20134 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20135 if test "$GCC" = yes; then
20136 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20137 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20138 # if the path contains ";" then we assume it to be the separator
20139 # otherwise default to the standard path separator (i.e. ":") - it is
20140 # assumed that no part of a normal pathname contains ";" but that should
20141 # okay in the real world where ";" in dirpaths is itself problematic.
20142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20147 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20149 need_lib_prefix=unknown
20150 hardcode_into_libs=no
20152 # when you set need_version to no, make sure it does not cause -set_version
20153 # flags to be left without arguments
20154 need_version=unknown
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20160 shlibpath_var=LIBPATH
20162 # AIX 3 has no versioning support, so we append a major version to the name.
20163 soname_spec='${libname}${release}${shared_ext}$major'
20170 hardcode_into_libs=yes
20171 if test "$host_cpu" = ia64; then
20172 # AIX 5 supports IA64
20173 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20174 shlibpath_var=LD_LIBRARY_PATH
20176 # With GCC up to 2.95.x, collect2 would create an import file
20177 # for dependence libraries. The import file would start with
20178 # the line `#! .'. This would cause the generated library to
20179 # depend on `.', always an invalid library. This was fixed in
20180 # development snapshots of GCC prior to 3.0.
20182 aix4 | aix4.[01] | aix4.[01].*)
20183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20185 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20188 can_build_shared=no
20192 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20193 # soname into executable. Probably we can add versioning support to
20194 # collect2, so additional links can be useful in future.
20195 if test "$aix_use_runtimelinking" = yes; then
20196 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20197 # instead of lib<name>.a to let people know that these are not
20198 # typical AIX shared libraries.
20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20201 # We preserve .a as extension for shared libraries through AIX4.2
20202 # and later when we are not doing run time linking.
20203 library_names_spec='${libname}${release}.a $libname.a'
20204 soname_spec='${libname}${release}${shared_ext}$major'
20206 shlibpath_var=LIBPATH
20211 library_names_spec='$libname.ixlibrary $libname.a'
20212 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20213 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'
20217 library_names_spec='${libname}${shared_ext}'
20218 dynamic_linker="$host_os ld.so"
20219 shlibpath_var=LIBRARY_PATH
20225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20226 soname_spec='${libname}${release}${shared_ext}$major'
20227 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20228 shlibpath_var=LD_LIBRARY_PATH
20229 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20230 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20231 # the default ld.so.conf also contains /usr/contrib/lib and
20232 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20233 # libtool to hard-code these into programs
20236 cygwin* | mingw* | pw32*)
20237 version_type=windows
20242 case $GCC,$host_os in
20243 yes,cygwin* | yes,mingw* | yes,pw32*)
20244 library_names_spec='$libname.dll.a'
20245 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20246 postinstall_cmds='base_file=`basename \${file}`~
20247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20248 dldir=$destdir/`dirname \$dlpath`~
20249 test -d \$dldir || mkdir -p \$dldir~
20250 $install_prog $dir/$dlname \$dldir/$dlname'
20251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20252 dlpath=$dir/\$dldll~
20254 shlibpath_overrides_runpath=yes
20258 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20259 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20260 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20263 # MinGW DLLs use traditional 'lib' prefix
20264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20266 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20267 # It is most probably a Windows format PATH printed by
20268 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20269 # path with ; separators, and with drive letters. We can handle the
20270 # drive letters (cygwin fileutils understands them), so leave them,
20271 # especially as we might pass files found there to a mingw objdump,
20272 # which wouldn't understand a cygwinified path. Ahh.
20273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20279 # pw32 DLLs use 'pw' prefix rather than 'lib'
20280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20289 dynamic_linker='Win32 ld.exe'
20290 # FIXME: first we should search . and the directory the executable is in
20294 darwin* | rhapsody*)
20295 dynamic_linker="$host_os dyld"
20296 version_type=darwin
20299 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20300 soname_spec='${libname}${release}${major}$shared_ext'
20301 shlibpath_overrides_runpath=yes
20302 shlibpath_var=DYLD_LIBRARY_PATH
20303 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20304 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20305 if test "$GCC" = yes; then
20306 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"`
20308 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20318 soname_spec='${libname}${release}${shared_ext}$major'
20319 shlibpath_var=LD_LIBRARY_PATH
20330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20331 soname_spec='${libname}${release}${shared_ext}$major'
20332 shlibpath_var=LD_LIBRARY_PATH
20333 shlibpath_overrides_runpath=no
20334 hardcode_into_libs=yes
20335 dynamic_linker='GNU ld.so'
20339 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20340 version_type=freebsd-$objformat
20341 case $version_type in
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20348 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20352 shlibpath_var=LD_LIBRARY_PATH
20355 shlibpath_overrides_runpath=yes
20357 freebsd3.01* | freebsdelf3.01*)
20358 shlibpath_overrides_runpath=yes
20359 hardcode_into_libs=yes
20362 shlibpath_overrides_runpath=no
20363 hardcode_into_libs=yes
20372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 shlibpath_var=LD_LIBRARY_PATH
20375 hardcode_into_libs=yes
20378 hpux9* | hpux10* | hpux11*)
20379 # Give a soname corresponding to the major version so that dld.sl refuses to
20380 # link against other versions.
20384 case "$host_cpu" in
20387 hardcode_into_libs=yes
20388 dynamic_linker="$host_os dld.so"
20389 shlibpath_var=LD_LIBRARY_PATH
20390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20392 soname_spec='${libname}${release}${shared_ext}$major'
20393 if test "X$HPUX_IA64_MODE" = X32; then
20394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20396 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20402 hardcode_into_libs=yes
20403 dynamic_linker="$host_os dld.sl"
20404 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20407 soname_spec='${libname}${release}${shared_ext}$major'
20408 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20413 dynamic_linker="$host_os dld.sl"
20414 shlibpath_var=SHLIB_PATH
20415 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20417 soname_spec='${libname}${release}${shared_ext}$major'
20420 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20421 postinstall_cmds='chmod 555 $lib'
20424 irix5* | irix6* | nonstopux*)
20426 nonstopux*) version_type=nonstopux ;;
20428 if test "$lt_cv_prog_gnu_ld" = yes; then
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20439 irix5* | nonstopux*)
20440 libsuff= shlibsuff=
20443 case $LD in # libtool.m4 will add one of these switches to LD
20444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20445 libsuff= shlibsuff= libmagic=32-bit;;
20446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20447 libsuff=32 shlibsuff=N32 libmagic=N32;;
20448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20450 *) libsuff= shlibsuff= libmagic=never-match;;
20454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20455 shlibpath_overrides_runpath=no
20456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20458 hardcode_into_libs=yes
20461 # No shared lib support for Linux oldld, aout, or coff.
20462 linux*oldld* | linux*aout* | linux*coff*)
20466 # This must be Linux ELF.
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472 soname_spec='${libname}${release}${shared_ext}$major'
20473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath=no
20476 # This implies no fast_install, which is unacceptable.
20477 # Some rework will be needed to allow for fast_install
20478 # before this can be enabled.
20479 hardcode_into_libs=yes
20481 # Append ld.so.conf contents to the search path
20482 if test -f /etc/ld.so.conf; then
20483 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20484 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20487 # We used to test for /lib/ld.so.1 and disable shared libraries on
20488 # powerpc, because MkLinux only supported shared libraries with the
20489 # GNU dynamic linker. Since this was broken with cross compilers,
20490 # most powerpc-linux boxes support dynamic linking these days and
20491 # people can always --disable-shared, the test was removed, and we
20492 # assume the GNU/Linux dynamic linker is in use.
20493 dynamic_linker='GNU/Linux ld.so'
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20501 soname_spec='${libname}${release}${shared_ext}$major'
20502 shlibpath_var=LD_LIBRARY_PATH
20503 shlibpath_overrides_runpath=no
20504 hardcode_into_libs=yes
20505 dynamic_linker='GNU ld.so'
20512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20515 dynamic_linker='NetBSD (a.out) ld.so'
20517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20518 soname_spec='${libname}${release}${shared_ext}$major'
20519 dynamic_linker='NetBSD ld.elf_so'
20521 shlibpath_var=LD_LIBRARY_PATH
20522 shlibpath_overrides_runpath=yes
20523 hardcode_into_libs=yes
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529 shlibpath_var=LD_LIBRARY_PATH
20530 shlibpath_overrides_runpath=yes
20537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20538 soname_spec='${libname}${release}${shared_ext}$major'
20539 shlibpath_var=LD_LIBRARY_PATH
20540 shlibpath_overrides_runpath=yes
20547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20549 shlibpath_var=LD_LIBRARY_PATH
20550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20552 openbsd2.[89] | openbsd2.[89].*)
20553 shlibpath_overrides_runpath=no
20556 shlibpath_overrides_runpath=yes
20560 shlibpath_overrides_runpath=yes
20565 libname_spec='$name'
20568 library_names_spec='$libname${shared_ext} $libname.a'
20569 dynamic_linker='OS/2 ld.exe'
20570 shlibpath_var=LIBPATH
20573 osf3* | osf4* | osf5*)
20577 soname_spec='${libname}${release}${shared_ext}$major'
20578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579 shlibpath_var=LD_LIBRARY_PATH
20580 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20581 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20586 soname_spec='${libname}${release}${shared_ext}$major'
20587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20588 shlibpath_var=LD_LIBRARY_PATH
20595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20596 soname_spec='${libname}${release}${shared_ext}$major'
20597 shlibpath_var=LD_LIBRARY_PATH
20598 shlibpath_overrides_runpath=yes
20599 hardcode_into_libs=yes
20600 # ldd complains unless libraries are executable
20601 postinstall_cmds='chmod +x $lib'
20606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20608 shlibpath_var=LD_LIBRARY_PATH
20609 shlibpath_overrides_runpath=yes
20610 if test "$with_gnu_ld" = yes; then
20616 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20619 soname_spec='${libname}${release}${shared_ext}$major'
20620 shlibpath_var=LD_LIBRARY_PATH
20621 case $host_vendor in
20623 shlibpath_overrides_runpath=no
20625 export_dynamic_flag_spec='${wl}-Blargedynsym'
20626 runpath_var=LD_RUN_PATH
20634 shlibpath_overrides_runpath=no
20635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20641 if test -d /usr/nec ;then
20643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20644 soname_spec='$libname${shared_ext}.$major'
20645 shlibpath_var=LD_LIBRARY_PATH
20651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20652 soname_spec='${libname}${release}${shared_ext}$major'
20653 shlibpath_var=LD_LIBRARY_PATH
20660 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20661 echo "${ECHO_T}$dynamic_linker" >&6
20662 test "$dynamic_linker" = no && can_build_shared=no
20664 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20665 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20666 hardcode_action_F77=
20667 if test -n "$hardcode_libdir_flag_spec_F77" || \
20668 test -n "$runpath_var_F77" || \
20669 test "X$hardcode_automatic_F77" = "Xyes" ; then
20671 # We can hardcode non-existant directories.
20672 if test "$hardcode_direct_F77" != no &&
20673 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20674 # have to relink, otherwise we might link with an installed library
20675 # when we should be linking with a yet-to-be-installed one
20676 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20677 test "$hardcode_minus_L_F77" != no; then
20678 # Linking always hardcodes the temporary library directory.
20679 hardcode_action_F77=relink
20681 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20682 hardcode_action_F77=immediate
20685 # We cannot hardcode anything, or else we can only hardcode existing
20687 hardcode_action_F77=unsupported
20689 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20690 echo "${ECHO_T}$hardcode_action_F77" >&6
20692 if test "$hardcode_action_F77" = relink; then
20693 # Fast installation is not supported
20694 enable_fast_install=no
20695 elif test "$shlibpath_overrides_runpath" = yes ||
20696 test "$enable_shared" = no; then
20697 # Fast installation is not necessary
20698 enable_fast_install=needless
20703 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20704 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20705 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20706 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20707 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20708 echo "$as_me:$LINENO: result: yes" >&5
20709 echo "${ECHO_T}yes" >&6
20711 # FIXME - insert some real tests, host_os isn't really good enough
20714 if test -n "$STRIP" ; then
20715 striplib="$STRIP -x"
20716 echo "$as_me:$LINENO: result: yes" >&5
20717 echo "${ECHO_T}yes" >&6
20719 echo "$as_me:$LINENO: result: no" >&5
20720 echo "${ECHO_T}no" >&6
20724 echo "$as_me:$LINENO: result: no" >&5
20725 echo "${ECHO_T}no" >&6
20732 # The else clause should only fire when bootstrapping the
20733 # libtool distribution, otherwise you forgot to ship ltmain.sh
20734 # with your package, and you will get complaints that there are
20735 # no rules to generate ltmain.sh.
20736 if test -f "$ltmain"; then
20737 # See if we are running on zsh, and set the options which allow our commands through
20738 # without removal of \ escapes.
20739 if test -n "${ZSH_VERSION+set}" ; then
20740 setopt NO_GLOB_SUBST
20742 # Now quote all the things that may contain metacharacters while being
20743 # careful not to overquote the AC_SUBSTed values. We take copies of the
20744 # variables and quote the copies for generation of the libtool script.
20745 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20747 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20748 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20749 deplibs_check_method reload_flag reload_cmds need_locks \
20750 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20751 lt_cv_sys_global_symbol_to_c_name_address \
20752 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20753 old_postinstall_cmds old_postuninstall_cmds \
20757 lt_prog_compiler_wl_F77 \
20758 lt_prog_compiler_pic_F77 \
20759 lt_prog_compiler_static_F77 \
20760 lt_prog_compiler_no_builtin_flag_F77 \
20761 export_dynamic_flag_spec_F77 \
20762 thread_safe_flag_spec_F77 \
20763 whole_archive_flag_spec_F77 \
20764 enable_shared_with_static_runtimes_F77 \
20765 old_archive_cmds_F77 \
20766 old_archive_from_new_cmds_F77 \
20767 predep_objects_F77 \
20768 postdep_objects_F77 \
20771 compiler_lib_search_path_F77 \
20773 archive_expsym_cmds_F77 \
20774 postinstall_cmds_F77 \
20775 postuninstall_cmds_F77 \
20776 old_archive_from_expsyms_cmds_F77 \
20777 allow_undefined_flag_F77 \
20778 no_undefined_flag_F77 \
20779 export_symbols_cmds_F77 \
20780 hardcode_libdir_flag_spec_F77 \
20781 hardcode_libdir_flag_spec_ld_F77 \
20782 hardcode_libdir_separator_F77 \
20783 hardcode_automatic_F77 \
20785 module_expsym_cmds_F77 \
20786 lt_cv_prog_compiler_c_o_F77 \
20787 exclude_expsyms_F77 \
20788 include_expsyms_F77; do
20791 old_archive_cmds_F77 | \
20792 old_archive_from_new_cmds_F77 | \
20793 archive_cmds_F77 | \
20794 archive_expsym_cmds_F77 | \
20795 module_cmds_F77 | \
20796 module_expsym_cmds_F77 | \
20797 old_archive_from_expsyms_cmds_F77 | \
20798 export_symbols_cmds_F77 | \
20799 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20800 postinstall_cmds | postuninstall_cmds | \
20801 old_postinstall_cmds | old_postuninstall_cmds | \
20802 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20803 # Double-quote double-evaled strings.
20804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20813 *'\$0 --fallback-echo"')
20814 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20820 cat <<__EOF__ >> "$cfgfile"
20821 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20825 # Shell to use when invoking shell scripts.
20828 # Whether or not to build shared libraries.
20829 build_libtool_libs=$enable_shared
20831 # Whether or not to build static libraries.
20832 build_old_libs=$enable_static
20834 # Whether or not to add -lc for building shared libraries.
20835 build_libtool_need_lc=$archive_cmds_need_lc_F77
20837 # Whether or not to disallow shared libs when runtime libs are static
20838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20840 # Whether or not to optimize for fast installation.
20841 fast_install=$enable_fast_install
20844 host_alias=$host_alias
20847 # An echo program that does not interpret backslashes.
20852 AR_FLAGS=$lt_AR_FLAGS
20857 # A language-specific compiler.
20858 CC=$lt_compiler_F77
20860 # Is the compiler the GNU C compiler?
20866 # The linker used to build libraries.
20869 # Whether we need hard or soft links.
20872 # A BSD-compatible nm program.
20875 # A symbol stripping program
20878 # Used to examine libraries when file_magic_cmd begins "file"
20879 MAGIC_CMD=$MAGIC_CMD
20881 # Used on cygwin: DLL creation program.
20884 # Used on cygwin: object dumper.
20887 # Used on cygwin: assembler.
20890 # The name of the directory that contains temporary libtool files.
20893 # How to create reloadable object files.
20894 reload_flag=$lt_reload_flag
20895 reload_cmds=$lt_reload_cmds
20897 # How to pass a linker flag through the compiler.
20898 wl=$lt_lt_prog_compiler_wl_F77
20900 # Object file suffix (normally "o").
20901 objext="$ac_objext"
20903 # Old archive suffix (normally "a").
20906 # Shared library suffix (normally ".so").
20907 shrext_cmds='$shrext_cmds'
20909 # Executable file suffix (normally "").
20912 # Additional compiler flags for building library objects.
20913 pic_flag=$lt_lt_prog_compiler_pic_F77
20916 # What is the maximum length of a command?
20917 max_cmd_len=$lt_cv_sys_max_cmd_len
20919 # Does compiler simultaneously support -c and -o options?
20920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20922 # Must we lock files when doing compilation ?
20923 need_locks=$lt_need_locks
20925 # Do we need the lib prefix for modules?
20926 need_lib_prefix=$need_lib_prefix
20928 # Do we need a version for libraries?
20929 need_version=$need_version
20931 # Whether dlopen is supported.
20932 dlopen_support=$enable_dlopen
20934 # Whether dlopen of programs is supported.
20935 dlopen_self=$enable_dlopen_self
20937 # Whether dlopen of statically linked programs is supported.
20938 dlopen_self_static=$enable_dlopen_self_static
20940 # Compiler flag to prevent dynamic linking.
20941 link_static_flag=$lt_lt_prog_compiler_static_F77
20943 # Compiler flag to turn off builtin functions.
20944 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20946 # Compiler flag to allow reflexive dlopens.
20947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20949 # Compiler flag to generate shared objects directly from archives.
20950 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20952 # Compiler flag to generate thread-safe objects.
20953 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20955 # Library versioning type.
20956 version_type=$version_type
20958 # Format of library name prefix.
20959 libname_spec=$lt_libname_spec
20961 # List of archive names. First name is the real one, the rest are links.
20962 # The last name is the one that the linker finds with -lNAME.
20963 library_names_spec=$lt_library_names_spec
20965 # The coded name of the library, if different from the real name.
20966 soname_spec=$lt_soname_spec
20968 # Commands used to build and install an old-style archive.
20970 old_archive_cmds=$lt_old_archive_cmds_F77
20971 old_postinstall_cmds=$lt_old_postinstall_cmds
20972 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20974 # Create an old-style archive from a shared archive.
20975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20977 # Create a temporary old-style archive to link instead of a shared archive.
20978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20980 # Commands used to build and install a shared archive.
20981 archive_cmds=$lt_archive_cmds_F77
20982 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20983 postinstall_cmds=$lt_postinstall_cmds
20984 postuninstall_cmds=$lt_postuninstall_cmds
20986 # Commands used to build a loadable module (assumed same as above if empty)
20987 module_cmds=$lt_module_cmds_F77
20988 module_expsym_cmds=$lt_module_expsym_cmds_F77
20990 # Commands to strip libraries.
20991 old_striplib=$lt_old_striplib
20992 striplib=$lt_striplib
20994 # Dependencies to place before the objects being linked to create a
20996 predep_objects=$lt_predep_objects_F77
20998 # Dependencies to place after the objects being linked to create a
21000 postdep_objects=$lt_postdep_objects_F77
21002 # Dependencies to place before the objects being linked to create a
21004 predeps=$lt_predeps_F77
21006 # Dependencies to place after the objects being linked to create a
21008 postdeps=$lt_postdeps_F77
21010 # The library search path used internally by the compiler when linking
21011 # a shared library.
21012 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21014 # Method to check whether dependent libraries are shared objects.
21015 deplibs_check_method=$lt_deplibs_check_method
21017 # Command to use when deplibs_check_method == file_magic.
21018 file_magic_cmd=$lt_file_magic_cmd
21020 # Flag that allows shared libraries with undefined symbols to be built.
21021 allow_undefined_flag=$lt_allow_undefined_flag_F77
21023 # Flag that forces no undefined symbols.
21024 no_undefined_flag=$lt_no_undefined_flag_F77
21026 # Commands used to finish a libtool library installation in a directory.
21027 finish_cmds=$lt_finish_cmds
21029 # Same as above, but a single script fragment to be evaled but not shown.
21030 finish_eval=$lt_finish_eval
21032 # Take the output of nm and produce a listing of raw symbols and C names.
21033 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21035 # Transform the output of nm in a proper C declaration
21036 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21038 # Transform the output of nm in a C name address pair
21039 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21041 # This is the shared library runtime path variable.
21042 runpath_var=$runpath_var
21044 # This is the shared library path variable.
21045 shlibpath_var=$shlibpath_var
21047 # Is shlibpath searched before the hard-coded library search path?
21048 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21050 # How to hardcode a shared library path into an executable.
21051 hardcode_action=$hardcode_action_F77
21053 # Whether we should hardcode library paths into libraries.
21054 hardcode_into_libs=$hardcode_into_libs
21056 # Flag to hardcode \$libdir into a binary during linking.
21057 # This must work even if \$libdir does not exist.
21058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21060 # If ld is used when linking, flag to hardcode \$libdir into
21061 # a binary during linking. This must work even if \$libdir does
21063 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21065 # Whether we need a single -rpath flag with a separated argument.
21066 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21068 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21069 # resulting binary.
21070 hardcode_direct=$hardcode_direct_F77
21072 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21073 # resulting binary.
21074 hardcode_minus_L=$hardcode_minus_L_F77
21076 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21077 # the resulting binary.
21078 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21080 # Set to yes if building a shared library automatically hardcodes DIR into the library
21081 # and all subsequent libraries and executables linked against it.
21082 hardcode_automatic=$hardcode_automatic_F77
21084 # Variables whose values should be saved in libtool wrapper scripts and
21085 # restored at relink time.
21086 variables_saved_for_relink="$variables_saved_for_relink"
21088 # Whether libtool must link a program against all its dependency libraries.
21089 link_all_deplibs=$link_all_deplibs_F77
21091 # Compile-time system search path for libraries
21092 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21094 # Run-time system search path for libraries
21095 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21097 # Fix the shell variable \$srcfile for the compiler.
21098 fix_srcfile_path="$fix_srcfile_path_F77"
21100 # Set to yes if exported symbols are required.
21101 always_export_symbols=$always_export_symbols_F77
21103 # The commands to list exported symbols.
21104 export_symbols_cmds=$lt_export_symbols_cmds_F77
21106 # The commands to extract the exported symbol list from a shared archive.
21107 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21109 # Symbols that should not be listed in the preloaded symbols.
21110 exclude_expsyms=$lt_exclude_expsyms_F77
21112 # Symbols that must always be exported.
21113 include_expsyms=$lt_include_expsyms_F77
21115 # ### END LIBTOOL TAG CONFIG: $tagname
21121 # If there is no Makefile yet, we rely on a make rule to execute
21122 # `config.status --recheck' to rerun these tests and create the
21123 # libtool script then.
21124 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21125 if test -f "$ltmain_in"; then
21126 test -f Makefile && make "$ltmain"
21132 ac_cpp='$CPP $CPPFLAGS'
21133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21145 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21147 ac_cpp='$CPP $CPPFLAGS'
21148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21153 # Source file extension for Java test sources.
21156 # Object file extension for compiled Java test sources.
21160 # Code to be used in simple compile tests
21161 lt_simple_compile_test_code="class foo {}\n"
21163 # Code to be used in simple link tests
21164 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21166 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21168 # If no C compiler was specified, use CC.
21171 # Allow CC to be a program name with arguments.
21175 # Allow CC to be a program name with arguments.
21181 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21182 archive_cmds_need_lc_GCJ=no
21185 lt_prog_compiler_no_builtin_flag_GCJ=
21187 if test "$GCC" = yes; then
21188 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21191 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21192 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21193 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 lt_cv_prog_compiler_rtti_exceptions=no
21197 ac_outfile=conftest.$ac_objext
21198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21199 lt_compiler_flag="-fno-rtti -fno-exceptions"
21200 # Insert the option either (1) after the last *FLAGS variable, or
21201 # (2) before a word containing "conftest.", or (3) at the end.
21202 # Note that $ac_compile itself does not contain backslashes and begins
21203 # with a dollar sign (not a hyphen), so the echo should work correctly.
21204 # The option is referenced via a variable to avoid confusing sed.
21205 lt_compile=`echo "$ac_compile" | $SED \
21206 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21208 -e 's:$: $lt_compiler_flag:'`
21209 (eval echo "\"\$as_me:21209: $lt_compile\"" >&5)
21210 (eval "$lt_compile" 2>conftest.err)
21212 cat conftest.err >&5
21213 echo "$as_me:21213: \$? = $ac_status" >&5
21214 if (exit $ac_status) && test -s "$ac_outfile"; then
21215 # The compiler can only warn and ignore the option if not recognized
21216 # So say no if there are warnings
21217 if test ! -s conftest.err; then
21218 lt_cv_prog_compiler_rtti_exceptions=yes
21224 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21225 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21227 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21228 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21235 lt_prog_compiler_wl_GCJ=
21236 lt_prog_compiler_pic_GCJ=
21237 lt_prog_compiler_static_GCJ=
21239 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21240 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21242 if test "$GCC" = yes; then
21243 lt_prog_compiler_wl_GCJ='-Wl,'
21244 lt_prog_compiler_static_GCJ='-static'
21248 # All AIX code is PIC.
21249 if test "$host_cpu" = ia64; then
21250 # AIX 5 now supports IA64 processor
21251 lt_prog_compiler_static_GCJ='-Bstatic'
21256 # FIXME: we need at least 68020 code to build shared libraries, but
21257 # adding the `-m68020' flag to GCC prevents building anything better,
21259 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21262 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21263 # PIC is the default for these OSes.
21266 mingw* | pw32* | os2*)
21267 # This hack is so that the source file can tell whether it is being
21268 # built for inclusion in a dll (and should export symbols for example).
21269 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21272 darwin* | rhapsody*)
21273 # PIC is the default on this platform
21274 # Common symbols not allowed in MH_DYLIB files
21275 lt_prog_compiler_pic_GCJ='-fno-common'
21279 # Just because we use GCC doesn't mean we suddenly get shared libraries
21280 # on systems that don't support them.
21281 lt_prog_compiler_can_build_shared_GCJ=no
21286 if test -d /usr/nec; then
21287 lt_prog_compiler_pic_GCJ=-Kconform_pic
21292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21293 # not for PA HP-UX.
21294 case "$host_cpu" in
21299 lt_prog_compiler_pic_GCJ='-fPIC'
21305 lt_prog_compiler_pic_GCJ='-fPIC'
21309 # PORTME Check for flag to pass linker flags through the system compiler.
21312 lt_prog_compiler_wl_GCJ='-Wl,'
21313 if test "$host_cpu" = ia64; then
21314 # AIX 5 now supports IA64 processor
21315 lt_prog_compiler_static_GCJ='-Bstatic'
21317 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21321 # PIC is the default on this platform
21322 # Common symbols not allowed in MH_DYLIB files
21323 case "$cc_basename" in
21325 lt_prog_compiler_pic_GCJ='-qnocommon'
21326 lt_prog_compiler_wl_GCJ='-Wl,'
21331 mingw* | pw32* | os2*)
21332 # This hack is so that the source file can tell whether it is being
21333 # built for inclusion in a dll (and should export symbols for example).
21334 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21337 hpux9* | hpux10* | hpux11*)
21338 lt_prog_compiler_wl_GCJ='-Wl,'
21339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21340 # not for PA HP-UX.
21341 case "$host_cpu" in
21346 lt_prog_compiler_pic_GCJ='+Z'
21349 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21350 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21353 irix5* | irix6* | nonstopux*)
21354 lt_prog_compiler_wl_GCJ='-Wl,'
21355 # PIC (with -KPIC) is the default.
21356 lt_prog_compiler_static_GCJ='-non_shared'
21360 lt_prog_compiler_pic_GCJ='-KPIC'
21361 lt_prog_compiler_static_GCJ='-Bstatic'
21367 lt_prog_compiler_wl_GCJ='-Wl,'
21368 lt_prog_compiler_pic_GCJ='-KPIC'
21369 lt_prog_compiler_static_GCJ='-static'
21372 lt_prog_compiler_wl_GCJ='-Wl,'
21373 # All Alpha code is PIC.
21374 lt_prog_compiler_static_GCJ='-non_shared'
21379 osf3* | osf4* | osf5*)
21380 lt_prog_compiler_wl_GCJ='-Wl,'
21381 # All OSF/1 code is PIC.
21382 lt_prog_compiler_static_GCJ='-non_shared'
21386 lt_prog_compiler_pic_GCJ='-Kpic'
21387 lt_prog_compiler_static_GCJ='-dn'
21391 lt_prog_compiler_wl_GCJ='-Wl,'
21392 lt_prog_compiler_pic_GCJ='-KPIC'
21393 lt_prog_compiler_static_GCJ='-Bstatic'
21397 lt_prog_compiler_wl_GCJ='-Qoption ld '
21398 lt_prog_compiler_pic_GCJ='-PIC'
21399 lt_prog_compiler_static_GCJ='-Bstatic'
21402 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21403 lt_prog_compiler_wl_GCJ='-Wl,'
21404 lt_prog_compiler_pic_GCJ='-KPIC'
21405 lt_prog_compiler_static_GCJ='-Bstatic'
21409 if test -d /usr/nec ;then
21410 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21411 lt_prog_compiler_static_GCJ='-Bstatic'
21416 lt_prog_compiler_pic_GCJ='-pic'
21417 lt_prog_compiler_static_GCJ='-Bstatic'
21421 lt_prog_compiler_can_build_shared_GCJ=no
21426 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21427 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21430 # Check to make sure the PIC flag actually works.
21432 if test -n "$lt_prog_compiler_pic_GCJ"; then
21434 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21435 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21436 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21439 lt_prog_compiler_pic_works_GCJ=no
21440 ac_outfile=conftest.$ac_objext
21441 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21442 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21443 # Insert the option either (1) after the last *FLAGS variable, or
21444 # (2) before a word containing "conftest.", or (3) at the end.
21445 # Note that $ac_compile itself does not contain backslashes and begins
21446 # with a dollar sign (not a hyphen), so the echo should work correctly.
21447 # The option is referenced via a variable to avoid confusing sed.
21448 lt_compile=`echo "$ac_compile" | $SED \
21449 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21451 -e 's:$: $lt_compiler_flag:'`
21452 (eval echo "\"\$as_me:21452: $lt_compile\"" >&5)
21453 (eval "$lt_compile" 2>conftest.err)
21455 cat conftest.err >&5
21456 echo "$as_me:21456: \$? = $ac_status" >&5
21457 if (exit $ac_status) && test -s "$ac_outfile"; then
21458 # The compiler can only warn and ignore the option if not recognized
21459 # So say no if there are warnings
21460 if test ! -s conftest.err; then
21461 lt_prog_compiler_pic_works_GCJ=yes
21467 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21468 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21470 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21471 case $lt_prog_compiler_pic_GCJ in
21473 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21476 lt_prog_compiler_pic_GCJ=
21477 lt_prog_compiler_can_build_shared_GCJ=no
21482 # For platforms which do not support PIC, -DPIC is meaningless:
21484 lt_prog_compiler_pic_GCJ=
21487 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21491 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21492 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21493 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21494 echo $ECHO_N "(cached) $ECHO_C" >&6
21496 lt_cv_prog_compiler_c_o_GCJ=no
21497 $rm -r conftest 2>/dev/null
21501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21503 lt_compiler_flag="-o out/conftest2.$ac_objext"
21504 # Insert the option either (1) after the last *FLAGS variable, or
21505 # (2) before a word containing "conftest.", or (3) at the end.
21506 # Note that $ac_compile itself does not contain backslashes and begins
21507 # with a dollar sign (not a hyphen), so the echo should work correctly.
21508 lt_compile=`echo "$ac_compile" | $SED \
21509 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21511 -e 's:$: $lt_compiler_flag:'`
21512 (eval echo "\"\$as_me:21512: $lt_compile\"" >&5)
21513 (eval "$lt_compile" 2>out/conftest.err)
21515 cat out/conftest.err >&5
21516 echo "$as_me:21516: \$? = $ac_status" >&5
21517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21519 # The compiler can only warn and ignore the option if not recognized
21520 # So say no if there are warnings
21521 if test ! -s out/conftest.err; then
21522 lt_cv_prog_compiler_c_o_GCJ=yes
21527 # SGI C++ compiler will create directory out/ii_files/ for
21528 # template instantiation
21529 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21530 $rm out/* && rmdir out
21536 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21540 hard_links="nottested"
21541 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21542 # do not overwrite the value of need_locks provided by the user
21543 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21549 ln conftest.a conftest.b 2>&5 || hard_links=no
21550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21551 echo "$as_me:$LINENO: result: $hard_links" >&5
21552 echo "${ECHO_T}$hard_links" >&6
21553 if test "$hard_links" = no; then
21554 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21562 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21566 allow_undefined_flag_GCJ=
21567 enable_shared_with_static_runtimes_GCJ=no
21569 archive_expsym_cmds_GCJ=
21570 old_archive_From_new_cmds_GCJ=
21571 old_archive_from_expsyms_cmds_GCJ=
21572 export_dynamic_flag_spec_GCJ=
21573 whole_archive_flag_spec_GCJ=
21574 thread_safe_flag_spec_GCJ=
21575 hardcode_libdir_flag_spec_GCJ=
21576 hardcode_libdir_flag_spec_ld_GCJ=
21577 hardcode_libdir_separator_GCJ=
21578 hardcode_direct_GCJ=no
21579 hardcode_minus_L_GCJ=no
21580 hardcode_shlibpath_var_GCJ=unsupported
21581 link_all_deplibs_GCJ=unknown
21582 hardcode_automatic_GCJ=no
21584 module_expsym_cmds_GCJ=
21585 always_export_symbols_GCJ=no
21586 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21587 # include_expsyms should be a list of space-separated symbols to be *always*
21588 # included in the symbol list
21589 include_expsyms_GCJ=
21590 # exclude_expsyms can be an extended regexp of symbols to exclude
21591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21593 # as well as any symbol that contains `d'.
21594 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21596 # platforms (ab)use it in PIC code, but their linkers get confused if
21597 # the symbol is explicitly referenced. Since portable code cannot
21598 # rely on this symbol name, it's probably fine to never include it in
21599 # preloaded symbol tables.
21600 extract_expsyms_cmds=
21603 cygwin* | mingw* | pw32*)
21604 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21605 # When not using gcc, we currently assume that we are using
21606 # Microsoft Visual C++.
21607 if test "$GCC" != yes; then
21617 if test "$with_gnu_ld" = yes; then
21618 # If archive_cmds runs LD, not CC, wlarc should be empty
21621 # See if GNU ld supports shared libraries.
21623 aix3* | aix4* | aix5*)
21624 # On AIX/PPC, the GNU linker is very broken
21625 if test "$host_cpu" != ia64; then
21629 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21630 *** to be unable to reliably create shared libraries on AIX.
21631 *** Therefore, libtool is disabling shared libraries support. If you
21632 *** really care for shared libraries, you may want to modify your PATH
21633 *** so that a non-GNU linker is found, and then restart.
21640 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)'
21641 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21642 hardcode_minus_L_GCJ=yes
21644 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21645 # that the semantics of dynamic libraries on AmigaOS, at least up
21646 # to version 4, is to share data among multiple programs linked
21647 # with the same dynamic library. Since this doesn't match the
21648 # behavior of shared libraries on other platforms, we can't use
21654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21655 allow_undefined_flag_GCJ=unsupported
21656 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21657 # support --undefined. This deserves some investigation. FIXME
21658 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21664 cygwin* | mingw* | pw32*)
21665 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21666 # as there is no search path for DLLs.
21667 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21668 allow_undefined_flag_GCJ=unsupported
21669 always_export_symbols_GCJ=no
21670 enable_shared_with_static_runtimes_GCJ=yes
21671 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21673 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21674 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21675 # If the export-symbols file already is a .def file (1st line
21676 # is EXPORTS), use it as is; otherwise, prepend...
21677 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21678 cp $export_symbols $output_objdir/$soname.def;
21680 echo EXPORTS > $output_objdir/$soname.def;
21681 cat $export_symbols >> $output_objdir/$soname.def;
21683 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21691 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21694 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21695 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21700 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21704 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21705 *** create shared libraries on Solaris systems. Therefore, libtool
21706 *** is disabling shared libraries support. We urge you to upgrade GNU
21707 *** binutils to release 2.9.1 or newer. Another option is to modify
21708 *** your PATH or compiler configuration so that the native linker is
21709 *** used, and then restart.
21712 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21714 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21721 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21723 hardcode_direct_GCJ=yes
21724 hardcode_shlibpath_var_GCJ=no
21728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21729 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21730 archive_cmds_GCJ="$tmp_archive_cmds"
21731 supports_anon_versioning=no
21732 case `$LD -v 2>/dev/null` in
21733 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21734 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21735 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21736 *\ 2.11.*) ;; # other 2.11 versions
21737 *) supports_anon_versioning=yes ;;
21739 if test $supports_anon_versioning = yes; then
21740 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21742 $echo "local: *; };" >> $output_objdir/$libname.ver~
21743 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21745 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21754 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21755 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21762 if test "$ld_shlibs_GCJ" = yes; then
21763 runpath_var=LD_RUN_PATH
21764 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21765 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21766 # ancient GNU ld didn't support --whole-archive et. al.
21767 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21768 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21770 whole_archive_flag_spec_GCJ=
21774 # PORTME fill in a description of your system's linker (not GNU ld)
21777 allow_undefined_flag_GCJ=unsupported
21778 always_export_symbols_GCJ=yes
21779 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'
21780 # Note: this linker hardcodes the directories in LIBPATH if there
21781 # are no directories specified by -L.
21782 hardcode_minus_L_GCJ=yes
21783 if test "$GCC" = yes && test -z "$link_static_flag"; then
21784 # Neither direct hardcoding nor static linking is supported with a
21786 hardcode_direct_GCJ=unsupported
21791 if test "$host_cpu" = ia64; then
21792 # On IA64, the linker does run time linking by default, so we don't
21793 # have to do anything special.
21794 aix_use_runtimelinking=no
21795 exp_sym_flag='-Bexport'
21798 # If we're using GNU nm, then we don't want the "-C" option.
21799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21800 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21801 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'
21803 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'
21805 aix_use_runtimelinking=no
21807 # Test if we are trying to use run time linking or normal
21808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21809 # need to do runtime linking.
21810 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21811 for ld_flag in $LDFLAGS; do
21812 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21813 aix_use_runtimelinking=yes
21819 exp_sym_flag='-bexport'
21820 no_entry_flag='-bnoentry'
21823 # When large executables or shared objects are built, AIX ld can
21824 # have problems creating the table of contents. If linking a library
21825 # or program results in "error TOC overflow" add -mminimal-toc to
21826 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21827 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21829 archive_cmds_GCJ=''
21830 hardcode_direct_GCJ=yes
21831 hardcode_libdir_separator_GCJ=':'
21832 link_all_deplibs_GCJ=yes
21834 if test "$GCC" = yes; then
21835 case $host_os in aix4.012|aix4.012.*)
21836 # We only want to do this on AIX 4.2 and lower, the check
21837 # below for broken collect2 doesn't work under 4.3+
21838 collect2name=`${CC} -print-prog-name=collect2`
21839 if test -f "$collect2name" && \
21840 strings "$collect2name" | grep resolve_lib_name >/dev/null
21842 # We have reworked collect2
21843 hardcode_direct_GCJ=yes
21845 # We have old collect2
21846 hardcode_direct_GCJ=unsupported
21847 # It fails to find uninstalled libraries when the uninstalled
21848 # path is not listed in the libpath. Setting hardcode_minus_L
21849 # to unsupported forces relinking
21850 hardcode_minus_L_GCJ=yes
21851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21852 hardcode_libdir_separator_GCJ=
21855 shared_flag='-shared'
21858 if test "$host_cpu" = ia64; then
21859 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21860 # chokes on -Wl,-G. The following line is correct:
21863 if test "$aix_use_runtimelinking" = yes; then
21864 shared_flag='${wl}-G'
21866 shared_flag='${wl}-bM:SRE'
21871 # It seems that -bexpall does not export symbols beginning with
21872 # underscore (_), so it is better to generate a list of symbols to export.
21873 always_export_symbols_GCJ=yes
21874 if test "$aix_use_runtimelinking" = yes; then
21875 # Warning - without using the other runtime loading flags (-brtl),
21876 # -berok will link without error, but may produce a broken library.
21877 allow_undefined_flag_GCJ='-berok'
21878 # Determine the default libpath from the value encoded in an empty executable.
21879 cat >conftest.$ac_ext <<_ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21894 rm -f conftest.$ac_objext conftest$ac_exeext
21895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21896 (eval $ac_link) 2>conftest.er1
21898 grep -v '^ *+' conftest.er1 >conftest.err
21900 cat conftest.err >&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); } &&
21903 { ac_try='test -z "$ac_c_werror_flag"
21904 || test ! -s conftest.err'
21905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906 (eval $ac_try) 2>&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; } &&
21910 { ac_try='test -s conftest$ac_exeext'
21911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; }; then
21917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21919 # Check for a 64-bit object if we didn't find anything.
21920 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; }
21923 echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21927 rm -f conftest.err conftest.$ac_objext \
21928 conftest$ac_exeext conftest.$ac_ext
21929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21931 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21932 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"
21934 if test "$host_cpu" = ia64; then
21935 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21936 allow_undefined_flag_GCJ="-z nodefs"
21937 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"
21939 # Determine the default libpath from the value encoded in an empty executable.
21940 cat >conftest.$ac_ext <<_ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21955 rm -f conftest.$ac_objext conftest$ac_exeext
21956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21957 (eval $ac_link) 2>conftest.er1
21959 grep -v '^ *+' conftest.er1 >conftest.err
21961 cat conftest.err >&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } &&
21964 { ac_try='test -z "$ac_c_werror_flag"
21965 || test ! -s conftest.err'
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; } &&
21971 { ac_try='test -s conftest$ac_exeext'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; }; then
21978 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21980 # Check for a 64-bit object if we didn't find anything.
21981 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; }
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21988 rm -f conftest.err conftest.$ac_objext \
21989 conftest$ac_exeext conftest.$ac_ext
21990 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21992 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21993 # Warning - without using the other run time loading flags,
21994 # -berok will link without error, but may produce a broken library.
21995 no_undefined_flag_GCJ=' ${wl}-bernotok'
21996 allow_undefined_flag_GCJ=' ${wl}-berok'
21997 # -bexpall does not export symbols beginning with underscore (_)
21998 always_export_symbols_GCJ=yes
21999 # Exported symbols can be pulled into shared objects from archives
22000 whole_archive_flag_spec_GCJ=' '
22001 archive_cmds_need_lc_GCJ=yes
22002 # This is similar to how AIX traditionally builds it's shared libraries.
22003 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'
22009 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)'
22010 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22011 hardcode_minus_L_GCJ=yes
22012 # see comment about different semantics on the GNU ld section
22017 export_dynamic_flag_spec_GCJ=-rdynamic
22020 cygwin* | mingw* | pw32*)
22021 # When not using gcc, we currently assume that we are using
22022 # Microsoft Visual C++.
22023 # hardcode_libdir_flag_spec is actually meaningless, as there is
22024 # no search path for DLLs.
22025 hardcode_libdir_flag_spec_GCJ=' '
22026 allow_undefined_flag_GCJ=unsupported
22027 # Tell ltmain to make .lib files, not .a files.
22029 # Tell ltmain to make .dll files, not .so files.
22031 # FIXME: Setting linknames here is a bad hack.
22032 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22033 # The linker will automatically build a .lib file if we build a DLL.
22034 old_archive_From_new_cmds_GCJ='true'
22035 # FIXME: Should let the user specify the lib program.
22036 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22037 fix_srcfile_path='`cygpath -w "$srcfile"`'
22038 enable_shared_with_static_runtimes_GCJ=yes
22041 darwin* | rhapsody*)
22043 rhapsody* | darwin1.[012])
22044 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22047 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22048 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22050 case ${MACOSX_DEPLOYMENT_TARGET} in
22052 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22055 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22061 archive_cmds_need_lc_GCJ=no
22062 hardcode_direct_GCJ=no
22063 hardcode_automatic_GCJ=yes
22064 hardcode_shlibpath_var_GCJ=unsupported
22065 whole_archive_flag_spec_GCJ=''
22066 link_all_deplibs_GCJ=yes
22067 if test "$GCC" = yes ; then
22068 output_verbose_link_cmd='echo'
22069 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22070 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22071 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22072 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}'
22073 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}'
22075 case "$cc_basename" in
22077 output_verbose_link_cmd='echo'
22078 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22079 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22080 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22081 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}'
22082 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}'
22092 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22094 hardcode_shlibpath_var_GCJ=no
22101 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22102 # support. Future versions do this automatically, but an explicit c++rt0.o
22103 # does not break anything, and helps significantly (at the cost of a little
22106 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22107 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22108 hardcode_direct_GCJ=yes
22109 hardcode_shlibpath_var_GCJ=no
22112 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22114 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22115 hardcode_direct_GCJ=yes
22116 hardcode_minus_L_GCJ=yes
22117 hardcode_shlibpath_var_GCJ=no
22120 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22121 freebsd* | kfreebsd*-gnu)
22122 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22123 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22124 hardcode_direct_GCJ=yes
22125 hardcode_shlibpath_var_GCJ=no
22129 if test "$GCC" = yes; then
22130 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'
22132 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'
22134 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22135 hardcode_libdir_separator_GCJ=:
22136 hardcode_direct_GCJ=yes
22138 # hardcode_minus_L: Not really in the search PATH,
22139 # but as the default location of the library.
22140 hardcode_minus_L_GCJ=yes
22141 export_dynamic_flag_spec_GCJ='${wl}-E'
22145 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22146 case "$host_cpu" in
22148 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22151 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22155 case "$host_cpu" in
22157 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22160 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22164 if test "$with_gnu_ld" = no; then
22165 case "$host_cpu" in
22167 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22168 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22169 hardcode_libdir_separator_GCJ=:
22170 hardcode_direct_GCJ=no
22171 hardcode_shlibpath_var_GCJ=no
22174 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22175 hardcode_direct_GCJ=no
22176 hardcode_shlibpath_var_GCJ=no
22178 # hardcode_minus_L: Not really in the search PATH,
22179 # but as the default location of the library.
22180 hardcode_minus_L_GCJ=yes
22183 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22184 hardcode_libdir_separator_GCJ=:
22185 hardcode_direct_GCJ=yes
22186 export_dynamic_flag_spec_GCJ='${wl}-E'
22188 # hardcode_minus_L: Not really in the search PATH,
22189 # but as the default location of the library.
22190 hardcode_minus_L_GCJ=yes
22196 irix5* | irix6* | nonstopux*)
22197 if test "$GCC" = yes; then
22198 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'
22200 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'
22201 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22204 hardcode_libdir_separator_GCJ=:
22205 link_all_deplibs_GCJ=yes
22209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22210 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22212 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22214 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22215 hardcode_direct_GCJ=yes
22216 hardcode_shlibpath_var_GCJ=no
22220 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22221 hardcode_direct_GCJ=yes
22222 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22223 hardcode_libdir_separator_GCJ=:
22224 hardcode_shlibpath_var_GCJ=no
22228 hardcode_direct_GCJ=yes
22229 hardcode_shlibpath_var_GCJ=no
22230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22231 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22232 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22233 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22234 export_dynamic_flag_spec_GCJ='${wl}-E'
22237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22238 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22239 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22242 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22243 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22250 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22251 hardcode_minus_L_GCJ=yes
22252 allow_undefined_flag_GCJ=unsupported
22253 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'
22254 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22258 if test "$GCC" = yes; then
22259 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22260 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'
22262 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22263 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'
22265 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22266 hardcode_libdir_separator_GCJ=:
22269 osf4* | osf5*) # as osf3* with the addition of -msym flag
22270 if test "$GCC" = yes; then
22271 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22272 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'
22273 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22275 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22276 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'
22277 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~
22278 $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'
22280 # Both c and cxx compiler support -rpath directly
22281 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22283 hardcode_libdir_separator_GCJ=:
22287 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22288 hardcode_shlibpath_var_GCJ=no
22289 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22290 runpath_var=LD_RUN_PATH
22291 hardcode_runpath_var=yes
22295 no_undefined_flag_GCJ=' -z text'
22296 if test "$GCC" = yes; then
22297 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22298 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22299 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22301 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22302 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22305 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22306 hardcode_shlibpath_var_GCJ=no
22308 solaris2.[0-5] | solaris2.[0-5].*) ;;
22309 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22310 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22312 link_all_deplibs_GCJ=yes
22316 if test "x$host_vendor" = xsequent; then
22317 # Use $CC to link under sequent, because it throws in some extra .o
22318 # files that make .init and .fini sections work.
22319 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22321 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22324 hardcode_direct_GCJ=yes
22325 hardcode_minus_L_GCJ=yes
22326 hardcode_shlibpath_var_GCJ=no
22330 case $host_vendor in
22332 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22333 hardcode_direct_GCJ=yes # is this really true???
22336 ## LD is ld it makes a PLAMLIB
22337 ## CC just makes a GrossModule.
22338 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22339 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22340 hardcode_direct_GCJ=no
22343 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22347 runpath_var='LD_RUN_PATH'
22348 hardcode_shlibpath_var_GCJ=no
22352 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22353 hardcode_shlibpath_var_GCJ=no
22354 export_dynamic_flag_spec_GCJ='-Bexport'
22358 if test -d /usr/nec; then
22359 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22360 hardcode_shlibpath_var_GCJ=no
22361 runpath_var=LD_RUN_PATH
22362 hardcode_runpath_var=yes
22368 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22369 hardcode_direct_GCJ=yes
22370 hardcode_minus_L_GCJ=no
22371 hardcode_shlibpath_var_GCJ=no
22372 hardcode_runpath_var=yes
22373 runpath_var=LD_RUN_PATH
22376 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22377 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22378 if test "$GCC" = yes; then
22379 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22381 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22383 runpath_var='LD_RUN_PATH'
22384 hardcode_shlibpath_var_GCJ=no
22388 no_undefined_flag_GCJ=' -z text'
22389 # $CC -shared without GNU ld will not create a library from C++
22390 # object files and a static libstdc++, better avoid it by now
22391 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22392 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22393 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22394 hardcode_libdir_flag_spec_GCJ=
22395 hardcode_shlibpath_var_GCJ=no
22396 runpath_var='LD_RUN_PATH'
22400 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22402 hardcode_shlibpath_var_GCJ=no
22411 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22412 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22413 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22416 if test "$GCC" = yes; then
22417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22421 # Do we need to explicitly link libc?
22423 case "x$archive_cmds_need_lc_GCJ" in
22425 # Assume -lc should be added
22426 archive_cmds_need_lc_GCJ=yes
22428 if test "$enable_shared" = yes && test "$GCC" = yes; then
22429 case $archive_cmds_GCJ in
22431 # FIXME: we may have to deal with multi-command sequences.
22434 # Test whether the compiler implicitly links with -lc since on some
22435 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22436 # to ld, don't add -lc before -lgcc.
22437 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22438 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22440 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443 (eval $ac_compile) 2>&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } 2>conftest.err; then
22449 libobjs=conftest.$ac_objext
22451 wl=$lt_prog_compiler_wl_GCJ
22457 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22458 allow_undefined_flag_GCJ=
22459 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22460 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }
22465 archive_cmds_need_lc_GCJ=no
22467 archive_cmds_need_lc_GCJ=yes
22469 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22471 cat conftest.err 1>&5
22474 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22475 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22482 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22483 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22484 library_names_spec=
22485 libname_spec='lib$name'
22489 postuninstall_cmds=
22493 shlibpath_overrides_runpath=unknown
22495 dynamic_linker="$host_os ld.so"
22496 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22497 if test "$GCC" = yes; then
22498 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22499 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22500 # if the path contains ";" then we assume it to be the separator
22501 # otherwise default to the standard path separator (i.e. ":") - it is
22502 # assumed that no part of a normal pathname contains ";" but that should
22503 # okay in the real world where ";" in dirpaths is itself problematic.
22504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22509 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22511 need_lib_prefix=unknown
22512 hardcode_into_libs=no
22514 # when you set need_version to no, make sure it does not cause -set_version
22515 # flags to be left without arguments
22516 need_version=unknown
22521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22522 shlibpath_var=LIBPATH
22524 # AIX 3 has no versioning support, so we append a major version to the name.
22525 soname_spec='${libname}${release}${shared_ext}$major'
22532 hardcode_into_libs=yes
22533 if test "$host_cpu" = ia64; then
22534 # AIX 5 supports IA64
22535 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22536 shlibpath_var=LD_LIBRARY_PATH
22538 # With GCC up to 2.95.x, collect2 would create an import file
22539 # for dependence libraries. The import file would start with
22540 # the line `#! .'. This would cause the generated library to
22541 # depend on `.', always an invalid library. This was fixed in
22542 # development snapshots of GCC prior to 3.0.
22544 aix4 | aix4.[01] | aix4.[01].*)
22545 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22547 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22550 can_build_shared=no
22554 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22555 # soname into executable. Probably we can add versioning support to
22556 # collect2, so additional links can be useful in future.
22557 if test "$aix_use_runtimelinking" = yes; then
22558 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22559 # instead of lib<name>.a to let people know that these are not
22560 # typical AIX shared libraries.
22561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22563 # We preserve .a as extension for shared libraries through AIX4.2
22564 # and later when we are not doing run time linking.
22565 library_names_spec='${libname}${release}.a $libname.a'
22566 soname_spec='${libname}${release}${shared_ext}$major'
22568 shlibpath_var=LIBPATH
22573 library_names_spec='$libname.ixlibrary $libname.a'
22574 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22575 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'
22579 library_names_spec='${libname}${shared_ext}'
22580 dynamic_linker="$host_os ld.so"
22581 shlibpath_var=LIBRARY_PATH
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22588 soname_spec='${libname}${release}${shared_ext}$major'
22589 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22590 shlibpath_var=LD_LIBRARY_PATH
22591 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22592 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22593 # the default ld.so.conf also contains /usr/contrib/lib and
22594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22595 # libtool to hard-code these into programs
22598 cygwin* | mingw* | pw32*)
22599 version_type=windows
22604 case $GCC,$host_os in
22605 yes,cygwin* | yes,mingw* | yes,pw32*)
22606 library_names_spec='$libname.dll.a'
22607 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22608 postinstall_cmds='base_file=`basename \${file}`~
22609 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22610 dldir=$destdir/`dirname \$dlpath`~
22611 test -d \$dldir || mkdir -p \$dldir~
22612 $install_prog $dir/$dlname \$dldir/$dlname'
22613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22614 dlpath=$dir/\$dldll~
22616 shlibpath_overrides_runpath=yes
22620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22622 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22625 # MinGW DLLs use traditional 'lib' prefix
22626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22628 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22629 # It is most probably a Windows format PATH printed by
22630 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22631 # path with ; separators, and with drive letters. We can handle the
22632 # drive letters (cygwin fileutils understands them), so leave them,
22633 # especially as we might pass files found there to a mingw objdump,
22634 # which wouldn't understand a cygwinified path. Ahh.
22635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22641 # pw32 DLLs use 'pw' prefix rather than 'lib'
22642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22648 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22651 dynamic_linker='Win32 ld.exe'
22652 # FIXME: first we should search . and the directory the executable is in
22656 darwin* | rhapsody*)
22657 dynamic_linker="$host_os dyld"
22658 version_type=darwin
22661 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22662 soname_spec='${libname}${release}${major}$shared_ext'
22663 shlibpath_overrides_runpath=yes
22664 shlibpath_var=DYLD_LIBRARY_PATH
22665 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22666 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22667 if test "$GCC" = yes; then
22668 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"`
22670 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22672 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22680 soname_spec='${libname}${release}${shared_ext}$major'
22681 shlibpath_var=LD_LIBRARY_PATH
22692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22693 soname_spec='${libname}${release}${shared_ext}$major'
22694 shlibpath_var=LD_LIBRARY_PATH
22695 shlibpath_overrides_runpath=no
22696 hardcode_into_libs=yes
22697 dynamic_linker='GNU ld.so'
22701 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22702 version_type=freebsd-$objformat
22703 case $version_type in
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22714 shlibpath_var=LD_LIBRARY_PATH
22717 shlibpath_overrides_runpath=yes
22719 freebsd3.01* | freebsdelf3.01*)
22720 shlibpath_overrides_runpath=yes
22721 hardcode_into_libs=yes
22724 shlibpath_overrides_runpath=no
22725 hardcode_into_libs=yes
22734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22735 soname_spec='${libname}${release}${shared_ext}$major'
22736 shlibpath_var=LD_LIBRARY_PATH
22737 hardcode_into_libs=yes
22740 hpux9* | hpux10* | hpux11*)
22741 # Give a soname corresponding to the major version so that dld.sl refuses to
22742 # link against other versions.
22746 case "$host_cpu" in
22749 hardcode_into_libs=yes
22750 dynamic_linker="$host_os dld.so"
22751 shlibpath_var=LD_LIBRARY_PATH
22752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754 soname_spec='${libname}${release}${shared_ext}$major'
22755 if test "X$HPUX_IA64_MODE" = X32; then
22756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22764 hardcode_into_libs=yes
22765 dynamic_linker="$host_os dld.sl"
22766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22769 soname_spec='${libname}${release}${shared_ext}$major'
22770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22775 dynamic_linker="$host_os dld.sl"
22776 shlibpath_var=SHLIB_PATH
22777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22779 soname_spec='${libname}${release}${shared_ext}$major'
22782 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22783 postinstall_cmds='chmod 555 $lib'
22786 irix5* | irix6* | nonstopux*)
22788 nonstopux*) version_type=nonstopux ;;
22790 if test "$lt_cv_prog_gnu_ld" = yes; then
22798 soname_spec='${libname}${release}${shared_ext}$major'
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22801 irix5* | nonstopux*)
22802 libsuff= shlibsuff=
22805 case $LD in # libtool.m4 will add one of these switches to LD
22806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22807 libsuff= shlibsuff= libmagic=32-bit;;
22808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22809 libsuff=32 shlibsuff=N32 libmagic=N32;;
22810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22812 *) libsuff= shlibsuff= libmagic=never-match;;
22816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22817 shlibpath_overrides_runpath=no
22818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22820 hardcode_into_libs=yes
22823 # No shared lib support for Linux oldld, aout, or coff.
22824 linux*oldld* | linux*aout* | linux*coff*)
22828 # This must be Linux ELF.
22833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22834 soname_spec='${libname}${release}${shared_ext}$major'
22835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22836 shlibpath_var=LD_LIBRARY_PATH
22837 shlibpath_overrides_runpath=no
22838 # This implies no fast_install, which is unacceptable.
22839 # Some rework will be needed to allow for fast_install
22840 # before this can be enabled.
22841 hardcode_into_libs=yes
22843 # Append ld.so.conf contents to the search path
22844 if test -f /etc/ld.so.conf; then
22845 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22849 # We used to test for /lib/ld.so.1 and disable shared libraries on
22850 # powerpc, because MkLinux only supported shared libraries with the
22851 # GNU dynamic linker. Since this was broken with cross compilers,
22852 # most powerpc-linux boxes support dynamic linking these days and
22853 # people can always --disable-shared, the test was removed, and we
22854 # assume the GNU/Linux dynamic linker is in use.
22855 dynamic_linker='GNU/Linux ld.so'
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22863 soname_spec='${libname}${release}${shared_ext}$major'
22864 shlibpath_var=LD_LIBRARY_PATH
22865 shlibpath_overrides_runpath=no
22866 hardcode_into_libs=yes
22867 dynamic_linker='GNU ld.so'
22874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22877 dynamic_linker='NetBSD (a.out) ld.so'
22879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22880 soname_spec='${libname}${release}${shared_ext}$major'
22881 dynamic_linker='NetBSD ld.elf_so'
22883 shlibpath_var=LD_LIBRARY_PATH
22884 shlibpath_overrides_runpath=yes
22885 hardcode_into_libs=yes
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22891 shlibpath_var=LD_LIBRARY_PATH
22892 shlibpath_overrides_runpath=yes
22899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22900 soname_spec='${libname}${release}${shared_ext}$major'
22901 shlibpath_var=LD_LIBRARY_PATH
22902 shlibpath_overrides_runpath=yes
22909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22911 shlibpath_var=LD_LIBRARY_PATH
22912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22914 openbsd2.[89] | openbsd2.[89].*)
22915 shlibpath_overrides_runpath=no
22918 shlibpath_overrides_runpath=yes
22922 shlibpath_overrides_runpath=yes
22927 libname_spec='$name'
22930 library_names_spec='$libname${shared_ext} $libname.a'
22931 dynamic_linker='OS/2 ld.exe'
22932 shlibpath_var=LIBPATH
22935 osf3* | osf4* | osf5*)
22939 soname_spec='${libname}${release}${shared_ext}$major'
22940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22941 shlibpath_var=LD_LIBRARY_PATH
22942 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22943 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22948 soname_spec='${libname}${release}${shared_ext}$major'
22949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950 shlibpath_var=LD_LIBRARY_PATH
22957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22958 soname_spec='${libname}${release}${shared_ext}$major'
22959 shlibpath_var=LD_LIBRARY_PATH
22960 shlibpath_overrides_runpath=yes
22961 hardcode_into_libs=yes
22962 # ldd complains unless libraries are executable
22963 postinstall_cmds='chmod +x $lib'
22968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22969 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22970 shlibpath_var=LD_LIBRARY_PATH
22971 shlibpath_overrides_runpath=yes
22972 if test "$with_gnu_ld" = yes; then
22978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22981 soname_spec='${libname}${release}${shared_ext}$major'
22982 shlibpath_var=LD_LIBRARY_PATH
22983 case $host_vendor in
22985 shlibpath_overrides_runpath=no
22987 export_dynamic_flag_spec='${wl}-Blargedynsym'
22988 runpath_var=LD_RUN_PATH
22996 shlibpath_overrides_runpath=no
22997 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23003 if test -d /usr/nec ;then
23005 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23006 soname_spec='$libname${shared_ext}.$major'
23007 shlibpath_var=LD_LIBRARY_PATH
23013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23014 soname_spec='${libname}${release}${shared_ext}$major'
23015 shlibpath_var=LD_LIBRARY_PATH
23022 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23023 echo "${ECHO_T}$dynamic_linker" >&6
23024 test "$dynamic_linker" = no && can_build_shared=no
23026 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23027 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23028 hardcode_action_GCJ=
23029 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23030 test -n "$runpath_var_GCJ" || \
23031 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23033 # We can hardcode non-existant directories.
23034 if test "$hardcode_direct_GCJ" != no &&
23035 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23036 # have to relink, otherwise we might link with an installed library
23037 # when we should be linking with a yet-to-be-installed one
23038 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23039 test "$hardcode_minus_L_GCJ" != no; then
23040 # Linking always hardcodes the temporary library directory.
23041 hardcode_action_GCJ=relink
23043 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23044 hardcode_action_GCJ=immediate
23047 # We cannot hardcode anything, or else we can only hardcode existing
23049 hardcode_action_GCJ=unsupported
23051 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23052 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23054 if test "$hardcode_action_GCJ" = relink; then
23055 # Fast installation is not supported
23056 enable_fast_install=no
23057 elif test "$shlibpath_overrides_runpath" = yes ||
23058 test "$enable_shared" = no; then
23059 # Fast installation is not necessary
23060 enable_fast_install=needless
23065 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23066 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23067 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23069 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23070 echo "$as_me:$LINENO: result: yes" >&5
23071 echo "${ECHO_T}yes" >&6
23073 # FIXME - insert some real tests, host_os isn't really good enough
23076 if test -n "$STRIP" ; then
23077 striplib="$STRIP -x"
23078 echo "$as_me:$LINENO: result: yes" >&5
23079 echo "${ECHO_T}yes" >&6
23081 echo "$as_me:$LINENO: result: no" >&5
23082 echo "${ECHO_T}no" >&6
23086 echo "$as_me:$LINENO: result: no" >&5
23087 echo "${ECHO_T}no" >&6
23092 if test "x$enable_dlopen" != xyes; then
23093 enable_dlopen=unknown
23094 enable_dlopen_self=unknown
23095 enable_dlopen_self_static=unknown
23102 lt_cv_dlopen="load_add_on"
23104 lt_cv_dlopen_self=yes
23108 lt_cv_dlopen="LoadLibrary"
23113 lt_cv_dlopen="dlopen"
23118 # if libdl is installed we need to link against it
23119 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 ac_check_lib_save_LIBS=$LIBS
23126 cat >conftest.$ac_ext <<_ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23133 /* Override any gcc2 internal prototype to avoid an error. */
23137 /* We use char because int might match the return type of a gcc2
23138 builtin and then its argument prototype would still apply. */
23148 rm -f conftest.$ac_objext conftest$ac_exeext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23150 (eval $ac_link) 2>conftest.er1
23152 grep -v '^ *+' conftest.er1 >conftest.err
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } &&
23157 { ac_try='test -z "$ac_c_werror_flag"
23158 || test ! -s conftest.err'
23159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; } &&
23164 { ac_try='test -s conftest$ac_exeext'
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; }; then
23170 ac_cv_lib_dl_dlopen=yes
23172 echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23175 ac_cv_lib_dl_dlopen=no
23177 rm -f conftest.err conftest.$ac_objext \
23178 conftest$ac_exeext conftest.$ac_ext
23179 LIBS=$ac_check_lib_save_LIBS
23181 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23182 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23183 if test $ac_cv_lib_dl_dlopen = yes; then
23184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23187 lt_cv_dlopen="dyld"
23189 lt_cv_dlopen_self=yes
23196 echo "$as_me:$LINENO: checking for shl_load" >&5
23197 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23198 if test "${ac_cv_func_shl_load+set}" = set; then
23199 echo $ECHO_N "(cached) $ECHO_C" >&6
23201 cat >conftest.$ac_ext <<_ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23209 #define shl_load innocuous_shl_load
23211 /* System header to define __stub macros and hopefully few prototypes,
23212 which can conflict with char shl_load (); below.
23213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23214 <limits.h> exists even on freestanding compilers. */
23217 # include <limits.h>
23219 # include <assert.h>
23224 /* Override any gcc2 internal prototype to avoid an error. */
23229 /* We use char because int might match the return type of a gcc2
23230 builtin and then its argument prototype would still apply. */
23232 /* The GNU C library defines this for functions which it implements
23233 to always fail with ENOSYS. Some functions are actually named
23234 something starting with __ and the normal name is an alias. */
23235 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23238 char (*f) () = shl_load;
23247 return f != shl_load;
23252 rm -f conftest.$ac_objext conftest$ac_exeext
23253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23254 (eval $ac_link) 2>conftest.er1
23256 grep -v '^ *+' conftest.er1 >conftest.err
23258 cat conftest.err >&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } &&
23261 { ac_try='test -z "$ac_c_werror_flag"
23262 || test ! -s conftest.err'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; } &&
23268 { ac_try='test -s conftest$ac_exeext'
23269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 ac_cv_func_shl_load=yes
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23279 ac_cv_func_shl_load=no
23281 rm -f conftest.err conftest.$ac_objext \
23282 conftest$ac_exeext conftest.$ac_ext
23284 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23285 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23286 if test $ac_cv_func_shl_load = yes; then
23287 lt_cv_dlopen="shl_load"
23289 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23290 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23291 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23292 echo $ECHO_N "(cached) $ECHO_C" >&6
23294 ac_check_lib_save_LIBS=$LIBS
23296 cat >conftest.$ac_ext <<_ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23303 /* Override any gcc2 internal prototype to avoid an error. */
23307 /* We use char because int might match the return type of a gcc2
23308 builtin and then its argument prototype would still apply. */
23318 rm -f conftest.$ac_objext conftest$ac_exeext
23319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23320 (eval $ac_link) 2>conftest.er1
23322 grep -v '^ *+' conftest.er1 >conftest.err
23324 cat conftest.err >&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } &&
23327 { ac_try='test -z "$ac_c_werror_flag"
23328 || test ! -s conftest.err'
23329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330 (eval $ac_try) 2>&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; } &&
23334 { ac_try='test -s conftest$ac_exeext'
23335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; }; then
23340 ac_cv_lib_dld_shl_load=yes
23342 echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 ac_cv_lib_dld_shl_load=no
23347 rm -f conftest.err conftest.$ac_objext \
23348 conftest$ac_exeext conftest.$ac_ext
23349 LIBS=$ac_check_lib_save_LIBS
23351 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23352 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23353 if test $ac_cv_lib_dld_shl_load = yes; then
23354 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23356 echo "$as_me:$LINENO: checking for dlopen" >&5
23357 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23358 if test "${ac_cv_func_dlopen+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23361 cat >conftest.$ac_ext <<_ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23367 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23369 #define dlopen innocuous_dlopen
23371 /* System header to define __stub macros and hopefully few prototypes,
23372 which can conflict with char dlopen (); below.
23373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23374 <limits.h> exists even on freestanding compilers. */
23377 # include <limits.h>
23379 # include <assert.h>
23384 /* Override any gcc2 internal prototype to avoid an error. */
23389 /* We use char because int might match the return type of a gcc2
23390 builtin and then its argument prototype would still apply. */
23392 /* The GNU C library defines this for functions which it implements
23393 to always fail with ENOSYS. Some functions are actually named
23394 something starting with __ and the normal name is an alias. */
23395 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23398 char (*f) () = dlopen;
23407 return f != dlopen;
23412 rm -f conftest.$ac_objext conftest$ac_exeext
23413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23414 (eval $ac_link) 2>conftest.er1
23416 grep -v '^ *+' conftest.er1 >conftest.err
23418 cat conftest.err >&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } &&
23421 { ac_try='test -z "$ac_c_werror_flag"
23422 || test ! -s conftest.err'
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; } &&
23428 { ac_try='test -s conftest$ac_exeext'
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; }; then
23434 ac_cv_func_dlopen=yes
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 ac_cv_func_dlopen=no
23441 rm -f conftest.err conftest.$ac_objext \
23442 conftest$ac_exeext conftest.$ac_ext
23444 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23445 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23446 if test $ac_cv_func_dlopen = yes; then
23447 lt_cv_dlopen="dlopen"
23449 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23450 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23452 echo $ECHO_N "(cached) $ECHO_C" >&6
23454 ac_check_lib_save_LIBS=$LIBS
23456 cat >conftest.$ac_ext <<_ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h. */
23463 /* Override any gcc2 internal prototype to avoid an error. */
23467 /* We use char because int might match the return type of a gcc2
23468 builtin and then its argument prototype would still apply. */
23478 rm -f conftest.$ac_objext conftest$ac_exeext
23479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23480 (eval $ac_link) 2>conftest.er1
23482 grep -v '^ *+' conftest.er1 >conftest.err
23484 cat conftest.err >&5
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } &&
23487 { ac_try='test -z "$ac_c_werror_flag"
23488 || test ! -s conftest.err'
23489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490 (eval $ac_try) 2>&5
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); }; } &&
23494 { ac_try='test -s conftest$ac_exeext'
23495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496 (eval $ac_try) 2>&5
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); }; }; then
23500 ac_cv_lib_dl_dlopen=yes
23502 echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23505 ac_cv_lib_dl_dlopen=no
23507 rm -f conftest.err conftest.$ac_objext \
23508 conftest$ac_exeext conftest.$ac_ext
23509 LIBS=$ac_check_lib_save_LIBS
23511 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23512 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23513 if test $ac_cv_lib_dl_dlopen = yes; then
23514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23516 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23517 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23518 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23519 echo $ECHO_N "(cached) $ECHO_C" >&6
23521 ac_check_lib_save_LIBS=$LIBS
23522 LIBS="-lsvld $LIBS"
23523 cat >conftest.$ac_ext <<_ACEOF
23526 cat confdefs.h >>conftest.$ac_ext
23527 cat >>conftest.$ac_ext <<_ACEOF
23528 /* end confdefs.h. */
23530 /* Override any gcc2 internal prototype to avoid an error. */
23534 /* We use char because int might match the return type of a gcc2
23535 builtin and then its argument prototype would still apply. */
23545 rm -f conftest.$ac_objext conftest$ac_exeext
23546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23547 (eval $ac_link) 2>conftest.er1
23549 grep -v '^ *+' conftest.er1 >conftest.err
23551 cat conftest.err >&5
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); } &&
23554 { ac_try='test -z "$ac_c_werror_flag"
23555 || test ! -s conftest.err'
23556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23557 (eval $ac_try) 2>&5
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); }; } &&
23561 { ac_try='test -s conftest$ac_exeext'
23562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563 (eval $ac_try) 2>&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; }; then
23567 ac_cv_lib_svld_dlopen=yes
23569 echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23572 ac_cv_lib_svld_dlopen=no
23574 rm -f conftest.err conftest.$ac_objext \
23575 conftest$ac_exeext conftest.$ac_ext
23576 LIBS=$ac_check_lib_save_LIBS
23578 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23579 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23580 if test $ac_cv_lib_svld_dlopen = yes; then
23581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23583 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23584 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23585 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
23588 ac_check_lib_save_LIBS=$LIBS
23590 cat >conftest.$ac_ext <<_ACEOF
23593 cat confdefs.h >>conftest.$ac_ext
23594 cat >>conftest.$ac_ext <<_ACEOF
23595 /* end confdefs.h. */
23597 /* Override any gcc2 internal prototype to avoid an error. */
23601 /* We use char because int might match the return type of a gcc2
23602 builtin and then its argument prototype would still apply. */
23612 rm -f conftest.$ac_objext conftest$ac_exeext
23613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23614 (eval $ac_link) 2>conftest.er1
23616 grep -v '^ *+' conftest.er1 >conftest.err
23618 cat conftest.err >&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); } &&
23621 { ac_try='test -z "$ac_c_werror_flag"
23622 || test ! -s conftest.err'
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; } &&
23628 { ac_try='test -s conftest$ac_exeext'
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; }; then
23634 ac_cv_lib_dld_dld_link=yes
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23639 ac_cv_lib_dld_dld_link=no
23641 rm -f conftest.err conftest.$ac_objext \
23642 conftest$ac_exeext conftest.$ac_ext
23643 LIBS=$ac_check_lib_save_LIBS
23645 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23646 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23647 if test $ac_cv_lib_dld_dld_link = yes; then
23648 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23669 if test "x$lt_cv_dlopen" != xno; then
23675 case $lt_cv_dlopen in
23677 save_CPPFLAGS="$CPPFLAGS"
23678 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23680 save_LDFLAGS="$LDFLAGS"
23681 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23684 LIBS="$lt_cv_dlopen_libs $LIBS"
23686 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23687 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23688 if test "${lt_cv_dlopen_self+set}" = set; then
23689 echo $ECHO_N "(cached) $ECHO_C" >&6
23691 if test "$cross_compiling" = yes; then :
23692 lt_cv_dlopen_self=cross
23694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23695 lt_status=$lt_dlunknown
23696 cat > conftest.$ac_ext <<EOF
23697 #line 23697 "configure"
23698 #include "confdefs.h"
23707 # define LT_DLGLOBAL RTLD_GLOBAL
23710 # define LT_DLGLOBAL DL_GLOBAL
23712 # define LT_DLGLOBAL 0
23716 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23717 find out it does not work in some platform. */
23718 #ifndef LT_DLLAZY_OR_NOW
23720 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23723 # define LT_DLLAZY_OR_NOW DL_LAZY
23726 # define LT_DLLAZY_OR_NOW RTLD_NOW
23729 # define LT_DLLAZY_OR_NOW DL_NOW
23731 # define LT_DLLAZY_OR_NOW 0
23739 extern "C" void exit (int);
23742 void fnord() { int i=42;}
23745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23746 int status = $lt_dlunknown;
23750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23751 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23752 /* dlclose (self); */
23758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23759 (eval $ac_link) 2>&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23763 (./conftest; exit; ) 2>/dev/null
23765 case x$lt_status in
23766 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23767 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23768 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23771 # compilation failed
23772 lt_cv_dlopen_self=no
23779 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23780 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23782 if test "x$lt_cv_dlopen_self" = xyes; then
23783 LDFLAGS="$LDFLAGS $link_static_flag"
23784 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23785 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23786 if test "${lt_cv_dlopen_self_static+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23789 if test "$cross_compiling" = yes; then :
23790 lt_cv_dlopen_self_static=cross
23792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23793 lt_status=$lt_dlunknown
23794 cat > conftest.$ac_ext <<EOF
23795 #line 23795 "configure"
23796 #include "confdefs.h"
23805 # define LT_DLGLOBAL RTLD_GLOBAL
23808 # define LT_DLGLOBAL DL_GLOBAL
23810 # define LT_DLGLOBAL 0
23814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23815 find out it does not work in some platform. */
23816 #ifndef LT_DLLAZY_OR_NOW
23818 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23821 # define LT_DLLAZY_OR_NOW DL_LAZY
23824 # define LT_DLLAZY_OR_NOW RTLD_NOW
23827 # define LT_DLLAZY_OR_NOW DL_NOW
23829 # define LT_DLLAZY_OR_NOW 0
23837 extern "C" void exit (int);
23840 void fnord() { int i=42;}
23843 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23844 int status = $lt_dlunknown;
23848 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23849 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23850 /* dlclose (self); */
23856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23857 (eval $ac_link) 2>&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23861 (./conftest; exit; ) 2>/dev/null
23863 case x$lt_status in
23864 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23865 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23866 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23869 # compilation failed
23870 lt_cv_dlopen_self_static=no
23877 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23878 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23881 CPPFLAGS="$save_CPPFLAGS"
23882 LDFLAGS="$save_LDFLAGS"
23887 case $lt_cv_dlopen_self in
23888 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23889 *) enable_dlopen_self=unknown ;;
23892 case $lt_cv_dlopen_self_static in
23893 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23894 *) enable_dlopen_self_static=unknown ;;
23899 # The else clause should only fire when bootstrapping the
23900 # libtool distribution, otherwise you forgot to ship ltmain.sh
23901 # with your package, and you will get complaints that there are
23902 # no rules to generate ltmain.sh.
23903 if test -f "$ltmain"; then
23904 # See if we are running on zsh, and set the options which allow our commands through
23905 # without removal of \ escapes.
23906 if test -n "${ZSH_VERSION+set}" ; then
23907 setopt NO_GLOB_SUBST
23909 # Now quote all the things that may contain metacharacters while being
23910 # careful not to overquote the AC_SUBSTed values. We take copies of the
23911 # variables and quote the copies for generation of the libtool script.
23912 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23914 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23915 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23916 deplibs_check_method reload_flag reload_cmds need_locks \
23917 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23918 lt_cv_sys_global_symbol_to_c_name_address \
23919 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23920 old_postinstall_cmds old_postuninstall_cmds \
23924 lt_prog_compiler_wl_GCJ \
23925 lt_prog_compiler_pic_GCJ \
23926 lt_prog_compiler_static_GCJ \
23927 lt_prog_compiler_no_builtin_flag_GCJ \
23928 export_dynamic_flag_spec_GCJ \
23929 thread_safe_flag_spec_GCJ \
23930 whole_archive_flag_spec_GCJ \
23931 enable_shared_with_static_runtimes_GCJ \
23932 old_archive_cmds_GCJ \
23933 old_archive_from_new_cmds_GCJ \
23934 predep_objects_GCJ \
23935 postdep_objects_GCJ \
23938 compiler_lib_search_path_GCJ \
23940 archive_expsym_cmds_GCJ \
23941 postinstall_cmds_GCJ \
23942 postuninstall_cmds_GCJ \
23943 old_archive_from_expsyms_cmds_GCJ \
23944 allow_undefined_flag_GCJ \
23945 no_undefined_flag_GCJ \
23946 export_symbols_cmds_GCJ \
23947 hardcode_libdir_flag_spec_GCJ \
23948 hardcode_libdir_flag_spec_ld_GCJ \
23949 hardcode_libdir_separator_GCJ \
23950 hardcode_automatic_GCJ \
23952 module_expsym_cmds_GCJ \
23953 lt_cv_prog_compiler_c_o_GCJ \
23954 exclude_expsyms_GCJ \
23955 include_expsyms_GCJ; do
23958 old_archive_cmds_GCJ | \
23959 old_archive_from_new_cmds_GCJ | \
23960 archive_cmds_GCJ | \
23961 archive_expsym_cmds_GCJ | \
23962 module_cmds_GCJ | \
23963 module_expsym_cmds_GCJ | \
23964 old_archive_from_expsyms_cmds_GCJ | \
23965 export_symbols_cmds_GCJ | \
23966 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23967 postinstall_cmds | postuninstall_cmds | \
23968 old_postinstall_cmds | old_postuninstall_cmds | \
23969 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23970 # Double-quote double-evaled strings.
23971 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23980 *'\$0 --fallback-echo"')
23981 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23987 cat <<__EOF__ >> "$cfgfile"
23988 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23990 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23992 # Shell to use when invoking shell scripts.
23995 # Whether or not to build shared libraries.
23996 build_libtool_libs=$enable_shared
23998 # Whether or not to build static libraries.
23999 build_old_libs=$enable_static
24001 # Whether or not to add -lc for building shared libraries.
24002 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24004 # Whether or not to disallow shared libs when runtime libs are static
24005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24007 # Whether or not to optimize for fast installation.
24008 fast_install=$enable_fast_install
24011 host_alias=$host_alias
24014 # An echo program that does not interpret backslashes.
24019 AR_FLAGS=$lt_AR_FLAGS
24024 # A language-specific compiler.
24025 CC=$lt_compiler_GCJ
24027 # Is the compiler the GNU C compiler?
24033 # The linker used to build libraries.
24036 # Whether we need hard or soft links.
24039 # A BSD-compatible nm program.
24042 # A symbol stripping program
24045 # Used to examine libraries when file_magic_cmd begins "file"
24046 MAGIC_CMD=$MAGIC_CMD
24048 # Used on cygwin: DLL creation program.
24051 # Used on cygwin: object dumper.
24054 # Used on cygwin: assembler.
24057 # The name of the directory that contains temporary libtool files.
24060 # How to create reloadable object files.
24061 reload_flag=$lt_reload_flag
24062 reload_cmds=$lt_reload_cmds
24064 # How to pass a linker flag through the compiler.
24065 wl=$lt_lt_prog_compiler_wl_GCJ
24067 # Object file suffix (normally "o").
24068 objext="$ac_objext"
24070 # Old archive suffix (normally "a").
24073 # Shared library suffix (normally ".so").
24074 shrext_cmds='$shrext_cmds'
24076 # Executable file suffix (normally "").
24079 # Additional compiler flags for building library objects.
24080 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24083 # What is the maximum length of a command?
24084 max_cmd_len=$lt_cv_sys_max_cmd_len
24086 # Does compiler simultaneously support -c and -o options?
24087 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24089 # Must we lock files when doing compilation ?
24090 need_locks=$lt_need_locks
24092 # Do we need the lib prefix for modules?
24093 need_lib_prefix=$need_lib_prefix
24095 # Do we need a version for libraries?
24096 need_version=$need_version
24098 # Whether dlopen is supported.
24099 dlopen_support=$enable_dlopen
24101 # Whether dlopen of programs is supported.
24102 dlopen_self=$enable_dlopen_self
24104 # Whether dlopen of statically linked programs is supported.
24105 dlopen_self_static=$enable_dlopen_self_static
24107 # Compiler flag to prevent dynamic linking.
24108 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24110 # Compiler flag to turn off builtin functions.
24111 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24113 # Compiler flag to allow reflexive dlopens.
24114 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24116 # Compiler flag to generate shared objects directly from archives.
24117 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24119 # Compiler flag to generate thread-safe objects.
24120 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24122 # Library versioning type.
24123 version_type=$version_type
24125 # Format of library name prefix.
24126 libname_spec=$lt_libname_spec
24128 # List of archive names. First name is the real one, the rest are links.
24129 # The last name is the one that the linker finds with -lNAME.
24130 library_names_spec=$lt_library_names_spec
24132 # The coded name of the library, if different from the real name.
24133 soname_spec=$lt_soname_spec
24135 # Commands used to build and install an old-style archive.
24137 old_archive_cmds=$lt_old_archive_cmds_GCJ
24138 old_postinstall_cmds=$lt_old_postinstall_cmds
24139 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24141 # Create an old-style archive from a shared archive.
24142 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24144 # Create a temporary old-style archive to link instead of a shared archive.
24145 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24147 # Commands used to build and install a shared archive.
24148 archive_cmds=$lt_archive_cmds_GCJ
24149 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24150 postinstall_cmds=$lt_postinstall_cmds
24151 postuninstall_cmds=$lt_postuninstall_cmds
24153 # Commands used to build a loadable module (assumed same as above if empty)
24154 module_cmds=$lt_module_cmds_GCJ
24155 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24157 # Commands to strip libraries.
24158 old_striplib=$lt_old_striplib
24159 striplib=$lt_striplib
24161 # Dependencies to place before the objects being linked to create a
24163 predep_objects=$lt_predep_objects_GCJ
24165 # Dependencies to place after the objects being linked to create a
24167 postdep_objects=$lt_postdep_objects_GCJ
24169 # Dependencies to place before the objects being linked to create a
24171 predeps=$lt_predeps_GCJ
24173 # Dependencies to place after the objects being linked to create a
24175 postdeps=$lt_postdeps_GCJ
24177 # The library search path used internally by the compiler when linking
24178 # a shared library.
24179 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24181 # Method to check whether dependent libraries are shared objects.
24182 deplibs_check_method=$lt_deplibs_check_method
24184 # Command to use when deplibs_check_method == file_magic.
24185 file_magic_cmd=$lt_file_magic_cmd
24187 # Flag that allows shared libraries with undefined symbols to be built.
24188 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24190 # Flag that forces no undefined symbols.
24191 no_undefined_flag=$lt_no_undefined_flag_GCJ
24193 # Commands used to finish a libtool library installation in a directory.
24194 finish_cmds=$lt_finish_cmds
24196 # Same as above, but a single script fragment to be evaled but not shown.
24197 finish_eval=$lt_finish_eval
24199 # Take the output of nm and produce a listing of raw symbols and C names.
24200 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24202 # Transform the output of nm in a proper C declaration
24203 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24205 # Transform the output of nm in a C name address pair
24206 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24208 # This is the shared library runtime path variable.
24209 runpath_var=$runpath_var
24211 # This is the shared library path variable.
24212 shlibpath_var=$shlibpath_var
24214 # Is shlibpath searched before the hard-coded library search path?
24215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24217 # How to hardcode a shared library path into an executable.
24218 hardcode_action=$hardcode_action_GCJ
24220 # Whether we should hardcode library paths into libraries.
24221 hardcode_into_libs=$hardcode_into_libs
24223 # Flag to hardcode \$libdir into a binary during linking.
24224 # This must work even if \$libdir does not exist.
24225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24227 # If ld is used when linking, flag to hardcode \$libdir into
24228 # a binary during linking. This must work even if \$libdir does
24230 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24232 # Whether we need a single -rpath flag with a separated argument.
24233 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24235 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24236 # resulting binary.
24237 hardcode_direct=$hardcode_direct_GCJ
24239 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24240 # resulting binary.
24241 hardcode_minus_L=$hardcode_minus_L_GCJ
24243 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24244 # the resulting binary.
24245 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24247 # Set to yes if building a shared library automatically hardcodes DIR into the library
24248 # and all subsequent libraries and executables linked against it.
24249 hardcode_automatic=$hardcode_automatic_GCJ
24251 # Variables whose values should be saved in libtool wrapper scripts and
24252 # restored at relink time.
24253 variables_saved_for_relink="$variables_saved_for_relink"
24255 # Whether libtool must link a program against all its dependency libraries.
24256 link_all_deplibs=$link_all_deplibs_GCJ
24258 # Compile-time system search path for libraries
24259 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24261 # Run-time system search path for libraries
24262 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24264 # Fix the shell variable \$srcfile for the compiler.
24265 fix_srcfile_path="$fix_srcfile_path_GCJ"
24267 # Set to yes if exported symbols are required.
24268 always_export_symbols=$always_export_symbols_GCJ
24270 # The commands to list exported symbols.
24271 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24273 # The commands to extract the exported symbol list from a shared archive.
24274 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24276 # Symbols that should not be listed in the preloaded symbols.
24277 exclude_expsyms=$lt_exclude_expsyms_GCJ
24279 # Symbols that must always be exported.
24280 include_expsyms=$lt_include_expsyms_GCJ
24282 # ### END LIBTOOL TAG CONFIG: $tagname
24288 # If there is no Makefile yet, we rely on a make rule to execute
24289 # `config.status --recheck' to rerun these tests and create the
24290 # libtool script then.
24291 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24292 if test -f "$ltmain_in"; then
24293 test -f Makefile && make "$ltmain"
24299 ac_cpp='$CPP $CPPFLAGS'
24300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24313 ac_cpp='$CPP $CPPFLAGS'
24314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24319 # Source file extension for RC test sources.
24322 # Object file extension for compiled RC test sources.
24326 # Code to be used in simple compile tests
24327 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24329 # Code to be used in simple link tests
24330 lt_simple_link_test_code="$lt_simple_compile_test_code"
24332 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24334 # If no C compiler was specified, use CC.
24337 # Allow CC to be a program name with arguments.
24341 # Allow CC to be a program name with arguments.
24346 lt_cv_prog_compiler_c_o_RC=yes
24348 # The else clause should only fire when bootstrapping the
24349 # libtool distribution, otherwise you forgot to ship ltmain.sh
24350 # with your package, and you will get complaints that there are
24351 # no rules to generate ltmain.sh.
24352 if test -f "$ltmain"; then
24353 # See if we are running on zsh, and set the options which allow our commands through
24354 # without removal of \ escapes.
24355 if test -n "${ZSH_VERSION+set}" ; then
24356 setopt NO_GLOB_SUBST
24358 # Now quote all the things that may contain metacharacters while being
24359 # careful not to overquote the AC_SUBSTed values. We take copies of the
24360 # variables and quote the copies for generation of the libtool script.
24361 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24363 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24364 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24365 deplibs_check_method reload_flag reload_cmds need_locks \
24366 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24367 lt_cv_sys_global_symbol_to_c_name_address \
24368 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24369 old_postinstall_cmds old_postuninstall_cmds \
24373 lt_prog_compiler_wl_RC \
24374 lt_prog_compiler_pic_RC \
24375 lt_prog_compiler_static_RC \
24376 lt_prog_compiler_no_builtin_flag_RC \
24377 export_dynamic_flag_spec_RC \
24378 thread_safe_flag_spec_RC \
24379 whole_archive_flag_spec_RC \
24380 enable_shared_with_static_runtimes_RC \
24381 old_archive_cmds_RC \
24382 old_archive_from_new_cmds_RC \
24383 predep_objects_RC \
24384 postdep_objects_RC \
24387 compiler_lib_search_path_RC \
24389 archive_expsym_cmds_RC \
24390 postinstall_cmds_RC \
24391 postuninstall_cmds_RC \
24392 old_archive_from_expsyms_cmds_RC \
24393 allow_undefined_flag_RC \
24394 no_undefined_flag_RC \
24395 export_symbols_cmds_RC \
24396 hardcode_libdir_flag_spec_RC \
24397 hardcode_libdir_flag_spec_ld_RC \
24398 hardcode_libdir_separator_RC \
24399 hardcode_automatic_RC \
24401 module_expsym_cmds_RC \
24402 lt_cv_prog_compiler_c_o_RC \
24403 exclude_expsyms_RC \
24404 include_expsyms_RC; do
24407 old_archive_cmds_RC | \
24408 old_archive_from_new_cmds_RC | \
24409 archive_cmds_RC | \
24410 archive_expsym_cmds_RC | \
24412 module_expsym_cmds_RC | \
24413 old_archive_from_expsyms_cmds_RC | \
24414 export_symbols_cmds_RC | \
24415 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24416 postinstall_cmds | postuninstall_cmds | \
24417 old_postinstall_cmds | old_postuninstall_cmds | \
24418 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24419 # Double-quote double-evaled strings.
24420 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24423 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24429 *'\$0 --fallback-echo"')
24430 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24436 cat <<__EOF__ >> "$cfgfile"
24437 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24439 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24441 # Shell to use when invoking shell scripts.
24444 # Whether or not to build shared libraries.
24445 build_libtool_libs=$enable_shared
24447 # Whether or not to build static libraries.
24448 build_old_libs=$enable_static
24450 # Whether or not to add -lc for building shared libraries.
24451 build_libtool_need_lc=$archive_cmds_need_lc_RC
24453 # Whether or not to disallow shared libs when runtime libs are static
24454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24456 # Whether or not to optimize for fast installation.
24457 fast_install=$enable_fast_install
24460 host_alias=$host_alias
24463 # An echo program that does not interpret backslashes.
24468 AR_FLAGS=$lt_AR_FLAGS
24473 # A language-specific compiler.
24476 # Is the compiler the GNU C compiler?
24482 # The linker used to build libraries.
24485 # Whether we need hard or soft links.
24488 # A BSD-compatible nm program.
24491 # A symbol stripping program
24494 # Used to examine libraries when file_magic_cmd begins "file"
24495 MAGIC_CMD=$MAGIC_CMD
24497 # Used on cygwin: DLL creation program.
24500 # Used on cygwin: object dumper.
24503 # Used on cygwin: assembler.
24506 # The name of the directory that contains temporary libtool files.
24509 # How to create reloadable object files.
24510 reload_flag=$lt_reload_flag
24511 reload_cmds=$lt_reload_cmds
24513 # How to pass a linker flag through the compiler.
24514 wl=$lt_lt_prog_compiler_wl_RC
24516 # Object file suffix (normally "o").
24517 objext="$ac_objext"
24519 # Old archive suffix (normally "a").
24522 # Shared library suffix (normally ".so").
24523 shrext_cmds='$shrext_cmds'
24525 # Executable file suffix (normally "").
24528 # Additional compiler flags for building library objects.
24529 pic_flag=$lt_lt_prog_compiler_pic_RC
24532 # What is the maximum length of a command?
24533 max_cmd_len=$lt_cv_sys_max_cmd_len
24535 # Does compiler simultaneously support -c and -o options?
24536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24538 # Must we lock files when doing compilation ?
24539 need_locks=$lt_need_locks
24541 # Do we need the lib prefix for modules?
24542 need_lib_prefix=$need_lib_prefix
24544 # Do we need a version for libraries?
24545 need_version=$need_version
24547 # Whether dlopen is supported.
24548 dlopen_support=$enable_dlopen
24550 # Whether dlopen of programs is supported.
24551 dlopen_self=$enable_dlopen_self
24553 # Whether dlopen of statically linked programs is supported.
24554 dlopen_self_static=$enable_dlopen_self_static
24556 # Compiler flag to prevent dynamic linking.
24557 link_static_flag=$lt_lt_prog_compiler_static_RC
24559 # Compiler flag to turn off builtin functions.
24560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24562 # Compiler flag to allow reflexive dlopens.
24563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24565 # Compiler flag to generate shared objects directly from archives.
24566 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24568 # Compiler flag to generate thread-safe objects.
24569 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24571 # Library versioning type.
24572 version_type=$version_type
24574 # Format of library name prefix.
24575 libname_spec=$lt_libname_spec
24577 # List of archive names. First name is the real one, the rest are links.
24578 # The last name is the one that the linker finds with -lNAME.
24579 library_names_spec=$lt_library_names_spec
24581 # The coded name of the library, if different from the real name.
24582 soname_spec=$lt_soname_spec
24584 # Commands used to build and install an old-style archive.
24586 old_archive_cmds=$lt_old_archive_cmds_RC
24587 old_postinstall_cmds=$lt_old_postinstall_cmds
24588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24590 # Create an old-style archive from a shared archive.
24591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24593 # Create a temporary old-style archive to link instead of a shared archive.
24594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24596 # Commands used to build and install a shared archive.
24597 archive_cmds=$lt_archive_cmds_RC
24598 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24599 postinstall_cmds=$lt_postinstall_cmds
24600 postuninstall_cmds=$lt_postuninstall_cmds
24602 # Commands used to build a loadable module (assumed same as above if empty)
24603 module_cmds=$lt_module_cmds_RC
24604 module_expsym_cmds=$lt_module_expsym_cmds_RC
24606 # Commands to strip libraries.
24607 old_striplib=$lt_old_striplib
24608 striplib=$lt_striplib
24610 # Dependencies to place before the objects being linked to create a
24612 predep_objects=$lt_predep_objects_RC
24614 # Dependencies to place after the objects being linked to create a
24616 postdep_objects=$lt_postdep_objects_RC
24618 # Dependencies to place before the objects being linked to create a
24620 predeps=$lt_predeps_RC
24622 # Dependencies to place after the objects being linked to create a
24624 postdeps=$lt_postdeps_RC
24626 # The library search path used internally by the compiler when linking
24627 # a shared library.
24628 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24630 # Method to check whether dependent libraries are shared objects.
24631 deplibs_check_method=$lt_deplibs_check_method
24633 # Command to use when deplibs_check_method == file_magic.
24634 file_magic_cmd=$lt_file_magic_cmd
24636 # Flag that allows shared libraries with undefined symbols to be built.
24637 allow_undefined_flag=$lt_allow_undefined_flag_RC
24639 # Flag that forces no undefined symbols.
24640 no_undefined_flag=$lt_no_undefined_flag_RC
24642 # Commands used to finish a libtool library installation in a directory.
24643 finish_cmds=$lt_finish_cmds
24645 # Same as above, but a single script fragment to be evaled but not shown.
24646 finish_eval=$lt_finish_eval
24648 # Take the output of nm and produce a listing of raw symbols and C names.
24649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24651 # Transform the output of nm in a proper C declaration
24652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24654 # Transform the output of nm in a C name address pair
24655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24657 # This is the shared library runtime path variable.
24658 runpath_var=$runpath_var
24660 # This is the shared library path variable.
24661 shlibpath_var=$shlibpath_var
24663 # Is shlibpath searched before the hard-coded library search path?
24664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24666 # How to hardcode a shared library path into an executable.
24667 hardcode_action=$hardcode_action_RC
24669 # Whether we should hardcode library paths into libraries.
24670 hardcode_into_libs=$hardcode_into_libs
24672 # Flag to hardcode \$libdir into a binary during linking.
24673 # This must work even if \$libdir does not exist.
24674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24676 # If ld is used when linking, flag to hardcode \$libdir into
24677 # a binary during linking. This must work even if \$libdir does
24679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24681 # Whether we need a single -rpath flag with a separated argument.
24682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24685 # resulting binary.
24686 hardcode_direct=$hardcode_direct_RC
24688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24689 # resulting binary.
24690 hardcode_minus_L=$hardcode_minus_L_RC
24692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24693 # the resulting binary.
24694 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24696 # Set to yes if building a shared library automatically hardcodes DIR into the library
24697 # and all subsequent libraries and executables linked against it.
24698 hardcode_automatic=$hardcode_automatic_RC
24700 # Variables whose values should be saved in libtool wrapper scripts and
24701 # restored at relink time.
24702 variables_saved_for_relink="$variables_saved_for_relink"
24704 # Whether libtool must link a program against all its dependency libraries.
24705 link_all_deplibs=$link_all_deplibs_RC
24707 # Compile-time system search path for libraries
24708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24710 # Run-time system search path for libraries
24711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24713 # Fix the shell variable \$srcfile for the compiler.
24714 fix_srcfile_path="$fix_srcfile_path_RC"
24716 # Set to yes if exported symbols are required.
24717 always_export_symbols=$always_export_symbols_RC
24719 # The commands to list exported symbols.
24720 export_symbols_cmds=$lt_export_symbols_cmds_RC
24722 # The commands to extract the exported symbol list from a shared archive.
24723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24725 # Symbols that should not be listed in the preloaded symbols.
24726 exclude_expsyms=$lt_exclude_expsyms_RC
24728 # Symbols that must always be exported.
24729 include_expsyms=$lt_include_expsyms_RC
24731 # ### END LIBTOOL TAG CONFIG: $tagname
24737 # If there is no Makefile yet, we rely on a make rule to execute
24738 # `config.status --recheck' to rerun these tests and create the
24739 # libtool script then.
24740 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24741 if test -f "$ltmain_in"; then
24742 test -f Makefile && make "$ltmain"
24748 ac_cpp='$CPP $CPPFLAGS'
24749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24758 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24759 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24760 { (exit 1); exit 1; }; }
24764 # Append the new tag name to the list of available tags.
24765 if test -n "$tagname" ; then
24766 available_tags="$available_tags $tagname"
24772 # Now substitute the updated list of available tags.
24773 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24774 mv "${ofile}T" "$ofile"
24778 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24779 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24780 { (exit 1); exit 1; }; }
24786 # This can be used to rebuild libtool when needed
24787 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24789 # Always use our own libtool.
24790 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24792 # Prevent multiple expansion
24814 if test "$lt_cv_dlopen_self" = "yes" ; then
24816 cat >>confdefs.h <<\_ACEOF
24817 #define CAN_DLOPEN_SELF 1
24822 etags_version=`$ETAGS --version 2>&1`
24823 case "$etags_version" in
24824 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24825 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24826 *) ETAGSFLAGS="" ;;
24828 ETAGSFLAGS=$ETAGSFLAGS
24831 if test "$WITH_LLVMGCCDIR" = "default" ; then
24832 LLVMGCC="llvm-gcc${EXEEXT}"
24833 LLVMGXX="llvm-g++${EXEEXT}"
24834 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24835 set dummy $LLVMGCC; ac_word=$2
24836 echo "$as_me:$LINENO: checking for $ac_word" >&5
24837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24838 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24839 echo $ECHO_N "(cached) $ECHO_C" >&6
24843 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24847 for as_dir in $PATH
24850 test -z "$as_dir" && as_dir=.
24851 for ac_exec_ext in '' $ac_executable_extensions; do
24852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24853 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24863 LLVMGCC=$ac_cv_path_LLVMGCC
24865 if test -n "$LLVMGCC"; then
24866 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24867 echo "${ECHO_T}$LLVMGCC" >&6
24869 echo "$as_me:$LINENO: result: no" >&5
24870 echo "${ECHO_T}no" >&6
24873 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24874 set dummy $LLVMGXX; ac_word=$2
24875 echo "$as_me:$LINENO: checking for $ac_word" >&5
24876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24877 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24878 echo $ECHO_N "(cached) $ECHO_C" >&6
24882 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24886 for as_dir in $PATH
24889 test -z "$as_dir" && as_dir=.
24890 for ac_exec_ext in '' $ac_executable_extensions; do
24891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24892 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24902 LLVMGXX=$ac_cv_path_LLVMGXX
24904 if test -n "$LLVMGXX"; then
24905 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24906 echo "${ECHO_T}$LLVMGXX" >&6
24908 echo "$as_me:$LINENO: result: no" >&5
24909 echo "${ECHO_T}no" >&6
24913 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24914 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24921 echo "$as_me:$LINENO: checking tool compatibility" >&5
24922 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24935 if test "$GCC" != "yes" && test "$ICC" != "yes"
24937 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24938 echo "$as_me: error: gcc|icc required but not found" >&2;}
24939 { (exit 1); exit 1; }; }
24942 if test "$GXX" != "yes" && test "$IXX" != "yes"
24944 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24945 echo "$as_me: error: g++|icc required but not found" >&2;}
24946 { (exit 1); exit 1; }; }
24949 if test "$GCC" = "yes"
24951 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24952 if test "$gccmajor" -lt "3"
24954 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24955 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24956 { (exit 1); exit 1; }; }
24960 if test -z "$llvm_cv_gnu_make_command"
24962 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24963 echo "$as_me: error: GNU Make required but not found" >&2;}
24964 { (exit 1); exit 1; }; }
24967 echo "$as_me:$LINENO: result: ok" >&5
24968 echo "${ECHO_T}ok" >&6
24972 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24973 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24974 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24975 echo $ECHO_N "(cached) $ECHO_C" >&6
24977 ac_check_lib_save_LIBS=$LIBS
24979 cat >conftest.$ac_ext <<_ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h. */
24986 /* Override any gcc2 internal prototype to avoid an error. */
24990 /* We use char because int might match the return type of a gcc2
24991 builtin and then its argument prototype would still apply. */
25001 rm -f conftest.$ac_objext conftest$ac_exeext
25002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25003 (eval $ac_link) 2>conftest.er1
25005 grep -v '^ *+' conftest.er1 >conftest.err
25007 cat conftest.err >&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); } &&
25010 { ac_try='test -z "$ac_c_werror_flag"
25011 || test ! -s conftest.err'
25012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013 (eval $ac_try) 2>&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; } &&
25017 { ac_try='test -s conftest$ac_exeext'
25018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; }; then
25023 ac_cv_lib_elf_elf_begin=yes
25025 echo "$as_me: failed program was:" >&5
25026 sed 's/^/| /' conftest.$ac_ext >&5
25028 ac_cv_lib_elf_elf_begin=no
25030 rm -f conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
25032 LIBS=$ac_check_lib_save_LIBS
25034 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25035 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25036 if test $ac_cv_lib_elf_elf_begin = yes; then
25037 cat >>confdefs.h <<_ACEOF
25038 #define HAVE_LIBELF 1
25046 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25047 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25048 if test "${ac_cv_lib_m_sin+set}" = set; then
25049 echo $ECHO_N "(cached) $ECHO_C" >&6
25051 ac_check_lib_save_LIBS=$LIBS
25053 cat >conftest.$ac_ext <<_ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h. */
25060 /* Override any gcc2 internal prototype to avoid an error. */
25064 /* We use char because int might match the return type of a gcc2
25065 builtin and then its argument prototype would still apply. */
25075 rm -f conftest.$ac_objext conftest$ac_exeext
25076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25077 (eval $ac_link) 2>conftest.er1
25079 grep -v '^ *+' conftest.er1 >conftest.err
25081 cat conftest.err >&5
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); } &&
25084 { ac_try='test -z "$ac_c_werror_flag"
25085 || test ! -s conftest.err'
25086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087 (eval $ac_try) 2>&5
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); }; } &&
25091 { ac_try='test -s conftest$ac_exeext'
25092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; }; then
25097 ac_cv_lib_m_sin=yes
25099 echo "$as_me: failed program was:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25104 rm -f conftest.err conftest.$ac_objext \
25105 conftest$ac_exeext conftest.$ac_ext
25106 LIBS=$ac_check_lib_save_LIBS
25108 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25109 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25110 if test $ac_cv_lib_m_sin = yes; then
25111 cat >>confdefs.h <<_ACEOF
25112 #define HAVE_LIBM 1
25120 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25121 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25122 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25123 echo $ECHO_N "(cached) $ECHO_C" >&6
25125 ac_func_search_save_LIBS=$LIBS
25126 ac_cv_search_lt_dlopen=no
25127 cat >conftest.$ac_ext <<_ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h. */
25134 /* Override any gcc2 internal prototype to avoid an error. */
25138 /* We use char because int might match the return type of a gcc2
25139 builtin and then its argument prototype would still apply. */
25149 rm -f conftest.$ac_objext conftest$ac_exeext
25150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25151 (eval $ac_link) 2>conftest.er1
25153 grep -v '^ *+' conftest.er1 >conftest.err
25155 cat conftest.err >&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); } &&
25158 { ac_try='test -z "$ac_c_werror_flag"
25159 || test ! -s conftest.err'
25160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161 (eval $ac_try) 2>&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); }; } &&
25165 { ac_try='test -s conftest$ac_exeext'
25166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25167 (eval $ac_try) 2>&5
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); }; }; then
25171 ac_cv_search_lt_dlopen="none required"
25173 echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25177 rm -f conftest.err conftest.$ac_objext \
25178 conftest$ac_exeext conftest.$ac_ext
25179 if test "$ac_cv_search_lt_dlopen" = no; then
25180 for ac_lib in ltdl; do
25181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25182 cat >conftest.$ac_ext <<_ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25189 /* Override any gcc2 internal prototype to avoid an error. */
25193 /* We use char because int might match the return type of a gcc2
25194 builtin and then its argument prototype would still apply. */
25204 rm -f conftest.$ac_objext conftest$ac_exeext
25205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25206 (eval $ac_link) 2>conftest.er1
25208 grep -v '^ *+' conftest.er1 >conftest.err
25210 cat conftest.err >&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } &&
25213 { ac_try='test -z "$ac_c_werror_flag"
25214 || test ! -s conftest.err'
25215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216 (eval $ac_try) 2>&5
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; } &&
25220 { ac_try='test -s conftest$ac_exeext'
25221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222 (eval $ac_try) 2>&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; }; then
25226 ac_cv_search_lt_dlopen="-l$ac_lib"
25229 echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25233 rm -f conftest.err conftest.$ac_objext \
25234 conftest$ac_exeext conftest.$ac_ext
25237 LIBS=$ac_func_search_save_LIBS
25239 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25240 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25241 if test "$ac_cv_search_lt_dlopen" != no; then
25242 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25244 cat >>confdefs.h <<\_ACEOF
25245 #define HAVE_LT_DLOPEN 1
25249 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25250 not be available" >&5
25251 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25252 not be available" >&2;}
25256 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25257 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25258 if test "${ac_cv_search_dlopen+set}" = set; then
25259 echo $ECHO_N "(cached) $ECHO_C" >&6
25261 ac_func_search_save_LIBS=$LIBS
25262 ac_cv_search_dlopen=no
25263 cat >conftest.$ac_ext <<_ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h. */
25270 /* Override any gcc2 internal prototype to avoid an error. */
25274 /* We use char because int might match the return type of a gcc2
25275 builtin and then its argument prototype would still apply. */
25285 rm -f conftest.$ac_objext conftest$ac_exeext
25286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25287 (eval $ac_link) 2>conftest.er1
25289 grep -v '^ *+' conftest.er1 >conftest.err
25291 cat conftest.err >&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); } &&
25294 { ac_try='test -z "$ac_c_werror_flag"
25295 || test ! -s conftest.err'
25296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297 (eval $ac_try) 2>&5
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); }; } &&
25301 { ac_try='test -s conftest$ac_exeext'
25302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25303 (eval $ac_try) 2>&5
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); }; }; then
25307 ac_cv_search_dlopen="none required"
25309 echo "$as_me: failed program was:" >&5
25310 sed 's/^/| /' conftest.$ac_ext >&5
25313 rm -f conftest.err conftest.$ac_objext \
25314 conftest$ac_exeext conftest.$ac_ext
25315 if test "$ac_cv_search_dlopen" = no; then
25316 for ac_lib in dl; do
25317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25318 cat >conftest.$ac_ext <<_ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h. */
25325 /* Override any gcc2 internal prototype to avoid an error. */
25329 /* We use char because int might match the return type of a gcc2
25330 builtin and then its argument prototype would still apply. */
25340 rm -f conftest.$ac_objext conftest$ac_exeext
25341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25342 (eval $ac_link) 2>conftest.er1
25344 grep -v '^ *+' conftest.er1 >conftest.err
25346 cat conftest.err >&5
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } &&
25349 { ac_try='test -z "$ac_c_werror_flag"
25350 || test ! -s conftest.err'
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; } &&
25356 { ac_try='test -s conftest$ac_exeext'
25357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358 (eval $ac_try) 2>&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; }; then
25362 ac_cv_search_dlopen="-l$ac_lib"
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25369 rm -f conftest.err conftest.$ac_objext \
25370 conftest$ac_exeext conftest.$ac_ext
25373 LIBS=$ac_func_search_save_LIBS
25375 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25376 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25377 if test "$ac_cv_search_dlopen" != no; then
25378 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25380 cat >>confdefs.h <<\_ACEOF
25381 #define HAVE_DLOPEN 1
25385 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25386 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25390 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25391 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25392 if test "${ac_cv_search_mallinfo+set}" = set; then
25393 echo $ECHO_N "(cached) $ECHO_C" >&6
25395 ac_func_search_save_LIBS=$LIBS
25396 ac_cv_search_mallinfo=no
25397 cat >conftest.$ac_ext <<_ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h. */
25404 /* Override any gcc2 internal prototype to avoid an error. */
25408 /* We use char because int might match the return type of a gcc2
25409 builtin and then its argument prototype would still apply. */
25419 rm -f conftest.$ac_objext conftest$ac_exeext
25420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25421 (eval $ac_link) 2>conftest.er1
25423 grep -v '^ *+' conftest.er1 >conftest.err
25425 cat conftest.err >&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); } &&
25428 { ac_try='test -z "$ac_c_werror_flag"
25429 || test ! -s conftest.err'
25430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25431 (eval $ac_try) 2>&5
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); }; } &&
25435 { ac_try='test -s conftest$ac_exeext'
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; }; then
25441 ac_cv_search_mallinfo="none required"
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25447 rm -f conftest.err conftest.$ac_objext \
25448 conftest$ac_exeext conftest.$ac_ext
25449 if test "$ac_cv_search_mallinfo" = no; then
25450 for ac_lib in malloc; do
25451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25452 cat >conftest.$ac_ext <<_ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h. */
25459 /* Override any gcc2 internal prototype to avoid an error. */
25463 /* We use char because int might match the return type of a gcc2
25464 builtin and then its argument prototype would still apply. */
25474 rm -f conftest.$ac_objext conftest$ac_exeext
25475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25476 (eval $ac_link) 2>conftest.er1
25478 grep -v '^ *+' conftest.er1 >conftest.err
25480 cat conftest.err >&5
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); } &&
25483 { ac_try='test -z "$ac_c_werror_flag"
25484 || test ! -s conftest.err'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; } &&
25490 { ac_try='test -s conftest$ac_exeext'
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; }; then
25496 ac_cv_search_mallinfo="-l$ac_lib"
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25503 rm -f conftest.err conftest.$ac_objext \
25504 conftest$ac_exeext conftest.$ac_ext
25507 LIBS=$ac_func_search_save_LIBS
25509 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25510 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25511 if test "$ac_cv_search_mallinfo" != no; then
25512 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25514 cat >>confdefs.h <<\_ACEOF
25515 #define HAVE_MALLINFO 1
25521 if test "$ENABLE_THREADS" -eq 1 ; then
25523 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25524 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25525 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25526 echo $ECHO_N "(cached) $ECHO_C" >&6
25528 ac_check_lib_save_LIBS=$LIBS
25529 LIBS="-lpthread $LIBS"
25530 cat >conftest.$ac_ext <<_ACEOF
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h. */
25537 /* Override any gcc2 internal prototype to avoid an error. */
25541 /* We use char because int might match the return type of a gcc2
25542 builtin and then its argument prototype would still apply. */
25543 char pthread_mutex_init ();
25547 pthread_mutex_init ();
25552 rm -f conftest.$ac_objext conftest$ac_exeext
25553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25554 (eval $ac_link) 2>conftest.er1
25556 grep -v '^ *+' conftest.er1 >conftest.err
25558 cat conftest.err >&5
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); } &&
25561 { ac_try='test -z "$ac_c_werror_flag"
25562 || test ! -s conftest.err'
25563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25564 (eval $ac_try) 2>&5
25566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567 (exit $ac_status); }; } &&
25568 { ac_try='test -s conftest$ac_exeext'
25569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25570 (eval $ac_try) 2>&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); }; }; then
25574 ac_cv_lib_pthread_pthread_mutex_init=yes
25576 echo "$as_me: failed program was:" >&5
25577 sed 's/^/| /' conftest.$ac_ext >&5
25579 ac_cv_lib_pthread_pthread_mutex_init=no
25581 rm -f conftest.err conftest.$ac_objext \
25582 conftest$ac_exeext conftest.$ac_ext
25583 LIBS=$ac_check_lib_save_LIBS
25585 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25586 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25587 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25588 cat >>confdefs.h <<_ACEOF
25589 #define HAVE_LIBPTHREAD 1
25592 LIBS="-lpthread $LIBS"
25596 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25597 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25598 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25599 echo $ECHO_N "(cached) $ECHO_C" >&6
25601 ac_func_search_save_LIBS=$LIBS
25602 ac_cv_search_pthread_mutex_lock=no
25603 cat >conftest.$ac_ext <<_ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h. */
25610 /* Override any gcc2 internal prototype to avoid an error. */
25614 /* We use char because int might match the return type of a gcc2
25615 builtin and then its argument prototype would still apply. */
25616 char pthread_mutex_lock ();
25620 pthread_mutex_lock ();
25625 rm -f conftest.$ac_objext conftest$ac_exeext
25626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25627 (eval $ac_link) 2>conftest.er1
25629 grep -v '^ *+' conftest.er1 >conftest.err
25631 cat conftest.err >&5
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); } &&
25634 { ac_try='test -z "$ac_c_werror_flag"
25635 || test ! -s conftest.err'
25636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25637 (eval $ac_try) 2>&5
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); }; } &&
25641 { ac_try='test -s conftest$ac_exeext'
25642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25643 (eval $ac_try) 2>&5
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); }; }; then
25647 ac_cv_search_pthread_mutex_lock="none required"
25649 echo "$as_me: failed program was:" >&5
25650 sed 's/^/| /' conftest.$ac_ext >&5
25653 rm -f conftest.err conftest.$ac_objext \
25654 conftest$ac_exeext conftest.$ac_ext
25655 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25656 for ac_lib in pthread; do
25657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25658 cat >conftest.$ac_ext <<_ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h. */
25665 /* Override any gcc2 internal prototype to avoid an error. */
25669 /* We use char because int might match the return type of a gcc2
25670 builtin and then its argument prototype would still apply. */
25671 char pthread_mutex_lock ();
25675 pthread_mutex_lock ();
25680 rm -f conftest.$ac_objext conftest$ac_exeext
25681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25682 (eval $ac_link) 2>conftest.er1
25684 grep -v '^ *+' conftest.er1 >conftest.err
25686 cat conftest.err >&5
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } &&
25689 { ac_try='test -z "$ac_c_werror_flag"
25690 || test ! -s conftest.err'
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; } &&
25696 { ac_try='test -s conftest$ac_exeext'
25697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; }; then
25702 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25705 echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25709 rm -f conftest.err conftest.$ac_objext \
25710 conftest$ac_exeext conftest.$ac_ext
25713 LIBS=$ac_func_search_save_LIBS
25715 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25716 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25717 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25718 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25720 cat >>confdefs.h <<\_ACEOF
25721 #define HAVE_PTHREAD_MUTEX_LOCK 1
25734 ac_header_dirent=no
25735 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25736 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25737 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25738 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25742 cat >conftest.$ac_ext <<_ACEOF
25745 cat confdefs.h >>conftest.$ac_ext
25746 cat >>conftest.$ac_ext <<_ACEOF
25747 /* end confdefs.h. */
25748 #include <sys/types.h>
25760 rm -f conftest.$ac_objext
25761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25762 (eval $ac_compile) 2>conftest.er1
25764 grep -v '^ *+' conftest.er1 >conftest.err
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } &&
25769 { ac_try='test -z "$ac_c_werror_flag"
25770 || test ! -s conftest.err'
25771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772 (eval $ac_try) 2>&5
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); }; } &&
25776 { ac_try='test -s conftest.$ac_objext'
25777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778 (eval $ac_try) 2>&5
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); }; }; then
25782 eval "$as_ac_Header=yes"
25784 echo "$as_me: failed program was:" >&5
25785 sed 's/^/| /' conftest.$ac_ext >&5
25787 eval "$as_ac_Header=no"
25789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25794 cat >>confdefs.h <<_ACEOF
25795 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25798 ac_header_dirent=$ac_hdr; break
25802 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25803 if test $ac_header_dirent = dirent.h; then
25804 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25805 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25806 if test "${ac_cv_search_opendir+set}" = set; then
25807 echo $ECHO_N "(cached) $ECHO_C" >&6
25809 ac_func_search_save_LIBS=$LIBS
25810 ac_cv_search_opendir=no
25811 cat >conftest.$ac_ext <<_ACEOF
25814 cat confdefs.h >>conftest.$ac_ext
25815 cat >>conftest.$ac_ext <<_ACEOF
25816 /* end confdefs.h. */
25818 /* Override any gcc2 internal prototype to avoid an error. */
25822 /* We use char because int might match the return type of a gcc2
25823 builtin and then its argument prototype would still apply. */
25833 rm -f conftest.$ac_objext conftest$ac_exeext
25834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25835 (eval $ac_link) 2>conftest.er1
25837 grep -v '^ *+' conftest.er1 >conftest.err
25839 cat conftest.err >&5
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); } &&
25842 { ac_try='test -z "$ac_c_werror_flag"
25843 || test ! -s conftest.err'
25844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845 (eval $ac_try) 2>&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); }; } &&
25849 { ac_try='test -s conftest$ac_exeext'
25850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25851 (eval $ac_try) 2>&5
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); }; }; then
25855 ac_cv_search_opendir="none required"
25857 echo "$as_me: failed program was:" >&5
25858 sed 's/^/| /' conftest.$ac_ext >&5
25861 rm -f conftest.err conftest.$ac_objext \
25862 conftest$ac_exeext conftest.$ac_ext
25863 if test "$ac_cv_search_opendir" = no; then
25864 for ac_lib in dir; do
25865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25866 cat >conftest.$ac_ext <<_ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h. */
25873 /* Override any gcc2 internal prototype to avoid an error. */
25877 /* We use char because int might match the return type of a gcc2
25878 builtin and then its argument prototype would still apply. */
25888 rm -f conftest.$ac_objext conftest$ac_exeext
25889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25890 (eval $ac_link) 2>conftest.er1
25892 grep -v '^ *+' conftest.er1 >conftest.err
25894 cat conftest.err >&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); } &&
25897 { ac_try='test -z "$ac_c_werror_flag"
25898 || test ! -s conftest.err'
25899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900 (eval $ac_try) 2>&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); }; } &&
25904 { ac_try='test -s conftest$ac_exeext'
25905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906 (eval $ac_try) 2>&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); }; }; then
25910 ac_cv_search_opendir="-l$ac_lib"
25913 echo "$as_me: failed program was:" >&5
25914 sed 's/^/| /' conftest.$ac_ext >&5
25917 rm -f conftest.err conftest.$ac_objext \
25918 conftest$ac_exeext conftest.$ac_ext
25921 LIBS=$ac_func_search_save_LIBS
25923 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25924 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25925 if test "$ac_cv_search_opendir" != no; then
25926 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25931 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25932 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25933 if test "${ac_cv_search_opendir+set}" = set; then
25934 echo $ECHO_N "(cached) $ECHO_C" >&6
25936 ac_func_search_save_LIBS=$LIBS
25937 ac_cv_search_opendir=no
25938 cat >conftest.$ac_ext <<_ACEOF
25941 cat confdefs.h >>conftest.$ac_ext
25942 cat >>conftest.$ac_ext <<_ACEOF
25943 /* end confdefs.h. */
25945 /* Override any gcc2 internal prototype to avoid an error. */
25949 /* We use char because int might match the return type of a gcc2
25950 builtin and then its argument prototype would still apply. */
25960 rm -f conftest.$ac_objext conftest$ac_exeext
25961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25962 (eval $ac_link) 2>conftest.er1
25964 grep -v '^ *+' conftest.er1 >conftest.err
25966 cat conftest.err >&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); } &&
25969 { ac_try='test -z "$ac_c_werror_flag"
25970 || test ! -s conftest.err'
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; } &&
25976 { ac_try='test -s conftest$ac_exeext'
25977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); }; }; then
25982 ac_cv_search_opendir="none required"
25984 echo "$as_me: failed program was:" >&5
25985 sed 's/^/| /' conftest.$ac_ext >&5
25988 rm -f conftest.err conftest.$ac_objext \
25989 conftest$ac_exeext conftest.$ac_ext
25990 if test "$ac_cv_search_opendir" = no; then
25991 for ac_lib in x; do
25992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25993 cat >conftest.$ac_ext <<_ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h. */
26000 /* Override any gcc2 internal prototype to avoid an error. */
26004 /* We use char because int might match the return type of a gcc2
26005 builtin and then its argument prototype would still apply. */
26015 rm -f conftest.$ac_objext conftest$ac_exeext
26016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26017 (eval $ac_link) 2>conftest.er1
26019 grep -v '^ *+' conftest.er1 >conftest.err
26021 cat conftest.err >&5
26022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); } &&
26024 { ac_try='test -z "$ac_c_werror_flag"
26025 || test ! -s conftest.err'
26026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027 (eval $ac_try) 2>&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; } &&
26031 { ac_try='test -s conftest$ac_exeext'
26032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26033 (eval $ac_try) 2>&5
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); }; }; then
26037 ac_cv_search_opendir="-l$ac_lib"
26040 echo "$as_me: failed program was:" >&5
26041 sed 's/^/| /' conftest.$ac_ext >&5
26044 rm -f conftest.err conftest.$ac_objext \
26045 conftest$ac_exeext conftest.$ac_ext
26048 LIBS=$ac_func_search_save_LIBS
26050 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26051 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26052 if test "$ac_cv_search_opendir" != no; then
26053 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26059 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26060 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26061 if test "${ac_cv_header_mmap_anon+set}" = set; then
26062 echo $ECHO_N "(cached) $ECHO_C" >&6
26065 ac_cpp='$CPP $CPPFLAGS'
26066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26070 cat >conftest.$ac_ext <<_ACEOF
26073 cat confdefs.h >>conftest.$ac_ext
26074 cat >>conftest.$ac_ext <<_ACEOF
26075 /* end confdefs.h. */
26076 #include <sys/mman.h>
26077 #include <unistd.h>
26082 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26087 rm -f conftest.$ac_objext
26088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26089 (eval $ac_compile) 2>conftest.er1
26091 grep -v '^ *+' conftest.er1 >conftest.err
26093 cat conftest.err >&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } &&
26096 { ac_try='test -z "$ac_c_werror_flag"
26097 || test ! -s conftest.err'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; } &&
26103 { ac_try='test -s conftest.$ac_objext'
26104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105 (eval $ac_try) 2>&5
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; }; then
26109 ac_cv_header_mmap_anon=yes
26111 echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26114 ac_cv_header_mmap_anon=no
26116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26118 ac_cpp='$CPP $CPPFLAGS'
26119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26125 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26126 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26127 if test "$ac_cv_header_mmap_anon" = yes; then
26129 cat >>confdefs.h <<\_ACEOF
26130 #define HAVE_MMAP_ANONYMOUS 1
26135 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26136 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26137 if test "${ac_cv_header_stat_broken+set}" = set; then
26138 echo $ECHO_N "(cached) $ECHO_C" >&6
26140 cat >conftest.$ac_ext <<_ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h. */
26146 #include <sys/types.h>
26147 #include <sys/stat.h>
26149 #if defined(S_ISBLK) && defined(S_IFDIR)
26150 # if S_ISBLK (S_IFDIR)
26155 #if defined(S_ISBLK) && defined(S_IFCHR)
26156 # if S_ISBLK (S_IFCHR)
26161 #if defined(S_ISLNK) && defined(S_IFREG)
26162 # if S_ISLNK (S_IFREG)
26167 #if defined(S_ISSOCK) && defined(S_IFREG)
26168 # if S_ISSOCK (S_IFREG)
26174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26175 $EGREP "You lose" >/dev/null 2>&1; then
26176 ac_cv_header_stat_broken=yes
26178 ac_cv_header_stat_broken=no
26183 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26184 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26185 if test $ac_cv_header_stat_broken = yes; then
26187 cat >>confdefs.h <<\_ACEOF
26188 #define STAT_MACROS_BROKEN 1
26193 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26194 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26195 if test "${ac_cv_header_stdc+set}" = set; then
26196 echo $ECHO_N "(cached) $ECHO_C" >&6
26198 cat >conftest.$ac_ext <<_ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h. */
26204 #include <stdlib.h>
26205 #include <stdarg.h>
26206 #include <string.h>
26217 rm -f conftest.$ac_objext
26218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26219 (eval $ac_compile) 2>conftest.er1
26221 grep -v '^ *+' conftest.er1 >conftest.err
26223 cat conftest.err >&5
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); } &&
26226 { ac_try='test -z "$ac_c_werror_flag"
26227 || test ! -s conftest.err'
26228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26229 (eval $ac_try) 2>&5
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); }; } &&
26233 { ac_try='test -s conftest.$ac_objext'
26234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26235 (eval $ac_try) 2>&5
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); }; }; then
26239 ac_cv_header_stdc=yes
26241 echo "$as_me: failed program was:" >&5
26242 sed 's/^/| /' conftest.$ac_ext >&5
26244 ac_cv_header_stdc=no
26246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26248 if test $ac_cv_header_stdc = yes; then
26249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26250 cat >conftest.$ac_ext <<_ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h. */
26256 #include <string.h>
26259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26260 $EGREP "memchr" >/dev/null 2>&1; then
26263 ac_cv_header_stdc=no
26269 if test $ac_cv_header_stdc = yes; then
26270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26271 cat >conftest.$ac_ext <<_ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h. */
26277 #include <stdlib.h>
26280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26281 $EGREP "free" >/dev/null 2>&1; then
26284 ac_cv_header_stdc=no
26290 if test $ac_cv_header_stdc = yes; then
26291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26292 if test "$cross_compiling" = yes; then
26295 cat >conftest.$ac_ext <<_ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h. */
26302 #if ((' ' & 0x0FF) == 0x020)
26303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26306 # define ISLOWER(c) \
26307 (('a' <= (c) && (c) <= 'i') \
26308 || ('j' <= (c) && (c) <= 'r') \
26309 || ('s' <= (c) && (c) <= 'z'))
26310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26318 for (i = 0; i < 256; i++)
26319 if (XOR (islower (i), ISLOWER (i))
26320 || toupper (i) != TOUPPER (i))
26325 rm -f conftest$ac_exeext
26326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26327 (eval $ac_link) 2>&5
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26332 (eval $ac_try) 2>&5
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); }; }; then
26338 echo "$as_me: program exited with status $ac_status" >&5
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26342 ( exit $ac_status )
26343 ac_cv_header_stdc=no
26345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26349 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26350 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26351 if test $ac_cv_header_stdc = yes; then
26353 cat >>confdefs.h <<\_ACEOF
26354 #define STDC_HEADERS 1
26359 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26360 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26361 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 cat >conftest.$ac_ext <<_ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h. */
26370 #include <sys/types.h>
26371 #include <sys/wait.h>
26372 #ifndef WEXITSTATUS
26373 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26376 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26384 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26389 rm -f conftest.$ac_objext
26390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26391 (eval $ac_compile) 2>conftest.er1
26393 grep -v '^ *+' conftest.er1 >conftest.err
26395 cat conftest.err >&5
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); } &&
26398 { ac_try='test -z "$ac_c_werror_flag"
26399 || test ! -s conftest.err'
26400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401 (eval $ac_try) 2>&5
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); }; } &&
26405 { ac_try='test -s conftest.$ac_objext'
26406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407 (eval $ac_try) 2>&5
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); }; }; then
26411 ac_cv_header_sys_wait_h=yes
26413 echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26416 ac_cv_header_sys_wait_h=no
26418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26420 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26421 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26422 if test $ac_cv_header_sys_wait_h = yes; then
26424 cat >>confdefs.h <<\_ACEOF
26425 #define HAVE_SYS_WAIT_H 1
26430 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26431 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26432 if test "${ac_cv_header_time+set}" = set; then
26433 echo $ECHO_N "(cached) $ECHO_C" >&6
26435 cat >conftest.$ac_ext <<_ACEOF
26438 cat confdefs.h >>conftest.$ac_ext
26439 cat >>conftest.$ac_ext <<_ACEOF
26440 /* end confdefs.h. */
26441 #include <sys/types.h>
26442 #include <sys/time.h>
26448 if ((struct tm *) 0)
26454 rm -f conftest.$ac_objext
26455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26456 (eval $ac_compile) 2>conftest.er1
26458 grep -v '^ *+' conftest.er1 >conftest.err
26460 cat conftest.err >&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); } &&
26463 { ac_try='test -z "$ac_c_werror_flag"
26464 || test ! -s conftest.err'
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; } &&
26470 { ac_try='test -s conftest.$ac_objext'
26471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472 (eval $ac_try) 2>&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); }; }; then
26476 ac_cv_header_time=yes
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26481 ac_cv_header_time=no
26483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26485 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26486 echo "${ECHO_T}$ac_cv_header_time" >&6
26487 if test $ac_cv_header_time = yes; then
26489 cat >>confdefs.h <<\_ACEOF
26490 #define TIME_WITH_SYS_TIME 1
26502 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26506 echo "$as_me:$LINENO: checking for $ac_header" >&5
26507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26509 echo $ECHO_N "(cached) $ECHO_C" >&6
26511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26514 # Is the header compilable?
26515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26517 cat >conftest.$ac_ext <<_ACEOF
26520 cat confdefs.h >>conftest.$ac_ext
26521 cat >>conftest.$ac_ext <<_ACEOF
26522 /* end confdefs.h. */
26523 $ac_includes_default
26524 #include <$ac_header>
26526 rm -f conftest.$ac_objext
26527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26528 (eval $ac_compile) 2>conftest.er1
26530 grep -v '^ *+' conftest.er1 >conftest.err
26532 cat conftest.err >&5
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); } &&
26535 { ac_try='test -z "$ac_c_werror_flag"
26536 || test ! -s conftest.err'
26537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538 (eval $ac_try) 2>&5
26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); }; } &&
26542 { ac_try='test -s conftest.$ac_objext'
26543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26544 (eval $ac_try) 2>&5
26546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); }; }; then
26548 ac_header_compiler=yes
26550 echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26553 ac_header_compiler=no
26555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26557 echo "${ECHO_T}$ac_header_compiler" >&6
26559 # Is the header present?
26560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26562 cat >conftest.$ac_ext <<_ACEOF
26565 cat confdefs.h >>conftest.$ac_ext
26566 cat >>conftest.$ac_ext <<_ACEOF
26567 /* end confdefs.h. */
26568 #include <$ac_header>
26570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26573 grep -v '^ *+' conftest.er1 >conftest.err
26575 cat conftest.err >&5
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); } >/dev/null; then
26578 if test -s conftest.err; then
26579 ac_cpp_err=$ac_c_preproc_warn_flag
26580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26587 if test -z "$ac_cpp_err"; then
26588 ac_header_preproc=yes
26590 echo "$as_me: failed program was:" >&5
26591 sed 's/^/| /' conftest.$ac_ext >&5
26593 ac_header_preproc=no
26595 rm -f conftest.err conftest.$ac_ext
26596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26597 echo "${ECHO_T}$ac_header_preproc" >&6
26599 # So? What about this header?
26600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26606 ac_header_preproc=yes
26609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26623 ## ----------------------------------- ##
26624 ## Report this to llvmbugs@cs.uiuc.edu ##
26625 ## ----------------------------------- ##
26628 sed "s/^/$as_me: WARNING: /" >&2
26631 echo "$as_me:$LINENO: checking for $ac_header" >&5
26632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
26636 eval "$as_ac_Header=\$ac_header_preproc"
26638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26643 cat >>confdefs.h <<_ACEOF
26644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26657 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26661 echo "$as_me:$LINENO: checking for $ac_header" >&5
26662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26664 echo $ECHO_N "(cached) $ECHO_C" >&6
26666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26669 # Is the header compilable?
26670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26672 cat >conftest.$ac_ext <<_ACEOF
26675 cat confdefs.h >>conftest.$ac_ext
26676 cat >>conftest.$ac_ext <<_ACEOF
26677 /* end confdefs.h. */
26678 $ac_includes_default
26679 #include <$ac_header>
26681 rm -f conftest.$ac_objext
26682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26683 (eval $ac_compile) 2>conftest.er1
26685 grep -v '^ *+' conftest.er1 >conftest.err
26687 cat conftest.err >&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); } &&
26690 { ac_try='test -z "$ac_c_werror_flag"
26691 || test ! -s conftest.err'
26692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693 (eval $ac_try) 2>&5
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); }; } &&
26697 { ac_try='test -s conftest.$ac_objext'
26698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699 (eval $ac_try) 2>&5
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); }; }; then
26703 ac_header_compiler=yes
26705 echo "$as_me: failed program was:" >&5
26706 sed 's/^/| /' conftest.$ac_ext >&5
26708 ac_header_compiler=no
26710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26712 echo "${ECHO_T}$ac_header_compiler" >&6
26714 # Is the header present?
26715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26717 cat >conftest.$ac_ext <<_ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h. */
26723 #include <$ac_header>
26725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26728 grep -v '^ *+' conftest.er1 >conftest.err
26730 cat conftest.err >&5
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } >/dev/null; then
26733 if test -s conftest.err; then
26734 ac_cpp_err=$ac_c_preproc_warn_flag
26735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26742 if test -z "$ac_cpp_err"; then
26743 ac_header_preproc=yes
26745 echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26748 ac_header_preproc=no
26750 rm -f conftest.err conftest.$ac_ext
26751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26752 echo "${ECHO_T}$ac_header_preproc" >&6
26754 # So? What about this header?
26755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26761 ac_header_preproc=yes
26764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26778 ## ----------------------------------- ##
26779 ## Report this to llvmbugs@cs.uiuc.edu ##
26780 ## ----------------------------------- ##
26783 sed "s/^/$as_me: WARNING: /" >&2
26786 echo "$as_me:$LINENO: checking for $ac_header" >&5
26787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26789 echo $ECHO_N "(cached) $ECHO_C" >&6
26791 eval "$as_ac_Header=\$ac_header_preproc"
26793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26798 cat >>confdefs.h <<_ACEOF
26799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26811 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26815 echo "$as_me:$LINENO: checking for $ac_header" >&5
26816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26823 # Is the header compilable?
26824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26826 cat >conftest.$ac_ext <<_ACEOF
26829 cat confdefs.h >>conftest.$ac_ext
26830 cat >>conftest.$ac_ext <<_ACEOF
26831 /* end confdefs.h. */
26832 $ac_includes_default
26833 #include <$ac_header>
26835 rm -f conftest.$ac_objext
26836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26837 (eval $ac_compile) 2>conftest.er1
26839 grep -v '^ *+' conftest.er1 >conftest.err
26841 cat conftest.err >&5
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } &&
26844 { ac_try='test -z "$ac_c_werror_flag"
26845 || test ! -s conftest.err'
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } &&
26851 { ac_try='test -s conftest.$ac_objext'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 ac_header_compiler=yes
26859 echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26862 ac_header_compiler=no
26864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26866 echo "${ECHO_T}$ac_header_compiler" >&6
26868 # Is the header present?
26869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26871 cat >conftest.$ac_ext <<_ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h. */
26877 #include <$ac_header>
26879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26882 grep -v '^ *+' conftest.er1 >conftest.err
26884 cat conftest.err >&5
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } >/dev/null; then
26887 if test -s conftest.err; then
26888 ac_cpp_err=$ac_c_preproc_warn_flag
26889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26896 if test -z "$ac_cpp_err"; then
26897 ac_header_preproc=yes
26899 echo "$as_me: failed program was:" >&5
26900 sed 's/^/| /' conftest.$ac_ext >&5
26902 ac_header_preproc=no
26904 rm -f conftest.err conftest.$ac_ext
26905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26906 echo "${ECHO_T}$ac_header_preproc" >&6
26908 # So? What about this header?
26909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26915 ac_header_preproc=yes
26918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26932 ## ----------------------------------- ##
26933 ## Report this to llvmbugs@cs.uiuc.edu ##
26934 ## ----------------------------------- ##
26937 sed "s/^/$as_me: WARNING: /" >&2
26940 echo "$as_me:$LINENO: checking for $ac_header" >&5
26941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26943 echo $ECHO_N "(cached) $ECHO_C" >&6
26945 eval "$as_ac_Header=\$ac_header_preproc"
26947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26952 cat >>confdefs.h <<_ACEOF
26953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26961 for ac_header in malloc/malloc.h
26963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26965 echo "$as_me:$LINENO: checking for $ac_header" >&5
26966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26968 echo $ECHO_N "(cached) $ECHO_C" >&6
26970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26973 # Is the header compilable?
26974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26976 cat >conftest.$ac_ext <<_ACEOF
26979 cat confdefs.h >>conftest.$ac_ext
26980 cat >>conftest.$ac_ext <<_ACEOF
26981 /* end confdefs.h. */
26982 $ac_includes_default
26983 #include <$ac_header>
26985 rm -f conftest.$ac_objext
26986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26987 (eval $ac_compile) 2>conftest.er1
26989 grep -v '^ *+' conftest.er1 >conftest.err
26991 cat conftest.err >&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); } &&
26994 { ac_try='test -z "$ac_c_werror_flag"
26995 || test ! -s conftest.err'
26996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26997 (eval $ac_try) 2>&5
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; } &&
27001 { ac_try='test -s conftest.$ac_objext'
27002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003 (eval $ac_try) 2>&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); }; }; then
27007 ac_header_compiler=yes
27009 echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27012 ac_header_compiler=no
27014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27016 echo "${ECHO_T}$ac_header_compiler" >&6
27018 # Is the header present?
27019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27021 cat >conftest.$ac_ext <<_ACEOF
27024 cat confdefs.h >>conftest.$ac_ext
27025 cat >>conftest.$ac_ext <<_ACEOF
27026 /* end confdefs.h. */
27027 #include <$ac_header>
27029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27032 grep -v '^ *+' conftest.er1 >conftest.err
27034 cat conftest.err >&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); } >/dev/null; then
27037 if test -s conftest.err; then
27038 ac_cpp_err=$ac_c_preproc_warn_flag
27039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27046 if test -z "$ac_cpp_err"; then
27047 ac_header_preproc=yes
27049 echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27052 ac_header_preproc=no
27054 rm -f conftest.err conftest.$ac_ext
27055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27056 echo "${ECHO_T}$ac_header_preproc" >&6
27058 # So? What about this header?
27059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27065 ac_header_preproc=yes
27068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27082 ## ----------------------------------- ##
27083 ## Report this to llvmbugs@cs.uiuc.edu ##
27084 ## ----------------------------------- ##
27087 sed "s/^/$as_me: WARNING: /" >&2
27090 echo "$as_me:$LINENO: checking for $ac_header" >&5
27091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27093 echo $ECHO_N "(cached) $ECHO_C" >&6
27095 eval "$as_ac_Header=\$ac_header_preproc"
27097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27102 cat >>confdefs.h <<_ACEOF
27103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27110 if test "$ENABLE_THREADS" -eq 1 ; then
27112 for ac_header in pthread.h
27114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27116 echo "$as_me:$LINENO: checking for $ac_header" >&5
27117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27119 echo $ECHO_N "(cached) $ECHO_C" >&6
27121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27124 # Is the header compilable?
27125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27127 cat >conftest.$ac_ext <<_ACEOF
27130 cat confdefs.h >>conftest.$ac_ext
27131 cat >>conftest.$ac_ext <<_ACEOF
27132 /* end confdefs.h. */
27133 $ac_includes_default
27134 #include <$ac_header>
27136 rm -f conftest.$ac_objext
27137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27138 (eval $ac_compile) 2>conftest.er1
27140 grep -v '^ *+' conftest.er1 >conftest.err
27142 cat conftest.err >&5
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); } &&
27145 { ac_try='test -z "$ac_c_werror_flag"
27146 || test ! -s conftest.err'
27147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; } &&
27152 { ac_try='test -s conftest.$ac_objext'
27153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154 (eval $ac_try) 2>&5
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); }; }; then
27158 ac_header_compiler=yes
27160 echo "$as_me: failed program was:" >&5
27161 sed 's/^/| /' conftest.$ac_ext >&5
27163 ac_header_compiler=no
27165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27167 echo "${ECHO_T}$ac_header_compiler" >&6
27169 # Is the header present?
27170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27172 cat >conftest.$ac_ext <<_ACEOF
27175 cat confdefs.h >>conftest.$ac_ext
27176 cat >>conftest.$ac_ext <<_ACEOF
27177 /* end confdefs.h. */
27178 #include <$ac_header>
27180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27183 grep -v '^ *+' conftest.er1 >conftest.err
27185 cat conftest.err >&5
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); } >/dev/null; then
27188 if test -s conftest.err; then
27189 ac_cpp_err=$ac_c_preproc_warn_flag
27190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27197 if test -z "$ac_cpp_err"; then
27198 ac_header_preproc=yes
27200 echo "$as_me: failed program was:" >&5
27201 sed 's/^/| /' conftest.$ac_ext >&5
27203 ac_header_preproc=no
27205 rm -f conftest.err conftest.$ac_ext
27206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27207 echo "${ECHO_T}$ac_header_preproc" >&6
27209 # So? What about this header?
27210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27216 ac_header_preproc=yes
27219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27233 ## ----------------------------------- ##
27234 ## Report this to llvmbugs@cs.uiuc.edu ##
27235 ## ----------------------------------- ##
27238 sed "s/^/$as_me: WARNING: /" >&2
27241 echo "$as_me:$LINENO: checking for $ac_header" >&5
27242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27244 echo $ECHO_N "(cached) $ECHO_C" >&6
27246 eval "$as_ac_Header=\$ac_header_preproc"
27248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27253 cat >>confdefs.h <<_ACEOF
27254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27264 echo "$as_me:$LINENO: checking for pid_t" >&5
27265 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27266 if test "${ac_cv_type_pid_t+set}" = set; then
27267 echo $ECHO_N "(cached) $ECHO_C" >&6
27269 cat >conftest.$ac_ext <<_ACEOF
27272 cat confdefs.h >>conftest.$ac_ext
27273 cat >>conftest.$ac_ext <<_ACEOF
27274 /* end confdefs.h. */
27275 $ac_includes_default
27281 if (sizeof (pid_t))
27287 rm -f conftest.$ac_objext
27288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27289 (eval $ac_compile) 2>conftest.er1
27291 grep -v '^ *+' conftest.er1 >conftest.err
27293 cat conftest.err >&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } &&
27296 { ac_try='test -z "$ac_c_werror_flag"
27297 || test ! -s conftest.err'
27298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299 (eval $ac_try) 2>&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; } &&
27303 { ac_try='test -s conftest.$ac_objext'
27304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27305 (eval $ac_try) 2>&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; }; then
27309 ac_cv_type_pid_t=yes
27311 echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27314 ac_cv_type_pid_t=no
27316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27318 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27319 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27320 if test $ac_cv_type_pid_t = yes; then
27324 cat >>confdefs.h <<_ACEOF
27330 echo "$as_me:$LINENO: checking for size_t" >&5
27331 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27332 if test "${ac_cv_type_size_t+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27335 cat >conftest.$ac_ext <<_ACEOF
27338 cat confdefs.h >>conftest.$ac_ext
27339 cat >>conftest.$ac_ext <<_ACEOF
27340 /* end confdefs.h. */
27341 $ac_includes_default
27347 if (sizeof (size_t))
27353 rm -f conftest.$ac_objext
27354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27355 (eval $ac_compile) 2>conftest.er1
27357 grep -v '^ *+' conftest.er1 >conftest.err
27359 cat conftest.err >&5
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); } &&
27362 { ac_try='test -z "$ac_c_werror_flag"
27363 || test ! -s conftest.err'
27364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27365 (eval $ac_try) 2>&5
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); }; } &&
27369 { ac_try='test -s conftest.$ac_objext'
27370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371 (eval $ac_try) 2>&5
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; }; then
27375 ac_cv_type_size_t=yes
27377 echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27380 ac_cv_type_size_t=no
27382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27384 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27385 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27386 if test $ac_cv_type_size_t = yes; then
27390 cat >>confdefs.h <<_ACEOF
27391 #define size_t unsigned
27396 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27397 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27398 if test "${ac_cv_type_signal+set}" = set; then
27399 echo $ECHO_N "(cached) $ECHO_C" >&6
27401 cat >conftest.$ac_ext <<_ACEOF
27404 cat confdefs.h >>conftest.$ac_ext
27405 cat >>conftest.$ac_ext <<_ACEOF
27406 /* end confdefs.h. */
27407 #include <sys/types.h>
27408 #include <signal.h>
27413 extern "C" void (*signal (int, void (*)(int)))(int);
27415 void (*signal ()) ();
27426 rm -f conftest.$ac_objext
27427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27428 (eval $ac_compile) 2>conftest.er1
27430 grep -v '^ *+' conftest.er1 >conftest.err
27432 cat conftest.err >&5
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); } &&
27435 { ac_try='test -z "$ac_c_werror_flag"
27436 || test ! -s conftest.err'
27437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27438 (eval $ac_try) 2>&5
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); }; } &&
27442 { ac_try='test -s conftest.$ac_objext'
27443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27444 (eval $ac_try) 2>&5
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); }; }; then
27448 ac_cv_type_signal=void
27450 echo "$as_me: failed program was:" >&5
27451 sed 's/^/| /' conftest.$ac_ext >&5
27453 ac_cv_type_signal=int
27455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27457 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27458 echo "${ECHO_T}$ac_cv_type_signal" >&6
27460 cat >>confdefs.h <<_ACEOF
27461 #define RETSIGTYPE $ac_cv_type_signal
27465 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27466 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27467 if test "${ac_cv_struct_tm+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 #include <sys/types.h>
27482 struct tm *tp; tp->tm_sec;
27487 rm -f conftest.$ac_objext
27488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27489 (eval $ac_compile) 2>conftest.er1
27491 grep -v '^ *+' conftest.er1 >conftest.err
27493 cat conftest.err >&5
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); } &&
27496 { ac_try='test -z "$ac_c_werror_flag"
27497 || test ! -s conftest.err'
27498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27499 (eval $ac_try) 2>&5
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; } &&
27503 { ac_try='test -s conftest.$ac_objext'
27504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27505 (eval $ac_try) 2>&5
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); }; }; then
27509 ac_cv_struct_tm=time.h
27511 echo "$as_me: failed program was:" >&5
27512 sed 's/^/| /' conftest.$ac_ext >&5
27514 ac_cv_struct_tm=sys/time.h
27516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27518 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27519 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27520 if test $ac_cv_struct_tm = sys/time.h; then
27522 cat >>confdefs.h <<\_ACEOF
27523 #define TM_IN_SYS_TIME 1
27528 echo "$as_me:$LINENO: checking for int64_t" >&5
27529 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27530 if test "${ac_cv_type_int64_t+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
27533 cat >conftest.$ac_ext <<_ACEOF
27536 cat confdefs.h >>conftest.$ac_ext
27537 cat >>conftest.$ac_ext <<_ACEOF
27538 /* end confdefs.h. */
27539 $ac_includes_default
27545 if (sizeof (int64_t))
27551 rm -f conftest.$ac_objext
27552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27553 (eval $ac_compile) 2>conftest.er1
27555 grep -v '^ *+' conftest.er1 >conftest.err
27557 cat conftest.err >&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } &&
27560 { ac_try='test -z "$ac_c_werror_flag"
27561 || test ! -s conftest.err'
27562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563 (eval $ac_try) 2>&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; } &&
27567 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27573 ac_cv_type_int64_t=yes
27575 echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27578 ac_cv_type_int64_t=no
27580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27582 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27583 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27584 if test $ac_cv_type_int64_t = yes; then
27586 cat >>confdefs.h <<_ACEOF
27587 #define HAVE_INT64_T 1
27592 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27593 echo "$as_me: error: Type int64_t required but not found" >&2;}
27594 { (exit 1); exit 1; }; }
27597 echo "$as_me:$LINENO: checking for uint64_t" >&5
27598 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27599 if test "${ac_cv_type_uint64_t+set}" = set; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27602 cat >conftest.$ac_ext <<_ACEOF
27605 cat confdefs.h >>conftest.$ac_ext
27606 cat >>conftest.$ac_ext <<_ACEOF
27607 /* end confdefs.h. */
27608 $ac_includes_default
27612 if ((uint64_t *) 0)
27614 if (sizeof (uint64_t))
27620 rm -f conftest.$ac_objext
27621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27622 (eval $ac_compile) 2>conftest.er1
27624 grep -v '^ *+' conftest.er1 >conftest.err
27626 cat conftest.err >&5
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); } &&
27629 { ac_try='test -z "$ac_c_werror_flag"
27630 || test ! -s conftest.err'
27631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27632 (eval $ac_try) 2>&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); }; } &&
27636 { ac_try='test -s conftest.$ac_objext'
27637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27638 (eval $ac_try) 2>&5
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; }; then
27642 ac_cv_type_uint64_t=yes
27644 echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.$ac_ext >&5
27647 ac_cv_type_uint64_t=no
27649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27651 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27652 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27653 if test $ac_cv_type_uint64_t = yes; then
27655 cat >>confdefs.h <<_ACEOF
27656 #define HAVE_UINT64_T 1
27661 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27662 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27663 if test "${ac_cv_type_u_int64_t+set}" = set; then
27664 echo $ECHO_N "(cached) $ECHO_C" >&6
27666 cat >conftest.$ac_ext <<_ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h. */
27672 $ac_includes_default
27676 if ((u_int64_t *) 0)
27678 if (sizeof (u_int64_t))
27684 rm -f conftest.$ac_objext
27685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27686 (eval $ac_compile) 2>conftest.er1
27688 grep -v '^ *+' conftest.er1 >conftest.err
27690 cat conftest.err >&5
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); } &&
27693 { ac_try='test -z "$ac_c_werror_flag"
27694 || test ! -s conftest.err'
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest.$ac_objext'
27701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702 (eval $ac_try) 2>&5
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; }; then
27706 ac_cv_type_u_int64_t=yes
27708 echo "$as_me: failed program was:" >&5
27709 sed 's/^/| /' conftest.$ac_ext >&5
27711 ac_cv_type_u_int64_t=no
27713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27715 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27716 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27717 if test $ac_cv_type_u_int64_t = yes; then
27719 cat >>confdefs.h <<_ACEOF
27720 #define HAVE_U_INT64_T 1
27725 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27726 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27727 { (exit 1); exit 1; }; }
27741 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27744 echo "$as_me:$LINENO: checking for $ac_func" >&5
27745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27746 if eval "test \"\${$as_ac_var+set}\" = set"; then
27747 echo $ECHO_N "(cached) $ECHO_C" >&6
27749 cat >conftest.$ac_ext <<_ACEOF
27752 cat confdefs.h >>conftest.$ac_ext
27753 cat >>conftest.$ac_ext <<_ACEOF
27754 /* end confdefs.h. */
27755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27757 #define $ac_func innocuous_$ac_func
27759 /* System header to define __stub macros and hopefully few prototypes,
27760 which can conflict with char $ac_func (); below.
27761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27762 <limits.h> exists even on freestanding compilers. */
27765 # include <limits.h>
27767 # include <assert.h>
27772 /* Override any gcc2 internal prototype to avoid an error. */
27777 /* We use char because int might match the return type of a gcc2
27778 builtin and then its argument prototype would still apply. */
27780 /* The GNU C library defines this for functions which it implements
27781 to always fail with ENOSYS. Some functions are actually named
27782 something starting with __ and the normal name is an alias. */
27783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27786 char (*f) () = $ac_func;
27795 return f != $ac_func;
27800 rm -f conftest.$ac_objext conftest$ac_exeext
27801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27802 (eval $ac_link) 2>conftest.er1
27804 grep -v '^ *+' conftest.er1 >conftest.err
27806 cat conftest.err >&5
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); } &&
27809 { ac_try='test -z "$ac_c_werror_flag"
27810 || test ! -s conftest.err'
27811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27812 (eval $ac_try) 2>&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); }; } &&
27816 { ac_try='test -s conftest$ac_exeext'
27817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; }; then
27822 eval "$as_ac_var=yes"
27824 echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27827 eval "$as_ac_var=no"
27829 rm -f conftest.err conftest.$ac_objext \
27830 conftest$ac_exeext conftest.$ac_ext
27832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27834 if test `eval echo '${'$as_ac_var'}'` = yes; then
27835 cat >>confdefs.h <<_ACEOF
27836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27848 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27851 echo "$as_me:$LINENO: checking for $ac_func" >&5
27852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27853 if eval "test \"\${$as_ac_var+set}\" = set"; then
27854 echo $ECHO_N "(cached) $ECHO_C" >&6
27856 cat >conftest.$ac_ext <<_ACEOF
27859 cat confdefs.h >>conftest.$ac_ext
27860 cat >>conftest.$ac_ext <<_ACEOF
27861 /* end confdefs.h. */
27862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27864 #define $ac_func innocuous_$ac_func
27866 /* System header to define __stub macros and hopefully few prototypes,
27867 which can conflict with char $ac_func (); below.
27868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27869 <limits.h> exists even on freestanding compilers. */
27872 # include <limits.h>
27874 # include <assert.h>
27879 /* Override any gcc2 internal prototype to avoid an error. */
27884 /* We use char because int might match the return type of a gcc2
27885 builtin and then its argument prototype would still apply. */
27887 /* The GNU C library defines this for functions which it implements
27888 to always fail with ENOSYS. Some functions are actually named
27889 something starting with __ and the normal name is an alias. */
27890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27893 char (*f) () = $ac_func;
27902 return f != $ac_func;
27907 rm -f conftest.$ac_objext conftest$ac_exeext
27908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27909 (eval $ac_link) 2>conftest.er1
27911 grep -v '^ *+' conftest.er1 >conftest.err
27913 cat conftest.err >&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); } &&
27916 { ac_try='test -z "$ac_c_werror_flag"
27917 || test ! -s conftest.err'
27918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27919 (eval $ac_try) 2>&5
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; } &&
27923 { ac_try='test -s conftest$ac_exeext'
27924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27925 (eval $ac_try) 2>&5
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928 (exit $ac_status); }; }; then
27929 eval "$as_ac_var=yes"
27931 echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27934 eval "$as_ac_var=no"
27936 rm -f conftest.err conftest.$ac_objext \
27937 conftest$ac_exeext conftest.$ac_ext
27939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27941 if test `eval echo '${'$as_ac_var'}'` = yes; then
27942 cat >>confdefs.h <<_ACEOF
27943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27956 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27959 echo "$as_me:$LINENO: checking for $ac_func" >&5
27960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27961 if eval "test \"\${$as_ac_var+set}\" = set"; then
27962 echo $ECHO_N "(cached) $ECHO_C" >&6
27964 cat >conftest.$ac_ext <<_ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h. */
27970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27972 #define $ac_func innocuous_$ac_func
27974 /* System header to define __stub macros and hopefully few prototypes,
27975 which can conflict with char $ac_func (); below.
27976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27977 <limits.h> exists even on freestanding compilers. */
27980 # include <limits.h>
27982 # include <assert.h>
27987 /* Override any gcc2 internal prototype to avoid an error. */
27992 /* We use char because int might match the return type of a gcc2
27993 builtin and then its argument prototype would still apply. */
27995 /* The GNU C library defines this for functions which it implements
27996 to always fail with ENOSYS. Some functions are actually named
27997 something starting with __ and the normal name is an alias. */
27998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28001 char (*f) () = $ac_func;
28010 return f != $ac_func;
28015 rm -f conftest.$ac_objext conftest$ac_exeext
28016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28017 (eval $ac_link) 2>conftest.er1
28019 grep -v '^ *+' conftest.er1 >conftest.err
28021 cat conftest.err >&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); } &&
28024 { ac_try='test -z "$ac_c_werror_flag"
28025 || test ! -s conftest.err'
28026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027 (eval $ac_try) 2>&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); }; } &&
28031 { ac_try='test -s conftest$ac_exeext'
28032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033 (eval $ac_try) 2>&5
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; }; then
28037 eval "$as_ac_var=yes"
28039 echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28042 eval "$as_ac_var=no"
28044 rm -f conftest.err conftest.$ac_objext \
28045 conftest$ac_exeext conftest.$ac_ext
28047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28049 if test `eval echo '${'$as_ac_var'}'` = yes; then
28050 cat >>confdefs.h <<_ACEOF
28051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28061 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28064 echo "$as_me:$LINENO: checking for $ac_func" >&5
28065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28066 if eval "test \"\${$as_ac_var+set}\" = set"; then
28067 echo $ECHO_N "(cached) $ECHO_C" >&6
28069 cat >conftest.$ac_ext <<_ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h. */
28075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28077 #define $ac_func innocuous_$ac_func
28079 /* System header to define __stub macros and hopefully few prototypes,
28080 which can conflict with char $ac_func (); below.
28081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28082 <limits.h> exists even on freestanding compilers. */
28085 # include <limits.h>
28087 # include <assert.h>
28092 /* Override any gcc2 internal prototype to avoid an error. */
28097 /* We use char because int might match the return type of a gcc2
28098 builtin and then its argument prototype would still apply. */
28100 /* The GNU C library defines this for functions which it implements
28101 to always fail with ENOSYS. Some functions are actually named
28102 something starting with __ and the normal name is an alias. */
28103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28106 char (*f) () = $ac_func;
28115 return f != $ac_func;
28120 rm -f conftest.$ac_objext conftest$ac_exeext
28121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28122 (eval $ac_link) 2>conftest.er1
28124 grep -v '^ *+' conftest.er1 >conftest.err
28126 cat conftest.err >&5
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } &&
28129 { ac_try='test -z "$ac_c_werror_flag"
28130 || test ! -s conftest.err'
28131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28132 (eval $ac_try) 2>&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); }; } &&
28136 { ac_try='test -s conftest$ac_exeext'
28137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28138 (eval $ac_try) 2>&5
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); }; }; then
28142 eval "$as_ac_var=yes"
28144 echo "$as_me: failed program was:" >&5
28145 sed 's/^/| /' conftest.$ac_ext >&5
28147 eval "$as_ac_var=no"
28149 rm -f conftest.err conftest.$ac_objext \
28150 conftest$ac_exeext conftest.$ac_ext
28152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28154 if test `eval echo '${'$as_ac_var'}'` = yes; then
28155 cat >>confdefs.h <<_ACEOF
28156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28162 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28163 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28164 if test "${llvm_cv_c_printf_a+set}" = set; then
28165 echo $ECHO_N "(cached) $ECHO_C" >&6
28168 ac_cpp='$CPP $CPPFLAGS'
28169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28173 if test "$cross_compiling" = yes; then
28174 llvmac_cv_c_printf_a=no
28176 cat >conftest.$ac_ext <<_ACEOF
28180 cat confdefs.h >>conftest.$ac_ext
28181 cat >>conftest.$ac_ext <<_ACEOF
28182 /* end confdefs.h. */
28185 #include <stdlib.h>
28191 volatile double A, B;
28195 sprintf(Buffer, "%a", A);
28199 if (A != 0x1.999999999999ap-4)
28206 rm -f conftest$ac_exeext
28207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28208 (eval $ac_link) 2>&5
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28213 (eval $ac_try) 2>&5
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); }; }; then
28217 llvm_cv_c_printf_a=yes
28219 echo "$as_me: program exited with status $ac_status" >&5
28220 echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28223 ( exit $ac_status )
28224 llvmac_cv_c_printf_a=no
28226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28229 ac_cpp='$CPP $CPPFLAGS'
28230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28235 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28236 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28237 if test "$llvm_cv_c_printf_a" = "yes"; then
28239 cat >>confdefs.h <<\_ACEOF
28240 #define HAVE_PRINTF_A 1
28245 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28246 # for constant arguments. Useless!
28247 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28248 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28249 if test "${ac_cv_working_alloca_h+set}" = set; then
28250 echo $ECHO_N "(cached) $ECHO_C" >&6
28252 cat >conftest.$ac_ext <<_ACEOF
28255 cat confdefs.h >>conftest.$ac_ext
28256 cat >>conftest.$ac_ext <<_ACEOF
28257 /* end confdefs.h. */
28258 #include <alloca.h>
28262 char *p = (char *) alloca (2 * sizeof (int));
28267 rm -f conftest.$ac_objext conftest$ac_exeext
28268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28269 (eval $ac_link) 2>conftest.er1
28271 grep -v '^ *+' conftest.er1 >conftest.err
28273 cat conftest.err >&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); } &&
28276 { ac_try='test -z "$ac_c_werror_flag"
28277 || test ! -s conftest.err'
28278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28279 (eval $ac_try) 2>&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; } &&
28283 { ac_try='test -s conftest$ac_exeext'
28284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285 (eval $ac_try) 2>&5
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); }; }; then
28289 ac_cv_working_alloca_h=yes
28291 echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28294 ac_cv_working_alloca_h=no
28296 rm -f conftest.err conftest.$ac_objext \
28297 conftest$ac_exeext conftest.$ac_ext
28299 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28300 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28301 if test $ac_cv_working_alloca_h = yes; then
28303 cat >>confdefs.h <<\_ACEOF
28304 #define HAVE_ALLOCA_H 1
28309 echo "$as_me:$LINENO: checking for alloca" >&5
28310 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28311 if test "${ac_cv_func_alloca_works+set}" = set; then
28312 echo $ECHO_N "(cached) $ECHO_C" >&6
28314 cat >conftest.$ac_ext <<_ACEOF
28317 cat confdefs.h >>conftest.$ac_ext
28318 cat >>conftest.$ac_ext <<_ACEOF
28319 /* end confdefs.h. */
28321 # define alloca __builtin_alloca
28324 # include <malloc.h>
28325 # define alloca _alloca
28328 # include <alloca.h>
28333 # ifndef alloca /* predefined by HP cc +Olibcalls */
28344 char *p = (char *) alloca (1);
28349 rm -f conftest.$ac_objext conftest$ac_exeext
28350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28351 (eval $ac_link) 2>conftest.er1
28353 grep -v '^ *+' conftest.er1 >conftest.err
28355 cat conftest.err >&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } &&
28358 { ac_try='test -z "$ac_c_werror_flag"
28359 || test ! -s conftest.err'
28360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361 (eval $ac_try) 2>&5
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); }; } &&
28365 { ac_try='test -s conftest$ac_exeext'
28366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28367 (eval $ac_try) 2>&5
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); }; }; then
28371 ac_cv_func_alloca_works=yes
28373 echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28376 ac_cv_func_alloca_works=no
28378 rm -f conftest.err conftest.$ac_objext \
28379 conftest$ac_exeext conftest.$ac_ext
28381 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28382 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28384 if test $ac_cv_func_alloca_works = yes; then
28386 cat >>confdefs.h <<\_ACEOF
28387 #define HAVE_ALLOCA 1
28391 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28392 # that cause trouble. Some versions do not even contain alloca or
28393 # contain a buggy version. If you still want to use their alloca,
28394 # use ar to extract alloca.o from them instead of compiling alloca.c.
28396 ALLOCA=alloca.$ac_objext
28398 cat >>confdefs.h <<\_ACEOF
28403 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28404 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28405 if test "${ac_cv_os_cray+set}" = set; then
28406 echo $ECHO_N "(cached) $ECHO_C" >&6
28408 cat >conftest.$ac_ext <<_ACEOF
28411 cat confdefs.h >>conftest.$ac_ext
28412 cat >>conftest.$ac_ext <<_ACEOF
28413 /* end confdefs.h. */
28414 #if defined(CRAY) && ! defined(CRAY2)
28421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28422 $EGREP "webecray" >/dev/null 2>&1; then
28430 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28431 echo "${ECHO_T}$ac_cv_os_cray" >&6
28432 if test $ac_cv_os_cray = yes; then
28433 for ac_func in _getb67 GETB67 getb67; do
28434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28435 echo "$as_me:$LINENO: checking for $ac_func" >&5
28436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28437 if eval "test \"\${$as_ac_var+set}\" = set"; then
28438 echo $ECHO_N "(cached) $ECHO_C" >&6
28440 cat >conftest.$ac_ext <<_ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h. */
28446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28448 #define $ac_func innocuous_$ac_func
28450 /* System header to define __stub macros and hopefully few prototypes,
28451 which can conflict with char $ac_func (); below.
28452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28453 <limits.h> exists even on freestanding compilers. */
28456 # include <limits.h>
28458 # include <assert.h>
28463 /* Override any gcc2 internal prototype to avoid an error. */
28468 /* We use char because int might match the return type of a gcc2
28469 builtin and then its argument prototype would still apply. */
28471 /* The GNU C library defines this for functions which it implements
28472 to always fail with ENOSYS. Some functions are actually named
28473 something starting with __ and the normal name is an alias. */
28474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28477 char (*f) () = $ac_func;
28486 return f != $ac_func;
28491 rm -f conftest.$ac_objext conftest$ac_exeext
28492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28493 (eval $ac_link) 2>conftest.er1
28495 grep -v '^ *+' conftest.er1 >conftest.err
28497 cat conftest.err >&5
28498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 (exit $ac_status); } &&
28500 { ac_try='test -z "$ac_c_werror_flag"
28501 || test ! -s conftest.err'
28502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28503 (eval $ac_try) 2>&5
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); }; } &&
28507 { ac_try='test -s conftest$ac_exeext'
28508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28509 (eval $ac_try) 2>&5
28511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512 (exit $ac_status); }; }; then
28513 eval "$as_ac_var=yes"
28515 echo "$as_me: failed program was:" >&5
28516 sed 's/^/| /' conftest.$ac_ext >&5
28518 eval "$as_ac_var=no"
28520 rm -f conftest.err conftest.$ac_objext \
28521 conftest$ac_exeext conftest.$ac_ext
28523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28525 if test `eval echo '${'$as_ac_var'}'` = yes; then
28527 cat >>confdefs.h <<_ACEOF
28528 #define CRAY_STACKSEG_END $ac_func
28537 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28538 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28539 if test "${ac_cv_c_stack_direction+set}" = set; then
28540 echo $ECHO_N "(cached) $ECHO_C" >&6
28542 if test "$cross_compiling" = yes; then
28543 ac_cv_c_stack_direction=0
28545 cat >conftest.$ac_ext <<_ACEOF
28548 cat confdefs.h >>conftest.$ac_ext
28549 cat >>conftest.$ac_ext <<_ACEOF
28550 /* end confdefs.h. */
28552 find_stack_direction ()
28554 static char *addr = 0;
28559 return find_stack_direction ();
28562 return (&dummy > addr) ? 1 : -1;
28568 exit (find_stack_direction () < 0);
28571 rm -f conftest$ac_exeext
28572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28573 (eval $ac_link) 2>&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28578 (eval $ac_try) 2>&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; }; then
28582 ac_cv_c_stack_direction=1
28584 echo "$as_me: program exited with status $ac_status" >&5
28585 echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28588 ( exit $ac_status )
28589 ac_cv_c_stack_direction=-1
28591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28594 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28595 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28597 cat >>confdefs.h <<_ACEOF
28598 #define STACK_DIRECTION $ac_cv_c_stack_direction
28605 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28606 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28607 if test "${ac_cv_func_rand48+set}" = set; then
28608 echo $ECHO_N "(cached) $ECHO_C" >&6
28611 ac_cpp='$CXXCPP $CPPFLAGS'
28612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28616 cat >conftest.$ac_ext <<_ACEOF
28619 cat confdefs.h >>conftest.$ac_ext
28620 cat >>conftest.$ac_ext <<_ACEOF
28621 /* end confdefs.h. */
28622 #include <stdlib.h>
28626 srand48(0);lrand48();drand48();
28631 rm -f conftest.$ac_objext
28632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28633 (eval $ac_compile) 2>conftest.er1
28635 grep -v '^ *+' conftest.er1 >conftest.err
28637 cat conftest.err >&5
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); } &&
28640 { ac_try='test -z "$ac_cxx_werror_flag"
28641 || test ! -s conftest.err'
28642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643 (eval $ac_try) 2>&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; } &&
28647 { ac_try='test -s conftest.$ac_objext'
28648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28649 (eval $ac_try) 2>&5
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); }; }; then
28653 ac_cv_func_rand48=yes
28655 echo "$as_me: failed program was:" >&5
28656 sed 's/^/| /' conftest.$ac_ext >&5
28658 ac_cv_func_rand48=no
28660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28662 ac_cpp='$CPP $CPPFLAGS'
28663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28668 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28669 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28671 if test "$ac_cv_func_rand48" = "yes" ; then
28673 cat >>confdefs.h <<\_ACEOF
28674 #define HAVE_RAND48 1
28680 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28681 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28682 if test "${ac_cv_cxx_namespaces+set}" = set; then
28683 echo $ECHO_N "(cached) $ECHO_C" >&6
28686 ac_cpp='$CXXCPP $CPPFLAGS'
28687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28691 cat >conftest.$ac_ext <<_ACEOF
28694 cat confdefs.h >>conftest.$ac_ext
28695 cat >>conftest.$ac_ext <<_ACEOF
28696 /* end confdefs.h. */
28697 namespace Outer { namespace Inner { int i = 0; }}
28701 using namespace Outer::Inner; return i;
28706 rm -f conftest.$ac_objext
28707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28708 (eval $ac_compile) 2>conftest.er1
28710 grep -v '^ *+' conftest.er1 >conftest.err
28712 cat conftest.err >&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); } &&
28715 { ac_try='test -z "$ac_cxx_werror_flag"
28716 || test ! -s conftest.err'
28717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718 (eval $ac_try) 2>&5
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; } &&
28722 { ac_try='test -s conftest.$ac_objext'
28723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28724 (eval $ac_try) 2>&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; }; then
28728 ac_cv_cxx_namespaces=yes
28730 echo "$as_me: failed program was:" >&5
28731 sed 's/^/| /' conftest.$ac_ext >&5
28733 ac_cv_cxx_namespaces=no
28735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28737 ac_cpp='$CPP $CPPFLAGS'
28738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28744 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28745 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28746 if test "$ac_cv_cxx_namespaces" = yes; then
28748 cat >>confdefs.h <<\_ACEOF
28749 #define HAVE_NAMESPACES
28754 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28755 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28756 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28757 echo $ECHO_N "(cached) $ECHO_C" >&6
28761 ac_cpp='$CXXCPP $CPPFLAGS'
28762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28766 cat >conftest.$ac_ext <<_ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h. */
28772 #include <ext/hash_map>
28773 #ifdef HAVE_NAMESPACES
28774 using namespace std;
28779 hash_map<int, int> t;
28784 rm -f conftest.$ac_objext
28785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28786 (eval $ac_compile) 2>conftest.er1
28788 grep -v '^ *+' conftest.er1 >conftest.err
28790 cat conftest.err >&5
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); } &&
28793 { ac_try='test -z "$ac_cxx_werror_flag"
28794 || test ! -s conftest.err'
28795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28796 (eval $ac_try) 2>&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); }; } &&
28800 { ac_try='test -s conftest.$ac_objext'
28801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28802 (eval $ac_try) 2>&5
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); }; }; then
28806 ac_cv_cxx_have_std_ext_hash_map=yes
28808 echo "$as_me: failed program was:" >&5
28809 sed 's/^/| /' conftest.$ac_ext >&5
28811 ac_cv_cxx_have_std_ext_hash_map=no
28813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28815 ac_cpp='$CPP $CPPFLAGS'
28816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28821 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28822 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28823 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28826 cat >>confdefs.h <<\_ACEOF
28827 #define HAVE_STD_EXT_HASH_MAP 1
28832 cat >>confdefs.h <<\_ACEOF
28833 #define HAVE_STD_EXT_HASH_MAP 0
28838 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28839 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28840 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28841 echo $ECHO_N "(cached) $ECHO_C" >&6
28845 ac_cpp='$CXXCPP $CPPFLAGS'
28846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28850 cat >conftest.$ac_ext <<_ACEOF
28853 cat confdefs.h >>conftest.$ac_ext
28854 cat >>conftest.$ac_ext <<_ACEOF
28855 /* end confdefs.h. */
28856 #include <ext/hash_map>
28857 #ifdef HAVE_NAMESPACES
28858 using namespace __gnu_cxx;
28863 hash_map<int,int> t;
28868 rm -f conftest.$ac_objext
28869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28870 (eval $ac_compile) 2>conftest.er1
28872 grep -v '^ *+' conftest.er1 >conftest.err
28874 cat conftest.err >&5
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); } &&
28877 { ac_try='test -z "$ac_cxx_werror_flag"
28878 || test ! -s conftest.err'
28879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880 (eval $ac_try) 2>&5
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; } &&
28884 { ac_try='test -s conftest.$ac_objext'
28885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28886 (eval $ac_try) 2>&5
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; }; then
28890 ac_cv_cxx_have_gnu_ext_hash_map=yes
28892 echo "$as_me: failed program was:" >&5
28893 sed 's/^/| /' conftest.$ac_ext >&5
28895 ac_cv_cxx_have_gnu_ext_hash_map=no
28897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28899 ac_cpp='$CPP $CPPFLAGS'
28900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28905 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28906 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28907 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28910 cat >>confdefs.h <<\_ACEOF
28911 #define HAVE_GNU_EXT_HASH_MAP 1
28916 cat >>confdefs.h <<\_ACEOF
28917 #define HAVE_GNU_EXT_HASH_MAP 0
28922 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28923 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28924 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28925 echo $ECHO_N "(cached) $ECHO_C" >&6
28929 ac_cpp='$CXXCPP $CPPFLAGS'
28930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28934 cat >conftest.$ac_ext <<_ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h. */
28940 #include <hash_map>
28944 hash_map<int,int> t;
28949 rm -f conftest.$ac_objext
28950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28951 (eval $ac_compile) 2>conftest.er1
28953 grep -v '^ *+' conftest.er1 >conftest.err
28955 cat conftest.err >&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); } &&
28958 { ac_try='test -z "$ac_cxx_werror_flag"
28959 || test ! -s conftest.err'
28960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28961 (eval $ac_try) 2>&5
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; } &&
28965 { ac_try='test -s conftest.$ac_objext'
28966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28967 (eval $ac_try) 2>&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); }; }; then
28971 ac_cv_cxx_have_global_hash_map=yes
28973 echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28976 ac_cv_cxx_have_global_hash_map=no
28978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28980 ac_cpp='$CPP $CPPFLAGS'
28981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28986 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28987 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28988 if test "$ac_cv_cxx_have_global_hash_map" = yes
28991 cat >>confdefs.h <<\_ACEOF
28992 #define HAVE_GLOBAL_HASH_MAP 1
28997 cat >>confdefs.h <<\_ACEOF
28998 #define HAVE_GLOBAL_HASH_MAP 0
29003 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29004 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29005 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
29010 ac_cpp='$CXXCPP $CPPFLAGS'
29011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29015 cat >conftest.$ac_ext <<_ACEOF
29018 cat confdefs.h >>conftest.$ac_ext
29019 cat >>conftest.$ac_ext <<_ACEOF
29020 /* end confdefs.h. */
29021 #include <ext/hash_set>
29022 #ifdef HAVE_NAMESPACES
29023 using namespace std;
29033 rm -f conftest.$ac_objext
29034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29035 (eval $ac_compile) 2>conftest.er1
29037 grep -v '^ *+' conftest.er1 >conftest.err
29039 cat conftest.err >&5
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); } &&
29042 { ac_try='test -z "$ac_cxx_werror_flag"
29043 || test ! -s conftest.err'
29044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29045 (eval $ac_try) 2>&5
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); }; } &&
29049 { ac_try='test -s conftest.$ac_objext'
29050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29051 (eval $ac_try) 2>&5
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; }; then
29055 ac_cv_cxx_have_std_ext_hash_set=yes
29057 echo "$as_me: failed program was:" >&5
29058 sed 's/^/| /' conftest.$ac_ext >&5
29060 ac_cv_cxx_have_std_ext_hash_set=no
29062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29064 ac_cpp='$CPP $CPPFLAGS'
29065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29070 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29071 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29072 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29075 cat >>confdefs.h <<\_ACEOF
29076 #define HAVE_STD_EXT_HASH_SET 1
29081 cat >>confdefs.h <<\_ACEOF
29082 #define HAVE_STD_EXT_HASH_SET 0
29087 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29088 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29089 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29094 ac_cpp='$CXXCPP $CPPFLAGS'
29095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29099 cat >conftest.$ac_ext <<_ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h. */
29105 #include <ext/hash_set>
29106 #ifdef HAVE_NAMESPACES
29107 using namespace __gnu_cxx;
29117 rm -f conftest.$ac_objext
29118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29119 (eval $ac_compile) 2>conftest.er1
29121 grep -v '^ *+' conftest.er1 >conftest.err
29123 cat conftest.err >&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } &&
29126 { ac_try='test -z "$ac_cxx_werror_flag"
29127 || test ! -s conftest.err'
29128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129 (eval $ac_try) 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; } &&
29133 { ac_try='test -s conftest.$ac_objext'
29134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; }; then
29139 ac_cv_cxx_have_gnu_ext_hash_set=yes
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ac_cv_cxx_have_gnu_ext_hash_set=no
29146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29148 ac_cpp='$CPP $CPPFLAGS'
29149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29154 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29155 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29156 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29159 cat >>confdefs.h <<\_ACEOF
29160 #define HAVE_GNU_EXT_HASH_SET 1
29165 cat >>confdefs.h <<\_ACEOF
29166 #define HAVE_GNU_EXT_HASH_SET 0
29171 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29172 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29173 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29174 echo $ECHO_N "(cached) $ECHO_C" >&6
29178 ac_cpp='$CXXCPP $CPPFLAGS'
29179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29183 cat >conftest.$ac_ext <<_ACEOF
29186 cat confdefs.h >>conftest.$ac_ext
29187 cat >>conftest.$ac_ext <<_ACEOF
29188 /* end confdefs.h. */
29189 #include <hash_set>
29193 hash_set<int> t; return 0;
29198 rm -f conftest.$ac_objext
29199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29200 (eval $ac_compile) 2>conftest.er1
29202 grep -v '^ *+' conftest.er1 >conftest.err
29204 cat conftest.err >&5
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); } &&
29207 { ac_try='test -z "$ac_cxx_werror_flag"
29208 || test ! -s conftest.err'
29209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210 (eval $ac_try) 2>&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; } &&
29214 { ac_try='test -s conftest.$ac_objext'
29215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 ac_cv_cxx_have_global_hash_set=yes
29222 echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29225 ac_cv_cxx_have_global_hash_set=no
29227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29229 ac_cpp='$CPP $CPPFLAGS'
29230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29235 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29236 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29237 if test "$ac_cv_cxx_have_global_hash_set" = yes
29240 cat >>confdefs.h <<\_ACEOF
29241 #define HAVE_GLOBAL_HASH_SET 1
29246 cat >>confdefs.h <<\_ACEOF
29247 #define HAVE_GLOBAL_HASH_SET 0
29252 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29253 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29254 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29259 ac_cpp='$CXXCPP $CPPFLAGS'
29260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29264 cat >conftest.$ac_ext <<_ACEOF
29267 cat confdefs.h >>conftest.$ac_ext
29268 cat >>conftest.$ac_ext <<_ACEOF
29269 /* end confdefs.h. */
29270 #include <iterator>
29271 #ifdef HAVE_NAMESPACES
29272 using namespace std;
29277 iterator<int,int,int> t; return 0;
29282 rm -f conftest.$ac_objext
29283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29284 (eval $ac_compile) 2>conftest.er1
29286 grep -v '^ *+' conftest.er1 >conftest.err
29288 cat conftest.err >&5
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); } &&
29291 { ac_try='test -z "$ac_cxx_werror_flag"
29292 || test ! -s conftest.err'
29293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294 (eval $ac_try) 2>&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; } &&
29298 { ac_try='test -s conftest.$ac_objext'
29299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29300 (eval $ac_try) 2>&5
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); }; }; then
29304 ac_cv_cxx_have_std_iterator=yes
29306 echo "$as_me: failed program was:" >&5
29307 sed 's/^/| /' conftest.$ac_ext >&5
29309 ac_cv_cxx_have_std_iterator=no
29311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29313 ac_cpp='$CPP $CPPFLAGS'
29314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29320 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29321 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29322 if test "$ac_cv_cxx_have_std_iterator" = yes
29325 cat >>confdefs.h <<\_ACEOF
29326 #define HAVE_STD_ITERATOR 1
29331 cat >>confdefs.h <<\_ACEOF
29332 #define HAVE_STD_ITERATOR 0
29337 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29338 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29339 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29344 ac_cpp='$CXXCPP $CPPFLAGS'
29345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29349 cat >conftest.$ac_ext <<_ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h. */
29355 #include <iterator>
29356 #ifdef HAVE_NAMESPACES
29357 using namespace std;
29362 bidirectional_iterator<int,int> t; return 0;
29367 rm -f conftest.$ac_objext
29368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29369 (eval $ac_compile) 2>conftest.er1
29371 grep -v '^ *+' conftest.er1 >conftest.err
29373 cat conftest.err >&5
29374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); } &&
29376 { ac_try='test -z "$ac_cxx_werror_flag"
29377 || test ! -s conftest.err'
29378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29379 (eval $ac_try) 2>&5
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); }; } &&
29383 { ac_try='test -s conftest.$ac_objext'
29384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29385 (eval $ac_try) 2>&5
29387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388 (exit $ac_status); }; }; then
29389 ac_cv_cxx_have_bi_iterator=yes
29391 echo "$as_me: failed program was:" >&5
29392 sed 's/^/| /' conftest.$ac_ext >&5
29394 ac_cv_cxx_have_bi_iterator=no
29396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29398 ac_cpp='$CPP $CPPFLAGS'
29399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29405 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29406 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29407 if test "$ac_cv_cxx_have_bi_iterator" = yes
29410 cat >>confdefs.h <<\_ACEOF
29411 #define HAVE_BI_ITERATOR 1
29416 cat >>confdefs.h <<\_ACEOF
29417 #define HAVE_BI_ITERATOR 0
29422 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29423 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29424 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29425 echo $ECHO_N "(cached) $ECHO_C" >&6
29429 ac_cpp='$CXXCPP $CPPFLAGS'
29430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29434 cat >conftest.$ac_ext <<_ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h. */
29440 #include <iterator>
29441 #ifdef HAVE_NAMESPACES
29442 using namespace std;
29447 forward_iterator<int,int> t; return 0;
29452 rm -f conftest.$ac_objext
29453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29454 (eval $ac_compile) 2>conftest.er1
29456 grep -v '^ *+' conftest.er1 >conftest.err
29458 cat conftest.err >&5
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); } &&
29461 { ac_try='test -z "$ac_cxx_werror_flag"
29462 || test ! -s conftest.err'
29463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464 (eval $ac_try) 2>&5
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); }; } &&
29468 { ac_try='test -s conftest.$ac_objext'
29469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470 (eval $ac_try) 2>&5
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); }; }; then
29474 ac_cv_cxx_have_fwd_iterator=yes
29476 echo "$as_me: failed program was:" >&5
29477 sed 's/^/| /' conftest.$ac_ext >&5
29479 ac_cv_cxx_have_fwd_iterator=no
29481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29483 ac_cpp='$CPP $CPPFLAGS'
29484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29490 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29491 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29492 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29495 cat >>confdefs.h <<\_ACEOF
29496 #define HAVE_FWD_ITERATOR 1
29501 cat >>confdefs.h <<\_ACEOF
29502 #define HAVE_FWD_ITERATOR 0
29508 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29509 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29510 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29511 echo $ECHO_N "(cached) $ECHO_C" >&6
29514 ac_cpp='$CXXCPP $CPPFLAGS'
29515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29519 cat >conftest.$ac_ext <<_ACEOF
29522 cat confdefs.h >>conftest.$ac_ext
29523 cat >>conftest.$ac_ext <<_ACEOF
29524 /* end confdefs.h. */
29534 rm -f conftest.$ac_objext
29535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29536 (eval $ac_compile) 2>conftest.er1
29538 grep -v '^ *+' conftest.er1 >conftest.err
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } &&
29543 { ac_try='test -z "$ac_cxx_werror_flag"
29544 || test ! -s conftest.err'
29545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546 (eval $ac_try) 2>&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); }; } &&
29550 { ac_try='test -s conftest.$ac_objext'
29551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552 (eval $ac_try) 2>&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; }; then
29556 ac_cv_func_isnan_in_math_h=yes
29558 echo "$as_me: failed program was:" >&5
29559 sed 's/^/| /' conftest.$ac_ext >&5
29561 ac_cv_func_isnan_in_math_h=no
29563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29565 ac_cpp='$CPP $CPPFLAGS'
29566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29571 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29572 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29575 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29577 cat >>confdefs.h <<\_ACEOF
29578 #define HAVE_ISNAN_IN_MATH_H 1
29583 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29584 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29585 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29586 echo $ECHO_N "(cached) $ECHO_C" >&6
29589 ac_cpp='$CXXCPP $CPPFLAGS'
29590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29594 cat >conftest.$ac_ext <<_ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h. */
29609 rm -f conftest.$ac_objext
29610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29611 (eval $ac_compile) 2>conftest.er1
29613 grep -v '^ *+' conftest.er1 >conftest.err
29615 cat conftest.err >&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } &&
29618 { ac_try='test -z "$ac_cxx_werror_flag"
29619 || test ! -s conftest.err'
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; } &&
29625 { ac_try='test -s conftest.$ac_objext'
29626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29627 (eval $ac_try) 2>&5
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); }; }; then
29631 ac_cv_func_isnan_in_cmath=yes
29633 echo "$as_me: failed program was:" >&5
29634 sed 's/^/| /' conftest.$ac_ext >&5
29636 ac_cv_func_isnan_in_cmath=no
29638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29640 ac_cpp='$CPP $CPPFLAGS'
29641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29646 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29647 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29649 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29651 cat >>confdefs.h <<\_ACEOF
29652 #define HAVE_ISNAN_IN_CMATH 1
29657 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29658 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29659 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29660 echo $ECHO_N "(cached) $ECHO_C" >&6
29663 ac_cpp='$CXXCPP $CPPFLAGS'
29664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29668 cat >conftest.$ac_ext <<_ACEOF
29671 cat confdefs.h >>conftest.$ac_ext
29672 cat >>conftest.$ac_ext <<_ACEOF
29673 /* end confdefs.h. */
29678 float f; std::isnan(f);
29683 rm -f conftest.$ac_objext
29684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29685 (eval $ac_compile) 2>conftest.er1
29687 grep -v '^ *+' conftest.er1 >conftest.err
29689 cat conftest.err >&5
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); } &&
29692 { ac_try='test -z "$ac_cxx_werror_flag"
29693 || test ! -s conftest.err'
29694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29695 (eval $ac_try) 2>&5
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); }; } &&
29699 { ac_try='test -s conftest.$ac_objext'
29700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29701 (eval $ac_try) 2>&5
29703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); }; }; then
29705 ac_cv_func_std_isnan_in_cmath=yes
29707 echo "$as_me: failed program was:" >&5
29708 sed 's/^/| /' conftest.$ac_ext >&5
29710 ac_cv_func_std_isnan_in_cmath=no
29712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29714 ac_cpp='$CPP $CPPFLAGS'
29715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29720 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29721 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29723 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29725 cat >>confdefs.h <<\_ACEOF
29726 #define HAVE_STD_ISNAN_IN_CMATH 1
29732 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29733 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29734 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29735 echo $ECHO_N "(cached) $ECHO_C" >&6
29738 ac_cpp='$CXXCPP $CPPFLAGS'
29739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29743 cat >conftest.$ac_ext <<_ACEOF
29746 cat confdefs.h >>conftest.$ac_ext
29747 cat >>conftest.$ac_ext <<_ACEOF
29748 /* end confdefs.h. */
29758 rm -f conftest.$ac_objext
29759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29760 (eval $ac_compile) 2>conftest.er1
29762 grep -v '^ *+' conftest.er1 >conftest.err
29764 cat conftest.err >&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); } &&
29767 { ac_try='test -z "$ac_cxx_werror_flag"
29768 || test ! -s conftest.err'
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; } &&
29774 { ac_try='test -s conftest.$ac_objext'
29775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776 (eval $ac_try) 2>&5
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; }; then
29780 ac_cv_func_isinf_in_math_h=yes
29782 echo "$as_me: failed program was:" >&5
29783 sed 's/^/| /' conftest.$ac_ext >&5
29785 ac_cv_func_isinf_in_math_h=no
29787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29789 ac_cpp='$CPP $CPPFLAGS'
29790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29795 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29796 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29798 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29800 cat >>confdefs.h <<\_ACEOF
29801 #define HAVE_ISINF_IN_MATH_H 1
29806 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29807 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29808 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29809 echo $ECHO_N "(cached) $ECHO_C" >&6
29812 ac_cpp='$CXXCPP $CPPFLAGS'
29813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29817 cat >conftest.$ac_ext <<_ACEOF
29820 cat confdefs.h >>conftest.$ac_ext
29821 cat >>conftest.$ac_ext <<_ACEOF
29822 /* end confdefs.h. */
29832 rm -f conftest.$ac_objext
29833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29834 (eval $ac_compile) 2>conftest.er1
29836 grep -v '^ *+' conftest.er1 >conftest.err
29838 cat conftest.err >&5
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); } &&
29841 { ac_try='test -z "$ac_cxx_werror_flag"
29842 || test ! -s conftest.err'
29843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29844 (eval $ac_try) 2>&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); }; } &&
29848 { ac_try='test -s conftest.$ac_objext'
29849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850 (eval $ac_try) 2>&5
29852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853 (exit $ac_status); }; }; then
29854 ac_cv_func_isinf_in_cmath=yes
29856 echo "$as_me: failed program was:" >&5
29857 sed 's/^/| /' conftest.$ac_ext >&5
29859 ac_cv_func_isinf_in_cmath=no
29861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29863 ac_cpp='$CPP $CPPFLAGS'
29864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29869 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29870 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29872 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29874 cat >>confdefs.h <<\_ACEOF
29875 #define HAVE_ISINF_IN_CMATH 1
29880 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29881 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29882 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29883 echo $ECHO_N "(cached) $ECHO_C" >&6
29886 ac_cpp='$CXXCPP $CPPFLAGS'
29887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29891 cat >conftest.$ac_ext <<_ACEOF
29894 cat confdefs.h >>conftest.$ac_ext
29895 cat >>conftest.$ac_ext <<_ACEOF
29896 /* end confdefs.h. */
29901 float f; std::isinf(f)}
29906 rm -f conftest.$ac_objext
29907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29908 (eval $ac_compile) 2>conftest.er1
29910 grep -v '^ *+' conftest.er1 >conftest.err
29912 cat conftest.err >&5
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); } &&
29915 { ac_try='test -z "$ac_cxx_werror_flag"
29916 || test ! -s conftest.err'
29917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29918 (eval $ac_try) 2>&5
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; } &&
29922 { ac_try='test -s conftest.$ac_objext'
29923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924 (eval $ac_try) 2>&5
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; }; then
29928 ac_cv_func_std_isinf_in_cmath=yes
29930 echo "$as_me: failed program was:" >&5
29931 sed 's/^/| /' conftest.$ac_ext >&5
29933 ac_cv_func_std_isinf_in_cmath=no
29935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29937 ac_cpp='$CPP $CPPFLAGS'
29938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29943 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29944 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29946 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29948 cat >>confdefs.h <<\_ACEOF
29949 #define HAVE_STD_ISINF_IN_CMATH 1
29954 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29955 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29956 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29957 echo $ECHO_N "(cached) $ECHO_C" >&6
29960 ac_cpp='$CXXCPP $CPPFLAGS'
29961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29965 cat >conftest.$ac_ext <<_ACEOF
29968 cat confdefs.h >>conftest.$ac_ext
29969 cat >>conftest.$ac_ext <<_ACEOF
29970 /* end confdefs.h. */
29971 #include <ieeefp.h>
29975 float f; finite(f);
29980 rm -f conftest.$ac_objext
29981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29982 (eval $ac_compile) 2>conftest.er1
29984 grep -v '^ *+' conftest.er1 >conftest.err
29986 cat conftest.err >&5
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); } &&
29989 { ac_try='test -z "$ac_cxx_werror_flag"
29990 || test ! -s conftest.err'
29991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992 (eval $ac_try) 2>&5
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); }; } &&
29996 { ac_try='test -s conftest.$ac_objext'
29997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29998 (eval $ac_try) 2>&5
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); }; }; then
30002 ac_cv_func_finite_in_ieeefp_h=yes
30004 echo "$as_me: failed program was:" >&5
30005 sed 's/^/| /' conftest.$ac_ext >&5
30007 ac_cv_func_finite_in_ieeefp_h=no
30009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30011 ac_cpp='$CPP $CPPFLAGS'
30012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30017 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30018 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30020 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30022 cat >>confdefs.h <<\_ACEOF
30023 #define HAVE_FINITE_IN_IEEEFP_H 1
30032 for ac_header in stdlib.h unistd.h
30034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30036 echo "$as_me:$LINENO: checking for $ac_header" >&5
30037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30039 echo $ECHO_N "(cached) $ECHO_C" >&6
30041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30044 # Is the header compilable?
30045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30047 cat >conftest.$ac_ext <<_ACEOF
30050 cat confdefs.h >>conftest.$ac_ext
30051 cat >>conftest.$ac_ext <<_ACEOF
30052 /* end confdefs.h. */
30053 $ac_includes_default
30054 #include <$ac_header>
30056 rm -f conftest.$ac_objext
30057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30058 (eval $ac_compile) 2>conftest.er1
30060 grep -v '^ *+' conftest.er1 >conftest.err
30062 cat conftest.err >&5
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); } &&
30065 { ac_try='test -z "$ac_c_werror_flag"
30066 || test ! -s conftest.err'
30067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30068 (eval $ac_try) 2>&5
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); }; } &&
30072 { ac_try='test -s conftest.$ac_objext'
30073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30074 (eval $ac_try) 2>&5
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077 (exit $ac_status); }; }; then
30078 ac_header_compiler=yes
30080 echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30083 ac_header_compiler=no
30085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30087 echo "${ECHO_T}$ac_header_compiler" >&6
30089 # Is the header present?
30090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30092 cat >conftest.$ac_ext <<_ACEOF
30095 cat confdefs.h >>conftest.$ac_ext
30096 cat >>conftest.$ac_ext <<_ACEOF
30097 /* end confdefs.h. */
30098 #include <$ac_header>
30100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30103 grep -v '^ *+' conftest.er1 >conftest.err
30105 cat conftest.err >&5
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); } >/dev/null; then
30108 if test -s conftest.err; then
30109 ac_cpp_err=$ac_c_preproc_warn_flag
30110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30117 if test -z "$ac_cpp_err"; then
30118 ac_header_preproc=yes
30120 echo "$as_me: failed program was:" >&5
30121 sed 's/^/| /' conftest.$ac_ext >&5
30123 ac_header_preproc=no
30125 rm -f conftest.err conftest.$ac_ext
30126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30127 echo "${ECHO_T}$ac_header_preproc" >&6
30129 # So? What about this header?
30130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30136 ac_header_preproc=yes
30139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30153 ## ----------------------------------- ##
30154 ## Report this to llvmbugs@cs.uiuc.edu ##
30155 ## ----------------------------------- ##
30158 sed "s/^/$as_me: WARNING: /" >&2
30161 echo "$as_me:$LINENO: checking for $ac_header" >&5
30162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30164 echo $ECHO_N "(cached) $ECHO_C" >&6
30166 eval "$as_ac_Header=\$ac_header_preproc"
30168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30173 cat >>confdefs.h <<_ACEOF
30174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30182 for ac_func in getpagesize
30184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30185 echo "$as_me:$LINENO: checking for $ac_func" >&5
30186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30187 if eval "test \"\${$as_ac_var+set}\" = set"; then
30188 echo $ECHO_N "(cached) $ECHO_C" >&6
30190 cat >conftest.$ac_ext <<_ACEOF
30193 cat confdefs.h >>conftest.$ac_ext
30194 cat >>conftest.$ac_ext <<_ACEOF
30195 /* end confdefs.h. */
30196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30198 #define $ac_func innocuous_$ac_func
30200 /* System header to define __stub macros and hopefully few prototypes,
30201 which can conflict with char $ac_func (); below.
30202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30203 <limits.h> exists even on freestanding compilers. */
30206 # include <limits.h>
30208 # include <assert.h>
30213 /* Override any gcc2 internal prototype to avoid an error. */
30218 /* We use char because int might match the return type of a gcc2
30219 builtin and then its argument prototype would still apply. */
30221 /* The GNU C library defines this for functions which it implements
30222 to always fail with ENOSYS. Some functions are actually named
30223 something starting with __ and the normal name is an alias. */
30224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30227 char (*f) () = $ac_func;
30236 return f != $ac_func;
30241 rm -f conftest.$ac_objext conftest$ac_exeext
30242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30243 (eval $ac_link) 2>conftest.er1
30245 grep -v '^ *+' conftest.er1 >conftest.err
30247 cat conftest.err >&5
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); } &&
30250 { ac_try='test -z "$ac_c_werror_flag"
30251 || test ! -s conftest.err'
30252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253 (eval $ac_try) 2>&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); }; } &&
30257 { ac_try='test -s conftest$ac_exeext'
30258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259 (eval $ac_try) 2>&5
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); }; }; then
30263 eval "$as_ac_var=yes"
30265 echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30268 eval "$as_ac_var=no"
30270 rm -f conftest.err conftest.$ac_objext \
30271 conftest$ac_exeext conftest.$ac_ext
30273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30275 if test `eval echo '${'$as_ac_var'}'` = yes; then
30276 cat >>confdefs.h <<_ACEOF
30277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30283 echo "$as_me:$LINENO: checking for working mmap" >&5
30284 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30285 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30286 echo $ECHO_N "(cached) $ECHO_C" >&6
30288 if test "$cross_compiling" = yes; then
30289 ac_cv_func_mmap_fixed_mapped=no
30291 cat >conftest.$ac_ext <<_ACEOF
30294 cat confdefs.h >>conftest.$ac_ext
30295 cat >>conftest.$ac_ext <<_ACEOF
30296 /* end confdefs.h. */
30297 $ac_includes_default
30298 /* malloc might have been renamed as rpl_malloc. */
30301 /* Thanks to Mike Haertel and Jim Avera for this test.
30302 Here is a matrix of mmap possibilities:
30303 mmap private not fixed
30304 mmap private fixed at somewhere currently unmapped
30305 mmap private fixed at somewhere already mapped
30306 mmap shared not fixed
30307 mmap shared fixed at somewhere currently unmapped
30308 mmap shared fixed at somewhere already mapped
30309 For private mappings, we should verify that changes cannot be read()
30310 back from the file, nor mmap's back from the file at a different
30311 address. (There have been systems where private was not correctly
30312 implemented like the infamous i386 svr4.0, and systems where the
30313 VM page cache was not coherent with the file system buffer cache
30314 like early versions of FreeBSD and possibly contemporary NetBSD.)
30315 For shared mappings, we should conversely verify that changes get
30316 propagated back to all the places they're supposed to be.
30318 Grep wants private fixed already mapped.
30319 The main things grep needs to know about mmap are:
30320 * does it exist and is it safe to write into the mmap'd area
30321 * how to use it (BSD variants) */
30324 #include <sys/mman.h>
30326 #if !STDC_HEADERS && !HAVE_STDLIB_H
30330 /* This mess was copied from the GNU getpagesize.h. */
30331 #if !HAVE_GETPAGESIZE
30332 /* Assume that all systems that can run configure have sys/param.h. */
30333 # if !HAVE_SYS_PARAM_H
30334 # define HAVE_SYS_PARAM_H 1
30337 # ifdef _SC_PAGESIZE
30338 # define getpagesize() sysconf(_SC_PAGESIZE)
30339 # else /* no _SC_PAGESIZE */
30340 # if HAVE_SYS_PARAM_H
30341 # include <sys/param.h>
30342 # ifdef EXEC_PAGESIZE
30343 # define getpagesize() EXEC_PAGESIZE
30344 # else /* no EXEC_PAGESIZE */
30346 # define getpagesize() NBPG * CLSIZE
30349 # endif /* no CLSIZE */
30350 # else /* no NBPG */
30352 # define getpagesize() NBPC
30353 # else /* no NBPC */
30355 # define getpagesize() PAGESIZE
30356 # endif /* PAGESIZE */
30357 # endif /* no NBPC */
30358 # endif /* no NBPG */
30359 # endif /* no EXEC_PAGESIZE */
30360 # else /* no HAVE_SYS_PARAM_H */
30361 # define getpagesize() 8192 /* punt totally */
30362 # endif /* no HAVE_SYS_PARAM_H */
30363 # endif /* no _SC_PAGESIZE */
30365 #endif /* no HAVE_GETPAGESIZE */
30370 char *data, *data2, *data3;
30374 pagesize = getpagesize ();
30376 /* First, make a file with some known garbage in it. */
30377 data = (char *) malloc (pagesize);
30380 for (i = 0; i < pagesize; ++i)
30381 *(data + i) = rand ();
30383 fd = creat ("conftest.mmap", 0600);
30386 if (write (fd, data, pagesize) != pagesize)
30390 /* Next, try to mmap the file at a fixed address which already has
30391 something else allocated at it. If we can, also make sure that
30392 we see the same garbage. */
30393 fd = open ("conftest.mmap", O_RDWR);
30396 data2 = (char *) malloc (2 * pagesize);
30399 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30400 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30401 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30403 for (i = 0; i < pagesize; ++i)
30404 if (*(data + i) != *(data2 + i))
30407 /* Finally, make sure that changes to the mapped area do not
30408 percolate back to the file as seen by read(). (This is a bug on
30409 some variants of i386 svr4.0.) */
30410 for (i = 0; i < pagesize; ++i)
30411 *(data2 + i) = *(data2 + i) + 1;
30412 data3 = (char *) malloc (pagesize);
30415 if (read (fd, data3, pagesize) != pagesize)
30417 for (i = 0; i < pagesize; ++i)
30418 if (*(data + i) != *(data3 + i))
30424 rm -f conftest$ac_exeext
30425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30426 (eval $ac_link) 2>&5
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431 (eval $ac_try) 2>&5
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; }; then
30435 ac_cv_func_mmap_fixed_mapped=yes
30437 echo "$as_me: program exited with status $ac_status" >&5
30438 echo "$as_me: failed program was:" >&5
30439 sed 's/^/| /' conftest.$ac_ext >&5
30441 ( exit $ac_status )
30442 ac_cv_func_mmap_fixed_mapped=no
30444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30447 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30448 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30449 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30451 cat >>confdefs.h <<\_ACEOF
30452 #define HAVE_MMAP 1
30456 rm -f conftest.mmap
30458 echo "$as_me:$LINENO: checking for mmap of files" >&5
30459 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30460 if test "${ac_cv_func_mmap_file+set}" = set; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30464 ac_cpp='$CPP $CPPFLAGS'
30465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30469 if test "$cross_compiling" = yes; then
30470 ac_cv_func_mmap_file=no
30472 cat >conftest.$ac_ext <<_ACEOF
30476 cat confdefs.h >>conftest.$ac_ext
30477 cat >>conftest.$ac_ext <<_ACEOF
30478 /* end confdefs.h. */
30480 #include <sys/types.h>
30481 #include <sys/mman.h>
30489 fd = creat ("foo",0777);
30490 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30492 return (fd != (int) MAP_FAILED);
30497 rm -f conftest$ac_exeext
30498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30499 (eval $ac_link) 2>&5
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504 (eval $ac_try) 2>&5
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; }; then
30508 ac_cv_func_mmap_file=yes
30510 echo "$as_me: program exited with status $ac_status" >&5
30511 echo "$as_me: failed program was:" >&5
30512 sed 's/^/| /' conftest.$ac_ext >&5
30514 ( exit $ac_status )
30515 ac_cv_func_mmap_file=no
30517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30520 ac_cpp='$CPP $CPPFLAGS'
30521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30527 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30528 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30529 if test "$ac_cv_func_mmap_file" = yes; then
30531 cat >>confdefs.h <<\_ACEOF
30532 #define HAVE_MMAP_FILE
30539 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30540 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30541 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30544 if test "$llvm_cv_os_type" = "Interix" ; then
30545 ac_cv_need_dev_zero_for_mmap=yes
30547 ac_cv_need_dev_zero_for_mmap=no
30551 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30552 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30553 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30555 cat >>confdefs.h <<\_ACEOF
30556 #define NEED_DEV_ZERO_FOR_MMAP 1
30560 echo "$as_me:$LINENO: checking for mprotect" >&5
30561 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30562 if test "${ac_cv_func_mprotect+set}" = set; then
30563 echo $ECHO_N "(cached) $ECHO_C" >&6
30565 cat >conftest.$ac_ext <<_ACEOF
30568 cat confdefs.h >>conftest.$ac_ext
30569 cat >>conftest.$ac_ext <<_ACEOF
30570 /* end confdefs.h. */
30571 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30573 #define mprotect innocuous_mprotect
30575 /* System header to define __stub macros and hopefully few prototypes,
30576 which can conflict with char mprotect (); below.
30577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30578 <limits.h> exists even on freestanding compilers. */
30581 # include <limits.h>
30583 # include <assert.h>
30588 /* Override any gcc2 internal prototype to avoid an error. */
30593 /* We use char because int might match the return type of a gcc2
30594 builtin and then its argument prototype would still apply. */
30596 /* The GNU C library defines this for functions which it implements
30597 to always fail with ENOSYS. Some functions are actually named
30598 something starting with __ and the normal name is an alias. */
30599 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30602 char (*f) () = mprotect;
30611 return f != mprotect;
30616 rm -f conftest.$ac_objext conftest$ac_exeext
30617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30618 (eval $ac_link) 2>conftest.er1
30620 grep -v '^ *+' conftest.er1 >conftest.err
30622 cat conftest.err >&5
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); } &&
30625 { ac_try='test -z "$ac_c_werror_flag"
30626 || test ! -s conftest.err'
30627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30628 (eval $ac_try) 2>&5
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); }; } &&
30632 { ac_try='test -s conftest$ac_exeext'
30633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30634 (eval $ac_try) 2>&5
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); }; }; then
30638 ac_cv_func_mprotect=yes
30640 echo "$as_me: failed program was:" >&5
30641 sed 's/^/| /' conftest.$ac_ext >&5
30643 ac_cv_func_mprotect=no
30645 rm -f conftest.err conftest.$ac_objext \
30646 conftest$ac_exeext conftest.$ac_ext
30648 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30649 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30650 if test $ac_cv_func_mprotect = yes; then
30653 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30654 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30655 { (exit 1); exit 1; }; }
30659 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30661 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30662 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30664 if test "$ac_cv_func_mmap_file" = "no"
30666 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30667 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30671 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30672 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30673 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30674 echo $ECHO_N "(cached) $ECHO_C" >&6
30676 llvm_cv_llvmgcc_sanity="no"
30677 if test -x "$LLVMGCC" ; then
30678 cp /dev/null conftest.c
30679 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30680 if test $? -eq 0 ; then
30681 llvm_cv_llvmgcc_sanity="yes"
30686 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30687 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30689 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30690 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30691 LLVMCC1=$llvmcc1path
30693 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30694 LLVMCC1PLUS=$llvmcc1pluspath
30696 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30697 LLVMGCCDIR=$llvmgccdir
30701 SHLIBEXT=$libltdl_cv_shlibext
30704 # Translate the various configuration directories and other basic
30705 # information into substitutions that will end up in Makefile.config.in
30706 # that these configured values can be used by the makefiles
30707 eval LLVM_PREFIX="${prefix}";
30708 eval LLVM_BINDIR="${prefix}/bin";
30709 eval LLVM_LIBDIR="${prefix}/lib";
30710 eval LLVM_DATADIR="${prefix}/share/llvm";
30711 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30712 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30713 eval LLVM_INCLUDEDIR="${prefix}/include";
30714 eval LLVM_INFODIR="${prefix}/info";
30715 eval LLVM_MANDIR="${prefix}/man";
30716 LLVM_CONFIGTIME=`date`
30728 # Place the various directores into the config.h file as #defines so that we
30729 # can know about the installation paths within LLVM.
30731 cat >>confdefs.h <<_ACEOF
30732 #define LLVM_PREFIX "$LLVM_PREFIX"
30736 cat >>confdefs.h <<_ACEOF
30737 #define LLVM_BINDIR "$LLVM_BINDIR"
30741 cat >>confdefs.h <<_ACEOF
30742 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30746 cat >>confdefs.h <<_ACEOF
30747 #define LLVM_DATADIR "$LLVM_DATADIR"
30751 cat >>confdefs.h <<_ACEOF
30752 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30756 cat >>confdefs.h <<_ACEOF
30757 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30761 cat >>confdefs.h <<_ACEOF
30762 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30766 cat >>confdefs.h <<_ACEOF
30767 #define LLVM_INFODIR "$LLVM_INFODIR"
30771 cat >>confdefs.h <<_ACEOF
30772 #define LLVM_MANDIR "$LLVM_MANDIR"
30776 cat >>confdefs.h <<_ACEOF
30777 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30782 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30784 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30786 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30788 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30790 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30793 ac_config_files="$ac_config_files Makefile.config"
30796 ac_config_files="$ac_config_files docs/doxygen.cfg"
30799 ac_config_files="$ac_config_files utils/llvm-config/llvm-config.in"
30802 ac_config_commands="$ac_config_commands setup"
30804 ac_config_commands="$ac_config_commands Makefile"
30807 ac_config_commands="$ac_config_commands Makefile.common"
30810 ac_config_commands="$ac_config_commands examples/Makefile"
30813 ac_config_commands="$ac_config_commands lib/Makefile"
30816 ac_config_commands="$ac_config_commands runtime/Makefile"
30819 ac_config_commands="$ac_config_commands test/Makefile"
30822 ac_config_commands="$ac_config_commands test/Makefile.tests"
30825 ac_config_commands="$ac_config_commands tools/Makefile"
30828 ac_config_commands="$ac_config_commands utils/Makefile"
30831 ac_config_commands="$ac_config_commands projects/Makefile"
30835 cat >confcache <<\_ACEOF
30836 # This file is a shell script that caches the results of configure
30837 # tests run on this system so they can be shared between configure
30838 # scripts and configure runs, see configure's option --config-cache.
30839 # It is not useful on other systems. If it contains results you don't
30840 # want to keep, you may remove or edit it.
30842 # config.status only pays attention to the cache file if you give it
30843 # the --recheck option to rerun configure.
30845 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30847 # following values.
30851 # The following way of writing the cache mishandles newlines in values,
30852 # but we know of no workaround that is simple, portable, and efficient.
30853 # So, don't put newlines in cache variables' values.
30854 # Ultrix sh set writes to stderr and can't be redirected directly,
30855 # and sets the high bit in the cache file unless we assign to the vars.
30858 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30860 # `set' does not quote correctly, so add quotes (double-quote
30861 # substitution turns \\\\ into \\, and sed turns \\ into \).
30864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30867 # `set' quotes correctly as required by POSIX, so do not add quotes.
30869 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30876 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30878 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30880 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30881 if test -w $cache_file; then
30882 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30883 cat confcache >$cache_file
30885 echo "not updating unwritable cache $cache_file"
30890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30891 # Let make expand exec_prefix.
30892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30894 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30895 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30896 # trailing colons and then remove the whole line if VPATH becomes empty
30897 # (actually we leave an empty line to preserve line numbers).
30898 if test "x$srcdir" = x.; then
30899 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30900 s/:*\$(srcdir):*/:/;
30901 s/:*\${srcdir}:*/:/;
30903 s/^\([^=]*=[ ]*\):*/\1/;
30909 DEFS=-DHAVE_CONFIG_H
30913 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30914 # 1. Remove the extension, and $U if already installed.
30915 ac_i=`echo "$ac_i" |
30916 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30918 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30919 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30921 LIBOBJS=$ac_libobjs
30923 LTLIBOBJS=$ac_ltlibobjs
30926 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30927 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30928 Usually this means the macro was only invoked conditionally." >&5
30929 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30930 Usually this means the macro was only invoked conditionally." >&2;}
30931 { (exit 1); exit 1; }; }
30933 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30934 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30935 Usually this means the macro was only invoked conditionally." >&5
30936 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30937 Usually this means the macro was only invoked conditionally." >&2;}
30938 { (exit 1); exit 1; }; }
30941 : ${CONFIG_STATUS=./config.status}
30942 ac_clean_files_save=$ac_clean_files
30943 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30944 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30945 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30946 cat >$CONFIG_STATUS <<_ACEOF
30948 # Generated by $as_me.
30949 # Run this file to recreate the current configuration.
30950 # Compiler output produced by configure, useful for debugging
30951 # configure, is in config.log if it exists.
30954 ac_cs_recheck=false
30956 SHELL=\${CONFIG_SHELL-$SHELL}
30959 cat >>$CONFIG_STATUS <<\_ACEOF
30960 ## --------------------- ##
30961 ## M4sh Initialization. ##
30962 ## --------------------- ##
30964 # Be Bourne compatible
30965 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30968 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30969 # is contrary to our usage. Disable this feature.
30970 alias -g '${1+"$@"}'='"$@"'
30971 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30974 DUALCASE=1; export DUALCASE # for MKS sh
30976 # Support unset when possible.
30977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30984 # Work around bugs in pre-3.0 UWIN ksh.
30985 $as_unset ENV MAIL MAILPATH
30992 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30993 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30994 LC_TELEPHONE LC_TIME
30996 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30997 eval $as_var=C; export $as_var
31003 # Required to use basename.
31004 if expr a : '\(a\)' >/dev/null 2>&1; then
31010 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31011 as_basename=basename
31017 # Name of the executable.
31018 as_me=`$as_basename "$0" ||
31019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31020 X"$0" : 'X\(//\)$' \| \
31021 X"$0" : 'X\(/\)$' \| \
31022 . : '\(.\)' 2>/dev/null ||
31024 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31025 /^X\/\(\/\/\)$/{ s//\1/; q; }
31026 /^X\/\(\/\).*/{ s//\1/; q; }
31030 # PATH needs CR, and LINENO needs CR and PATH.
31031 # Avoid depending upon Character Ranges.
31032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31035 as_cr_digits='0123456789'
31036 as_cr_alnum=$as_cr_Letters$as_cr_digits
31038 # The user is always right.
31039 if test "${PATH_SEPARATOR+set}" != set; then
31040 echo "#! /bin/sh" >conf$$.sh
31041 echo "exit 0" >>conf$$.sh
31043 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31052 as_lineno_1=$LINENO
31053 as_lineno_2=$LINENO
31054 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31055 test "x$as_lineno_1" != "x$as_lineno_2" &&
31056 test "x$as_lineno_3" = "x$as_lineno_2" || {
31057 # Find who we are. Look in the path if we contain no path at all
31060 *[\\/]* ) as_myself=$0 ;;
31061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31062 for as_dir in $PATH
31065 test -z "$as_dir" && as_dir=.
31066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31071 # We did not find ourselves, most probably we were run as `sh COMMAND'
31072 # in which case we are not to be found in the path.
31073 if test "x$as_myself" = x; then
31076 if test ! -f "$as_myself"; then
31077 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31078 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31079 { (exit 1); exit 1; }; }
31081 case $CONFIG_SHELL in
31083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31084 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31087 test -z "$as_dir" && as_dir=.
31088 for as_base in sh bash ksh sh5; do
31091 if ("$as_dir/$as_base" -c '
31092 as_lineno_1=$LINENO
31093 as_lineno_2=$LINENO
31094 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31095 test "x$as_lineno_1" != "x$as_lineno_2" &&
31096 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31097 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31098 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31099 CONFIG_SHELL=$as_dir/$as_base
31100 export CONFIG_SHELL
31101 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31109 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31110 # uniformly replaced by the line number. The first 'sed' inserts a
31111 # line-number line before each line; the second 'sed' does the real
31112 # work. The second script uses 'N' to pair each line-number line
31113 # with the numbered line, and appends trailing '-' during
31114 # substitution so that $LINENO is not a special case at line end.
31115 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31116 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31117 sed '=' <$as_myself |
31122 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31125 s,^['$as_cr_digits']*\n,,
31126 ' >$as_me.lineno &&
31127 chmod +x $as_me.lineno ||
31128 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31129 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31130 { (exit 1); exit 1; }; }
31132 # Don't try to exec as it changes $[0], causing all sort of problems
31133 # (the dirname of $[0] is not the place where we might find the
31134 # original and so on. Autoconf is especially sensible to this).
31136 # Exit status is that of the last command.
31141 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31142 *c*,-n*) ECHO_N= ECHO_C='
31144 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31145 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31148 if expr a : '\(a\)' >/dev/null 2>&1; then
31154 rm -f conf$$ conf$$.exe conf$$.file
31156 if ln -s conf$$.file conf$$ 2>/dev/null; then
31157 # We could just check for DJGPP; but this test a) works b) is more generic
31158 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31159 if test -f conf$$.exe; then
31160 # Don't use ln at all; we don't have any links
31165 elif ln conf$$.file conf$$ 2>/dev/null; then
31170 rm -f conf$$ conf$$.exe conf$$.file
31172 if mkdir -p . 2>/dev/null; then
31175 test -d ./-p && rmdir ./-p
31179 as_executable_p="test -f"
31181 # Sed expression to map a string onto a valid CPP name.
31182 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31184 # Sed expression to map a string onto a valid variable name.
31185 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31189 # We need space, tab and new line, in precisely that order.
31199 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31200 # report actual input values of CONFIG_FILES etc. instead of their
31201 # values after options handling. Logging --version etc. is OK.
31205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31206 ## Running $as_me. ##
31211 This file was extended by llvm $as_me 1.7cvs, which was
31212 generated by GNU Autoconf 2.59. Invocation command line was
31214 CONFIG_FILES = $CONFIG_FILES
31215 CONFIG_HEADERS = $CONFIG_HEADERS
31216 CONFIG_LINKS = $CONFIG_LINKS
31217 CONFIG_COMMANDS = $CONFIG_COMMANDS
31221 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31225 # Files that config.status was made for.
31226 if test -n "$ac_config_files"; then
31227 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31230 if test -n "$ac_config_headers"; then
31231 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31234 if test -n "$ac_config_links"; then
31235 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31238 if test -n "$ac_config_commands"; then
31239 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31242 cat >>$CONFIG_STATUS <<\_ACEOF
31245 \`$as_me' instantiates files from templates according to the
31246 current configuration.
31248 Usage: $0 [OPTIONS] [FILE]...
31250 -h, --help print this help, then exit
31251 -V, --version print version number, then exit
31252 -q, --quiet do not print progress messages
31253 -d, --debug don't remove temporary files
31254 --recheck update $as_me by reconfiguring in the same conditions
31255 --file=FILE[:TEMPLATE]
31256 instantiate the configuration file FILE
31257 --header=FILE[:TEMPLATE]
31258 instantiate the configuration header FILE
31260 Configuration files:
31263 Configuration headers:
31266 Configuration commands:
31269 Report bugs to <bug-autoconf@gnu.org>."
31272 cat >>$CONFIG_STATUS <<_ACEOF
31274 llvm config.status 1.7cvs
31275 configured by $0, generated by GNU Autoconf 2.59,
31276 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31278 Copyright (C) 2003 Free Software Foundation, Inc.
31279 This config.status script is free software; the Free Software Foundation
31280 gives unlimited permission to copy, distribute and modify it."
31285 cat >>$CONFIG_STATUS <<\_ACEOF
31286 # If no file are specified by the user, then we need to provide default
31287 # value. By we need to know if files were specified by the user.
31293 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31294 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31302 *) # This is not an option, so the user has probably given explicit
31305 ac_need_defaults=false;;
31309 # Handling of the options.
31311 cat >>$CONFIG_STATUS <<\_ACEOF
31312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31314 --version | --vers* | -V )
31315 echo "$ac_cs_version"; exit 0 ;;
31317 # Conflict between --help and --header
31318 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31319 Try \`$0 --help' for more information." >&5
31320 echo "$as_me: error: ambiguous option: $1
31321 Try \`$0 --help' for more information." >&2;}
31322 { (exit 1); exit 1; }; };;
31323 --help | --hel | -h )
31324 echo "$ac_cs_usage"; exit 0 ;;
31325 --debug | --d* | -d )
31327 --file | --fil | --fi | --f )
31329 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31330 ac_need_defaults=false;;
31331 --header | --heade | --head | --hea )
31333 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31334 ac_need_defaults=false;;
31335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31336 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31339 # This is an error.
31340 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31341 Try \`$0 --help' for more information." >&5
31342 echo "$as_me: error: unrecognized option: $1
31343 Try \`$0 --help' for more information." >&2;}
31344 { (exit 1); exit 1; }; } ;;
31346 *) ac_config_targets="$ac_config_targets $1" ;;
31352 ac_configure_extra_args=
31354 if $ac_cs_silent; then
31356 ac_configure_extra_args="$ac_configure_extra_args --silent"
31360 cat >>$CONFIG_STATUS <<_ACEOF
31361 if \$ac_cs_recheck; then
31362 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31363 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31368 cat >>$CONFIG_STATUS <<_ACEOF
31370 # INIT-COMMANDS section.
31373 llvm_src="${srcdir}"
31379 cat >>$CONFIG_STATUS <<\_ACEOF
31380 for ac_config_target in $ac_config_targets
31382 case "$ac_config_target" in
31383 # Handling of arguments.
31384 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31385 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31386 "utils/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES utils/llvm-config/llvm-config.in" ;;
31387 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31388 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31389 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31390 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31391 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31392 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31393 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31394 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31395 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31396 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31397 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31398 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31399 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31400 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31401 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31402 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31403 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31404 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31405 { (exit 1); exit 1; }; };;
31409 # If the user did not use the arguments to specify the items to instantiate,
31410 # then the envvar interface is used. Set only those that are not.
31411 # We use the long form for the default assignment because of an extremely
31412 # bizarre bug on SunOS 4.1.3.
31413 if $ac_need_defaults; then
31414 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31415 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31416 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31419 # Have a temporary directory for convenience. Make it in the build tree
31420 # simply because there is no reason to put it here, and in addition,
31421 # creating and moving files from /tmp can sometimes cause problems.
31422 # Create a temporary directory, and hook for its removal unless debugging.
31425 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31426 trap '{ (exit 1); exit 1; }' 1 2 13 15
31429 # Create a (secure) tmp directory for tmp files.
31432 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31433 test -n "$tmp" && test -d "$tmp"
31436 tmp=./confstat$$-$RANDOM
31437 (umask 077 && mkdir $tmp)
31440 echo "$me: cannot create a temporary directory in ." >&2
31441 { (exit 1); exit 1; }
31446 cat >>$CONFIG_STATUS <<_ACEOF
31449 # CONFIG_FILES section.
31452 # No need to generate the scripts if there are no CONFIG_FILES.
31453 # This happens for instance when ./config.status config.h
31454 if test -n "\$CONFIG_FILES"; then
31455 # Protect against being on the right side of a sed subst in config.status.
31456 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31457 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31458 s,@SHELL@,$SHELL,;t t
31459 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31460 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31461 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31462 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31463 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31464 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31465 s,@exec_prefix@,$exec_prefix,;t t
31466 s,@prefix@,$prefix,;t t
31467 s,@program_transform_name@,$program_transform_name,;t t
31468 s,@bindir@,$bindir,;t t
31469 s,@sbindir@,$sbindir,;t t
31470 s,@libexecdir@,$libexecdir,;t t
31471 s,@datadir@,$datadir,;t t
31472 s,@sysconfdir@,$sysconfdir,;t t
31473 s,@sharedstatedir@,$sharedstatedir,;t t
31474 s,@localstatedir@,$localstatedir,;t t
31475 s,@libdir@,$libdir,;t t
31476 s,@includedir@,$includedir,;t t
31477 s,@oldincludedir@,$oldincludedir,;t t
31478 s,@infodir@,$infodir,;t t
31479 s,@mandir@,$mandir,;t t
31480 s,@build_alias@,$build_alias,;t t
31481 s,@host_alias@,$host_alias,;t t
31482 s,@target_alias@,$target_alias,;t t
31483 s,@DEFS@,$DEFS,;t t
31484 s,@ECHO_C@,$ECHO_C,;t t
31485 s,@ECHO_N@,$ECHO_N,;t t
31486 s,@ECHO_T@,$ECHO_T,;t t
31487 s,@LIBS@,$LIBS,;t t
31488 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31489 s,@subdirs@,$subdirs,;t t
31490 s,@build@,$build,;t t
31491 s,@build_cpu@,$build_cpu,;t t
31492 s,@build_vendor@,$build_vendor,;t t
31493 s,@build_os@,$build_os,;t t
31494 s,@host@,$host,;t t
31495 s,@host_cpu@,$host_cpu,;t t
31496 s,@host_vendor@,$host_vendor,;t t
31497 s,@host_os@,$host_os,;t t
31498 s,@target@,$target,;t t
31499 s,@target_cpu@,$target_cpu,;t t
31500 s,@target_vendor@,$target_vendor,;t t
31501 s,@target_os@,$target_os,;t t
31503 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31504 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31505 s,@ARCH@,$ARCH,;t t
31506 s,@ENDIAN@,$ENDIAN,;t t
31508 s,@CFLAGS@,$CFLAGS,;t t
31509 s,@LDFLAGS@,$LDFLAGS,;t t
31510 s,@CPPFLAGS@,$CPPFLAGS,;t t
31511 s,@ac_ct_CC@,$ac_ct_CC,;t t
31512 s,@EXEEXT@,$EXEEXT,;t t
31513 s,@OBJEXT@,$OBJEXT,;t t
31514 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31515 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31517 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31518 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31519 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31520 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31523 s,@CXXFLAGS@,$CXXFLAGS,;t t
31524 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31526 s,@LEXLIB@,$LEXLIB,;t t
31527 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31528 s,@FLEX@,$FLEX,;t t
31529 s,@YACC@,$YACC,;t t
31530 s,@BISON@,$BISON,;t t
31531 s,@ifGNUmake@,$ifGNUmake,;t t
31532 s,@LN_S@,$LN_S,;t t
31535 s,@DATE@,$DATE,;t t
31536 s,@FIND@,$FIND,;t t
31537 s,@GREP@,$GREP,;t t
31538 s,@MKDIR@,$MKDIR,;t t
31540 s,@RANLIB@,$RANLIB,;t t
31541 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31545 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31547 s,@PERL@,$PERL,;t t
31548 s,@HAVE_PERL@,$HAVE_PERL,;t t
31549 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31550 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31551 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31552 s,@BZIP2@,$BZIP2,;t t
31554 s,@DOXYGEN@,$DOXYGEN,;t t
31555 s,@ETAGS@,$ETAGS,;t t
31556 s,@GROFF@,$GROFF,;t t
31557 s,@GZIP@,$GZIP,;t t
31558 s,@POD2HTML@,$POD2HTML,;t t
31559 s,@POD2MAN@,$POD2MAN,;t t
31560 s,@RUNTEST@,$RUNTEST,;t t
31561 s,@TCLSH@,$TCLSH,;t t
31563 s,@EGREP@,$EGREP,;t t
31564 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31565 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31566 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31567 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31568 s,@LIBADD_DL@,$LIBADD_DL,;t t
31569 s,@ECHO@,$ECHO,;t t
31571 s,@ac_ct_AR@,$ac_ct_AR,;t t
31572 s,@STRIP@,$STRIP,;t t
31573 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31574 s,@CXXCPP@,$CXXCPP,;t t
31576 s,@FFLAGS@,$FFLAGS,;t t
31577 s,@ac_ct_F77@,$ac_ct_F77,;t t
31578 s,@LIBTOOL@,$LIBTOOL,;t t
31579 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31580 s,@LLVMGCC@,$LLVMGCC,;t t
31581 s,@LLVMGXX@,$LLVMGXX,;t t
31582 s,@ALLOCA@,$ALLOCA,;t t
31583 s,@MMAP_FILE@,$MMAP_FILE,;t t
31584 s,@LLVMCC1@,$LLVMCC1,;t t
31585 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31586 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31587 s,@SHLIBEXT@,$SHLIBEXT,;t t
31588 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31589 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31590 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31591 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31592 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31593 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31594 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31595 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31596 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31597 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31598 s,@LIBOBJS@,$LIBOBJS,;t t
31599 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31604 cat >>$CONFIG_STATUS <<\_ACEOF
31605 # Split the substitutions into bite-sized pieces for seds with
31606 # small command number limits, like on Digital OSF/1 and HP-UX.
31607 ac_max_sed_lines=48
31608 ac_sed_frag=1 # Number of current file.
31609 ac_beg=1 # First line for current file.
31610 ac_end=$ac_max_sed_lines # Line after last line for current file.
31613 while $ac_more_lines; do
31614 if test $ac_beg -gt 1; then
31615 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31617 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31619 if test ! -s $tmp/subs.frag; then
31620 ac_more_lines=false
31622 # The purpose of the label and of the branching condition is to
31623 # speed up the sed processing (if there are no `@' at all, there
31624 # is no need to browse any of the substitutions).
31625 # These are the two extra sed commands mentioned above.
31627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31628 if test -z "$ac_sed_cmds"; then
31629 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31631 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31633 ac_sed_frag=`expr $ac_sed_frag + 1`
31635 ac_end=`expr $ac_end + $ac_max_sed_lines`
31638 if test -z "$ac_sed_cmds"; then
31641 fi # test -n "$CONFIG_FILES"
31644 cat >>$CONFIG_STATUS <<\_ACEOF
31645 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31646 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31648 - | *:- | *:-:* ) # input from stdin
31650 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31651 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31652 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31653 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31654 * ) ac_file_in=$ac_file.in ;;
31657 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31658 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31660 X"$ac_file" : 'X\(//\)[^/]' \| \
31661 X"$ac_file" : 'X\(//\)$' \| \
31662 X"$ac_file" : 'X\(/\)' \| \
31663 . : '\(.\)' 2>/dev/null ||
31665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31667 /^X\(\/\/\)$/{ s//\1/; q; }
31668 /^X\(\/\).*/{ s//\1/; q; }
31670 { if $as_mkdir_p; then
31675 while test ! -d "$as_dir"; do
31676 as_dirs="$as_dir $as_dirs"
31677 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31679 X"$as_dir" : 'X\(//\)[^/]' \| \
31680 X"$as_dir" : 'X\(//\)$' \| \
31681 X"$as_dir" : 'X\(/\)' \| \
31682 . : '\(.\)' 2>/dev/null ||
31684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31686 /^X\(\/\/\)$/{ s//\1/; q; }
31687 /^X\(\/\).*/{ s//\1/; q; }
31690 test ! -n "$as_dirs" || mkdir $as_dirs
31691 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31693 { (exit 1); exit 1; }; }; }
31697 if test "$ac_dir" != .; then
31698 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31699 # A "../" for each directory in $ac_dir_suffix.
31700 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31702 ac_dir_suffix= ac_top_builddir=
31706 .) # No --srcdir option. We are building in place.
31708 if test -z "$ac_top_builddir"; then
31711 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31713 [\\/]* | ?:[\\/]* ) # Absolute path.
31714 ac_srcdir=$srcdir$ac_dir_suffix;
31715 ac_top_srcdir=$srcdir ;;
31716 *) # Relative path.
31717 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31718 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31721 # Do not use `cd foo && pwd` to compute absolute paths, because
31722 # the directories may not exist.
31724 .) ac_abs_builddir="$ac_dir";;
31727 .) ac_abs_builddir=`pwd`;;
31728 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31729 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31732 case $ac_abs_builddir in
31733 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31735 case ${ac_top_builddir}. in
31736 .) ac_abs_top_builddir=$ac_abs_builddir;;
31737 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31738 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31741 case $ac_abs_builddir in
31742 .) ac_abs_srcdir=$ac_srcdir;;
31745 .) ac_abs_srcdir=$ac_abs_builddir;;
31746 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31747 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31750 case $ac_abs_builddir in
31751 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31753 case $ac_top_srcdir in
31754 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31755 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31756 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31762 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31763 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31766 if test x"$ac_file" != x-; then
31767 { echo "$as_me:$LINENO: creating $ac_file" >&5
31768 echo "$as_me: creating $ac_file" >&6;}
31771 # Let's still pretend it is `configure' which instantiates (i.e., don't
31772 # use $as_me), people would be surprised to read:
31773 # /* config.h. Generated by config.status. */
31774 if test x"$ac_file" = x-; then
31777 configure_input="$ac_file. "
31779 configure_input=$configure_input"Generated from `echo $ac_file_in |
31780 sed 's,.*/,,'` by configure."
31782 # First look for the input files in the build tree, otherwise in the
31784 ac_file_inputs=`IFS=:
31785 for f in $ac_file_in; do
31787 -) echo $tmp/stdin ;;
31789 # Absolute (can't be DOS-style, as IFS=:)
31790 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31791 echo "$as_me: error: cannot find input file: $f" >&2;}
31792 { (exit 1); exit 1; }; }
31795 if test -f "$f"; then
31798 elif test -f "$srcdir/$f"; then
31803 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31804 echo "$as_me: error: cannot find input file: $f" >&2;}
31805 { (exit 1); exit 1; }; }
31808 done` || { (exit 1); exit 1; }
31810 cat >>$CONFIG_STATUS <<_ACEOF
31814 cat >>$CONFIG_STATUS <<\_ACEOF
31816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31817 s,@configure_input@,$configure_input,;t t
31818 s,@srcdir@,$ac_srcdir,;t t
31819 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31820 s,@top_srcdir@,$ac_top_srcdir,;t t
31821 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31822 s,@builddir@,$ac_builddir,;t t
31823 s,@abs_builddir@,$ac_abs_builddir,;t t
31824 s,@top_builddir@,$ac_top_builddir,;t t
31825 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31826 s,@INSTALL@,$ac_INSTALL,;t t
31827 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31829 if test x"$ac_file" != x-; then
31830 mv $tmp/out $ac_file
31838 cat >>$CONFIG_STATUS <<\_ACEOF
31841 # CONFIG_HEADER section.
31844 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31845 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31847 # ac_d sets the value in "#define NAME VALUE" lines.
31848 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31849 ac_dB='[ ].*$,\1#\2'
31852 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31853 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31854 ac_uB='$,\1#\2define\3'
31858 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31859 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31861 - | *:- | *:-:* ) # input from stdin
31863 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31864 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31865 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31866 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31867 * ) ac_file_in=$ac_file.in ;;
31870 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31871 echo "$as_me: creating $ac_file" >&6;}
31873 # First look for the input files in the build tree, otherwise in the
31875 ac_file_inputs=`IFS=:
31876 for f in $ac_file_in; do
31878 -) echo $tmp/stdin ;;
31880 # Absolute (can't be DOS-style, as IFS=:)
31881 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31882 echo "$as_me: error: cannot find input file: $f" >&2;}
31883 { (exit 1); exit 1; }; }
31884 # Do quote $f, to prevent DOS paths from being IFS'd.
31887 if test -f "$f"; then
31890 elif test -f "$srcdir/$f"; then
31895 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31896 echo "$as_me: error: cannot find input file: $f" >&2;}
31897 { (exit 1); exit 1; }; }
31900 done` || { (exit 1); exit 1; }
31901 # Remove the trailing spaces.
31902 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31906 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31907 # `conftest.undefs', that substitutes the proper values into
31908 # config.h.in to produce config.h. The first handles `#define'
31909 # templates, and the second `#undef' templates.
31910 # And first: Protect against being on the right side of a sed subst in
31911 # config.status. Protect against being in an unquoted here document
31912 # in config.status.
31913 rm -f conftest.defines conftest.undefs
31914 # Using a here document instead of a string reduces the quoting nightmare.
31915 # Putting comments in sed scripts is not portable.
31917 # `end' is used to avoid that the second main sed command (meant for
31918 # 0-ary CPP macros) applies to n-ary macro definitions.
31919 # See the Autoconf documentation for `clear'.
31920 cat >confdef2sed.sed <<\_ACEOF
31925 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31927 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31930 # If some macros were called several times there might be several times
31931 # the same #defines, which is useless. Nevertheless, we may not want to
31932 # sort them, since we want the *last* AC-DEFINE to be honored.
31933 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31934 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31935 rm -f confdef2sed.sed
31937 # This sed command replaces #undef with comments. This is necessary, for
31938 # example, in the case of _POSIX_SOURCE, which is predefined and required
31939 # on some systems where configure will not decide to define it.
31940 cat >>conftest.undefs <<\_ACEOF
31941 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31944 # Break up conftest.defines because some shells have a limit on the size
31945 # of here documents, and old seds have small limits too (100 cmds).
31946 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31947 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31948 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31949 echo ' :' >>$CONFIG_STATUS
31950 rm -f conftest.tail
31951 while grep . conftest.defines >/dev/null
31953 # Write a limited-size here document to $tmp/defines.sed.
31954 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31955 # Speed up: don't consider the non `#define' lines.
31956 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31957 # Work around the forget-to-reset-the-flag bug.
31958 echo 't clr' >>$CONFIG_STATUS
31959 echo ': clr' >>$CONFIG_STATUS
31960 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31962 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31964 mv $tmp/out $tmp/in
31966 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31967 rm -f conftest.defines
31968 mv conftest.tail conftest.defines
31970 rm -f conftest.defines
31971 echo ' fi # grep' >>$CONFIG_STATUS
31972 echo >>$CONFIG_STATUS
31974 # Break up conftest.undefs because some shells have a limit on the size
31975 # of here documents, and old seds have small limits too (100 cmds).
31976 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31977 rm -f conftest.tail
31978 while grep . conftest.undefs >/dev/null
31980 # Write a limited-size here document to $tmp/undefs.sed.
31981 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31982 # Speed up: don't consider the non `#undef'
31983 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31984 # Work around the forget-to-reset-the-flag bug.
31985 echo 't clr' >>$CONFIG_STATUS
31986 echo ': clr' >>$CONFIG_STATUS
31987 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31989 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31991 mv $tmp/out $tmp/in
31993 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31994 rm -f conftest.undefs
31995 mv conftest.tail conftest.undefs
31997 rm -f conftest.undefs
31999 cat >>$CONFIG_STATUS <<\_ACEOF
32000 # Let's still pretend it is `configure' which instantiates (i.e., don't
32001 # use $as_me), people would be surprised to read:
32002 # /* config.h. Generated by config.status. */
32003 if test x"$ac_file" = x-; then
32004 echo "/* Generated by configure. */" >$tmp/config.h
32006 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32008 cat $tmp/in >>$tmp/config.h
32010 if test x"$ac_file" != x-; then
32011 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32012 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32013 echo "$as_me: $ac_file is unchanged" >&6;}
32015 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32016 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32017 X"$ac_file" : 'X\(//\)[^/]' \| \
32018 X"$ac_file" : 'X\(//\)$' \| \
32019 X"$ac_file" : 'X\(/\)' \| \
32020 . : '\(.\)' 2>/dev/null ||
32022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32024 /^X\(\/\/\)$/{ s//\1/; q; }
32025 /^X\(\/\).*/{ s//\1/; q; }
32027 { if $as_mkdir_p; then
32032 while test ! -d "$as_dir"; do
32033 as_dirs="$as_dir $as_dirs"
32034 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32036 X"$as_dir" : 'X\(//\)[^/]' \| \
32037 X"$as_dir" : 'X\(//\)$' \| \
32038 X"$as_dir" : 'X\(/\)' \| \
32039 . : '\(.\)' 2>/dev/null ||
32041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32043 /^X\(\/\/\)$/{ s//\1/; q; }
32044 /^X\(\/\).*/{ s//\1/; q; }
32047 test ! -n "$as_dirs" || mkdir $as_dirs
32048 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32049 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32050 { (exit 1); exit 1; }; }; }
32053 mv $tmp/config.h $ac_file
32057 rm -f $tmp/config.h
32061 cat >>$CONFIG_STATUS <<\_ACEOF
32064 # CONFIG_COMMANDS section.
32066 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32067 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32068 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32069 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32070 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32071 X"$ac_dest" : 'X\(//\)[^/]' \| \
32072 X"$ac_dest" : 'X\(//\)$' \| \
32073 X"$ac_dest" : 'X\(/\)' \| \
32074 . : '\(.\)' 2>/dev/null ||
32076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32077 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32078 /^X\(\/\/\)$/{ s//\1/; q; }
32079 /^X\(\/\).*/{ s//\1/; q; }
32081 { if $as_mkdir_p; then
32086 while test ! -d "$as_dir"; do
32087 as_dirs="$as_dir $as_dirs"
32088 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32090 X"$as_dir" : 'X\(//\)[^/]' \| \
32091 X"$as_dir" : 'X\(//\)$' \| \
32092 X"$as_dir" : 'X\(/\)' \| \
32093 . : '\(.\)' 2>/dev/null ||
32095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32096 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32097 /^X\(\/\/\)$/{ s//\1/; q; }
32098 /^X\(\/\).*/{ s//\1/; q; }
32101 test ! -n "$as_dirs" || mkdir $as_dirs
32102 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32103 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32104 { (exit 1); exit 1; }; }; }
32108 if test "$ac_dir" != .; then
32109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32110 # A "../" for each directory in $ac_dir_suffix.
32111 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32113 ac_dir_suffix= ac_top_builddir=
32117 .) # No --srcdir option. We are building in place.
32119 if test -z "$ac_top_builddir"; then
32122 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32124 [\\/]* | ?:[\\/]* ) # Absolute path.
32125 ac_srcdir=$srcdir$ac_dir_suffix;
32126 ac_top_srcdir=$srcdir ;;
32127 *) # Relative path.
32128 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32129 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32132 # Do not use `cd foo && pwd` to compute absolute paths, because
32133 # the directories may not exist.
32135 .) ac_abs_builddir="$ac_dir";;
32138 .) ac_abs_builddir=`pwd`;;
32139 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32140 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32143 case $ac_abs_builddir in
32144 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32146 case ${ac_top_builddir}. in
32147 .) ac_abs_top_builddir=$ac_abs_builddir;;
32148 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32149 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32152 case $ac_abs_builddir in
32153 .) ac_abs_srcdir=$ac_srcdir;;
32156 .) ac_abs_srcdir=$ac_abs_builddir;;
32157 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32158 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32161 case $ac_abs_builddir in
32162 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32164 case $ac_top_srcdir in
32165 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32166 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32167 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32172 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32173 echo "$as_me: executing $ac_dest commands" >&6;}
32175 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32176 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32177 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32178 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32179 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32180 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32181 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32182 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32183 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32184 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32185 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32186 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32187 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32188 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32189 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32190 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32191 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32192 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32193 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32194 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32199 cat >>$CONFIG_STATUS <<\_ACEOF
32201 { (exit 0); exit 0; }
32203 chmod +x $CONFIG_STATUS
32204 ac_clean_files=$ac_clean_files_save
32207 # configure is writing to config.log, and then calls config.status.
32208 # config.status does its own redirection, appending to config.log.
32209 # Unfortunately, on DOS this fails, as config.log is still kept open
32210 # by configure, so config.status won't be able to write to it; its
32211 # output is simply discarded. So we exec the FD to /dev/null,
32212 # effectively closing config.log, so it can be properly (re)opened and
32213 # appended to by config.status. When coming back to configure, we
32214 # need to make the FD available again.
32215 if test "$no_create" != yes; then
32217 ac_config_status_args=
32218 test "$silent" = yes &&
32219 ac_config_status_args="$ac_config_status_args --quiet"
32221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32224 # would make configure fail if this is the last instruction.
32225 $ac_cs_success || { (exit 1); exit 1; }
32229 # CONFIG_SUBDIRS section.
32231 if test "$no_recursion" != yes; then
32233 # Remove --cache-file and --srcdir arguments so they do not pile up.
32234 ac_sub_configure_args=
32236 for ac_arg in $ac_configure_args; do
32237 if test -n "$ac_prev"; then
32242 -cache-file | --cache-file | --cache-fil | --cache-fi \
32243 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32244 ac_prev=cache_file ;;
32245 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32246 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32249 --config-cache | -C)
32251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32259 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32263 # Always prepend --prefix to ensure using the same prefix
32264 # in subdir configurations.
32265 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32268 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32270 # Do not complain, so a configure script can configure whichever
32271 # parts of a large source tree are present.
32272 test -d $srcdir/$ac_dir || continue
32274 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32275 echo "$as_me: configuring in $ac_dir" >&6;}
32276 { if $as_mkdir_p; then
32281 while test ! -d "$as_dir"; do
32282 as_dirs="$as_dir $as_dirs"
32283 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32285 X"$as_dir" : 'X\(//\)[^/]' \| \
32286 X"$as_dir" : 'X\(//\)$' \| \
32287 X"$as_dir" : 'X\(/\)' \| \
32288 . : '\(.\)' 2>/dev/null ||
32290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32292 /^X\(\/\/\)$/{ s//\1/; q; }
32293 /^X\(\/\).*/{ s//\1/; q; }
32296 test ! -n "$as_dirs" || mkdir $as_dirs
32297 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32298 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32299 { (exit 1); exit 1; }; }; }
32303 if test "$ac_dir" != .; then
32304 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32305 # A "../" for each directory in $ac_dir_suffix.
32306 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32308 ac_dir_suffix= ac_top_builddir=
32312 .) # No --srcdir option. We are building in place.
32314 if test -z "$ac_top_builddir"; then
32317 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32319 [\\/]* | ?:[\\/]* ) # Absolute path.
32320 ac_srcdir=$srcdir$ac_dir_suffix;
32321 ac_top_srcdir=$srcdir ;;
32322 *) # Relative path.
32323 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32324 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32327 # Do not use `cd foo && pwd` to compute absolute paths, because
32328 # the directories may not exist.
32330 .) ac_abs_builddir="$ac_dir";;
32333 .) ac_abs_builddir=`pwd`;;
32334 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32335 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32338 case $ac_abs_builddir in
32339 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32341 case ${ac_top_builddir}. in
32342 .) ac_abs_top_builddir=$ac_abs_builddir;;
32343 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32344 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32347 case $ac_abs_builddir in
32348 .) ac_abs_srcdir=$ac_srcdir;;
32351 .) ac_abs_srcdir=$ac_abs_builddir;;
32352 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32353 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32356 case $ac_abs_builddir in
32357 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32359 case $ac_top_srcdir in
32360 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32361 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32362 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32369 # Check for guested configure; otherwise get Cygnus style configure.
32370 if test -f $ac_srcdir/configure.gnu; then
32371 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32372 elif test -f $ac_srcdir/configure; then
32373 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32374 elif test -f $ac_srcdir/configure.in; then
32375 ac_sub_configure=$ac_configure
32377 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32378 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32382 # The recursion is here.
32383 if test -n "$ac_sub_configure"; then
32384 # Make the cache file name correct relative to the subdirectory.
32385 case $cache_file in
32386 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32387 *) # Relative path.
32388 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32391 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32392 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32393 # The eval makes quoting arguments work.
32394 eval $ac_sub_configure $ac_sub_configure_args \
32395 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32396 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32397 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32398 { (exit 1); exit 1; }; }
32406 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32407 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32408 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32409 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32410 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32411 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32412 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32413 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32414 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32415 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32416 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}