2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.6cvs.
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.
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.6cvs'
429 PACKAGE_STRING='llvm 1.6cvs'
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 # Factoring default headers for most tests.
442 ac_includes_default="\
445 # include <sys/types.h>
448 # include <sys/stat.h>
459 # if !STDC_HEADERS && HAVE_MEMORY_H
465 # include <strings.h>
468 # include <inttypes.h>
478 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 JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
481 # Initialize some variables set by options.
483 ac_init_version=false
484 # The variables have the same names as the options, with
485 # dashes changed to underlines.
493 program_transform_name=s,x,x,
501 # Installation directory options.
502 # These are left unexpanded so users can "make install exec_prefix=/foo"
503 # and all the variables that are supposed to be based on exec_prefix
504 # by default will actually change.
505 # Use braces instead of parens because sh, perl, etc. also accept them.
506 bindir='${exec_prefix}/bin'
507 sbindir='${exec_prefix}/sbin'
508 libexecdir='${exec_prefix}/libexec'
509 datadir='${prefix}/share'
510 sysconfdir='${prefix}/etc'
511 sharedstatedir='${prefix}/com'
512 localstatedir='${prefix}/var'
513 libdir='${exec_prefix}/lib'
514 includedir='${prefix}/include'
515 oldincludedir='/usr/include'
516 infodir='${prefix}/info'
517 mandir='${prefix}/man'
522 # If the previous option needs an argument, assign it.
523 if test -n "$ac_prev"; then
524 eval "$ac_prev=\$ac_option"
529 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531 # Accept the important Cygnus configure options, so we can diagnose typos.
535 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540 -build | --build | --buil | --bui | --bu)
541 ac_prev=build_alias ;;
542 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
543 build_alias=$ac_optarg ;;
545 -cache-file | --cache-file | --cache-fil | --cache-fi \
546 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
547 ac_prev=cache_file ;;
548 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
549 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
550 cache_file=$ac_optarg ;;
553 cache_file=config.cache ;;
555 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 datadir=$ac_optarg ;;
561 -disable-* | --disable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 eval "enable_$ac_feature=no" ;;
570 -enable-* | --enable-*)
571 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575 { (exit 1); exit 1; }; }
576 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581 eval "enable_$ac_feature='$ac_optarg'" ;;
583 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
584 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
585 | --exec | --exe | --ex)
586 ac_prev=exec_prefix ;;
587 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
588 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
589 | --exec=* | --exe=* | --ex=*)
590 exec_prefix=$ac_optarg ;;
592 -gas | --gas | --ga | --g)
593 # Obsolete; use --with-gas.
596 -help | --help | --hel | --he | -h)
598 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
599 ac_init_help=recursive ;;
600 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
601 ac_init_help=short ;;
603 -host | --host | --hos | --ho)
604 ac_prev=host_alias ;;
605 -host=* | --host=* | --hos=* | --ho=*)
606 host_alias=$ac_optarg ;;
608 -includedir | --includedir | --includedi | --included | --include \
609 | --includ | --inclu | --incl | --inc)
610 ac_prev=includedir ;;
611 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
612 | --includ=* | --inclu=* | --incl=* | --inc=*)
613 includedir=$ac_optarg ;;
615 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
618 infodir=$ac_optarg ;;
620 -libdir | --libdir | --libdi | --libd)
622 -libdir=* | --libdir=* | --libdi=* | --libd=*)
625 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
626 | --libexe | --libex | --libe)
627 ac_prev=libexecdir ;;
628 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
629 | --libexe=* | --libex=* | --libe=*)
630 libexecdir=$ac_optarg ;;
632 -localstatedir | --localstatedir | --localstatedi | --localstated \
633 | --localstate | --localstat | --localsta | --localst \
634 | --locals | --local | --loca | --loc | --lo)
635 ac_prev=localstatedir ;;
636 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
637 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
638 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
639 localstatedir=$ac_optarg ;;
641 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
647 # Obsolete; use --without-fp.
650 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
651 | --no-cr | --no-c | -n)
654 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
659 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
660 | --oldin | --oldi | --old | --ol | --o)
661 ac_prev=oldincludedir ;;
662 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
663 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
664 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
665 oldincludedir=$ac_optarg ;;
667 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672 -program-prefix | --program-prefix | --program-prefi | --program-pref \
673 | --program-pre | --program-pr | --program-p)
674 ac_prev=program_prefix ;;
675 -program-prefix=* | --program-prefix=* | --program-prefi=* \
676 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
677 program_prefix=$ac_optarg ;;
679 -program-suffix | --program-suffix | --program-suffi | --program-suff \
680 | --program-suf | --program-su | --program-s)
681 ac_prev=program_suffix ;;
682 -program-suffix=* | --program-suffix=* | --program-suffi=* \
683 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
684 program_suffix=$ac_optarg ;;
686 -program-transform-name | --program-transform-name \
687 | --program-transform-nam | --program-transform-na \
688 | --program-transform-n | --program-transform- \
689 | --program-transform | --program-transfor \
690 | --program-transfo | --program-transf \
691 | --program-trans | --program-tran \
692 | --progr-tra | --program-tr | --program-t)
693 ac_prev=program_transform_name ;;
694 -program-transform-name=* | --program-transform-name=* \
695 | --program-transform-nam=* | --program-transform-na=* \
696 | --program-transform-n=* | --program-transform-=* \
697 | --program-transform=* | --program-transfor=* \
698 | --program-transfo=* | --program-transf=* \
699 | --program-trans=* | --program-tran=* \
700 | --progr-tra=* | --program-tr=* | --program-t=*)
701 program_transform_name=$ac_optarg ;;
703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
704 | -silent | --silent | --silen | --sile | --sil)
707 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 sbindir=$ac_optarg ;;
713 -sharedstatedir | --sharedstatedir | --sharedstatedi \
714 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
715 | --sharedst | --shareds | --shared | --share | --shar \
717 ac_prev=sharedstatedir ;;
718 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
719 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
720 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 sharedstatedir=$ac_optarg ;;
724 -site | --site | --sit)
726 -site=* | --site=* | --sit=*)
729 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
735 | --syscon | --sysco | --sysc | --sys | --sy)
736 ac_prev=sysconfdir ;;
737 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
738 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
739 sysconfdir=$ac_optarg ;;
741 -target | --target | --targe | --targ | --tar | --ta | --t)
742 ac_prev=target_alias ;;
743 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
744 target_alias=$ac_optarg ;;
746 -v | -verbose | --verbose | --verbos | --verbo | --verb)
749 -version | --version | --versio | --versi | --vers | -V)
753 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763 eval "with_$ac_package='$ac_optarg'" ;;
765 -without-* | --without-*)
766 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
767 # Reject names that are not valid shell variable names.
768 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769 { echo "$as_me: error: invalid package name: $ac_package" >&2
770 { (exit 1); exit 1; }; }
771 ac_package=`echo $ac_package | sed 's/-/_/g'`
772 eval "with_$ac_package=no" ;;
775 # Obsolete; use --with-x.
778 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
779 | --x-incl | --x-inc | --x-in | --x-i)
780 ac_prev=x_includes ;;
781 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
782 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
783 x_includes=$ac_optarg ;;
785 -x-libraries | --x-libraries | --x-librarie | --x-librari \
786 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
787 ac_prev=x_libraries ;;
788 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
789 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
790 x_libraries=$ac_optarg ;;
792 -*) { echo "$as_me: error: unrecognized option: $ac_option
793 Try \`$0 --help' for more information." >&2
794 { (exit 1); exit 1; }; }
798 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
799 # Reject names that are not valid shell variable names.
800 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
801 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
802 { (exit 1); exit 1; }; }
803 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
804 eval "$ac_envvar='$ac_optarg'"
808 # FIXME: should be removed in autoconf 3.0.
809 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
810 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
812 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
818 if test -n "$ac_prev"; then
819 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
820 { echo "$as_me: error: missing argument to $ac_option" >&2
821 { (exit 1); exit 1; }; }
824 # Be sure to have absolute paths.
825 for ac_var in exec_prefix prefix
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # Be sure to have absolute paths.
836 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
837 localstatedir libdir includedir oldincludedir infodir mandir
839 eval ac_val=$`echo $ac_var`
841 [\\/$]* | ?:[\\/]* ) ;;
842 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843 { (exit 1); exit 1; }; };;
847 # There might be people who depend on the old broken behavior: `$host'
848 # used to hold the argument of --host etc.
849 # FIXME: To remove some day.
854 # FIXME: To remove some day.
855 if test "x$host_alias" != x; then
856 if test "x$build_alias" = x; then
857 cross_compiling=maybe
858 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
859 If a cross compiler is detected then cross compile mode will be used." >&2
860 elif test "x$build_alias" != "x$host_alias"; then
866 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868 test "$silent" = yes && exec 6>/dev/null
871 # Find the source files, if location was not specified.
872 if test -z "$srcdir"; then
873 ac_srcdir_defaulted=yes
874 # Try the directory containing this script, then its parent.
875 ac_confdir=`(dirname "$0") 2>/dev/null ||
876 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
877 X"$0" : 'X\(//\)[^/]' \| \
878 X"$0" : 'X\(//\)$' \| \
879 X"$0" : 'X\(/\)' \| \
880 . : '\(.\)' 2>/dev/null ||
882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
884 /^X\(\/\/\)$/{ s//\1/; q; }
885 /^X\(\/\).*/{ s//\1/; q; }
888 if test ! -r $srcdir/$ac_unique_file; then
892 ac_srcdir_defaulted=no
894 if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
897 { (exit 1); exit 1; }; }
899 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
900 { (exit 1); exit 1; }; }
903 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
904 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
905 { (exit 1); exit 1; }; }
906 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
907 ac_env_build_alias_set=${build_alias+set}
908 ac_env_build_alias_value=$build_alias
909 ac_cv_env_build_alias_set=${build_alias+set}
910 ac_cv_env_build_alias_value=$build_alias
911 ac_env_host_alias_set=${host_alias+set}
912 ac_env_host_alias_value=$host_alias
913 ac_cv_env_host_alias_set=${host_alias+set}
914 ac_cv_env_host_alias_value=$host_alias
915 ac_env_target_alias_set=${target_alias+set}
916 ac_env_target_alias_value=$target_alias
917 ac_cv_env_target_alias_set=${target_alias+set}
918 ac_cv_env_target_alias_value=$target_alias
919 ac_env_CC_set=${CC+set}
921 ac_cv_env_CC_set=${CC+set}
922 ac_cv_env_CC_value=$CC
923 ac_env_CFLAGS_set=${CFLAGS+set}
924 ac_env_CFLAGS_value=$CFLAGS
925 ac_cv_env_CFLAGS_set=${CFLAGS+set}
926 ac_cv_env_CFLAGS_value=$CFLAGS
927 ac_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_env_LDFLAGS_value=$LDFLAGS
929 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_cv_env_LDFLAGS_value=$LDFLAGS
931 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_env_CPPFLAGS_value=$CPPFLAGS
933 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXX_set=${CXX+set}
940 ac_env_CXX_value=$CXX
941 ac_cv_env_CXX_set=${CXX+set}
942 ac_cv_env_CXX_value=$CXX
943 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
944 ac_env_CXXFLAGS_value=$CXXFLAGS
945 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
947 ac_env_CXXCPP_set=${CXXCPP+set}
948 ac_env_CXXCPP_value=$CXXCPP
949 ac_cv_env_CXXCPP_set=${CXXCPP+set}
950 ac_cv_env_CXXCPP_value=$CXXCPP
951 ac_env_F77_set=${F77+set}
952 ac_env_F77_value=$F77
953 ac_cv_env_F77_set=${F77+set}
954 ac_cv_env_F77_value=$F77
955 ac_env_FFLAGS_set=${FFLAGS+set}
956 ac_env_FFLAGS_value=$FFLAGS
957 ac_cv_env_FFLAGS_set=${FFLAGS+set}
958 ac_cv_env_FFLAGS_value=$FFLAGS
961 # Report the --help message.
963 if test "$ac_init_help" = "long"; then
964 # Omit some internal or obsolete options to make the list less imposing.
965 # This message is too long to be a string in the A/UX 3.1 sh.
967 \`configure' configures llvm 1.6cvs to adapt to many kinds of systems.
969 Usage: $0 [OPTION]... [VAR=VALUE]...
971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
972 VAR=VALUE. See below for descriptions of some of the useful variables.
974 Defaults for the options are specified in brackets.
977 -h, --help display this help and exit
978 --help=short display options specific to this package
979 --help=recursive display the short help of all the included packages
980 -V, --version display version information and exit
981 -q, --quiet, --silent do not print \`checking...' messages
982 --cache-file=FILE cache test results in FILE [disabled]
983 -C, --config-cache alias for \`--cache-file=config.cache'
984 -n, --no-create do not create output files
985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
990 Installation directories:
991 --prefix=PREFIX install architecture-independent files in PREFIX
993 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
996 By default, \`make install' will install all the files in
997 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
998 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999 for instance \`--prefix=\$HOME'.
1001 For better control, use the options below.
1003 Fine tuning of the installation directories:
1004 --bindir=DIR user executables [EPREFIX/bin]
1005 --sbindir=DIR system admin executables [EPREFIX/sbin]
1006 --libexecdir=DIR program executables [EPREFIX/libexec]
1007 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1011 --libdir=DIR object code libraries [EPREFIX/lib]
1012 --includedir=DIR C header files [PREFIX/include]
1013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1014 --infodir=DIR info documentation [PREFIX/info]
1015 --mandir=DIR man documentation [PREFIX/man]
1021 --build=BUILD configure for building on BUILD [guessed]
1022 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1023 --target=TARGET configure for building compilers for TARGET [HOST]
1027 if test -n "$ac_init_help"; then
1028 case $ac_init_help in
1029 short | recursive ) echo "Configuration of llvm 1.6cvs:";;
1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1037 --enable-jit Enable Just In Time Compiling (default is YES)
1038 --enable-doxygen Build doxygen documentation (default is NO)
1039 --enable-threads Use threads if available (default is YES)
1040 --enable-target Build specific host targets:
1041 all,host-only,{target-name} (default=all)
1042 --enable-ltdl-install install libltdl
1043 --enable-shared[=PKGS]
1044 build shared libraries [default=yes]
1045 --enable-static[=PKGS]
1046 build static libraries [default=yes]
1047 --enable-fast-install[=PKGS]
1048 optimize for fast installation [default=yes]
1049 --disable-libtool-lock avoid locking (might break parallel builds)
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1056 --with-tclinclude directory where tcl headers are
1057 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1058 --with-pic try to use only PIC/non-PIC objects [default=use
1061 include additional configurations [automatic]
1063 Some influential environment variables:
1064 CC C compiler command
1065 CFLAGS C compiler flags
1066 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1067 nonstandard directory <lib dir>
1068 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1069 headers in a nonstandard directory <include dir>
1071 CXX C++ compiler command
1072 CXXFLAGS C++ compiler flags
1073 CXXCPP C++ preprocessor
1074 F77 Fortran 77 compiler command
1075 FFLAGS Fortran 77 compiler flags
1077 Use these variables to override the choices made by `configure' or to help
1078 it to find libraries and programs with nonstandard names/locations.
1080 Report bugs to <llvmbugs@cs.uiuc.edu>.
1084 if test "$ac_init_help" = "recursive"; then
1085 # If there are subdirs, report their specific --help.
1087 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088 test -d $ac_dir || continue
1091 if test "$ac_dir" != .; then
1092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093 # A "../" for each directory in $ac_dir_suffix.
1094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1096 ac_dir_suffix= ac_top_builddir=
1100 .) # No --srcdir option. We are building in place.
1102 if test -z "$ac_top_builddir"; then
1105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1107 [\\/]* | ?:[\\/]* ) # Absolute path.
1108 ac_srcdir=$srcdir$ac_dir_suffix;
1109 ac_top_srcdir=$srcdir ;;
1111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115 # Do not use `cd foo && pwd` to compute absolute paths, because
1116 # the directories may not exist.
1118 .) ac_abs_builddir="$ac_dir";;
1121 .) ac_abs_builddir=`pwd`;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 case ${ac_top_builddir}. in
1130 .) ac_abs_top_builddir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135 case $ac_abs_builddir in
1136 .) ac_abs_srcdir=$ac_srcdir;;
1139 .) ac_abs_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144 case $ac_abs_builddir in
1145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 case $ac_top_srcdir in
1148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1155 # Check for guested configure; otherwise get Cygnus style configure.
1156 if test -f $ac_srcdir/configure.gnu; then
1158 $SHELL $ac_srcdir/configure.gnu --help=recursive
1159 elif test -f $ac_srcdir/configure; then
1161 $SHELL $ac_srcdir/configure --help=recursive
1162 elif test -f $ac_srcdir/configure.ac ||
1163 test -f $ac_srcdir/configure.in; then
1165 $ac_configure --help
1167 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173 test -n "$ac_init_help" && exit 0
1174 if $ac_init_version; then
1176 llvm configure 1.6cvs
1177 generated by GNU Autoconf 2.59
1179 Copyright (C) 2003 Free Software Foundation, Inc.
1180 This configure script is free software; the Free Software Foundation
1181 gives unlimited permission to copy, distribute and modify it.
1189 This file contains any messages produced by compilers while
1190 running configure, to aid debugging if configure makes a mistake.
1192 It was created by llvm $as_me 1.6cvs, which was
1193 generated by GNU Autoconf 2.59. Invocation command line was
1204 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1205 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1206 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1207 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1208 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1210 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1211 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1213 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1214 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1215 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1216 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1217 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1218 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1219 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 test -z "$as_dir" && as_dir=.
1228 echo "PATH: $as_dir"
1243 # Keep a trace of the command line.
1244 # Strip out --no-create and --no-recursion so they do not pile up.
1245 # Strip out --silent because we don't want to record it for future runs.
1246 # Also quote any args containing shell meta-characters.
1247 # Make two passes to allow for proper duplicate-argument suppression.
1252 ac_must_keep_next=false
1258 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260 | -silent | --silent | --silen | --sile | --sil)
1262 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1266 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1268 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1269 if test $ac_must_keep_next = true; then
1270 ac_must_keep_next=false # Got value, back to normal.
1273 *=* | --config-cache | -C | -disable-* | --disable-* \
1274 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1275 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1276 | -with-* | --with-* | -without-* | --without-* | --x)
1277 case "$ac_configure_args0 " in
1278 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1281 -* ) ac_must_keep_next=true ;;
1284 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1285 # Get rid of the leading space.
1291 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1292 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1294 # When interrupted or exit'd, cleanup temporary files, and complete
1295 # config.log. We remove comments because anyway the quotes in there
1296 # would cause problems or look ugly.
1297 # WARNING: Be sure not to use single quotes in there, as some shells,
1298 # such as our DU 5.0 friend, will then `close' the trap.
1299 trap 'exit_status=$?
1300 # Save into config.log some information that might help in debugging.
1305 ## ---------------- ##
1306 ## Cache variables. ##
1307 ## ---------------- ##
1310 # The following way of writing the cache mishandles newlines in values,
1313 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1316 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1328 ## ----------------- ##
1329 ## Output variables. ##
1330 ## ----------------- ##
1333 for ac_var in $ac_subst_vars
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1340 if test -n "$ac_subst_files"; then
1347 for ac_var in $ac_subst_files
1349 eval ac_val=$`echo $ac_var`
1350 echo "$ac_var='"'"'$ac_val'"'"'"
1355 if test -s confdefs.h; then
1362 sed "/^$/d" confdefs.h | sort
1365 test "$ac_signal" != 0 &&
1366 echo "$as_me: caught signal $ac_signal"
1367 echo "$as_me: exit $exit_status"
1369 rm -f core *.core &&
1370 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1373 for ac_signal in 1 2 13 15; do
1374 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1379 rm -rf conftest* confdefs.h
1380 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1383 # Predefined preprocessor variables.
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 # Let the site file select an alternate cache file if it wants to.
1411 # Prefer explicitly selected file to automatically selected ones.
1412 if test -z "$CONFIG_SITE"; then
1413 if test "x$prefix" != xNONE; then
1414 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1416 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1419 for ac_site_file in $CONFIG_SITE; do
1420 if test -r "$ac_site_file"; then
1421 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1422 echo "$as_me: loading site script $ac_site_file" >&6;}
1423 sed 's/^/| /' "$ac_site_file" >&5
1428 if test -r "$cache_file"; then
1429 # Some versions of bash will fail to source /dev/null (special
1430 # files actually), so we avoid doing that.
1431 if test -f "$cache_file"; then
1432 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1433 echo "$as_me: loading cache $cache_file" >&6;}
1435 [\\/]* | ?:[\\/]* ) . $cache_file;;
1436 *) . ./$cache_file;;
1440 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1441 echo "$as_me: creating cache $cache_file" >&6;}
1445 # Check that the precious variables saved in the cache have kept the same
1447 ac_cache_corrupted=false
1448 for ac_var in `(set) 2>&1 |
1449 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1450 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1451 eval ac_new_set=\$ac_env_${ac_var}_set
1452 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1453 eval ac_new_val="\$ac_env_${ac_var}_value"
1454 case $ac_old_set,$ac_new_set in
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1460 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1461 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1462 ac_cache_corrupted=: ;;
1465 if test "x$ac_old_val" != "x$ac_new_val"; then
1466 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1467 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1468 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1469 echo "$as_me: former value: $ac_old_val" >&2;}
1470 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1471 echo "$as_me: current value: $ac_new_val" >&2;}
1472 ac_cache_corrupted=:
1475 # Pass precious variables to config.status.
1476 if test "$ac_new_set" = set; then
1478 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1479 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1480 *) ac_arg=$ac_var=$ac_new_val ;;
1482 case " $ac_configure_args " in
1483 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1484 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488 if $ac_cache_corrupted; then
1489 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493 { (exit 1); exit 1; }; }
1497 ac_cpp='$CPP $CPPFLAGS'
1498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1529 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1538 for ac_dir in autoconf $srcdir/autoconf; do
1539 if test -f $ac_dir/install-sh; then
1541 ac_install_sh="$ac_aux_dir/install-sh -c"
1543 elif test -f $ac_dir/install.sh; then
1545 ac_install_sh="$ac_aux_dir/install.sh -c"
1547 elif test -f $ac_dir/shtool; then
1549 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 if test -z "$ac_aux_dir"; then
1554 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1555 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1556 { (exit 1); exit 1; }; }
1558 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1559 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1560 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563 if test ${srcdir} != "." ; then
1564 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1565 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1566 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1567 { (exit 1); exit 1; }; }
1571 for i in `ls ${srcdir}/projects`
1573 if test -d ${srcdir}/projects/${i} ; then
1578 subdirs="$subdirs projects/sample"
1582 subdirs="$subdirs projects/Stacker"
1586 subdirs="$subdirs projects/llvm-test"
1590 subdirs="$subdirs projects/llvm-reopt"
1594 subdirs="$subdirs projects/llvm-gcc"
1598 subdirs="$subdirs projects/llvm-java"
1602 subdirs="$subdirs projects/llvm-tv"
1606 subdirs="$subdirs projects/llvm-poolalloc"
1609 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1610 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671 echo "$as_me:$LINENO: checking target system type" >&5
1672 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1673 if test "${ac_cv_target+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 ac_cv_target_alias=$target_alias
1677 test "x$ac_cv_target_alias" = "x" &&
1678 ac_cv_target_alias=$ac_cv_host_alias
1679 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1680 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1681 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1682 { (exit 1); exit 1; }; }
1685 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1686 echo "${ECHO_T}$ac_cv_target" >&6
1687 target=$ac_cv_target
1688 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1689 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1690 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693 # The aliases save the names the user supplied, while $host etc.
1694 # will get canonicalized.
1695 test -n "$target_alias" &&
1696 test "$program_prefix$program_suffix$program_transform_name" = \
1698 program_prefix=${target_alias}-
1700 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1701 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1702 if test "${llvm_cv_os_type+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 llvm_cv_os_type="AIX"
1708 llvm_cv_platform_type="Unix" ;;
1710 llvm_cv_os_type="Cygwin"
1711 llvm_cv_platform_type="Unix" ;;
1713 llvm_cv_os_type="Darwin"
1714 llvm_cv_platform_type="Unix" ;;
1716 llvm_cv_os_type="FreeBSD"
1717 llvm_cv_platform_type="Unix" ;;
1719 llvm_cv_os_type="HP-UX"
1720 llvm_cv_platform_type="Unix" ;;
1722 llvm_cv_os_type="Interix"
1723 llvm_cv_platform_type="Unix" ;;
1725 llvm_cv_os_type="Linux"
1726 llvm_cv_platform_type="Unix" ;;
1728 llvm_cv_os_type="SunOS"
1729 llvm_cv_platform_type="Unix" ;;
1731 llvm_cv_os_type="Win32"
1732 llvm_cv_platform_type="Win32" ;;
1734 llvm_cv_os_type="MingW"
1735 llvm_cv_platform_type="Win32" ;;
1737 llvm_cv_os_type="Unknown"
1738 llvm_cv_platform_type="Unknown" ;;
1741 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1742 echo "${ECHO_T}$llvm_cv_os_type" >&6
1744 if test "$llvm_cv_os_type" = "Unknown" ; then
1745 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1746 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1747 { (exit 1); exit 1; }; }
1753 case $llvm_cv_platform_type in
1756 cat >>confdefs.h <<\_ACEOF
1757 #define LLVM_ON_UNIX 1
1767 cat >>confdefs.h <<\_ACEOF
1768 #define LLVM_ON_WIN32 1
1778 echo "$as_me:$LINENO: checking target architecture" >&5
1779 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1780 if test "${llvm_cv_target_arch+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 i?86-*) llvm_cv_target_arch="x86" ;;
1785 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1786 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1787 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1788 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1789 ia64-*) llvm_cv_target_arch="IA64" ;;
1790 *) llvm_cv_target_arch="Unknown" ;;
1793 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1794 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1796 if test "$llvm_cv_target_arch" = "Unknown" ; then
1797 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1798 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1801 ARCH=$llvm_cv_target_arch
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 if test -n "$ac_tool_prefix"; then
1810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1846 if test -z "$ac_cv_prog_CC"; then
1848 # Extract the first word of "gcc", so it can be a program name with args.
1849 set dummy gcc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="gcc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875 if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877 echo "${ECHO_T}$ac_ct_CC" >&6
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1888 if test -z "$CC"; then
1889 if test -n "$ac_tool_prefix"; then
1890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1891 set dummy ${ac_tool_prefix}cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 if test -n "$CC"; then
1898 ac_cv_prog_CC="$CC" # Let the user override the test.
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_CC="${ac_tool_prefix}cc"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 if test -n "$CC"; then
1918 echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1926 if test -z "$ac_cv_prog_CC"; then
1928 # Extract the first word of "cc", so it can be a program name with args.
1929 set dummy cc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$ac_ct_CC"; then
1936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_ac_ct_CC="cc"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1969 if test -z "$CC"; then
1970 # Extract the first word of "cc", so it can be a program name with args.
1971 set dummy cc; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1989 ac_prog_rejected=yes
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test $ac_prog_rejected = yes; then
2000 # We found a bogon in the path, so make sure we never use it.
2001 set dummy $ac_cv_prog_CC
2003 if test $# != 0; then
2004 # We chose a different compiler from the bogus one.
2005 # However, it has the same basename, so the bogon will be chosen
2006 # first if we set CC to just the basename; use the full file name.
2008 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2014 if test -n "$CC"; then
2015 echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2023 if test -z "$CC"; then
2024 if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 if test -n "$CC"; then
2055 echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2062 test -n "$CC" && break
2065 if test -z "$CC"; then
2069 # Extract the first word of "$ac_prog", so it can be a program name with args.
2070 set dummy $ac_prog; ac_word=$2
2071 echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086 ac_cv_prog_ac_ct_CC="$ac_prog"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096 if test -n "$ac_ct_CC"; then
2097 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098 echo "${ECHO_T}$ac_ct_CC" >&6
2100 echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6
2104 test -n "$ac_ct_CC" && break
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117 { (exit 1); exit 1; }; }
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO:" \
2121 "checking for C compiler version" >&5
2122 ac_compiler=`set X $ac_compile; echo $2`
2123 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2124 (eval $ac_compiler --version </dev/null >&5) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2129 (eval $ac_compiler -v </dev/null >&5) 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2134 (eval $ac_compiler -V </dev/null >&5) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2139 cat >conftest.$ac_ext <<_ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h. */
2154 ac_clean_files_save=$ac_clean_files
2155 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2156 # Try to create an executable without -o first, disregard a.out.
2157 # It will help us diagnose broken compilers, and finding out an intuition
2159 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2160 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2161 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2162 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2163 (eval $ac_link_default) 2>&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; then
2167 # Find the output, starting from the most likely. This scheme is
2168 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2171 # Be careful to initialize this variable, since it used to be cached.
2172 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2174 # b.out is created by i960 compilers.
2175 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2177 test -f "$ac_file" || continue
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2182 # This is the source file.
2185 # We found the default executable, but exeext='' is most
2189 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190 # FIXME: I believe we export ac_cv_exeext for Libtool,
2191 # but it would be cool to find out if it's true. Does anybody
2192 # maintain Libtool? --akim.
2200 echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2203 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&2;}
2207 { (exit 77); exit 77; }; }
2210 ac_exeext=$ac_cv_exeext
2211 echo "$as_me:$LINENO: result: $ac_file" >&5
2212 echo "${ECHO_T}$ac_file" >&6
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2217 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2218 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2219 # If not cross compiling, check that we can run a simple program.
2220 if test "$cross_compiling" != yes; then
2221 if { ac_try='./$ac_file'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2229 if test "$cross_compiling" = maybe; then
2232 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2242 echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6
2245 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2246 ac_clean_files=$ac_clean_files_save
2247 # Check the compiler produces executables we can run. If not, either
2248 # the compiler is broken, or we cross compile.
2249 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2250 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2251 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2252 echo "${ECHO_T}$cross_compiling" >&6
2254 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2255 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2257 (eval $ac_link) 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; then
2261 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2262 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2263 # work properly (i.e., refer to `conftest.exe'), while it won't with
2265 for ac_file in conftest.exe conftest conftest.*; do
2266 test -f "$ac_file" || continue
2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2283 rm -f conftest$ac_cv_exeext
2284 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2285 echo "${ECHO_T}$ac_cv_exeext" >&6
2287 rm -f conftest.$ac_ext
2288 EXEEXT=$ac_cv_exeext
2290 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2291 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2292 if test "${ac_cv_objext+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 rm -f conftest.o conftest.obj
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; then
2316 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6
2338 OBJEXT=$ac_cv_objext
2340 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.$ac_ext <<_ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2363 rm -f conftest.$ac_objext
2364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365 (eval $ac_compile) 2>conftest.er1
2367 grep -v '^ *+' conftest.er1 >conftest.err
2369 cat conftest.err >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } &&
2372 { ac_try='test -z "$ac_c_werror_flag"
2373 || test ! -s conftest.err'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; } &&
2379 { ac_try='test -s conftest.$ac_objext'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; }; then
2387 echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2393 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2396 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2397 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2398 GCC=`test $ac_compiler_gnu = yes && echo yes`
2399 ac_test_CFLAGS=${CFLAGS+set}
2400 ac_save_CFLAGS=$CFLAGS
2402 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2403 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_g+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 cat >conftest.$ac_ext <<_ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2426 grep -v '^ *+' conftest.er1 >conftest.err
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag"
2432 || test ! -s conftest.err'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2454 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2455 if test "$ac_test_CFLAGS" = set; then
2456 CFLAGS=$ac_save_CFLAGS
2457 elif test $ac_cv_prog_cc_g = yes; then
2458 if test "$GCC" = yes; then
2464 if test "$GCC" = yes; then
2470 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2471 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2472 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 ac_cv_prog_cc_stdc=no
2477 cat >conftest.$ac_ext <<_ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2485 #include <sys/types.h>
2486 #include <sys/stat.h>
2487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2488 struct buf { int x; };
2489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2490 static char *e (p, i)
2496 static char *f (char * (*g) (char **, int), char **p, ...)
2501 s = g (p, va_arg (v,int));
2506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2507 function prototypes and stuff, but not '\xHH' hex character constants.
2508 These don't provoke an error unfortunately, instead are silently treated
2509 as 'x'. The following induces an error, until -std1 is added to get
2510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2511 array size at least. It's necessary to write '\x00'==0 to get something
2512 that's true only with -std1. */
2513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2515 int test (int i, double x);
2516 struct s1 {int (*f) (int a);};
2517 struct s2 {int (*f) (double a);};
2518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2524 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2529 # Don't try gcc -ansi; that turns off useful extensions and
2530 # breaks some systems' header files.
2531 # AIX -qlanglvl=ansi
2532 # Ultrix and OSF/1 -std1
2533 # HP-UX 10.20 and later -Ae
2534 # HP-UX older versions -Aa -D_HPUX_SOURCE
2535 # SVR4 -Xc -D__EXTENSIONS__
2536 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2538 CC="$ac_save_CC $ac_arg"
2539 rm -f conftest.$ac_objext
2540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2541 (eval $ac_compile) 2>conftest.er1
2543 grep -v '^ *+' conftest.er1 >conftest.err
2545 cat conftest.err >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } &&
2548 { ac_try='test -z "$ac_c_werror_flag"
2549 || test ! -s conftest.err'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; } &&
2555 { ac_try='test -s conftest.$ac_objext'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2561 ac_cv_prog_cc_stdc=$ac_arg
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2568 rm -f conftest.err conftest.$ac_objext
2570 rm -f conftest.$ac_ext conftest.$ac_objext
2575 case "x$ac_cv_prog_cc_stdc" in
2577 echo "$as_me:$LINENO: result: none needed" >&5
2578 echo "${ECHO_T}none needed" >&6 ;;
2580 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2581 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2582 CC="$CC $ac_cv_prog_cc_stdc" ;;
2585 # Some people use a C++ compiler to compile C. Since we use `exit',
2586 # in C++ we need to declare it. In case someone uses the same compiler
2587 # for both compiling C and C++ we need to have the C++ compiler decide
2588 # the declaration of exit, since it's the most demanding environment.
2589 cat >conftest.$ac_ext <<_ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2598 grep -v '^ *+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 for ac_declaration in \
2618 'extern "C" void std::exit (int) throw (); using std::exit;' \
2619 'extern "C" void std::exit (int); using std::exit;' \
2620 'extern "C" void exit (int) throw ();' \
2621 'extern "C" void exit (int);' \
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>conftest.er1
2644 grep -v '^ *+' conftest.er1 >conftest.err
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -z "$ac_c_werror_flag"
2650 || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 rm -f conftest.$ac_objext
2686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687 (eval $ac_compile) 2>conftest.er1
2689 grep -v '^ *+' conftest.er1 >conftest.err
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 { ac_try='test -z "$ac_c_werror_flag"
2695 || test ! -s conftest.err'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2709 echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716 if test -n "$ac_declaration"; then
2717 echo '#ifdef __cplusplus' >>confdefs.h
2718 echo $ac_declaration >>confdefs.h
2719 echo '#endif' >>confdefs.h
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2736 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2737 if test "${ac_cv_c_bigendian+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 # See if sys/param.h defines the BYTE_ORDER macro.
2741 cat >conftest.$ac_ext <<_ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2747 #include <sys/types.h>
2748 #include <sys/param.h>
2753 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>conftest.er1
2765 grep -v '^ *+' conftest.er1 >conftest.err
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -z "$ac_c_werror_flag"
2771 || test ! -s conftest.err'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; } &&
2777 { ac_try='test -s conftest.$ac_objext'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 # It does; now see whether it defined to BIG_ENDIAN or not.
2784 cat >conftest.$ac_ext <<_ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2790 #include <sys/types.h>
2791 #include <sys/param.h>
2796 #if BYTE_ORDER != BIG_ENDIAN
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806 (eval $ac_compile) 2>conftest.er1
2808 grep -v '^ *+' conftest.er1 >conftest.err
2810 cat conftest.err >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -z "$ac_c_werror_flag"
2814 || test ! -s conftest.err'
2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; } &&
2820 { ac_try='test -s conftest.$ac_objext'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; }; then
2826 ac_cv_c_bigendian=yes
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2831 ac_cv_c_bigendian=no
2833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2838 # It does not; compile a test program.
2839 if test "$cross_compiling" = yes; then
2840 # try to guess the endianness by grepping values into an object file
2841 ac_cv_c_bigendian=unknown
2842 cat >conftest.$ac_ext <<_ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2848 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2849 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2850 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2851 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2852 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2853 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2857 _ascii (); _ebcdic ();
2862 rm -f conftest.$ac_objext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864 (eval $ac_compile) 2>conftest.er1
2866 grep -v '^ *+' conftest.er1 >conftest.err
2868 cat conftest.err >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } &&
2871 { ac_try='test -z "$ac_c_werror_flag"
2872 || test ! -s conftest.err'
2873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; } &&
2878 { ac_try='test -s conftest.$ac_objext'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; }; then
2884 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2885 ac_cv_c_bigendian=yes
2887 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2888 if test "$ac_cv_c_bigendian" = unknown; then
2889 ac_cv_c_bigendian=no
2891 # finding both strings is unlikely to happen, but who knows?
2892 ac_cv_c_bigendian=unknown
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 cat >conftest.$ac_ext <<_ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2911 /* Are we little or big endian? From Harbison&Steele. */
2915 char c[sizeof (long)];
2918 exit (u.c[sizeof (long) - 1] == 1);
2921 rm -f conftest$ac_exeext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2923 (eval $ac_link) 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_c_bigendian=no
2934 echo "$as_me: program exited with status $ac_status" >&5
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2939 ac_cv_c_bigendian=yes
2941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2946 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2947 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2948 case $ac_cv_c_bigendian in
2956 { { echo "$as_me:$LINENO: error: unknown endianness
2957 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2958 echo "$as_me: error: unknown endianness
2959 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2960 { (exit 1); exit 1; }; } ;;
2965 # Check whether --enable-optimized or --disable-optimized was given.
2966 if test "${enable_optimized+set}" = set; then
2967 enableval="$enable_optimized"
2972 if test ${enableval} = "no" ; then
2976 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2980 # Check whether --enable-jit or --disable-jit was given.
2981 if test "${enable_jit+set}" = set; then
2982 enableval="$enable_jit"
2987 if test ${enableval} = "no"
2992 case "$llvm_cv_target_arch" in
2993 x86) JIT=TARGET_HAS_JIT=1
2995 Sparc) JIT=TARGET_HAS_JIT=1
2997 PowerPC) JIT=TARGET_HAS_JIT=1
3001 Alpha) JIT=TARGET_HAS_JIT=1
3010 # Check whether --enable-doxygen or --disable-doxygen was given.
3011 if test "${enable_doxygen+set}" = set; then
3012 enableval="$enable_doxygen"
3017 case "$enableval" in
3018 yes) ENABLE_DOXYGEN=1
3020 no) ENABLE_DOXYGEN=0
3022 default) ENABLE_DOXYGEN=0
3024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3025 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3026 { (exit 1); exit 1; }; } ;;
3029 # Check whether --enable-threads or --disable-threads was given.
3030 if test "${enable_threads+set}" = set; then
3031 enableval="$enable_threads"
3036 case "$enableval" in
3037 yes) ENABLE_THREADS=1
3039 no) ENABLE_THREADS=0
3041 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3042 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3043 { (exit 1); exit 1; }; } ;;
3046 cat >>confdefs.h <<_ACEOF
3047 #define ENABLE_THREADS $ENABLE_THREADS
3052 # Check whether --enable-targets or --disable-targets was given.
3053 if test "${enable_targets+set}" = set; then
3054 enableval="$enable_targets"
3059 case "$enableval" in
3060 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3062 case "$llvm_cv_target_arch" in
3063 x86) TARGETS_TO_BUILD="X86" ;;
3064 x86_64) TARGETS_TO_BUILD="X86" ;;
3065 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3066 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3067 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3068 IA64) TARGETS_TO_BUILD="IA64" ;;
3069 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3070 echo "$as_me: error: Can not set target to build" >&2;}
3071 { (exit 1); exit 1; }; } ;;
3074 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3076 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3077 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3078 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3079 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3080 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3081 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3082 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3083 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3084 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3085 { (exit 1); exit 1; }; } ;;
3090 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3091 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3095 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3096 if test "${with_llvmgccdir+set}" = set; then
3097 withval="$with_llvmgccdir"
3103 default) WITH_LLVMGCCDIR=default ;;
3104 /*) WITH_LLVMGCCDIR=$withval ;;
3105 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3106 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3107 { (exit 1); exit 1; }; } ;;
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3118 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3119 # On Suns, sometimes $CPP names a directory.
3120 if test -n "$CPP" && test -d "$CPP"; then
3123 if test -z "$CPP"; then
3124 if test "${ac_cv_prog_CPP+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 # Double quotes because CPP needs to be expanded
3128 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3131 for ac_c_preproc_warn_flag in '' yes
3133 # Use a header file that comes with gcc, so configuring glibc
3134 # with a fresh cross-compiler works.
3135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3136 # <limits.h> exists even on freestanding compilers.
3137 # On the NeXT, cc -E runs the code through the compiler's parser,
3138 # not just through cpp. "Syntax error" is here to catch this case.
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3146 # include <limits.h>
3148 # include <assert.h>
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } >/dev/null; then
3160 if test -s conftest.err; then
3161 ac_cpp_err=$ac_c_preproc_warn_flag
3162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3169 if test -z "$ac_cpp_err"; then
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 # Broken: fails on valid input.
3178 rm -f conftest.err conftest.$ac_ext
3180 # OK, works on sane cases. Now check whether non-existent headers
3181 # can be detected and how.
3182 cat >conftest.$ac_ext <<_ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3188 #include <ac_nonexistent.h>
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev/null; then
3198 if test -s conftest.err; then
3199 ac_cpp_err=$ac_c_preproc_warn_flag
3200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3207 if test -z "$ac_cpp_err"; then
3208 # Broken: success on invalid input.
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 # Passes both tests.
3218 rm -f conftest.err conftest.$ac_ext
3221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3222 rm -f conftest.err conftest.$ac_ext
3223 if $ac_preproc_ok; then
3235 echo "$as_me:$LINENO: result: $CPP" >&5
3236 echo "${ECHO_T}$CPP" >&6
3238 for ac_c_preproc_warn_flag in '' yes
3240 # Use a header file that comes with gcc, so configuring glibc
3241 # with a fresh cross-compiler works.
3242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243 # <limits.h> exists even on freestanding compilers.
3244 # On the NeXT, cc -E runs the code through the compiler's parser,
3245 # not just through cpp. "Syntax error" is here to catch this case.
3246 cat >conftest.$ac_ext <<_ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3253 # include <limits.h>
3255 # include <assert.h>
3259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3262 grep -v '^ *+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev/null; then
3267 if test -s conftest.err; then
3268 ac_cpp_err=$ac_c_preproc_warn_flag
3269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3276 if test -z "$ac_cpp_err"; then
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 # Broken: fails on valid input.
3285 rm -f conftest.err conftest.$ac_ext
3287 # OK, works on sane cases. Now check whether non-existent headers
3288 # can be detected and how.
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <ac_nonexistent.h>
3297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } >/dev/null; then
3305 if test -s conftest.err; then
3306 ac_cpp_err=$ac_c_preproc_warn_flag
3307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3314 if test -z "$ac_cpp_err"; then
3315 # Broken: success on invalid input.
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3321 # Passes both tests.
3325 rm -f conftest.err conftest.$ac_ext
3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329 rm -f conftest.err conftest.$ac_ext
3330 if $ac_preproc_ok; then
3333 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3334 See \`config.log' for more details." >&5
3335 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3336 See \`config.log' for more details." >&2;}
3337 { (exit 1); exit 1; }; }
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 if test -n "$ac_tool_prefix"; then
3354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3356 echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358 if test "${ac_cv_prog_CC+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC="$CC" # Let the user override the test.
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 if test -n "$CC"; then
3382 echo "$as_me:$LINENO: result: $CC" >&5
3383 echo "${ECHO_T}$CC" >&6
3385 echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3389 test -n "$CC" && break
3392 if test -z "$CC"; then
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 echo "$as_me:$LINENO: checking for $ac_word" >&5
3399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 if test -n "$ac_ct_CC"; then
3404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_ac_ct_CC="$ac_prog"
3414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423 if test -n "$ac_ct_CC"; then
3424 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3425 echo "${ECHO_T}$ac_ct_CC" >&6
3427 echo "$as_me:$LINENO: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3431 test -n "$ac_ct_CC" && break
3438 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details." >&5
3440 echo "$as_me: error: no acceptable C compiler found in \$PATH
3441 See \`config.log' for more details." >&2;}
3442 { (exit 1); exit 1; }; }
3444 # Provide some information about the compiler.
3445 echo "$as_me:$LINENO:" \
3446 "checking for C compiler version" >&5
3447 ac_compiler=`set X $ac_compile; echo $2`
3448 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3449 (eval $ac_compiler --version </dev/null >&5) 2>&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }
3453 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3454 (eval $ac_compiler -v </dev/null >&5) 2>&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }
3458 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3459 (eval $ac_compiler -V </dev/null >&5) 2>&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }
3464 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3465 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3466 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3487 rm -f conftest.$ac_objext
3488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3489 (eval $ac_compile) 2>conftest.er1
3491 grep -v '^ *+' conftest.er1 >conftest.err
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } &&
3496 { ac_try='test -z "$ac_c_werror_flag"
3497 || test ! -s conftest.err'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; } &&
3503 { ac_try='test -s conftest.$ac_objext'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3520 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3521 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3522 GCC=`test $ac_compiler_gnu = yes && echo yes`
3523 ac_test_CFLAGS=${CFLAGS+set}
3524 ac_save_CFLAGS=$CFLAGS
3526 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3527 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3528 if test "${ac_cv_prog_cc_g+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1 >conftest.err
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try='test -z "$ac_c_werror_flag"
3556 || test ! -s conftest.err'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3577 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3578 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3579 if test "$ac_test_CFLAGS" = set; then
3580 CFLAGS=$ac_save_CFLAGS
3581 elif test $ac_cv_prog_cc_g = yes; then
3582 if test "$GCC" = yes; then
3588 if test "$GCC" = yes; then
3594 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3595 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3596 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 ac_cv_prog_cc_stdc=no
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3609 #include <sys/types.h>
3610 #include <sys/stat.h>
3611 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3612 struct buf { int x; };
3613 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3614 static char *e (p, i)
3620 static char *f (char * (*g) (char **, int), char **p, ...)
3625 s = g (p, va_arg (v,int));
3630 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3631 function prototypes and stuff, but not '\xHH' hex character constants.
3632 These don't provoke an error unfortunately, instead are silently treated
3633 as 'x'. The following induces an error, until -std1 is added to get
3634 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3635 array size at least. It's necessary to write '\x00'==0 to get something
3636 that's true only with -std1. */
3637 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3639 int test (int i, double x);
3640 struct s1 {int (*f) (int a);};
3641 struct s2 {int (*f) (double a);};
3642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3648 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3653 # Don't try gcc -ansi; that turns off useful extensions and
3654 # breaks some systems' header files.
3655 # AIX -qlanglvl=ansi
3656 # Ultrix and OSF/1 -std1
3657 # HP-UX 10.20 and later -Ae
3658 # HP-UX older versions -Aa -D_HPUX_SOURCE
3659 # SVR4 -Xc -D__EXTENSIONS__
3660 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3662 CC="$ac_save_CC $ac_arg"
3663 rm -f conftest.$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665 (eval $ac_compile) 2>conftest.er1
3667 grep -v '^ *+' conftest.er1 >conftest.err
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try='test -z "$ac_c_werror_flag"
3673 || test ! -s conftest.err'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; } &&
3679 { ac_try='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_prog_cc_stdc=$ac_arg
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3692 rm -f conftest.err conftest.$ac_objext
3694 rm -f conftest.$ac_ext conftest.$ac_objext
3699 case "x$ac_cv_prog_cc_stdc" in
3701 echo "$as_me:$LINENO: result: none needed" >&5
3702 echo "${ECHO_T}none needed" >&6 ;;
3704 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3705 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3706 CC="$CC $ac_cv_prog_cc_stdc" ;;
3709 # Some people use a C++ compiler to compile C. Since we use `exit',
3710 # in C++ we need to declare it. In case someone uses the same compiler
3711 # for both compiling C and C++ we need to have the C++ compiler decide
3712 # the declaration of exit, since it's the most demanding environment.
3713 cat >conftest.$ac_ext <<_ACEOF
3718 rm -f conftest.$ac_objext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720 (eval $ac_compile) 2>conftest.er1
3722 grep -v '^ *+' conftest.er1 >conftest.err
3724 cat conftest.err >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } &&
3727 { ac_try='test -z "$ac_c_werror_flag"
3728 || test ! -s conftest.err'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; } &&
3734 { ac_try='test -s conftest.$ac_objext'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3740 for ac_declaration in \
3742 'extern "C" void std::exit (int) throw (); using std::exit;' \
3743 'extern "C" void std::exit (int); using std::exit;' \
3744 'extern "C" void exit (int) throw ();' \
3745 'extern "C" void exit (int);' \
3748 cat >conftest.$ac_ext <<_ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>conftest.er1
3768 grep -v '^ *+' conftest.er1 >conftest.err
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_c_werror_flag"
3774 || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try='test -s conftest.$ac_objext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3794 cat >conftest.$ac_ext <<_ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3809 rm -f conftest.$ac_objext
3810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3811 (eval $ac_compile) 2>conftest.er1
3813 grep -v '^ *+' conftest.er1 >conftest.err
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } &&
3818 { ac_try='test -z "$ac_c_werror_flag"
3819 || test ! -s conftest.err'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; } &&
3825 { ac_try='test -s conftest.$ac_objext'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; }; then
3833 echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3840 if test -n "$ac_declaration"; then
3841 echo '#ifdef __cplusplus' >>confdefs.h
3842 echo $ac_declaration >>confdefs.h
3843 echo '#endif' >>confdefs.h
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 ac_cpp='$CXXCPP $CPPFLAGS'
3860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3863 if test -n "$ac_tool_prefix"; then
3864 for ac_prog in $CCC g++
3866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_CXX+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 if test -n "$CXX"; then
3874 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 if test -n "$CXX"; then
3894 echo "$as_me:$LINENO: result: $CXX" >&5
3895 echo "${ECHO_T}$CXX" >&6
3897 echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3901 test -n "$CXX" && break
3904 if test -z "$CXX"; then
3906 for ac_prog in $CCC g++
3908 # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 set dummy $ac_prog; ac_word=$2
3910 echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 if test -n "$ac_ct_CXX"; then
3916 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_ac_ct_CXX="$ac_prog"
3926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3935 if test -n "$ac_ct_CXX"; then
3936 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3937 echo "${ECHO_T}$ac_ct_CXX" >&6
3939 echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3943 test -n "$ac_ct_CXX" && break
3945 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3951 # Provide some information about the compiler.
3952 echo "$as_me:$LINENO:" \
3953 "checking for C++ compiler version" >&5
3954 ac_compiler=`set X $ac_compile; echo $2`
3955 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3956 (eval $ac_compiler --version </dev/null >&5) 2>&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }
3960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3961 (eval $ac_compiler -v </dev/null >&5) 2>&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }
3965 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3966 (eval $ac_compiler -V </dev/null >&5) 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }
3971 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3972 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3973 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3994 rm -f conftest.$ac_objext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996 (eval $ac_compile) 2>conftest.er1
3998 grep -v '^ *+' conftest.er1 >conftest.err
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try='test -z "$ac_cxx_werror_flag"
4004 || test ! -s conftest.err'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; } &&
4010 { ac_try='test -s conftest.$ac_objext'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; }; then
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4027 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4028 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4029 GXX=`test $ac_compiler_gnu = yes && echo yes`
4030 ac_test_CXXFLAGS=${CXXFLAGS+set}
4031 ac_save_CXXFLAGS=$CXXFLAGS
4033 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4034 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4035 if test "${ac_cv_prog_cxx_g+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 cat >conftest.$ac_ext <<_ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4053 rm -f conftest.$ac_objext
4054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4055 (eval $ac_compile) 2>conftest.er1
4057 grep -v '^ *+' conftest.er1 >conftest.err
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try='test -z "$ac_cxx_werror_flag"
4063 || test ! -s conftest.err'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
4075 ac_cv_prog_cxx_g=yes
4077 echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4084 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4085 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4086 if test "$ac_test_CXXFLAGS" = set; then
4087 CXXFLAGS=$ac_save_CXXFLAGS
4088 elif test $ac_cv_prog_cxx_g = yes; then
4089 if test "$GXX" = yes; then
4095 if test "$GXX" = yes; then
4101 for ac_declaration in \
4103 'extern "C" void std::exit (int) throw (); using std::exit;' \
4104 'extern "C" void std::exit (int); using std::exit;' \
4105 'extern "C" void exit (int) throw ();' \
4106 'extern "C" void exit (int);' \
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4125 rm -f conftest.$ac_objext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4127 (eval $ac_compile) 2>conftest.er1
4129 grep -v '^ *+' conftest.er1 >conftest.err
4131 cat conftest.err >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } &&
4134 { ac_try='test -z "$ac_cxx_werror_flag"
4135 || test ! -s conftest.err'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4170 rm -f conftest.$ac_objext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172 (eval $ac_compile) 2>conftest.er1
4174 grep -v '^ *+' conftest.er1 >conftest.err
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_cxx_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4201 if test -n "$ac_declaration"; then
4202 echo '#ifdef __cplusplus' >>confdefs.h
4203 echo $ac_declaration >>confdefs.h
4204 echo '#endif' >>confdefs.h
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213 echo "$as_me:$LINENO: checking " >&5
4214 echo $ECHO_N "checking ... $ECHO_C" >&6
4215 if test "${ac_cv_has_flex+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 for ac_prog in flex lex
4220 # Extract the first word of "$ac_prog", so it can be a program name with args.
4221 set dummy $ac_prog; ac_word=$2
4222 echo "$as_me:$LINENO: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224 if test "${ac_cv_prog_LEX+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 if test -n "$LEX"; then
4228 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_LEX="$ac_prog"
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 if test -n "$LEX"; then
4248 echo "$as_me:$LINENO: result: $LEX" >&5
4249 echo "${ECHO_T}$LEX" >&6
4251 echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4255 test -n "$LEX" && break
4257 test -n "$LEX" || LEX=":"
4259 if test -z "$LEXLIB"
4261 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4262 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4263 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 ac_check_lib_save_LIBS=$LIBS
4268 cat >conftest.$ac_ext <<_ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4275 /* Override any gcc2 internal prototype to avoid an error. */
4279 /* We use char because int might match the return type of a gcc2
4280 builtin and then its argument prototype would still apply. */
4290 rm -f conftest.$ac_objext conftest$ac_exeext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292 (eval $ac_link) 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest$ac_exeext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_cv_lib_fl_yywrap=yes
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_cv_lib_fl_yywrap=no
4319 rm -f conftest.err conftest.$ac_objext \
4320 conftest$ac_exeext conftest.$ac_ext
4321 LIBS=$ac_check_lib_save_LIBS
4323 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4324 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4325 if test $ac_cv_lib_fl_yywrap = yes; then
4328 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4329 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4330 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 ac_check_lib_save_LIBS=$LIBS
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4342 /* Override any gcc2 internal prototype to avoid an error. */
4346 /* We use char because int might match the return type of a gcc2
4347 builtin and then its argument prototype would still apply. */
4357 rm -f conftest.$ac_objext conftest$ac_exeext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4359 (eval $ac_link) 2>conftest.er1
4361 grep -v '^ *+' conftest.er1 >conftest.err
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try='test -z "$ac_c_werror_flag"
4367 || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest$ac_exeext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_lib_l_yywrap=yes
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4384 ac_cv_lib_l_yywrap=no
4386 rm -f conftest.err conftest.$ac_objext \
4387 conftest$ac_exeext conftest.$ac_ext
4388 LIBS=$ac_check_lib_save_LIBS
4390 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4391 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4392 if test $ac_cv_lib_l_yywrap = yes; then
4400 if test "x$LEX" != "x:"; then
4401 echo "$as_me:$LINENO: checking lex output file root" >&5
4402 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4403 if test "${ac_cv_prog_lex_root+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 # The minimal lex program is just a single line: %%. But some broken lexes
4407 # (Solaris, I think it was) want two %% lines, so accommodate them.
4408 cat >conftest.l <<_ACEOF
4412 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4413 (eval $LEX conftest.l) 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }
4417 if test -f lex.yy.c; then
4418 ac_cv_prog_lex_root=lex.yy
4419 elif test -f lexyy.c; then
4420 ac_cv_prog_lex_root=lexyy
4422 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4423 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4424 { (exit 1); exit 1; }; }
4427 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4428 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4430 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4432 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4433 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4434 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 # POSIX says lex can declare yytext either as a pointer or an array; the
4438 # default is implementation-dependent. Figure out which it is, since
4439 # not all implementations provide the %pointer and %array declarations.
4440 ac_cv_prog_lex_yytext_pointer=no
4441 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4443 LIBS="$LIBS $LEXLIB"
4444 cat >conftest.$ac_ext <<_ACEOF
4445 `cat $LEX_OUTPUT_ROOT.c`
4447 rm -f conftest.$ac_objext conftest$ac_exeext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4449 (eval $ac_link) 2>conftest.er1
4451 grep -v '^ *+' conftest.er1 >conftest.err
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -z "$ac_c_werror_flag"
4457 || test ! -s conftest.err'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; } &&
4463 { ac_try='test -s conftest$ac_exeext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_cv_prog_lex_yytext_pointer=yes
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4475 rm -f conftest.err conftest.$ac_objext \
4476 conftest$ac_exeext conftest.$ac_ext
4478 rm -f "${LEX_OUTPUT_ROOT}.c"
4481 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4482 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4483 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4485 cat >>confdefs.h <<\_ACEOF
4486 #define YYTEXT_POINTER 1
4494 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4495 echo "${ECHO_T}$ac_cv_has_flex" >&6
4496 if test "$LEX" != "flex"; then
4497 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4498 echo "$as_me: error: flex not found but required" >&2;}
4499 { (exit 1); exit 1; }; }
4505 echo "$as_me:$LINENO: checking " >&5
4506 echo $ECHO_N "checking ... $ECHO_C" >&6
4507 if test "${llvm_cv_has_bison+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 for ac_prog in 'bison -y' byacc
4512 # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy $ac_prog; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_prog_YACC+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 if test -n "$YACC"; then
4520 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_prog_YACC="$ac_prog"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 YACC=$ac_cv_prog_YACC
4539 if test -n "$YACC"; then
4540 echo "$as_me:$LINENO: result: $YACC" >&5
4541 echo "${ECHO_T}$YACC" >&6
4543 echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4547 test -n "$YACC" && break
4549 test -n "$YACC" || YACC="yacc"
4552 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4553 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4554 if test "$YACC" != "bison -y"; then
4555 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4556 echo "$as_me: error: bison not found but required" >&2;}
4557 { (exit 1); exit 1; }; }
4563 echo "$as_me:$LINENO: checking for GNU make" >&5
4564 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4565 if test "${llvm_cv_gnu_make_command+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 llvm_cv_gnu_make_command=''
4569 for a in "$MAKE" make gmake gnumake ; do
4570 if test -z "$a" ; then continue ; fi ;
4571 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4573 llvm_cv_gnu_make_command=$a ;
4578 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4579 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4580 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4584 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4585 echo "${ECHO_T}\"Not found\"" >&6;
4589 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4590 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4592 if test "$LN_S" = "ln -s"; then
4593 echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6
4596 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4597 echo "${ECHO_T}no, using $LN_S" >&6
4600 # Extract the first word of "cmp", so it can be a program name with args.
4601 set dummy cmp; ac_word=$2
4602 echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4604 if test "${ac_cv_path_CMP+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4632 if test -n "$CMP"; then
4633 echo "$as_me:$LINENO: result: $CMP" >&5
4634 echo "${ECHO_T}$CMP" >&6
4636 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4640 # Extract the first word of "cp", so it can be a program name with args.
4641 set dummy cp; ac_word=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_path_CP+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4672 if test -n "$CP"; then
4673 echo "$as_me:$LINENO: result: $CP" >&5
4674 echo "${ECHO_T}$CP" >&6
4676 echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4680 # Extract the first word of "date", so it can be a program name with args.
4681 set dummy date; ac_word=$2
4682 echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4684 if test "${ac_cv_path_DATE+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4710 DATE=$ac_cv_path_DATE
4712 if test -n "$DATE"; then
4713 echo "$as_me:$LINENO: result: $DATE" >&5
4714 echo "${ECHO_T}$DATE" >&6
4716 echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6
4720 # Extract the first word of "find", so it can be a program name with args.
4721 set dummy find; ac_word=$2
4722 echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724 if test "${ac_cv_path_FIND+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4750 FIND=$ac_cv_path_FIND
4752 if test -n "$FIND"; then
4753 echo "$as_me:$LINENO: result: $FIND" >&5
4754 echo "${ECHO_T}$FIND" >&6
4756 echo "$as_me:$LINENO: result: no" >&5
4757 echo "${ECHO_T}no" >&6
4760 # Extract the first word of "grep", so it can be a program name with args.
4761 set dummy grep; ac_word=$2
4762 echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764 if test "${ac_cv_path_GREP+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4790 GREP=$ac_cv_path_GREP
4792 if test -n "$GREP"; then
4793 echo "$as_me:$LINENO: result: $GREP" >&5
4794 echo "${ECHO_T}$GREP" >&6
4796 echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4800 # Extract the first word of "mkdir", so it can be a program name with args.
4801 set dummy mkdir; ac_word=$2
4802 echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804 if test "${ac_cv_path_MKDIR+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4830 MKDIR=$ac_cv_path_MKDIR
4832 if test -n "$MKDIR"; then
4833 echo "$as_me:$LINENO: result: $MKDIR" >&5
4834 echo "${ECHO_T}$MKDIR" >&6
4836 echo "$as_me:$LINENO: result: no" >&5
4837 echo "${ECHO_T}no" >&6
4840 # Extract the first word of "mv", so it can be a program name with args.
4841 set dummy mv; ac_word=$2
4842 echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4844 if test "${ac_cv_path_MV+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4872 if test -n "$MV"; then
4873 echo "$as_me:$LINENO: result: $MV" >&5
4874 echo "${ECHO_T}$MV" >&6
4876 echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6
4880 if test -n "$ac_tool_prefix"; then
4881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4883 echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885 if test "${ac_cv_prog_RANLIB+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 if test -n "$RANLIB"; then
4889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 RANLIB=$ac_cv_prog_RANLIB
4908 if test -n "$RANLIB"; then
4909 echo "$as_me:$LINENO: result: $RANLIB" >&5
4910 echo "${ECHO_T}$RANLIB" >&6
4912 echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6
4917 if test -z "$ac_cv_prog_RANLIB"; then
4918 ac_ct_RANLIB=$RANLIB
4919 # Extract the first word of "ranlib", so it can be a program name with args.
4920 set dummy ranlib; ac_word=$2
4921 echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 if test -n "$ac_ct_RANLIB"; then
4927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_ac_ct_RANLIB="ranlib"
4937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4947 if test -n "$ac_ct_RANLIB"; then
4948 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4949 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4951 echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4955 RANLIB=$ac_ct_RANLIB
4957 RANLIB="$ac_cv_prog_RANLIB"
4960 # Extract the first word of "rm", so it can be a program name with args.
4961 set dummy rm; ac_word=$2
4962 echo "$as_me:$LINENO: checking for $ac_word" >&5
4963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4964 if test "${ac_cv_path_RM+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4992 if test -n "$RM"; then
4993 echo "$as_me:$LINENO: result: $RM" >&5
4994 echo "${ECHO_T}$RM" >&6
4996 echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
5000 # Extract the first word of "sed", so it can be a program name with args.
5001 set dummy sed; ac_word=$2
5002 echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004 if test "${ac_cv_path_SED+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5032 if test -n "$SED"; then
5033 echo "$as_me:$LINENO: result: $SED" >&5
5034 echo "${ECHO_T}$SED" >&6
5036 echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6
5040 # Extract the first word of "tar", so it can be a program name with args.
5041 set dummy tar; ac_word=$2
5042 echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044 if test "${ac_cv_path_TAR+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5072 if test -n "$TAR"; then
5073 echo "$as_me:$LINENO: result: $TAR" >&5
5074 echo "${ECHO_T}$TAR" >&6
5076 echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6
5080 # Extract the first word of "Graphviz", so it can be a program name with args.
5081 set dummy Graphviz; ac_word=$2
5082 echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5110 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5112 if test -n "$GRAPHVIZ"; then
5113 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5114 echo "${ECHO_T}$GRAPHVIZ" >&6
5116 echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6
5120 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5122 cat >>confdefs.h <<\_ACEOF
5123 #define HAVE_GRAPHVIZ 1
5127 cat >>confdefs.h <<_ACEOF
5128 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5132 # Extract the first word of "gv", so it can be a program name with args.
5133 set dummy gv; ac_word=$2
5134 echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5136 if test "${ac_cv_path_GV+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5164 if test -n "$GV"; then
5165 echo "$as_me:$LINENO: result: $GV" >&5
5166 echo "${ECHO_T}$GV" >&6
5168 echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6
5172 if test "$GRAPHVIZ" != "echo gv" ; then
5174 cat >>confdefs.h <<\_ACEOF
5179 cat >>confdefs.h <<_ACEOF
5180 #define LLVM_PATH_GV "$GV"
5185 # Find a good install program. We prefer a C program (faster),
5186 # so one script is as good as another. But avoid the broken or
5187 # incompatible versions:
5188 # SysV /etc/install, /usr/sbin/install
5189 # SunOS /usr/etc/install
5190 # IRIX /sbin/install
5192 # AmigaOS /C/install, which installs bootblocks on floppy discs
5193 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5194 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5195 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5196 # OS/2's system install, which has a completely different semantic
5197 # ./install, which can be erroneously created by make from ./install.sh.
5198 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5199 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5200 if test -z "$INSTALL"; then
5201 if test "${ac_cv_path_install+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir=.
5209 # Account for people who put trailing slashes in PATH elements.
5211 ./ | .// | /cC/* | \
5212 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5216 # OSF1 and SCO ODT 3.0 have their own names for install.
5217 # Don't use installbsd from OSF since it installs stuff as root
5219 for ac_prog in ginstall scoinst install; do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5222 if test $ac_prog = install &&
5223 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5224 # AIX install. It has an incompatible calling convention.
5226 elif test $ac_prog = install &&
5227 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5228 # program-specific install script used by HP pwplus--don't use.
5231 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5243 if test "${ac_cv_path_install+set}" = set; then
5244 INSTALL=$ac_cv_path_install
5246 # As a last resort, use the slow shell script. We don't cache a
5247 # path for INSTALL within a source directory, because that will
5248 # break other packages using the cache if that directory is
5249 # removed, or if the path is relative.
5250 INSTALL=$ac_install_sh
5253 echo "$as_me:$LINENO: result: $INSTALL" >&5
5254 echo "${ECHO_T}$INSTALL" >&6
5256 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5257 # It thinks the first close brace ends the variable substitution.
5258 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5260 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5262 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5265 # Extract the first word of "bzip2", so it can be a program name with args.
5266 set dummy bzip2; ac_word=$2
5267 echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269 if test "${ac_cv_path_BZIP2+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5295 BZIP2=$ac_cv_path_BZIP2
5297 if test -n "$BZIP2"; then
5298 echo "$as_me:$LINENO: result: $BZIP2" >&5
5299 echo "${ECHO_T}$BZIP2" >&6
5301 echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5305 # Extract the first word of "dot", so it can be a program name with args.
5306 set dummy dot; ac_word=$2
5307 echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309 if test "${ac_cv_path_DOT+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5337 if test -n "$DOT"; then
5338 echo "$as_me:$LINENO: result: $DOT" >&5
5339 echo "${ECHO_T}$DOT" >&6
5341 echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6
5345 # Extract the first word of "doxygen", so it can be a program name with args.
5346 set dummy doxygen; ac_word=$2
5347 echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5375 DOXYGEN=$ac_cv_path_DOXYGEN
5377 if test -n "$DOXYGEN"; then
5378 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5379 echo "${ECHO_T}$DOXYGEN" >&6
5381 echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6
5385 # Extract the first word of "etags", so it can be a program name with args.
5386 set dummy etags; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_path_ETAGS+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5415 ETAGS=$ac_cv_path_ETAGS
5417 if test -n "$ETAGS"; then
5418 echo "$as_me:$LINENO: result: $ETAGS" >&5
5419 echo "${ECHO_T}$ETAGS" >&6
5421 echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5425 # Extract the first word of "groff", so it can be a program name with args.
5426 set dummy groff; ac_word=$2
5427 echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 if test "${ac_cv_path_GROFF+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5455 GROFF=$ac_cv_path_GROFF
5457 if test -n "$GROFF"; then
5458 echo "$as_me:$LINENO: result: $GROFF" >&5
5459 echo "${ECHO_T}$GROFF" >&6
5461 echo "$as_me:$LINENO: result: no" >&5
5462 echo "${ECHO_T}no" >&6
5465 # Extract the first word of "gzip", so it can be a program name with args.
5466 set dummy gzip; ac_word=$2
5467 echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469 if test "${ac_cv_path_GZIP+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5495 GZIP=$ac_cv_path_GZIP
5497 if test -n "$GZIP"; then
5498 echo "$as_me:$LINENO: result: $GZIP" >&5
5499 echo "${ECHO_T}$GZIP" >&6
5501 echo "$as_me:$LINENO: result: no" >&5
5502 echo "${ECHO_T}no" >&6
5505 # Extract the first word of "pod2html", so it can be a program name with args.
5506 set dummy pod2html; ac_word=$2
5507 echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509 if test "${ac_cv_path_POD2HTML+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5535 POD2HTML=$ac_cv_path_POD2HTML
5537 if test -n "$POD2HTML"; then
5538 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5539 echo "${ECHO_T}$POD2HTML" >&6
5541 echo "$as_me:$LINENO: result: no" >&5
5542 echo "${ECHO_T}no" >&6
5545 # Extract the first word of "pod2man", so it can be a program name with args.
5546 set dummy pod2man; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_path_POD2MAN+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5575 POD2MAN=$ac_cv_path_POD2MAN
5577 if test -n "$POD2MAN"; then
5578 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5579 echo "${ECHO_T}$POD2MAN" >&6
5581 echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6
5585 # Extract the first word of "runtest", so it can be a program name with args.
5586 set dummy runtest; ac_word=$2
5587 echo "$as_me:$LINENO: checking for $ac_word" >&5
5588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589 if test "${ac_cv_path_RUNTEST+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5615 RUNTEST=$ac_cv_path_RUNTEST
5617 if test -n "$RUNTEST"; then
5618 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5619 echo "${ECHO_T}$RUNTEST" >&6
5621 echo "$as_me:$LINENO: result: no" >&5
5622 echo "${ECHO_T}no" >&6
5627 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5628 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5630 # Check whether --with-tclinclude or --without-tclinclude was given.
5631 if test "${with_tclinclude+set}" = set; then
5632 withval="$with_tclinclude"
5633 with_tclinclude=${withval}
5637 if test "${ac_cv_path_tclsh+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 if test x"${with_tclinclude}" != x ; then
5642 if test -f ${with_tclinclude}/tclsh ; then
5643 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5644 elif test -f ${with_tclinclude}/src/tclsh ; then
5645 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5647 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5648 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5649 { (exit 1); exit 1; }; }
5653 if test x"${ac_cv_path_tclsh}" = x ; then
5654 echo "$as_me:$LINENO: result: none" >&5
5655 echo "${ECHO_T}none" >&6
5656 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
5658 # Extract the first word of "$ac_prog", so it can be a program name with args.
5659 set dummy $ac_prog; ac_word=$2
5660 echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5662 if test "${ac_cv_path_TCLSH+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 TCLSH=$ac_cv_path_TCLSH
5689 if test -n "$TCLSH"; then
5690 echo "$as_me:$LINENO: result: $TCLSH" >&5
5691 echo "${ECHO_T}$TCLSH" >&6
5693 echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5697 test -n "$TCLSH" && break
5700 if test x"${TCLSH}" = x ; then
5701 ac_cv_path_tclsh='';
5703 ac_cv_path_tclsh="${TCLSH}";
5706 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5707 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5708 TCLSH="${ac_cv_path_tclsh}"
5714 # Extract the first word of "zip", so it can be a program name with args.
5715 set dummy zip; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_path_ZIP+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5746 if test -n "$ZIP"; then
5747 echo "$as_me:$LINENO: result: $ZIP" >&5
5748 echo "${ECHO_T}$ZIP" >&6
5750 echo "$as_me:$LINENO: result: no" >&5
5751 echo "${ECHO_T}no" >&6
5755 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5756 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5757 if test "${llvm_cv_link_use_r+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 ac_cpp='$CPP $CPPFLAGS'
5762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5767 CFLAGS="$CFLAGS -Wl,-R."
5768 cat >conftest.$ac_ext <<_ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5778 int main() { return 0; }
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785 (eval $ac_link) 2>conftest.er1
5787 grep -v '^ *+' conftest.er1 >conftest.err
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag"
5793 || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest$ac_exeext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 llvm_cv_link_use_r=yes
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 llvm_cv_link_use_r=no
5812 rm -f conftest.err conftest.$ac_objext \
5813 conftest$ac_exeext conftest.$ac_ext
5816 ac_cpp='$CPP $CPPFLAGS'
5817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5823 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5824 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5825 if test "$llvm_cv_link_use_r" = yes ; then
5827 cat >>confdefs.h <<\_ACEOF
5828 #define HAVE_LINK_R 1
5836 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5837 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5838 if test "${ac_cv_c_const+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 cat >conftest.$ac_ext <<_ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5851 /* FIXME: Include the comments suggested by Paul. */
5853 /* Ultrix mips cc rejects this. */
5854 typedef int charset[2];
5856 /* SunOS 4.1.1 cc rejects this. */
5857 char const *const *ccp;
5859 /* NEC SVR4.0.2 mips cc rejects this. */
5860 struct point {int x, y;};
5861 static struct point const zero = {0,0};
5862 /* AIX XL C 1.02.0.0 rejects this.
5863 It does not let you subtract one const X* pointer from another in
5864 an arm of an if-expression whose if-part is not a constant
5866 const char *g = "string";
5867 ccp = &g + (g ? g-g : 0);
5868 /* HPUX 7.0 cc rejects these. */
5871 ccp = (char const *const *) p;
5872 { /* SCO 3.2v4 cc rejects this. */
5874 char const *s = 0 ? (char *) 0 : (char const *) 0;
5878 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5880 const int *foo = &x[0];
5883 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5884 typedef const int *iptr;
5888 { /* AIX XL C 1.02.0.0 rejects this saying
5889 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5890 struct s { int j; const int *ap[3]; };
5891 struct s *b; b->j = 5;
5893 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5902 rm -f conftest.$ac_objext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904 (eval $ac_compile) 2>conftest.er1
5906 grep -v '^ *+' conftest.er1 >conftest.err
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -z "$ac_c_werror_flag"
5912 || test ! -s conftest.err'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try='test -s conftest.$ac_objext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5933 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5934 echo "${ECHO_T}$ac_cv_c_const" >&6
5935 if test $ac_cv_c_const = no; then
5937 cat >>confdefs.h <<\_ACEOF
5944 echo "$as_me:$LINENO: checking for egrep" >&5
5945 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5946 if test "${ac_cv_prog_egrep+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5950 then ac_cv_prog_egrep='grep -E'
5951 else ac_cv_prog_egrep='egrep'
5954 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5955 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5956 EGREP=$ac_cv_prog_egrep
5959 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5960 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5961 if test "${ac_cv_header_stdc+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 cat >conftest.$ac_ext <<_ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_header_stdc=yes
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 ac_cv_header_stdc=no
6012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6014 if test $ac_cv_header_stdc = yes; then
6015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6016 cat >conftest.$ac_ext <<_ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6026 $EGREP "memchr" >/dev/null 2>&1; then
6029 ac_cv_header_stdc=no
6035 if test $ac_cv_header_stdc = yes; then
6036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6037 cat >conftest.$ac_ext <<_ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047 $EGREP "free" >/dev/null 2>&1; then
6050 ac_cv_header_stdc=no
6056 if test $ac_cv_header_stdc = yes; then
6057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6058 if test "$cross_compiling" = yes; then
6061 cat >conftest.$ac_ext <<_ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6068 #if ((' ' & 0x0FF) == 0x020)
6069 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6070 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6072 # define ISLOWER(c) \
6073 (('a' <= (c) && (c) <= 'i') \
6074 || ('j' <= (c) && (c) <= 'r') \
6075 || ('s' <= (c) && (c) <= 'z'))
6076 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6084 for (i = 0; i < 256; i++)
6085 if (XOR (islower (i), ISLOWER (i))
6086 || toupper (i) != TOUPPER (i))
6091 rm -f conftest$ac_exeext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6093 (eval $ac_link) 2>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6104 echo "$as_me: program exited with status $ac_status" >&5
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6109 ac_cv_header_stdc=no
6111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6115 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6116 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6117 if test $ac_cv_header_stdc = yes; then
6119 cat >>confdefs.h <<\_ACEOF
6120 #define STDC_HEADERS 1
6131 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6132 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6133 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6134 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <sys/types.h>
6156 rm -f conftest.$ac_objext
6157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6158 (eval $ac_compile) 2>conftest.er1
6160 grep -v '^ *+' conftest.er1 >conftest.err
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try='test -z "$ac_c_werror_flag"
6166 || test ! -s conftest.err'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; } &&
6172 { ac_try='test -s conftest.$ac_objext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 eval "$as_ac_Header=yes"
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 eval "$as_ac_Header=no"
6185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6190 cat >>confdefs.h <<_ACEOF
6191 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6194 ac_header_dirent=$ac_hdr; break
6198 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6199 if test $ac_header_dirent = dirent.h; then
6200 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6201 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6202 if test "${ac_cv_search_opendir+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 ac_func_search_save_LIBS=$LIBS
6206 ac_cv_search_opendir=no
6207 cat >conftest.$ac_ext <<_ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6214 /* Override any gcc2 internal prototype to avoid an error. */
6218 /* We use char because int might match the return type of a gcc2
6219 builtin and then its argument prototype would still apply. */
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231 (eval $ac_link) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest$ac_exeext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_search_opendir="none required"
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6257 rm -f conftest.err conftest.$ac_objext \
6258 conftest$ac_exeext conftest.$ac_ext
6259 if test "$ac_cv_search_opendir" = no; then
6260 for ac_lib in dir; do
6261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6262 cat >conftest.$ac_ext <<_ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6269 /* Override any gcc2 internal prototype to avoid an error. */
6273 /* We use char because int might match the return type of a gcc2
6274 builtin and then its argument prototype would still apply. */
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6286 (eval $ac_link) 2>conftest.er1
6288 grep -v '^ *+' conftest.er1 >conftest.err
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try='test -z "$ac_c_werror_flag"
6294 || test ! -s conftest.err'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; } &&
6300 { ac_try='test -s conftest$ac_exeext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_cv_search_opendir="-l$ac_lib"
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6313 rm -f conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6317 LIBS=$ac_func_search_save_LIBS
6319 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6320 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6321 if test "$ac_cv_search_opendir" != no; then
6322 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6327 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6328 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6329 if test "${ac_cv_search_opendir+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 ac_func_search_save_LIBS=$LIBS
6333 ac_cv_search_opendir=no
6334 cat >conftest.$ac_ext <<_ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6341 /* Override any gcc2 internal prototype to avoid an error. */
6345 /* We use char because int might match the return type of a gcc2
6346 builtin and then its argument prototype would still apply. */
6356 rm -f conftest.$ac_objext conftest$ac_exeext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358 (eval $ac_link) 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -z "$ac_c_werror_flag"
6366 || test ! -s conftest.err'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; } &&
6372 { ac_try='test -s conftest$ac_exeext'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6378 ac_cv_search_opendir="none required"
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6384 rm -f conftest.err conftest.$ac_objext \
6385 conftest$ac_exeext conftest.$ac_ext
6386 if test "$ac_cv_search_opendir" = no; then
6388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6389 cat >conftest.$ac_ext <<_ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6396 /* Override any gcc2 internal prototype to avoid an error. */
6400 /* We use char because int might match the return type of a gcc2
6401 builtin and then its argument prototype would still apply. */
6411 rm -f conftest.$ac_objext conftest$ac_exeext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6413 (eval $ac_link) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest$ac_exeext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_cv_search_opendir="-l$ac_lib"
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6440 rm -f conftest.err conftest.$ac_objext \
6441 conftest$ac_exeext conftest.$ac_ext
6444 LIBS=$ac_func_search_save_LIBS
6446 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6447 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6448 if test "$ac_cv_search_opendir" != no; then
6449 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6455 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6465 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6466 inttypes.h stdint.h unistd.h
6468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6469 echo "$as_me:$LINENO: checking for $ac_header" >&5
6470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 cat >conftest.$ac_ext <<_ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 $ac_includes_default
6482 #include <$ac_header>
6484 rm -f conftest.$ac_objext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486 (eval $ac_compile) 2>conftest.er1
6488 grep -v '^ *+' conftest.er1 >conftest.err
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -z "$ac_c_werror_flag"
6494 || test ! -s conftest.err'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try='test -s conftest.$ac_objext'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6506 eval "$as_ac_Header=yes"
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6511 eval "$as_ac_Header=no"
6513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6518 cat >>confdefs.h <<_ACEOF
6519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6528 for ac_header in dlfcn.h
6530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532 echo "$as_me:$LINENO: checking for $ac_header" >&5
6533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6540 # Is the header compilable?
6541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6543 cat >conftest.$ac_ext <<_ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 $ac_includes_default
6550 #include <$ac_header>
6552 rm -f conftest.$ac_objext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>conftest.er1
6556 grep -v '^ *+' conftest.er1 >conftest.err
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -z "$ac_c_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try='test -s conftest.$ac_objext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_header_compiler=yes
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6579 ac_header_compiler=no
6581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6583 echo "${ECHO_T}$ac_header_compiler" >&6
6585 # Is the header present?
6586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6588 cat >conftest.$ac_ext <<_ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 #include <$ac_header>
6596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6599 grep -v '^ *+' conftest.er1 >conftest.err
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } >/dev/null; then
6604 if test -s conftest.err; then
6605 ac_cpp_err=$ac_c_preproc_warn_flag
6606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6613 if test -z "$ac_cpp_err"; then
6614 ac_header_preproc=yes
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6619 ac_header_preproc=no
6621 rm -f conftest.err conftest.$ac_ext
6622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6623 echo "${ECHO_T}$ac_header_preproc" >&6
6625 # So? What about this header?
6626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6632 ac_header_preproc=yes
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6649 ## ----------------------------------- ##
6650 ## Report this to llvmbugs@cs.uiuc.edu ##
6651 ## ----------------------------------- ##
6654 sed "s/^/$as_me: WARNING: /" >&2
6657 echo "$as_me:$LINENO: checking for $ac_header" >&5
6658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 eval "$as_ac_Header=\$ac_header_preproc"
6664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6669 cat >>confdefs.h <<_ACEOF
6670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6677 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6678 if test "${enable_ltdl_install+set}" = set; then
6679 enableval="$enable_ltdl_install"
6685 if test x"${enable_ltdl_install-no}" != xno; then
6687 INSTALL_LTDL_FALSE='#'
6689 INSTALL_LTDL_TRUE='#'
6695 if test x"${enable_ltdl_convenience-no}" != xno; then
6696 CONVENIENCE_LTDL_TRUE=
6697 CONVENIENCE_LTDL_FALSE='#'
6699 CONVENIENCE_LTDL_TRUE='#'
6700 CONVENIENCE_LTDL_FALSE=
6704 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6705 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6707 libname_spec='lib$name'
6715 shlibpath_overrides_runpath=unknown
6717 dynamic_linker="$host_os ld.so"
6718 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6719 if test "$GCC" = yes; then
6720 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6721 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6722 # if the path contains ";" then we assume it to be the separator
6723 # otherwise default to the standard path separator (i.e. ":") - it is
6724 # assumed that no part of a normal pathname contains ";" but that should
6725 # okay in the real world where ";" in dirpaths is itself problematic.
6726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6731 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6733 need_lib_prefix=unknown
6734 hardcode_into_libs=no
6736 # when you set need_version to no, make sure it does not cause -set_version
6737 # flags to be left without arguments
6738 need_version=unknown
6743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6744 shlibpath_var=LIBPATH
6746 # AIX 3 has no versioning support, so we append a major version to the name.
6747 soname_spec='${libname}${release}${shared_ext}$major'
6754 hardcode_into_libs=yes
6755 if test "$host_cpu" = ia64; then
6756 # AIX 5 supports IA64
6757 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6758 shlibpath_var=LD_LIBRARY_PATH
6760 # With GCC up to 2.95.x, collect2 would create an import file
6761 # for dependence libraries. The import file would start with
6762 # the line `#! .'. This would cause the generated library to
6763 # depend on `.', always an invalid library. This was fixed in
6764 # development snapshots of GCC prior to 3.0.
6766 aix4 | aix4.[01] | aix4.[01].*)
6767 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6769 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6776 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6777 # soname into executable. Probably we can add versioning support to
6778 # collect2, so additional links can be useful in future.
6779 if test "$aix_use_runtimelinking" = yes; then
6780 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6781 # instead of lib<name>.a to let people know that these are not
6782 # typical AIX shared libraries.
6783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6785 # We preserve .a as extension for shared libraries through AIX4.2
6786 # and later when we are not doing run time linking.
6787 library_names_spec='${libname}${release}.a $libname.a'
6788 soname_spec='${libname}${release}${shared_ext}$major'
6790 shlibpath_var=LIBPATH
6795 library_names_spec='$libname.ixlibrary $libname.a'
6796 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6797 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'
6801 library_names_spec='${libname}${shared_ext}'
6802 dynamic_linker="$host_os ld.so"
6803 shlibpath_var=LIBRARY_PATH
6809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6810 soname_spec='${libname}${release}${shared_ext}$major'
6811 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6812 shlibpath_var=LD_LIBRARY_PATH
6813 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6814 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6815 # the default ld.so.conf also contains /usr/contrib/lib and
6816 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6817 # libtool to hard-code these into programs
6820 cygwin* | mingw* | pw32*)
6821 version_type=windows
6826 case $GCC,$host_os in
6827 yes,cygwin* | yes,mingw* | yes,pw32*)
6828 library_names_spec='$libname.dll.a'
6829 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6830 postinstall_cmds='base_file=`basename \${file}`~
6831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6832 dldir=$destdir/`dirname \$dlpath`~
6833 test -d \$dldir || mkdir -p \$dldir~
6834 $install_prog $dir/$dlname \$dldir/$dlname'
6835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6836 dlpath=$dir/\$dldll~
6838 shlibpath_overrides_runpath=yes
6842 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6844 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6847 # MinGW DLLs use traditional 'lib' prefix
6848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6850 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6851 # It is most probably a Windows format PATH printed by
6852 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6853 # path with ; separators, and with drive letters. We can handle the
6854 # drive letters (cygwin fileutils understands them), so leave them,
6855 # especially as we might pass files found there to a mingw objdump,
6856 # which wouldn't understand a cygwinified path. Ahh.
6857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6863 # pw32 DLLs use 'pw' prefix rather than 'lib'
6864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6873 dynamic_linker='Win32 ld.exe'
6874 # FIXME: first we should search . and the directory the executable is in
6878 darwin* | rhapsody*)
6879 dynamic_linker="$host_os dyld"
6883 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6884 soname_spec='${libname}${release}${major}$shared_ext'
6885 shlibpath_overrides_runpath=yes
6886 shlibpath_var=DYLD_LIBRARY_PATH
6887 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6888 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6889 if test "$GCC" = yes; then
6890 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"`
6892 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6902 soname_spec='${libname}${release}${shared_ext}$major'
6903 shlibpath_var=LD_LIBRARY_PATH
6914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6915 soname_spec='${libname}${release}${shared_ext}$major'
6916 shlibpath_var=LD_LIBRARY_PATH
6917 shlibpath_overrides_runpath=no
6918 hardcode_into_libs=yes
6919 dynamic_linker='GNU ld.so'
6923 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6924 version_type=freebsd-$objformat
6925 case $version_type in
6927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6936 shlibpath_var=LD_LIBRARY_PATH
6939 shlibpath_overrides_runpath=yes
6941 freebsd3.01* | freebsdelf3.01*)
6942 shlibpath_overrides_runpath=yes
6943 hardcode_into_libs=yes
6946 shlibpath_overrides_runpath=no
6947 hardcode_into_libs=yes
6956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6957 soname_spec='${libname}${release}${shared_ext}$major'
6958 shlibpath_var=LD_LIBRARY_PATH
6959 hardcode_into_libs=yes
6962 hpux9* | hpux10* | hpux11*)
6963 # Give a soname corresponding to the major version so that dld.sl refuses to
6964 # link against other versions.
6971 hardcode_into_libs=yes
6972 dynamic_linker="$host_os dld.so"
6973 shlibpath_var=LD_LIBRARY_PATH
6974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6976 soname_spec='${libname}${release}${shared_ext}$major'
6977 if test "X$HPUX_IA64_MODE" = X32; then
6978 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6980 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6986 hardcode_into_libs=yes
6987 dynamic_linker="$host_os dld.sl"
6988 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6991 soname_spec='${libname}${release}${shared_ext}$major'
6992 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6997 dynamic_linker="$host_os dld.sl"
6998 shlibpath_var=SHLIB_PATH
6999 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7001 soname_spec='${libname}${release}${shared_ext}$major'
7004 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7005 postinstall_cmds='chmod 555 $lib'
7008 irix5* | irix6* | nonstopux*)
7010 nonstopux*) version_type=nonstopux ;;
7012 if test "$lt_cv_prog_gnu_ld" = yes; then
7020 soname_spec='${libname}${release}${shared_ext}$major'
7021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7023 irix5* | nonstopux*)
7027 case $LD in # libtool.m4 will add one of these switches to LD
7028 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7029 libsuff= shlibsuff= libmagic=32-bit;;
7030 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7031 libsuff=32 shlibsuff=N32 libmagic=N32;;
7032 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7033 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7034 *) libsuff= shlibsuff= libmagic=never-match;;
7038 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7039 shlibpath_overrides_runpath=no
7040 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7041 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7042 hardcode_into_libs=yes
7045 # No shared lib support for Linux oldld, aout, or coff.
7046 linux*oldld* | linux*aout* | linux*coff*)
7050 # This must be Linux ELF.
7055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7056 soname_spec='${libname}${release}${shared_ext}$major'
7057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7058 shlibpath_var=LD_LIBRARY_PATH
7059 shlibpath_overrides_runpath=no
7060 # This implies no fast_install, which is unacceptable.
7061 # Some rework will be needed to allow for fast_install
7062 # before this can be enabled.
7063 hardcode_into_libs=yes
7065 # Append ld.so.conf contents to the search path
7066 if test -f /etc/ld.so.conf; then
7067 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7068 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7071 # We used to test for /lib/ld.so.1 and disable shared libraries on
7072 # powerpc, because MkLinux only supported shared libraries with the
7073 # GNU dynamic linker. Since this was broken with cross compilers,
7074 # most powerpc-linux boxes support dynamic linking these days and
7075 # people can always --disable-shared, the test was removed, and we
7076 # assume the GNU/Linux dynamic linker is in use.
7077 dynamic_linker='GNU/Linux ld.so'
7084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7085 soname_spec='${libname}${release}${shared_ext}$major'
7086 shlibpath_var=LD_LIBRARY_PATH
7087 shlibpath_overrides_runpath=no
7088 hardcode_into_libs=yes
7089 dynamic_linker='GNU ld.so'
7096 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7099 dynamic_linker='NetBSD (a.out) ld.so'
7101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7102 soname_spec='${libname}${release}${shared_ext}$major'
7103 dynamic_linker='NetBSD ld.elf_so'
7105 shlibpath_var=LD_LIBRARY_PATH
7106 shlibpath_overrides_runpath=yes
7107 hardcode_into_libs=yes
7112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7113 shlibpath_var=LD_LIBRARY_PATH
7114 shlibpath_overrides_runpath=yes
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7122 soname_spec='${libname}${release}${shared_ext}$major'
7123 shlibpath_var=LD_LIBRARY_PATH
7124 shlibpath_overrides_runpath=yes
7131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7133 shlibpath_var=LD_LIBRARY_PATH
7134 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7136 openbsd2.[89] | openbsd2.[89].*)
7137 shlibpath_overrides_runpath=no
7140 shlibpath_overrides_runpath=yes
7144 shlibpath_overrides_runpath=yes
7149 libname_spec='$name'
7152 library_names_spec='$libname${shared_ext} $libname.a'
7153 dynamic_linker='OS/2 ld.exe'
7154 shlibpath_var=LIBPATH
7157 osf3* | osf4* | osf5*)
7161 soname_spec='${libname}${release}${shared_ext}$major'
7162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7163 shlibpath_var=LD_LIBRARY_PATH
7164 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7165 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7170 soname_spec='${libname}${release}${shared_ext}$major'
7171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7172 shlibpath_var=LD_LIBRARY_PATH
7179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7180 soname_spec='${libname}${release}${shared_ext}$major'
7181 shlibpath_var=LD_LIBRARY_PATH
7182 shlibpath_overrides_runpath=yes
7183 hardcode_into_libs=yes
7184 # ldd complains unless libraries are executable
7185 postinstall_cmds='chmod +x $lib'
7190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7191 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7192 shlibpath_var=LD_LIBRARY_PATH
7193 shlibpath_overrides_runpath=yes
7194 if test "$with_gnu_ld" = yes; then
7200 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7203 soname_spec='${libname}${release}${shared_ext}$major'
7204 shlibpath_var=LD_LIBRARY_PATH
7205 case $host_vendor in
7207 shlibpath_overrides_runpath=no
7209 export_dynamic_flag_spec='${wl}-Blargedynsym'
7210 runpath_var=LD_RUN_PATH
7218 shlibpath_overrides_runpath=no
7219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7225 if test -d /usr/nec ;then
7227 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7228 soname_spec='$libname${shared_ext}.$major'
7229 shlibpath_var=LD_LIBRARY_PATH
7235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7236 soname_spec='${libname}${release}${shared_ext}$major'
7237 shlibpath_var=LD_LIBRARY_PATH
7244 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7245 echo "${ECHO_T}$dynamic_linker" >&6
7246 test "$dynamic_linker" = no && can_build_shared=no
7249 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7250 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7251 if test "${libltdl_cv_shlibext+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 eval libltdl_cv_shlibext=$shrext_cmds
7259 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7260 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7261 if test -n "$libltdl_cv_shlibext"; then
7263 cat >>confdefs.h <<_ACEOF
7264 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7270 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7271 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7272 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 libltdl_cv_shlibpath_var="$shlibpath_var"
7277 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7278 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7279 if test -n "$libltdl_cv_shlibpath_var"; then
7281 cat >>confdefs.h <<_ACEOF
7282 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7288 echo "$as_me:$LINENO: checking for the default library search path" >&5
7289 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7290 if test "${libltdl_cv_sys_search_path+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7295 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7296 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7297 if test -n "$libltdl_cv_sys_search_path"; then
7299 for dir in $libltdl_cv_sys_search_path; do
7300 if test -z "$sys_search_path"; then
7301 sys_search_path="$dir"
7303 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7307 cat >>confdefs.h <<_ACEOF
7308 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7313 echo "$as_me:$LINENO: checking for objdir" >&5
7314 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7315 if test "${libltdl_cv_objdir+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 libltdl_cv_objdir="$objdir"
7319 if test -n "$objdir"; then
7322 rm -f .libs 2>/dev/null
7323 mkdir .libs 2>/dev/null
7324 if test -d .libs; then
7325 libltdl_cv_objdir=.libs
7327 # MS-DOS does not allow filenames that begin with a dot.
7328 libltdl_cv_objdir=_libs
7330 rmdir .libs 2>/dev/null
7334 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7335 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7337 cat >>confdefs.h <<_ACEOF
7338 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7342 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7343 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7344 if test "${lt_cv_path_NM+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 if test -n "$NM"; then
7348 # Let the user override the test.
7351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7352 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7354 test -z "$ac_dir" && ac_dir=.
7355 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7356 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7357 # Check to see if the nm accepts a BSD-compat flag.
7358 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7359 # nm: unknown option "B" ignored
7360 # Tru64's nm complains that /dev/null is an invalid object file
7361 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7362 */dev/null* | *'Invalid file or object type'*)
7363 lt_cv_path_NM="$tmp_nm -B"
7367 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7369 lt_cv_path_NM="$tmp_nm -p"
7373 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7374 continue # so that we can try to find one that supports BSD flags
7381 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7384 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7385 echo "${ECHO_T}$lt_cv_path_NM" >&6
7392 # Check for command to grab the raw symbol name followed by C symbol from nm.
7393 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7394 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7395 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 # These are sane defaults that work on at least a few old systems.
7400 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7402 # Character class describing NM global symbol codes.
7403 symcode='[BCDEGRST]'
7405 # Regexp to match symbols that can be accessed directly from C.
7406 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7408 # Transform the above into a raw symbol and a C symbol.
7409 symxfrm='\1 \2\3 \3'
7411 # Transform an extracted symbol line into a proper C declaration
7412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7414 # Transform an extracted symbol line into symbol name and symbol address
7415 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'"
7417 # Define system-specific variables.
7422 cygwin* | mingw* | pw32*)
7423 symcode='[ABCDGISTW]'
7425 hpux*) # Its linker distinguishes data from code symbols
7426 if test "$host_cpu" = ia64; then
7427 symcode='[ABCDEGRST]'
7429 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7430 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'"
7433 if test "$host_cpu" = ia64; then
7434 symcode='[ABCDGIRSTW]'
7435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7436 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7440 symcode='[BCDEGRST]'
7443 symcode='[BCDEGQRST]'
7453 # Handle CRLF in mingw tool chain
7457 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7461 # If we're using GNU nm, then use its standard symbol codes.
7462 case `$NM -V 2>&1` in
7463 *GNU* | *'with BFD'*)
7464 symcode='[ABCDGIRSTW]' ;;
7467 # Try without a prefix undercore, then with it.
7468 for ac_symprfx in "" "_"; do
7470 # Write the raw and C identifiers.
7471 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7473 # Check to see that the pipe works correctly.
7477 cat > conftest.$ac_ext <<EOF
7482 void nm_test_func(){}
7486 int main(){nm_test_var='a';nm_test_func();return(0);}
7489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7490 (eval $ac_compile) 2>&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; then
7494 # Now try to grab the symbols.
7496 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7497 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && test -s "$nlist"; then
7501 # Try sorting and uniquifying the output.
7502 if sort "$nlist" | uniq > "$nlist"T; then
7503 mv -f "$nlist"T "$nlist"
7508 # Make sure that we snagged all the symbols we need.
7509 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7510 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7511 cat <<EOF > conftest.$ac_ext
7517 # Now generate the symbol file.
7518 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7520 cat <<EOF >> conftest.$ac_ext
7521 #if defined (__STDC__) && __STDC__
7522 # define lt_ptr_t void *
7524 # define lt_ptr_t char *
7528 /* The mapping between symbol names and symbols. */
7533 lt_preloaded_symbols[] =
7536 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7537 cat <<\EOF >> conftest.$ac_ext
7545 # Now try linking the two files.
7546 mv conftest.$ac_objext conftstm.$ac_objext
7547 lt_save_LIBS="$LIBS"
7548 lt_save_CFLAGS="$CFLAGS"
7549 LIBS="conftstm.$ac_objext"
7550 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552 (eval $ac_link) 2>&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7558 LIBS="$lt_save_LIBS"
7559 CFLAGS="$lt_save_CFLAGS"
7561 echo "cannot find nm_test_func in $nlist" >&5
7564 echo "cannot find nm_test_var in $nlist" >&5
7567 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7570 echo "$progname: failed program was:" >&5
7571 cat conftest.$ac_ext >&5
7573 rm -f conftest* conftst*
7575 # Do not use the global_symbol_pipe unless it works.
7576 if test "$pipe_works" = yes; then
7579 lt_cv_sys_global_symbol_pipe=
7585 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7586 lt_cv_sys_global_symbol_to_cdecl=
7588 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7589 echo "$as_me:$LINENO: result: failed" >&5
7590 echo "${ECHO_T}failed" >&6
7592 echo "$as_me:$LINENO: result: ok" >&5
7593 echo "${ECHO_T}ok" >&6
7597 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7598 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7599 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7603 libltdl_cv_preloaded_symbols=yes
7605 libltdl_cv_preloaded_symbols=no
7609 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7610 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7611 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7613 cat >>confdefs.h <<\_ACEOF
7614 #define HAVE_PRELOADED_SYMBOLS 1
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628 echo "$as_me:$LINENO: checking for shl_load" >&5
7629 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7630 if test "${ac_cv_func_shl_load+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 cat >conftest.$ac_ext <<_ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7641 #define shl_load innocuous_shl_load
7643 /* System header to define __stub macros and hopefully few prototypes,
7644 which can conflict with char shl_load (); below.
7645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7646 <limits.h> exists even on freestanding compilers. */
7649 # include <limits.h>
7651 # include <assert.h>
7656 /* Override any gcc2 internal prototype to avoid an error. */
7661 /* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */
7664 /* The GNU C library defines this for functions which it implements
7665 to always fail with ENOSYS. Some functions are actually named
7666 something starting with __ and the normal name is an alias. */
7667 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7670 char (*f) () = shl_load;
7679 return f != shl_load;
7684 rm -f conftest.$ac_objext conftest$ac_exeext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>conftest.er1
7688 grep -v '^ *+' conftest.er1 >conftest.err
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -z "$ac_c_werror_flag"
7694 || test ! -s conftest.err'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; } &&
7700 { ac_try='test -s conftest$ac_exeext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 ac_cv_func_shl_load=yes
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 ac_cv_func_shl_load=no
7713 rm -f conftest.err conftest.$ac_objext \
7714 conftest$ac_exeext conftest.$ac_ext
7716 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7717 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7718 if test $ac_cv_func_shl_load = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_SHL_LOAD 1
7725 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7726 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7727 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 ac_check_lib_save_LIBS=$LIBS
7732 cat >conftest.$ac_ext <<_ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7739 /* Override any gcc2 internal prototype to avoid an error. */
7743 /* We use char because int might match the return type of a gcc2
7744 builtin and then its argument prototype would still apply. */
7754 rm -f conftest.$ac_objext conftest$ac_exeext
7755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7756 (eval $ac_link) 2>conftest.er1
7758 grep -v '^ *+' conftest.er1 >conftest.err
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } &&
7763 { ac_try='test -z "$ac_c_werror_flag"
7764 || test ! -s conftest.err'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; } &&
7770 { ac_try='test -s conftest$ac_exeext'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; }; then
7776 ac_cv_lib_dld_shl_load=yes
7778 echo "$as_me: failed program was:" >&5
7779 sed 's/^/| /' conftest.$ac_ext >&5
7781 ac_cv_lib_dld_shl_load=no
7783 rm -f conftest.err conftest.$ac_objext \
7784 conftest$ac_exeext conftest.$ac_ext
7785 LIBS=$ac_check_lib_save_LIBS
7787 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7788 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7789 if test $ac_cv_lib_dld_shl_load = yes; then
7791 cat >>confdefs.h <<\_ACEOF
7792 #define HAVE_SHL_LOAD 1
7795 LIBADD_DL="$LIBADD_DL -ldld"
7797 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7798 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 ac_check_lib_save_LIBS=$LIBS
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7811 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828 (eval $ac_link) 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try='test -z "$ac_c_werror_flag"
7836 || test ! -s conftest.err'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_lib_dl_dlopen=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_cv_lib_dl_dlopen=no
7855 rm -f conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7859 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7860 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7861 if test $ac_cv_lib_dl_dlopen = yes; then
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_LIBDL 1
7867 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7869 cat >conftest.$ac_ext <<_ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7887 rm -f conftest.$ac_objext conftest$ac_exeext
7888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7889 (eval $ac_link) 2>conftest.er1
7891 grep -v '^ *+' conftest.er1 >conftest.err
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try='test -z "$ac_c_werror_flag"
7897 || test ! -s conftest.err'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; } &&
7903 { ac_try='test -s conftest$ac_exeext'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; }; then
7910 cat >>confdefs.h <<\_ACEOF
7911 #define HAVE_LIBDL 1
7913 libltdl_cv_func_dlopen="yes"
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7919 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7920 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 ac_check_lib_save_LIBS=$LIBS
7925 cat >conftest.$ac_ext <<_ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7932 /* Override any gcc2 internal prototype to avoid an error. */
7936 /* We use char because int might match the return type of a gcc2
7937 builtin and then its argument prototype would still apply. */
7947 rm -f conftest.$ac_objext conftest$ac_exeext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949 (eval $ac_link) 2>conftest.er1
7951 grep -v '^ *+' conftest.er1 >conftest.err
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try='test -z "$ac_c_werror_flag"
7957 || test ! -s conftest.err'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_cv_lib_svld_dlopen=yes
7971 echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 ac_cv_lib_svld_dlopen=no
7976 rm -f conftest.err conftest.$ac_objext \
7977 conftest$ac_exeext conftest.$ac_ext
7978 LIBS=$ac_check_lib_save_LIBS
7980 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7981 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7982 if test $ac_cv_lib_svld_dlopen = yes; then
7984 cat >>confdefs.h <<\_ACEOF
7985 #define HAVE_LIBDL 1
7988 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7990 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7991 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7992 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 ac_check_lib_save_LIBS=$LIBS
7997 cat >conftest.$ac_ext <<_ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8004 /* Override any gcc2 internal prototype to avoid an error. */
8008 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021 (eval $ac_link) 2>conftest.er1
8023 grep -v '^ *+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_c_werror_flag"
8029 || test ! -s conftest.err'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; } &&
8035 { ac_try='test -s conftest$ac_exeext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 ac_cv_lib_dld_dld_link=yes
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 ac_cv_lib_dld_dld_link=no
8048 rm -f conftest.err conftest.$ac_objext \
8049 conftest$ac_exeext conftest.$ac_ext
8050 LIBS=$ac_check_lib_save_LIBS
8052 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8053 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8054 if test $ac_cv_lib_dld_dld_link = yes; then
8056 cat >>confdefs.h <<\_ACEOF
8060 LIBADD_DL="$LIBADD_DL -ldld"
8062 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8063 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8064 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 cat >conftest.$ac_ext <<_ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8075 #define _dyld_func_lookup innocuous__dyld_func_lookup
8077 /* System header to define __stub macros and hopefully few prototypes,
8078 which can conflict with char _dyld_func_lookup (); below.
8079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8080 <limits.h> exists even on freestanding compilers. */
8083 # include <limits.h>
8085 # include <assert.h>
8088 #undef _dyld_func_lookup
8090 /* Override any gcc2 internal prototype to avoid an error. */
8095 /* We use char because int might match the return type of a gcc2
8096 builtin and then its argument prototype would still apply. */
8097 char _dyld_func_lookup ();
8098 /* The GNU C library defines this for functions which it implements
8099 to always fail with ENOSYS. Some functions are actually named
8100 something starting with __ and the normal name is an alias. */
8101 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8104 char (*f) () = _dyld_func_lookup;
8113 return f != _dyld_func_lookup;
8118 rm -f conftest.$ac_objext conftest$ac_exeext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8120 (eval $ac_link) 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -z "$ac_c_werror_flag"
8128 || test ! -s conftest.err'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest$ac_exeext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_cv_func__dyld_func_lookup=yes
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 ac_cv_func__dyld_func_lookup=no
8147 rm -f conftest.err conftest.$ac_objext \
8148 conftest$ac_exeext conftest.$ac_ext
8150 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8151 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8152 if test $ac_cv_func__dyld_func_lookup = yes; then
8154 cat >>confdefs.h <<\_ACEOF
8168 rm -f conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8180 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8182 lt_save_LIBS="$LIBS"
8183 LIBS="$LIBS $LIBADD_DL"
8185 for ac_func in dlerror
8187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8188 echo "$as_me:$LINENO: checking for $ac_func" >&5
8189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8190 if eval "test \"\${$as_ac_var+set}\" = set"; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8201 #define $ac_func innocuous_$ac_func
8203 /* System header to define __stub macros and hopefully few prototypes,
8204 which can conflict with char $ac_func (); below.
8205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8206 <limits.h> exists even on freestanding compilers. */
8209 # include <limits.h>
8211 # include <assert.h>
8216 /* Override any gcc2 internal prototype to avoid an error. */
8221 /* We use char because int might match the return type of a gcc2
8222 builtin and then its argument prototype would still apply. */
8224 /* The GNU C library defines this for functions which it implements
8225 to always fail with ENOSYS. Some functions are actually named
8226 something starting with __ and the normal name is an alias. */
8227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8230 char (*f) () = $ac_func;
8239 return f != $ac_func;
8244 rm -f conftest.$ac_objext conftest$ac_exeext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246 (eval $ac_link) 2>conftest.er1
8248 grep -v '^ *+' conftest.er1 >conftest.err
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -z "$ac_c_werror_flag"
8254 || test ! -s conftest.err'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try='test -s conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 eval "$as_ac_var=yes"
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 eval "$as_ac_var=no"
8273 rm -f conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8278 if test `eval echo '${'$as_ac_var'}'` = yes; then
8279 cat >>confdefs.h <<_ACEOF
8280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8286 LIBS="$lt_save_LIBS"
8289 ac_cpp='$CPP $CPPFLAGS'
8290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8297 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8298 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 ac_cv_sys_symbol_underscore=no
8302 cat > conftest.$ac_ext <<EOF
8303 void nm_test_func(){}
8304 int main(){nm_test_func;return 0;}
8306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8307 (eval $ac_compile) 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; then
8311 # Now try to grab the symbols.
8312 ac_nlist=conftest.nm
8313 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8314 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && test -s "$ac_nlist"; then
8318 # See whether the symbols have a leading underscore.
8319 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8320 ac_cv_sys_symbol_underscore=yes
8322 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8325 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8329 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8332 echo "configure: failed program was:" >&5
8338 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8339 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8342 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8343 if test x"$libltdl_cv_func_dlopen" = xyes ||
8344 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8345 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8346 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8347 if test "${libltdl_cv_need_uscore+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 libltdl_cv_need_uscore=unknown
8352 LIBS="$LIBS $LIBADD_DL"
8353 if test "$cross_compiling" = yes; then :
8354 libltdl_cv_need_uscore=cross
8356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8357 lt_status=$lt_dlunknown
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8359 "configure"
8360 #include "confdefs.h"
8369 # define LT_DLGLOBAL RTLD_GLOBAL
8372 # define LT_DLGLOBAL DL_GLOBAL
8374 # define LT_DLGLOBAL 0
8378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8379 find out it does not work in some platform. */
8380 #ifndef LT_DLLAZY_OR_NOW
8382 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8385 # define LT_DLLAZY_OR_NOW DL_LAZY
8388 # define LT_DLLAZY_OR_NOW RTLD_NOW
8391 # define LT_DLLAZY_OR_NOW DL_NOW
8393 # define LT_DLLAZY_OR_NOW 0
8401 extern "C" void exit (int);
8404 void fnord() { int i=42;}
8407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8408 int status = $lt_dlunknown;
8412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8413 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8414 /* dlclose (self); */
8420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8421 (eval $ac_link) 2>&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8425 (./conftest; exit; ) 2>/dev/null
8428 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8429 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8433 # compilation failed
8442 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8443 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8447 if test x"$libltdl_cv_need_uscore" = xyes; then
8449 cat >>confdefs.h <<\_ACEOF
8450 #define NEED_USCORE 1
8456 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8457 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8458 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 # PORTME does your system automatically load deplibs for dlopen?
8462 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8463 # For now, we just catch OSes we know something about -- in the
8464 # future, we'll try test this programmatically.
8465 libltdl_cv_sys_dlopen_deplibs=unknown
8467 aix3*|aix4.1.*|aix4.2.*)
8468 # Unknown whether this is true for these versions of AIX, but
8469 # we want this `case' here to explicitly catch those versions.
8470 libltdl_cv_sys_dlopen_deplibs=unknown
8473 libltdl_cv_sys_dlopen_deplibs=yes
8476 # Assuming the user has installed a libdl from somewhere, this is true
8477 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8478 libltdl_cv_sys_dlopen_deplibs=yes
8480 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8481 # GNU and its variants, using gnu ld.so (Glibc)
8482 libltdl_cv_sys_dlopen_deplibs=yes
8485 libltdl_cv_sys_dlopen_deplibs=yes
8487 irix[12345]*|irix6.[01]*)
8488 # Catch all versions of IRIX before 6.2, and indicate that we don't
8489 # know how it worked for any of those versions.
8490 libltdl_cv_sys_dlopen_deplibs=unknown
8493 # The case above catches anything before 6.2, and it's known that
8494 # at 6.2 and later dlopen does load deplibs.
8495 libltdl_cv_sys_dlopen_deplibs=yes
8498 libltdl_cv_sys_dlopen_deplibs=yes
8501 libltdl_cv_sys_dlopen_deplibs=yes
8504 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8505 # it did *not* use an RPATH in a shared library to find objects the
8506 # library depends on, so we explictly say `no'.
8507 libltdl_cv_sys_dlopen_deplibs=no
8509 osf5.0|osf5.0a|osf5.1)
8510 # dlopen *does* load deplibs and with the right loader patch applied
8511 # it even uses RPATH in a shared library to search for shared objects
8512 # that the library depends on, but there's no easy way to know if that
8513 # patch is installed. Since this is the case, all we can really
8514 # say is unknown -- it depends on the patch being installed. If
8515 # it is, this changes to `yes'. Without it, it would be `no'.
8516 libltdl_cv_sys_dlopen_deplibs=unknown
8519 # the two cases above should catch all versions of osf <= 5.1. Read
8520 # the comments above for what we know about them.
8521 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8522 # is used to find them so we can finally say `yes'.
8523 libltdl_cv_sys_dlopen_deplibs=yes
8526 libltdl_cv_sys_dlopen_deplibs=yes
8531 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8532 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8533 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8535 cat >>confdefs.h <<\_ACEOF
8536 #define LTDL_DLOPEN_DEPLIBS 1
8542 for ac_header in argz.h
8544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8546 echo "$as_me:$LINENO: checking for $ac_header" >&5
8547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8554 # Is the header compilable?
8555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563 $ac_includes_default
8564 #include <$ac_header>
8566 rm -f conftest.$ac_objext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568 (eval $ac_compile) 2>conftest.er1
8570 grep -v '^ *+' conftest.er1 >conftest.err
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -z "$ac_c_werror_flag"
8576 || test ! -s conftest.err'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest.$ac_objext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_header_compiler=yes
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_header_compiler=no
8595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8597 echo "${ECHO_T}$ac_header_compiler" >&6
8599 # Is the header present?
8600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8602 cat >conftest.$ac_ext <<_ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8608 #include <$ac_header>
8610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8613 grep -v '^ *+' conftest.er1 >conftest.err
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } >/dev/null; then
8618 if test -s conftest.err; then
8619 ac_cpp_err=$ac_c_preproc_warn_flag
8620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8627 if test -z "$ac_cpp_err"; then
8628 ac_header_preproc=yes
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ac_header_preproc=no
8635 rm -f conftest.err conftest.$ac_ext
8636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8637 echo "${ECHO_T}$ac_header_preproc" >&6
8639 # So? What about this header?
8640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8646 ac_header_preproc=yes
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8663 ## ----------------------------------- ##
8664 ## Report this to llvmbugs@cs.uiuc.edu ##
8665 ## ----------------------------------- ##
8668 sed "s/^/$as_me: WARNING: /" >&2
8671 echo "$as_me:$LINENO: checking for $ac_header" >&5
8672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 eval "$as_ac_Header=\$ac_header_preproc"
8678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8683 cat >>confdefs.h <<_ACEOF
8684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8692 echo "$as_me:$LINENO: checking for error_t" >&5
8693 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8694 if test "${ac_cv_type_error_t+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 cat >conftest.$ac_ext <<_ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8712 if (sizeof (error_t))
8718 rm -f conftest.$ac_objext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8720 (eval $ac_compile) 2>conftest.er1
8722 grep -v '^ *+' conftest.er1 >conftest.err
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -z "$ac_c_werror_flag"
8728 || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest.$ac_objext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_type_error_t=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_cv_type_error_t=no
8747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8749 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8750 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8751 if test $ac_cv_type_error_t = yes; then
8753 cat >>confdefs.h <<_ACEOF
8754 #define HAVE_ERROR_T 1
8760 cat >>confdefs.h <<\_ACEOF
8772 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8775 echo "$as_me:$LINENO: checking for $ac_func" >&5
8776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8777 if eval "test \"\${$as_ac_var+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. */
8786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8788 #define $ac_func innocuous_$ac_func
8790 /* System header to define __stub macros and hopefully few prototypes,
8791 which can conflict with char $ac_func (); below.
8792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8793 <limits.h> exists even on freestanding compilers. */
8796 # include <limits.h>
8798 # include <assert.h>
8803 /* Override any gcc2 internal prototype to avoid an error. */
8808 /* We use char because int might match the return type of a gcc2
8809 builtin and then its argument prototype would still apply. */
8811 /* The GNU C library defines this for functions which it implements
8812 to always fail with ENOSYS. Some functions are actually named
8813 something starting with __ and the normal name is an alias. */
8814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8817 char (*f) () = $ac_func;
8826 return f != $ac_func;
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8833 (eval $ac_link) 2>conftest.er1
8835 grep -v '^ *+' conftest.er1 >conftest.err
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -z "$ac_c_werror_flag"
8841 || test ! -s conftest.err'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; } &&
8847 { ac_try='test -s conftest$ac_exeext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 eval "$as_ac_var=yes"
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8858 eval "$as_ac_var=no"
8860 rm -f conftest.err conftest.$ac_objext \
8861 conftest$ac_exeext conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8865 if test `eval echo '${'$as_ac_var'}'` = yes; then
8866 cat >>confdefs.h <<_ACEOF
8867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8900 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8905 echo "$as_me:$LINENO: checking for $ac_header" >&5
8906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8913 # Is the header compilable?
8914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 $ac_includes_default
8923 #include <$ac_header>
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927 (eval $ac_compile) 2>conftest.er1
8929 grep -v '^ *+' conftest.er1 >conftest.err
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest.$ac_objext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_header_compiler=yes
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 ac_header_compiler=no
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8956 echo "${ECHO_T}$ac_header_compiler" >&6
8958 # Is the header present?
8959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 #include <$ac_header>
8969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8972 grep -v '^ *+' conftest.er1 >conftest.err
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } >/dev/null; then
8977 if test -s conftest.err; then
8978 ac_cpp_err=$ac_c_preproc_warn_flag
8979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8986 if test -z "$ac_cpp_err"; then
8987 ac_header_preproc=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_header_preproc=no
8994 rm -f conftest.err conftest.$ac_ext
8995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8996 echo "${ECHO_T}$ac_header_preproc" >&6
8998 # So? What about this header?
8999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9005 ac_header_preproc=yes
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9022 ## ----------------------------------- ##
9023 ## Report this to llvmbugs@cs.uiuc.edu ##
9024 ## ----------------------------------- ##
9027 sed "s/^/$as_me: WARNING: /" >&2
9030 echo "$as_me:$LINENO: checking for $ac_header" >&5
9031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 eval "$as_ac_Header=\$ac_header_preproc"
9037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9042 cat >>confdefs.h <<_ACEOF
9043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9054 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9058 echo "$as_me:$LINENO: checking for $ac_header" >&5
9059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9066 # Is the header compilable?
9067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9069 cat >conftest.$ac_ext <<_ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9075 $ac_includes_default
9076 #include <$ac_header>
9078 rm -f conftest.$ac_objext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080 (eval $ac_compile) 2>conftest.er1
9082 grep -v '^ *+' conftest.er1 >conftest.err
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest.$ac_objext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_header_compiler=yes
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 ac_header_compiler=no
9107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9109 echo "${ECHO_T}$ac_header_compiler" >&6
9111 # Is the header present?
9112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9114 cat >conftest.$ac_ext <<_ACEOF
9117 cat confdefs.h >>conftest.$ac_ext
9118 cat >>conftest.$ac_ext <<_ACEOF
9119 /* end confdefs.h. */
9120 #include <$ac_header>
9122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } >/dev/null; then
9130 if test -s conftest.err; then
9131 ac_cpp_err=$ac_c_preproc_warn_flag
9132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9139 if test -z "$ac_cpp_err"; then
9140 ac_header_preproc=yes
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9145 ac_header_preproc=no
9147 rm -f conftest.err conftest.$ac_ext
9148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9149 echo "${ECHO_T}$ac_header_preproc" >&6
9151 # So? What about this header?
9152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9158 ac_header_preproc=yes
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9175 ## ----------------------------------- ##
9176 ## Report this to llvmbugs@cs.uiuc.edu ##
9177 ## ----------------------------------- ##
9180 sed "s/^/$as_me: WARNING: /" >&2
9183 echo "$as_me:$LINENO: checking for $ac_header" >&5
9184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 eval "$as_ac_Header=\$ac_header_preproc"
9190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9195 cat >>confdefs.h <<_ACEOF
9196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9205 for ac_header in string.h strings.h
9207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9209 echo "$as_me:$LINENO: checking for $ac_header" >&5
9210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9217 # Is the header compilable?
9218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9220 cat >conftest.$ac_ext <<_ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9226 $ac_includes_default
9227 #include <$ac_header>
9229 rm -f conftest.$ac_objext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9231 (eval $ac_compile) 2>conftest.er1
9233 grep -v '^ *+' conftest.er1 >conftest.err
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } &&
9238 { ac_try='test -z "$ac_c_werror_flag"
9239 || test ! -s conftest.err'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; } &&
9245 { ac_try='test -s conftest.$ac_objext'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; }; then
9251 ac_header_compiler=yes
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9256 ac_header_compiler=no
9258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9260 echo "${ECHO_T}$ac_header_compiler" >&6
9262 # Is the header present?
9263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9265 cat >conftest.$ac_ext <<_ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9271 #include <$ac_header>
9273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9276 grep -v '^ *+' conftest.er1 >conftest.err
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } >/dev/null; then
9281 if test -s conftest.err; then
9282 ac_cpp_err=$ac_c_preproc_warn_flag
9283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9290 if test -z "$ac_cpp_err"; then
9291 ac_header_preproc=yes
9293 echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9296 ac_header_preproc=no
9298 rm -f conftest.err conftest.$ac_ext
9299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9300 echo "${ECHO_T}$ac_header_preproc" >&6
9302 # So? What about this header?
9303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9309 ac_header_preproc=yes
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9326 ## ----------------------------------- ##
9327 ## Report this to llvmbugs@cs.uiuc.edu ##
9328 ## ----------------------------------- ##
9331 sed "s/^/$as_me: WARNING: /" >&2
9334 echo "$as_me:$LINENO: checking for $ac_header" >&5
9335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 eval "$as_ac_Header=\$ac_header_preproc"
9341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9346 cat >>confdefs.h <<_ACEOF
9347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9357 for ac_func in strchr index
9359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9360 echo "$as_me:$LINENO: checking for $ac_func" >&5
9361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9362 if eval "test \"\${$as_ac_var+set}\" = set"; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 cat >conftest.$ac_ext <<_ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9373 #define $ac_func innocuous_$ac_func
9375 /* System header to define __stub macros and hopefully few prototypes,
9376 which can conflict with char $ac_func (); below.
9377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9378 <limits.h> exists even on freestanding compilers. */
9381 # include <limits.h>
9383 # include <assert.h>
9388 /* Override any gcc2 internal prototype to avoid an error. */
9393 /* We use char because int might match the return type of a gcc2
9394 builtin and then its argument prototype would still apply. */
9396 /* The GNU C library defines this for functions which it implements
9397 to always fail with ENOSYS. Some functions are actually named
9398 something starting with __ and the normal name is an alias. */
9399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9402 char (*f) () = $ac_func;
9411 return f != $ac_func;
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418 (eval $ac_link) 2>conftest.er1
9420 grep -v '^ *+' conftest.er1 >conftest.err
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -z "$ac_c_werror_flag"
9426 || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 eval "$as_ac_var=yes"
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 eval "$as_ac_var=no"
9445 rm -f conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9450 if test `eval echo '${'$as_ac_var'}'` = yes; then
9451 cat >>confdefs.h <<_ACEOF
9452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9460 for ac_func in strrchr rindex
9462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9463 echo "$as_me:$LINENO: checking for $ac_func" >&5
9464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9465 if eval "test \"\${$as_ac_var+set}\" = set"; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9476 #define $ac_func innocuous_$ac_func
9478 /* System header to define __stub macros and hopefully few prototypes,
9479 which can conflict with char $ac_func (); below.
9480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481 <limits.h> exists even on freestanding compilers. */
9484 # include <limits.h>
9486 # include <assert.h>
9491 /* Override any gcc2 internal prototype to avoid an error. */
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9499 /* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9505 char (*f) () = $ac_func;
9514 return f != $ac_func;
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>conftest.er1
9523 grep -v '^ *+' conftest.er1 >conftest.err
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -z "$ac_c_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try='test -s conftest$ac_exeext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 eval "$as_ac_var=yes"
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 eval "$as_ac_var=no"
9548 rm -f conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
9551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9553 if test `eval echo '${'$as_ac_var'}'` = yes; then
9554 cat >>confdefs.h <<_ACEOF
9555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9563 for ac_func in memcpy bcopy
9565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9566 echo "$as_me:$LINENO: checking for $ac_func" >&5
9567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9568 if eval "test \"\${$as_ac_var+set}\" = set"; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 cat >conftest.$ac_ext <<_ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9579 #define $ac_func innocuous_$ac_func
9581 /* System header to define __stub macros and hopefully few prototypes,
9582 which can conflict with char $ac_func (); below.
9583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9584 <limits.h> exists even on freestanding compilers. */
9587 # include <limits.h>
9589 # include <assert.h>
9594 /* Override any gcc2 internal prototype to avoid an error. */
9599 /* We use char because int might match the return type of a gcc2
9600 builtin and then its argument prototype would still apply. */
9602 /* The GNU C library defines this for functions which it implements
9603 to always fail with ENOSYS. Some functions are actually named
9604 something starting with __ and the normal name is an alias. */
9605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9608 char (*f) () = $ac_func;
9617 return f != $ac_func;
9622 rm -f conftest.$ac_objext conftest$ac_exeext
9623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9624 (eval $ac_link) 2>conftest.er1
9626 grep -v '^ *+' conftest.er1 >conftest.err
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -z "$ac_c_werror_flag"
9632 || test ! -s conftest.err'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest$ac_exeext'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 eval "$as_ac_var=yes"
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 eval "$as_ac_var=no"
9651 rm -f conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9656 if test `eval echo '${'$as_ac_var'}'` = yes; then
9657 cat >>confdefs.h <<_ACEOF
9658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9666 for ac_func in memmove strcmp
9668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9669 echo "$as_me:$LINENO: checking for $ac_func" >&5
9670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9671 if eval "test \"\${$as_ac_var+set}\" = set"; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 cat >conftest.$ac_ext <<_ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9682 #define $ac_func innocuous_$ac_func
9684 /* System header to define __stub macros and hopefully few prototypes,
9685 which can conflict with char $ac_func (); below.
9686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9687 <limits.h> exists even on freestanding compilers. */
9690 # include <limits.h>
9692 # include <assert.h>
9697 /* Override any gcc2 internal prototype to avoid an error. */
9702 /* We use char because int might match the return type of a gcc2
9703 builtin and then its argument prototype would still apply. */
9705 /* The GNU C library defines this for functions which it implements
9706 to always fail with ENOSYS. Some functions are actually named
9707 something starting with __ and the normal name is an alias. */
9708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9711 char (*f) () = $ac_func;
9720 return f != $ac_func;
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727 (eval $ac_link) 2>conftest.er1
9729 grep -v '^ *+' conftest.er1 >conftest.err
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag"
9735 || test ! -s conftest.err'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 eval "$as_ac_var=yes"
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 eval "$as_ac_var=no"
9754 rm -f conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
9757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9759 if test `eval echo '${'$as_ac_var'}'` = yes; then
9760 cat >>confdefs.h <<_ACEOF
9761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9770 for ac_func in closedir opendir readdir
9772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9773 echo "$as_me:$LINENO: checking for $ac_func" >&5
9774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9775 if eval "test \"\${$as_ac_var+set}\" = set"; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 cat >conftest.$ac_ext <<_ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9786 #define $ac_func innocuous_$ac_func
9788 /* System header to define __stub macros and hopefully few prototypes,
9789 which can conflict with char $ac_func (); below.
9790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9791 <limits.h> exists even on freestanding compilers. */
9794 # include <limits.h>
9796 # include <assert.h>
9801 /* Override any gcc2 internal prototype to avoid an error. */
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9809 /* The GNU C library defines this for functions which it implements
9810 to always fail with ENOSYS. Some functions are actually named
9811 something starting with __ and the normal name is an alias. */
9812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9815 char (*f) () = $ac_func;
9824 return f != $ac_func;
9829 rm -f conftest.$ac_objext conftest$ac_exeext
9830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9831 (eval $ac_link) 2>conftest.er1
9833 grep -v '^ *+' conftest.er1 >conftest.err
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } &&
9838 { ac_try='test -z "$ac_c_werror_flag"
9839 || test ! -s conftest.err'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 eval "$as_ac_var=yes"
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 eval "$as_ac_var=no"
9858 rm -f conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9863 if test `eval echo '${'$as_ac_var'}'` = yes; then
9864 cat >>confdefs.h <<_ACEOF
9865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9872 # Check whether --enable-shared or --disable-shared was given.
9873 if test "${enable_shared+set}" = set; then
9874 enableval="$enable_shared"
9875 p=${PACKAGE-default}
9877 yes) enable_shared=yes ;;
9878 no) enable_shared=no ;;
9881 # Look at the argument we got. We use all the common list separators.
9882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9883 for pkg in $enableval; do
9885 if test "X$pkg" = "X$p"; then
9896 # Check whether --enable-static or --disable-static was given.
9897 if test "${enable_static+set}" = set; then
9898 enableval="$enable_static"
9899 p=${PACKAGE-default}
9901 yes) enable_static=yes ;;
9902 no) enable_static=no ;;
9905 # Look at the argument we got. We use all the common list separators.
9906 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9907 for pkg in $enableval; do
9909 if test "X$pkg" = "X$p"; then
9920 # Check whether --enable-fast-install or --disable-fast-install was given.
9921 if test "${enable_fast_install+set}" = set; then
9922 enableval="$enable_fast_install"
9923 p=${PACKAGE-default}
9925 yes) enable_fast_install=yes ;;
9926 no) enable_fast_install=no ;;
9928 enable_fast_install=no
9929 # Look at the argument we got. We use all the common list separators.
9930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9931 for pkg in $enableval; do
9933 if test "X$pkg" = "X$p"; then
9934 enable_fast_install=yes
9941 enable_fast_install=yes
9944 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9945 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9946 if test "${lt_cv_path_SED+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 # Loop through the user's path and test for sed and gsed.
9950 # Then use that list of sed's as ones to test for truncation.
9951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955 test -z "$as_dir" && as_dir=.
9956 for lt_ac_prog in sed gsed; do
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9959 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9966 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9967 # along with /bin/sed that truncates output.
9968 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9969 test ! -f $lt_ac_sed && break
9970 cat /dev/null > conftest.in
9972 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9973 # Check for GNU sed and select it if it is found.
9974 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9975 lt_cv_path_SED=$lt_ac_sed
9979 cat conftest.in conftest.in >conftest.tmp
9980 mv conftest.tmp conftest.in
9981 cp conftest.in conftest.nl
9983 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9984 cmp -s conftest.out conftest.nl || break
9985 # 10000 chars as input seems more than enough
9986 test $lt_ac_count -gt 10 && break
9987 lt_ac_count=`expr $lt_ac_count + 1`
9988 if test $lt_ac_count -gt $lt_ac_max; then
9989 lt_ac_max=$lt_ac_count
9990 lt_cv_path_SED=$lt_ac_sed
9998 echo "$as_me:$LINENO: result: $SED" >&5
9999 echo "${ECHO_T}$SED" >&6
10002 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10003 if test "${with_gnu_ld+set}" = set; then
10004 withval="$with_gnu_ld"
10005 test "$withval" = no || with_gnu_ld=yes
10010 if test "$GCC" = yes; then
10011 # Check if gcc -print-prog-name=ld gives a path.
10012 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10013 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10016 # gcc leaves a trailing carriage return which upsets mingw
10017 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10019 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10022 # Accept absolute paths.
10024 re_direlt='/[^/][^/]*/\.\./'
10025 # Canonicalize the pathname of ld
10026 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10027 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10028 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10030 test -z "$LD" && LD="$ac_prog"
10033 # If it fails, then pretend we aren't using GCC.
10037 # If it is relative, then search for the first ld in PATH.
10038 with_gnu_ld=unknown
10041 elif test "$with_gnu_ld" = yes; then
10042 echo "$as_me:$LINENO: checking for GNU ld" >&5
10043 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10045 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10046 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10048 if test "${lt_cv_path_LD+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 if test -z "$LD"; then
10052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10053 for ac_dir in $PATH; do
10055 test -z "$ac_dir" && ac_dir=.
10056 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10057 lt_cv_path_LD="$ac_dir/$ac_prog"
10058 # Check to see if the program is GNU ld. I'd rather use --version,
10059 # but apparently some GNU ld's only accept -v.
10060 # Break only if it was the GNU/non-GNU ld that we prefer.
10061 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10062 *GNU* | *'with BFD'*)
10063 test "$with_gnu_ld" != no && break
10066 test "$with_gnu_ld" != yes && break
10073 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10077 LD="$lt_cv_path_LD"
10078 if test -n "$LD"; then
10079 echo "$as_me:$LINENO: result: $LD" >&5
10080 echo "${ECHO_T}$LD" >&6
10082 echo "$as_me:$LINENO: result: no" >&5
10083 echo "${ECHO_T}no" >&6
10085 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10086 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10087 { (exit 1); exit 1; }; }
10088 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10089 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10090 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10094 case `$LD -v 2>&1 </dev/null` in
10095 *GNU* | *'with BFD'*)
10096 lt_cv_prog_gnu_ld=yes
10099 lt_cv_prog_gnu_ld=no
10103 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10104 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10105 with_gnu_ld=$lt_cv_prog_gnu_ld
10108 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10109 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10110 if test "${lt_cv_ld_reload_flag+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 lt_cv_ld_reload_flag='-r'
10115 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10116 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10117 reload_flag=$lt_cv_ld_reload_flag
10118 case $reload_flag in
10120 *) reload_flag=" $reload_flag" ;;
10122 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10125 if test "$GCC" = yes; then
10126 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10128 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10133 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10134 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10135 if test "${lt_cv_deplibs_check_method+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 lt_cv_file_magic_cmd='$MAGIC_CMD'
10139 lt_cv_file_magic_test_file=
10140 lt_cv_deplibs_check_method='unknown'
10141 # Need to set the preceding variable on all platforms that support
10142 # interlibrary dependencies.
10143 # 'none' -- dependencies not supported.
10144 # `unknown' -- same as none, but documents that we really don't know.
10145 # 'pass_all' -- all dependencies passed with no checks.
10146 # 'test_compile' -- check by making test program.
10147 # 'file_magic [[regex]]' -- check by looking for files in library path
10148 # which responds to the $file_magic_cmd with a given extended regex.
10149 # If you have `file' or equivalent on your system and you're not sure
10150 # whether `pass_all' will *always* work, you probably want this one.
10154 lt_cv_deplibs_check_method=pass_all
10158 lt_cv_deplibs_check_method=pass_all
10162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10163 lt_cv_file_magic_cmd='/usr/bin/file -L'
10164 lt_cv_file_magic_test_file=/shlib/libc.so
10168 # func_win32_libid is a shell function defined in ltmain.sh
10169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10170 lt_cv_file_magic_cmd='func_win32_libid'
10174 # Base MSYS/MinGW do not provide the 'file' command needed by
10175 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10176 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10177 lt_cv_file_magic_cmd='$OBJDUMP -f'
10180 darwin* | rhapsody*)
10181 lt_cv_deplibs_check_method=pass_all
10184 freebsd* | kfreebsd*-gnu)
10185 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10188 # Not sure whether the presence of OpenBSD here was a mistake.
10189 # Let's accept both of them until this is cleared up.
10190 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10191 lt_cv_file_magic_cmd=/usr/bin/file
10192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10196 lt_cv_deplibs_check_method=pass_all
10201 lt_cv_deplibs_check_method=pass_all
10204 hpux10.20* | hpux11*)
10205 lt_cv_file_magic_cmd=/usr/bin/file
10206 case "$host_cpu" in
10208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10209 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10212 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]'
10213 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10217 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10222 irix5* | irix6* | nonstopux*)
10224 *-32|*"-32 ") libmagic=32-bit;;
10225 *-n32|*"-n32 ") libmagic=N32;;
10226 *-64|*"-64 ") libmagic=64-bit;;
10227 *) libmagic=never-match;;
10229 lt_cv_deplibs_check_method=pass_all
10232 # This must be Linux ELF.
10234 lt_cv_deplibs_check_method=pass_all
10238 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10247 lt_cv_file_magic_cmd=/usr/bin/file
10248 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10252 lt_cv_deplibs_check_method=unknown
10256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10263 osf3* | osf4* | osf5*)
10264 lt_cv_deplibs_check_method=pass_all
10268 lt_cv_deplibs_check_method=pass_all
10272 lt_cv_deplibs_check_method=pass_all
10275 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10276 case $host_vendor in
10278 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]'
10279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10282 lt_cv_deplibs_check_method=pass_all
10285 lt_cv_file_magic_cmd='/bin/file'
10286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10289 lt_cv_file_magic_cmd='/bin/file'
10290 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10291 lt_cv_file_magic_test_file=/lib/libc.so
10294 lt_cv_deplibs_check_method=pass_all
10299 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10300 lt_cv_deplibs_check_method=pass_all
10305 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10306 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10307 file_magic_cmd=$lt_cv_file_magic_cmd
10308 deplibs_check_method=$lt_cv_deplibs_check_method
10309 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10313 # If no C compiler was specified, use CC.
10316 # Allow CC to be a program name with arguments.
10319 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10320 if test "${enable_libtool_lock+set}" = set; then
10321 enableval="$enable_libtool_lock"
10324 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10326 # Some flags need to be propagated to the compiler or linker for good
10330 # Find out which ABI we are using.
10331 echo 'int i;' > conftest.$ac_ext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; then
10337 case `/usr/bin/file conftest.$ac_objext` in
10339 HPUX_IA64_MODE="32"
10342 HPUX_IA64_MODE="64"
10349 # Find out which ABI we are using.
10350 echo '#line 10350 "configure"' > conftest.$ac_ext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352 (eval $ac_compile) 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; then
10356 if test "$lt_cv_prog_gnu_ld" = yes; then
10357 case `/usr/bin/file conftest.$ac_objext` in
10359 LD="${LD-ld} -melf32bsmip"
10362 LD="${LD-ld} -melf32bmipn32"
10365 LD="${LD-ld} -melf64bmip"
10369 case `/usr/bin/file conftest.$ac_objext` in
10385 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10386 # Find out which ABI we are using.
10387 echo 'int i;' > conftest.$ac_ext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10389 (eval $ac_compile) 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; then
10393 case "`/usr/bin/file conftest.o`" in
10397 LD="${LD-ld} -m elf_i386"
10399 ppc64-*linux*|powerpc64-*linux*)
10400 LD="${LD-ld} -m elf32ppclinux"
10403 LD="${LD-ld} -m elf_s390"
10406 LD="${LD-ld} -m elf32_sparc"
10413 LD="${LD-ld} -m elf_x86_64"
10415 ppc*-*linux*|powerpc*-*linux*)
10416 LD="${LD-ld} -m elf64ppc"
10419 LD="${LD-ld} -m elf64_s390"
10422 LD="${LD-ld} -m elf64_sparc"
10432 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10433 SAVE_CFLAGS="$CFLAGS"
10434 CFLAGS="$CFLAGS -belf"
10435 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10436 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10437 if test "${lt_cv_cc_needs_belf+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 ac_cpp='$CPP $CPPFLAGS'
10442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10446 cat >conftest.$ac_ext <<_ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456 (eval $ac_link) 2>conftest.er1
10458 grep -v '^ *+' conftest.er1 >conftest.err
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag"
10464 || test ! -s conftest.err'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; } &&
10470 { ac_try='test -s conftest$ac_exeext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 lt_cv_cc_needs_belf=yes
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 lt_cv_cc_needs_belf=no
10483 rm -f conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
10486 ac_cpp='$CPP $CPPFLAGS'
10487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10492 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10493 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10494 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10495 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10496 CFLAGS="$SAVE_CFLAGS"
10502 need_locks="$enable_libtool_lock"
10507 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10508 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10509 (test "X$CXX" != "Xg++"))) ; then
10511 ac_cpp='$CXXCPP $CPPFLAGS'
10512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10515 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10516 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10517 if test -z "$CXXCPP"; then
10518 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 # Double quotes because CXXCPP needs to be expanded
10522 for CXXCPP in "$CXX -E" "/lib/cpp"
10524 ac_preproc_ok=false
10525 for ac_cxx_preproc_warn_flag in '' yes
10527 # Use a header file that comes with gcc, so configuring glibc
10528 # with a fresh cross-compiler works.
10529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10530 # <limits.h> exists even on freestanding compilers.
10531 # On the NeXT, cc -E runs the code through the compiler's parser,
10532 # not just through cpp. "Syntax error" is here to catch this case.
10533 cat >conftest.$ac_ext <<_ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10540 # include <limits.h>
10542 # include <assert.h>
10546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10549 grep -v '^ *+' conftest.er1 >conftest.err
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } >/dev/null; then
10554 if test -s conftest.err; then
10555 ac_cpp_err=$ac_cxx_preproc_warn_flag
10556 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10563 if test -z "$ac_cpp_err"; then
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10569 # Broken: fails on valid input.
10572 rm -f conftest.err conftest.$ac_ext
10574 # OK, works on sane cases. Now check whether non-existent headers
10575 # can be detected and how.
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <ac_nonexistent.h>
10584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10587 grep -v '^ *+' conftest.er1 >conftest.err
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } >/dev/null; then
10592 if test -s conftest.err; then
10593 ac_cpp_err=$ac_cxx_preproc_warn_flag
10594 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10601 if test -z "$ac_cpp_err"; then
10602 # Broken: success on invalid input.
10605 echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10608 # Passes both tests.
10612 rm -f conftest.err conftest.$ac_ext
10615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10616 rm -f conftest.err conftest.$ac_ext
10617 if $ac_preproc_ok; then
10622 ac_cv_prog_CXXCPP=$CXXCPP
10625 CXXCPP=$ac_cv_prog_CXXCPP
10627 ac_cv_prog_CXXCPP=$CXXCPP
10629 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10630 echo "${ECHO_T}$CXXCPP" >&6
10631 ac_preproc_ok=false
10632 for ac_cxx_preproc_warn_flag in '' yes
10634 # Use a header file that comes with gcc, so configuring glibc
10635 # with a fresh cross-compiler works.
10636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10637 # <limits.h> exists even on freestanding compilers.
10638 # On the NeXT, cc -E runs the code through the compiler's parser,
10639 # not just through cpp. "Syntax error" is here to catch this case.
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10647 # include <limits.h>
10649 # include <assert.h>
10653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10656 grep -v '^ *+' conftest.er1 >conftest.err
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } >/dev/null; then
10661 if test -s conftest.err; then
10662 ac_cpp_err=$ac_cxx_preproc_warn_flag
10663 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10670 if test -z "$ac_cpp_err"; then
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 # Broken: fails on valid input.
10679 rm -f conftest.err conftest.$ac_ext
10681 # OK, works on sane cases. Now check whether non-existent headers
10682 # can be detected and how.
10683 cat >conftest.$ac_ext <<_ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10689 #include <ac_nonexistent.h>
10691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10694 grep -v '^ *+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } >/dev/null; then
10699 if test -s conftest.err; then
10700 ac_cpp_err=$ac_cxx_preproc_warn_flag
10701 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10708 if test -z "$ac_cpp_err"; then
10709 # Broken: success on invalid input.
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 # Passes both tests.
10719 rm -f conftest.err conftest.$ac_ext
10722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10723 rm -f conftest.err conftest.$ac_ext
10724 if $ac_preproc_ok; then
10727 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10728 See \`config.log' for more details." >&5
10729 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10730 See \`config.log' for more details." >&2;}
10731 { (exit 1); exit 1; }; }
10735 ac_cpp='$CXXCPP $CPPFLAGS'
10736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10744 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10745 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10746 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10747 if test -n "$ac_tool_prefix"; then
10748 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10752 echo "$as_me:$LINENO: checking for $ac_word" >&5
10753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10754 if test "${ac_cv_prog_F77+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 if test -n "$F77"; then
10758 ac_cv_prog_F77="$F77" # Let the user override the test.
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10767 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 F77=$ac_cv_prog_F77
10777 if test -n "$F77"; then
10778 echo "$as_me:$LINENO: result: $F77" >&5
10779 echo "${ECHO_T}$F77" >&6
10781 echo "$as_me:$LINENO: result: no" >&5
10782 echo "${ECHO_T}no" >&6
10785 test -n "$F77" && break
10788 if test -z "$F77"; then
10790 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10792 # Extract the first word of "$ac_prog", so it can be a program name with args.
10793 set dummy $ac_prog; ac_word=$2
10794 echo "$as_me:$LINENO: checking for $ac_word" >&5
10795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10796 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 if test -n "$ac_ct_F77"; then
10800 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10809 ac_cv_prog_ac_ct_F77="$ac_prog"
10810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10819 if test -n "$ac_ct_F77"; then
10820 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10821 echo "${ECHO_T}$ac_ct_F77" >&6
10823 echo "$as_me:$LINENO: result: no" >&5
10824 echo "${ECHO_T}no" >&6
10827 test -n "$ac_ct_F77" && break
10834 # Provide some information about the compiler.
10835 echo "$as_me:10835:" \
10836 "checking for Fortran 77 compiler version" >&5
10837 ac_compiler=`set X $ac_compile; echo $2`
10838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10839 (eval $ac_compiler --version </dev/null >&5) 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }
10843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10844 (eval $ac_compiler -v </dev/null >&5) 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }
10848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10849 (eval $ac_compiler -V </dev/null >&5) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }
10855 # If we don't use `.F' as extension, the preprocessor is not run on the
10856 # input file. (Note that this only needs to work for GNU compilers.)
10857 ac_save_ext=$ac_ext
10859 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10860 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10861 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10872 rm -f conftest.$ac_objext
10873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10874 (eval $ac_compile) 2>conftest.er1
10876 grep -v '^ *+' conftest.er1 >conftest.err
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
10881 { ac_try='test -z "$ac_f77_werror_flag"
10882 || test ! -s conftest.err'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest.$ac_objext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_compiler_gnu=yes
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10902 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10905 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10906 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10907 ac_ext=$ac_save_ext
10908 ac_test_FFLAGS=${FFLAGS+set}
10909 ac_save_FFLAGS=$FFLAGS
10911 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10912 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10913 if test "${ac_cv_prog_f77_g+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 cat >conftest.$ac_ext <<_ACEOF
10922 rm -f conftest.$ac_objext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924 (eval $ac_compile) 2>conftest.er1
10926 grep -v '^ *+' conftest.er1 >conftest.err
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -z "$ac_f77_werror_flag"
10932 || test ! -s conftest.err'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try='test -s conftest.$ac_objext'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
10944 ac_cv_prog_f77_g=yes
10946 echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10949 ac_cv_prog_f77_g=no
10951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10954 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10955 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10956 if test "$ac_test_FFLAGS" = set; then
10957 FFLAGS=$ac_save_FFLAGS
10958 elif test $ac_cv_prog_f77_g = yes; then
10959 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10965 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10972 G77=`test $ac_compiler_gnu = yes && echo yes`
10974 ac_cpp='$CPP $CPPFLAGS'
10975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10981 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10983 # find the maximum length of command line arguments
10984 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10985 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10986 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 # On DJGPP, this test can blow up pretty badly due to problems in libc
10995 # (any single argument exceeding 2000 bytes causes a buffer overrun
10996 # during glob expansion). Even if it were fixed, the result of this
10997 # check would be larger than it should be.
10998 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11002 # Under GNU Hurd, this test is not required because there is
11003 # no limit to the length of command line arguments.
11004 # Libtool will interpret -1 as no limit whatsoever
11005 lt_cv_sys_max_cmd_len=-1;
11009 # On Win9x/ME, this test blows up -- it succeeds, but takes
11010 # about 5 minutes as the teststring grows exponentially.
11011 # Worse, since 9x/ME are not pre-emptively multitasking,
11012 # you end up with a "frozen" computer, even though with patience
11013 # the test eventually succeeds (with a max line length of 256k).
11014 # Instead, let's just punt: use the minimum linelength reported by
11015 # all of the supported platforms: 8192 (on NT/2K/XP).
11016 lt_cv_sys_max_cmd_len=8192;
11020 # On AmigaOS with pdksh, this test takes hours, literally.
11021 # So we just punt and use a minimum line length of 8192.
11022 lt_cv_sys_max_cmd_len=8192;
11025 netbsd* | freebsd* | openbsd* | darwin* )
11026 # This has been around since 386BSD, at least. Likely further.
11027 if test -x /sbin/sysctl; then
11028 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11029 elif test -x /usr/sbin/sysctl; then
11030 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11032 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11034 # And add a safety zone
11035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11039 # If test is not a shell built-in, we'll probably end up computing a
11040 # maximum length that is only half of the actual maximum length, but
11042 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11043 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11044 = "XX$teststring") >/dev/null 2>&1 &&
11045 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11046 lt_cv_sys_max_cmd_len=$new_result &&
11047 test $i != 17 # 1/2 MB should be enough
11050 teststring=$teststring$teststring
11053 # Add a significant safety factor because C++ compilers can tack on massive
11054 # amounts of additional arguments before passing them to the linker.
11055 # It appears as though 1/2 is a usable value.
11056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11062 if test -n $lt_cv_sys_max_cmd_len ; then
11063 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11064 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11066 echo "$as_me:$LINENO: result: none" >&5
11067 echo "${ECHO_T}none" >&6
11073 # Check for command to grab the raw symbol name followed by C symbol from nm.
11074 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11075 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11076 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 # These are sane defaults that work on at least a few old systems.
11081 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11083 # Character class describing NM global symbol codes.
11084 symcode='[BCDEGRST]'
11086 # Regexp to match symbols that can be accessed directly from C.
11087 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11089 # Transform the above into a raw symbol and a C symbol.
11090 symxfrm='\1 \2\3 \3'
11092 # Transform an extracted symbol line into a proper C declaration
11093 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11095 # Transform an extracted symbol line into symbol name and symbol address
11096 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'"
11098 # Define system-specific variables.
11103 cygwin* | mingw* | pw32*)
11104 symcode='[ABCDGISTW]'
11106 hpux*) # Its linker distinguishes data from code symbols
11107 if test "$host_cpu" = ia64; then
11108 symcode='[ABCDEGRST]'
11110 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11111 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'"
11114 if test "$host_cpu" = ia64; then
11115 symcode='[ABCDGIRSTW]'
11116 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11117 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
11120 irix* | nonstopux*)
11121 symcode='[BCDEGRST]'
11124 symcode='[BCDEGQRST]'
11134 # Handle CRLF in mingw tool chain
11138 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11142 # If we're using GNU nm, then use its standard symbol codes.
11143 case `$NM -V 2>&1` in
11144 *GNU* | *'with BFD'*)
11145 symcode='[ABCDGIRSTW]' ;;
11148 # Try without a prefix undercore, then with it.
11149 for ac_symprfx in "" "_"; do
11151 # Write the raw and C identifiers.
11152 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11154 # Check to see that the pipe works correctly.
11158 cat > conftest.$ac_ext <<EOF
11163 void nm_test_func(){}
11167 int main(){nm_test_var='a';nm_test_func();return(0);}
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171 (eval $ac_compile) 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; then
11175 # Now try to grab the symbols.
11177 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11178 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } && test -s "$nlist"; then
11182 # Try sorting and uniquifying the output.
11183 if sort "$nlist" | uniq > "$nlist"T; then
11184 mv -f "$nlist"T "$nlist"
11189 # Make sure that we snagged all the symbols we need.
11190 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11191 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11192 cat <<EOF > conftest.$ac_ext
11198 # Now generate the symbol file.
11199 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11201 cat <<EOF >> conftest.$ac_ext
11202 #if defined (__STDC__) && __STDC__
11203 # define lt_ptr_t void *
11205 # define lt_ptr_t char *
11209 /* The mapping between symbol names and symbols. */
11214 lt_preloaded_symbols[] =
11217 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11218 cat <<\EOF >> conftest.$ac_ext
11226 # Now try linking the two files.
11227 mv conftest.$ac_objext conftstm.$ac_objext
11228 lt_save_LIBS="$LIBS"
11229 lt_save_CFLAGS="$CFLAGS"
11230 LIBS="conftstm.$ac_objext"
11231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11239 LIBS="$lt_save_LIBS"
11240 CFLAGS="$lt_save_CFLAGS"
11242 echo "cannot find nm_test_func in $nlist" >&5
11245 echo "cannot find nm_test_var in $nlist" >&5
11248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11251 echo "$progname: failed program was:" >&5
11252 cat conftest.$ac_ext >&5
11254 rm -f conftest* conftst*
11256 # Do not use the global_symbol_pipe unless it works.
11257 if test "$pipe_works" = yes; then
11260 lt_cv_sys_global_symbol_pipe=
11266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11267 lt_cv_sys_global_symbol_to_cdecl=
11269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11270 echo "$as_me:$LINENO: result: failed" >&5
11271 echo "${ECHO_T}failed" >&6
11273 echo "$as_me:$LINENO: result: ok" >&5
11274 echo "${ECHO_T}ok" >&6
11277 echo "$as_me:$LINENO: checking for objdir" >&5
11278 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11279 if test "${lt_cv_objdir+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 rm -f .libs 2>/dev/null
11283 mkdir .libs 2>/dev/null
11284 if test -d .libs; then
11287 # MS-DOS does not allow filenames that begin with a dot.
11290 rmdir .libs 2>/dev/null
11292 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11293 echo "${ECHO_T}$lt_cv_objdir" >&6
11294 objdir=$lt_cv_objdir
11302 # AIX sometimes has problems with the GCC collect2 program. For some
11303 # reason, if we set the COLLECT_NAMES environment variable, the problems
11304 # vanish in a puff of smoke.
11305 if test "X${COLLECT_NAMES+set}" != Xset; then
11307 export COLLECT_NAMES
11312 # Sed substitution that helps us do robust quoting. It backslashifies
11313 # metacharacters that are still active within double-quoted strings.
11314 Xsed='sed -e s/^X//'
11315 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11317 # Same as above, but do not quote variable references.
11318 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11320 # Sed substitution to delay expansion of an escaped shell variable in a
11321 # double_quote_subst'ed string.
11322 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11324 # Sed substitution to avoid accidental globbing in evaled expressions
11325 no_glob_subst='s/\*/\\\*/g'
11330 # Global variables:
11331 default_ofile=mklib
11332 can_build_shared=yes
11334 # All known linkers require a `.a' archive for static linking (except M$VC,
11335 # which needs '.lib').
11337 ltmain="$ac_aux_dir/ltmain.sh"
11338 ofile="$default_ofile"
11339 with_gnu_ld="$lt_cv_prog_gnu_ld"
11341 if test -n "$ac_tool_prefix"; then
11342 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11343 set dummy ${ac_tool_prefix}ar; ac_word=$2
11344 echo "$as_me:$LINENO: checking for $ac_word" >&5
11345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11346 if test "${ac_cv_prog_AR+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 if test -n "$AR"; then
11350 ac_cv_prog_AR="$AR" # Let the user override the test.
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359 ac_cv_prog_AR="${ac_tool_prefix}ar"
11360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11369 if test -n "$AR"; then
11370 echo "$as_me:$LINENO: result: $AR" >&5
11371 echo "${ECHO_T}$AR" >&6
11373 echo "$as_me:$LINENO: result: no" >&5
11374 echo "${ECHO_T}no" >&6
11378 if test -z "$ac_cv_prog_AR"; then
11380 # Extract the first word of "ar", so it can be a program name with args.
11381 set dummy ar; ac_word=$2
11382 echo "$as_me:$LINENO: checking for $ac_word" >&5
11383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 if test -n "$ac_ct_AR"; then
11388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391 for as_dir in $PATH
11394 test -z "$as_dir" && as_dir=.
11395 for ac_exec_ext in '' $ac_executable_extensions; do
11396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397 ac_cv_prog_ac_ct_AR="ar"
11398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11408 if test -n "$ac_ct_AR"; then
11409 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11410 echo "${ECHO_T}$ac_ct_AR" >&6
11412 echo "$as_me:$LINENO: result: no" >&5
11413 echo "${ECHO_T}no" >&6
11418 AR="$ac_cv_prog_AR"
11421 if test -n "$ac_tool_prefix"; then
11422 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11424 echo "$as_me:$LINENO: checking for $ac_word" >&5
11425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11426 if test "${ac_cv_prog_RANLIB+set}" = set; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 if test -n "$RANLIB"; then
11430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11436 test -z "$as_dir" && as_dir=.
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11439 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 RANLIB=$ac_cv_prog_RANLIB
11449 if test -n "$RANLIB"; then
11450 echo "$as_me:$LINENO: result: $RANLIB" >&5
11451 echo "${ECHO_T}$RANLIB" >&6
11453 echo "$as_me:$LINENO: result: no" >&5
11454 echo "${ECHO_T}no" >&6
11458 if test -z "$ac_cv_prog_RANLIB"; then
11459 ac_ct_RANLIB=$RANLIB
11460 # Extract the first word of "ranlib", so it can be a program name with args.
11461 set dummy ranlib; ac_word=$2
11462 echo "$as_me:$LINENO: checking for $ac_word" >&5
11463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11464 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 if test -n "$ac_ct_RANLIB"; then
11468 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471 for as_dir in $PATH
11474 test -z "$as_dir" && as_dir=.
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11477 ac_cv_prog_ac_ct_RANLIB="ranlib"
11478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11487 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11488 if test -n "$ac_ct_RANLIB"; then
11489 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11490 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11492 echo "$as_me:$LINENO: result: no" >&5
11493 echo "${ECHO_T}no" >&6
11496 RANLIB=$ac_ct_RANLIB
11498 RANLIB="$ac_cv_prog_RANLIB"
11501 if test -n "$ac_tool_prefix"; then
11502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11503 set dummy ${ac_tool_prefix}strip; ac_word=$2
11504 echo "$as_me:$LINENO: checking for $ac_word" >&5
11505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11506 if test "${ac_cv_prog_STRIP+set}" = set; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 if test -n "$STRIP"; then
11510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11528 STRIP=$ac_cv_prog_STRIP
11529 if test -n "$STRIP"; then
11530 echo "$as_me:$LINENO: result: $STRIP" >&5
11531 echo "${ECHO_T}$STRIP" >&6
11533 echo "$as_me:$LINENO: result: no" >&5
11534 echo "${ECHO_T}no" >&6
11538 if test -z "$ac_cv_prog_STRIP"; then
11540 # Extract the first word of "strip", so it can be a program name with args.
11541 set dummy strip; ac_word=$2
11542 echo "$as_me:$LINENO: checking for $ac_word" >&5
11543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 if test -n "$ac_ct_STRIP"; then
11548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557 ac_cv_prog_ac_ct_STRIP="strip"
11558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11568 if test -n "$ac_ct_STRIP"; then
11569 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11570 echo "${ECHO_T}$ac_ct_STRIP" >&6
11572 echo "$as_me:$LINENO: result: no" >&5
11573 echo "${ECHO_T}no" >&6
11578 STRIP="$ac_cv_prog_STRIP"
11583 old_CFLAGS="$CFLAGS"
11585 # Set sane defaults for various variables
11586 test -z "$AR" && AR=ar
11587 test -z "$AR_FLAGS" && AR_FLAGS=cru
11588 test -z "$AS" && AS=as
11589 test -z "$CC" && CC=cc
11590 test -z "$LTCC" && LTCC=$CC
11591 test -z "$DLLTOOL" && DLLTOOL=dlltool
11592 test -z "$LD" && LD=ld
11593 test -z "$LN_S" && LN_S="ln -s"
11594 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11595 test -z "$NM" && NM=nm
11596 test -z "$SED" && SED=sed
11597 test -z "$OBJDUMP" && OBJDUMP=objdump
11598 test -z "$RANLIB" && RANLIB=:
11599 test -z "$STRIP" && STRIP=:
11600 test -z "$ac_objext" && ac_objext=o
11602 # Determine commands to create old-style static archives.
11603 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11604 old_postinstall_cmds='chmod 644 $oldlib'
11605 old_postuninstall_cmds=
11607 if test -n "$RANLIB"; then
11610 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11613 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11616 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11619 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11621 # Only perform the check for file, if the check method requires it
11622 case $deplibs_check_method in
11624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11625 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11626 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11627 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11635 lt_save_MAGIC_CMD="$MAGIC_CMD"
11636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11637 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11638 for ac_dir in $ac_dummy; do
11640 test -z "$ac_dir" && ac_dir=.
11641 if test -f $ac_dir/${ac_tool_prefix}file; then
11642 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11643 if test -n "$file_magic_test_file"; then
11644 case $deplibs_check_method in
11646 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11648 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11649 $EGREP "$file_magic_regex" > /dev/null; then
11654 *** Warning: the command libtool uses to detect shared libraries,
11655 *** $file_magic_cmd, produces output that libtool cannot recognize.
11656 *** The result is that libtool may fail to recognize shared libraries
11657 *** as such. This will affect the creation of libtool libraries that
11658 *** depend on shared libraries, but programs linked with such libtool
11659 *** libraries will work regardless of this problem. Nevertheless, you
11660 *** may want to report the problem to your system manager and/or to
11661 *** bug-libtool@gnu.org
11671 MAGIC_CMD="$lt_save_MAGIC_CMD"
11676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11677 if test -n "$MAGIC_CMD"; then
11678 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11679 echo "${ECHO_T}$MAGIC_CMD" >&6
11681 echo "$as_me:$LINENO: result: no" >&5
11682 echo "${ECHO_T}no" >&6
11685 if test -z "$lt_cv_path_MAGIC_CMD"; then
11686 if test -n "$ac_tool_prefix"; then
11687 echo "$as_me:$LINENO: checking for file" >&5
11688 echo $ECHO_N "checking for file... $ECHO_C" >&6
11689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11697 lt_save_MAGIC_CMD="$MAGIC_CMD"
11698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11699 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11700 for ac_dir in $ac_dummy; do
11702 test -z "$ac_dir" && ac_dir=.
11703 if test -f $ac_dir/file; then
11704 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11705 if test -n "$file_magic_test_file"; then
11706 case $deplibs_check_method in
11708 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11711 $EGREP "$file_magic_regex" > /dev/null; then
11716 *** Warning: the command libtool uses to detect shared libraries,
11717 *** $file_magic_cmd, produces output that libtool cannot recognize.
11718 *** The result is that libtool may fail to recognize shared libraries
11719 *** as such. This will affect the creation of libtool libraries that
11720 *** depend on shared libraries, but programs linked with such libtool
11721 *** libraries will work regardless of this problem. Nevertheless, you
11722 *** may want to report the problem to your system manager and/or to
11723 *** bug-libtool@gnu.org
11733 MAGIC_CMD="$lt_save_MAGIC_CMD"
11738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11739 if test -n "$MAGIC_CMD"; then
11740 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11741 echo "${ECHO_T}$MAGIC_CMD" >&6
11743 echo "$as_me:$LINENO: result: no" >&5
11744 echo "${ECHO_T}no" >&6
11757 enable_win32_dll=no
11759 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11760 if test "${enable_libtool_lock+set}" = set; then
11761 enableval="$enable_libtool_lock"
11764 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11767 # Check whether --with-pic or --without-pic was given.
11768 if test "${with_pic+set}" = set; then
11769 withval="$with_pic"
11770 pic_mode="$withval"
11774 test -z "$pic_mode" && pic_mode=default
11776 # Use C for the default configuration in the libtool script
11780 ac_cpp='$CPP $CPPFLAGS'
11781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11786 # Source file extension for C test sources.
11789 # Object file extension for compiled C test sources.
11793 # Code to be used in simple compile tests
11794 lt_simple_compile_test_code="int some_variable = 0;\n"
11796 # Code to be used in simple link tests
11797 lt_simple_link_test_code='int main(){return(0);}\n'
11800 # If no C compiler was specified, use CC.
11803 # Allow CC to be a program name with arguments.
11808 # Check for any special shared library compilation flags.
11811 if test "$GCC" = no; then
11814 lt_prog_cc_shlib='-belf'
11818 if test -n "$lt_prog_cc_shlib"; then
11819 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11820 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11821 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11823 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11824 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11825 lt_cv_prog_cc_can_build_shared=no
11831 # Check to make sure the static flag actually works.
11833 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11834 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11835 if test "${lt_prog_compiler_static_works+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 lt_prog_compiler_static_works=no
11839 save_LDFLAGS="$LDFLAGS"
11840 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11841 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11843 # The compiler can only warn and ignore the option if not recognized
11844 # So say no if there are warnings
11845 if test -s conftest.err; then
11846 # Append any errors to the config.log.
11847 cat conftest.err 1>&5
11849 lt_prog_compiler_static_works=yes
11853 LDFLAGS="$save_LDFLAGS"
11856 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11857 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11859 if test x"$lt_prog_compiler_static_works" = xyes; then
11862 lt_prog_compiler_static=
11868 lt_prog_compiler_no_builtin_flag=
11870 if test "$GCC" = yes; then
11871 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11874 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11875 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11876 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 lt_cv_prog_compiler_rtti_exceptions=no
11880 ac_outfile=conftest.$ac_objext
11881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11882 lt_compiler_flag="-fno-rtti -fno-exceptions"
11883 # Insert the option either (1) after the last *FLAGS variable, or
11884 # (2) before a word containing "conftest.", or (3) at the end.
11885 # Note that $ac_compile itself does not contain backslashes and begins
11886 # with a dollar sign (not a hyphen), so the echo should work correctly.
11887 # The option is referenced via a variable to avoid confusing sed.
11888 lt_compile=`echo "$ac_compile" | $SED \
11889 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11891 -e 's:$: $lt_compiler_flag:'`
11892 (eval echo "\"\$as_me:11892: $lt_compile\"" >&5)
11893 (eval "$lt_compile" 2>conftest.err)
11895 cat conftest.err >&5
11896 echo "$as_me:11896: \$? = $ac_status" >&5
11897 if (exit $ac_status) && test -s "$ac_outfile"; then
11898 # The compiler can only warn and ignore the option if not recognized
11899 # So say no if there are warnings
11900 if test ! -s conftest.err; then
11901 lt_cv_prog_compiler_rtti_exceptions=yes
11907 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11908 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11910 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11911 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11918 lt_prog_compiler_wl=
11919 lt_prog_compiler_pic=
11920 lt_prog_compiler_static=
11922 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11923 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11925 if test "$GCC" = yes; then
11926 lt_prog_compiler_wl='-Wl,'
11927 lt_prog_compiler_static='-static'
11931 # All AIX code is PIC.
11932 if test "$host_cpu" = ia64; then
11933 # AIX 5 now supports IA64 processor
11934 lt_prog_compiler_static='-Bstatic'
11939 # FIXME: we need at least 68020 code to build shared libraries, but
11940 # adding the `-m68020' flag to GCC prevents building anything better,
11942 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11945 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11946 # PIC is the default for these OSes.
11949 mingw* | pw32* | os2*)
11950 # This hack is so that the source file can tell whether it is being
11951 # built for inclusion in a dll (and should export symbols for example).
11952 lt_prog_compiler_pic='-DDLL_EXPORT'
11955 darwin* | rhapsody*)
11956 # PIC is the default on this platform
11957 # Common symbols not allowed in MH_DYLIB files
11958 lt_prog_compiler_pic='-fno-common'
11962 # Just because we use GCC doesn't mean we suddenly get shared libraries
11963 # on systems that don't support them.
11964 lt_prog_compiler_can_build_shared=no
11969 if test -d /usr/nec; then
11970 lt_prog_compiler_pic=-Kconform_pic
11975 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11976 # not for PA HP-UX.
11977 case "$host_cpu" in
11982 lt_prog_compiler_pic='-fPIC'
11988 lt_prog_compiler_pic='-fPIC'
11992 # PORTME Check for flag to pass linker flags through the system compiler.
11995 lt_prog_compiler_wl='-Wl,'
11996 if test "$host_cpu" = ia64; then
11997 # AIX 5 now supports IA64 processor
11998 lt_prog_compiler_static='-Bstatic'
12000 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12004 # PIC is the default on this platform
12005 # Common symbols not allowed in MH_DYLIB files
12006 case "$cc_basename" in
12008 lt_prog_compiler_pic='-qnocommon'
12009 lt_prog_compiler_wl='-Wl,'
12014 mingw* | pw32* | os2*)
12015 # This hack is so that the source file can tell whether it is being
12016 # built for inclusion in a dll (and should export symbols for example).
12017 lt_prog_compiler_pic='-DDLL_EXPORT'
12020 hpux9* | hpux10* | hpux11*)
12021 lt_prog_compiler_wl='-Wl,'
12022 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12023 # not for PA HP-UX.
12024 case "$host_cpu" in
12029 lt_prog_compiler_pic='+Z'
12032 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12033 lt_prog_compiler_static='${wl}-a ${wl}archive'
12036 irix5* | irix6* | nonstopux*)
12037 lt_prog_compiler_wl='-Wl,'
12038 # PIC (with -KPIC) is the default.
12039 lt_prog_compiler_static='-non_shared'
12043 lt_prog_compiler_pic='-KPIC'
12044 lt_prog_compiler_static='-Bstatic'
12050 lt_prog_compiler_wl='-Wl,'
12051 lt_prog_compiler_pic='-KPIC'
12052 lt_prog_compiler_static='-static'
12055 lt_prog_compiler_wl='-Wl,'
12056 # All Alpha code is PIC.
12057 lt_prog_compiler_static='-non_shared'
12062 osf3* | osf4* | osf5*)
12063 lt_prog_compiler_wl='-Wl,'
12064 # All OSF/1 code is PIC.
12065 lt_prog_compiler_static='-non_shared'
12069 lt_prog_compiler_pic='-Kpic'
12070 lt_prog_compiler_static='-dn'
12074 lt_prog_compiler_wl='-Wl,'
12075 lt_prog_compiler_pic='-KPIC'
12076 lt_prog_compiler_static='-Bstatic'
12080 lt_prog_compiler_wl='-Qoption ld '
12081 lt_prog_compiler_pic='-PIC'
12082 lt_prog_compiler_static='-Bstatic'
12085 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12086 lt_prog_compiler_wl='-Wl,'
12087 lt_prog_compiler_pic='-KPIC'
12088 lt_prog_compiler_static='-Bstatic'
12092 if test -d /usr/nec ;then
12093 lt_prog_compiler_pic='-Kconform_pic'
12094 lt_prog_compiler_static='-Bstatic'
12099 lt_prog_compiler_pic='-pic'
12100 lt_prog_compiler_static='-Bstatic'
12104 lt_prog_compiler_can_build_shared=no
12109 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12110 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12113 # Check to make sure the PIC flag actually works.
12115 if test -n "$lt_prog_compiler_pic"; then
12117 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12118 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12119 if test "${lt_prog_compiler_pic_works+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 lt_prog_compiler_pic_works=no
12123 ac_outfile=conftest.$ac_objext
12124 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12125 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12126 # Insert the option either (1) after the last *FLAGS variable, or
12127 # (2) before a word containing "conftest.", or (3) at the end.
12128 # Note that $ac_compile itself does not contain backslashes and begins
12129 # with a dollar sign (not a hyphen), so the echo should work correctly.
12130 # The option is referenced via a variable to avoid confusing sed.
12131 lt_compile=`echo "$ac_compile" | $SED \
12132 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12134 -e 's:$: $lt_compiler_flag:'`
12135 (eval echo "\"\$as_me:12135: $lt_compile\"" >&5)
12136 (eval "$lt_compile" 2>conftest.err)
12138 cat conftest.err >&5
12139 echo "$as_me:12139: \$? = $ac_status" >&5
12140 if (exit $ac_status) && test -s "$ac_outfile"; then
12141 # The compiler can only warn and ignore the option if not recognized
12142 # So say no if there are warnings
12143 if test ! -s conftest.err; then
12144 lt_prog_compiler_pic_works=yes
12150 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12151 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12153 if test x"$lt_prog_compiler_pic_works" = xyes; then
12154 case $lt_prog_compiler_pic in
12156 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12159 lt_prog_compiler_pic=
12160 lt_prog_compiler_can_build_shared=no
12165 # For platforms which do not support PIC, -DPIC is meaningless:
12167 lt_prog_compiler_pic=
12170 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12174 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12175 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12176 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 lt_cv_prog_compiler_c_o=no
12180 $rm -r conftest 2>/dev/null
12184 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12186 lt_compiler_flag="-o out/conftest2.$ac_objext"
12187 # Insert the option either (1) after the last *FLAGS variable, or
12188 # (2) before a word containing "conftest.", or (3) at the end.
12189 # Note that $ac_compile itself does not contain backslashes and begins
12190 # with a dollar sign (not a hyphen), so the echo should work correctly.
12191 lt_compile=`echo "$ac_compile" | $SED \
12192 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12194 -e 's:$: $lt_compiler_flag:'`
12195 (eval echo "\"\$as_me:12195: $lt_compile\"" >&5)
12196 (eval "$lt_compile" 2>out/conftest.err)
12198 cat out/conftest.err >&5
12199 echo "$as_me:12199: \$? = $ac_status" >&5
12200 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12202 # The compiler can only warn and ignore the option if not recognized
12203 # So say no if there are warnings
12204 if test ! -s out/conftest.err; then
12205 lt_cv_prog_compiler_c_o=yes
12210 # SGI C++ compiler will create directory out/ii_files/ for
12211 # template instantiation
12212 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12213 $rm out/* && rmdir out
12219 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12220 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12223 hard_links="nottested"
12224 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12225 # do not overwrite the value of need_locks provided by the user
12226 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12227 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12230 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12232 ln conftest.a conftest.b 2>&5 || hard_links=no
12233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12234 echo "$as_me:$LINENO: result: $hard_links" >&5
12235 echo "${ECHO_T}$hard_links" >&6
12236 if test "$hard_links" = no; then
12237 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12238 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12245 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12246 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12249 allow_undefined_flag=
12250 enable_shared_with_static_runtimes=no
12252 archive_expsym_cmds=
12253 old_archive_From_new_cmds=
12254 old_archive_from_expsyms_cmds=
12255 export_dynamic_flag_spec=
12256 whole_archive_flag_spec=
12257 thread_safe_flag_spec=
12258 hardcode_libdir_flag_spec=
12259 hardcode_libdir_flag_spec_ld=
12260 hardcode_libdir_separator=
12262 hardcode_minus_L=no
12263 hardcode_shlibpath_var=unsupported
12264 link_all_deplibs=unknown
12265 hardcode_automatic=no
12267 module_expsym_cmds=
12268 always_export_symbols=no
12269 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12270 # include_expsyms should be a list of space-separated symbols to be *always*
12271 # included in the symbol list
12273 # exclude_expsyms can be an extended regexp of symbols to exclude
12274 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12275 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12276 # as well as any symbol that contains `d'.
12277 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12278 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12279 # platforms (ab)use it in PIC code, but their linkers get confused if
12280 # the symbol is explicitly referenced. Since portable code cannot
12281 # rely on this symbol name, it's probably fine to never include it in
12282 # preloaded symbol tables.
12283 extract_expsyms_cmds=
12286 cygwin* | mingw* | pw32*)
12287 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12288 # When not using gcc, we currently assume that we are using
12289 # Microsoft Visual C++.
12290 if test "$GCC" != yes; then
12300 if test "$with_gnu_ld" = yes; then
12301 # If archive_cmds runs LD, not CC, wlarc should be empty
12304 # See if GNU ld supports shared libraries.
12306 aix3* | aix4* | aix5*)
12307 # On AIX/PPC, the GNU linker is very broken
12308 if test "$host_cpu" != ia64; then
12312 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12313 *** to be unable to reliably create shared libraries on AIX.
12314 *** Therefore, libtool is disabling shared libraries support. If you
12315 *** really care for shared libraries, you may want to modify your PATH
12316 *** so that a non-GNU linker is found, and then restart.
12323 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)'
12324 hardcode_libdir_flag_spec='-L$libdir'
12325 hardcode_minus_L=yes
12327 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12328 # that the semantics of dynamic libraries on AmigaOS, at least up
12329 # to version 4, is to share data among multiple programs linked
12330 # with the same dynamic library. Since this doesn't match the
12331 # behavior of shared libraries on other platforms, we can't use
12337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12338 allow_undefined_flag=unsupported
12339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12340 # support --undefined. This deserves some investigation. FIXME
12341 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12347 cygwin* | mingw* | pw32*)
12348 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12349 # as there is no search path for DLLs.
12350 hardcode_libdir_flag_spec='-L$libdir'
12351 allow_undefined_flag=unsupported
12352 always_export_symbols=no
12353 enable_shared_with_static_runtimes=yes
12354 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12356 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12358 # If the export-symbols file already is a .def file (1st line
12359 # is EXPORTS), use it as is; otherwise, prepend...
12360 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12361 cp $export_symbols $output_objdir/$soname.def;
12363 echo EXPORTS > $output_objdir/$soname.def;
12364 cat $export_symbols >> $output_objdir/$soname.def;
12366 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12374 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12383 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12387 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12388 *** create shared libraries on Solaris systems. Therefore, libtool
12389 *** is disabling shared libraries support. We urge you to upgrade GNU
12390 *** binutils to release 2.9.1 or newer. Another option is to modify
12391 *** your PATH or compiler configuration so that the native linker is
12392 *** used, and then restart.
12395 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12404 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12406 hardcode_direct=yes
12407 hardcode_shlibpath_var=no
12411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12412 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12413 archive_cmds="$tmp_archive_cmds"
12414 supports_anon_versioning=no
12415 case `$LD -v 2>/dev/null` in
12416 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12417 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12418 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12419 *\ 2.11.*) ;; # other 2.11 versions
12420 *) supports_anon_versioning=yes ;;
12422 if test $supports_anon_versioning = yes; then
12423 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12425 $echo "local: *; };" >> $output_objdir/$libname.ver~
12426 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12428 archive_expsym_cmds="$tmp_archive_cmds"
12436 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12438 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12445 if test "$ld_shlibs" = yes; then
12446 runpath_var=LD_RUN_PATH
12447 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12448 export_dynamic_flag_spec='${wl}--export-dynamic'
12449 # ancient GNU ld didn't support --whole-archive et. al.
12450 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12451 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12453 whole_archive_flag_spec=
12457 # PORTME fill in a description of your system's linker (not GNU ld)
12460 allow_undefined_flag=unsupported
12461 always_export_symbols=yes
12462 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'
12463 # Note: this linker hardcodes the directories in LIBPATH if there
12464 # are no directories specified by -L.
12465 hardcode_minus_L=yes
12466 if test "$GCC" = yes && test -z "$link_static_flag"; then
12467 # Neither direct hardcoding nor static linking is supported with a
12469 hardcode_direct=unsupported
12474 if test "$host_cpu" = ia64; then
12475 # On IA64, the linker does run time linking by default, so we don't
12476 # have to do anything special.
12477 aix_use_runtimelinking=no
12478 exp_sym_flag='-Bexport'
12481 # If we're using GNU nm, then we don't want the "-C" option.
12482 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12483 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12484 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'
12486 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'
12488 aix_use_runtimelinking=no
12490 # Test if we are trying to use run time linking or normal
12491 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12492 # need to do runtime linking.
12493 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12494 for ld_flag in $LDFLAGS; do
12495 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12496 aix_use_runtimelinking=yes
12502 exp_sym_flag='-bexport'
12503 no_entry_flag='-bnoentry'
12506 # When large executables or shared objects are built, AIX ld can
12507 # have problems creating the table of contents. If linking a library
12508 # or program results in "error TOC overflow" add -mminimal-toc to
12509 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12510 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12513 hardcode_direct=yes
12514 hardcode_libdir_separator=':'
12515 link_all_deplibs=yes
12517 if test "$GCC" = yes; then
12518 case $host_os in aix4.012|aix4.012.*)
12519 # We only want to do this on AIX 4.2 and lower, the check
12520 # below for broken collect2 doesn't work under 4.3+
12521 collect2name=`${CC} -print-prog-name=collect2`
12522 if test -f "$collect2name" && \
12523 strings "$collect2name" | grep resolve_lib_name >/dev/null
12525 # We have reworked collect2
12526 hardcode_direct=yes
12528 # We have old collect2
12529 hardcode_direct=unsupported
12530 # It fails to find uninstalled libraries when the uninstalled
12531 # path is not listed in the libpath. Setting hardcode_minus_L
12532 # to unsupported forces relinking
12533 hardcode_minus_L=yes
12534 hardcode_libdir_flag_spec='-L$libdir'
12535 hardcode_libdir_separator=
12538 shared_flag='-shared'
12541 if test "$host_cpu" = ia64; then
12542 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12543 # chokes on -Wl,-G. The following line is correct:
12546 if test "$aix_use_runtimelinking" = yes; then
12547 shared_flag='${wl}-G'
12549 shared_flag='${wl}-bM:SRE'
12554 # It seems that -bexpall does not export symbols beginning with
12555 # underscore (_), so it is better to generate a list of symbols to export.
12556 always_export_symbols=yes
12557 if test "$aix_use_runtimelinking" = yes; then
12558 # Warning - without using the other runtime loading flags (-brtl),
12559 # -berok will link without error, but may produce a broken library.
12560 allow_undefined_flag='-berok'
12561 # Determine the default libpath from the value encoded in an empty executable.
12562 cat >conftest.$ac_ext <<_ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579 (eval $ac_link) 2>conftest.er1
12581 grep -v '^ *+' conftest.er1 >conftest.err
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -z "$ac_c_werror_flag"
12587 || test ! -s conftest.err'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest$ac_exeext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12602 # Check for a 64-bit object if we didn't find anything.
12603 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; }
12606 echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12610 rm -f conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
12612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12614 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12615 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"
12617 if test "$host_cpu" = ia64; then
12618 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12619 allow_undefined_flag="-z nodefs"
12620 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"
12622 # Determine the default libpath from the value encoded in an empty executable.
12623 cat >conftest.$ac_ext <<_ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12638 rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640 (eval $ac_link) 2>conftest.er1
12642 grep -v '^ *+' conftest.er1 >conftest.err
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
12647 { ac_try='test -z "$ac_c_werror_flag"
12648 || test ! -s conftest.err'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest$ac_exeext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12663 # Check for a 64-bit object if we didn't find anything.
12664 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; }
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12671 rm -f conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12675 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12676 # Warning - without using the other run time loading flags,
12677 # -berok will link without error, but may produce a broken library.
12678 no_undefined_flag=' ${wl}-bernotok'
12679 allow_undefined_flag=' ${wl}-berok'
12680 # -bexpall does not export symbols beginning with underscore (_)
12681 always_export_symbols=yes
12682 # Exported symbols can be pulled into shared objects from archives
12683 whole_archive_flag_spec=' '
12684 archive_cmds_need_lc=yes
12685 # This is similar to how AIX traditionally builds it's shared libraries.
12686 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'
12692 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)'
12693 hardcode_libdir_flag_spec='-L$libdir'
12694 hardcode_minus_L=yes
12695 # see comment about different semantics on the GNU ld section
12700 export_dynamic_flag_spec=-rdynamic
12703 cygwin* | mingw* | pw32*)
12704 # When not using gcc, we currently assume that we are using
12705 # Microsoft Visual C++.
12706 # hardcode_libdir_flag_spec is actually meaningless, as there is
12707 # no search path for DLLs.
12708 hardcode_libdir_flag_spec=' '
12709 allow_undefined_flag=unsupported
12710 # Tell ltmain to make .lib files, not .a files.
12712 # Tell ltmain to make .dll files, not .so files.
12714 # FIXME: Setting linknames here is a bad hack.
12715 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12716 # The linker will automatically build a .lib file if we build a DLL.
12717 old_archive_From_new_cmds='true'
12718 # FIXME: Should let the user specify the lib program.
12719 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12720 fix_srcfile_path='`cygpath -w "$srcfile"`'
12721 enable_shared_with_static_runtimes=yes
12724 darwin* | rhapsody*)
12726 rhapsody* | darwin1.[012])
12727 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12730 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12731 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12733 case ${MACOSX_DEPLOYMENT_TARGET} in
12735 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12738 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12744 archive_cmds_need_lc=no
12746 hardcode_automatic=yes
12747 hardcode_shlibpath_var=unsupported
12748 whole_archive_flag_spec=''
12749 link_all_deplibs=yes
12750 if test "$GCC" = yes ; then
12751 output_verbose_link_cmd='echo'
12752 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12753 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12754 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12755 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}'
12756 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}'
12758 case "$cc_basename" in
12760 output_verbose_link_cmd='echo'
12761 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12762 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12763 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12764 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}'
12765 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}'
12775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12776 hardcode_libdir_flag_spec='-L$libdir'
12777 hardcode_shlibpath_var=no
12784 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12785 # support. Future versions do this automatically, but an explicit c++rt0.o
12786 # does not break anything, and helps significantly (at the cost of a little
12789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12790 hardcode_libdir_flag_spec='-R$libdir'
12791 hardcode_direct=yes
12792 hardcode_shlibpath_var=no
12795 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12798 hardcode_direct=yes
12799 hardcode_minus_L=yes
12800 hardcode_shlibpath_var=no
12803 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12804 freebsd* | kfreebsd*-gnu)
12805 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12806 hardcode_libdir_flag_spec='-R$libdir'
12807 hardcode_direct=yes
12808 hardcode_shlibpath_var=no
12812 if test "$GCC" = yes; then
12813 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'
12815 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'
12817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12818 hardcode_libdir_separator=:
12819 hardcode_direct=yes
12821 # hardcode_minus_L: Not really in the search PATH,
12822 # but as the default location of the library.
12823 hardcode_minus_L=yes
12824 export_dynamic_flag_spec='${wl}-E'
12828 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12829 case "$host_cpu" in
12831 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12838 case "$host_cpu" in
12840 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12843 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12847 if test "$with_gnu_ld" = no; then
12848 case "$host_cpu" in
12850 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12851 hardcode_libdir_flag_spec_ld='+b $libdir'
12852 hardcode_libdir_separator=:
12854 hardcode_shlibpath_var=no
12857 hardcode_libdir_flag_spec='-L$libdir'
12859 hardcode_shlibpath_var=no
12861 # hardcode_minus_L: Not really in the search PATH,
12862 # but as the default location of the library.
12863 hardcode_minus_L=yes
12866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12867 hardcode_libdir_separator=:
12868 hardcode_direct=yes
12869 export_dynamic_flag_spec='${wl}-E'
12871 # hardcode_minus_L: Not really in the search PATH,
12872 # but as the default location of the library.
12873 hardcode_minus_L=yes
12879 irix5* | irix6* | nonstopux*)
12880 if test "$GCC" = yes; then
12881 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'
12883 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'
12884 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12886 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12887 hardcode_libdir_separator=:
12888 link_all_deplibs=yes
12892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12895 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12897 hardcode_libdir_flag_spec='-R$libdir'
12898 hardcode_direct=yes
12899 hardcode_shlibpath_var=no
12903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12904 hardcode_direct=yes
12905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12906 hardcode_libdir_separator=:
12907 hardcode_shlibpath_var=no
12911 hardcode_direct=yes
12912 hardcode_shlibpath_var=no
12913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12914 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12915 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12917 export_dynamic_flag_spec='${wl}-E'
12920 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12922 hardcode_libdir_flag_spec='-R$libdir'
12925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12926 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12933 hardcode_libdir_flag_spec='-L$libdir'
12934 hardcode_minus_L=yes
12935 allow_undefined_flag=unsupported
12936 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'
12937 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12941 if test "$GCC" = yes; then
12942 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12943 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'
12945 allow_undefined_flag=' -expect_unresolved \*'
12946 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'
12948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12949 hardcode_libdir_separator=:
12952 osf4* | osf5*) # as osf3* with the addition of -msym flag
12953 if test "$GCC" = yes; then
12954 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12955 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'
12956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12958 allow_undefined_flag=' -expect_unresolved \*'
12959 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'
12960 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12961 $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'
12963 # Both c and cxx compiler support -rpath directly
12964 hardcode_libdir_flag_spec='-rpath $libdir'
12966 hardcode_libdir_separator=:
12970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12971 hardcode_shlibpath_var=no
12972 export_dynamic_flag_spec='${wl}-Bexport'
12973 runpath_var=LD_RUN_PATH
12974 hardcode_runpath_var=yes
12978 no_undefined_flag=' -z text'
12979 if test "$GCC" = yes; then
12980 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12981 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12982 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12984 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12985 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12986 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12988 hardcode_libdir_flag_spec='-R$libdir'
12989 hardcode_shlibpath_var=no
12991 solaris2.[0-5] | solaris2.[0-5].*) ;;
12992 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12993 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12995 link_all_deplibs=yes
12999 if test "x$host_vendor" = xsequent; then
13000 # Use $CC to link under sequent, because it throws in some extra .o
13001 # files that make .init and .fini sections work.
13002 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13004 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13006 hardcode_libdir_flag_spec='-L$libdir'
13007 hardcode_direct=yes
13008 hardcode_minus_L=yes
13009 hardcode_shlibpath_var=no
13013 case $host_vendor in
13015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13016 hardcode_direct=yes # is this really true???
13019 ## LD is ld it makes a PLAMLIB
13020 ## CC just makes a GrossModule.
13021 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13022 reload_cmds='$CC -r -o $output$reload_objs'
13026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13027 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13030 runpath_var='LD_RUN_PATH'
13031 hardcode_shlibpath_var=no
13035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13036 hardcode_shlibpath_var=no
13037 export_dynamic_flag_spec='-Bexport'
13041 if test -d /usr/nec; then
13042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13043 hardcode_shlibpath_var=no
13044 runpath_var=LD_RUN_PATH
13045 hardcode_runpath_var=yes
13051 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13052 hardcode_direct=yes
13053 hardcode_minus_L=no
13054 hardcode_shlibpath_var=no
13055 hardcode_runpath_var=yes
13056 runpath_var=LD_RUN_PATH
13059 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13060 no_undefined_flag='${wl}-z ${wl}text'
13061 if test "$GCC" = yes; then
13062 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13064 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13066 runpath_var='LD_RUN_PATH'
13067 hardcode_shlibpath_var=no
13071 no_undefined_flag=' -z text'
13072 # $CC -shared without GNU ld will not create a library from C++
13073 # object files and a static libstdc++, better avoid it by now
13074 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13075 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13076 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13077 hardcode_libdir_flag_spec=
13078 hardcode_shlibpath_var=no
13079 runpath_var='LD_RUN_PATH'
13083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13084 hardcode_libdir_flag_spec='-L$libdir'
13085 hardcode_shlibpath_var=no
13094 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13095 echo "${ECHO_T}$ld_shlibs" >&6
13096 test "$ld_shlibs" = no && can_build_shared=no
13098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13099 if test "$GCC" = yes; then
13100 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13104 # Do we need to explicitly link libc?
13106 case "x$archive_cmds_need_lc" in
13108 # Assume -lc should be added
13109 archive_cmds_need_lc=yes
13111 if test "$enable_shared" = yes && test "$GCC" = yes; then
13112 case $archive_cmds in
13114 # FIXME: we may have to deal with multi-command sequences.
13117 # Test whether the compiler implicitly links with -lc since on some
13118 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13119 # to ld, don't add -lc before -lgcc.
13120 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13121 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13123 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126 (eval $ac_compile) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } 2>conftest.err; then
13132 libobjs=conftest.$ac_objext
13134 wl=$lt_prog_compiler_wl
13140 lt_save_allow_undefined_flag=$allow_undefined_flag
13141 allow_undefined_flag=
13142 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13143 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }
13148 archive_cmds_need_lc=no
13150 archive_cmds_need_lc=yes
13152 allow_undefined_flag=$lt_save_allow_undefined_flag
13154 cat conftest.err 1>&5
13157 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13158 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13165 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13166 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13167 library_names_spec=
13168 libname_spec='lib$name'
13172 postuninstall_cmds=
13176 shlibpath_overrides_runpath=unknown
13178 dynamic_linker="$host_os ld.so"
13179 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13180 if test "$GCC" = yes; then
13181 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13182 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13183 # if the path contains ";" then we assume it to be the separator
13184 # otherwise default to the standard path separator (i.e. ":") - it is
13185 # assumed that no part of a normal pathname contains ";" but that should
13186 # okay in the real world where ";" in dirpaths is itself problematic.
13187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13192 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13194 need_lib_prefix=unknown
13195 hardcode_into_libs=no
13197 # when you set need_version to no, make sure it does not cause -set_version
13198 # flags to be left without arguments
13199 need_version=unknown
13204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13205 shlibpath_var=LIBPATH
13207 # AIX 3 has no versioning support, so we append a major version to the name.
13208 soname_spec='${libname}${release}${shared_ext}$major'
13215 hardcode_into_libs=yes
13216 if test "$host_cpu" = ia64; then
13217 # AIX 5 supports IA64
13218 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13219 shlibpath_var=LD_LIBRARY_PATH
13221 # With GCC up to 2.95.x, collect2 would create an import file
13222 # for dependence libraries. The import file would start with
13223 # the line `#! .'. This would cause the generated library to
13224 # depend on `.', always an invalid library. This was fixed in
13225 # development snapshots of GCC prior to 3.0.
13227 aix4 | aix4.[01] | aix4.[01].*)
13228 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13230 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13233 can_build_shared=no
13237 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13238 # soname into executable. Probably we can add versioning support to
13239 # collect2, so additional links can be useful in future.
13240 if test "$aix_use_runtimelinking" = yes; then
13241 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13242 # instead of lib<name>.a to let people know that these are not
13243 # typical AIX shared libraries.
13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13246 # We preserve .a as extension for shared libraries through AIX4.2
13247 # and later when we are not doing run time linking.
13248 library_names_spec='${libname}${release}.a $libname.a'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13251 shlibpath_var=LIBPATH
13256 library_names_spec='$libname.ixlibrary $libname.a'
13257 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13258 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'
13262 library_names_spec='${libname}${shared_ext}'
13263 dynamic_linker="$host_os ld.so"
13264 shlibpath_var=LIBRARY_PATH
13270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271 soname_spec='${libname}${release}${shared_ext}$major'
13272 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13273 shlibpath_var=LD_LIBRARY_PATH
13274 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13275 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13276 # the default ld.so.conf also contains /usr/contrib/lib and
13277 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13278 # libtool to hard-code these into programs
13281 cygwin* | mingw* | pw32*)
13282 version_type=windows
13287 case $GCC,$host_os in
13288 yes,cygwin* | yes,mingw* | yes,pw32*)
13289 library_names_spec='$libname.dll.a'
13290 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13291 postinstall_cmds='base_file=`basename \${file}`~
13292 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13293 dldir=$destdir/`dirname \$dlpath`~
13294 test -d \$dldir || mkdir -p \$dldir~
13295 $install_prog $dir/$dlname \$dldir/$dlname'
13296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13297 dlpath=$dir/\$dldll~
13299 shlibpath_overrides_runpath=yes
13303 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13304 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13305 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13308 # MinGW DLLs use traditional 'lib' prefix
13309 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13310 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13311 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13312 # It is most probably a Windows format PATH printed by
13313 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13314 # path with ; separators, and with drive letters. We can handle the
13315 # drive letters (cygwin fileutils understands them), so leave them,
13316 # especially as we might pass files found there to a mingw objdump,
13317 # which wouldn't understand a cygwinified path. Ahh.
13318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13324 # pw32 DLLs use 'pw' prefix rather than 'lib'
13325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13331 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13334 dynamic_linker='Win32 ld.exe'
13335 # FIXME: first we should search . and the directory the executable is in
13339 darwin* | rhapsody*)
13340 dynamic_linker="$host_os dyld"
13341 version_type=darwin
13344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13345 soname_spec='${libname}${release}${major}$shared_ext'
13346 shlibpath_overrides_runpath=yes
13347 shlibpath_var=DYLD_LIBRARY_PATH
13348 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13349 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13350 if test "$GCC" = yes; then
13351 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"`
13353 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13363 soname_spec='${libname}${release}${shared_ext}$major'
13364 shlibpath_var=LD_LIBRARY_PATH
13375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13376 soname_spec='${libname}${release}${shared_ext}$major'
13377 shlibpath_var=LD_LIBRARY_PATH
13378 shlibpath_overrides_runpath=no
13379 hardcode_into_libs=yes
13380 dynamic_linker='GNU ld.so'
13384 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13385 version_type=freebsd-$objformat
13386 case $version_type in
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13397 shlibpath_var=LD_LIBRARY_PATH
13400 shlibpath_overrides_runpath=yes
13402 freebsd3.01* | freebsdelf3.01*)
13403 shlibpath_overrides_runpath=yes
13404 hardcode_into_libs=yes
13407 shlibpath_overrides_runpath=no
13408 hardcode_into_libs=yes
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13418 soname_spec='${libname}${release}${shared_ext}$major'
13419 shlibpath_var=LD_LIBRARY_PATH
13420 hardcode_into_libs=yes
13423 hpux9* | hpux10* | hpux11*)
13424 # Give a soname corresponding to the major version so that dld.sl refuses to
13425 # link against other versions.
13429 case "$host_cpu" in
13432 hardcode_into_libs=yes
13433 dynamic_linker="$host_os dld.so"
13434 shlibpath_var=LD_LIBRARY_PATH
13435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437 soname_spec='${libname}${release}${shared_ext}$major'
13438 if test "X$HPUX_IA64_MODE" = X32; then
13439 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13441 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13447 hardcode_into_libs=yes
13448 dynamic_linker="$host_os dld.sl"
13449 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13452 soname_spec='${libname}${release}${shared_ext}$major'
13453 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13458 dynamic_linker="$host_os dld.sl"
13459 shlibpath_var=SHLIB_PATH
13460 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462 soname_spec='${libname}${release}${shared_ext}$major'
13465 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13466 postinstall_cmds='chmod 555 $lib'
13469 irix5* | irix6* | nonstopux*)
13471 nonstopux*) version_type=nonstopux ;;
13473 if test "$lt_cv_prog_gnu_ld" = yes; then
13481 soname_spec='${libname}${release}${shared_ext}$major'
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13484 irix5* | nonstopux*)
13485 libsuff= shlibsuff=
13488 case $LD in # libtool.m4 will add one of these switches to LD
13489 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13490 libsuff= shlibsuff= libmagic=32-bit;;
13491 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13492 libsuff=32 shlibsuff=N32 libmagic=N32;;
13493 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13494 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13495 *) libsuff= shlibsuff= libmagic=never-match;;
13499 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13500 shlibpath_overrides_runpath=no
13501 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13502 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13503 hardcode_into_libs=yes
13506 # No shared lib support for Linux oldld, aout, or coff.
13507 linux*oldld* | linux*aout* | linux*coff*)
13511 # This must be Linux ELF.
13516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517 soname_spec='${libname}${release}${shared_ext}$major'
13518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13519 shlibpath_var=LD_LIBRARY_PATH
13520 shlibpath_overrides_runpath=no
13521 # This implies no fast_install, which is unacceptable.
13522 # Some rework will be needed to allow for fast_install
13523 # before this can be enabled.
13524 hardcode_into_libs=yes
13526 # Append ld.so.conf contents to the search path
13527 if test -f /etc/ld.so.conf; then
13528 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13529 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13532 # We used to test for /lib/ld.so.1 and disable shared libraries on
13533 # powerpc, because MkLinux only supported shared libraries with the
13534 # GNU dynamic linker. Since this was broken with cross compilers,
13535 # most powerpc-linux boxes support dynamic linking these days and
13536 # people can always --disable-shared, the test was removed, and we
13537 # assume the GNU/Linux dynamic linker is in use.
13538 dynamic_linker='GNU/Linux ld.so'
13545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13546 soname_spec='${libname}${release}${shared_ext}$major'
13547 shlibpath_var=LD_LIBRARY_PATH
13548 shlibpath_overrides_runpath=no
13549 hardcode_into_libs=yes
13550 dynamic_linker='GNU ld.so'
13557 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13560 dynamic_linker='NetBSD (a.out) ld.so'
13562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13563 soname_spec='${libname}${release}${shared_ext}$major'
13564 dynamic_linker='NetBSD ld.elf_so'
13566 shlibpath_var=LD_LIBRARY_PATH
13567 shlibpath_overrides_runpath=yes
13568 hardcode_into_libs=yes
13573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574 shlibpath_var=LD_LIBRARY_PATH
13575 shlibpath_overrides_runpath=yes
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 shlibpath_overrides_runpath=yes
13592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13594 shlibpath_var=LD_LIBRARY_PATH
13595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13597 openbsd2.[89] | openbsd2.[89].*)
13598 shlibpath_overrides_runpath=no
13601 shlibpath_overrides_runpath=yes
13605 shlibpath_overrides_runpath=yes
13610 libname_spec='$name'
13613 library_names_spec='$libname${shared_ext} $libname.a'
13614 dynamic_linker='OS/2 ld.exe'
13615 shlibpath_var=LIBPATH
13618 osf3* | osf4* | osf5*)
13622 soname_spec='${libname}${release}${shared_ext}$major'
13623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13626 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13631 soname_spec='${libname}${release}${shared_ext}$major'
13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633 shlibpath_var=LD_LIBRARY_PATH
13640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641 soname_spec='${libname}${release}${shared_ext}$major'
13642 shlibpath_var=LD_LIBRARY_PATH
13643 shlibpath_overrides_runpath=yes
13644 hardcode_into_libs=yes
13645 # ldd complains unless libraries are executable
13646 postinstall_cmds='chmod +x $lib'
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13652 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13653 shlibpath_var=LD_LIBRARY_PATH
13654 shlibpath_overrides_runpath=yes
13655 if test "$with_gnu_ld" = yes; then
13661 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13664 soname_spec='${libname}${release}${shared_ext}$major'
13665 shlibpath_var=LD_LIBRARY_PATH
13666 case $host_vendor in
13668 shlibpath_overrides_runpath=no
13670 export_dynamic_flag_spec='${wl}-Blargedynsym'
13671 runpath_var=LD_RUN_PATH
13679 shlibpath_overrides_runpath=no
13680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13686 if test -d /usr/nec ;then
13688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13689 soname_spec='$libname${shared_ext}.$major'
13690 shlibpath_var=LD_LIBRARY_PATH
13696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13697 soname_spec='${libname}${release}${shared_ext}$major'
13698 shlibpath_var=LD_LIBRARY_PATH
13705 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13706 echo "${ECHO_T}$dynamic_linker" >&6
13707 test "$dynamic_linker" = no && can_build_shared=no
13709 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13710 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13712 if test -n "$hardcode_libdir_flag_spec" || \
13713 test -n "$runpath_var" || \
13714 test "X$hardcode_automatic" = "Xyes" ; then
13716 # We can hardcode non-existant directories.
13717 if test "$hardcode_direct" != no &&
13718 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13719 # have to relink, otherwise we might link with an installed library
13720 # when we should be linking with a yet-to-be-installed one
13721 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13722 test "$hardcode_minus_L" != no; then
13723 # Linking always hardcodes the temporary library directory.
13724 hardcode_action=relink
13726 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13727 hardcode_action=immediate
13730 # We cannot hardcode anything, or else we can only hardcode existing
13732 hardcode_action=unsupported
13734 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13735 echo "${ECHO_T}$hardcode_action" >&6
13737 if test "$hardcode_action" = relink; then
13738 # Fast installation is not supported
13739 enable_fast_install=no
13740 elif test "$shlibpath_overrides_runpath" = yes ||
13741 test "$enable_shared" = no; then
13742 # Fast installation is not necessary
13743 enable_fast_install=needless
13748 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13749 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13750 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13751 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13752 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13753 echo "$as_me:$LINENO: result: yes" >&5
13754 echo "${ECHO_T}yes" >&6
13756 # FIXME - insert some real tests, host_os isn't really good enough
13759 if test -n "$STRIP" ; then
13760 striplib="$STRIP -x"
13761 echo "$as_me:$LINENO: result: yes" >&5
13762 echo "${ECHO_T}yes" >&6
13764 echo "$as_me:$LINENO: result: no" >&5
13765 echo "${ECHO_T}no" >&6
13769 echo "$as_me:$LINENO: result: no" >&5
13770 echo "${ECHO_T}no" >&6
13775 if test "x$enable_dlopen" != xyes; then
13776 enable_dlopen=unknown
13777 enable_dlopen_self=unknown
13778 enable_dlopen_self_static=unknown
13785 lt_cv_dlopen="load_add_on"
13787 lt_cv_dlopen_self=yes
13791 lt_cv_dlopen="LoadLibrary"
13796 lt_cv_dlopen="dlopen"
13801 # if libdl is installed we need to link against it
13802 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13803 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13804 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 ac_check_lib_save_LIBS=$LIBS
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13816 /* Override any gcc2 internal prototype to avoid an error. */
13820 /* We use char because int might match the return type of a gcc2
13821 builtin and then its argument prototype would still apply. */
13831 rm -f conftest.$ac_objext conftest$ac_exeext
13832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13833 (eval $ac_link) 2>conftest.er1
13835 grep -v '^ *+' conftest.er1 >conftest.err
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try='test -z "$ac_c_werror_flag"
13841 || test ! -s conftest.err'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest$ac_exeext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_lib_dl_dlopen=yes
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13858 ac_cv_lib_dl_dlopen=no
13860 rm -f conftest.err conftest.$ac_objext \
13861 conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13864 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13865 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13866 if test $ac_cv_lib_dl_dlopen = yes; then
13867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13870 lt_cv_dlopen="dyld"
13872 lt_cv_dlopen_self=yes
13879 echo "$as_me:$LINENO: checking for shl_load" >&5
13880 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13881 if test "${ac_cv_func_shl_load+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13892 #define shl_load innocuous_shl_load
13894 /* System header to define __stub macros and hopefully few prototypes,
13895 which can conflict with char shl_load (); below.
13896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13897 <limits.h> exists even on freestanding compilers. */
13900 # include <limits.h>
13902 # include <assert.h>
13907 /* Override any gcc2 internal prototype to avoid an error. */
13912 /* We use char because int might match the return type of a gcc2
13913 builtin and then its argument prototype would still apply. */
13915 /* The GNU C library defines this for functions which it implements
13916 to always fail with ENOSYS. Some functions are actually named
13917 something starting with __ and the normal name is an alias. */
13918 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13921 char (*f) () = shl_load;
13930 return f != shl_load;
13935 rm -f conftest.$ac_objext conftest$ac_exeext
13936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13937 (eval $ac_link) 2>conftest.er1
13939 grep -v '^ *+' conftest.er1 >conftest.err
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } &&
13944 { ac_try='test -z "$ac_c_werror_flag"
13945 || test ! -s conftest.err'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; } &&
13951 { ac_try='test -s conftest$ac_exeext'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13957 ac_cv_func_shl_load=yes
13959 echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13962 ac_cv_func_shl_load=no
13964 rm -f conftest.err conftest.$ac_objext \
13965 conftest$ac_exeext conftest.$ac_ext
13967 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13968 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13969 if test $ac_cv_func_shl_load = yes; then
13970 lt_cv_dlopen="shl_load"
13972 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13973 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13974 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 ac_check_lib_save_LIBS=$LIBS
13979 cat >conftest.$ac_ext <<_ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13986 /* Override any gcc2 internal prototype to avoid an error. */
13990 /* We use char because int might match the return type of a gcc2
13991 builtin and then its argument prototype would still apply. */
14001 rm -f conftest.$ac_objext conftest$ac_exeext
14002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14003 (eval $ac_link) 2>conftest.er1
14005 grep -v '^ *+' conftest.er1 >conftest.err
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag"
14011 || test ! -s conftest.err'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest$ac_exeext'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 ac_cv_lib_dld_shl_load=yes
14025 echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14028 ac_cv_lib_dld_shl_load=no
14030 rm -f conftest.err conftest.$ac_objext \
14031 conftest$ac_exeext conftest.$ac_ext
14032 LIBS=$ac_check_lib_save_LIBS
14034 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14035 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14036 if test $ac_cv_lib_dld_shl_load = yes; then
14037 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14039 echo "$as_me:$LINENO: checking for dlopen" >&5
14040 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14041 if test "${ac_cv_func_dlopen+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14050 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14052 #define dlopen innocuous_dlopen
14054 /* System header to define __stub macros and hopefully few prototypes,
14055 which can conflict with char dlopen (); below.
14056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14057 <limits.h> exists even on freestanding compilers. */
14060 # include <limits.h>
14062 # include <assert.h>
14067 /* Override any gcc2 internal prototype to avoid an error. */
14072 /* We use char because int might match the return type of a gcc2
14073 builtin and then its argument prototype would still apply. */
14075 /* The GNU C library defines this for functions which it implements
14076 to always fail with ENOSYS. Some functions are actually named
14077 something starting with __ and the normal name is an alias. */
14078 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14081 char (*f) () = dlopen;
14090 return f != dlopen;
14095 rm -f conftest.$ac_objext conftest$ac_exeext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14097 (eval $ac_link) 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
14104 { ac_try='test -z "$ac_c_werror_flag"
14105 || test ! -s conftest.err'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest$ac_exeext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_func_dlopen=yes
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_cv_func_dlopen=no
14124 rm -f conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14127 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14128 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14129 if test $ac_cv_func_dlopen = yes; then
14130 lt_cv_dlopen="dlopen"
14132 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14133 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14134 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 ac_check_lib_save_LIBS=$LIBS
14139 cat >conftest.$ac_ext <<_ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14146 /* Override any gcc2 internal prototype to avoid an error. */
14150 /* We use char because int might match the return type of a gcc2
14151 builtin and then its argument prototype would still apply. */
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163 (eval $ac_link) 2>conftest.er1
14165 grep -v '^ *+' conftest.er1 >conftest.err
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag"
14171 || test ! -s conftest.err'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest$ac_exeext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_cv_lib_dl_dlopen=yes
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ac_cv_lib_dl_dlopen=no
14190 rm -f conftest.err conftest.$ac_objext \
14191 conftest$ac_exeext conftest.$ac_ext
14192 LIBS=$ac_check_lib_save_LIBS
14194 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14195 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14196 if test $ac_cv_lib_dl_dlopen = yes; then
14197 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14199 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14200 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14201 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 ac_check_lib_save_LIBS=$LIBS
14205 LIBS="-lsvld $LIBS"
14206 cat >conftest.$ac_ext <<_ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14213 /* Override any gcc2 internal prototype to avoid an error. */
14217 /* We use char because int might match the return type of a gcc2
14218 builtin and then its argument prototype would still apply. */
14228 rm -f conftest.$ac_objext conftest$ac_exeext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14230 (eval $ac_link) 2>conftest.er1
14232 grep -v '^ *+' conftest.er1 >conftest.err
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -z "$ac_c_werror_flag"
14238 || test ! -s conftest.err'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest$ac_exeext'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14250 ac_cv_lib_svld_dlopen=yes
14252 echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14255 ac_cv_lib_svld_dlopen=no
14257 rm -f conftest.err conftest.$ac_objext \
14258 conftest$ac_exeext conftest.$ac_ext
14259 LIBS=$ac_check_lib_save_LIBS
14261 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14262 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14263 if test $ac_cv_lib_svld_dlopen = yes; then
14264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14266 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14267 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14268 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 ac_check_lib_save_LIBS=$LIBS
14273 cat >conftest.$ac_ext <<_ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h. */
14280 /* Override any gcc2 internal prototype to avoid an error. */
14284 /* We use char because int might match the return type of a gcc2
14285 builtin and then its argument prototype would still apply. */
14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14297 (eval $ac_link) 2>conftest.er1
14299 grep -v '^ *+' conftest.er1 >conftest.err
14301 cat conftest.err >&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try='test -z "$ac_c_werror_flag"
14305 || test ! -s conftest.err'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; } &&
14311 { ac_try='test -s conftest$ac_exeext'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317 ac_cv_lib_dld_dld_link=yes
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14322 ac_cv_lib_dld_dld_link=no
14324 rm -f conftest.err conftest.$ac_objext \
14325 conftest$ac_exeext conftest.$ac_ext
14326 LIBS=$ac_check_lib_save_LIBS
14328 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14329 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14330 if test $ac_cv_lib_dld_dld_link = yes; then
14331 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14352 if test "x$lt_cv_dlopen" != xno; then
14358 case $lt_cv_dlopen in
14360 save_CPPFLAGS="$CPPFLAGS"
14361 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14363 save_LDFLAGS="$LDFLAGS"
14364 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14367 LIBS="$lt_cv_dlopen_libs $LIBS"
14369 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14370 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14371 if test "${lt_cv_dlopen_self+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 if test "$cross_compiling" = yes; then :
14375 lt_cv_dlopen_self=cross
14377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14378 lt_status=$lt_dlunknown
14379 cat > conftest.$ac_ext <<EOF
14380 #line 14380 "configure"
14381 #include "confdefs.h"
14390 # define LT_DLGLOBAL RTLD_GLOBAL
14393 # define LT_DLGLOBAL DL_GLOBAL
14395 # define LT_DLGLOBAL 0
14399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14400 find out it does not work in some platform. */
14401 #ifndef LT_DLLAZY_OR_NOW
14403 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14406 # define LT_DLLAZY_OR_NOW DL_LAZY
14409 # define LT_DLLAZY_OR_NOW RTLD_NOW
14412 # define LT_DLLAZY_OR_NOW DL_NOW
14414 # define LT_DLLAZY_OR_NOW 0
14422 extern "C" void exit (int);
14425 void fnord() { int i=42;}
14428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14429 int status = $lt_dlunknown;
14433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14435 /* dlclose (self); */
14441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14442 (eval $ac_link) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14446 (./conftest; exit; ) 2>/dev/null
14448 case x$lt_status in
14449 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14450 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14451 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14454 # compilation failed
14455 lt_cv_dlopen_self=no
14462 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14463 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14465 if test "x$lt_cv_dlopen_self" = xyes; then
14466 LDFLAGS="$LDFLAGS $link_static_flag"
14467 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14468 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14469 if test "${lt_cv_dlopen_self_static+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 if test "$cross_compiling" = yes; then :
14473 lt_cv_dlopen_self_static=cross
14475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14476 lt_status=$lt_dlunknown
14477 cat > conftest.$ac_ext <<EOF
14478 #line 14478 "configure"
14479 #include "confdefs.h"
14488 # define LT_DLGLOBAL RTLD_GLOBAL
14491 # define LT_DLGLOBAL DL_GLOBAL
14493 # define LT_DLGLOBAL 0
14497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14498 find out it does not work in some platform. */
14499 #ifndef LT_DLLAZY_OR_NOW
14501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14504 # define LT_DLLAZY_OR_NOW DL_LAZY
14507 # define LT_DLLAZY_OR_NOW RTLD_NOW
14510 # define LT_DLLAZY_OR_NOW DL_NOW
14512 # define LT_DLLAZY_OR_NOW 0
14520 extern "C" void exit (int);
14523 void fnord() { int i=42;}
14526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14527 int status = $lt_dlunknown;
14531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14532 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14533 /* dlclose (self); */
14539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14540 (eval $ac_link) 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14544 (./conftest; exit; ) 2>/dev/null
14546 case x$lt_status in
14547 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14548 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14549 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14552 # compilation failed
14553 lt_cv_dlopen_self_static=no
14560 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14561 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14564 CPPFLAGS="$save_CPPFLAGS"
14565 LDFLAGS="$save_LDFLAGS"
14570 case $lt_cv_dlopen_self in
14571 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14572 *) enable_dlopen_self=unknown ;;
14575 case $lt_cv_dlopen_self_static in
14576 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14577 *) enable_dlopen_self_static=unknown ;;
14582 # Report which librarie types wil actually be built
14583 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14584 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14585 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14586 echo "${ECHO_T}$can_build_shared" >&6
14588 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14589 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14590 test "$can_build_shared" = "no" && enable_shared=no
14592 # On AIX, shared libraries and static libraries use the same namespace, and
14593 # are all built from PIC.
14596 test "$enable_shared" = yes && enable_static=no
14597 if test -n "$RANLIB"; then
14598 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14599 postinstall_cmds='$RANLIB $lib'
14604 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14605 test "$enable_shared" = yes && enable_static=no
14609 echo "$as_me:$LINENO: result: $enable_shared" >&5
14610 echo "${ECHO_T}$enable_shared" >&6
14612 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14613 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14614 # Make sure either enable_shared or enable_static is yes.
14615 test "$enable_shared" = yes || enable_static=yes
14616 echo "$as_me:$LINENO: result: $enable_static" >&5
14617 echo "${ECHO_T}$enable_static" >&6
14619 # The else clause should only fire when bootstrapping the
14620 # libtool distribution, otherwise you forgot to ship ltmain.sh
14621 # with your package, and you will get complaints that there are
14622 # no rules to generate ltmain.sh.
14623 if test -f "$ltmain"; then
14624 # See if we are running on zsh, and set the options which allow our commands through
14625 # without removal of \ escapes.
14626 if test -n "${ZSH_VERSION+set}" ; then
14627 setopt NO_GLOB_SUBST
14629 # Now quote all the things that may contain metacharacters while being
14630 # careful not to overquote the AC_SUBSTed values. We take copies of the
14631 # variables and quote the copies for generation of the libtool script.
14632 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14634 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14635 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14636 deplibs_check_method reload_flag reload_cmds need_locks \
14637 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14638 lt_cv_sys_global_symbol_to_c_name_address \
14639 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14640 old_postinstall_cmds old_postuninstall_cmds \
14644 lt_prog_compiler_wl \
14645 lt_prog_compiler_pic \
14646 lt_prog_compiler_static \
14647 lt_prog_compiler_no_builtin_flag \
14648 export_dynamic_flag_spec \
14649 thread_safe_flag_spec \
14650 whole_archive_flag_spec \
14651 enable_shared_with_static_runtimes \
14653 old_archive_from_new_cmds \
14658 compiler_lib_search_path \
14660 archive_expsym_cmds \
14662 postuninstall_cmds \
14663 old_archive_from_expsyms_cmds \
14664 allow_undefined_flag \
14665 no_undefined_flag \
14666 export_symbols_cmds \
14667 hardcode_libdir_flag_spec \
14668 hardcode_libdir_flag_spec_ld \
14669 hardcode_libdir_separator \
14670 hardcode_automatic \
14672 module_expsym_cmds \
14673 lt_cv_prog_compiler_c_o \
14675 include_expsyms; do
14678 old_archive_cmds | \
14679 old_archive_from_new_cmds | \
14681 archive_expsym_cmds | \
14683 module_expsym_cmds | \
14684 old_archive_from_expsyms_cmds | \
14685 export_symbols_cmds | \
14686 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14687 postinstall_cmds | postuninstall_cmds | \
14688 old_postinstall_cmds | old_postuninstall_cmds | \
14689 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14690 # Double-quote double-evaled strings.
14691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14700 *'\$0 --fallback-echo"')
14701 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14705 cfgfile="${ofile}T"
14706 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14708 { echo "$as_me:$LINENO: creating $ofile" >&5
14709 echo "$as_me: creating $ofile" >&6;}
14711 cat <<__EOF__ >> "$cfgfile"
14714 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14715 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14716 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14718 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14719 # Free Software Foundation, Inc.
14721 # This file is part of GNU Libtool:
14722 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14724 # This program is free software; you can redistribute it and/or modify
14725 # it under the terms of the GNU General Public License as published by
14726 # the Free Software Foundation; either version 2 of the License, or
14727 # (at your option) any later version.
14729 # This program is distributed in the hope that it will be useful, but
14730 # WITHOUT ANY WARRANTY; without even the implied warranty of
14731 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14732 # General Public License for more details.
14734 # You should have received a copy of the GNU General Public License
14735 # along with this program; if not, write to the Free Software
14736 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14738 # As a special exception to the GNU General Public License, if you
14739 # distribute this file as part of a program that contains a
14740 # configuration script generated by Autoconf, you may include it under
14741 # the same distribution terms that you use for the rest of that program.
14743 # A sed program that does not truncate output.
14746 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14747 Xsed="$SED -e s/^X//"
14749 # The HP-UX ksh and POSIX shell print the target directory to stdout
14750 # if CDPATH is set.
14751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14753 # The names of the tagged configurations supported by this script.
14756 # ### BEGIN LIBTOOL CONFIG
14758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14760 # Shell to use when invoking shell scripts.
14763 # Whether or not to build shared libraries.
14764 build_libtool_libs=$enable_shared
14766 # Whether or not to build static libraries.
14767 build_old_libs=$enable_static
14769 # Whether or not to add -lc for building shared libraries.
14770 build_libtool_need_lc=$archive_cmds_need_lc
14772 # Whether or not to disallow shared libs when runtime libs are static
14773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14775 # Whether or not to optimize for fast installation.
14776 fast_install=$enable_fast_install
14779 host_alias=$host_alias
14782 # An echo program that does not interpret backslashes.
14787 AR_FLAGS=$lt_AR_FLAGS
14792 # A language-specific compiler.
14795 # Is the compiler the GNU C compiler?
14801 # The linker used to build libraries.
14804 # Whether we need hard or soft links.
14807 # A BSD-compatible nm program.
14810 # A symbol stripping program
14813 # Used to examine libraries when file_magic_cmd begins "file"
14814 MAGIC_CMD=$MAGIC_CMD
14816 # Used on cygwin: DLL creation program.
14819 # Used on cygwin: object dumper.
14822 # Used on cygwin: assembler.
14825 # The name of the directory that contains temporary libtool files.
14828 # How to create reloadable object files.
14829 reload_flag=$lt_reload_flag
14830 reload_cmds=$lt_reload_cmds
14832 # How to pass a linker flag through the compiler.
14833 wl=$lt_lt_prog_compiler_wl
14835 # Object file suffix (normally "o").
14836 objext="$ac_objext"
14838 # Old archive suffix (normally "a").
14841 # Shared library suffix (normally ".so").
14842 shrext_cmds='$shrext_cmds'
14844 # Executable file suffix (normally "").
14847 # Additional compiler flags for building library objects.
14848 pic_flag=$lt_lt_prog_compiler_pic
14851 # What is the maximum length of a command?
14852 max_cmd_len=$lt_cv_sys_max_cmd_len
14854 # Does compiler simultaneously support -c and -o options?
14855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14857 # Must we lock files when doing compilation ?
14858 need_locks=$lt_need_locks
14860 # Do we need the lib prefix for modules?
14861 need_lib_prefix=$need_lib_prefix
14863 # Do we need a version for libraries?
14864 need_version=$need_version
14866 # Whether dlopen is supported.
14867 dlopen_support=$enable_dlopen
14869 # Whether dlopen of programs is supported.
14870 dlopen_self=$enable_dlopen_self
14872 # Whether dlopen of statically linked programs is supported.
14873 dlopen_self_static=$enable_dlopen_self_static
14875 # Compiler flag to prevent dynamic linking.
14876 link_static_flag=$lt_lt_prog_compiler_static
14878 # Compiler flag to turn off builtin functions.
14879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14881 # Compiler flag to allow reflexive dlopens.
14882 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14884 # Compiler flag to generate shared objects directly from archives.
14885 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14887 # Compiler flag to generate thread-safe objects.
14888 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14890 # Library versioning type.
14891 version_type=$version_type
14893 # Format of library name prefix.
14894 libname_spec=$lt_libname_spec
14896 # List of archive names. First name is the real one, the rest are links.
14897 # The last name is the one that the linker finds with -lNAME.
14898 library_names_spec=$lt_library_names_spec
14900 # The coded name of the library, if different from the real name.
14901 soname_spec=$lt_soname_spec
14903 # Commands used to build and install an old-style archive.
14905 old_archive_cmds=$lt_old_archive_cmds
14906 old_postinstall_cmds=$lt_old_postinstall_cmds
14907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14909 # Create an old-style archive from a shared archive.
14910 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14912 # Create a temporary old-style archive to link instead of a shared archive.
14913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14915 # Commands used to build and install a shared archive.
14916 archive_cmds=$lt_archive_cmds
14917 archive_expsym_cmds=$lt_archive_expsym_cmds
14918 postinstall_cmds=$lt_postinstall_cmds
14919 postuninstall_cmds=$lt_postuninstall_cmds
14921 # Commands used to build a loadable module (assumed same as above if empty)
14922 module_cmds=$lt_module_cmds
14923 module_expsym_cmds=$lt_module_expsym_cmds
14925 # Commands to strip libraries.
14926 old_striplib=$lt_old_striplib
14927 striplib=$lt_striplib
14929 # Dependencies to place before the objects being linked to create a
14931 predep_objects=$lt_predep_objects
14933 # Dependencies to place after the objects being linked to create a
14935 postdep_objects=$lt_postdep_objects
14937 # Dependencies to place before the objects being linked to create a
14939 predeps=$lt_predeps
14941 # Dependencies to place after the objects being linked to create a
14943 postdeps=$lt_postdeps
14945 # The library search path used internally by the compiler when linking
14946 # a shared library.
14947 compiler_lib_search_path=$lt_compiler_lib_search_path
14949 # Method to check whether dependent libraries are shared objects.
14950 deplibs_check_method=$lt_deplibs_check_method
14952 # Command to use when deplibs_check_method == file_magic.
14953 file_magic_cmd=$lt_file_magic_cmd
14955 # Flag that allows shared libraries with undefined symbols to be built.
14956 allow_undefined_flag=$lt_allow_undefined_flag
14958 # Flag that forces no undefined symbols.
14959 no_undefined_flag=$lt_no_undefined_flag
14961 # Commands used to finish a libtool library installation in a directory.
14962 finish_cmds=$lt_finish_cmds
14964 # Same as above, but a single script fragment to be evaled but not shown.
14965 finish_eval=$lt_finish_eval
14967 # Take the output of nm and produce a listing of raw symbols and C names.
14968 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14970 # Transform the output of nm in a proper C declaration
14971 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14973 # Transform the output of nm in a C name address pair
14974 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14976 # This is the shared library runtime path variable.
14977 runpath_var=$runpath_var
14979 # This is the shared library path variable.
14980 shlibpath_var=$shlibpath_var
14982 # Is shlibpath searched before the hard-coded library search path?
14983 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14985 # How to hardcode a shared library path into an executable.
14986 hardcode_action=$hardcode_action
14988 # Whether we should hardcode library paths into libraries.
14989 hardcode_into_libs=$hardcode_into_libs
14991 # Flag to hardcode \$libdir into a binary during linking.
14992 # This must work even if \$libdir does not exist.
14993 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14995 # If ld is used when linking, flag to hardcode \$libdir into
14996 # a binary during linking. This must work even if \$libdir does
14998 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15000 # Whether we need a single -rpath flag with a separated argument.
15001 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15003 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15004 # resulting binary.
15005 hardcode_direct=$hardcode_direct
15007 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15008 # resulting binary.
15009 hardcode_minus_L=$hardcode_minus_L
15011 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15012 # the resulting binary.
15013 hardcode_shlibpath_var=$hardcode_shlibpath_var
15015 # Set to yes if building a shared library automatically hardcodes DIR into the library
15016 # and all subsequent libraries and executables linked against it.
15017 hardcode_automatic=$hardcode_automatic
15019 # Variables whose values should be saved in libtool wrapper scripts and
15020 # restored at relink time.
15021 variables_saved_for_relink="$variables_saved_for_relink"
15023 # Whether libtool must link a program against all its dependency libraries.
15024 link_all_deplibs=$link_all_deplibs
15026 # Compile-time system search path for libraries
15027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15029 # Run-time system search path for libraries
15030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15032 # Fix the shell variable \$srcfile for the compiler.
15033 fix_srcfile_path="$fix_srcfile_path"
15035 # Set to yes if exported symbols are required.
15036 always_export_symbols=$always_export_symbols
15038 # The commands to list exported symbols.
15039 export_symbols_cmds=$lt_export_symbols_cmds
15041 # The commands to extract the exported symbol list from a shared archive.
15042 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15044 # Symbols that should not be listed in the preloaded symbols.
15045 exclude_expsyms=$lt_exclude_expsyms
15047 # Symbols that must always be exported.
15048 include_expsyms=$lt_include_expsyms
15050 # ### END LIBTOOL CONFIG
15057 cat <<\EOF >> "$cfgfile"
15059 # AIX sometimes has problems with the GCC collect2 program. For some
15060 # reason, if we set the COLLECT_NAMES environment variable, the problems
15061 # vanish in a puff of smoke.
15062 if test "X${COLLECT_NAMES+set}" != Xset; then
15064 export COLLECT_NAMES
15070 # We use sed instead of cat because bash on DJGPP gets confused if
15071 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15072 # text mode, it properly converts lines to CR/LF. This bash problem
15073 # is reportedly fixed, but why not run on old versions too?
15074 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15076 mv -f "$cfgfile" "$ofile" || \
15077 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15081 # If there is no Makefile yet, we rely on a make rule to execute
15082 # `config.status --recheck' to rerun these tests and create the
15083 # libtool script then.
15084 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15085 if test -f "$ltmain_in"; then
15086 test -f Makefile && make "$ltmain"
15092 ac_cpp='$CPP $CPPFLAGS'
15093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15100 # Check whether --with-tags or --without-tags was given.
15101 if test "${with_tags+set}" = set; then
15102 withval="$with_tags"
15103 tagnames="$withval"
15106 if test -f "$ltmain" && test -n "$tagnames"; then
15107 if test ! -f "${ofile}"; then
15108 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15109 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15112 if test -z "$LTCC"; then
15113 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15114 if test -z "$LTCC"; then
15115 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15116 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15119 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15123 # Extract list of available tagged configurations in $ofile.
15124 # Note that this assumes the entire list is on one line.
15125 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15128 for tagname in $tagnames; do
15130 # Check whether tagname contains only valid characters
15131 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15133 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15134 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15135 { (exit 1); exit 1; }; }
15139 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15141 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15142 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15143 { (exit 1); exit 1; }; }
15146 # Update the list of available tags.
15147 if test -n "$tagname"; then
15148 echo appending configuration tag "$tagname" to $ofile
15152 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15153 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15154 (test "X$CXX" != "Xg++"))) ; then
15156 ac_cpp='$CXXCPP $CPPFLAGS'
15157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15164 archive_cmds_need_lc_CXX=no
15165 allow_undefined_flag_CXX=
15166 always_export_symbols_CXX=no
15167 archive_expsym_cmds_CXX=
15168 export_dynamic_flag_spec_CXX=
15169 hardcode_direct_CXX=no
15170 hardcode_libdir_flag_spec_CXX=
15171 hardcode_libdir_flag_spec_ld_CXX=
15172 hardcode_libdir_separator_CXX=
15173 hardcode_minus_L_CXX=no
15174 hardcode_automatic_CXX=no
15176 module_expsym_cmds_CXX=
15177 link_all_deplibs_CXX=unknown
15178 old_archive_cmds_CXX=$old_archive_cmds
15179 no_undefined_flag_CXX=
15180 whole_archive_flag_spec_CXX=
15181 enable_shared_with_static_runtimes_CXX=no
15183 # Dependencies to place before and after the object being linked:
15184 predep_objects_CXX=
15185 postdep_objects_CXX=
15188 compiler_lib_search_path_CXX=
15190 # Source file extension for C++ test sources.
15193 # Object file extension for compiled C++ test sources.
15197 # Code to be used in simple compile tests
15198 lt_simple_compile_test_code="int some_variable = 0;\n"
15200 # Code to be used in simple link tests
15201 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15203 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15205 # If no C compiler was specified, use CC.
15208 # Allow CC to be a program name with arguments.
15212 # Allow CC to be a program name with arguments.
15217 lt_save_with_gnu_ld=$with_gnu_ld
15218 lt_save_path_LD=$lt_cv_path_LD
15219 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15220 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15222 unset lt_cv_prog_gnu_ld
15224 if test -n "${lt_cv_path_LDCXX+set}"; then
15225 lt_cv_path_LD=$lt_cv_path_LDCXX
15227 unset lt_cv_path_LD
15229 test -z "${LDCXX+set}" || LD=$LDCXX
15233 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15235 # We don't want -fno-exception wen compiling C++ code, so set the
15236 # no_builtin_flag separately
15237 if test "$GXX" = yes; then
15238 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15240 lt_prog_compiler_no_builtin_flag_CXX=
15243 if test "$GXX" = yes; then
15244 # Set up default GNU C++ configuration
15247 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15248 if test "${with_gnu_ld+set}" = set; then
15249 withval="$with_gnu_ld"
15250 test "$withval" = no || with_gnu_ld=yes
15255 if test "$GCC" = yes; then
15256 # Check if gcc -print-prog-name=ld gives a path.
15257 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15258 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15261 # gcc leaves a trailing carriage return which upsets mingw
15262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15267 # Accept absolute paths.
15269 re_direlt='/[^/][^/]*/\.\./'
15270 # Canonicalize the pathname of ld
15271 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15272 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15273 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15275 test -z "$LD" && LD="$ac_prog"
15278 # If it fails, then pretend we aren't using GCC.
15282 # If it is relative, then search for the first ld in PATH.
15283 with_gnu_ld=unknown
15286 elif test "$with_gnu_ld" = yes; then
15287 echo "$as_me:$LINENO: checking for GNU ld" >&5
15288 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15290 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15291 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15293 if test "${lt_cv_path_LD+set}" = set; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 if test -z "$LD"; then
15297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15298 for ac_dir in $PATH; do
15300 test -z "$ac_dir" && ac_dir=.
15301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15302 lt_cv_path_LD="$ac_dir/$ac_prog"
15303 # Check to see if the program is GNU ld. I'd rather use --version,
15304 # but apparently some GNU ld's only accept -v.
15305 # Break only if it was the GNU/non-GNU ld that we prefer.
15306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15307 *GNU* | *'with BFD'*)
15308 test "$with_gnu_ld" != no && break
15311 test "$with_gnu_ld" != yes && break
15318 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15322 LD="$lt_cv_path_LD"
15323 if test -n "$LD"; then
15324 echo "$as_me:$LINENO: result: $LD" >&5
15325 echo "${ECHO_T}$LD" >&6
15327 echo "$as_me:$LINENO: result: no" >&5
15328 echo "${ECHO_T}no" >&6
15330 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15331 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15332 { (exit 1); exit 1; }; }
15333 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15334 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15335 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15339 case `$LD -v 2>&1 </dev/null` in
15340 *GNU* | *'with BFD'*)
15341 lt_cv_prog_gnu_ld=yes
15344 lt_cv_prog_gnu_ld=no
15348 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15349 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15350 with_gnu_ld=$lt_cv_prog_gnu_ld
15354 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15355 # archiving commands below assume that GNU ld is being used.
15356 if test "$with_gnu_ld" = yes; then
15357 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15358 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'
15360 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15363 # If archive_cmds runs LD, not CC, wlarc should be empty
15364 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15365 # investigate it a little bit more. (MM)
15368 # ancient GNU ld didn't support --whole-archive et. al.
15369 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15370 grep 'no-whole-archive' > /dev/null; then
15371 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15373 whole_archive_flag_spec_CXX=
15379 # A generic and very simple default shared library creation
15380 # command for GNU C++ for the case where it uses the native
15381 # linker, instead of GNU ld. If possible, this setting should
15382 # overridden to take advantage of the native linker features on
15383 # the platform it is being used on.
15384 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15387 # Commands to make compiler produce verbose output that lists
15388 # what "hidden" libraries, object files and flags are used when
15389 # linking a shared library.
15390 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15398 # PORTME: fill in a description of your system's C++ link characteristics
15399 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15400 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15404 # FIXME: insert proper C++ library support
15408 if test "$host_cpu" = ia64; then
15409 # On IA64, the linker does run time linking by default, so we don't
15410 # have to do anything special.
15411 aix_use_runtimelinking=no
15412 exp_sym_flag='-Bexport'
15415 aix_use_runtimelinking=no
15417 # Test if we are trying to use run time linking or normal
15418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15419 # need to do runtime linking.
15420 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15421 for ld_flag in $LDFLAGS; do
15424 aix_use_runtimelinking=yes
15431 exp_sym_flag='-bexport'
15432 no_entry_flag='-bnoentry'
15435 # When large executables or shared objects are built, AIX ld can
15436 # have problems creating the table of contents. If linking a library
15437 # or program results in "error TOC overflow" add -mminimal-toc to
15438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15441 archive_cmds_CXX=''
15442 hardcode_direct_CXX=yes
15443 hardcode_libdir_separator_CXX=':'
15444 link_all_deplibs_CXX=yes
15446 if test "$GXX" = yes; then
15447 case $host_os in aix4.012|aix4.012.*)
15448 # We only want to do this on AIX 4.2 and lower, the check
15449 # below for broken collect2 doesn't work under 4.3+
15450 collect2name=`${CC} -print-prog-name=collect2`
15451 if test -f "$collect2name" && \
15452 strings "$collect2name" | grep resolve_lib_name >/dev/null
15454 # We have reworked collect2
15455 hardcode_direct_CXX=yes
15457 # We have old collect2
15458 hardcode_direct_CXX=unsupported
15459 # It fails to find uninstalled libraries when the uninstalled
15460 # path is not listed in the libpath. Setting hardcode_minus_L
15461 # to unsupported forces relinking
15462 hardcode_minus_L_CXX=yes
15463 hardcode_libdir_flag_spec_CXX='-L$libdir'
15464 hardcode_libdir_separator_CXX=
15467 shared_flag='-shared'
15470 if test "$host_cpu" = ia64; then
15471 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15472 # chokes on -Wl,-G. The following line is correct:
15475 if test "$aix_use_runtimelinking" = yes; then
15476 shared_flag='${wl}-G'
15478 shared_flag='${wl}-bM:SRE'
15483 # It seems that -bexpall does not export symbols beginning with
15484 # underscore (_), so it is better to generate a list of symbols to export.
15485 always_export_symbols_CXX=yes
15486 if test "$aix_use_runtimelinking" = yes; then
15487 # Warning - without using the other runtime loading flags (-brtl),
15488 # -berok will link without error, but may produce a broken library.
15489 allow_undefined_flag_CXX='-berok'
15490 # Determine the default libpath from the value encoded in an empty executable.
15491 cat >conftest.$ac_ext <<_ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15508 (eval $ac_link) 2>conftest.er1
15510 grep -v '^ *+' conftest.er1 >conftest.err
15512 cat conftest.err >&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
15515 { ac_try='test -z "$ac_cxx_werror_flag"
15516 || test ! -s conftest.err'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; } &&
15522 { ac_try='test -s conftest$ac_exeext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15531 # Check for a 64-bit object if we didn't find anything.
15532 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; }
15535 echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15539 rm -f conftest.err conftest.$ac_objext \
15540 conftest$ac_exeext conftest.$ac_ext
15541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15543 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15545 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"
15547 if test "$host_cpu" = ia64; then
15548 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15549 allow_undefined_flag_CXX="-z nodefs"
15550 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"
15552 # Determine the default libpath from the value encoded in an empty executable.
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15568 rm -f conftest.$ac_objext conftest$ac_exeext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570 (eval $ac_link) 2>conftest.er1
15572 grep -v '^ *+' conftest.er1 >conftest.err
15574 cat conftest.err >&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } &&
15577 { ac_try='test -z "$ac_cxx_werror_flag"
15578 || test ! -s conftest.err'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest$ac_exeext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15593 # Check for a 64-bit object if we didn't find anything.
15594 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; }
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15601 rm -f conftest.err conftest.$ac_objext \
15602 conftest$ac_exeext conftest.$ac_ext
15603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15605 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15606 # Warning - without using the other run time loading flags,
15607 # -berok will link without error, but may produce a broken library.
15608 no_undefined_flag_CXX=' ${wl}-bernotok'
15609 allow_undefined_flag_CXX=' ${wl}-berok'
15610 # -bexpall does not export symbols beginning with underscore (_)
15611 always_export_symbols_CXX=yes
15612 # Exported symbols can be pulled into shared objects from archives
15613 whole_archive_flag_spec_CXX=' '
15614 archive_cmds_need_lc_CXX=yes
15615 # This is similar to how AIX traditionally builds it's shared libraries.
15616 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'
15621 case $cc_basename in
15623 # FIXME: insert proper C++ library support
15630 cygwin* | mingw* | pw32*)
15631 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15632 # as there is no search path for DLLs.
15633 hardcode_libdir_flag_spec_CXX='-L$libdir'
15634 allow_undefined_flag_CXX=unsupported
15635 always_export_symbols_CXX=no
15636 enable_shared_with_static_runtimes_CXX=yes
15638 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15639 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'
15640 # If the export-symbols file already is a .def file (1st line
15641 # is EXPORTS), use it as is; otherwise, prepend...
15642 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15643 cp $export_symbols $output_objdir/$soname.def;
15645 echo EXPORTS > $output_objdir/$soname.def;
15646 cat $export_symbols >> $output_objdir/$soname.def;
15648 $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'
15653 darwin* | rhapsody*)
15655 rhapsody* | darwin1.[012])
15656 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15659 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15660 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15662 case ${MACOSX_DEPLOYMENT_TARGET} in
15664 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15667 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15673 archive_cmds_need_lc_CXX=no
15674 hardcode_direct_CXX=no
15675 hardcode_automatic_CXX=yes
15676 hardcode_shlibpath_var_CXX=unsupported
15677 whole_archive_flag_spec_CXX=''
15678 link_all_deplibs_CXX=yes
15680 if test "$GXX" = yes ; then
15681 lt_int_apple_cc_single_mod=no
15682 output_verbose_link_cmd='echo'
15683 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15684 lt_int_apple_cc_single_mod=yes
15686 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15687 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15689 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'
15691 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15692 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15693 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15694 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}'
15696 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}'
15698 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}'
15700 case "$cc_basename" in
15702 output_verbose_link_cmd='echo'
15703 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'
15704 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15705 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15706 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}'
15707 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}'
15717 case $cc_basename in
15719 # FIXME: insert proper C++ library support
15723 # Green Hills C++ Compiler
15724 # FIXME: insert proper C++ library support
15728 # FIXME: insert proper C++ library support
15734 # C++ shared libraries reported to be fairly broken before switch to ELF
15738 archive_cmds_need_lc_CXX=no
15740 freebsd* | kfreebsd*-gnu)
15741 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15748 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15749 hardcode_libdir_separator_CXX=:
15750 export_dynamic_flag_spec_CXX='${wl}-E'
15751 hardcode_direct_CXX=yes
15752 hardcode_minus_L_CXX=yes # Not in the search PATH,
15753 # but as the default
15754 # location of the library.
15756 case $cc_basename in
15758 # FIXME: insert proper C++ library support
15762 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'
15763 # Commands to make compiler produce verbose output that lists
15764 # what "hidden" libraries, object files and flags are used when
15765 # linking a shared library.
15767 # There doesn't appear to be a way to prevent this compiler from
15768 # explicitly linking system object files so we need to strip them
15769 # from the output so that they don't get included in the library
15771 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'
15774 if test "$GXX" = yes; then
15775 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'
15777 # FIXME: insert proper C++ library support
15784 if test $with_gnu_ld = no; then
15785 case "$host_cpu" in
15787 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15788 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15789 hardcode_libdir_separator_CXX=:
15792 hardcode_libdir_flag_spec_CXX='-L$libdir'
15795 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15796 hardcode_libdir_separator_CXX=:
15797 export_dynamic_flag_spec_CXX='${wl}-E'
15801 case "$host_cpu" in
15803 hardcode_direct_CXX=no
15804 hardcode_shlibpath_var_CXX=no
15807 hardcode_direct_CXX=no
15808 hardcode_shlibpath_var_CXX=no
15809 hardcode_minus_L_CXX=yes # Not in the search PATH,
15810 # but as the default
15811 # location of the library.
15814 hardcode_direct_CXX=yes
15815 hardcode_minus_L_CXX=yes # Not in the search PATH,
15816 # but as the default
15817 # location of the library.
15821 case $cc_basename in
15823 # FIXME: insert proper C++ library support
15827 case "$host_cpu" in
15829 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15832 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15835 # Commands to make compiler produce verbose output that lists
15836 # what "hidden" libraries, object files and flags are used when
15837 # linking a shared library.
15839 # There doesn't appear to be a way to prevent this compiler from
15840 # explicitly linking system object files so we need to strip them
15841 # from the output so that they don't get included in the library
15843 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'
15846 if test "$GXX" = yes; then
15847 if test $with_gnu_ld = no; then
15848 case "$host_cpu" in
15850 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15853 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'
15858 # FIXME: insert proper C++ library support
15865 case $cc_basename in
15868 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'
15870 # Archives containing C++ object files must be created using
15871 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15872 # necessary to make sure instantiated templates are included
15874 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15877 if test "$GXX" = yes; then
15878 if test "$with_gnu_ld" = no; then
15879 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'
15881 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'
15884 link_all_deplibs_CXX=yes
15887 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15888 hardcode_libdir_separator_CXX=:
15891 case $cc_basename in
15893 # Kuck and Associates, Inc. (KAI) C++ Compiler
15895 # KCC will only create a shared library if the output file
15896 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15897 # to its proper name (with version) after linking.
15898 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'
15899 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'
15900 # Commands to make compiler produce verbose output that lists
15901 # what "hidden" libraries, object files and flags are used when
15902 # linking a shared library.
15904 # There doesn't appear to be a way to prevent this compiler from
15905 # explicitly linking system object files so we need to strip them
15906 # from the output so that they don't get included in the library
15908 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'
15910 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15911 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15913 # Archives containing C++ object files must be created using
15914 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15915 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15920 # version 8.0 and above of icpc choke on multiply defined symbols
15921 # if we add $predep_objects and $postdep_objects, however 7.1 and
15922 # earlier do not add the objects themselves.
15923 case `$CC -V 2>&1` in
15925 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15926 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'
15928 *) # Version 8.0 or newer
15929 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15930 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15933 archive_cmds_need_lc_CXX=no
15934 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15935 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15936 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15940 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941 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'
15943 runpath_var=LD_RUN_PATH
15944 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15945 hardcode_libdir_separator_CXX=:
15947 # Commands to make compiler produce verbose output that lists
15948 # what "hidden" libraries, object files and flags are used when
15949 # linking a shared library.
15951 # There doesn't appear to be a way to prevent this compiler from
15952 # explicitly linking system object files so we need to strip them
15953 # from the output so that they don't get included in the library
15955 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'
15960 # FIXME: insert proper C++ library support
15964 # FIXME: insert proper C++ library support
15968 case $cc_basename in
15970 # FIXME: insert proper C++ library support
15974 # FIXME: insert proper C++ library support
15980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15981 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15983 hardcode_libdir_flag_spec_CXX='-R$libdir'
15984 hardcode_direct_CXX=yes
15985 hardcode_shlibpath_var_CXX=no
15987 # Workaround some broken pre-1.5 toolchains
15988 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15991 # C++ shared libraries are fairly broken
15995 hardcode_direct_CXX=yes
15996 hardcode_shlibpath_var_CXX=no
15997 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16000 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16001 export_dynamic_flag_spec_CXX='${wl}-E'
16002 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16004 output_verbose_link_cmd='echo'
16007 case $cc_basename in
16009 # Kuck and Associates, Inc. (KAI) C++ Compiler
16011 # KCC will only create a shared library if the output file
16012 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16013 # to its proper name (with version) after linking.
16014 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'
16016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16017 hardcode_libdir_separator_CXX=:
16019 # Archives containing C++ object files must be created using
16020 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16021 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16025 # Rational C++ 2.4.1
16026 # FIXME: insert proper C++ library support
16030 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16031 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'
16033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16034 hardcode_libdir_separator_CXX=:
16036 # Commands to make compiler produce verbose output that lists
16037 # what "hidden" libraries, object files and flags are used when
16038 # linking a shared library.
16040 # There doesn't appear to be a way to prevent this compiler from
16041 # explicitly linking system object files so we need to strip them
16042 # from the output so that they don't get included in the library
16044 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'
16047 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16049 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'
16051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16052 hardcode_libdir_separator_CXX=:
16054 # Commands to make compiler produce verbose output that lists
16055 # what "hidden" libraries, object files and flags are used when
16056 # linking a shared library.
16057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16060 # FIXME: insert proper C++ library support
16067 case $cc_basename in
16069 # Kuck and Associates, Inc. (KAI) C++ Compiler
16071 # KCC will only create a shared library if the output file
16072 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16073 # to its proper name (with version) after linking.
16074 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'
16076 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16077 hardcode_libdir_separator_CXX=:
16079 # Archives containing C++ object files must be created using
16080 # the KAI C++ compiler.
16081 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16084 # Rational C++ 2.4.1
16085 # FIXME: insert proper C++ library support
16089 allow_undefined_flag_CXX=' -expect_unresolved \*'
16090 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'
16091 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16092 echo "-hidden">> $lib.exp~
16093 $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~
16096 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16097 hardcode_libdir_separator_CXX=:
16099 # Commands to make compiler produce verbose output that lists
16100 # what "hidden" libraries, object files and flags are used when
16101 # linking a shared library.
16103 # There doesn't appear to be a way to prevent this compiler from
16104 # explicitly linking system object files so we need to strip them
16105 # from the output so that they don't get included in the library
16107 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'
16110 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16111 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16112 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'
16114 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16115 hardcode_libdir_separator_CXX=:
16117 # Commands to make compiler produce verbose output that lists
16118 # what "hidden" libraries, object files and flags are used when
16119 # linking a shared library.
16120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16123 # FIXME: insert proper C++ library support
16130 # FIXME: insert proper C++ library support
16134 archive_cmds_need_lc_CXX=no
16135 case $cc_basename in
16137 # FIXME: insert proper C++ library support
16141 # FIXME: insert proper C++ library support
16147 case $cc_basename in
16150 # FIXME: insert proper C++ library support
16155 # FIXME: insert proper C++ library support
16159 # FIXME: insert proper C++ library support
16165 case $cc_basename in
16167 # Sun C++ 4.2, 5.x and Centerline C++
16168 no_undefined_flag_CXX=' -zdefs'
16169 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16170 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16171 $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'
16173 hardcode_libdir_flag_spec_CXX='-R$libdir'
16174 hardcode_shlibpath_var_CXX=no
16176 solaris2.0-5 | solaris2.0-5.*) ;;
16178 # The C++ compiler is used as linker so we must use $wl
16179 # flag to pass the commands to the underlying system
16181 # Supported since Solaris 2.6 (maybe 2.5.1?)
16182 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16185 link_all_deplibs_CXX=yes
16187 # Commands to make compiler produce verbose output that lists
16188 # what "hidden" libraries, object files and flags are used when
16189 # linking a shared library.
16191 # There doesn't appear to be a way to prevent this compiler from
16192 # explicitly linking system object files so we need to strip them
16193 # from the output so that they don't get included in the library
16195 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'
16197 # Archives containing C++ object files must be created using
16198 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16199 # necessary to make sure instantiated templates are included
16201 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16204 # Green Hills C++ Compiler
16205 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16207 # The C++ compiler must be used to create the archive.
16208 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16211 # GNU C++ compiler with Solaris linker
16212 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16213 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16214 if $CC --version | grep -v '^2\.7' > /dev/null; then
16215 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16216 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16217 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16219 # Commands to make compiler produce verbose output that lists
16220 # what "hidden" libraries, object files and flags are used when
16221 # linking a shared library.
16222 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16224 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16226 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16227 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16228 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16230 # Commands to make compiler produce verbose output that lists
16231 # what "hidden" libraries, object files and flags are used when
16232 # linking a shared library.
16233 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16236 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16241 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16242 archive_cmds_need_lc_CXX=no
16245 case $cc_basename in
16247 # NonStop-UX NCC 3.20
16248 # FIXME: insert proper C++ library support
16252 # FIXME: insert proper C++ library support
16258 # FIXME: insert proper C++ library support
16262 # FIXME: insert proper C++ library support
16266 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16267 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16268 test "$ld_shlibs_CXX" = no && can_build_shared=no
16274 cat > conftest.$ac_ext <<EOF
16278 Foo (void) { a = 0; }
16284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285 (eval $ac_compile) 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; then
16289 # Parse the compiler output and extract the necessary
16290 # objects, libraries and library flags.
16292 # Sentinel used to keep track of whether or not we are before
16293 # the conftest object file.
16294 pre_test_object_deps_done=no
16296 # The `*' in the case matches for architectures that use `case' in
16297 # $output_verbose_cmd can trigger glob expansion during the loop
16298 # eval without this substitution.
16299 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16301 for p in `eval $output_verbose_link_cmd`; do
16305 # Some compilers place space between "-{L,R}" and the path.
16306 # Remove the space.
16307 if test $p = "-L" \
16308 || test $p = "-R"; then
16315 if test "$pre_test_object_deps_done" = no; then
16318 # Internal compiler library paths should come after those
16319 # provided the user. The postdeps already come after the
16320 # user supplied libs so there is no need to process them.
16321 if test -z "$compiler_lib_search_path_CXX"; then
16322 compiler_lib_search_path_CXX="${prev}${p}"
16324 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16327 # The "-l" case would never come before the object being
16328 # linked, so don't bother handling this case.
16331 if test -z "$postdeps_CXX"; then
16332 postdeps_CXX="${prev}${p}"
16334 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16340 # This assumes that the test object file only shows up
16341 # once in the compiler output.
16342 if test "$p" = "conftest.$objext"; then
16343 pre_test_object_deps_done=yes
16347 if test "$pre_test_object_deps_done" = no; then
16348 if test -z "$predep_objects_CXX"; then
16349 predep_objects_CXX="$p"
16351 predep_objects_CXX="$predep_objects_CXX $p"
16354 if test -z "$postdep_objects_CXX"; then
16355 postdep_objects_CXX="$p"
16357 postdep_objects_CXX="$postdep_objects_CXX $p"
16362 *) ;; # Ignore the rest.
16370 echo "libtool.m4: error: problem compiling CXX test program"
16373 $rm -f confest.$objext
16375 case " $postdeps_CXX " in
16376 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16379 lt_prog_compiler_wl_CXX=
16380 lt_prog_compiler_pic_CXX=
16381 lt_prog_compiler_static_CXX=
16383 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16386 # C++ specific cases for pic, static, wl, etc.
16387 if test "$GXX" = yes; then
16388 lt_prog_compiler_wl_CXX='-Wl,'
16389 lt_prog_compiler_static_CXX='-static'
16393 # All AIX code is PIC.
16394 if test "$host_cpu" = ia64; then
16395 # AIX 5 now supports IA64 processor
16396 lt_prog_compiler_static_CXX='-Bstatic'
16400 # FIXME: we need at least 68020 code to build shared libraries, but
16401 # adding the `-m68020' flag to GCC prevents building anything better,
16403 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16405 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16406 # PIC is the default for these OSes.
16408 mingw* | os2* | pw32*)
16409 # This hack is so that the source file can tell whether it is being
16410 # built for inclusion in a dll (and should export symbols for example).
16411 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16413 darwin* | rhapsody*)
16414 # PIC is the default on this platform
16415 # Common symbols not allowed in MH_DYLIB files
16416 lt_prog_compiler_pic_CXX='-fno-common'
16419 # DJGPP does not support shared libraries at all
16420 lt_prog_compiler_pic_CXX=
16423 if test -d /usr/nec; then
16424 lt_prog_compiler_pic_CXX=-Kconform_pic
16428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16429 # not for PA HP-UX.
16430 case "$host_cpu" in
16434 lt_prog_compiler_pic_CXX='-fPIC'
16439 lt_prog_compiler_pic_CXX='-fPIC'
16445 # All AIX code is PIC.
16446 if test "$host_cpu" = ia64; then
16447 # AIX 5 now supports IA64 processor
16448 lt_prog_compiler_static_CXX='-Bstatic'
16450 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16454 case $cc_basename in
16456 # Green Hills C++ Compiler
16457 # _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"
16462 # PIC is the default on this platform
16463 # Common symbols not allowed in MH_DYLIB files
16464 case "$cc_basename" in
16466 lt_prog_compiler_pic_CXX='-qnocommon'
16467 lt_prog_compiler_wl_CXX='-Wl,'
16472 case $cc_basename in
16474 lt_prog_compiler_pic_CXX='-KPIC'
16477 # Green Hills C++ Compiler
16478 lt_prog_compiler_pic_CXX='-pic'
16484 freebsd* | kfreebsd*-gnu)
16485 # FreeBSD uses GNU C++
16487 hpux9* | hpux10* | hpux11*)
16488 case $cc_basename in
16490 lt_prog_compiler_wl_CXX='-Wl,'
16491 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16492 if test "$host_cpu" != ia64; then
16493 lt_prog_compiler_pic_CXX='+Z'
16497 lt_prog_compiler_wl_CXX='-Wl,'
16498 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16499 case "$host_cpu" in
16504 lt_prog_compiler_pic_CXX='+Z'
16512 irix5* | irix6* | nonstopux*)
16513 case $cc_basename in
16515 lt_prog_compiler_wl_CXX='-Wl,'
16516 lt_prog_compiler_static_CXX='-non_shared'
16517 # CC pic flag -KPIC is the default.
16524 case $cc_basename in
16527 lt_prog_compiler_wl_CXX='--backend -Wl,'
16528 lt_prog_compiler_pic_CXX='-fPIC'
16532 lt_prog_compiler_wl_CXX='-Wl,'
16533 lt_prog_compiler_pic_CXX='-KPIC'
16534 lt_prog_compiler_static_CXX='-static'
16538 # Make sure the PIC flag is empty. It appears that all Alpha
16539 # Linux and Compaq Tru64 Unix objects are PIC.
16540 lt_prog_compiler_pic_CXX=
16541 lt_prog_compiler_static_CXX='-non_shared'
16552 case $cc_basename in
16554 lt_prog_compiler_pic_CXX='-W c,exportall'
16562 osf3* | osf4* | osf5*)
16563 case $cc_basename in
16565 lt_prog_compiler_wl_CXX='--backend -Wl,'
16568 # Rational C++ 2.4.1
16569 lt_prog_compiler_pic_CXX='-pic'
16572 # Digital/Compaq C++
16573 lt_prog_compiler_wl_CXX='-Wl,'
16574 # Make sure the PIC flag is empty. It appears that all Alpha
16575 # Linux and Compaq Tru64 Unix objects are PIC.
16576 lt_prog_compiler_pic_CXX=
16577 lt_prog_compiler_static_CXX='-non_shared'
16586 case $cc_basename in
16588 lt_prog_compiler_pic_CXX='-fPIC'
16595 case $cc_basename in
16597 # Sun C++ 4.2, 5.x and Centerline C++
16598 lt_prog_compiler_pic_CXX='-KPIC'
16599 lt_prog_compiler_static_CXX='-Bstatic'
16600 lt_prog_compiler_wl_CXX='-Qoption ld '
16603 # Green Hills C++ Compiler
16604 lt_prog_compiler_pic_CXX='-PIC'
16611 case $cc_basename in
16614 lt_prog_compiler_pic_CXX='-pic'
16615 lt_prog_compiler_static_CXX='-Bstatic'
16619 lt_prog_compiler_pic_CXX='-pic'
16626 case $cc_basename in
16628 # NonStop-UX NCC 3.20
16629 lt_prog_compiler_pic_CXX='-KPIC'
16640 lt_prog_compiler_can_build_shared_CXX=no
16645 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16646 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16649 # Check to make sure the PIC flag actually works.
16651 if test -n "$lt_prog_compiler_pic_CXX"; then
16653 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16654 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16655 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 lt_prog_compiler_pic_works_CXX=no
16659 ac_outfile=conftest.$ac_objext
16660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16661 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16662 # Insert the option either (1) after the last *FLAGS variable, or
16663 # (2) before a word containing "conftest.", or (3) at the end.
16664 # Note that $ac_compile itself does not contain backslashes and begins
16665 # with a dollar sign (not a hyphen), so the echo should work correctly.
16666 # The option is referenced via a variable to avoid confusing sed.
16667 lt_compile=`echo "$ac_compile" | $SED \
16668 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16670 -e 's:$: $lt_compiler_flag:'`
16671 (eval echo "\"\$as_me:16671: $lt_compile\"" >&5)
16672 (eval "$lt_compile" 2>conftest.err)
16674 cat conftest.err >&5
16675 echo "$as_me:16675: \$? = $ac_status" >&5
16676 if (exit $ac_status) && test -s "$ac_outfile"; then
16677 # The compiler can only warn and ignore the option if not recognized
16678 # So say no if there are warnings
16679 if test ! -s conftest.err; then
16680 lt_prog_compiler_pic_works_CXX=yes
16686 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16687 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16689 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16690 case $lt_prog_compiler_pic_CXX in
16692 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16695 lt_prog_compiler_pic_CXX=
16696 lt_prog_compiler_can_build_shared_CXX=no
16701 # For platforms which do not support PIC, -DPIC is meaningless:
16703 lt_prog_compiler_pic_CXX=
16706 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16712 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 lt_cv_prog_compiler_c_o_CXX=no
16716 $rm -r conftest 2>/dev/null
16720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16722 lt_compiler_flag="-o out/conftest2.$ac_objext"
16723 # Insert the option either (1) after the last *FLAGS variable, or
16724 # (2) before a word containing "conftest.", or (3) at the end.
16725 # Note that $ac_compile itself does not contain backslashes and begins
16726 # with a dollar sign (not a hyphen), so the echo should work correctly.
16727 lt_compile=`echo "$ac_compile" | $SED \
16728 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16730 -e 's:$: $lt_compiler_flag:'`
16731 (eval echo "\"\$as_me:16731: $lt_compile\"" >&5)
16732 (eval "$lt_compile" 2>out/conftest.err)
16734 cat out/conftest.err >&5
16735 echo "$as_me:16735: \$? = $ac_status" >&5
16736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16738 # The compiler can only warn and ignore the option if not recognized
16739 # So say no if there are warnings
16740 if test ! -s out/conftest.err; then
16741 lt_cv_prog_compiler_c_o_CXX=yes
16746 # SGI C++ compiler will create directory out/ii_files/ for
16747 # template instantiation
16748 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16749 $rm out/* && rmdir out
16755 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16756 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16759 hard_links="nottested"
16760 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16761 # do not overwrite the value of need_locks provided by the user
16762 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16763 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16766 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16768 ln conftest.a conftest.b 2>&5 || hard_links=no
16769 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16770 echo "$as_me:$LINENO: result: $hard_links" >&5
16771 echo "${ECHO_T}$hard_links" >&6
16772 if test "$hard_links" = no; then
16773 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16774 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16781 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16782 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16784 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16787 # If we're using GNU nm, then we don't want the "-C" option.
16788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16789 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16790 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'
16792 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'
16796 export_symbols_cmds_CXX="$ltdll_cmds"
16799 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16802 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16806 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16807 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16808 test "$ld_shlibs_CXX" = no && can_build_shared=no
16810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16811 if test "$GCC" = yes; then
16812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16816 # Do we need to explicitly link libc?
16818 case "x$archive_cmds_need_lc_CXX" in
16820 # Assume -lc should be added
16821 archive_cmds_need_lc_CXX=yes
16823 if test "$enable_shared" = yes && test "$GCC" = yes; then
16824 case $archive_cmds_CXX in
16826 # FIXME: we may have to deal with multi-command sequences.
16829 # Test whether the compiler implicitly links with -lc since on some
16830 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16831 # to ld, don't add -lc before -lgcc.
16832 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16833 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16835 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838 (eval $ac_compile) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } 2>conftest.err; then
16844 libobjs=conftest.$ac_objext
16846 wl=$lt_prog_compiler_wl_CXX
16852 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16853 allow_undefined_flag_CXX=
16854 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16855 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }
16860 archive_cmds_need_lc_CXX=no
16862 archive_cmds_need_lc_CXX=yes
16864 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16866 cat conftest.err 1>&5
16869 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16870 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16877 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16878 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16879 library_names_spec=
16880 libname_spec='lib$name'
16884 postuninstall_cmds=
16888 shlibpath_overrides_runpath=unknown
16890 dynamic_linker="$host_os ld.so"
16891 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16892 if test "$GCC" = yes; then
16893 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16894 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16895 # if the path contains ";" then we assume it to be the separator
16896 # otherwise default to the standard path separator (i.e. ":") - it is
16897 # assumed that no part of a normal pathname contains ";" but that should
16898 # okay in the real world where ";" in dirpaths is itself problematic.
16899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16904 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16906 need_lib_prefix=unknown
16907 hardcode_into_libs=no
16909 # when you set need_version to no, make sure it does not cause -set_version
16910 # flags to be left without arguments
16911 need_version=unknown
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16917 shlibpath_var=LIBPATH
16919 # AIX 3 has no versioning support, so we append a major version to the name.
16920 soname_spec='${libname}${release}${shared_ext}$major'
16927 hardcode_into_libs=yes
16928 if test "$host_cpu" = ia64; then
16929 # AIX 5 supports IA64
16930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16931 shlibpath_var=LD_LIBRARY_PATH
16933 # With GCC up to 2.95.x, collect2 would create an import file
16934 # for dependence libraries. The import file would start with
16935 # the line `#! .'. This would cause the generated library to
16936 # depend on `.', always an invalid library. This was fixed in
16937 # development snapshots of GCC prior to 3.0.
16939 aix4 | aix4.[01] | aix4.[01].*)
16940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16942 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16945 can_build_shared=no
16949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16950 # soname into executable. Probably we can add versioning support to
16951 # collect2, so additional links can be useful in future.
16952 if test "$aix_use_runtimelinking" = yes; then
16953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16954 # instead of lib<name>.a to let people know that these are not
16955 # typical AIX shared libraries.
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16958 # We preserve .a as extension for shared libraries through AIX4.2
16959 # and later when we are not doing run time linking.
16960 library_names_spec='${libname}${release}.a $libname.a'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16963 shlibpath_var=LIBPATH
16968 library_names_spec='$libname.ixlibrary $libname.a'
16969 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16970 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'
16974 library_names_spec='${libname}${shared_ext}'
16975 dynamic_linker="$host_os ld.so"
16976 shlibpath_var=LIBRARY_PATH
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983 soname_spec='${libname}${release}${shared_ext}$major'
16984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16985 shlibpath_var=LD_LIBRARY_PATH
16986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16988 # the default ld.so.conf also contains /usr/contrib/lib and
16989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16990 # libtool to hard-code these into programs
16993 cygwin* | mingw* | pw32*)
16994 version_type=windows
16999 case $GCC,$host_os in
17000 yes,cygwin* | yes,mingw* | yes,pw32*)
17001 library_names_spec='$libname.dll.a'
17002 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17003 postinstall_cmds='base_file=`basename \${file}`~
17004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17005 dldir=$destdir/`dirname \$dlpath`~
17006 test -d \$dldir || mkdir -p \$dldir~
17007 $install_prog $dir/$dlname \$dldir/$dlname'
17008 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17009 dlpath=$dir/\$dldll~
17011 shlibpath_overrides_runpath=yes
17015 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17016 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17017 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17020 # MinGW DLLs use traditional 'lib' prefix
17021 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17022 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17023 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17024 # It is most probably a Windows format PATH printed by
17025 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17026 # path with ; separators, and with drive letters. We can handle the
17027 # drive letters (cygwin fileutils understands them), so leave them,
17028 # especially as we might pass files found there to a mingw objdump,
17029 # which wouldn't understand a cygwinified path. Ahh.
17030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17036 # pw32 DLLs use 'pw' prefix rather than 'lib'
17037 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17043 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17046 dynamic_linker='Win32 ld.exe'
17047 # FIXME: first we should search . and the directory the executable is in
17051 darwin* | rhapsody*)
17052 dynamic_linker="$host_os dyld"
17053 version_type=darwin
17056 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17057 soname_spec='${libname}${release}${major}$shared_ext'
17058 shlibpath_overrides_runpath=yes
17059 shlibpath_var=DYLD_LIBRARY_PATH
17060 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17061 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17062 if test "$GCC" = yes; then
17063 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"`
17065 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17067 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 shlibpath_var=LD_LIBRARY_PATH
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 shlibpath_overrides_runpath=no
17091 hardcode_into_libs=yes
17092 dynamic_linker='GNU ld.so'
17096 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17097 version_type=freebsd-$objformat
17098 case $version_type in
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17109 shlibpath_var=LD_LIBRARY_PATH
17112 shlibpath_overrides_runpath=yes
17114 freebsd3.01* | freebsdelf3.01*)
17115 shlibpath_overrides_runpath=yes
17116 hardcode_into_libs=yes
17119 shlibpath_overrides_runpath=no
17120 hardcode_into_libs=yes
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17132 hardcode_into_libs=yes
17135 hpux9* | hpux10* | hpux11*)
17136 # Give a soname corresponding to the major version so that dld.sl refuses to
17137 # link against other versions.
17141 case "$host_cpu" in
17144 hardcode_into_libs=yes
17145 dynamic_linker="$host_os dld.so"
17146 shlibpath_var=LD_LIBRARY_PATH
17147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 if test "X$HPUX_IA64_MODE" = X32; then
17151 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17153 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17159 hardcode_into_libs=yes
17160 dynamic_linker="$host_os dld.sl"
17161 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17170 dynamic_linker="$host_os dld.sl"
17171 shlibpath_var=SHLIB_PATH
17172 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174 soname_spec='${libname}${release}${shared_ext}$major'
17177 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17178 postinstall_cmds='chmod 555 $lib'
17181 irix5* | irix6* | nonstopux*)
17183 nonstopux*) version_type=nonstopux ;;
17185 if test "$lt_cv_prog_gnu_ld" = yes; then
17193 soname_spec='${libname}${release}${shared_ext}$major'
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17196 irix5* | nonstopux*)
17197 libsuff= shlibsuff=
17200 case $LD in # libtool.m4 will add one of these switches to LD
17201 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17202 libsuff= shlibsuff= libmagic=32-bit;;
17203 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17204 libsuff=32 shlibsuff=N32 libmagic=N32;;
17205 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17206 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17207 *) libsuff= shlibsuff= libmagic=never-match;;
17211 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17212 shlibpath_overrides_runpath=no
17213 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17214 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17215 hardcode_into_libs=yes
17218 # No shared lib support for Linux oldld, aout, or coff.
17219 linux*oldld* | linux*aout* | linux*coff*)
17223 # This must be Linux ELF.
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17231 shlibpath_var=LD_LIBRARY_PATH
17232 shlibpath_overrides_runpath=no
17233 # This implies no fast_install, which is unacceptable.
17234 # Some rework will be needed to allow for fast_install
17235 # before this can be enabled.
17236 hardcode_into_libs=yes
17238 # Append ld.so.conf contents to the search path
17239 if test -f /etc/ld.so.conf; then
17240 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17241 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17244 # We used to test for /lib/ld.so.1 and disable shared libraries on
17245 # powerpc, because MkLinux only supported shared libraries with the
17246 # GNU dynamic linker. Since this was broken with cross compilers,
17247 # most powerpc-linux boxes support dynamic linking these days and
17248 # people can always --disable-shared, the test was removed, and we
17249 # assume the GNU/Linux dynamic linker is in use.
17250 dynamic_linker='GNU/Linux ld.so'
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17258 soname_spec='${libname}${release}${shared_ext}$major'
17259 shlibpath_var=LD_LIBRARY_PATH
17260 shlibpath_overrides_runpath=no
17261 hardcode_into_libs=yes
17262 dynamic_linker='GNU ld.so'
17269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17272 dynamic_linker='NetBSD (a.out) ld.so'
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17275 soname_spec='${libname}${release}${shared_ext}$major'
17276 dynamic_linker='NetBSD ld.elf_so'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 shlibpath_overrides_runpath=yes
17280 hardcode_into_libs=yes
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 shlibpath_overrides_runpath=yes
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 shlibpath_var=LD_LIBRARY_PATH
17297 shlibpath_overrides_runpath=yes
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17309 openbsd2.[89] | openbsd2.[89].*)
17310 shlibpath_overrides_runpath=no
17313 shlibpath_overrides_runpath=yes
17317 shlibpath_overrides_runpath=yes
17322 libname_spec='$name'
17325 library_names_spec='$libname${shared_ext} $libname.a'
17326 dynamic_linker='OS/2 ld.exe'
17327 shlibpath_var=LIBPATH
17330 osf3* | osf4* | osf5*)
17334 soname_spec='${libname}${release}${shared_ext}$major'
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17338 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17343 soname_spec='${libname}${release}${shared_ext}$major'
17344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345 shlibpath_var=LD_LIBRARY_PATH
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 soname_spec='${libname}${release}${shared_ext}$major'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 shlibpath_overrides_runpath=yes
17356 hardcode_into_libs=yes
17357 # ldd complains unless libraries are executable
17358 postinstall_cmds='chmod +x $lib'
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17364 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 shlibpath_overrides_runpath=yes
17367 if test "$with_gnu_ld" = yes; then
17373 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 soname_spec='${libname}${release}${shared_ext}$major'
17377 shlibpath_var=LD_LIBRARY_PATH
17378 case $host_vendor in
17380 shlibpath_overrides_runpath=no
17382 export_dynamic_flag_spec='${wl}-Blargedynsym'
17383 runpath_var=LD_RUN_PATH
17391 shlibpath_overrides_runpath=no
17392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17398 if test -d /usr/nec ;then
17400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17401 soname_spec='$libname${shared_ext}.$major'
17402 shlibpath_var=LD_LIBRARY_PATH
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17410 shlibpath_var=LD_LIBRARY_PATH
17417 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17418 echo "${ECHO_T}$dynamic_linker" >&6
17419 test "$dynamic_linker" = no && can_build_shared=no
17421 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17422 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17423 hardcode_action_CXX=
17424 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17425 test -n "$runpath_var_CXX" || \
17426 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17428 # We can hardcode non-existant directories.
17429 if test "$hardcode_direct_CXX" != no &&
17430 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17431 # have to relink, otherwise we might link with an installed library
17432 # when we should be linking with a yet-to-be-installed one
17433 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17434 test "$hardcode_minus_L_CXX" != no; then
17435 # Linking always hardcodes the temporary library directory.
17436 hardcode_action_CXX=relink
17438 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17439 hardcode_action_CXX=immediate
17442 # We cannot hardcode anything, or else we can only hardcode existing
17444 hardcode_action_CXX=unsupported
17446 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17447 echo "${ECHO_T}$hardcode_action_CXX" >&6
17449 if test "$hardcode_action_CXX" = relink; then
17450 # Fast installation is not supported
17451 enable_fast_install=no
17452 elif test "$shlibpath_overrides_runpath" = yes ||
17453 test "$enable_shared" = no; then
17454 # Fast installation is not necessary
17455 enable_fast_install=needless
17460 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17461 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17462 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17463 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17464 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17465 echo "$as_me:$LINENO: result: yes" >&5
17466 echo "${ECHO_T}yes" >&6
17468 # FIXME - insert some real tests, host_os isn't really good enough
17471 if test -n "$STRIP" ; then
17472 striplib="$STRIP -x"
17473 echo "$as_me:$LINENO: result: yes" >&5
17474 echo "${ECHO_T}yes" >&6
17476 echo "$as_me:$LINENO: result: no" >&5
17477 echo "${ECHO_T}no" >&6
17481 echo "$as_me:$LINENO: result: no" >&5
17482 echo "${ECHO_T}no" >&6
17487 if test "x$enable_dlopen" != xyes; then
17488 enable_dlopen=unknown
17489 enable_dlopen_self=unknown
17490 enable_dlopen_self_static=unknown
17497 lt_cv_dlopen="load_add_on"
17499 lt_cv_dlopen_self=yes
17503 lt_cv_dlopen="LoadLibrary"
17508 lt_cv_dlopen="dlopen"
17513 # if libdl is installed we need to link against it
17514 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17515 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17516 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 ac_check_lib_save_LIBS=$LIBS
17521 cat >conftest.$ac_ext <<_ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17528 /* Override any gcc2 internal prototype to avoid an error. */
17532 /* We use char because int might match the return type of a gcc2
17533 builtin and then its argument prototype would still apply. */
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17545 (eval $ac_link) 2>conftest.er1
17547 grep -v '^ *+' conftest.er1 >conftest.err
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_cxx_werror_flag"
17553 || test ! -s conftest.err'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest$ac_exeext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_lib_dl_dlopen=yes
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_cv_lib_dl_dlopen=no
17572 rm -f conftest.err conftest.$ac_objext \
17573 conftest$ac_exeext conftest.$ac_ext
17574 LIBS=$ac_check_lib_save_LIBS
17576 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17577 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17578 if test $ac_cv_lib_dl_dlopen = yes; then
17579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17582 lt_cv_dlopen="dyld"
17584 lt_cv_dlopen_self=yes
17591 echo "$as_me:$LINENO: checking for shl_load" >&5
17592 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17593 if test "${ac_cv_func_shl_load+set}" = set; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 cat >conftest.$ac_ext <<_ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17604 #define shl_load innocuous_shl_load
17606 /* System header to define __stub macros and hopefully few prototypes,
17607 which can conflict with char shl_load (); below.
17608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17609 <limits.h> exists even on freestanding compilers. */
17612 # include <limits.h>
17614 # include <assert.h>
17619 /* Override any gcc2 internal prototype to avoid an error. */
17624 /* We use char because int might match the return type of a gcc2
17625 builtin and then its argument prototype would still apply. */
17627 /* The GNU C library defines this for functions which it implements
17628 to always fail with ENOSYS. Some functions are actually named
17629 something starting with __ and the normal name is an alias. */
17630 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17633 char (*f) () = shl_load;
17642 return f != shl_load;
17647 rm -f conftest.$ac_objext conftest$ac_exeext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649 (eval $ac_link) 2>conftest.er1
17651 grep -v '^ *+' conftest.er1 >conftest.err
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -z "$ac_cxx_werror_flag"
17657 || test ! -s conftest.err'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest$ac_exeext'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 ac_cv_func_shl_load=yes
17671 echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17674 ac_cv_func_shl_load=no
17676 rm -f conftest.err conftest.$ac_objext \
17677 conftest$ac_exeext conftest.$ac_ext
17679 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17680 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17681 if test $ac_cv_func_shl_load = yes; then
17682 lt_cv_dlopen="shl_load"
17684 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17685 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 ac_check_lib_save_LIBS=$LIBS
17691 cat >conftest.$ac_ext <<_ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17698 /* Override any gcc2 internal prototype to avoid an error. */
17702 /* We use char because int might match the return type of a gcc2
17703 builtin and then its argument prototype would still apply. */
17713 rm -f conftest.$ac_objext conftest$ac_exeext
17714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17715 (eval $ac_link) 2>conftest.er1
17717 grep -v '^ *+' conftest.er1 >conftest.err
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -z "$ac_cxx_werror_flag"
17723 || test ! -s conftest.err'
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; } &&
17729 { ac_try='test -s conftest$ac_exeext'
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_cv_lib_dld_shl_load=yes
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 ac_cv_lib_dld_shl_load=no
17742 rm -f conftest.err conftest.$ac_objext \
17743 conftest$ac_exeext conftest.$ac_ext
17744 LIBS=$ac_check_lib_save_LIBS
17746 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17747 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17748 if test $ac_cv_lib_dld_shl_load = yes; then
17749 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17751 echo "$as_me:$LINENO: checking for dlopen" >&5
17752 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17753 if test "${ac_cv_func_dlopen+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17756 cat >conftest.$ac_ext <<_ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17764 #define dlopen innocuous_dlopen
17766 /* System header to define __stub macros and hopefully few prototypes,
17767 which can conflict with char dlopen (); below.
17768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17769 <limits.h> exists even on freestanding compilers. */
17772 # include <limits.h>
17774 # include <assert.h>
17779 /* Override any gcc2 internal prototype to avoid an error. */
17784 /* We use char because int might match the return type of a gcc2
17785 builtin and then its argument prototype would still apply. */
17787 /* The GNU C library defines this for functions which it implements
17788 to always fail with ENOSYS. Some functions are actually named
17789 something starting with __ and the normal name is an alias. */
17790 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17793 char (*f) () = dlopen;
17802 return f != dlopen;
17807 rm -f conftest.$ac_objext conftest$ac_exeext
17808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17809 (eval $ac_link) 2>conftest.er1
17811 grep -v '^ *+' conftest.er1 >conftest.err
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
17816 { ac_try='test -z "$ac_cxx_werror_flag"
17817 || test ! -s conftest.err'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; } &&
17823 { ac_try='test -s conftest$ac_exeext'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; }; then
17829 ac_cv_func_dlopen=yes
17831 echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17834 ac_cv_func_dlopen=no
17836 rm -f conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
17839 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17840 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17841 if test $ac_cv_func_dlopen = yes; then
17842 lt_cv_dlopen="dlopen"
17844 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17845 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17846 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 ac_check_lib_save_LIBS=$LIBS
17851 cat >conftest.$ac_ext <<_ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17858 /* Override any gcc2 internal prototype to avoid an error. */
17862 /* We use char because int might match the return type of a gcc2
17863 builtin and then its argument prototype would still apply. */
17873 rm -f conftest.$ac_objext conftest$ac_exeext
17874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17875 (eval $ac_link) 2>conftest.er1
17877 grep -v '^ *+' conftest.er1 >conftest.err
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
17882 { ac_try='test -z "$ac_cxx_werror_flag"
17883 || test ! -s conftest.err'
17884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885 (eval $ac_try) 2>&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; } &&
17889 { ac_try='test -s conftest$ac_exeext'
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; }; then
17895 ac_cv_lib_dl_dlopen=yes
17897 echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17900 ac_cv_lib_dl_dlopen=no
17902 rm -f conftest.err conftest.$ac_objext \
17903 conftest$ac_exeext conftest.$ac_ext
17904 LIBS=$ac_check_lib_save_LIBS
17906 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17907 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17908 if test $ac_cv_lib_dl_dlopen = yes; then
17909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17911 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17912 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17913 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 ac_check_lib_save_LIBS=$LIBS
17917 LIBS="-lsvld $LIBS"
17918 cat >conftest.$ac_ext <<_ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17925 /* Override any gcc2 internal prototype to avoid an error. */
17929 /* We use char because int might match the return type of a gcc2
17930 builtin and then its argument prototype would still apply. */
17940 rm -f conftest.$ac_objext conftest$ac_exeext
17941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17942 (eval $ac_link) 2>conftest.er1
17944 grep -v '^ *+' conftest.er1 >conftest.err
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } &&
17949 { ac_try='test -z "$ac_cxx_werror_flag"
17950 || test ! -s conftest.err'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; } &&
17956 { ac_try='test -s conftest$ac_exeext'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; }; then
17962 ac_cv_lib_svld_dlopen=yes
17964 echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17967 ac_cv_lib_svld_dlopen=no
17969 rm -f conftest.err conftest.$ac_objext \
17970 conftest$ac_exeext conftest.$ac_ext
17971 LIBS=$ac_check_lib_save_LIBS
17973 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17974 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17975 if test $ac_cv_lib_svld_dlopen = yes; then
17976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17978 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17979 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17980 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 ac_check_lib_save_LIBS=$LIBS
17985 cat >conftest.$ac_ext <<_ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17992 /* Override any gcc2 internal prototype to avoid an error. */
17996 /* We use char because int might match the return type of a gcc2
17997 builtin and then its argument prototype would still apply. */
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18009 (eval $ac_link) 2>conftest.er1
18011 grep -v '^ *+' conftest.er1 >conftest.err
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try='test -z "$ac_cxx_werror_flag"
18017 || test ! -s conftest.err'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; } &&
18023 { ac_try='test -s conftest$ac_exeext'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_cv_lib_dld_dld_link=yes
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 ac_cv_lib_dld_dld_link=no
18036 rm -f conftest.err conftest.$ac_objext \
18037 conftest$ac_exeext conftest.$ac_ext
18038 LIBS=$ac_check_lib_save_LIBS
18040 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18041 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18042 if test $ac_cv_lib_dld_dld_link = yes; then
18043 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18064 if test "x$lt_cv_dlopen" != xno; then
18070 case $lt_cv_dlopen in
18072 save_CPPFLAGS="$CPPFLAGS"
18073 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18075 save_LDFLAGS="$LDFLAGS"
18076 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18079 LIBS="$lt_cv_dlopen_libs $LIBS"
18081 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18082 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18083 if test "${lt_cv_dlopen_self+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18086 if test "$cross_compiling" = yes; then :
18087 lt_cv_dlopen_self=cross
18089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18090 lt_status=$lt_dlunknown
18091 cat > conftest.$ac_ext <<EOF
18092 #line 18092 "configure"
18093 #include "confdefs.h"
18102 # define LT_DLGLOBAL RTLD_GLOBAL
18105 # define LT_DLGLOBAL DL_GLOBAL
18107 # define LT_DLGLOBAL 0
18111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18112 find out it does not work in some platform. */
18113 #ifndef LT_DLLAZY_OR_NOW
18115 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18118 # define LT_DLLAZY_OR_NOW DL_LAZY
18121 # define LT_DLLAZY_OR_NOW RTLD_NOW
18124 # define LT_DLLAZY_OR_NOW DL_NOW
18126 # define LT_DLLAZY_OR_NOW 0
18134 extern "C" void exit (int);
18137 void fnord() { int i=42;}
18140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18141 int status = $lt_dlunknown;
18145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18146 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18147 /* dlclose (self); */
18153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18154 (eval $ac_link) 2>&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18158 (./conftest; exit; ) 2>/dev/null
18160 case x$lt_status in
18161 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18162 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18163 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18166 # compilation failed
18167 lt_cv_dlopen_self=no
18174 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18175 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18177 if test "x$lt_cv_dlopen_self" = xyes; then
18178 LDFLAGS="$LDFLAGS $link_static_flag"
18179 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18180 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18181 if test "${lt_cv_dlopen_self_static+set}" = set; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 if test "$cross_compiling" = yes; then :
18185 lt_cv_dlopen_self_static=cross
18187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18188 lt_status=$lt_dlunknown
18189 cat > conftest.$ac_ext <<EOF
18190 #line 18190 "configure"
18191 #include "confdefs.h"
18200 # define LT_DLGLOBAL RTLD_GLOBAL
18203 # define LT_DLGLOBAL DL_GLOBAL
18205 # define LT_DLGLOBAL 0
18209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18210 find out it does not work in some platform. */
18211 #ifndef LT_DLLAZY_OR_NOW
18213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18216 # define LT_DLLAZY_OR_NOW DL_LAZY
18219 # define LT_DLLAZY_OR_NOW RTLD_NOW
18222 # define LT_DLLAZY_OR_NOW DL_NOW
18224 # define LT_DLLAZY_OR_NOW 0
18232 extern "C" void exit (int);
18235 void fnord() { int i=42;}
18238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18239 int status = $lt_dlunknown;
18243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18244 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18245 /* dlclose (self); */
18251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18252 (eval $ac_link) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18256 (./conftest; exit; ) 2>/dev/null
18258 case x$lt_status in
18259 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18260 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18261 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18264 # compilation failed
18265 lt_cv_dlopen_self_static=no
18272 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18273 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18276 CPPFLAGS="$save_CPPFLAGS"
18277 LDFLAGS="$save_LDFLAGS"
18282 case $lt_cv_dlopen_self in
18283 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18284 *) enable_dlopen_self=unknown ;;
18287 case $lt_cv_dlopen_self_static in
18288 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18289 *) enable_dlopen_self_static=unknown ;;
18294 # The else clause should only fire when bootstrapping the
18295 # libtool distribution, otherwise you forgot to ship ltmain.sh
18296 # with your package, and you will get complaints that there are
18297 # no rules to generate ltmain.sh.
18298 if test -f "$ltmain"; then
18299 # See if we are running on zsh, and set the options which allow our commands through
18300 # without removal of \ escapes.
18301 if test -n "${ZSH_VERSION+set}" ; then
18302 setopt NO_GLOB_SUBST
18304 # Now quote all the things that may contain metacharacters while being
18305 # careful not to overquote the AC_SUBSTed values. We take copies of the
18306 # variables and quote the copies for generation of the libtool script.
18307 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18309 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18310 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18311 deplibs_check_method reload_flag reload_cmds need_locks \
18312 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18313 lt_cv_sys_global_symbol_to_c_name_address \
18314 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18315 old_postinstall_cmds old_postuninstall_cmds \
18319 lt_prog_compiler_wl_CXX \
18320 lt_prog_compiler_pic_CXX \
18321 lt_prog_compiler_static_CXX \
18322 lt_prog_compiler_no_builtin_flag_CXX \
18323 export_dynamic_flag_spec_CXX \
18324 thread_safe_flag_spec_CXX \
18325 whole_archive_flag_spec_CXX \
18326 enable_shared_with_static_runtimes_CXX \
18327 old_archive_cmds_CXX \
18328 old_archive_from_new_cmds_CXX \
18329 predep_objects_CXX \
18330 postdep_objects_CXX \
18333 compiler_lib_search_path_CXX \
18335 archive_expsym_cmds_CXX \
18336 postinstall_cmds_CXX \
18337 postuninstall_cmds_CXX \
18338 old_archive_from_expsyms_cmds_CXX \
18339 allow_undefined_flag_CXX \
18340 no_undefined_flag_CXX \
18341 export_symbols_cmds_CXX \
18342 hardcode_libdir_flag_spec_CXX \
18343 hardcode_libdir_flag_spec_ld_CXX \
18344 hardcode_libdir_separator_CXX \
18345 hardcode_automatic_CXX \
18347 module_expsym_cmds_CXX \
18348 lt_cv_prog_compiler_c_o_CXX \
18349 exclude_expsyms_CXX \
18350 include_expsyms_CXX; do
18353 old_archive_cmds_CXX | \
18354 old_archive_from_new_cmds_CXX | \
18355 archive_cmds_CXX | \
18356 archive_expsym_cmds_CXX | \
18357 module_cmds_CXX | \
18358 module_expsym_cmds_CXX | \
18359 old_archive_from_expsyms_cmds_CXX | \
18360 export_symbols_cmds_CXX | \
18361 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18362 postinstall_cmds | postuninstall_cmds | \
18363 old_postinstall_cmds | old_postuninstall_cmds | \
18364 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18365 # Double-quote double-evaled strings.
18366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18369 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18375 *'\$0 --fallback-echo"')
18376 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18382 cat <<__EOF__ >> "$cfgfile"
18383 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18385 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18387 # Shell to use when invoking shell scripts.
18390 # Whether or not to build shared libraries.
18391 build_libtool_libs=$enable_shared
18393 # Whether or not to build static libraries.
18394 build_old_libs=$enable_static
18396 # Whether or not to add -lc for building shared libraries.
18397 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18399 # Whether or not to disallow shared libs when runtime libs are static
18400 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18402 # Whether or not to optimize for fast installation.
18403 fast_install=$enable_fast_install
18406 host_alias=$host_alias
18409 # An echo program that does not interpret backslashes.
18414 AR_FLAGS=$lt_AR_FLAGS
18419 # A language-specific compiler.
18420 CC=$lt_compiler_CXX
18422 # Is the compiler the GNU C compiler?
18428 # The linker used to build libraries.
18431 # Whether we need hard or soft links.
18434 # A BSD-compatible nm program.
18437 # A symbol stripping program
18440 # Used to examine libraries when file_magic_cmd begins "file"
18441 MAGIC_CMD=$MAGIC_CMD
18443 # Used on cygwin: DLL creation program.
18446 # Used on cygwin: object dumper.
18449 # Used on cygwin: assembler.
18452 # The name of the directory that contains temporary libtool files.
18455 # How to create reloadable object files.
18456 reload_flag=$lt_reload_flag
18457 reload_cmds=$lt_reload_cmds
18459 # How to pass a linker flag through the compiler.
18460 wl=$lt_lt_prog_compiler_wl_CXX
18462 # Object file suffix (normally "o").
18463 objext="$ac_objext"
18465 # Old archive suffix (normally "a").
18468 # Shared library suffix (normally ".so").
18469 shrext_cmds='$shrext_cmds'
18471 # Executable file suffix (normally "").
18474 # Additional compiler flags for building library objects.
18475 pic_flag=$lt_lt_prog_compiler_pic_CXX
18478 # What is the maximum length of a command?
18479 max_cmd_len=$lt_cv_sys_max_cmd_len
18481 # Does compiler simultaneously support -c and -o options?
18482 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18484 # Must we lock files when doing compilation ?
18485 need_locks=$lt_need_locks
18487 # Do we need the lib prefix for modules?
18488 need_lib_prefix=$need_lib_prefix
18490 # Do we need a version for libraries?
18491 need_version=$need_version
18493 # Whether dlopen is supported.
18494 dlopen_support=$enable_dlopen
18496 # Whether dlopen of programs is supported.
18497 dlopen_self=$enable_dlopen_self
18499 # Whether dlopen of statically linked programs is supported.
18500 dlopen_self_static=$enable_dlopen_self_static
18502 # Compiler flag to prevent dynamic linking.
18503 link_static_flag=$lt_lt_prog_compiler_static_CXX
18505 # Compiler flag to turn off builtin functions.
18506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18508 # Compiler flag to allow reflexive dlopens.
18509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18511 # Compiler flag to generate shared objects directly from archives.
18512 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18514 # Compiler flag to generate thread-safe objects.
18515 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18517 # Library versioning type.
18518 version_type=$version_type
18520 # Format of library name prefix.
18521 libname_spec=$lt_libname_spec
18523 # List of archive names. First name is the real one, the rest are links.
18524 # The last name is the one that the linker finds with -lNAME.
18525 library_names_spec=$lt_library_names_spec
18527 # The coded name of the library, if different from the real name.
18528 soname_spec=$lt_soname_spec
18530 # Commands used to build and install an old-style archive.
18532 old_archive_cmds=$lt_old_archive_cmds_CXX
18533 old_postinstall_cmds=$lt_old_postinstall_cmds
18534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18536 # Create an old-style archive from a shared archive.
18537 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18539 # Create a temporary old-style archive to link instead of a shared archive.
18540 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18542 # Commands used to build and install a shared archive.
18543 archive_cmds=$lt_archive_cmds_CXX
18544 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18545 postinstall_cmds=$lt_postinstall_cmds
18546 postuninstall_cmds=$lt_postuninstall_cmds
18548 # Commands used to build a loadable module (assumed same as above if empty)
18549 module_cmds=$lt_module_cmds_CXX
18550 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18552 # Commands to strip libraries.
18553 old_striplib=$lt_old_striplib
18554 striplib=$lt_striplib
18556 # Dependencies to place before the objects being linked to create a
18558 predep_objects=$lt_predep_objects_CXX
18560 # Dependencies to place after the objects being linked to create a
18562 postdep_objects=$lt_postdep_objects_CXX
18564 # Dependencies to place before the objects being linked to create a
18566 predeps=$lt_predeps_CXX
18568 # Dependencies to place after the objects being linked to create a
18570 postdeps=$lt_postdeps_CXX
18572 # The library search path used internally by the compiler when linking
18573 # a shared library.
18574 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18576 # Method to check whether dependent libraries are shared objects.
18577 deplibs_check_method=$lt_deplibs_check_method
18579 # Command to use when deplibs_check_method == file_magic.
18580 file_magic_cmd=$lt_file_magic_cmd
18582 # Flag that allows shared libraries with undefined symbols to be built.
18583 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18585 # Flag that forces no undefined symbols.
18586 no_undefined_flag=$lt_no_undefined_flag_CXX
18588 # Commands used to finish a libtool library installation in a directory.
18589 finish_cmds=$lt_finish_cmds
18591 # Same as above, but a single script fragment to be evaled but not shown.
18592 finish_eval=$lt_finish_eval
18594 # Take the output of nm and produce a listing of raw symbols and C names.
18595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18597 # Transform the output of nm in a proper C declaration
18598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18600 # Transform the output of nm in a C name address pair
18601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18603 # This is the shared library runtime path variable.
18604 runpath_var=$runpath_var
18606 # This is the shared library path variable.
18607 shlibpath_var=$shlibpath_var
18609 # Is shlibpath searched before the hard-coded library search path?
18610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18612 # How to hardcode a shared library path into an executable.
18613 hardcode_action=$hardcode_action_CXX
18615 # Whether we should hardcode library paths into libraries.
18616 hardcode_into_libs=$hardcode_into_libs
18618 # Flag to hardcode \$libdir into a binary during linking.
18619 # This must work even if \$libdir does not exist.
18620 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18622 # If ld is used when linking, flag to hardcode \$libdir into
18623 # a binary during linking. This must work even if \$libdir does
18625 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18627 # Whether we need a single -rpath flag with a separated argument.
18628 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18630 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18631 # resulting binary.
18632 hardcode_direct=$hardcode_direct_CXX
18634 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18635 # resulting binary.
18636 hardcode_minus_L=$hardcode_minus_L_CXX
18638 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18639 # the resulting binary.
18640 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18642 # Set to yes if building a shared library automatically hardcodes DIR into the library
18643 # and all subsequent libraries and executables linked against it.
18644 hardcode_automatic=$hardcode_automatic_CXX
18646 # Variables whose values should be saved in libtool wrapper scripts and
18647 # restored at relink time.
18648 variables_saved_for_relink="$variables_saved_for_relink"
18650 # Whether libtool must link a program against all its dependency libraries.
18651 link_all_deplibs=$link_all_deplibs_CXX
18653 # Compile-time system search path for libraries
18654 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18656 # Run-time system search path for libraries
18657 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18659 # Fix the shell variable \$srcfile for the compiler.
18660 fix_srcfile_path="$fix_srcfile_path_CXX"
18662 # Set to yes if exported symbols are required.
18663 always_export_symbols=$always_export_symbols_CXX
18665 # The commands to list exported symbols.
18666 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18668 # The commands to extract the exported symbol list from a shared archive.
18669 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18671 # Symbols that should not be listed in the preloaded symbols.
18672 exclude_expsyms=$lt_exclude_expsyms_CXX
18674 # Symbols that must always be exported.
18675 include_expsyms=$lt_include_expsyms_CXX
18677 # ### END LIBTOOL TAG CONFIG: $tagname
18683 # If there is no Makefile yet, we rely on a make rule to execute
18684 # `config.status --recheck' to rerun these tests and create the
18685 # libtool script then.
18686 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18687 if test -f "$ltmain_in"; then
18688 test -f Makefile && make "$ltmain"
18694 ac_cpp='$CPP $CPPFLAGS'
18695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18703 with_gnu_ldcxx=$with_gnu_ld
18704 with_gnu_ld=$lt_save_with_gnu_ld
18705 lt_cv_path_LDCXX=$lt_cv_path_LD
18706 lt_cv_path_LD=$lt_save_path_LD
18707 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18708 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18716 if test -n "$F77" && test "X$F77" != "Xno"; then
18719 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18720 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18724 archive_cmds_need_lc_F77=no
18725 allow_undefined_flag_F77=
18726 always_export_symbols_F77=no
18727 archive_expsym_cmds_F77=
18728 export_dynamic_flag_spec_F77=
18729 hardcode_direct_F77=no
18730 hardcode_libdir_flag_spec_F77=
18731 hardcode_libdir_flag_spec_ld_F77=
18732 hardcode_libdir_separator_F77=
18733 hardcode_minus_L_F77=no
18734 hardcode_automatic_F77=no
18736 module_expsym_cmds_F77=
18737 link_all_deplibs_F77=unknown
18738 old_archive_cmds_F77=$old_archive_cmds
18739 no_undefined_flag_F77=
18740 whole_archive_flag_spec_F77=
18741 enable_shared_with_static_runtimes_F77=no
18743 # Source file extension for f77 test sources.
18746 # Object file extension for compiled f77 test sources.
18750 # Code to be used in simple compile tests
18751 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18753 # Code to be used in simple link tests
18754 lt_simple_link_test_code=" program t\n end\n"
18756 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18758 # If no C compiler was specified, use CC.
18761 # Allow CC to be a program name with arguments.
18765 # Allow CC to be a program name with arguments.
18770 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18772 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18773 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18774 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18775 echo "${ECHO_T}$can_build_shared" >&6
18777 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18778 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18779 test "$can_build_shared" = "no" && enable_shared=no
18781 # On AIX, shared libraries and static libraries use the same namespace, and
18782 # are all built from PIC.
18785 test "$enable_shared" = yes && enable_static=no
18786 if test -n "$RANLIB"; then
18787 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18788 postinstall_cmds='$RANLIB $lib'
18792 test "$enable_shared" = yes && enable_static=no
18795 echo "$as_me:$LINENO: result: $enable_shared" >&5
18796 echo "${ECHO_T}$enable_shared" >&6
18798 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18799 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18800 # Make sure either enable_shared or enable_static is yes.
18801 test "$enable_shared" = yes || enable_static=yes
18802 echo "$as_me:$LINENO: result: $enable_static" >&5
18803 echo "${ECHO_T}$enable_static" >&6
18805 test "$ld_shlibs_F77" = no && can_build_shared=no
18810 lt_prog_compiler_wl_F77=
18811 lt_prog_compiler_pic_F77=
18812 lt_prog_compiler_static_F77=
18814 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18815 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18817 if test "$GCC" = yes; then
18818 lt_prog_compiler_wl_F77='-Wl,'
18819 lt_prog_compiler_static_F77='-static'
18823 # All AIX code is PIC.
18824 if test "$host_cpu" = ia64; then
18825 # AIX 5 now supports IA64 processor
18826 lt_prog_compiler_static_F77='-Bstatic'
18831 # FIXME: we need at least 68020 code to build shared libraries, but
18832 # adding the `-m68020' flag to GCC prevents building anything better,
18834 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18837 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18838 # PIC is the default for these OSes.
18841 mingw* | pw32* | os2*)
18842 # This hack is so that the source file can tell whether it is being
18843 # built for inclusion in a dll (and should export symbols for example).
18844 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18847 darwin* | rhapsody*)
18848 # PIC is the default on this platform
18849 # Common symbols not allowed in MH_DYLIB files
18850 lt_prog_compiler_pic_F77='-fno-common'
18854 # Just because we use GCC doesn't mean we suddenly get shared libraries
18855 # on systems that don't support them.
18856 lt_prog_compiler_can_build_shared_F77=no
18861 if test -d /usr/nec; then
18862 lt_prog_compiler_pic_F77=-Kconform_pic
18867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18868 # not for PA HP-UX.
18869 case "$host_cpu" in
18874 lt_prog_compiler_pic_F77='-fPIC'
18880 lt_prog_compiler_pic_F77='-fPIC'
18884 # PORTME Check for flag to pass linker flags through the system compiler.
18887 lt_prog_compiler_wl_F77='-Wl,'
18888 if test "$host_cpu" = ia64; then
18889 # AIX 5 now supports IA64 processor
18890 lt_prog_compiler_static_F77='-Bstatic'
18892 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18896 # PIC is the default on this platform
18897 # Common symbols not allowed in MH_DYLIB files
18898 case "$cc_basename" in
18900 lt_prog_compiler_pic_F77='-qnocommon'
18901 lt_prog_compiler_wl_F77='-Wl,'
18906 mingw* | pw32* | os2*)
18907 # This hack is so that the source file can tell whether it is being
18908 # built for inclusion in a dll (and should export symbols for example).
18909 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18912 hpux9* | hpux10* | hpux11*)
18913 lt_prog_compiler_wl_F77='-Wl,'
18914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18915 # not for PA HP-UX.
18916 case "$host_cpu" in
18921 lt_prog_compiler_pic_F77='+Z'
18924 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18925 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18928 irix5* | irix6* | nonstopux*)
18929 lt_prog_compiler_wl_F77='-Wl,'
18930 # PIC (with -KPIC) is the default.
18931 lt_prog_compiler_static_F77='-non_shared'
18935 lt_prog_compiler_pic_F77='-KPIC'
18936 lt_prog_compiler_static_F77='-Bstatic'
18942 lt_prog_compiler_wl_F77='-Wl,'
18943 lt_prog_compiler_pic_F77='-KPIC'
18944 lt_prog_compiler_static_F77='-static'
18947 lt_prog_compiler_wl_F77='-Wl,'
18948 # All Alpha code is PIC.
18949 lt_prog_compiler_static_F77='-non_shared'
18954 osf3* | osf4* | osf5*)
18955 lt_prog_compiler_wl_F77='-Wl,'
18956 # All OSF/1 code is PIC.
18957 lt_prog_compiler_static_F77='-non_shared'
18961 lt_prog_compiler_pic_F77='-Kpic'
18962 lt_prog_compiler_static_F77='-dn'
18966 lt_prog_compiler_wl_F77='-Wl,'
18967 lt_prog_compiler_pic_F77='-KPIC'
18968 lt_prog_compiler_static_F77='-Bstatic'
18972 lt_prog_compiler_wl_F77='-Qoption ld '
18973 lt_prog_compiler_pic_F77='-PIC'
18974 lt_prog_compiler_static_F77='-Bstatic'
18977 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18978 lt_prog_compiler_wl_F77='-Wl,'
18979 lt_prog_compiler_pic_F77='-KPIC'
18980 lt_prog_compiler_static_F77='-Bstatic'
18984 if test -d /usr/nec ;then
18985 lt_prog_compiler_pic_F77='-Kconform_pic'
18986 lt_prog_compiler_static_F77='-Bstatic'
18991 lt_prog_compiler_pic_F77='-pic'
18992 lt_prog_compiler_static_F77='-Bstatic'
18996 lt_prog_compiler_can_build_shared_F77=no
19001 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19002 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19005 # Check to make sure the PIC flag actually works.
19007 if test -n "$lt_prog_compiler_pic_F77"; then
19009 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19010 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19011 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 lt_prog_compiler_pic_works_F77=no
19015 ac_outfile=conftest.$ac_objext
19016 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19017 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19018 # Insert the option either (1) after the last *FLAGS variable, or
19019 # (2) before a word containing "conftest.", or (3) at the end.
19020 # Note that $ac_compile itself does not contain backslashes and begins
19021 # with a dollar sign (not a hyphen), so the echo should work correctly.
19022 # The option is referenced via a variable to avoid confusing sed.
19023 lt_compile=`echo "$ac_compile" | $SED \
19024 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19026 -e 's:$: $lt_compiler_flag:'`
19027 (eval echo "\"\$as_me:19027: $lt_compile\"" >&5)
19028 (eval "$lt_compile" 2>conftest.err)
19030 cat conftest.err >&5
19031 echo "$as_me:19031: \$? = $ac_status" >&5
19032 if (exit $ac_status) && test -s "$ac_outfile"; then
19033 # The compiler can only warn and ignore the option if not recognized
19034 # So say no if there are warnings
19035 if test ! -s conftest.err; then
19036 lt_prog_compiler_pic_works_F77=yes
19042 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19043 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19045 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19046 case $lt_prog_compiler_pic_F77 in
19048 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19051 lt_prog_compiler_pic_F77=
19052 lt_prog_compiler_can_build_shared_F77=no
19057 # For platforms which do not support PIC, -DPIC is meaningless:
19059 lt_prog_compiler_pic_F77=
19062 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19066 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19067 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19068 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 lt_cv_prog_compiler_c_o_F77=no
19072 $rm -r conftest 2>/dev/null
19076 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19078 lt_compiler_flag="-o out/conftest2.$ac_objext"
19079 # Insert the option either (1) after the last *FLAGS variable, or
19080 # (2) before a word containing "conftest.", or (3) at the end.
19081 # Note that $ac_compile itself does not contain backslashes and begins
19082 # with a dollar sign (not a hyphen), so the echo should work correctly.
19083 lt_compile=`echo "$ac_compile" | $SED \
19084 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19086 -e 's:$: $lt_compiler_flag:'`
19087 (eval echo "\"\$as_me:19087: $lt_compile\"" >&5)
19088 (eval "$lt_compile" 2>out/conftest.err)
19090 cat out/conftest.err >&5
19091 echo "$as_me:19091: \$? = $ac_status" >&5
19092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19094 # The compiler can only warn and ignore the option if not recognized
19095 # So say no if there are warnings
19096 if test ! -s out/conftest.err; then
19097 lt_cv_prog_compiler_c_o_F77=yes
19102 # SGI C++ compiler will create directory out/ii_files/ for
19103 # template instantiation
19104 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19105 $rm out/* && rmdir out
19111 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19112 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19115 hard_links="nottested"
19116 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19117 # do not overwrite the value of need_locks provided by the user
19118 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19119 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19124 ln conftest.a conftest.b 2>&5 || hard_links=no
19125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19126 echo "$as_me:$LINENO: result: $hard_links" >&5
19127 echo "${ECHO_T}$hard_links" >&6
19128 if test "$hard_links" = no; then
19129 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19130 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19137 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19138 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19141 allow_undefined_flag_F77=
19142 enable_shared_with_static_runtimes_F77=no
19144 archive_expsym_cmds_F77=
19145 old_archive_From_new_cmds_F77=
19146 old_archive_from_expsyms_cmds_F77=
19147 export_dynamic_flag_spec_F77=
19148 whole_archive_flag_spec_F77=
19149 thread_safe_flag_spec_F77=
19150 hardcode_libdir_flag_spec_F77=
19151 hardcode_libdir_flag_spec_ld_F77=
19152 hardcode_libdir_separator_F77=
19153 hardcode_direct_F77=no
19154 hardcode_minus_L_F77=no
19155 hardcode_shlibpath_var_F77=unsupported
19156 link_all_deplibs_F77=unknown
19157 hardcode_automatic_F77=no
19159 module_expsym_cmds_F77=
19160 always_export_symbols_F77=no
19161 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19162 # include_expsyms should be a list of space-separated symbols to be *always*
19163 # included in the symbol list
19164 include_expsyms_F77=
19165 # exclude_expsyms can be an extended regexp of symbols to exclude
19166 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19167 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19168 # as well as any symbol that contains `d'.
19169 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19170 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19171 # platforms (ab)use it in PIC code, but their linkers get confused if
19172 # the symbol is explicitly referenced. Since portable code cannot
19173 # rely on this symbol name, it's probably fine to never include it in
19174 # preloaded symbol tables.
19175 extract_expsyms_cmds=
19178 cygwin* | mingw* | pw32*)
19179 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19180 # When not using gcc, we currently assume that we are using
19181 # Microsoft Visual C++.
19182 if test "$GCC" != yes; then
19192 if test "$with_gnu_ld" = yes; then
19193 # If archive_cmds runs LD, not CC, wlarc should be empty
19196 # See if GNU ld supports shared libraries.
19198 aix3* | aix4* | aix5*)
19199 # On AIX/PPC, the GNU linker is very broken
19200 if test "$host_cpu" != ia64; then
19204 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19205 *** to be unable to reliably create shared libraries on AIX.
19206 *** Therefore, libtool is disabling shared libraries support. If you
19207 *** really care for shared libraries, you may want to modify your PATH
19208 *** so that a non-GNU linker is found, and then restart.
19215 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)'
19216 hardcode_libdir_flag_spec_F77='-L$libdir'
19217 hardcode_minus_L_F77=yes
19219 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19220 # that the semantics of dynamic libraries on AmigaOS, at least up
19221 # to version 4, is to share data among multiple programs linked
19222 # with the same dynamic library. Since this doesn't match the
19223 # behavior of shared libraries on other platforms, we can't use
19229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19230 allow_undefined_flag_F77=unsupported
19231 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19232 # support --undefined. This deserves some investigation. FIXME
19233 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239 cygwin* | mingw* | pw32*)
19240 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19241 # as there is no search path for DLLs.
19242 hardcode_libdir_flag_spec_F77='-L$libdir'
19243 allow_undefined_flag_F77=unsupported
19244 always_export_symbols_F77=no
19245 enable_shared_with_static_runtimes_F77=yes
19246 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19248 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19249 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19250 # If the export-symbols file already is a .def file (1st line
19251 # is EXPORTS), use it as is; otherwise, prepend...
19252 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19253 cp $export_symbols $output_objdir/$soname.def;
19255 echo EXPORTS > $output_objdir/$soname.def;
19256 cat $export_symbols >> $output_objdir/$soname.def;
19258 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19265 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19266 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19269 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19270 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19275 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19279 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19280 *** create shared libraries on Solaris systems. Therefore, libtool
19281 *** is disabling shared libraries support. We urge you to upgrade GNU
19282 *** binutils to release 2.9.1 or newer. Another option is to modify
19283 *** your PATH or compiler configuration so that the native linker is
19284 *** used, and then restart.
19287 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19288 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19289 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19296 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19298 hardcode_direct_F77=yes
19299 hardcode_shlibpath_var_F77=no
19303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19304 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19305 archive_cmds_F77="$tmp_archive_cmds"
19306 supports_anon_versioning=no
19307 case `$LD -v 2>/dev/null` in
19308 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19311 *\ 2.11.*) ;; # other 2.11 versions
19312 *) supports_anon_versioning=yes ;;
19314 if test $supports_anon_versioning = yes; then
19315 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19317 $echo "local: *; };" >> $output_objdir/$libname.ver~
19318 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19320 archive_expsym_cmds_F77="$tmp_archive_cmds"
19328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19329 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19330 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19337 if test "$ld_shlibs_F77" = yes; then
19338 runpath_var=LD_RUN_PATH
19339 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19340 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19341 # ancient GNU ld didn't support --whole-archive et. al.
19342 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19343 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19345 whole_archive_flag_spec_F77=
19349 # PORTME fill in a description of your system's linker (not GNU ld)
19352 allow_undefined_flag_F77=unsupported
19353 always_export_symbols_F77=yes
19354 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'
19355 # Note: this linker hardcodes the directories in LIBPATH if there
19356 # are no directories specified by -L.
19357 hardcode_minus_L_F77=yes
19358 if test "$GCC" = yes && test -z "$link_static_flag"; then
19359 # Neither direct hardcoding nor static linking is supported with a
19361 hardcode_direct_F77=unsupported
19366 if test "$host_cpu" = ia64; then
19367 # On IA64, the linker does run time linking by default, so we don't
19368 # have to do anything special.
19369 aix_use_runtimelinking=no
19370 exp_sym_flag='-Bexport'
19373 # If we're using GNU nm, then we don't want the "-C" option.
19374 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19375 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19376 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'
19378 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'
19380 aix_use_runtimelinking=no
19382 # Test if we are trying to use run time linking or normal
19383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19384 # need to do runtime linking.
19385 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19386 for ld_flag in $LDFLAGS; do
19387 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19388 aix_use_runtimelinking=yes
19394 exp_sym_flag='-bexport'
19395 no_entry_flag='-bnoentry'
19398 # When large executables or shared objects are built, AIX ld can
19399 # have problems creating the table of contents. If linking a library
19400 # or program results in "error TOC overflow" add -mminimal-toc to
19401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19404 archive_cmds_F77=''
19405 hardcode_direct_F77=yes
19406 hardcode_libdir_separator_F77=':'
19407 link_all_deplibs_F77=yes
19409 if test "$GCC" = yes; then
19410 case $host_os in aix4.012|aix4.012.*)
19411 # We only want to do this on AIX 4.2 and lower, the check
19412 # below for broken collect2 doesn't work under 4.3+
19413 collect2name=`${CC} -print-prog-name=collect2`
19414 if test -f "$collect2name" && \
19415 strings "$collect2name" | grep resolve_lib_name >/dev/null
19417 # We have reworked collect2
19418 hardcode_direct_F77=yes
19420 # We have old collect2
19421 hardcode_direct_F77=unsupported
19422 # It fails to find uninstalled libraries when the uninstalled
19423 # path is not listed in the libpath. Setting hardcode_minus_L
19424 # to unsupported forces relinking
19425 hardcode_minus_L_F77=yes
19426 hardcode_libdir_flag_spec_F77='-L$libdir'
19427 hardcode_libdir_separator_F77=
19430 shared_flag='-shared'
19433 if test "$host_cpu" = ia64; then
19434 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19435 # chokes on -Wl,-G. The following line is correct:
19438 if test "$aix_use_runtimelinking" = yes; then
19439 shared_flag='${wl}-G'
19441 shared_flag='${wl}-bM:SRE'
19446 # It seems that -bexpall does not export symbols beginning with
19447 # underscore (_), so it is better to generate a list of symbols to export.
19448 always_export_symbols_F77=yes
19449 if test "$aix_use_runtimelinking" = yes; then
19450 # Warning - without using the other runtime loading flags (-brtl),
19451 # -berok will link without error, but may produce a broken library.
19452 allow_undefined_flag_F77='-berok'
19453 # Determine the default libpath from the value encoded in an empty executable.
19454 cat >conftest.$ac_ext <<_ACEOF
19459 rm -f conftest.$ac_objext conftest$ac_exeext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461 (eval $ac_link) 2>conftest.er1
19463 grep -v '^ *+' conftest.er1 >conftest.err
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } &&
19468 { ac_try='test -z "$ac_f77_werror_flag"
19469 || test ! -s conftest.err'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest$ac_exeext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19484 # Check for a 64-bit object if we didn't find anything.
19485 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; }
19488 echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19492 rm -f conftest.err conftest.$ac_objext \
19493 conftest$ac_exeext conftest.$ac_ext
19494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19496 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19497 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"
19499 if test "$host_cpu" = ia64; then
19500 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19501 allow_undefined_flag_F77="-z nodefs"
19502 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"
19504 # Determine the default libpath from the value encoded in an empty executable.
19505 cat >conftest.$ac_ext <<_ACEOF
19510 rm -f conftest.$ac_objext conftest$ac_exeext
19511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19512 (eval $ac_link) 2>conftest.er1
19514 grep -v '^ *+' conftest.er1 >conftest.err
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -z "$ac_f77_werror_flag"
19520 || test ! -s conftest.err'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest$ac_exeext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19535 # Check for a 64-bit object if we didn't find anything.
19536 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; }
19539 echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19543 rm -f conftest.err conftest.$ac_objext \
19544 conftest$ac_exeext conftest.$ac_ext
19545 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19547 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19548 # Warning - without using the other run time loading flags,
19549 # -berok will link without error, but may produce a broken library.
19550 no_undefined_flag_F77=' ${wl}-bernotok'
19551 allow_undefined_flag_F77=' ${wl}-berok'
19552 # -bexpall does not export symbols beginning with underscore (_)
19553 always_export_symbols_F77=yes
19554 # Exported symbols can be pulled into shared objects from archives
19555 whole_archive_flag_spec_F77=' '
19556 archive_cmds_need_lc_F77=yes
19557 # This is similar to how AIX traditionally builds it's shared libraries.
19558 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'
19564 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)'
19565 hardcode_libdir_flag_spec_F77='-L$libdir'
19566 hardcode_minus_L_F77=yes
19567 # see comment about different semantics on the GNU ld section
19572 export_dynamic_flag_spec_F77=-rdynamic
19575 cygwin* | mingw* | pw32*)
19576 # When not using gcc, we currently assume that we are using
19577 # Microsoft Visual C++.
19578 # hardcode_libdir_flag_spec is actually meaningless, as there is
19579 # no search path for DLLs.
19580 hardcode_libdir_flag_spec_F77=' '
19581 allow_undefined_flag_F77=unsupported
19582 # Tell ltmain to make .lib files, not .a files.
19584 # Tell ltmain to make .dll files, not .so files.
19586 # FIXME: Setting linknames here is a bad hack.
19587 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19588 # The linker will automatically build a .lib file if we build a DLL.
19589 old_archive_From_new_cmds_F77='true'
19590 # FIXME: Should let the user specify the lib program.
19591 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19592 fix_srcfile_path='`cygpath -w "$srcfile"`'
19593 enable_shared_with_static_runtimes_F77=yes
19596 darwin* | rhapsody*)
19598 rhapsody* | darwin1.[012])
19599 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19602 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19603 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19605 case ${MACOSX_DEPLOYMENT_TARGET} in
19607 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19610 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19616 archive_cmds_need_lc_F77=no
19617 hardcode_direct_F77=no
19618 hardcode_automatic_F77=yes
19619 hardcode_shlibpath_var_F77=unsupported
19620 whole_archive_flag_spec_F77=''
19621 link_all_deplibs_F77=yes
19622 if test "$GCC" = yes ; then
19623 output_verbose_link_cmd='echo'
19624 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19625 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19626 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19627 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}'
19628 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}'
19630 case "$cc_basename" in
19632 output_verbose_link_cmd='echo'
19633 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19634 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19635 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19636 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}'
19637 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}'
19647 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19648 hardcode_libdir_flag_spec_F77='-L$libdir'
19649 hardcode_shlibpath_var_F77=no
19656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19657 # support. Future versions do this automatically, but an explicit c++rt0.o
19658 # does not break anything, and helps significantly (at the cost of a little
19661 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19662 hardcode_libdir_flag_spec_F77='-R$libdir'
19663 hardcode_direct_F77=yes
19664 hardcode_shlibpath_var_F77=no
19667 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19669 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19670 hardcode_direct_F77=yes
19671 hardcode_minus_L_F77=yes
19672 hardcode_shlibpath_var_F77=no
19675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19676 freebsd* | kfreebsd*-gnu)
19677 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19678 hardcode_libdir_flag_spec_F77='-R$libdir'
19679 hardcode_direct_F77=yes
19680 hardcode_shlibpath_var_F77=no
19684 if test "$GCC" = yes; then
19685 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'
19687 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'
19689 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19690 hardcode_libdir_separator_F77=:
19691 hardcode_direct_F77=yes
19693 # hardcode_minus_L: Not really in the search PATH,
19694 # but as the default location of the library.
19695 hardcode_minus_L_F77=yes
19696 export_dynamic_flag_spec_F77='${wl}-E'
19700 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19701 case "$host_cpu" in
19703 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19706 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19710 case "$host_cpu" in
19712 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19715 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19719 if test "$with_gnu_ld" = no; then
19720 case "$host_cpu" in
19722 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19723 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19724 hardcode_libdir_separator_F77=:
19725 hardcode_direct_F77=no
19726 hardcode_shlibpath_var_F77=no
19729 hardcode_libdir_flag_spec_F77='-L$libdir'
19730 hardcode_direct_F77=no
19731 hardcode_shlibpath_var_F77=no
19733 # hardcode_minus_L: Not really in the search PATH,
19734 # but as the default location of the library.
19735 hardcode_minus_L_F77=yes
19738 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19739 hardcode_libdir_separator_F77=:
19740 hardcode_direct_F77=yes
19741 export_dynamic_flag_spec_F77='${wl}-E'
19743 # hardcode_minus_L: Not really in the search PATH,
19744 # but as the default location of the library.
19745 hardcode_minus_L_F77=yes
19751 irix5* | irix6* | nonstopux*)
19752 if test "$GCC" = yes; then
19753 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'
19755 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'
19756 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19758 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19759 hardcode_libdir_separator_F77=:
19760 link_all_deplibs_F77=yes
19764 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19765 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19767 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19769 hardcode_libdir_flag_spec_F77='-R$libdir'
19770 hardcode_direct_F77=yes
19771 hardcode_shlibpath_var_F77=no
19775 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19776 hardcode_direct_F77=yes
19777 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19778 hardcode_libdir_separator_F77=:
19779 hardcode_shlibpath_var_F77=no
19783 hardcode_direct_F77=yes
19784 hardcode_shlibpath_var_F77=no
19785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19786 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19787 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19788 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19789 export_dynamic_flag_spec_F77='${wl}-E'
19792 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19793 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19794 hardcode_libdir_flag_spec_F77='-R$libdir'
19797 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19798 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19805 hardcode_libdir_flag_spec_F77='-L$libdir'
19806 hardcode_minus_L_F77=yes
19807 allow_undefined_flag_F77=unsupported
19808 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'
19809 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19813 if test "$GCC" = yes; then
19814 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19815 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'
19817 allow_undefined_flag_F77=' -expect_unresolved \*'
19818 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'
19820 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19821 hardcode_libdir_separator_F77=:
19824 osf4* | osf5*) # as osf3* with the addition of -msym flag
19825 if test "$GCC" = yes; then
19826 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19827 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'
19828 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19830 allow_undefined_flag_F77=' -expect_unresolved \*'
19831 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'
19832 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~
19833 $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'
19835 # Both c and cxx compiler support -rpath directly
19836 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19838 hardcode_libdir_separator_F77=:
19842 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19843 hardcode_shlibpath_var_F77=no
19844 export_dynamic_flag_spec_F77='${wl}-Bexport'
19845 runpath_var=LD_RUN_PATH
19846 hardcode_runpath_var=yes
19850 no_undefined_flag_F77=' -z text'
19851 if test "$GCC" = yes; then
19852 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19853 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19854 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19856 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19857 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19858 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19860 hardcode_libdir_flag_spec_F77='-R$libdir'
19861 hardcode_shlibpath_var_F77=no
19863 solaris2.[0-5] | solaris2.[0-5].*) ;;
19864 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19865 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19867 link_all_deplibs_F77=yes
19871 if test "x$host_vendor" = xsequent; then
19872 # Use $CC to link under sequent, because it throws in some extra .o
19873 # files that make .init and .fini sections work.
19874 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19876 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19878 hardcode_libdir_flag_spec_F77='-L$libdir'
19879 hardcode_direct_F77=yes
19880 hardcode_minus_L_F77=yes
19881 hardcode_shlibpath_var_F77=no
19885 case $host_vendor in
19887 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19888 hardcode_direct_F77=yes # is this really true???
19891 ## LD is ld it makes a PLAMLIB
19892 ## CC just makes a GrossModule.
19893 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19894 reload_cmds_F77='$CC -r -o $output$reload_objs'
19895 hardcode_direct_F77=no
19898 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19899 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19902 runpath_var='LD_RUN_PATH'
19903 hardcode_shlibpath_var_F77=no
19907 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19908 hardcode_shlibpath_var_F77=no
19909 export_dynamic_flag_spec_F77='-Bexport'
19913 if test -d /usr/nec; then
19914 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19915 hardcode_shlibpath_var_F77=no
19916 runpath_var=LD_RUN_PATH
19917 hardcode_runpath_var=yes
19923 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19924 hardcode_direct_F77=yes
19925 hardcode_minus_L_F77=no
19926 hardcode_shlibpath_var_F77=no
19927 hardcode_runpath_var=yes
19928 runpath_var=LD_RUN_PATH
19931 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19932 no_undefined_flag_F77='${wl}-z ${wl}text'
19933 if test "$GCC" = yes; then
19934 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19936 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19938 runpath_var='LD_RUN_PATH'
19939 hardcode_shlibpath_var_F77=no
19943 no_undefined_flag_F77=' -z text'
19944 # $CC -shared without GNU ld will not create a library from C++
19945 # object files and a static libstdc++, better avoid it by now
19946 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19947 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19948 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19949 hardcode_libdir_flag_spec_F77=
19950 hardcode_shlibpath_var_F77=no
19951 runpath_var='LD_RUN_PATH'
19955 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19956 hardcode_libdir_flag_spec_F77='-L$libdir'
19957 hardcode_shlibpath_var_F77=no
19966 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19967 echo "${ECHO_T}$ld_shlibs_F77" >&6
19968 test "$ld_shlibs_F77" = no && can_build_shared=no
19970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19971 if test "$GCC" = yes; then
19972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19976 # Do we need to explicitly link libc?
19978 case "x$archive_cmds_need_lc_F77" in
19980 # Assume -lc should be added
19981 archive_cmds_need_lc_F77=yes
19983 if test "$enable_shared" = yes && test "$GCC" = yes; then
19984 case $archive_cmds_F77 in
19986 # FIXME: we may have to deal with multi-command sequences.
19989 # Test whether the compiler implicitly links with -lc since on some
19990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19991 # to ld, don't add -lc before -lgcc.
19992 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998 (eval $ac_compile) 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } 2>conftest.err; then
20004 libobjs=conftest.$ac_objext
20006 wl=$lt_prog_compiler_wl_F77
20012 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20013 allow_undefined_flag_F77=
20014 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20015 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }
20020 archive_cmds_need_lc_F77=no
20022 archive_cmds_need_lc_F77=yes
20024 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20026 cat conftest.err 1>&5
20029 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20030 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20037 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20038 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20039 library_names_spec=
20040 libname_spec='lib$name'
20044 postuninstall_cmds=
20048 shlibpath_overrides_runpath=unknown
20050 dynamic_linker="$host_os ld.so"
20051 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20052 if test "$GCC" = yes; then
20053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20054 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20055 # if the path contains ";" then we assume it to be the separator
20056 # otherwise default to the standard path separator (i.e. ":") - it is
20057 # assumed that no part of a normal pathname contains ";" but that should
20058 # okay in the real world where ";" in dirpaths is itself problematic.
20059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20066 need_lib_prefix=unknown
20067 hardcode_into_libs=no
20069 # when you set need_version to no, make sure it does not cause -set_version
20070 # flags to be left without arguments
20071 need_version=unknown
20076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20077 shlibpath_var=LIBPATH
20079 # AIX 3 has no versioning support, so we append a major version to the name.
20080 soname_spec='${libname}${release}${shared_ext}$major'
20087 hardcode_into_libs=yes
20088 if test "$host_cpu" = ia64; then
20089 # AIX 5 supports IA64
20090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20091 shlibpath_var=LD_LIBRARY_PATH
20093 # With GCC up to 2.95.x, collect2 would create an import file
20094 # for dependence libraries. The import file would start with
20095 # the line `#! .'. This would cause the generated library to
20096 # depend on `.', always an invalid library. This was fixed in
20097 # development snapshots of GCC prior to 3.0.
20099 aix4 | aix4.[01] | aix4.[01].*)
20100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20102 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20105 can_build_shared=no
20109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20110 # soname into executable. Probably we can add versioning support to
20111 # collect2, so additional links can be useful in future.
20112 if test "$aix_use_runtimelinking" = yes; then
20113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20114 # instead of lib<name>.a to let people know that these are not
20115 # typical AIX shared libraries.
20116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118 # We preserve .a as extension for shared libraries through AIX4.2
20119 # and later when we are not doing run time linking.
20120 library_names_spec='${libname}${release}.a $libname.a'
20121 soname_spec='${libname}${release}${shared_ext}$major'
20123 shlibpath_var=LIBPATH
20128 library_names_spec='$libname.ixlibrary $libname.a'
20129 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20130 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'
20134 library_names_spec='${libname}${shared_ext}'
20135 dynamic_linker="$host_os ld.so"
20136 shlibpath_var=LIBRARY_PATH
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20143 soname_spec='${libname}${release}${shared_ext}$major'
20144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20145 shlibpath_var=LD_LIBRARY_PATH
20146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20148 # the default ld.so.conf also contains /usr/contrib/lib and
20149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20150 # libtool to hard-code these into programs
20153 cygwin* | mingw* | pw32*)
20154 version_type=windows
20159 case $GCC,$host_os in
20160 yes,cygwin* | yes,mingw* | yes,pw32*)
20161 library_names_spec='$libname.dll.a'
20162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20163 postinstall_cmds='base_file=`basename \${file}`~
20164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20165 dldir=$destdir/`dirname \$dlpath`~
20166 test -d \$dldir || mkdir -p \$dldir~
20167 $install_prog $dir/$dlname \$dldir/$dlname'
20168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20169 dlpath=$dir/\$dldll~
20171 shlibpath_overrides_runpath=yes
20175 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20176 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20177 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20180 # MinGW DLLs use traditional 'lib' prefix
20181 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20183 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20184 # It is most probably a Windows format PATH printed by
20185 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20186 # path with ; separators, and with drive letters. We can handle the
20187 # drive letters (cygwin fileutils understands them), so leave them,
20188 # especially as we might pass files found there to a mingw objdump,
20189 # which wouldn't understand a cygwinified path. Ahh.
20190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20196 # pw32 DLLs use 'pw' prefix rather than 'lib'
20197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20203 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20206 dynamic_linker='Win32 ld.exe'
20207 # FIXME: first we should search . and the directory the executable is in
20211 darwin* | rhapsody*)
20212 dynamic_linker="$host_os dyld"
20213 version_type=darwin
20216 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20217 soname_spec='${libname}${release}${major}$shared_ext'
20218 shlibpath_overrides_runpath=yes
20219 shlibpath_var=DYLD_LIBRARY_PATH
20220 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20221 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20222 if test "$GCC" = yes; then
20223 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"`
20225 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20227 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20235 soname_spec='${libname}${release}${shared_ext}$major'
20236 shlibpath_var=LD_LIBRARY_PATH
20247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 shlibpath_var=LD_LIBRARY_PATH
20250 shlibpath_overrides_runpath=no
20251 hardcode_into_libs=yes
20252 dynamic_linker='GNU ld.so'
20256 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20257 version_type=freebsd-$objformat
20258 case $version_type in
20260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20269 shlibpath_var=LD_LIBRARY_PATH
20272 shlibpath_overrides_runpath=yes
20274 freebsd3.01* | freebsdelf3.01*)
20275 shlibpath_overrides_runpath=yes
20276 hardcode_into_libs=yes
20279 shlibpath_overrides_runpath=no
20280 hardcode_into_libs=yes
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20290 soname_spec='${libname}${release}${shared_ext}$major'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 hardcode_into_libs=yes
20295 hpux9* | hpux10* | hpux11*)
20296 # Give a soname corresponding to the major version so that dld.sl refuses to
20297 # link against other versions.
20301 case "$host_cpu" in
20304 hardcode_into_libs=yes
20305 dynamic_linker="$host_os dld.so"
20306 shlibpath_var=LD_LIBRARY_PATH
20307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20309 soname_spec='${libname}${release}${shared_ext}$major'
20310 if test "X$HPUX_IA64_MODE" = X32; then
20311 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20313 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20319 hardcode_into_libs=yes
20320 dynamic_linker="$host_os dld.sl"
20321 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20324 soname_spec='${libname}${release}${shared_ext}$major'
20325 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20330 dynamic_linker="$host_os dld.sl"
20331 shlibpath_var=SHLIB_PATH
20332 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20334 soname_spec='${libname}${release}${shared_ext}$major'
20337 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20338 postinstall_cmds='chmod 555 $lib'
20341 irix5* | irix6* | nonstopux*)
20343 nonstopux*) version_type=nonstopux ;;
20345 if test "$lt_cv_prog_gnu_ld" = yes; then
20353 soname_spec='${libname}${release}${shared_ext}$major'
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20356 irix5* | nonstopux*)
20357 libsuff= shlibsuff=
20360 case $LD in # libtool.m4 will add one of these switches to LD
20361 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20362 libsuff= shlibsuff= libmagic=32-bit;;
20363 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20364 libsuff=32 shlibsuff=N32 libmagic=N32;;
20365 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20366 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20367 *) libsuff= shlibsuff= libmagic=never-match;;
20371 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20372 shlibpath_overrides_runpath=no
20373 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20374 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20375 hardcode_into_libs=yes
20378 # No shared lib support for Linux oldld, aout, or coff.
20379 linux*oldld* | linux*aout* | linux*coff*)
20383 # This must be Linux ELF.
20388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20389 soname_spec='${libname}${release}${shared_ext}$major'
20390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 shlibpath_overrides_runpath=no
20393 # This implies no fast_install, which is unacceptable.
20394 # Some rework will be needed to allow for fast_install
20395 # before this can be enabled.
20396 hardcode_into_libs=yes
20398 # Append ld.so.conf contents to the search path
20399 if test -f /etc/ld.so.conf; then
20400 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20401 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20404 # We used to test for /lib/ld.so.1 and disable shared libraries on
20405 # powerpc, because MkLinux only supported shared libraries with the
20406 # GNU dynamic linker. Since this was broken with cross compilers,
20407 # most powerpc-linux boxes support dynamic linking these days and
20408 # people can always --disable-shared, the test was removed, and we
20409 # assume the GNU/Linux dynamic linker is in use.
20410 dynamic_linker='GNU/Linux ld.so'
20417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20418 soname_spec='${libname}${release}${shared_ext}$major'
20419 shlibpath_var=LD_LIBRARY_PATH
20420 shlibpath_overrides_runpath=no
20421 hardcode_into_libs=yes
20422 dynamic_linker='GNU ld.so'
20429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20432 dynamic_linker='NetBSD (a.out) ld.so'
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20435 soname_spec='${libname}${release}${shared_ext}$major'
20436 dynamic_linker='NetBSD ld.elf_so'
20438 shlibpath_var=LD_LIBRARY_PATH
20439 shlibpath_overrides_runpath=yes
20440 hardcode_into_libs=yes
20445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20446 shlibpath_var=LD_LIBRARY_PATH
20447 shlibpath_overrides_runpath=yes
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 shlibpath_var=LD_LIBRARY_PATH
20457 shlibpath_overrides_runpath=yes
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20466 shlibpath_var=LD_LIBRARY_PATH
20467 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20469 openbsd2.[89] | openbsd2.[89].*)
20470 shlibpath_overrides_runpath=no
20473 shlibpath_overrides_runpath=yes
20477 shlibpath_overrides_runpath=yes
20482 libname_spec='$name'
20485 library_names_spec='$libname${shared_ext} $libname.a'
20486 dynamic_linker='OS/2 ld.exe'
20487 shlibpath_var=LIBPATH
20490 osf3* | osf4* | osf5*)
20494 soname_spec='${libname}${release}${shared_ext}$major'
20495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496 shlibpath_var=LD_LIBRARY_PATH
20497 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20498 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20503 soname_spec='${libname}${release}${shared_ext}$major'
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505 shlibpath_var=LD_LIBRARY_PATH
20512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513 soname_spec='${libname}${release}${shared_ext}$major'
20514 shlibpath_var=LD_LIBRARY_PATH
20515 shlibpath_overrides_runpath=yes
20516 hardcode_into_libs=yes
20517 # ldd complains unless libraries are executable
20518 postinstall_cmds='chmod +x $lib'
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20524 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20525 shlibpath_var=LD_LIBRARY_PATH
20526 shlibpath_overrides_runpath=yes
20527 if test "$with_gnu_ld" = yes; then
20533 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20536 soname_spec='${libname}${release}${shared_ext}$major'
20537 shlibpath_var=LD_LIBRARY_PATH
20538 case $host_vendor in
20540 shlibpath_overrides_runpath=no
20542 export_dynamic_flag_spec='${wl}-Blargedynsym'
20543 runpath_var=LD_RUN_PATH
20551 shlibpath_overrides_runpath=no
20552 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20558 if test -d /usr/nec ;then
20560 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20561 soname_spec='$libname${shared_ext}.$major'
20562 shlibpath_var=LD_LIBRARY_PATH
20568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569 soname_spec='${libname}${release}${shared_ext}$major'
20570 shlibpath_var=LD_LIBRARY_PATH
20577 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20578 echo "${ECHO_T}$dynamic_linker" >&6
20579 test "$dynamic_linker" = no && can_build_shared=no
20581 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20582 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20583 hardcode_action_F77=
20584 if test -n "$hardcode_libdir_flag_spec_F77" || \
20585 test -n "$runpath_var_F77" || \
20586 test "X$hardcode_automatic_F77" = "Xyes" ; then
20588 # We can hardcode non-existant directories.
20589 if test "$hardcode_direct_F77" != no &&
20590 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20591 # have to relink, otherwise we might link with an installed library
20592 # when we should be linking with a yet-to-be-installed one
20593 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20594 test "$hardcode_minus_L_F77" != no; then
20595 # Linking always hardcodes the temporary library directory.
20596 hardcode_action_F77=relink
20598 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20599 hardcode_action_F77=immediate
20602 # We cannot hardcode anything, or else we can only hardcode existing
20604 hardcode_action_F77=unsupported
20606 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20607 echo "${ECHO_T}$hardcode_action_F77" >&6
20609 if test "$hardcode_action_F77" = relink; then
20610 # Fast installation is not supported
20611 enable_fast_install=no
20612 elif test "$shlibpath_overrides_runpath" = yes ||
20613 test "$enable_shared" = no; then
20614 # Fast installation is not necessary
20615 enable_fast_install=needless
20620 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20621 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20622 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20623 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20624 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20625 echo "$as_me:$LINENO: result: yes" >&5
20626 echo "${ECHO_T}yes" >&6
20628 # FIXME - insert some real tests, host_os isn't really good enough
20631 if test -n "$STRIP" ; then
20632 striplib="$STRIP -x"
20633 echo "$as_me:$LINENO: result: yes" >&5
20634 echo "${ECHO_T}yes" >&6
20636 echo "$as_me:$LINENO: result: no" >&5
20637 echo "${ECHO_T}no" >&6
20641 echo "$as_me:$LINENO: result: no" >&5
20642 echo "${ECHO_T}no" >&6
20649 # The else clause should only fire when bootstrapping the
20650 # libtool distribution, otherwise you forgot to ship ltmain.sh
20651 # with your package, and you will get complaints that there are
20652 # no rules to generate ltmain.sh.
20653 if test -f "$ltmain"; then
20654 # See if we are running on zsh, and set the options which allow our commands through
20655 # without removal of \ escapes.
20656 if test -n "${ZSH_VERSION+set}" ; then
20657 setopt NO_GLOB_SUBST
20659 # Now quote all the things that may contain metacharacters while being
20660 # careful not to overquote the AC_SUBSTed values. We take copies of the
20661 # variables and quote the copies for generation of the libtool script.
20662 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20664 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20665 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20666 deplibs_check_method reload_flag reload_cmds need_locks \
20667 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20668 lt_cv_sys_global_symbol_to_c_name_address \
20669 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20670 old_postinstall_cmds old_postuninstall_cmds \
20674 lt_prog_compiler_wl_F77 \
20675 lt_prog_compiler_pic_F77 \
20676 lt_prog_compiler_static_F77 \
20677 lt_prog_compiler_no_builtin_flag_F77 \
20678 export_dynamic_flag_spec_F77 \
20679 thread_safe_flag_spec_F77 \
20680 whole_archive_flag_spec_F77 \
20681 enable_shared_with_static_runtimes_F77 \
20682 old_archive_cmds_F77 \
20683 old_archive_from_new_cmds_F77 \
20684 predep_objects_F77 \
20685 postdep_objects_F77 \
20688 compiler_lib_search_path_F77 \
20690 archive_expsym_cmds_F77 \
20691 postinstall_cmds_F77 \
20692 postuninstall_cmds_F77 \
20693 old_archive_from_expsyms_cmds_F77 \
20694 allow_undefined_flag_F77 \
20695 no_undefined_flag_F77 \
20696 export_symbols_cmds_F77 \
20697 hardcode_libdir_flag_spec_F77 \
20698 hardcode_libdir_flag_spec_ld_F77 \
20699 hardcode_libdir_separator_F77 \
20700 hardcode_automatic_F77 \
20702 module_expsym_cmds_F77 \
20703 lt_cv_prog_compiler_c_o_F77 \
20704 exclude_expsyms_F77 \
20705 include_expsyms_F77; do
20708 old_archive_cmds_F77 | \
20709 old_archive_from_new_cmds_F77 | \
20710 archive_cmds_F77 | \
20711 archive_expsym_cmds_F77 | \
20712 module_cmds_F77 | \
20713 module_expsym_cmds_F77 | \
20714 old_archive_from_expsyms_cmds_F77 | \
20715 export_symbols_cmds_F77 | \
20716 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20717 postinstall_cmds | postuninstall_cmds | \
20718 old_postinstall_cmds | old_postuninstall_cmds | \
20719 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20720 # Double-quote double-evaled strings.
20721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20730 *'\$0 --fallback-echo"')
20731 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20737 cat <<__EOF__ >> "$cfgfile"
20738 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20742 # Shell to use when invoking shell scripts.
20745 # Whether or not to build shared libraries.
20746 build_libtool_libs=$enable_shared
20748 # Whether or not to build static libraries.
20749 build_old_libs=$enable_static
20751 # Whether or not to add -lc for building shared libraries.
20752 build_libtool_need_lc=$archive_cmds_need_lc_F77
20754 # Whether or not to disallow shared libs when runtime libs are static
20755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20757 # Whether or not to optimize for fast installation.
20758 fast_install=$enable_fast_install
20761 host_alias=$host_alias
20764 # An echo program that does not interpret backslashes.
20769 AR_FLAGS=$lt_AR_FLAGS
20774 # A language-specific compiler.
20775 CC=$lt_compiler_F77
20777 # Is the compiler the GNU C compiler?
20783 # The linker used to build libraries.
20786 # Whether we need hard or soft links.
20789 # A BSD-compatible nm program.
20792 # A symbol stripping program
20795 # Used to examine libraries when file_magic_cmd begins "file"
20796 MAGIC_CMD=$MAGIC_CMD
20798 # Used on cygwin: DLL creation program.
20801 # Used on cygwin: object dumper.
20804 # Used on cygwin: assembler.
20807 # The name of the directory that contains temporary libtool files.
20810 # How to create reloadable object files.
20811 reload_flag=$lt_reload_flag
20812 reload_cmds=$lt_reload_cmds
20814 # How to pass a linker flag through the compiler.
20815 wl=$lt_lt_prog_compiler_wl_F77
20817 # Object file suffix (normally "o").
20818 objext="$ac_objext"
20820 # Old archive suffix (normally "a").
20823 # Shared library suffix (normally ".so").
20824 shrext_cmds='$shrext_cmds'
20826 # Executable file suffix (normally "").
20829 # Additional compiler flags for building library objects.
20830 pic_flag=$lt_lt_prog_compiler_pic_F77
20833 # What is the maximum length of a command?
20834 max_cmd_len=$lt_cv_sys_max_cmd_len
20836 # Does compiler simultaneously support -c and -o options?
20837 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20839 # Must we lock files when doing compilation ?
20840 need_locks=$lt_need_locks
20842 # Do we need the lib prefix for modules?
20843 need_lib_prefix=$need_lib_prefix
20845 # Do we need a version for libraries?
20846 need_version=$need_version
20848 # Whether dlopen is supported.
20849 dlopen_support=$enable_dlopen
20851 # Whether dlopen of programs is supported.
20852 dlopen_self=$enable_dlopen_self
20854 # Whether dlopen of statically linked programs is supported.
20855 dlopen_self_static=$enable_dlopen_self_static
20857 # Compiler flag to prevent dynamic linking.
20858 link_static_flag=$lt_lt_prog_compiler_static_F77
20860 # Compiler flag to turn off builtin functions.
20861 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20863 # Compiler flag to allow reflexive dlopens.
20864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20866 # Compiler flag to generate shared objects directly from archives.
20867 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20869 # Compiler flag to generate thread-safe objects.
20870 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20872 # Library versioning type.
20873 version_type=$version_type
20875 # Format of library name prefix.
20876 libname_spec=$lt_libname_spec
20878 # List of archive names. First name is the real one, the rest are links.
20879 # The last name is the one that the linker finds with -lNAME.
20880 library_names_spec=$lt_library_names_spec
20882 # The coded name of the library, if different from the real name.
20883 soname_spec=$lt_soname_spec
20885 # Commands used to build and install an old-style archive.
20887 old_archive_cmds=$lt_old_archive_cmds_F77
20888 old_postinstall_cmds=$lt_old_postinstall_cmds
20889 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20891 # Create an old-style archive from a shared archive.
20892 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20894 # Create a temporary old-style archive to link instead of a shared archive.
20895 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20897 # Commands used to build and install a shared archive.
20898 archive_cmds=$lt_archive_cmds_F77
20899 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20900 postinstall_cmds=$lt_postinstall_cmds
20901 postuninstall_cmds=$lt_postuninstall_cmds
20903 # Commands used to build a loadable module (assumed same as above if empty)
20904 module_cmds=$lt_module_cmds_F77
20905 module_expsym_cmds=$lt_module_expsym_cmds_F77
20907 # Commands to strip libraries.
20908 old_striplib=$lt_old_striplib
20909 striplib=$lt_striplib
20911 # Dependencies to place before the objects being linked to create a
20913 predep_objects=$lt_predep_objects_F77
20915 # Dependencies to place after the objects being linked to create a
20917 postdep_objects=$lt_postdep_objects_F77
20919 # Dependencies to place before the objects being linked to create a
20921 predeps=$lt_predeps_F77
20923 # Dependencies to place after the objects being linked to create a
20925 postdeps=$lt_postdeps_F77
20927 # The library search path used internally by the compiler when linking
20928 # a shared library.
20929 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20931 # Method to check whether dependent libraries are shared objects.
20932 deplibs_check_method=$lt_deplibs_check_method
20934 # Command to use when deplibs_check_method == file_magic.
20935 file_magic_cmd=$lt_file_magic_cmd
20937 # Flag that allows shared libraries with undefined symbols to be built.
20938 allow_undefined_flag=$lt_allow_undefined_flag_F77
20940 # Flag that forces no undefined symbols.
20941 no_undefined_flag=$lt_no_undefined_flag_F77
20943 # Commands used to finish a libtool library installation in a directory.
20944 finish_cmds=$lt_finish_cmds
20946 # Same as above, but a single script fragment to be evaled but not shown.
20947 finish_eval=$lt_finish_eval
20949 # Take the output of nm and produce a listing of raw symbols and C names.
20950 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20952 # Transform the output of nm in a proper C declaration
20953 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20955 # Transform the output of nm in a C name address pair
20956 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20958 # This is the shared library runtime path variable.
20959 runpath_var=$runpath_var
20961 # This is the shared library path variable.
20962 shlibpath_var=$shlibpath_var
20964 # Is shlibpath searched before the hard-coded library search path?
20965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20967 # How to hardcode a shared library path into an executable.
20968 hardcode_action=$hardcode_action_F77
20970 # Whether we should hardcode library paths into libraries.
20971 hardcode_into_libs=$hardcode_into_libs
20973 # Flag to hardcode \$libdir into a binary during linking.
20974 # This must work even if \$libdir does not exist.
20975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20977 # If ld is used when linking, flag to hardcode \$libdir into
20978 # a binary during linking. This must work even if \$libdir does
20980 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20982 # Whether we need a single -rpath flag with a separated argument.
20983 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20985 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20986 # resulting binary.
20987 hardcode_direct=$hardcode_direct_F77
20989 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20990 # resulting binary.
20991 hardcode_minus_L=$hardcode_minus_L_F77
20993 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20994 # the resulting binary.
20995 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20997 # Set to yes if building a shared library automatically hardcodes DIR into the library
20998 # and all subsequent libraries and executables linked against it.
20999 hardcode_automatic=$hardcode_automatic_F77
21001 # Variables whose values should be saved in libtool wrapper scripts and
21002 # restored at relink time.
21003 variables_saved_for_relink="$variables_saved_for_relink"
21005 # Whether libtool must link a program against all its dependency libraries.
21006 link_all_deplibs=$link_all_deplibs_F77
21008 # Compile-time system search path for libraries
21009 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21011 # Run-time system search path for libraries
21012 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21014 # Fix the shell variable \$srcfile for the compiler.
21015 fix_srcfile_path="$fix_srcfile_path_F77"
21017 # Set to yes if exported symbols are required.
21018 always_export_symbols=$always_export_symbols_F77
21020 # The commands to list exported symbols.
21021 export_symbols_cmds=$lt_export_symbols_cmds_F77
21023 # The commands to extract the exported symbol list from a shared archive.
21024 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21026 # Symbols that should not be listed in the preloaded symbols.
21027 exclude_expsyms=$lt_exclude_expsyms_F77
21029 # Symbols that must always be exported.
21030 include_expsyms=$lt_include_expsyms_F77
21032 # ### END LIBTOOL TAG CONFIG: $tagname
21038 # If there is no Makefile yet, we rely on a make rule to execute
21039 # `config.status --recheck' to rerun these tests and create the
21040 # libtool script then.
21041 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21042 if test -f "$ltmain_in"; then
21043 test -f Makefile && make "$ltmain"
21049 ac_cpp='$CPP $CPPFLAGS'
21050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21064 ac_cpp='$CPP $CPPFLAGS'
21065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21070 # Source file extension for Java test sources.
21073 # Object file extension for compiled Java test sources.
21077 # Code to be used in simple compile tests
21078 lt_simple_compile_test_code="class foo {}\n"
21080 # Code to be used in simple link tests
21081 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21083 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21085 # If no C compiler was specified, use CC.
21088 # Allow CC to be a program name with arguments.
21092 # Allow CC to be a program name with arguments.
21098 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21099 archive_cmds_need_lc_GCJ=no
21102 lt_prog_compiler_no_builtin_flag_GCJ=
21104 if test "$GCC" = yes; then
21105 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21108 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21109 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21110 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 lt_cv_prog_compiler_rtti_exceptions=no
21114 ac_outfile=conftest.$ac_objext
21115 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21116 lt_compiler_flag="-fno-rtti -fno-exceptions"
21117 # Insert the option either (1) after the last *FLAGS variable, or
21118 # (2) before a word containing "conftest.", or (3) at the end.
21119 # Note that $ac_compile itself does not contain backslashes and begins
21120 # with a dollar sign (not a hyphen), so the echo should work correctly.
21121 # The option is referenced via a variable to avoid confusing sed.
21122 lt_compile=`echo "$ac_compile" | $SED \
21123 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21125 -e 's:$: $lt_compiler_flag:'`
21126 (eval echo "\"\$as_me:21126: $lt_compile\"" >&5)
21127 (eval "$lt_compile" 2>conftest.err)
21129 cat conftest.err >&5
21130 echo "$as_me:21130: \$? = $ac_status" >&5
21131 if (exit $ac_status) && test -s "$ac_outfile"; then
21132 # The compiler can only warn and ignore the option if not recognized
21133 # So say no if there are warnings
21134 if test ! -s conftest.err; then
21135 lt_cv_prog_compiler_rtti_exceptions=yes
21141 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21142 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21144 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21145 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21152 lt_prog_compiler_wl_GCJ=
21153 lt_prog_compiler_pic_GCJ=
21154 lt_prog_compiler_static_GCJ=
21156 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21157 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21159 if test "$GCC" = yes; then
21160 lt_prog_compiler_wl_GCJ='-Wl,'
21161 lt_prog_compiler_static_GCJ='-static'
21165 # All AIX code is PIC.
21166 if test "$host_cpu" = ia64; then
21167 # AIX 5 now supports IA64 processor
21168 lt_prog_compiler_static_GCJ='-Bstatic'
21173 # FIXME: we need at least 68020 code to build shared libraries, but
21174 # adding the `-m68020' flag to GCC prevents building anything better,
21176 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21179 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21180 # PIC is the default for these OSes.
21183 mingw* | pw32* | os2*)
21184 # This hack is so that the source file can tell whether it is being
21185 # built for inclusion in a dll (and should export symbols for example).
21186 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21189 darwin* | rhapsody*)
21190 # PIC is the default on this platform
21191 # Common symbols not allowed in MH_DYLIB files
21192 lt_prog_compiler_pic_GCJ='-fno-common'
21196 # Just because we use GCC doesn't mean we suddenly get shared libraries
21197 # on systems that don't support them.
21198 lt_prog_compiler_can_build_shared_GCJ=no
21203 if test -d /usr/nec; then
21204 lt_prog_compiler_pic_GCJ=-Kconform_pic
21209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21210 # not for PA HP-UX.
21211 case "$host_cpu" in
21216 lt_prog_compiler_pic_GCJ='-fPIC'
21222 lt_prog_compiler_pic_GCJ='-fPIC'
21226 # PORTME Check for flag to pass linker flags through the system compiler.
21229 lt_prog_compiler_wl_GCJ='-Wl,'
21230 if test "$host_cpu" = ia64; then
21231 # AIX 5 now supports IA64 processor
21232 lt_prog_compiler_static_GCJ='-Bstatic'
21234 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21238 # PIC is the default on this platform
21239 # Common symbols not allowed in MH_DYLIB files
21240 case "$cc_basename" in
21242 lt_prog_compiler_pic_GCJ='-qnocommon'
21243 lt_prog_compiler_wl_GCJ='-Wl,'
21248 mingw* | pw32* | os2*)
21249 # This hack is so that the source file can tell whether it is being
21250 # built for inclusion in a dll (and should export symbols for example).
21251 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21254 hpux9* | hpux10* | hpux11*)
21255 lt_prog_compiler_wl_GCJ='-Wl,'
21256 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21257 # not for PA HP-UX.
21258 case "$host_cpu" in
21263 lt_prog_compiler_pic_GCJ='+Z'
21266 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21267 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21270 irix5* | irix6* | nonstopux*)
21271 lt_prog_compiler_wl_GCJ='-Wl,'
21272 # PIC (with -KPIC) is the default.
21273 lt_prog_compiler_static_GCJ='-non_shared'
21277 lt_prog_compiler_pic_GCJ='-KPIC'
21278 lt_prog_compiler_static_GCJ='-Bstatic'
21284 lt_prog_compiler_wl_GCJ='-Wl,'
21285 lt_prog_compiler_pic_GCJ='-KPIC'
21286 lt_prog_compiler_static_GCJ='-static'
21289 lt_prog_compiler_wl_GCJ='-Wl,'
21290 # All Alpha code is PIC.
21291 lt_prog_compiler_static_GCJ='-non_shared'
21296 osf3* | osf4* | osf5*)
21297 lt_prog_compiler_wl_GCJ='-Wl,'
21298 # All OSF/1 code is PIC.
21299 lt_prog_compiler_static_GCJ='-non_shared'
21303 lt_prog_compiler_pic_GCJ='-Kpic'
21304 lt_prog_compiler_static_GCJ='-dn'
21308 lt_prog_compiler_wl_GCJ='-Wl,'
21309 lt_prog_compiler_pic_GCJ='-KPIC'
21310 lt_prog_compiler_static_GCJ='-Bstatic'
21314 lt_prog_compiler_wl_GCJ='-Qoption ld '
21315 lt_prog_compiler_pic_GCJ='-PIC'
21316 lt_prog_compiler_static_GCJ='-Bstatic'
21319 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21320 lt_prog_compiler_wl_GCJ='-Wl,'
21321 lt_prog_compiler_pic_GCJ='-KPIC'
21322 lt_prog_compiler_static_GCJ='-Bstatic'
21326 if test -d /usr/nec ;then
21327 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21328 lt_prog_compiler_static_GCJ='-Bstatic'
21333 lt_prog_compiler_pic_GCJ='-pic'
21334 lt_prog_compiler_static_GCJ='-Bstatic'
21338 lt_prog_compiler_can_build_shared_GCJ=no
21343 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21344 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21347 # Check to make sure the PIC flag actually works.
21349 if test -n "$lt_prog_compiler_pic_GCJ"; then
21351 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21352 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21353 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 lt_prog_compiler_pic_works_GCJ=no
21357 ac_outfile=conftest.$ac_objext
21358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21359 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21360 # Insert the option either (1) after the last *FLAGS variable, or
21361 # (2) before a word containing "conftest.", or (3) at the end.
21362 # Note that $ac_compile itself does not contain backslashes and begins
21363 # with a dollar sign (not a hyphen), so the echo should work correctly.
21364 # The option is referenced via a variable to avoid confusing sed.
21365 lt_compile=`echo "$ac_compile" | $SED \
21366 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21368 -e 's:$: $lt_compiler_flag:'`
21369 (eval echo "\"\$as_me:21369: $lt_compile\"" >&5)
21370 (eval "$lt_compile" 2>conftest.err)
21372 cat conftest.err >&5
21373 echo "$as_me:21373: \$? = $ac_status" >&5
21374 if (exit $ac_status) && test -s "$ac_outfile"; then
21375 # The compiler can only warn and ignore the option if not recognized
21376 # So say no if there are warnings
21377 if test ! -s conftest.err; then
21378 lt_prog_compiler_pic_works_GCJ=yes
21384 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21385 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21387 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21388 case $lt_prog_compiler_pic_GCJ in
21390 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21393 lt_prog_compiler_pic_GCJ=
21394 lt_prog_compiler_can_build_shared_GCJ=no
21399 # For platforms which do not support PIC, -DPIC is meaningless:
21401 lt_prog_compiler_pic_GCJ=
21404 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21408 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21409 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21410 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 lt_cv_prog_compiler_c_o_GCJ=no
21414 $rm -r conftest 2>/dev/null
21418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21420 lt_compiler_flag="-o out/conftest2.$ac_objext"
21421 # Insert the option either (1) after the last *FLAGS variable, or
21422 # (2) before a word containing "conftest.", or (3) at the end.
21423 # Note that $ac_compile itself does not contain backslashes and begins
21424 # with a dollar sign (not a hyphen), so the echo should work correctly.
21425 lt_compile=`echo "$ac_compile" | $SED \
21426 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21428 -e 's:$: $lt_compiler_flag:'`
21429 (eval echo "\"\$as_me:21429: $lt_compile\"" >&5)
21430 (eval "$lt_compile" 2>out/conftest.err)
21432 cat out/conftest.err >&5
21433 echo "$as_me:21433: \$? = $ac_status" >&5
21434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21436 # The compiler can only warn and ignore the option if not recognized
21437 # So say no if there are warnings
21438 if test ! -s out/conftest.err; then
21439 lt_cv_prog_compiler_c_o_GCJ=yes
21444 # SGI C++ compiler will create directory out/ii_files/ for
21445 # template instantiation
21446 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21447 $rm out/* && rmdir out
21453 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21454 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21457 hard_links="nottested"
21458 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21459 # do not overwrite the value of need_locks provided by the user
21460 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21461 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21466 ln conftest.a conftest.b 2>&5 || hard_links=no
21467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21468 echo "$as_me:$LINENO: result: $hard_links" >&5
21469 echo "${ECHO_T}$hard_links" >&6
21470 if test "$hard_links" = no; then
21471 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21472 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21479 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21480 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21483 allow_undefined_flag_GCJ=
21484 enable_shared_with_static_runtimes_GCJ=no
21486 archive_expsym_cmds_GCJ=
21487 old_archive_From_new_cmds_GCJ=
21488 old_archive_from_expsyms_cmds_GCJ=
21489 export_dynamic_flag_spec_GCJ=
21490 whole_archive_flag_spec_GCJ=
21491 thread_safe_flag_spec_GCJ=
21492 hardcode_libdir_flag_spec_GCJ=
21493 hardcode_libdir_flag_spec_ld_GCJ=
21494 hardcode_libdir_separator_GCJ=
21495 hardcode_direct_GCJ=no
21496 hardcode_minus_L_GCJ=no
21497 hardcode_shlibpath_var_GCJ=unsupported
21498 link_all_deplibs_GCJ=unknown
21499 hardcode_automatic_GCJ=no
21501 module_expsym_cmds_GCJ=
21502 always_export_symbols_GCJ=no
21503 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21504 # include_expsyms should be a list of space-separated symbols to be *always*
21505 # included in the symbol list
21506 include_expsyms_GCJ=
21507 # exclude_expsyms can be an extended regexp of symbols to exclude
21508 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21509 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21510 # as well as any symbol that contains `d'.
21511 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21512 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21513 # platforms (ab)use it in PIC code, but their linkers get confused if
21514 # the symbol is explicitly referenced. Since portable code cannot
21515 # rely on this symbol name, it's probably fine to never include it in
21516 # preloaded symbol tables.
21517 extract_expsyms_cmds=
21520 cygwin* | mingw* | pw32*)
21521 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21522 # When not using gcc, we currently assume that we are using
21523 # Microsoft Visual C++.
21524 if test "$GCC" != yes; then
21534 if test "$with_gnu_ld" = yes; then
21535 # If archive_cmds runs LD, not CC, wlarc should be empty
21538 # See if GNU ld supports shared libraries.
21540 aix3* | aix4* | aix5*)
21541 # On AIX/PPC, the GNU linker is very broken
21542 if test "$host_cpu" != ia64; then
21546 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21547 *** to be unable to reliably create shared libraries on AIX.
21548 *** Therefore, libtool is disabling shared libraries support. If you
21549 *** really care for shared libraries, you may want to modify your PATH
21550 *** so that a non-GNU linker is found, and then restart.
21557 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)'
21558 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21559 hardcode_minus_L_GCJ=yes
21561 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21562 # that the semantics of dynamic libraries on AmigaOS, at least up
21563 # to version 4, is to share data among multiple programs linked
21564 # with the same dynamic library. Since this doesn't match the
21565 # behavior of shared libraries on other platforms, we can't use
21571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21572 allow_undefined_flag_GCJ=unsupported
21573 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21574 # support --undefined. This deserves some investigation. FIXME
21575 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21581 cygwin* | mingw* | pw32*)
21582 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21583 # as there is no search path for DLLs.
21584 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21585 allow_undefined_flag_GCJ=unsupported
21586 always_export_symbols_GCJ=no
21587 enable_shared_with_static_runtimes_GCJ=yes
21588 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21590 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21591 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21592 # If the export-symbols file already is a .def file (1st line
21593 # is EXPORTS), use it as is; otherwise, prepend...
21594 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21595 cp $export_symbols $output_objdir/$soname.def;
21597 echo EXPORTS > $output_objdir/$soname.def;
21598 cat $export_symbols >> $output_objdir/$soname.def;
21600 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21608 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21611 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21612 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21617 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21621 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21622 *** create shared libraries on Solaris systems. Therefore, libtool
21623 *** is disabling shared libraries support. We urge you to upgrade GNU
21624 *** binutils to release 2.9.1 or newer. Another option is to modify
21625 *** your PATH or compiler configuration so that the native linker is
21626 *** used, and then restart.
21629 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21630 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21631 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21638 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21640 hardcode_direct_GCJ=yes
21641 hardcode_shlibpath_var_GCJ=no
21645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21646 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21647 archive_cmds_GCJ="$tmp_archive_cmds"
21648 supports_anon_versioning=no
21649 case `$LD -v 2>/dev/null` in
21650 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21651 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21652 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21653 *\ 2.11.*) ;; # other 2.11 versions
21654 *) supports_anon_versioning=yes ;;
21656 if test $supports_anon_versioning = yes; then
21657 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21658 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21659 $echo "local: *; };" >> $output_objdir/$libname.ver~
21660 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21662 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21671 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21672 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21679 if test "$ld_shlibs_GCJ" = yes; then
21680 runpath_var=LD_RUN_PATH
21681 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21682 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21683 # ancient GNU ld didn't support --whole-archive et. al.
21684 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21685 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21687 whole_archive_flag_spec_GCJ=
21691 # PORTME fill in a description of your system's linker (not GNU ld)
21694 allow_undefined_flag_GCJ=unsupported
21695 always_export_symbols_GCJ=yes
21696 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'
21697 # Note: this linker hardcodes the directories in LIBPATH if there
21698 # are no directories specified by -L.
21699 hardcode_minus_L_GCJ=yes
21700 if test "$GCC" = yes && test -z "$link_static_flag"; then
21701 # Neither direct hardcoding nor static linking is supported with a
21703 hardcode_direct_GCJ=unsupported
21708 if test "$host_cpu" = ia64; then
21709 # On IA64, the linker does run time linking by default, so we don't
21710 # have to do anything special.
21711 aix_use_runtimelinking=no
21712 exp_sym_flag='-Bexport'
21715 # If we're using GNU nm, then we don't want the "-C" option.
21716 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21717 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21718 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'
21720 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'
21722 aix_use_runtimelinking=no
21724 # Test if we are trying to use run time linking or normal
21725 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21726 # need to do runtime linking.
21727 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21728 for ld_flag in $LDFLAGS; do
21729 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21730 aix_use_runtimelinking=yes
21736 exp_sym_flag='-bexport'
21737 no_entry_flag='-bnoentry'
21740 # When large executables or shared objects are built, AIX ld can
21741 # have problems creating the table of contents. If linking a library
21742 # or program results in "error TOC overflow" add -mminimal-toc to
21743 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21744 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21746 archive_cmds_GCJ=''
21747 hardcode_direct_GCJ=yes
21748 hardcode_libdir_separator_GCJ=':'
21749 link_all_deplibs_GCJ=yes
21751 if test "$GCC" = yes; then
21752 case $host_os in aix4.012|aix4.012.*)
21753 # We only want to do this on AIX 4.2 and lower, the check
21754 # below for broken collect2 doesn't work under 4.3+
21755 collect2name=`${CC} -print-prog-name=collect2`
21756 if test -f "$collect2name" && \
21757 strings "$collect2name" | grep resolve_lib_name >/dev/null
21759 # We have reworked collect2
21760 hardcode_direct_GCJ=yes
21762 # We have old collect2
21763 hardcode_direct_GCJ=unsupported
21764 # It fails to find uninstalled libraries when the uninstalled
21765 # path is not listed in the libpath. Setting hardcode_minus_L
21766 # to unsupported forces relinking
21767 hardcode_minus_L_GCJ=yes
21768 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21769 hardcode_libdir_separator_GCJ=
21772 shared_flag='-shared'
21775 if test "$host_cpu" = ia64; then
21776 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21777 # chokes on -Wl,-G. The following line is correct:
21780 if test "$aix_use_runtimelinking" = yes; then
21781 shared_flag='${wl}-G'
21783 shared_flag='${wl}-bM:SRE'
21788 # It seems that -bexpall does not export symbols beginning with
21789 # underscore (_), so it is better to generate a list of symbols to export.
21790 always_export_symbols_GCJ=yes
21791 if test "$aix_use_runtimelinking" = yes; then
21792 # Warning - without using the other runtime loading flags (-brtl),
21793 # -berok will link without error, but may produce a broken library.
21794 allow_undefined_flag_GCJ='-berok'
21795 # Determine the default libpath from the value encoded in an empty executable.
21796 cat >conftest.$ac_ext <<_ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21811 rm -f conftest.$ac_objext conftest$ac_exeext
21812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21813 (eval $ac_link) 2>conftest.er1
21815 grep -v '^ *+' conftest.er1 >conftest.err
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
21820 { ac_try='test -z "$ac_c_werror_flag"
21821 || test ! -s conftest.err'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; } &&
21827 { ac_try='test -s conftest$ac_exeext'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
21834 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21836 # Check for a 64-bit object if we didn't find anything.
21837 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; }
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21844 rm -f conftest.err conftest.$ac_objext \
21845 conftest$ac_exeext conftest.$ac_ext
21846 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21848 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21849 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"
21851 if test "$host_cpu" = ia64; then
21852 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21853 allow_undefined_flag_GCJ="-z nodefs"
21854 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"
21856 # Determine the default libpath from the value encoded in an empty executable.
21857 cat >conftest.$ac_ext <<_ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21872 rm -f conftest.$ac_objext conftest$ac_exeext
21873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21874 (eval $ac_link) 2>conftest.er1
21876 grep -v '^ *+' conftest.er1 >conftest.err
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } &&
21881 { ac_try='test -z "$ac_c_werror_flag"
21882 || test ! -s conftest.err'
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; } &&
21888 { ac_try='test -s conftest$ac_exeext'
21889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890 (eval $ac_try) 2>&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; }; then
21895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21897 # Check for a 64-bit object if we didn't find anything.
21898 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; }
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21905 rm -f conftest.err conftest.$ac_objext \
21906 conftest$ac_exeext conftest.$ac_ext
21907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21909 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21910 # Warning - without using the other run time loading flags,
21911 # -berok will link without error, but may produce a broken library.
21912 no_undefined_flag_GCJ=' ${wl}-bernotok'
21913 allow_undefined_flag_GCJ=' ${wl}-berok'
21914 # -bexpall does not export symbols beginning with underscore (_)
21915 always_export_symbols_GCJ=yes
21916 # Exported symbols can be pulled into shared objects from archives
21917 whole_archive_flag_spec_GCJ=' '
21918 archive_cmds_need_lc_GCJ=yes
21919 # This is similar to how AIX traditionally builds it's shared libraries.
21920 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'
21926 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)'
21927 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21928 hardcode_minus_L_GCJ=yes
21929 # see comment about different semantics on the GNU ld section
21934 export_dynamic_flag_spec_GCJ=-rdynamic
21937 cygwin* | mingw* | pw32*)
21938 # When not using gcc, we currently assume that we are using
21939 # Microsoft Visual C++.
21940 # hardcode_libdir_flag_spec is actually meaningless, as there is
21941 # no search path for DLLs.
21942 hardcode_libdir_flag_spec_GCJ=' '
21943 allow_undefined_flag_GCJ=unsupported
21944 # Tell ltmain to make .lib files, not .a files.
21946 # Tell ltmain to make .dll files, not .so files.
21948 # FIXME: Setting linknames here is a bad hack.
21949 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21950 # The linker will automatically build a .lib file if we build a DLL.
21951 old_archive_From_new_cmds_GCJ='true'
21952 # FIXME: Should let the user specify the lib program.
21953 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21954 fix_srcfile_path='`cygpath -w "$srcfile"`'
21955 enable_shared_with_static_runtimes_GCJ=yes
21958 darwin* | rhapsody*)
21960 rhapsody* | darwin1.[012])
21961 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21964 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21965 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21967 case ${MACOSX_DEPLOYMENT_TARGET} in
21969 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21972 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21978 archive_cmds_need_lc_GCJ=no
21979 hardcode_direct_GCJ=no
21980 hardcode_automatic_GCJ=yes
21981 hardcode_shlibpath_var_GCJ=unsupported
21982 whole_archive_flag_spec_GCJ=''
21983 link_all_deplibs_GCJ=yes
21984 if test "$GCC" = yes ; then
21985 output_verbose_link_cmd='echo'
21986 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21987 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21988 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21989 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}'
21990 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}'
21992 case "$cc_basename" in
21994 output_verbose_link_cmd='echo'
21995 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21996 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21997 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21998 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}'
21999 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}'
22009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22010 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22011 hardcode_shlibpath_var_GCJ=no
22018 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22019 # support. Future versions do this automatically, but an explicit c++rt0.o
22020 # does not break anything, and helps significantly (at the cost of a little
22023 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22024 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22025 hardcode_direct_GCJ=yes
22026 hardcode_shlibpath_var_GCJ=no
22029 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22031 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22032 hardcode_direct_GCJ=yes
22033 hardcode_minus_L_GCJ=yes
22034 hardcode_shlibpath_var_GCJ=no
22037 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22038 freebsd* | kfreebsd*-gnu)
22039 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22040 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22041 hardcode_direct_GCJ=yes
22042 hardcode_shlibpath_var_GCJ=no
22046 if test "$GCC" = yes; then
22047 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'
22049 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'
22051 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22052 hardcode_libdir_separator_GCJ=:
22053 hardcode_direct_GCJ=yes
22055 # hardcode_minus_L: Not really in the search PATH,
22056 # but as the default location of the library.
22057 hardcode_minus_L_GCJ=yes
22058 export_dynamic_flag_spec_GCJ='${wl}-E'
22062 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22063 case "$host_cpu" in
22065 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22068 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22072 case "$host_cpu" in
22074 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22077 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22081 if test "$with_gnu_ld" = no; then
22082 case "$host_cpu" in
22084 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22085 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22086 hardcode_libdir_separator_GCJ=:
22087 hardcode_direct_GCJ=no
22088 hardcode_shlibpath_var_GCJ=no
22091 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22092 hardcode_direct_GCJ=no
22093 hardcode_shlibpath_var_GCJ=no
22095 # hardcode_minus_L: Not really in the search PATH,
22096 # but as the default location of the library.
22097 hardcode_minus_L_GCJ=yes
22100 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22101 hardcode_libdir_separator_GCJ=:
22102 hardcode_direct_GCJ=yes
22103 export_dynamic_flag_spec_GCJ='${wl}-E'
22105 # hardcode_minus_L: Not really in the search PATH,
22106 # but as the default location of the library.
22107 hardcode_minus_L_GCJ=yes
22113 irix5* | irix6* | nonstopux*)
22114 if test "$GCC" = yes; then
22115 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'
22117 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'
22118 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22120 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22121 hardcode_libdir_separator_GCJ=:
22122 link_all_deplibs_GCJ=yes
22126 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22127 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22129 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22131 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22132 hardcode_direct_GCJ=yes
22133 hardcode_shlibpath_var_GCJ=no
22137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22138 hardcode_direct_GCJ=yes
22139 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22140 hardcode_libdir_separator_GCJ=:
22141 hardcode_shlibpath_var_GCJ=no
22145 hardcode_direct_GCJ=yes
22146 hardcode_shlibpath_var_GCJ=no
22147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22148 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22149 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22150 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22151 export_dynamic_flag_spec_GCJ='${wl}-E'
22154 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22155 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22156 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22159 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22160 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22168 hardcode_minus_L_GCJ=yes
22169 allow_undefined_flag_GCJ=unsupported
22170 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'
22171 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22175 if test "$GCC" = yes; then
22176 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22177 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'
22179 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22180 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'
22182 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22183 hardcode_libdir_separator_GCJ=:
22186 osf4* | osf5*) # as osf3* with the addition of -msym flag
22187 if test "$GCC" = yes; then
22188 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22189 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'
22190 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22192 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22193 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'
22194 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~
22195 $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'
22197 # Both c and cxx compiler support -rpath directly
22198 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22200 hardcode_libdir_separator_GCJ=:
22204 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22205 hardcode_shlibpath_var_GCJ=no
22206 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22207 runpath_var=LD_RUN_PATH
22208 hardcode_runpath_var=yes
22212 no_undefined_flag_GCJ=' -z text'
22213 if test "$GCC" = yes; then
22214 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22215 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22216 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22218 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22219 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22220 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22222 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22223 hardcode_shlibpath_var_GCJ=no
22225 solaris2.[0-5] | solaris2.[0-5].*) ;;
22226 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22227 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22229 link_all_deplibs_GCJ=yes
22233 if test "x$host_vendor" = xsequent; then
22234 # Use $CC to link under sequent, because it throws in some extra .o
22235 # files that make .init and .fini sections work.
22236 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22238 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22241 hardcode_direct_GCJ=yes
22242 hardcode_minus_L_GCJ=yes
22243 hardcode_shlibpath_var_GCJ=no
22247 case $host_vendor in
22249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22250 hardcode_direct_GCJ=yes # is this really true???
22253 ## LD is ld it makes a PLAMLIB
22254 ## CC just makes a GrossModule.
22255 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22256 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22257 hardcode_direct_GCJ=no
22260 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22261 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22264 runpath_var='LD_RUN_PATH'
22265 hardcode_shlibpath_var_GCJ=no
22269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22270 hardcode_shlibpath_var_GCJ=no
22271 export_dynamic_flag_spec_GCJ='-Bexport'
22275 if test -d /usr/nec; then
22276 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22277 hardcode_shlibpath_var_GCJ=no
22278 runpath_var=LD_RUN_PATH
22279 hardcode_runpath_var=yes
22285 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22286 hardcode_direct_GCJ=yes
22287 hardcode_minus_L_GCJ=no
22288 hardcode_shlibpath_var_GCJ=no
22289 hardcode_runpath_var=yes
22290 runpath_var=LD_RUN_PATH
22293 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22294 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22295 if test "$GCC" = yes; then
22296 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22298 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22300 runpath_var='LD_RUN_PATH'
22301 hardcode_shlibpath_var_GCJ=no
22305 no_undefined_flag_GCJ=' -z text'
22306 # $CC -shared without GNU ld will not create a library from C++
22307 # object files and a static libstdc++, better avoid it by now
22308 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22309 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22310 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22311 hardcode_libdir_flag_spec_GCJ=
22312 hardcode_shlibpath_var_GCJ=no
22313 runpath_var='LD_RUN_PATH'
22317 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22318 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22319 hardcode_shlibpath_var_GCJ=no
22328 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22329 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22330 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22332 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22333 if test "$GCC" = yes; then
22334 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22338 # Do we need to explicitly link libc?
22340 case "x$archive_cmds_need_lc_GCJ" in
22342 # Assume -lc should be added
22343 archive_cmds_need_lc_GCJ=yes
22345 if test "$enable_shared" = yes && test "$GCC" = yes; then
22346 case $archive_cmds_GCJ in
22348 # FIXME: we may have to deal with multi-command sequences.
22351 # Test whether the compiler implicitly links with -lc since on some
22352 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22353 # to ld, don't add -lc before -lgcc.
22354 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22355 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22357 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360 (eval $ac_compile) 2>&5
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } 2>conftest.err; then
22366 libobjs=conftest.$ac_objext
22368 wl=$lt_prog_compiler_wl_GCJ
22374 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22375 allow_undefined_flag_GCJ=
22376 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22377 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); }
22382 archive_cmds_need_lc_GCJ=no
22384 archive_cmds_need_lc_GCJ=yes
22386 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22388 cat conftest.err 1>&5
22391 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22392 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22399 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22400 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22401 library_names_spec=
22402 libname_spec='lib$name'
22406 postuninstall_cmds=
22410 shlibpath_overrides_runpath=unknown
22412 dynamic_linker="$host_os ld.so"
22413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22414 if test "$GCC" = yes; then
22415 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22416 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22417 # if the path contains ";" then we assume it to be the separator
22418 # otherwise default to the standard path separator (i.e. ":") - it is
22419 # assumed that no part of a normal pathname contains ";" but that should
22420 # okay in the real world where ";" in dirpaths is itself problematic.
22421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22428 need_lib_prefix=unknown
22429 hardcode_into_libs=no
22431 # when you set need_version to no, make sure it does not cause -set_version
22432 # flags to be left without arguments
22433 need_version=unknown
22438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22439 shlibpath_var=LIBPATH
22441 # AIX 3 has no versioning support, so we append a major version to the name.
22442 soname_spec='${libname}${release}${shared_ext}$major'
22449 hardcode_into_libs=yes
22450 if test "$host_cpu" = ia64; then
22451 # AIX 5 supports IA64
22452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22453 shlibpath_var=LD_LIBRARY_PATH
22455 # With GCC up to 2.95.x, collect2 would create an import file
22456 # for dependence libraries. The import file would start with
22457 # the line `#! .'. This would cause the generated library to
22458 # depend on `.', always an invalid library. This was fixed in
22459 # development snapshots of GCC prior to 3.0.
22461 aix4 | aix4.[01] | aix4.[01].*)
22462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22464 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22467 can_build_shared=no
22471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22472 # soname into executable. Probably we can add versioning support to
22473 # collect2, so additional links can be useful in future.
22474 if test "$aix_use_runtimelinking" = yes; then
22475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22476 # instead of lib<name>.a to let people know that these are not
22477 # typical AIX shared libraries.
22478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22480 # We preserve .a as extension for shared libraries through AIX4.2
22481 # and later when we are not doing run time linking.
22482 library_names_spec='${libname}${release}.a $libname.a'
22483 soname_spec='${libname}${release}${shared_ext}$major'
22485 shlibpath_var=LIBPATH
22490 library_names_spec='$libname.ixlibrary $libname.a'
22491 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22492 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'
22496 library_names_spec='${libname}${shared_ext}'
22497 dynamic_linker="$host_os ld.so"
22498 shlibpath_var=LIBRARY_PATH
22504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22505 soname_spec='${libname}${release}${shared_ext}$major'
22506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22507 shlibpath_var=LD_LIBRARY_PATH
22508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22510 # the default ld.so.conf also contains /usr/contrib/lib and
22511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22512 # libtool to hard-code these into programs
22515 cygwin* | mingw* | pw32*)
22516 version_type=windows
22521 case $GCC,$host_os in
22522 yes,cygwin* | yes,mingw* | yes,pw32*)
22523 library_names_spec='$libname.dll.a'
22524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22525 postinstall_cmds='base_file=`basename \${file}`~
22526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22527 dldir=$destdir/`dirname \$dlpath`~
22528 test -d \$dldir || mkdir -p \$dldir~
22529 $install_prog $dir/$dlname \$dldir/$dlname'
22530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22531 dlpath=$dir/\$dldll~
22533 shlibpath_overrides_runpath=yes
22537 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22538 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22539 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22542 # MinGW DLLs use traditional 'lib' prefix
22543 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22544 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22545 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22546 # It is most probably a Windows format PATH printed by
22547 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22548 # path with ; separators, and with drive letters. We can handle the
22549 # drive letters (cygwin fileutils understands them), so leave them,
22550 # especially as we might pass files found there to a mingw objdump,
22551 # which wouldn't understand a cygwinified path. Ahh.
22552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22558 # pw32 DLLs use 'pw' prefix rather than 'lib'
22559 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22565 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22568 dynamic_linker='Win32 ld.exe'
22569 # FIXME: first we should search . and the directory the executable is in
22573 darwin* | rhapsody*)
22574 dynamic_linker="$host_os dyld"
22575 version_type=darwin
22578 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22579 soname_spec='${libname}${release}${major}$shared_ext'
22580 shlibpath_overrides_runpath=yes
22581 shlibpath_var=DYLD_LIBRARY_PATH
22582 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22583 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22584 if test "$GCC" = yes; then
22585 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"`
22587 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22589 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22597 soname_spec='${libname}${release}${shared_ext}$major'
22598 shlibpath_var=LD_LIBRARY_PATH
22609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22610 soname_spec='${libname}${release}${shared_ext}$major'
22611 shlibpath_var=LD_LIBRARY_PATH
22612 shlibpath_overrides_runpath=no
22613 hardcode_into_libs=yes
22614 dynamic_linker='GNU ld.so'
22618 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22619 version_type=freebsd-$objformat
22620 case $version_type in
22622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22631 shlibpath_var=LD_LIBRARY_PATH
22634 shlibpath_overrides_runpath=yes
22636 freebsd3.01* | freebsdelf3.01*)
22637 shlibpath_overrides_runpath=yes
22638 hardcode_into_libs=yes
22641 shlibpath_overrides_runpath=no
22642 hardcode_into_libs=yes
22651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22652 soname_spec='${libname}${release}${shared_ext}$major'
22653 shlibpath_var=LD_LIBRARY_PATH
22654 hardcode_into_libs=yes
22657 hpux9* | hpux10* | hpux11*)
22658 # Give a soname corresponding to the major version so that dld.sl refuses to
22659 # link against other versions.
22663 case "$host_cpu" in
22666 hardcode_into_libs=yes
22667 dynamic_linker="$host_os dld.so"
22668 shlibpath_var=LD_LIBRARY_PATH
22669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671 soname_spec='${libname}${release}${shared_ext}$major'
22672 if test "X$HPUX_IA64_MODE" = X32; then
22673 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22675 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22681 hardcode_into_libs=yes
22682 dynamic_linker="$host_os dld.sl"
22683 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686 soname_spec='${libname}${release}${shared_ext}$major'
22687 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22692 dynamic_linker="$host_os dld.sl"
22693 shlibpath_var=SHLIB_PATH
22694 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696 soname_spec='${libname}${release}${shared_ext}$major'
22699 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22700 postinstall_cmds='chmod 555 $lib'
22703 irix5* | irix6* | nonstopux*)
22705 nonstopux*) version_type=nonstopux ;;
22707 if test "$lt_cv_prog_gnu_ld" = yes; then
22715 soname_spec='${libname}${release}${shared_ext}$major'
22716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22718 irix5* | nonstopux*)
22719 libsuff= shlibsuff=
22722 case $LD in # libtool.m4 will add one of these switches to LD
22723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22724 libsuff= shlibsuff= libmagic=32-bit;;
22725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22726 libsuff=32 shlibsuff=N32 libmagic=N32;;
22727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22728 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22729 *) libsuff= shlibsuff= libmagic=never-match;;
22733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22734 shlibpath_overrides_runpath=no
22735 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22736 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22737 hardcode_into_libs=yes
22740 # No shared lib support for Linux oldld, aout, or coff.
22741 linux*oldld* | linux*aout* | linux*coff*)
22745 # This must be Linux ELF.
22750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22751 soname_spec='${libname}${release}${shared_ext}$major'
22752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22753 shlibpath_var=LD_LIBRARY_PATH
22754 shlibpath_overrides_runpath=no
22755 # This implies no fast_install, which is unacceptable.
22756 # Some rework will be needed to allow for fast_install
22757 # before this can be enabled.
22758 hardcode_into_libs=yes
22760 # Append ld.so.conf contents to the search path
22761 if test -f /etc/ld.so.conf; then
22762 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22763 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22766 # We used to test for /lib/ld.so.1 and disable shared libraries on
22767 # powerpc, because MkLinux only supported shared libraries with the
22768 # GNU dynamic linker. Since this was broken with cross compilers,
22769 # most powerpc-linux boxes support dynamic linking these days and
22770 # people can always --disable-shared, the test was removed, and we
22771 # assume the GNU/Linux dynamic linker is in use.
22772 dynamic_linker='GNU/Linux ld.so'
22779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22780 soname_spec='${libname}${release}${shared_ext}$major'
22781 shlibpath_var=LD_LIBRARY_PATH
22782 shlibpath_overrides_runpath=no
22783 hardcode_into_libs=yes
22784 dynamic_linker='GNU ld.so'
22791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22794 dynamic_linker='NetBSD (a.out) ld.so'
22796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22797 soname_spec='${libname}${release}${shared_ext}$major'
22798 dynamic_linker='NetBSD ld.elf_so'
22800 shlibpath_var=LD_LIBRARY_PATH
22801 shlibpath_overrides_runpath=yes
22802 hardcode_into_libs=yes
22807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22808 shlibpath_var=LD_LIBRARY_PATH
22809 shlibpath_overrides_runpath=yes
22816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22817 soname_spec='${libname}${release}${shared_ext}$major'
22818 shlibpath_var=LD_LIBRARY_PATH
22819 shlibpath_overrides_runpath=yes
22826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22828 shlibpath_var=LD_LIBRARY_PATH
22829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22831 openbsd2.[89] | openbsd2.[89].*)
22832 shlibpath_overrides_runpath=no
22835 shlibpath_overrides_runpath=yes
22839 shlibpath_overrides_runpath=yes
22844 libname_spec='$name'
22847 library_names_spec='$libname${shared_ext} $libname.a'
22848 dynamic_linker='OS/2 ld.exe'
22849 shlibpath_var=LIBPATH
22852 osf3* | osf4* | osf5*)
22856 soname_spec='${libname}${release}${shared_ext}$major'
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22858 shlibpath_var=LD_LIBRARY_PATH
22859 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22860 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22867 shlibpath_var=LD_LIBRARY_PATH
22874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875 soname_spec='${libname}${release}${shared_ext}$major'
22876 shlibpath_var=LD_LIBRARY_PATH
22877 shlibpath_overrides_runpath=yes
22878 hardcode_into_libs=yes
22879 # ldd complains unless libraries are executable
22880 postinstall_cmds='chmod +x $lib'
22885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22886 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22887 shlibpath_var=LD_LIBRARY_PATH
22888 shlibpath_overrides_runpath=yes
22889 if test "$with_gnu_ld" = yes; then
22895 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898 soname_spec='${libname}${release}${shared_ext}$major'
22899 shlibpath_var=LD_LIBRARY_PATH
22900 case $host_vendor in
22902 shlibpath_overrides_runpath=no
22904 export_dynamic_flag_spec='${wl}-Blargedynsym'
22905 runpath_var=LD_RUN_PATH
22913 shlibpath_overrides_runpath=no
22914 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22920 if test -d /usr/nec ;then
22922 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22923 soname_spec='$libname${shared_ext}.$major'
22924 shlibpath_var=LD_LIBRARY_PATH
22930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22931 soname_spec='${libname}${release}${shared_ext}$major'
22932 shlibpath_var=LD_LIBRARY_PATH
22939 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22940 echo "${ECHO_T}$dynamic_linker" >&6
22941 test "$dynamic_linker" = no && can_build_shared=no
22943 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22944 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22945 hardcode_action_GCJ=
22946 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22947 test -n "$runpath_var_GCJ" || \
22948 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22950 # We can hardcode non-existant directories.
22951 if test "$hardcode_direct_GCJ" != no &&
22952 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22953 # have to relink, otherwise we might link with an installed library
22954 # when we should be linking with a yet-to-be-installed one
22955 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22956 test "$hardcode_minus_L_GCJ" != no; then
22957 # Linking always hardcodes the temporary library directory.
22958 hardcode_action_GCJ=relink
22960 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22961 hardcode_action_GCJ=immediate
22964 # We cannot hardcode anything, or else we can only hardcode existing
22966 hardcode_action_GCJ=unsupported
22968 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22969 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22971 if test "$hardcode_action_GCJ" = relink; then
22972 # Fast installation is not supported
22973 enable_fast_install=no
22974 elif test "$shlibpath_overrides_runpath" = yes ||
22975 test "$enable_shared" = no; then
22976 # Fast installation is not necessary
22977 enable_fast_install=needless
22982 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22983 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22984 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22985 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22986 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22987 echo "$as_me:$LINENO: result: yes" >&5
22988 echo "${ECHO_T}yes" >&6
22990 # FIXME - insert some real tests, host_os isn't really good enough
22993 if test -n "$STRIP" ; then
22994 striplib="$STRIP -x"
22995 echo "$as_me:$LINENO: result: yes" >&5
22996 echo "${ECHO_T}yes" >&6
22998 echo "$as_me:$LINENO: result: no" >&5
22999 echo "${ECHO_T}no" >&6
23003 echo "$as_me:$LINENO: result: no" >&5
23004 echo "${ECHO_T}no" >&6
23009 if test "x$enable_dlopen" != xyes; then
23010 enable_dlopen=unknown
23011 enable_dlopen_self=unknown
23012 enable_dlopen_self_static=unknown
23019 lt_cv_dlopen="load_add_on"
23021 lt_cv_dlopen_self=yes
23025 lt_cv_dlopen="LoadLibrary"
23030 lt_cv_dlopen="dlopen"
23035 # if libdl is installed we need to link against it
23036 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 ac_check_lib_save_LIBS=$LIBS
23043 cat >conftest.$ac_ext <<_ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23050 /* Override any gcc2 internal prototype to avoid an error. */
23054 /* We use char because int might match the return type of a gcc2
23055 builtin and then its argument prototype would still apply. */
23065 rm -f conftest.$ac_objext conftest$ac_exeext
23066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23067 (eval $ac_link) 2>conftest.er1
23069 grep -v '^ *+' conftest.er1 >conftest.err
23071 cat conftest.err >&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
23074 { ac_try='test -z "$ac_c_werror_flag"
23075 || test ! -s conftest.err'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; } &&
23081 { ac_try='test -s conftest$ac_exeext'
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; }; then
23087 ac_cv_lib_dl_dlopen=yes
23089 echo "$as_me: failed program was:" >&5
23090 sed 's/^/| /' conftest.$ac_ext >&5
23092 ac_cv_lib_dl_dlopen=no
23094 rm -f conftest.err conftest.$ac_objext \
23095 conftest$ac_exeext conftest.$ac_ext
23096 LIBS=$ac_check_lib_save_LIBS
23098 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23099 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23100 if test $ac_cv_lib_dl_dlopen = yes; then
23101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23104 lt_cv_dlopen="dyld"
23106 lt_cv_dlopen_self=yes
23113 echo "$as_me:$LINENO: checking for shl_load" >&5
23114 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23115 if test "${ac_cv_func_shl_load+set}" = set; then
23116 echo $ECHO_N "(cached) $ECHO_C" >&6
23118 cat >conftest.$ac_ext <<_ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23124 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23126 #define shl_load innocuous_shl_load
23128 /* System header to define __stub macros and hopefully few prototypes,
23129 which can conflict with char shl_load (); below.
23130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23131 <limits.h> exists even on freestanding compilers. */
23134 # include <limits.h>
23136 # include <assert.h>
23141 /* Override any gcc2 internal prototype to avoid an error. */
23146 /* We use char because int might match the return type of a gcc2
23147 builtin and then its argument prototype would still apply. */
23149 /* The GNU C library defines this for functions which it implements
23150 to always fail with ENOSYS. Some functions are actually named
23151 something starting with __ and the normal name is an alias. */
23152 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23155 char (*f) () = shl_load;
23164 return f != shl_load;
23169 rm -f conftest.$ac_objext conftest$ac_exeext
23170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23171 (eval $ac_link) 2>conftest.er1
23173 grep -v '^ *+' conftest.er1 >conftest.err
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } &&
23178 { ac_try='test -z "$ac_c_werror_flag"
23179 || test ! -s conftest.err'
23180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181 (eval $ac_try) 2>&5
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); }; } &&
23185 { ac_try='test -s conftest$ac_exeext'
23186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187 (eval $ac_try) 2>&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); }; }; then
23191 ac_cv_func_shl_load=yes
23193 echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23196 ac_cv_func_shl_load=no
23198 rm -f conftest.err conftest.$ac_objext \
23199 conftest$ac_exeext conftest.$ac_ext
23201 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23202 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23203 if test $ac_cv_func_shl_load = yes; then
23204 lt_cv_dlopen="shl_load"
23206 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23207 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23208 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23209 echo $ECHO_N "(cached) $ECHO_C" >&6
23211 ac_check_lib_save_LIBS=$LIBS
23213 cat >conftest.$ac_ext <<_ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h. */
23220 /* Override any gcc2 internal prototype to avoid an error. */
23224 /* We use char because int might match the return type of a gcc2
23225 builtin and then its argument prototype would still apply. */
23235 rm -f conftest.$ac_objext conftest$ac_exeext
23236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23237 (eval $ac_link) 2>conftest.er1
23239 grep -v '^ *+' conftest.er1 >conftest.err
23241 cat conftest.err >&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); } &&
23244 { ac_try='test -z "$ac_c_werror_flag"
23245 || test ! -s conftest.err'
23246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247 (eval $ac_try) 2>&5
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); }; } &&
23251 { ac_try='test -s conftest$ac_exeext'
23252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23253 (eval $ac_try) 2>&5
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); }; }; then
23257 ac_cv_lib_dld_shl_load=yes
23259 echo "$as_me: failed program was:" >&5
23260 sed 's/^/| /' conftest.$ac_ext >&5
23262 ac_cv_lib_dld_shl_load=no
23264 rm -f conftest.err conftest.$ac_objext \
23265 conftest$ac_exeext conftest.$ac_ext
23266 LIBS=$ac_check_lib_save_LIBS
23268 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23269 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23270 if test $ac_cv_lib_dld_shl_load = yes; then
23271 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23273 echo "$as_me:$LINENO: checking for dlopen" >&5
23274 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23275 if test "${ac_cv_func_dlopen+set}" = set; then
23276 echo $ECHO_N "(cached) $ECHO_C" >&6
23278 cat >conftest.$ac_ext <<_ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h. */
23284 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23286 #define dlopen innocuous_dlopen
23288 /* System header to define __stub macros and hopefully few prototypes,
23289 which can conflict with char dlopen (); below.
23290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23291 <limits.h> exists even on freestanding compilers. */
23294 # include <limits.h>
23296 # include <assert.h>
23301 /* Override any gcc2 internal prototype to avoid an error. */
23306 /* We use char because int might match the return type of a gcc2
23307 builtin and then its argument prototype would still apply. */
23309 /* The GNU C library defines this for functions which it implements
23310 to always fail with ENOSYS. Some functions are actually named
23311 something starting with __ and the normal name is an alias. */
23312 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23315 char (*f) () = dlopen;
23324 return f != dlopen;
23329 rm -f conftest.$ac_objext conftest$ac_exeext
23330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23331 (eval $ac_link) 2>conftest.er1
23333 grep -v '^ *+' conftest.er1 >conftest.err
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } &&
23338 { ac_try='test -z "$ac_c_werror_flag"
23339 || test ! -s conftest.err'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; } &&
23345 { ac_try='test -s conftest$ac_exeext'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; }; then
23351 ac_cv_func_dlopen=yes
23353 echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23356 ac_cv_func_dlopen=no
23358 rm -f conftest.err conftest.$ac_objext \
23359 conftest$ac_exeext conftest.$ac_ext
23361 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23362 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23363 if test $ac_cv_func_dlopen = yes; then
23364 lt_cv_dlopen="dlopen"
23366 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23367 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23368 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 ac_check_lib_save_LIBS=$LIBS
23373 cat >conftest.$ac_ext <<_ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h. */
23380 /* Override any gcc2 internal prototype to avoid an error. */
23384 /* We use char because int might match the return type of a gcc2
23385 builtin and then its argument prototype would still apply. */
23395 rm -f conftest.$ac_objext conftest$ac_exeext
23396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23397 (eval $ac_link) 2>conftest.er1
23399 grep -v '^ *+' conftest.er1 >conftest.err
23401 cat conftest.err >&5
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } &&
23404 { ac_try='test -z "$ac_c_werror_flag"
23405 || test ! -s conftest.err'
23406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407 (eval $ac_try) 2>&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); }; } &&
23411 { ac_try='test -s conftest$ac_exeext'
23412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413 (eval $ac_try) 2>&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); }; }; then
23417 ac_cv_lib_dl_dlopen=yes
23419 echo "$as_me: failed program was:" >&5
23420 sed 's/^/| /' conftest.$ac_ext >&5
23422 ac_cv_lib_dl_dlopen=no
23424 rm -f conftest.err conftest.$ac_objext \
23425 conftest$ac_exeext conftest.$ac_ext
23426 LIBS=$ac_check_lib_save_LIBS
23428 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23429 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23430 if test $ac_cv_lib_dl_dlopen = yes; then
23431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23433 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23434 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23435 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 ac_check_lib_save_LIBS=$LIBS
23439 LIBS="-lsvld $LIBS"
23440 cat >conftest.$ac_ext <<_ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23447 /* Override any gcc2 internal prototype to avoid an error. */
23451 /* We use char because int might match the return type of a gcc2
23452 builtin and then its argument prototype would still apply. */
23462 rm -f conftest.$ac_objext conftest$ac_exeext
23463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23464 (eval $ac_link) 2>conftest.er1
23466 grep -v '^ *+' conftest.er1 >conftest.err
23468 cat conftest.err >&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } &&
23471 { ac_try='test -z "$ac_c_werror_flag"
23472 || test ! -s conftest.err'
23473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474 (eval $ac_try) 2>&5
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); }; } &&
23478 { ac_try='test -s conftest$ac_exeext'
23479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23480 (eval $ac_try) 2>&5
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); }; }; then
23484 ac_cv_lib_svld_dlopen=yes
23486 echo "$as_me: failed program was:" >&5
23487 sed 's/^/| /' conftest.$ac_ext >&5
23489 ac_cv_lib_svld_dlopen=no
23491 rm -f conftest.err conftest.$ac_objext \
23492 conftest$ac_exeext conftest.$ac_ext
23493 LIBS=$ac_check_lib_save_LIBS
23495 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23496 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23497 if test $ac_cv_lib_svld_dlopen = yes; then
23498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23500 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23501 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23502 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23503 echo $ECHO_N "(cached) $ECHO_C" >&6
23505 ac_check_lib_save_LIBS=$LIBS
23507 cat >conftest.$ac_ext <<_ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23514 /* Override any gcc2 internal prototype to avoid an error. */
23518 /* We use char because int might match the return type of a gcc2
23519 builtin and then its argument prototype would still apply. */
23529 rm -f conftest.$ac_objext conftest$ac_exeext
23530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23531 (eval $ac_link) 2>conftest.er1
23533 grep -v '^ *+' conftest.er1 >conftest.err
23535 cat conftest.err >&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); } &&
23538 { ac_try='test -z "$ac_c_werror_flag"
23539 || test ! -s conftest.err'
23540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541 (eval $ac_try) 2>&5
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); }; } &&
23545 { ac_try='test -s conftest$ac_exeext'
23546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547 (eval $ac_try) 2>&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); }; }; then
23551 ac_cv_lib_dld_dld_link=yes
23553 echo "$as_me: failed program was:" >&5
23554 sed 's/^/| /' conftest.$ac_ext >&5
23556 ac_cv_lib_dld_dld_link=no
23558 rm -f conftest.err conftest.$ac_objext \
23559 conftest$ac_exeext conftest.$ac_ext
23560 LIBS=$ac_check_lib_save_LIBS
23562 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23563 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23564 if test $ac_cv_lib_dld_dld_link = yes; then
23565 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23586 if test "x$lt_cv_dlopen" != xno; then
23592 case $lt_cv_dlopen in
23594 save_CPPFLAGS="$CPPFLAGS"
23595 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23597 save_LDFLAGS="$LDFLAGS"
23598 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23601 LIBS="$lt_cv_dlopen_libs $LIBS"
23603 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23604 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23605 if test "${lt_cv_dlopen_self+set}" = set; then
23606 echo $ECHO_N "(cached) $ECHO_C" >&6
23608 if test "$cross_compiling" = yes; then :
23609 lt_cv_dlopen_self=cross
23611 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23612 lt_status=$lt_dlunknown
23613 cat > conftest.$ac_ext <<EOF
23614 #line 23614 "configure"
23615 #include "confdefs.h"
23624 # define LT_DLGLOBAL RTLD_GLOBAL
23627 # define LT_DLGLOBAL DL_GLOBAL
23629 # define LT_DLGLOBAL 0
23633 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23634 find out it does not work in some platform. */
23635 #ifndef LT_DLLAZY_OR_NOW
23637 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23640 # define LT_DLLAZY_OR_NOW DL_LAZY
23643 # define LT_DLLAZY_OR_NOW RTLD_NOW
23646 # define LT_DLLAZY_OR_NOW DL_NOW
23648 # define LT_DLLAZY_OR_NOW 0
23656 extern "C" void exit (int);
23659 void fnord() { int i=42;}
23662 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23663 int status = $lt_dlunknown;
23667 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23668 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23669 /* dlclose (self); */
23675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23676 (eval $ac_link) 2>&5
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23680 (./conftest; exit; ) 2>/dev/null
23682 case x$lt_status in
23683 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23684 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23685 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23688 # compilation failed
23689 lt_cv_dlopen_self=no
23696 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23697 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23699 if test "x$lt_cv_dlopen_self" = xyes; then
23700 LDFLAGS="$LDFLAGS $link_static_flag"
23701 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23702 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23703 if test "${lt_cv_dlopen_self_static+set}" = set; then
23704 echo $ECHO_N "(cached) $ECHO_C" >&6
23706 if test "$cross_compiling" = yes; then :
23707 lt_cv_dlopen_self_static=cross
23709 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23710 lt_status=$lt_dlunknown
23711 cat > conftest.$ac_ext <<EOF
23712 #line 23712 "configure"
23713 #include "confdefs.h"
23722 # define LT_DLGLOBAL RTLD_GLOBAL
23725 # define LT_DLGLOBAL DL_GLOBAL
23727 # define LT_DLGLOBAL 0
23731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23732 find out it does not work in some platform. */
23733 #ifndef LT_DLLAZY_OR_NOW
23735 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23738 # define LT_DLLAZY_OR_NOW DL_LAZY
23741 # define LT_DLLAZY_OR_NOW RTLD_NOW
23744 # define LT_DLLAZY_OR_NOW DL_NOW
23746 # define LT_DLLAZY_OR_NOW 0
23754 extern "C" void exit (int);
23757 void fnord() { int i=42;}
23760 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23761 int status = $lt_dlunknown;
23765 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23766 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23767 /* dlclose (self); */
23773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23774 (eval $ac_link) 2>&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23778 (./conftest; exit; ) 2>/dev/null
23780 case x$lt_status in
23781 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23782 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23783 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23786 # compilation failed
23787 lt_cv_dlopen_self_static=no
23794 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23795 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23798 CPPFLAGS="$save_CPPFLAGS"
23799 LDFLAGS="$save_LDFLAGS"
23804 case $lt_cv_dlopen_self in
23805 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23806 *) enable_dlopen_self=unknown ;;
23809 case $lt_cv_dlopen_self_static in
23810 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23811 *) enable_dlopen_self_static=unknown ;;
23816 # The else clause should only fire when bootstrapping the
23817 # libtool distribution, otherwise you forgot to ship ltmain.sh
23818 # with your package, and you will get complaints that there are
23819 # no rules to generate ltmain.sh.
23820 if test -f "$ltmain"; then
23821 # See if we are running on zsh, and set the options which allow our commands through
23822 # without removal of \ escapes.
23823 if test -n "${ZSH_VERSION+set}" ; then
23824 setopt NO_GLOB_SUBST
23826 # Now quote all the things that may contain metacharacters while being
23827 # careful not to overquote the AC_SUBSTed values. We take copies of the
23828 # variables and quote the copies for generation of the libtool script.
23829 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23831 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23832 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23833 deplibs_check_method reload_flag reload_cmds need_locks \
23834 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23835 lt_cv_sys_global_symbol_to_c_name_address \
23836 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23837 old_postinstall_cmds old_postuninstall_cmds \
23841 lt_prog_compiler_wl_GCJ \
23842 lt_prog_compiler_pic_GCJ \
23843 lt_prog_compiler_static_GCJ \
23844 lt_prog_compiler_no_builtin_flag_GCJ \
23845 export_dynamic_flag_spec_GCJ \
23846 thread_safe_flag_spec_GCJ \
23847 whole_archive_flag_spec_GCJ \
23848 enable_shared_with_static_runtimes_GCJ \
23849 old_archive_cmds_GCJ \
23850 old_archive_from_new_cmds_GCJ \
23851 predep_objects_GCJ \
23852 postdep_objects_GCJ \
23855 compiler_lib_search_path_GCJ \
23857 archive_expsym_cmds_GCJ \
23858 postinstall_cmds_GCJ \
23859 postuninstall_cmds_GCJ \
23860 old_archive_from_expsyms_cmds_GCJ \
23861 allow_undefined_flag_GCJ \
23862 no_undefined_flag_GCJ \
23863 export_symbols_cmds_GCJ \
23864 hardcode_libdir_flag_spec_GCJ \
23865 hardcode_libdir_flag_spec_ld_GCJ \
23866 hardcode_libdir_separator_GCJ \
23867 hardcode_automatic_GCJ \
23869 module_expsym_cmds_GCJ \
23870 lt_cv_prog_compiler_c_o_GCJ \
23871 exclude_expsyms_GCJ \
23872 include_expsyms_GCJ; do
23875 old_archive_cmds_GCJ | \
23876 old_archive_from_new_cmds_GCJ | \
23877 archive_cmds_GCJ | \
23878 archive_expsym_cmds_GCJ | \
23879 module_cmds_GCJ | \
23880 module_expsym_cmds_GCJ | \
23881 old_archive_from_expsyms_cmds_GCJ | \
23882 export_symbols_cmds_GCJ | \
23883 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23884 postinstall_cmds | postuninstall_cmds | \
23885 old_postinstall_cmds | old_postuninstall_cmds | \
23886 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23887 # Double-quote double-evaled strings.
23888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23891 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23897 *'\$0 --fallback-echo"')
23898 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23904 cat <<__EOF__ >> "$cfgfile"
23905 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23909 # Shell to use when invoking shell scripts.
23912 # Whether or not to build shared libraries.
23913 build_libtool_libs=$enable_shared
23915 # Whether or not to build static libraries.
23916 build_old_libs=$enable_static
23918 # Whether or not to add -lc for building shared libraries.
23919 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23921 # Whether or not to disallow shared libs when runtime libs are static
23922 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23924 # Whether or not to optimize for fast installation.
23925 fast_install=$enable_fast_install
23928 host_alias=$host_alias
23931 # An echo program that does not interpret backslashes.
23936 AR_FLAGS=$lt_AR_FLAGS
23941 # A language-specific compiler.
23942 CC=$lt_compiler_GCJ
23944 # Is the compiler the GNU C compiler?
23950 # The linker used to build libraries.
23953 # Whether we need hard or soft links.
23956 # A BSD-compatible nm program.
23959 # A symbol stripping program
23962 # Used to examine libraries when file_magic_cmd begins "file"
23963 MAGIC_CMD=$MAGIC_CMD
23965 # Used on cygwin: DLL creation program.
23968 # Used on cygwin: object dumper.
23971 # Used on cygwin: assembler.
23974 # The name of the directory that contains temporary libtool files.
23977 # How to create reloadable object files.
23978 reload_flag=$lt_reload_flag
23979 reload_cmds=$lt_reload_cmds
23981 # How to pass a linker flag through the compiler.
23982 wl=$lt_lt_prog_compiler_wl_GCJ
23984 # Object file suffix (normally "o").
23985 objext="$ac_objext"
23987 # Old archive suffix (normally "a").
23990 # Shared library suffix (normally ".so").
23991 shrext_cmds='$shrext_cmds'
23993 # Executable file suffix (normally "").
23996 # Additional compiler flags for building library objects.
23997 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24000 # What is the maximum length of a command?
24001 max_cmd_len=$lt_cv_sys_max_cmd_len
24003 # Does compiler simultaneously support -c and -o options?
24004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24006 # Must we lock files when doing compilation ?
24007 need_locks=$lt_need_locks
24009 # Do we need the lib prefix for modules?
24010 need_lib_prefix=$need_lib_prefix
24012 # Do we need a version for libraries?
24013 need_version=$need_version
24015 # Whether dlopen is supported.
24016 dlopen_support=$enable_dlopen
24018 # Whether dlopen of programs is supported.
24019 dlopen_self=$enable_dlopen_self
24021 # Whether dlopen of statically linked programs is supported.
24022 dlopen_self_static=$enable_dlopen_self_static
24024 # Compiler flag to prevent dynamic linking.
24025 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24027 # Compiler flag to turn off builtin functions.
24028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24030 # Compiler flag to allow reflexive dlopens.
24031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24033 # Compiler flag to generate shared objects directly from archives.
24034 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24036 # Compiler flag to generate thread-safe objects.
24037 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24039 # Library versioning type.
24040 version_type=$version_type
24042 # Format of library name prefix.
24043 libname_spec=$lt_libname_spec
24045 # List of archive names. First name is the real one, the rest are links.
24046 # The last name is the one that the linker finds with -lNAME.
24047 library_names_spec=$lt_library_names_spec
24049 # The coded name of the library, if different from the real name.
24050 soname_spec=$lt_soname_spec
24052 # Commands used to build and install an old-style archive.
24054 old_archive_cmds=$lt_old_archive_cmds_GCJ
24055 old_postinstall_cmds=$lt_old_postinstall_cmds
24056 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24058 # Create an old-style archive from a shared archive.
24059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24061 # Create a temporary old-style archive to link instead of a shared archive.
24062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24064 # Commands used to build and install a shared archive.
24065 archive_cmds=$lt_archive_cmds_GCJ
24066 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24067 postinstall_cmds=$lt_postinstall_cmds
24068 postuninstall_cmds=$lt_postuninstall_cmds
24070 # Commands used to build a loadable module (assumed same as above if empty)
24071 module_cmds=$lt_module_cmds_GCJ
24072 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24074 # Commands to strip libraries.
24075 old_striplib=$lt_old_striplib
24076 striplib=$lt_striplib
24078 # Dependencies to place before the objects being linked to create a
24080 predep_objects=$lt_predep_objects_GCJ
24082 # Dependencies to place after the objects being linked to create a
24084 postdep_objects=$lt_postdep_objects_GCJ
24086 # Dependencies to place before the objects being linked to create a
24088 predeps=$lt_predeps_GCJ
24090 # Dependencies to place after the objects being linked to create a
24092 postdeps=$lt_postdeps_GCJ
24094 # The library search path used internally by the compiler when linking
24095 # a shared library.
24096 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24098 # Method to check whether dependent libraries are shared objects.
24099 deplibs_check_method=$lt_deplibs_check_method
24101 # Command to use when deplibs_check_method == file_magic.
24102 file_magic_cmd=$lt_file_magic_cmd
24104 # Flag that allows shared libraries with undefined symbols to be built.
24105 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24107 # Flag that forces no undefined symbols.
24108 no_undefined_flag=$lt_no_undefined_flag_GCJ
24110 # Commands used to finish a libtool library installation in a directory.
24111 finish_cmds=$lt_finish_cmds
24113 # Same as above, but a single script fragment to be evaled but not shown.
24114 finish_eval=$lt_finish_eval
24116 # Take the output of nm and produce a listing of raw symbols and C names.
24117 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24119 # Transform the output of nm in a proper C declaration
24120 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24122 # Transform the output of nm in a C name address pair
24123 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24125 # This is the shared library runtime path variable.
24126 runpath_var=$runpath_var
24128 # This is the shared library path variable.
24129 shlibpath_var=$shlibpath_var
24131 # Is shlibpath searched before the hard-coded library search path?
24132 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24134 # How to hardcode a shared library path into an executable.
24135 hardcode_action=$hardcode_action_GCJ
24137 # Whether we should hardcode library paths into libraries.
24138 hardcode_into_libs=$hardcode_into_libs
24140 # Flag to hardcode \$libdir into a binary during linking.
24141 # This must work even if \$libdir does not exist.
24142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24144 # If ld is used when linking, flag to hardcode \$libdir into
24145 # a binary during linking. This must work even if \$libdir does
24147 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24149 # Whether we need a single -rpath flag with a separated argument.
24150 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24152 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24153 # resulting binary.
24154 hardcode_direct=$hardcode_direct_GCJ
24156 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24157 # resulting binary.
24158 hardcode_minus_L=$hardcode_minus_L_GCJ
24160 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24161 # the resulting binary.
24162 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24164 # Set to yes if building a shared library automatically hardcodes DIR into the library
24165 # and all subsequent libraries and executables linked against it.
24166 hardcode_automatic=$hardcode_automatic_GCJ
24168 # Variables whose values should be saved in libtool wrapper scripts and
24169 # restored at relink time.
24170 variables_saved_for_relink="$variables_saved_for_relink"
24172 # Whether libtool must link a program against all its dependency libraries.
24173 link_all_deplibs=$link_all_deplibs_GCJ
24175 # Compile-time system search path for libraries
24176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24178 # Run-time system search path for libraries
24179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24181 # Fix the shell variable \$srcfile for the compiler.
24182 fix_srcfile_path="$fix_srcfile_path_GCJ"
24184 # Set to yes if exported symbols are required.
24185 always_export_symbols=$always_export_symbols_GCJ
24187 # The commands to list exported symbols.
24188 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24190 # The commands to extract the exported symbol list from a shared archive.
24191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24193 # Symbols that should not be listed in the preloaded symbols.
24194 exclude_expsyms=$lt_exclude_expsyms_GCJ
24196 # Symbols that must always be exported.
24197 include_expsyms=$lt_include_expsyms_GCJ
24199 # ### END LIBTOOL TAG CONFIG: $tagname
24205 # If there is no Makefile yet, we rely on a make rule to execute
24206 # `config.status --recheck' to rerun these tests and create the
24207 # libtool script then.
24208 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24209 if test -f "$ltmain_in"; then
24210 test -f Makefile && make "$ltmain"
24216 ac_cpp='$CPP $CPPFLAGS'
24217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24230 ac_cpp='$CPP $CPPFLAGS'
24231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24236 # Source file extension for RC test sources.
24239 # Object file extension for compiled RC test sources.
24243 # Code to be used in simple compile tests
24244 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24246 # Code to be used in simple link tests
24247 lt_simple_link_test_code="$lt_simple_compile_test_code"
24249 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24251 # If no C compiler was specified, use CC.
24254 # Allow CC to be a program name with arguments.
24258 # Allow CC to be a program name with arguments.
24263 lt_cv_prog_compiler_c_o_RC=yes
24265 # The else clause should only fire when bootstrapping the
24266 # libtool distribution, otherwise you forgot to ship ltmain.sh
24267 # with your package, and you will get complaints that there are
24268 # no rules to generate ltmain.sh.
24269 if test -f "$ltmain"; then
24270 # See if we are running on zsh, and set the options which allow our commands through
24271 # without removal of \ escapes.
24272 if test -n "${ZSH_VERSION+set}" ; then
24273 setopt NO_GLOB_SUBST
24275 # Now quote all the things that may contain metacharacters while being
24276 # careful not to overquote the AC_SUBSTed values. We take copies of the
24277 # variables and quote the copies for generation of the libtool script.
24278 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24280 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24281 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24282 deplibs_check_method reload_flag reload_cmds need_locks \
24283 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24284 lt_cv_sys_global_symbol_to_c_name_address \
24285 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24286 old_postinstall_cmds old_postuninstall_cmds \
24290 lt_prog_compiler_wl_RC \
24291 lt_prog_compiler_pic_RC \
24292 lt_prog_compiler_static_RC \
24293 lt_prog_compiler_no_builtin_flag_RC \
24294 export_dynamic_flag_spec_RC \
24295 thread_safe_flag_spec_RC \
24296 whole_archive_flag_spec_RC \
24297 enable_shared_with_static_runtimes_RC \
24298 old_archive_cmds_RC \
24299 old_archive_from_new_cmds_RC \
24300 predep_objects_RC \
24301 postdep_objects_RC \
24304 compiler_lib_search_path_RC \
24306 archive_expsym_cmds_RC \
24307 postinstall_cmds_RC \
24308 postuninstall_cmds_RC \
24309 old_archive_from_expsyms_cmds_RC \
24310 allow_undefined_flag_RC \
24311 no_undefined_flag_RC \
24312 export_symbols_cmds_RC \
24313 hardcode_libdir_flag_spec_RC \
24314 hardcode_libdir_flag_spec_ld_RC \
24315 hardcode_libdir_separator_RC \
24316 hardcode_automatic_RC \
24318 module_expsym_cmds_RC \
24319 lt_cv_prog_compiler_c_o_RC \
24320 exclude_expsyms_RC \
24321 include_expsyms_RC; do
24324 old_archive_cmds_RC | \
24325 old_archive_from_new_cmds_RC | \
24326 archive_cmds_RC | \
24327 archive_expsym_cmds_RC | \
24329 module_expsym_cmds_RC | \
24330 old_archive_from_expsyms_cmds_RC | \
24331 export_symbols_cmds_RC | \
24332 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24333 postinstall_cmds | postuninstall_cmds | \
24334 old_postinstall_cmds | old_postuninstall_cmds | \
24335 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24336 # Double-quote double-evaled strings.
24337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24340 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24346 *'\$0 --fallback-echo"')
24347 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24353 cat <<__EOF__ >> "$cfgfile"
24354 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24356 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24358 # Shell to use when invoking shell scripts.
24361 # Whether or not to build shared libraries.
24362 build_libtool_libs=$enable_shared
24364 # Whether or not to build static libraries.
24365 build_old_libs=$enable_static
24367 # Whether or not to add -lc for building shared libraries.
24368 build_libtool_need_lc=$archive_cmds_need_lc_RC
24370 # Whether or not to disallow shared libs when runtime libs are static
24371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24373 # Whether or not to optimize for fast installation.
24374 fast_install=$enable_fast_install
24377 host_alias=$host_alias
24380 # An echo program that does not interpret backslashes.
24385 AR_FLAGS=$lt_AR_FLAGS
24390 # A language-specific compiler.
24393 # Is the compiler the GNU C compiler?
24399 # The linker used to build libraries.
24402 # Whether we need hard or soft links.
24405 # A BSD-compatible nm program.
24408 # A symbol stripping program
24411 # Used to examine libraries when file_magic_cmd begins "file"
24412 MAGIC_CMD=$MAGIC_CMD
24414 # Used on cygwin: DLL creation program.
24417 # Used on cygwin: object dumper.
24420 # Used on cygwin: assembler.
24423 # The name of the directory that contains temporary libtool files.
24426 # How to create reloadable object files.
24427 reload_flag=$lt_reload_flag
24428 reload_cmds=$lt_reload_cmds
24430 # How to pass a linker flag through the compiler.
24431 wl=$lt_lt_prog_compiler_wl_RC
24433 # Object file suffix (normally "o").
24434 objext="$ac_objext"
24436 # Old archive suffix (normally "a").
24439 # Shared library suffix (normally ".so").
24440 shrext_cmds='$shrext_cmds'
24442 # Executable file suffix (normally "").
24445 # Additional compiler flags for building library objects.
24446 pic_flag=$lt_lt_prog_compiler_pic_RC
24449 # What is the maximum length of a command?
24450 max_cmd_len=$lt_cv_sys_max_cmd_len
24452 # Does compiler simultaneously support -c and -o options?
24453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24455 # Must we lock files when doing compilation ?
24456 need_locks=$lt_need_locks
24458 # Do we need the lib prefix for modules?
24459 need_lib_prefix=$need_lib_prefix
24461 # Do we need a version for libraries?
24462 need_version=$need_version
24464 # Whether dlopen is supported.
24465 dlopen_support=$enable_dlopen
24467 # Whether dlopen of programs is supported.
24468 dlopen_self=$enable_dlopen_self
24470 # Whether dlopen of statically linked programs is supported.
24471 dlopen_self_static=$enable_dlopen_self_static
24473 # Compiler flag to prevent dynamic linking.
24474 link_static_flag=$lt_lt_prog_compiler_static_RC
24476 # Compiler flag to turn off builtin functions.
24477 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24479 # Compiler flag to allow reflexive dlopens.
24480 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24482 # Compiler flag to generate shared objects directly from archives.
24483 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24485 # Compiler flag to generate thread-safe objects.
24486 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24488 # Library versioning type.
24489 version_type=$version_type
24491 # Format of library name prefix.
24492 libname_spec=$lt_libname_spec
24494 # List of archive names. First name is the real one, the rest are links.
24495 # The last name is the one that the linker finds with -lNAME.
24496 library_names_spec=$lt_library_names_spec
24498 # The coded name of the library, if different from the real name.
24499 soname_spec=$lt_soname_spec
24501 # Commands used to build and install an old-style archive.
24503 old_archive_cmds=$lt_old_archive_cmds_RC
24504 old_postinstall_cmds=$lt_old_postinstall_cmds
24505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24507 # Create an old-style archive from a shared archive.
24508 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24510 # Create a temporary old-style archive to link instead of a shared archive.
24511 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24513 # Commands used to build and install a shared archive.
24514 archive_cmds=$lt_archive_cmds_RC
24515 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24516 postinstall_cmds=$lt_postinstall_cmds
24517 postuninstall_cmds=$lt_postuninstall_cmds
24519 # Commands used to build a loadable module (assumed same as above if empty)
24520 module_cmds=$lt_module_cmds_RC
24521 module_expsym_cmds=$lt_module_expsym_cmds_RC
24523 # Commands to strip libraries.
24524 old_striplib=$lt_old_striplib
24525 striplib=$lt_striplib
24527 # Dependencies to place before the objects being linked to create a
24529 predep_objects=$lt_predep_objects_RC
24531 # Dependencies to place after the objects being linked to create a
24533 postdep_objects=$lt_postdep_objects_RC
24535 # Dependencies to place before the objects being linked to create a
24537 predeps=$lt_predeps_RC
24539 # Dependencies to place after the objects being linked to create a
24541 postdeps=$lt_postdeps_RC
24543 # The library search path used internally by the compiler when linking
24544 # a shared library.
24545 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24547 # Method to check whether dependent libraries are shared objects.
24548 deplibs_check_method=$lt_deplibs_check_method
24550 # Command to use when deplibs_check_method == file_magic.
24551 file_magic_cmd=$lt_file_magic_cmd
24553 # Flag that allows shared libraries with undefined symbols to be built.
24554 allow_undefined_flag=$lt_allow_undefined_flag_RC
24556 # Flag that forces no undefined symbols.
24557 no_undefined_flag=$lt_no_undefined_flag_RC
24559 # Commands used to finish a libtool library installation in a directory.
24560 finish_cmds=$lt_finish_cmds
24562 # Same as above, but a single script fragment to be evaled but not shown.
24563 finish_eval=$lt_finish_eval
24565 # Take the output of nm and produce a listing of raw symbols and C names.
24566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24568 # Transform the output of nm in a proper C declaration
24569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24571 # Transform the output of nm in a C name address pair
24572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24574 # This is the shared library runtime path variable.
24575 runpath_var=$runpath_var
24577 # This is the shared library path variable.
24578 shlibpath_var=$shlibpath_var
24580 # Is shlibpath searched before the hard-coded library search path?
24581 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24583 # How to hardcode a shared library path into an executable.
24584 hardcode_action=$hardcode_action_RC
24586 # Whether we should hardcode library paths into libraries.
24587 hardcode_into_libs=$hardcode_into_libs
24589 # Flag to hardcode \$libdir into a binary during linking.
24590 # This must work even if \$libdir does not exist.
24591 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24593 # If ld is used when linking, flag to hardcode \$libdir into
24594 # a binary during linking. This must work even if \$libdir does
24596 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24598 # Whether we need a single -rpath flag with a separated argument.
24599 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24601 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24602 # resulting binary.
24603 hardcode_direct=$hardcode_direct_RC
24605 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24606 # resulting binary.
24607 hardcode_minus_L=$hardcode_minus_L_RC
24609 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24610 # the resulting binary.
24611 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24613 # Set to yes if building a shared library automatically hardcodes DIR into the library
24614 # and all subsequent libraries and executables linked against it.
24615 hardcode_automatic=$hardcode_automatic_RC
24617 # Variables whose values should be saved in libtool wrapper scripts and
24618 # restored at relink time.
24619 variables_saved_for_relink="$variables_saved_for_relink"
24621 # Whether libtool must link a program against all its dependency libraries.
24622 link_all_deplibs=$link_all_deplibs_RC
24624 # Compile-time system search path for libraries
24625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24627 # Run-time system search path for libraries
24628 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24630 # Fix the shell variable \$srcfile for the compiler.
24631 fix_srcfile_path="$fix_srcfile_path_RC"
24633 # Set to yes if exported symbols are required.
24634 always_export_symbols=$always_export_symbols_RC
24636 # The commands to list exported symbols.
24637 export_symbols_cmds=$lt_export_symbols_cmds_RC
24639 # The commands to extract the exported symbol list from a shared archive.
24640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24642 # Symbols that should not be listed in the preloaded symbols.
24643 exclude_expsyms=$lt_exclude_expsyms_RC
24645 # Symbols that must always be exported.
24646 include_expsyms=$lt_include_expsyms_RC
24648 # ### END LIBTOOL TAG CONFIG: $tagname
24654 # If there is no Makefile yet, we rely on a make rule to execute
24655 # `config.status --recheck' to rerun these tests and create the
24656 # libtool script then.
24657 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24658 if test -f "$ltmain_in"; then
24659 test -f Makefile && make "$ltmain"
24665 ac_cpp='$CPP $CPPFLAGS'
24666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24675 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24676 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24677 { (exit 1); exit 1; }; }
24681 # Append the new tag name to the list of available tags.
24682 if test -n "$tagname" ; then
24683 available_tags="$available_tags $tagname"
24689 # Now substitute the updated list of available tags.
24690 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24691 mv "${ofile}T" "$ofile"
24695 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24696 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24697 { (exit 1); exit 1; }; }
24703 # This can be used to rebuild libtool when needed
24704 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24706 # Always use our own libtool.
24707 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24709 # Prevent multiple expansion
24731 if test "$lt_cv_dlopen_self" = "yes" ; then
24733 cat >>confdefs.h <<\_ACEOF
24734 #define CAN_DLOPEN_SELF 1
24739 etags_version=`$ETAGS --version 2>&1`
24740 case "$etags_version" in
24741 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24742 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24743 *) ETAGSFLAGS="" ;;
24745 ETAGSFLAGS=$ETAGSFLAGS
24748 if test "$WITH_LLVMGCCDIR" = "default" ; then
24749 LLVMGCC="llvm-gcc${EXEEXT}"
24750 LLVMGXX="llvm-g++${EXEEXT}"
24751 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24752 set dummy $LLVMGCC; ac_word=$2
24753 echo "$as_me:$LINENO: checking for $ac_word" >&5
24754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24755 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24760 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24764 for as_dir in $PATH
24767 test -z "$as_dir" && as_dir=.
24768 for ac_exec_ext in '' $ac_executable_extensions; do
24769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24770 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24780 LLVMGCC=$ac_cv_path_LLVMGCC
24782 if test -n "$LLVMGCC"; then
24783 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24784 echo "${ECHO_T}$LLVMGCC" >&6
24786 echo "$as_me:$LINENO: result: no" >&5
24787 echo "${ECHO_T}no" >&6
24790 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24791 set dummy $LLVMGXX; ac_word=$2
24792 echo "$as_me:$LINENO: checking for $ac_word" >&5
24793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24794 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24795 echo $ECHO_N "(cached) $ECHO_C" >&6
24799 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24803 for as_dir in $PATH
24806 test -z "$as_dir" && as_dir=.
24807 for ac_exec_ext in '' $ac_executable_extensions; do
24808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24809 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24819 LLVMGXX=$ac_cv_path_LLVMGXX
24821 if test -n "$LLVMGXX"; then
24822 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24823 echo "${ECHO_T}$LLVMGXX" >&6
24825 echo "$as_me:$LINENO: result: no" >&5
24826 echo "${ECHO_T}no" >&6
24830 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24831 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24838 echo "$as_me:$LINENO: checking tool compatibility" >&5
24839 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24852 if test "$GCC" != "yes" && test "$ICC" != "yes"
24854 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24855 echo "$as_me: error: gcc|icc required but not found" >&2;}
24856 { (exit 1); exit 1; }; }
24859 if test "$GXX" != "yes" && test "$IXX" != "yes"
24861 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24862 echo "$as_me: error: g++|icc required but not found" >&2;}
24863 { (exit 1); exit 1; }; }
24866 if test "$GCC" = "yes"
24868 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24869 if test "$gccmajor" -lt "3"
24871 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24872 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24873 { (exit 1); exit 1; }; }
24877 if test -z "$llvm_cv_gnu_make_command"
24879 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24880 echo "$as_me: error: GNU Make required but not found" >&2;}
24881 { (exit 1); exit 1; }; }
24884 echo "$as_me:$LINENO: result: ok" >&5
24885 echo "${ECHO_T}ok" >&6
24889 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24890 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24891 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24894 ac_check_lib_save_LIBS=$LIBS
24896 cat >conftest.$ac_ext <<_ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h. */
24903 /* Override any gcc2 internal prototype to avoid an error. */
24907 /* We use char because int might match the return type of a gcc2
24908 builtin and then its argument prototype would still apply. */
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920 (eval $ac_link) 2>conftest.er1
24922 grep -v '^ *+' conftest.er1 >conftest.err
24924 cat conftest.err >&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } &&
24927 { ac_try='test -z "$ac_c_werror_flag"
24928 || test ! -s conftest.err'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; } &&
24934 { ac_try='test -s conftest$ac_exeext'
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; }; then
24940 ac_cv_lib_elf_elf_begin=yes
24942 echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24945 ac_cv_lib_elf_elf_begin=no
24947 rm -f conftest.err conftest.$ac_objext \
24948 conftest$ac_exeext conftest.$ac_ext
24949 LIBS=$ac_check_lib_save_LIBS
24951 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24952 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24953 if test $ac_cv_lib_elf_elf_begin = yes; then
24954 cat >>confdefs.h <<_ACEOF
24955 #define HAVE_LIBELF 1
24964 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24965 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24966 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24967 echo $ECHO_N "(cached) $ECHO_C" >&6
24969 ac_func_search_save_LIBS=$LIBS
24970 ac_cv_search_lt_dlopen=no
24971 cat >conftest.$ac_ext <<_ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h. */
24978 /* Override any gcc2 internal prototype to avoid an error. */
24982 /* We use char because int might match the return type of a gcc2
24983 builtin and then its argument prototype would still apply. */
24993 rm -f conftest.$ac_objext conftest$ac_exeext
24994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24995 (eval $ac_link) 2>conftest.er1
24997 grep -v '^ *+' conftest.er1 >conftest.err
24999 cat conftest.err >&5
25000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); } &&
25002 { ac_try='test -z "$ac_c_werror_flag"
25003 || test ! -s conftest.err'
25004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005 (eval $ac_try) 2>&5
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; } &&
25009 { ac_try='test -s conftest$ac_exeext'
25010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011 (eval $ac_try) 2>&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; }; then
25015 ac_cv_search_lt_dlopen="none required"
25017 echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25021 rm -f conftest.err conftest.$ac_objext \
25022 conftest$ac_exeext conftest.$ac_ext
25023 if test "$ac_cv_search_lt_dlopen" = no; then
25024 for ac_lib in ltdl; do
25025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25026 cat >conftest.$ac_ext <<_ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25033 /* Override any gcc2 internal prototype to avoid an error. */
25037 /* We use char because int might match the return type of a gcc2
25038 builtin and then its argument prototype would still apply. */
25048 rm -f conftest.$ac_objext conftest$ac_exeext
25049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25050 (eval $ac_link) 2>conftest.er1
25052 grep -v '^ *+' conftest.er1 >conftest.err
25054 cat conftest.err >&5
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); } &&
25057 { ac_try='test -z "$ac_c_werror_flag"
25058 || test ! -s conftest.err'
25059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060 (eval $ac_try) 2>&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); }; } &&
25064 { ac_try='test -s conftest$ac_exeext'
25065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066 (eval $ac_try) 2>&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); }; }; then
25070 ac_cv_search_lt_dlopen="-l$ac_lib"
25073 echo "$as_me: failed program was:" >&5
25074 sed 's/^/| /' conftest.$ac_ext >&5
25077 rm -f conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
25081 LIBS=$ac_func_search_save_LIBS
25083 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25084 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25085 if test "$ac_cv_search_lt_dlopen" != no; then
25086 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_LT_DLOPEN 1
25093 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25094 not be available" >&5
25095 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25096 not be available" >&2;}
25100 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25101 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25102 if test "${ac_cv_search_dlopen+set}" = set; then
25103 echo $ECHO_N "(cached) $ECHO_C" >&6
25105 ac_func_search_save_LIBS=$LIBS
25106 ac_cv_search_dlopen=no
25107 cat >conftest.$ac_ext <<_ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h. */
25114 /* Override any gcc2 internal prototype to avoid an error. */
25118 /* We use char because int might match the return type of a gcc2
25119 builtin and then its argument prototype would still apply. */
25129 rm -f conftest.$ac_objext conftest$ac_exeext
25130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25131 (eval $ac_link) 2>conftest.er1
25133 grep -v '^ *+' conftest.er1 >conftest.err
25135 cat conftest.err >&5
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); } &&
25138 { ac_try='test -z "$ac_c_werror_flag"
25139 || test ! -s conftest.err'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; } &&
25145 { ac_try='test -s conftest$ac_exeext'
25146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147 (eval $ac_try) 2>&5
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); }; }; then
25151 ac_cv_search_dlopen="none required"
25153 echo "$as_me: failed program was:" >&5
25154 sed 's/^/| /' conftest.$ac_ext >&5
25157 rm -f conftest.err conftest.$ac_objext \
25158 conftest$ac_exeext conftest.$ac_ext
25159 if test "$ac_cv_search_dlopen" = no; then
25160 for ac_lib in dl; do
25161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25162 cat >conftest.$ac_ext <<_ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25169 /* Override any gcc2 internal prototype to avoid an error. */
25173 /* We use char because int might match the return type of a gcc2
25174 builtin and then its argument prototype would still apply. */
25184 rm -f conftest.$ac_objext conftest$ac_exeext
25185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25186 (eval $ac_link) 2>conftest.er1
25188 grep -v '^ *+' conftest.er1 >conftest.err
25190 cat conftest.err >&5
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); } &&
25193 { ac_try='test -z "$ac_c_werror_flag"
25194 || test ! -s conftest.err'
25195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196 (eval $ac_try) 2>&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; } &&
25200 { ac_try='test -s conftest$ac_exeext'
25201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202 (eval $ac_try) 2>&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; }; then
25206 ac_cv_search_dlopen="-l$ac_lib"
25209 echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25213 rm -f conftest.err conftest.$ac_objext \
25214 conftest$ac_exeext conftest.$ac_ext
25217 LIBS=$ac_func_search_save_LIBS
25219 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25220 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25221 if test "$ac_cv_search_dlopen" != no; then
25222 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25224 cat >>confdefs.h <<\_ACEOF
25225 #define HAVE_DLOPEN 1
25229 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25230 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25234 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25235 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25236 if test "${ac_cv_search_mallinfo+set}" = set; then
25237 echo $ECHO_N "(cached) $ECHO_C" >&6
25239 ac_func_search_save_LIBS=$LIBS
25240 ac_cv_search_mallinfo=no
25241 cat >conftest.$ac_ext <<_ACEOF
25244 cat confdefs.h >>conftest.$ac_ext
25245 cat >>conftest.$ac_ext <<_ACEOF
25246 /* end confdefs.h. */
25248 /* Override any gcc2 internal prototype to avoid an error. */
25252 /* We use char because int might match the return type of a gcc2
25253 builtin and then its argument prototype would still apply. */
25263 rm -f conftest.$ac_objext conftest$ac_exeext
25264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25265 (eval $ac_link) 2>conftest.er1
25267 grep -v '^ *+' conftest.er1 >conftest.err
25269 cat conftest.err >&5
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); } &&
25272 { ac_try='test -z "$ac_c_werror_flag"
25273 || test ! -s conftest.err'
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; } &&
25279 { ac_try='test -s conftest$ac_exeext'
25280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281 (eval $ac_try) 2>&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); }; }; then
25285 ac_cv_search_mallinfo="none required"
25287 echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25291 rm -f conftest.err conftest.$ac_objext \
25292 conftest$ac_exeext conftest.$ac_ext
25293 if test "$ac_cv_search_mallinfo" = no; then
25294 for ac_lib in malloc; do
25295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25296 cat >conftest.$ac_ext <<_ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25303 /* Override any gcc2 internal prototype to avoid an error. */
25307 /* We use char because int might match the return type of a gcc2
25308 builtin and then its argument prototype would still apply. */
25318 rm -f conftest.$ac_objext conftest$ac_exeext
25319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25320 (eval $ac_link) 2>conftest.er1
25322 grep -v '^ *+' conftest.er1 >conftest.err
25324 cat conftest.err >&5
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } &&
25327 { ac_try='test -z "$ac_c_werror_flag"
25328 || test ! -s conftest.err'
25329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330 (eval $ac_try) 2>&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); }; } &&
25334 { ac_try='test -s conftest$ac_exeext'
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; }; then
25340 ac_cv_search_mallinfo="-l$ac_lib"
25343 echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25347 rm -f conftest.err conftest.$ac_objext \
25348 conftest$ac_exeext conftest.$ac_ext
25351 LIBS=$ac_func_search_save_LIBS
25353 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25354 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25355 if test "$ac_cv_search_mallinfo" != no; then
25356 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25358 cat >>confdefs.h <<\_ACEOF
25359 #define HAVE_MALLINFO 1
25365 if test "$ENABLE_THREADS" -eq 1 ; then
25367 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25368 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25369 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25370 echo $ECHO_N "(cached) $ECHO_C" >&6
25372 ac_check_lib_save_LIBS=$LIBS
25373 LIBS="-lpthread $LIBS"
25374 cat >conftest.$ac_ext <<_ACEOF
25377 cat confdefs.h >>conftest.$ac_ext
25378 cat >>conftest.$ac_ext <<_ACEOF
25379 /* end confdefs.h. */
25381 /* Override any gcc2 internal prototype to avoid an error. */
25385 /* We use char because int might match the return type of a gcc2
25386 builtin and then its argument prototype would still apply. */
25387 char pthread_mutex_init ();
25391 pthread_mutex_init ();
25396 rm -f conftest.$ac_objext conftest$ac_exeext
25397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25398 (eval $ac_link) 2>conftest.er1
25400 grep -v '^ *+' conftest.er1 >conftest.err
25402 cat conftest.err >&5
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); } &&
25405 { ac_try='test -z "$ac_c_werror_flag"
25406 || test ! -s conftest.err'
25407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408 (eval $ac_try) 2>&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); }; } &&
25412 { ac_try='test -s conftest$ac_exeext'
25413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414 (eval $ac_try) 2>&5
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); }; }; then
25418 ac_cv_lib_pthread_pthread_mutex_init=yes
25420 echo "$as_me: failed program was:" >&5
25421 sed 's/^/| /' conftest.$ac_ext >&5
25423 ac_cv_lib_pthread_pthread_mutex_init=no
25425 rm -f conftest.err conftest.$ac_objext \
25426 conftest$ac_exeext conftest.$ac_ext
25427 LIBS=$ac_check_lib_save_LIBS
25429 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25430 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25431 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25432 cat >>confdefs.h <<_ACEOF
25433 #define HAVE_LIBPTHREAD 1
25436 LIBS="-lpthread $LIBS"
25440 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25441 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25442 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25443 echo $ECHO_N "(cached) $ECHO_C" >&6
25445 ac_func_search_save_LIBS=$LIBS
25446 ac_cv_search_pthread_mutex_lock=no
25447 cat >conftest.$ac_ext <<_ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25454 /* Override any gcc2 internal prototype to avoid an error. */
25458 /* We use char because int might match the return type of a gcc2
25459 builtin and then its argument prototype would still apply. */
25460 char pthread_mutex_lock ();
25464 pthread_mutex_lock ();
25469 rm -f conftest.$ac_objext conftest$ac_exeext
25470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25471 (eval $ac_link) 2>conftest.er1
25473 grep -v '^ *+' conftest.er1 >conftest.err
25475 cat conftest.err >&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } &&
25478 { ac_try='test -z "$ac_c_werror_flag"
25479 || test ! -s conftest.err'
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; } &&
25485 { ac_try='test -s conftest$ac_exeext'
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; }; then
25491 ac_cv_search_pthread_mutex_lock="none required"
25493 echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25497 rm -f conftest.err conftest.$ac_objext \
25498 conftest$ac_exeext conftest.$ac_ext
25499 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25500 for ac_lib in pthread; do
25501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25502 cat >conftest.$ac_ext <<_ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h. */
25509 /* Override any gcc2 internal prototype to avoid an error. */
25513 /* We use char because int might match the return type of a gcc2
25514 builtin and then its argument prototype would still apply. */
25515 char pthread_mutex_lock ();
25519 pthread_mutex_lock ();
25524 rm -f conftest.$ac_objext conftest$ac_exeext
25525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25526 (eval $ac_link) 2>conftest.er1
25528 grep -v '^ *+' conftest.er1 >conftest.err
25530 cat conftest.err >&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } &&
25533 { ac_try='test -z "$ac_c_werror_flag"
25534 || test ! -s conftest.err'
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; } &&
25540 { ac_try='test -s conftest$ac_exeext'
25541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542 (eval $ac_try) 2>&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25549 echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25553 rm -f conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
25557 LIBS=$ac_func_search_save_LIBS
25559 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25560 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25561 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25562 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25564 cat >>confdefs.h <<\_ACEOF
25565 #define HAVE_PTHREAD_MUTEX_LOCK 1
25578 ac_header_dirent=no
25579 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25580 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25581 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25582 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25584 echo $ECHO_N "(cached) $ECHO_C" >&6
25586 cat >conftest.$ac_ext <<_ACEOF
25589 cat confdefs.h >>conftest.$ac_ext
25590 cat >>conftest.$ac_ext <<_ACEOF
25591 /* end confdefs.h. */
25592 #include <sys/types.h>
25604 rm -f conftest.$ac_objext
25605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25606 (eval $ac_compile) 2>conftest.er1
25608 grep -v '^ *+' conftest.er1 >conftest.err
25610 cat conftest.err >&5
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); } &&
25613 { ac_try='test -z "$ac_c_werror_flag"
25614 || test ! -s conftest.err'
25615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616 (eval $ac_try) 2>&5
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); }; } &&
25620 { ac_try='test -s conftest.$ac_objext'
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; }; then
25626 eval "$as_ac_Header=yes"
25628 echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25631 eval "$as_ac_Header=no"
25633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25638 cat >>confdefs.h <<_ACEOF
25639 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25642 ac_header_dirent=$ac_hdr; break
25646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25647 if test $ac_header_dirent = dirent.h; then
25648 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25650 if test "${ac_cv_search_opendir+set}" = set; then
25651 echo $ECHO_N "(cached) $ECHO_C" >&6
25653 ac_func_search_save_LIBS=$LIBS
25654 ac_cv_search_opendir=no
25655 cat >conftest.$ac_ext <<_ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h. */
25662 /* Override any gcc2 internal prototype to avoid an error. */
25666 /* We use char because int might match the return type of a gcc2
25667 builtin and then its argument prototype would still apply. */
25677 rm -f conftest.$ac_objext conftest$ac_exeext
25678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25679 (eval $ac_link) 2>conftest.er1
25681 grep -v '^ *+' conftest.er1 >conftest.err
25683 cat conftest.err >&5
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } &&
25686 { ac_try='test -z "$ac_c_werror_flag"
25687 || test ! -s conftest.err'
25688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689 (eval $ac_try) 2>&5
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); }; } &&
25693 { ac_try='test -s conftest$ac_exeext'
25694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25695 (eval $ac_try) 2>&5
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); }; }; then
25699 ac_cv_search_opendir="none required"
25701 echo "$as_me: failed program was:" >&5
25702 sed 's/^/| /' conftest.$ac_ext >&5
25705 rm -f conftest.err conftest.$ac_objext \
25706 conftest$ac_exeext conftest.$ac_ext
25707 if test "$ac_cv_search_opendir" = no; then
25708 for ac_lib in dir; do
25709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25710 cat >conftest.$ac_ext <<_ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h. */
25717 /* Override any gcc2 internal prototype to avoid an error. */
25721 /* We use char because int might match the return type of a gcc2
25722 builtin and then its argument prototype would still apply. */
25732 rm -f conftest.$ac_objext conftest$ac_exeext
25733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25734 (eval $ac_link) 2>conftest.er1
25736 grep -v '^ *+' conftest.er1 >conftest.err
25738 cat conftest.err >&5
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); } &&
25741 { ac_try='test -z "$ac_c_werror_flag"
25742 || test ! -s conftest.err'
25743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744 (eval $ac_try) 2>&5
25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); }; } &&
25748 { ac_try='test -s conftest$ac_exeext'
25749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25750 (eval $ac_try) 2>&5
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); }; }; then
25754 ac_cv_search_opendir="-l$ac_lib"
25757 echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25761 rm -f conftest.err conftest.$ac_objext \
25762 conftest$ac_exeext conftest.$ac_ext
25765 LIBS=$ac_func_search_save_LIBS
25767 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25768 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25769 if test "$ac_cv_search_opendir" != no; then
25770 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25775 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25777 if test "${ac_cv_search_opendir+set}" = set; then
25778 echo $ECHO_N "(cached) $ECHO_C" >&6
25780 ac_func_search_save_LIBS=$LIBS
25781 ac_cv_search_opendir=no
25782 cat >conftest.$ac_ext <<_ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h. */
25789 /* Override any gcc2 internal prototype to avoid an error. */
25793 /* We use char because int might match the return type of a gcc2
25794 builtin and then its argument prototype would still apply. */
25804 rm -f conftest.$ac_objext conftest$ac_exeext
25805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25806 (eval $ac_link) 2>conftest.er1
25808 grep -v '^ *+' conftest.er1 >conftest.err
25810 cat conftest.err >&5
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); } &&
25813 { ac_try='test -z "$ac_c_werror_flag"
25814 || test ! -s conftest.err'
25815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816 (eval $ac_try) 2>&5
25818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819 (exit $ac_status); }; } &&
25820 { ac_try='test -s conftest$ac_exeext'
25821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25822 (eval $ac_try) 2>&5
25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 (exit $ac_status); }; }; then
25826 ac_cv_search_opendir="none required"
25828 echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25832 rm -f conftest.err conftest.$ac_objext \
25833 conftest$ac_exeext conftest.$ac_ext
25834 if test "$ac_cv_search_opendir" = no; then
25835 for ac_lib in x; do
25836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25837 cat >conftest.$ac_ext <<_ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h. */
25844 /* Override any gcc2 internal prototype to avoid an error. */
25848 /* We use char because int might match the return type of a gcc2
25849 builtin and then its argument prototype would still apply. */
25859 rm -f conftest.$ac_objext conftest$ac_exeext
25860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25861 (eval $ac_link) 2>conftest.er1
25863 grep -v '^ *+' conftest.er1 >conftest.err
25865 cat conftest.err >&5
25866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867 (exit $ac_status); } &&
25868 { ac_try='test -z "$ac_c_werror_flag"
25869 || test ! -s conftest.err'
25870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871 (eval $ac_try) 2>&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; } &&
25875 { ac_try='test -s conftest$ac_exeext'
25876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877 (eval $ac_try) 2>&5
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); }; }; then
25881 ac_cv_search_opendir="-l$ac_lib"
25884 echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25888 rm -f conftest.err conftest.$ac_objext \
25889 conftest$ac_exeext conftest.$ac_ext
25892 LIBS=$ac_func_search_save_LIBS
25894 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25895 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25896 if test "$ac_cv_search_opendir" != no; then
25897 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25903 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25904 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25905 if test "${ac_cv_header_mmap_anon+set}" = set; then
25906 echo $ECHO_N "(cached) $ECHO_C" >&6
25909 ac_cpp='$CPP $CPPFLAGS'
25910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25914 cat >conftest.$ac_ext <<_ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h. */
25920 #include <sys/mman.h>
25921 #include <unistd.h>
25926 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25931 rm -f conftest.$ac_objext
25932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25933 (eval $ac_compile) 2>conftest.er1
25935 grep -v '^ *+' conftest.er1 >conftest.err
25937 cat conftest.err >&5
25938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); } &&
25940 { ac_try='test -z "$ac_c_werror_flag"
25941 || test ! -s conftest.err'
25942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25943 (eval $ac_try) 2>&5
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); }; } &&
25947 { ac_try='test -s conftest.$ac_objext'
25948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25949 (eval $ac_try) 2>&5
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); }; }; then
25953 ac_cv_header_mmap_anon=yes
25955 echo "$as_me: failed program was:" >&5
25956 sed 's/^/| /' conftest.$ac_ext >&5
25958 ac_cv_header_mmap_anon=no
25960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25962 ac_cpp='$CPP $CPPFLAGS'
25963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25969 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25970 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25971 if test "$ac_cv_header_mmap_anon" = yes; then
25973 cat >>confdefs.h <<\_ACEOF
25974 #define HAVE_MMAP_ANONYMOUS 1
25979 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25980 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25981 if test "${ac_cv_header_stat_broken+set}" = set; then
25982 echo $ECHO_N "(cached) $ECHO_C" >&6
25984 cat >conftest.$ac_ext <<_ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h. */
25990 #include <sys/types.h>
25991 #include <sys/stat.h>
25993 #if defined(S_ISBLK) && defined(S_IFDIR)
25994 # if S_ISBLK (S_IFDIR)
25999 #if defined(S_ISBLK) && defined(S_IFCHR)
26000 # if S_ISBLK (S_IFCHR)
26005 #if defined(S_ISLNK) && defined(S_IFREG)
26006 # if S_ISLNK (S_IFREG)
26011 #if defined(S_ISSOCK) && defined(S_IFREG)
26012 # if S_ISSOCK (S_IFREG)
26018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26019 $EGREP "You lose" >/dev/null 2>&1; then
26020 ac_cv_header_stat_broken=yes
26022 ac_cv_header_stat_broken=no
26027 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26028 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26029 if test $ac_cv_header_stat_broken = yes; then
26031 cat >>confdefs.h <<\_ACEOF
26032 #define STAT_MACROS_BROKEN 1
26037 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26038 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26039 if test "${ac_cv_header_stdc+set}" = set; then
26040 echo $ECHO_N "(cached) $ECHO_C" >&6
26042 cat >conftest.$ac_ext <<_ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h. */
26048 #include <stdlib.h>
26049 #include <stdarg.h>
26050 #include <string.h>
26061 rm -f conftest.$ac_objext
26062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26063 (eval $ac_compile) 2>conftest.er1
26065 grep -v '^ *+' conftest.er1 >conftest.err
26067 cat conftest.err >&5
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } &&
26070 { ac_try='test -z "$ac_c_werror_flag"
26071 || test ! -s conftest.err'
26072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26073 (eval $ac_try) 2>&5
26075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076 (exit $ac_status); }; } &&
26077 { ac_try='test -s conftest.$ac_objext'
26078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26079 (eval $ac_try) 2>&5
26081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082 (exit $ac_status); }; }; then
26083 ac_cv_header_stdc=yes
26085 echo "$as_me: failed program was:" >&5
26086 sed 's/^/| /' conftest.$ac_ext >&5
26088 ac_cv_header_stdc=no
26090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26092 if test $ac_cv_header_stdc = yes; then
26093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26094 cat >conftest.$ac_ext <<_ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h. */
26100 #include <string.h>
26103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26104 $EGREP "memchr" >/dev/null 2>&1; then
26107 ac_cv_header_stdc=no
26113 if test $ac_cv_header_stdc = yes; then
26114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26115 cat >conftest.$ac_ext <<_ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26121 #include <stdlib.h>
26124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26125 $EGREP "free" >/dev/null 2>&1; then
26128 ac_cv_header_stdc=no
26134 if test $ac_cv_header_stdc = yes; then
26135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26136 if test "$cross_compiling" = yes; then
26139 cat >conftest.$ac_ext <<_ACEOF
26142 cat confdefs.h >>conftest.$ac_ext
26143 cat >>conftest.$ac_ext <<_ACEOF
26144 /* end confdefs.h. */
26146 #if ((' ' & 0x0FF) == 0x020)
26147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26150 # define ISLOWER(c) \
26151 (('a' <= (c) && (c) <= 'i') \
26152 || ('j' <= (c) && (c) <= 'r') \
26153 || ('s' <= (c) && (c) <= 'z'))
26154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26162 for (i = 0; i < 256; i++)
26163 if (XOR (islower (i), ISLOWER (i))
26164 || toupper (i) != TOUPPER (i))
26169 rm -f conftest$ac_exeext
26170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26171 (eval $ac_link) 2>&5
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176 (eval $ac_try) 2>&5
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); }; }; then
26182 echo "$as_me: program exited with status $ac_status" >&5
26183 echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26186 ( exit $ac_status )
26187 ac_cv_header_stdc=no
26189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26193 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26194 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26195 if test $ac_cv_header_stdc = yes; then
26197 cat >>confdefs.h <<\_ACEOF
26198 #define STDC_HEADERS 1
26203 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26204 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26205 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26206 echo $ECHO_N "(cached) $ECHO_C" >&6
26208 cat >conftest.$ac_ext <<_ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h. */
26214 #include <sys/types.h>
26215 #include <sys/wait.h>
26216 #ifndef WEXITSTATUS
26217 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26220 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26228 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26233 rm -f conftest.$ac_objext
26234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26235 (eval $ac_compile) 2>conftest.er1
26237 grep -v '^ *+' conftest.er1 >conftest.err
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } &&
26242 { ac_try='test -z "$ac_c_werror_flag"
26243 || test ! -s conftest.err'
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; } &&
26249 { ac_try='test -s conftest.$ac_objext'
26250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; }; then
26255 ac_cv_header_sys_wait_h=yes
26257 echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26260 ac_cv_header_sys_wait_h=no
26262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26264 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26265 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26266 if test $ac_cv_header_sys_wait_h = yes; then
26268 cat >>confdefs.h <<\_ACEOF
26269 #define HAVE_SYS_WAIT_H 1
26274 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26275 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26276 if test "${ac_cv_header_time+set}" = set; then
26277 echo $ECHO_N "(cached) $ECHO_C" >&6
26279 cat >conftest.$ac_ext <<_ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h. */
26285 #include <sys/types.h>
26286 #include <sys/time.h>
26292 if ((struct tm *) 0)
26298 rm -f conftest.$ac_objext
26299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26300 (eval $ac_compile) 2>conftest.er1
26302 grep -v '^ *+' conftest.er1 >conftest.err
26304 cat conftest.err >&5
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } &&
26307 { ac_try='test -z "$ac_c_werror_flag"
26308 || test ! -s conftest.err'
26309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26310 (eval $ac_try) 2>&5
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); }; } &&
26314 { ac_try='test -s conftest.$ac_objext'
26315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316 (eval $ac_try) 2>&5
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); }; }; then
26320 ac_cv_header_time=yes
26322 echo "$as_me: failed program was:" >&5
26323 sed 's/^/| /' conftest.$ac_ext >&5
26325 ac_cv_header_time=no
26327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26329 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26330 echo "${ECHO_T}$ac_cv_header_time" >&6
26331 if test $ac_cv_header_time = yes; then
26333 cat >>confdefs.h <<\_ACEOF
26334 #define TIME_WITH_SYS_TIME 1
26346 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26350 echo "$as_me:$LINENO: checking for $ac_header" >&5
26351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26353 echo $ECHO_N "(cached) $ECHO_C" >&6
26355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26358 # Is the header compilable?
26359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26361 cat >conftest.$ac_ext <<_ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h. */
26367 $ac_includes_default
26368 #include <$ac_header>
26370 rm -f conftest.$ac_objext
26371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26372 (eval $ac_compile) 2>conftest.er1
26374 grep -v '^ *+' conftest.er1 >conftest.err
26376 cat conftest.err >&5
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); } &&
26379 { ac_try='test -z "$ac_c_werror_flag"
26380 || test ! -s conftest.err'
26381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26382 (eval $ac_try) 2>&5
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); }; } &&
26386 { ac_try='test -s conftest.$ac_objext'
26387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26388 (eval $ac_try) 2>&5
26390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391 (exit $ac_status); }; }; then
26392 ac_header_compiler=yes
26394 echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.$ac_ext >&5
26397 ac_header_compiler=no
26399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26401 echo "${ECHO_T}$ac_header_compiler" >&6
26403 # Is the header present?
26404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26406 cat >conftest.$ac_ext <<_ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h. */
26412 #include <$ac_header>
26414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26417 grep -v '^ *+' conftest.er1 >conftest.err
26419 cat conftest.err >&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } >/dev/null; then
26422 if test -s conftest.err; then
26423 ac_cpp_err=$ac_c_preproc_warn_flag
26424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26431 if test -z "$ac_cpp_err"; then
26432 ac_header_preproc=yes
26434 echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26437 ac_header_preproc=no
26439 rm -f conftest.err conftest.$ac_ext
26440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26441 echo "${ECHO_T}$ac_header_preproc" >&6
26443 # So? What about this header?
26444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26450 ac_header_preproc=yes
26453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26467 ## ----------------------------------- ##
26468 ## Report this to llvmbugs@cs.uiuc.edu ##
26469 ## ----------------------------------- ##
26472 sed "s/^/$as_me: WARNING: /" >&2
26475 echo "$as_me:$LINENO: checking for $ac_header" >&5
26476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26478 echo $ECHO_N "(cached) $ECHO_C" >&6
26480 eval "$as_ac_Header=\$ac_header_preproc"
26482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26487 cat >>confdefs.h <<_ACEOF
26488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26501 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26505 echo "$as_me:$LINENO: checking for $ac_header" >&5
26506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26508 echo $ECHO_N "(cached) $ECHO_C" >&6
26510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26513 # Is the header compilable?
26514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26516 cat >conftest.$ac_ext <<_ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h. */
26522 $ac_includes_default
26523 #include <$ac_header>
26525 rm -f conftest.$ac_objext
26526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26527 (eval $ac_compile) 2>conftest.er1
26529 grep -v '^ *+' conftest.er1 >conftest.err
26531 cat conftest.err >&5
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); } &&
26534 { ac_try='test -z "$ac_c_werror_flag"
26535 || test ! -s conftest.err'
26536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537 (eval $ac_try) 2>&5
26539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); }; } &&
26541 { ac_try='test -s conftest.$ac_objext'
26542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543 (eval $ac_try) 2>&5
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; }; then
26547 ac_header_compiler=yes
26549 echo "$as_me: failed program was:" >&5
26550 sed 's/^/| /' conftest.$ac_ext >&5
26552 ac_header_compiler=no
26554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26556 echo "${ECHO_T}$ac_header_compiler" >&6
26558 # Is the header present?
26559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26561 cat >conftest.$ac_ext <<_ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h. */
26567 #include <$ac_header>
26569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26572 grep -v '^ *+' conftest.er1 >conftest.err
26574 cat conftest.err >&5
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); } >/dev/null; then
26577 if test -s conftest.err; then
26578 ac_cpp_err=$ac_c_preproc_warn_flag
26579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26586 if test -z "$ac_cpp_err"; then
26587 ac_header_preproc=yes
26589 echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26592 ac_header_preproc=no
26594 rm -f conftest.err conftest.$ac_ext
26595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26596 echo "${ECHO_T}$ac_header_preproc" >&6
26598 # So? What about this header?
26599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26605 ac_header_preproc=yes
26608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26622 ## ----------------------------------- ##
26623 ## Report this to llvmbugs@cs.uiuc.edu ##
26624 ## ----------------------------------- ##
26627 sed "s/^/$as_me: WARNING: /" >&2
26630 echo "$as_me:$LINENO: checking for $ac_header" >&5
26631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26635 eval "$as_ac_Header=\$ac_header_preproc"
26637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26642 cat >>confdefs.h <<_ACEOF
26643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26655 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26659 echo "$as_me:$LINENO: checking for $ac_header" >&5
26660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26662 echo $ECHO_N "(cached) $ECHO_C" >&6
26664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26667 # Is the header compilable?
26668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26670 cat >conftest.$ac_ext <<_ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h. */
26676 $ac_includes_default
26677 #include <$ac_header>
26679 rm -f conftest.$ac_objext
26680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26681 (eval $ac_compile) 2>conftest.er1
26683 grep -v '^ *+' conftest.er1 >conftest.err
26685 cat conftest.err >&5
26686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); } &&
26688 { ac_try='test -z "$ac_c_werror_flag"
26689 || test ! -s conftest.err'
26690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; } &&
26695 { ac_try='test -s conftest.$ac_objext'
26696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697 (eval $ac_try) 2>&5
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; }; then
26701 ac_header_compiler=yes
26703 echo "$as_me: failed program was:" >&5
26704 sed 's/^/| /' conftest.$ac_ext >&5
26706 ac_header_compiler=no
26708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26710 echo "${ECHO_T}$ac_header_compiler" >&6
26712 # Is the header present?
26713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26715 cat >conftest.$ac_ext <<_ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h. */
26721 #include <$ac_header>
26723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26726 grep -v '^ *+' conftest.er1 >conftest.err
26728 cat conftest.err >&5
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); } >/dev/null; then
26731 if test -s conftest.err; then
26732 ac_cpp_err=$ac_c_preproc_warn_flag
26733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26740 if test -z "$ac_cpp_err"; then
26741 ac_header_preproc=yes
26743 echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26746 ac_header_preproc=no
26748 rm -f conftest.err conftest.$ac_ext
26749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26750 echo "${ECHO_T}$ac_header_preproc" >&6
26752 # So? What about this header?
26753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26759 ac_header_preproc=yes
26762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26776 ## ----------------------------------- ##
26777 ## Report this to llvmbugs@cs.uiuc.edu ##
26778 ## ----------------------------------- ##
26781 sed "s/^/$as_me: WARNING: /" >&2
26784 echo "$as_me:$LINENO: checking for $ac_header" >&5
26785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26787 echo $ECHO_N "(cached) $ECHO_C" >&6
26789 eval "$as_ac_Header=\$ac_header_preproc"
26791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26796 cat >>confdefs.h <<_ACEOF
26797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26806 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26810 echo "$as_me:$LINENO: checking for $ac_header" >&5
26811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26813 echo $ECHO_N "(cached) $ECHO_C" >&6
26815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26818 # Is the header compilable?
26819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26821 cat >conftest.$ac_ext <<_ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h. */
26827 $ac_includes_default
26828 #include <$ac_header>
26830 rm -f conftest.$ac_objext
26831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26832 (eval $ac_compile) 2>conftest.er1
26834 grep -v '^ *+' conftest.er1 >conftest.err
26836 cat conftest.err >&5
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); } &&
26839 { ac_try='test -z "$ac_c_werror_flag"
26840 || test ! -s conftest.err'
26841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842 (eval $ac_try) 2>&5
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); }; } &&
26846 { ac_try='test -s conftest.$ac_objext'
26847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848 (eval $ac_try) 2>&5
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); }; }; then
26852 ac_header_compiler=yes
26854 echo "$as_me: failed program was:" >&5
26855 sed 's/^/| /' conftest.$ac_ext >&5
26857 ac_header_compiler=no
26859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26861 echo "${ECHO_T}$ac_header_compiler" >&6
26863 # Is the header present?
26864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26866 cat >conftest.$ac_ext <<_ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26872 #include <$ac_header>
26874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26877 grep -v '^ *+' conftest.er1 >conftest.err
26879 cat conftest.err >&5
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); } >/dev/null; then
26882 if test -s conftest.err; then
26883 ac_cpp_err=$ac_c_preproc_warn_flag
26884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26891 if test -z "$ac_cpp_err"; then
26892 ac_header_preproc=yes
26894 echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.$ac_ext >&5
26897 ac_header_preproc=no
26899 rm -f conftest.err conftest.$ac_ext
26900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26901 echo "${ECHO_T}$ac_header_preproc" >&6
26903 # So? What about this header?
26904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26910 ac_header_preproc=yes
26913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26927 ## ----------------------------------- ##
26928 ## Report this to llvmbugs@cs.uiuc.edu ##
26929 ## ----------------------------------- ##
26932 sed "s/^/$as_me: WARNING: /" >&2
26935 echo "$as_me:$LINENO: checking for $ac_header" >&5
26936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26938 echo $ECHO_N "(cached) $ECHO_C" >&6
26940 eval "$as_ac_Header=\$ac_header_preproc"
26942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26947 cat >>confdefs.h <<_ACEOF
26948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26955 if test "$ENABLE_THREADS" -eq 1 ; then
26957 for ac_header in pthread.h
26959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26961 echo "$as_me:$LINENO: checking for $ac_header" >&5
26962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26964 echo $ECHO_N "(cached) $ECHO_C" >&6
26966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26969 # Is the header compilable?
26970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26972 cat >conftest.$ac_ext <<_ACEOF
26975 cat confdefs.h >>conftest.$ac_ext
26976 cat >>conftest.$ac_ext <<_ACEOF
26977 /* end confdefs.h. */
26978 $ac_includes_default
26979 #include <$ac_header>
26981 rm -f conftest.$ac_objext
26982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26983 (eval $ac_compile) 2>conftest.er1
26985 grep -v '^ *+' conftest.er1 >conftest.err
26987 cat conftest.err >&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); } &&
26990 { ac_try='test -z "$ac_c_werror_flag"
26991 || test ! -s conftest.err'
26992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26993 (eval $ac_try) 2>&5
26995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996 (exit $ac_status); }; } &&
26997 { ac_try='test -s conftest.$ac_objext'
26998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999 (eval $ac_try) 2>&5
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; }; then
27003 ac_header_compiler=yes
27005 echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27008 ac_header_compiler=no
27010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27012 echo "${ECHO_T}$ac_header_compiler" >&6
27014 # Is the header present?
27015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27017 cat >conftest.$ac_ext <<_ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h. */
27023 #include <$ac_header>
27025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27028 grep -v '^ *+' conftest.er1 >conftest.err
27030 cat conftest.err >&5
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); } >/dev/null; then
27033 if test -s conftest.err; then
27034 ac_cpp_err=$ac_c_preproc_warn_flag
27035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27042 if test -z "$ac_cpp_err"; then
27043 ac_header_preproc=yes
27045 echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27048 ac_header_preproc=no
27050 rm -f conftest.err conftest.$ac_ext
27051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27052 echo "${ECHO_T}$ac_header_preproc" >&6
27054 # So? What about this header?
27055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27061 ac_header_preproc=yes
27064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27078 ## ----------------------------------- ##
27079 ## Report this to llvmbugs@cs.uiuc.edu ##
27080 ## ----------------------------------- ##
27083 sed "s/^/$as_me: WARNING: /" >&2
27086 echo "$as_me:$LINENO: checking for $ac_header" >&5
27087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27091 eval "$as_ac_Header=\$ac_header_preproc"
27093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27098 cat >>confdefs.h <<_ACEOF
27099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27109 echo "$as_me:$LINENO: checking for pid_t" >&5
27110 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27111 if test "${ac_cv_type_pid_t+set}" = set; then
27112 echo $ECHO_N "(cached) $ECHO_C" >&6
27114 cat >conftest.$ac_ext <<_ACEOF
27117 cat confdefs.h >>conftest.$ac_ext
27118 cat >>conftest.$ac_ext <<_ACEOF
27119 /* end confdefs.h. */
27120 $ac_includes_default
27126 if (sizeof (pid_t))
27132 rm -f conftest.$ac_objext
27133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27134 (eval $ac_compile) 2>conftest.er1
27136 grep -v '^ *+' conftest.er1 >conftest.err
27138 cat conftest.err >&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); } &&
27141 { ac_try='test -z "$ac_c_werror_flag"
27142 || test ! -s conftest.err'
27143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27144 (eval $ac_try) 2>&5
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; } &&
27148 { ac_try='test -s conftest.$ac_objext'
27149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150 (eval $ac_try) 2>&5
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); }; }; then
27154 ac_cv_type_pid_t=yes
27156 echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27159 ac_cv_type_pid_t=no
27161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27163 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27164 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27165 if test $ac_cv_type_pid_t = yes; then
27169 cat >>confdefs.h <<_ACEOF
27175 echo "$as_me:$LINENO: checking for size_t" >&5
27176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27177 if test "${ac_cv_type_size_t+set}" = set; then
27178 echo $ECHO_N "(cached) $ECHO_C" >&6
27180 cat >conftest.$ac_ext <<_ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h. */
27186 $ac_includes_default
27192 if (sizeof (size_t))
27198 rm -f conftest.$ac_objext
27199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27200 (eval $ac_compile) 2>conftest.er1
27202 grep -v '^ *+' conftest.er1 >conftest.err
27204 cat conftest.err >&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); } &&
27207 { ac_try='test -z "$ac_c_werror_flag"
27208 || test ! -s conftest.err'
27209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210 (eval $ac_try) 2>&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); }; } &&
27214 { ac_try='test -s conftest.$ac_objext'
27215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27216 (eval $ac_try) 2>&5
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); }; }; then
27220 ac_cv_type_size_t=yes
27222 echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27225 ac_cv_type_size_t=no
27227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27229 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27230 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27231 if test $ac_cv_type_size_t = yes; then
27235 cat >>confdefs.h <<_ACEOF
27236 #define size_t unsigned
27241 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27242 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27243 if test "${ac_cv_type_signal+set}" = set; then
27244 echo $ECHO_N "(cached) $ECHO_C" >&6
27246 cat >conftest.$ac_ext <<_ACEOF
27249 cat confdefs.h >>conftest.$ac_ext
27250 cat >>conftest.$ac_ext <<_ACEOF
27251 /* end confdefs.h. */
27252 #include <sys/types.h>
27253 #include <signal.h>
27258 extern "C" void (*signal (int, void (*)(int)))(int);
27260 void (*signal ()) ();
27271 rm -f conftest.$ac_objext
27272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27273 (eval $ac_compile) 2>conftest.er1
27275 grep -v '^ *+' conftest.er1 >conftest.err
27277 cat conftest.err >&5
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); } &&
27280 { ac_try='test -z "$ac_c_werror_flag"
27281 || test ! -s conftest.err'
27282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283 (eval $ac_try) 2>&5
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; } &&
27287 { ac_try='test -s conftest.$ac_objext'
27288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289 (eval $ac_try) 2>&5
27291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292 (exit $ac_status); }; }; then
27293 ac_cv_type_signal=void
27295 echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27298 ac_cv_type_signal=int
27300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27302 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27303 echo "${ECHO_T}$ac_cv_type_signal" >&6
27305 cat >>confdefs.h <<_ACEOF
27306 #define RETSIGTYPE $ac_cv_type_signal
27310 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27311 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27312 if test "${ac_cv_struct_tm+set}" = set; then
27313 echo $ECHO_N "(cached) $ECHO_C" >&6
27315 cat >conftest.$ac_ext <<_ACEOF
27318 cat confdefs.h >>conftest.$ac_ext
27319 cat >>conftest.$ac_ext <<_ACEOF
27320 /* end confdefs.h. */
27321 #include <sys/types.h>
27327 struct tm *tp; tp->tm_sec;
27332 rm -f conftest.$ac_objext
27333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27334 (eval $ac_compile) 2>conftest.er1
27336 grep -v '^ *+' conftest.er1 >conftest.err
27338 cat conftest.err >&5
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); } &&
27341 { ac_try='test -z "$ac_c_werror_flag"
27342 || test ! -s conftest.err'
27343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27344 (eval $ac_try) 2>&5
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); }; } &&
27348 { ac_try='test -s conftest.$ac_objext'
27349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350 (eval $ac_try) 2>&5
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); }; }; then
27354 ac_cv_struct_tm=time.h
27356 echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27359 ac_cv_struct_tm=sys/time.h
27361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27363 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27364 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27365 if test $ac_cv_struct_tm = sys/time.h; then
27367 cat >>confdefs.h <<\_ACEOF
27368 #define TM_IN_SYS_TIME 1
27373 echo "$as_me:$LINENO: checking for int64_t" >&5
27374 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27375 if test "${ac_cv_type_int64_t+set}" = set; then
27376 echo $ECHO_N "(cached) $ECHO_C" >&6
27378 cat >conftest.$ac_ext <<_ACEOF
27381 cat confdefs.h >>conftest.$ac_ext
27382 cat >>conftest.$ac_ext <<_ACEOF
27383 /* end confdefs.h. */
27384 $ac_includes_default
27390 if (sizeof (int64_t))
27396 rm -f conftest.$ac_objext
27397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27398 (eval $ac_compile) 2>conftest.er1
27400 grep -v '^ *+' conftest.er1 >conftest.err
27402 cat conftest.err >&5
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); } &&
27405 { ac_try='test -z "$ac_c_werror_flag"
27406 || test ! -s conftest.err'
27407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408 (eval $ac_try) 2>&5
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); }; } &&
27412 { ac_try='test -s conftest.$ac_objext'
27413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27414 (eval $ac_try) 2>&5
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; }; then
27418 ac_cv_type_int64_t=yes
27420 echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27423 ac_cv_type_int64_t=no
27425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27427 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27428 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27429 if test $ac_cv_type_int64_t = yes; then
27431 cat >>confdefs.h <<_ACEOF
27432 #define HAVE_INT64_T 1
27437 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27438 echo "$as_me: error: Type int64_t required but not found" >&2;}
27439 { (exit 1); exit 1; }; }
27442 echo "$as_me:$LINENO: checking for uint64_t" >&5
27443 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27444 if test "${ac_cv_type_uint64_t+set}" = set; then
27445 echo $ECHO_N "(cached) $ECHO_C" >&6
27447 cat >conftest.$ac_ext <<_ACEOF
27450 cat confdefs.h >>conftest.$ac_ext
27451 cat >>conftest.$ac_ext <<_ACEOF
27452 /* end confdefs.h. */
27453 $ac_includes_default
27457 if ((uint64_t *) 0)
27459 if (sizeof (uint64_t))
27465 rm -f conftest.$ac_objext
27466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27467 (eval $ac_compile) 2>conftest.er1
27469 grep -v '^ *+' conftest.er1 >conftest.err
27471 cat conftest.err >&5
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); } &&
27474 { ac_try='test -z "$ac_c_werror_flag"
27475 || test ! -s conftest.err'
27476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27477 (eval $ac_try) 2>&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest.$ac_objext'
27482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27483 (eval $ac_try) 2>&5
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); }; }; then
27487 ac_cv_type_uint64_t=yes
27489 echo "$as_me: failed program was:" >&5
27490 sed 's/^/| /' conftest.$ac_ext >&5
27492 ac_cv_type_uint64_t=no
27494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27496 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27497 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27498 if test $ac_cv_type_uint64_t = yes; then
27500 cat >>confdefs.h <<_ACEOF
27501 #define HAVE_UINT64_T 1
27506 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27507 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27508 if test "${ac_cv_type_u_int64_t+set}" = set; then
27509 echo $ECHO_N "(cached) $ECHO_C" >&6
27511 cat >conftest.$ac_ext <<_ACEOF
27514 cat confdefs.h >>conftest.$ac_ext
27515 cat >>conftest.$ac_ext <<_ACEOF
27516 /* end confdefs.h. */
27517 $ac_includes_default
27521 if ((u_int64_t *) 0)
27523 if (sizeof (u_int64_t))
27529 rm -f conftest.$ac_objext
27530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27531 (eval $ac_compile) 2>conftest.er1
27533 grep -v '^ *+' conftest.er1 >conftest.err
27535 cat conftest.err >&5
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); } &&
27538 { ac_try='test -z "$ac_c_werror_flag"
27539 || test ! -s conftest.err'
27540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27541 (eval $ac_try) 2>&5
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); }; } &&
27545 { ac_try='test -s conftest.$ac_objext'
27546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547 (eval $ac_try) 2>&5
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; }; then
27551 ac_cv_type_u_int64_t=yes
27553 echo "$as_me: failed program was:" >&5
27554 sed 's/^/| /' conftest.$ac_ext >&5
27556 ac_cv_type_u_int64_t=no
27558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27560 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27561 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27562 if test $ac_cv_type_u_int64_t = yes; then
27564 cat >>confdefs.h <<_ACEOF
27565 #define HAVE_U_INT64_T 1
27570 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27571 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27572 { (exit 1); exit 1; }; }
27584 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27587 echo "$as_me:$LINENO: checking for $ac_func" >&5
27588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27589 if eval "test \"\${$as_ac_var+set}\" = set"; then
27590 echo $ECHO_N "(cached) $ECHO_C" >&6
27592 cat >conftest.$ac_ext <<_ACEOF
27595 cat confdefs.h >>conftest.$ac_ext
27596 cat >>conftest.$ac_ext <<_ACEOF
27597 /* end confdefs.h. */
27598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27600 #define $ac_func innocuous_$ac_func
27602 /* System header to define __stub macros and hopefully few prototypes,
27603 which can conflict with char $ac_func (); below.
27604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27605 <limits.h> exists even on freestanding compilers. */
27608 # include <limits.h>
27610 # include <assert.h>
27615 /* Override any gcc2 internal prototype to avoid an error. */
27620 /* We use char because int might match the return type of a gcc2
27621 builtin and then its argument prototype would still apply. */
27623 /* The GNU C library defines this for functions which it implements
27624 to always fail with ENOSYS. Some functions are actually named
27625 something starting with __ and the normal name is an alias. */
27626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27629 char (*f) () = $ac_func;
27638 return f != $ac_func;
27643 rm -f conftest.$ac_objext conftest$ac_exeext
27644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27645 (eval $ac_link) 2>conftest.er1
27647 grep -v '^ *+' conftest.er1 >conftest.err
27649 cat conftest.err >&5
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); } &&
27652 { ac_try='test -z "$ac_c_werror_flag"
27653 || test ! -s conftest.err'
27654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27655 (eval $ac_try) 2>&5
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); }; } &&
27659 { ac_try='test -s conftest$ac_exeext'
27660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661 (eval $ac_try) 2>&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; }; then
27665 eval "$as_ac_var=yes"
27667 echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27670 eval "$as_ac_var=no"
27672 rm -f conftest.err conftest.$ac_objext \
27673 conftest$ac_exeext conftest.$ac_ext
27675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27677 if test `eval echo '${'$as_ac_var'}'` = yes; then
27678 cat >>confdefs.h <<_ACEOF
27679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27689 for ac_func in isatty mkdtemp mkstemp mktemp
27691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27692 echo "$as_me:$LINENO: checking for $ac_func" >&5
27693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27694 if eval "test \"\${$as_ac_var+set}\" = set"; then
27695 echo $ECHO_N "(cached) $ECHO_C" >&6
27697 cat >conftest.$ac_ext <<_ACEOF
27700 cat confdefs.h >>conftest.$ac_ext
27701 cat >>conftest.$ac_ext <<_ACEOF
27702 /* end confdefs.h. */
27703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27705 #define $ac_func innocuous_$ac_func
27707 /* System header to define __stub macros and hopefully few prototypes,
27708 which can conflict with char $ac_func (); below.
27709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27710 <limits.h> exists even on freestanding compilers. */
27713 # include <limits.h>
27715 # include <assert.h>
27720 /* Override any gcc2 internal prototype to avoid an error. */
27725 /* We use char because int might match the return type of a gcc2
27726 builtin and then its argument prototype would still apply. */
27728 /* The GNU C library defines this for functions which it implements
27729 to always fail with ENOSYS. Some functions are actually named
27730 something starting with __ and the normal name is an alias. */
27731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27734 char (*f) () = $ac_func;
27743 return f != $ac_func;
27748 rm -f conftest.$ac_objext conftest$ac_exeext
27749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27750 (eval $ac_link) 2>conftest.er1
27752 grep -v '^ *+' conftest.er1 >conftest.err
27754 cat conftest.err >&5
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); } &&
27757 { ac_try='test -z "$ac_c_werror_flag"
27758 || test ! -s conftest.err'
27759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27760 (eval $ac_try) 2>&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); }; } &&
27764 { ac_try='test -s conftest$ac_exeext'
27765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766 (eval $ac_try) 2>&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); }; }; then
27770 eval "$as_ac_var=yes"
27772 echo "$as_me: failed program was:" >&5
27773 sed 's/^/| /' conftest.$ac_ext >&5
27775 eval "$as_ac_var=no"
27777 rm -f conftest.err conftest.$ac_objext \
27778 conftest$ac_exeext conftest.$ac_ext
27780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27782 if test `eval echo '${'$as_ac_var'}'` = yes; then
27783 cat >>confdefs.h <<_ACEOF
27784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27796 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27799 echo "$as_me:$LINENO: checking for $ac_func" >&5
27800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27801 if eval "test \"\${$as_ac_var+set}\" = set"; then
27802 echo $ECHO_N "(cached) $ECHO_C" >&6
27804 cat >conftest.$ac_ext <<_ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h. */
27810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27812 #define $ac_func innocuous_$ac_func
27814 /* System header to define __stub macros and hopefully few prototypes,
27815 which can conflict with char $ac_func (); below.
27816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27817 <limits.h> exists even on freestanding compilers. */
27820 # include <limits.h>
27822 # include <assert.h>
27827 /* Override any gcc2 internal prototype to avoid an error. */
27832 /* We use char because int might match the return type of a gcc2
27833 builtin and then its argument prototype would still apply. */
27835 /* The GNU C library defines this for functions which it implements
27836 to always fail with ENOSYS. Some functions are actually named
27837 something starting with __ and the normal name is an alias. */
27838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27841 char (*f) () = $ac_func;
27850 return f != $ac_func;
27855 rm -f conftest.$ac_objext conftest$ac_exeext
27856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27857 (eval $ac_link) 2>conftest.er1
27859 grep -v '^ *+' conftest.er1 >conftest.err
27861 cat conftest.err >&5
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); } &&
27864 { ac_try='test -z "$ac_c_werror_flag"
27865 || test ! -s conftest.err'
27866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867 (eval $ac_try) 2>&5
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); }; } &&
27871 { ac_try='test -s conftest$ac_exeext'
27872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873 (eval $ac_try) 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; }; then
27877 eval "$as_ac_var=yes"
27879 echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27882 eval "$as_ac_var=no"
27884 rm -f conftest.err conftest.$ac_objext \
27885 conftest$ac_exeext conftest.$ac_ext
27887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27889 if test `eval echo '${'$as_ac_var'}'` = yes; then
27890 cat >>confdefs.h <<_ACEOF
27891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27900 for ac_func in strtoll strtoq sysconf
27902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27903 echo "$as_me:$LINENO: checking for $ac_func" >&5
27904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27905 if eval "test \"\${$as_ac_var+set}\" = set"; then
27906 echo $ECHO_N "(cached) $ECHO_C" >&6
27908 cat >conftest.$ac_ext <<_ACEOF
27911 cat confdefs.h >>conftest.$ac_ext
27912 cat >>conftest.$ac_ext <<_ACEOF
27913 /* end confdefs.h. */
27914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27916 #define $ac_func innocuous_$ac_func
27918 /* System header to define __stub macros and hopefully few prototypes,
27919 which can conflict with char $ac_func (); below.
27920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27921 <limits.h> exists even on freestanding compilers. */
27924 # include <limits.h>
27926 # include <assert.h>
27931 /* Override any gcc2 internal prototype to avoid an error. */
27936 /* We use char because int might match the return type of a gcc2
27937 builtin and then its argument prototype would still apply. */
27939 /* The GNU C library defines this for functions which it implements
27940 to always fail with ENOSYS. Some functions are actually named
27941 something starting with __ and the normal name is an alias. */
27942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27945 char (*f) () = $ac_func;
27954 return f != $ac_func;
27959 rm -f conftest.$ac_objext conftest$ac_exeext
27960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27961 (eval $ac_link) 2>conftest.er1
27963 grep -v '^ *+' conftest.er1 >conftest.err
27965 cat conftest.err >&5
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); } &&
27968 { ac_try='test -z "$ac_c_werror_flag"
27969 || test ! -s conftest.err'
27970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27971 (eval $ac_try) 2>&5
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); }; } &&
27975 { ac_try='test -s conftest$ac_exeext'
27976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27977 (eval $ac_try) 2>&5
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); }; }; then
27981 eval "$as_ac_var=yes"
27983 echo "$as_me: failed program was:" >&5
27984 sed 's/^/| /' conftest.$ac_ext >&5
27986 eval "$as_ac_var=no"
27988 rm -f conftest.err conftest.$ac_objext \
27989 conftest$ac_exeext conftest.$ac_ext
27991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27993 if test `eval echo '${'$as_ac_var'}'` = yes; then
27994 cat >>confdefs.h <<_ACEOF
27995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28001 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28002 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28003 if test "${llvm_cv_c_printf_a+set}" = set; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
28007 ac_cpp='$CPP $CPPFLAGS'
28008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28012 if test "$cross_compiling" = yes; then
28013 llvmac_cv_c_printf_a=no
28015 cat >conftest.$ac_ext <<_ACEOF
28019 cat confdefs.h >>conftest.$ac_ext
28020 cat >>conftest.$ac_ext <<_ACEOF
28021 /* end confdefs.h. */
28024 #include <stdlib.h>
28030 volatile double A, B;
28034 sprintf(Buffer, "%a", A);
28038 if (A != 0x1.999999999999ap-4)
28045 rm -f conftest$ac_exeext
28046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28047 (eval $ac_link) 2>&5
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28052 (eval $ac_try) 2>&5
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); }; }; then
28056 llvm_cv_c_printf_a=yes
28058 echo "$as_me: program exited with status $ac_status" >&5
28059 echo "$as_me: failed program was:" >&5
28060 sed 's/^/| /' conftest.$ac_ext >&5
28062 ( exit $ac_status )
28063 llvmac_cv_c_printf_a=no
28065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28068 ac_cpp='$CPP $CPPFLAGS'
28069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28074 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28075 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28076 if test "$llvm_cv_c_printf_a" = "yes"; then
28078 cat >>confdefs.h <<\_ACEOF
28079 #define HAVE_PRINTF_A 1
28084 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28085 # for constant arguments. Useless!
28086 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28087 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28088 if test "${ac_cv_working_alloca_h+set}" = set; then
28089 echo $ECHO_N "(cached) $ECHO_C" >&6
28091 cat >conftest.$ac_ext <<_ACEOF
28094 cat confdefs.h >>conftest.$ac_ext
28095 cat >>conftest.$ac_ext <<_ACEOF
28096 /* end confdefs.h. */
28097 #include <alloca.h>
28101 char *p = (char *) alloca (2 * sizeof (int));
28106 rm -f conftest.$ac_objext conftest$ac_exeext
28107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28108 (eval $ac_link) 2>conftest.er1
28110 grep -v '^ *+' conftest.er1 >conftest.err
28112 cat conftest.err >&5
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); } &&
28115 { ac_try='test -z "$ac_c_werror_flag"
28116 || test ! -s conftest.err'
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; } &&
28122 { ac_try='test -s conftest$ac_exeext'
28123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124 (eval $ac_try) 2>&5
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); }; }; then
28128 ac_cv_working_alloca_h=yes
28130 echo "$as_me: failed program was:" >&5
28131 sed 's/^/| /' conftest.$ac_ext >&5
28133 ac_cv_working_alloca_h=no
28135 rm -f conftest.err conftest.$ac_objext \
28136 conftest$ac_exeext conftest.$ac_ext
28138 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28139 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28140 if test $ac_cv_working_alloca_h = yes; then
28142 cat >>confdefs.h <<\_ACEOF
28143 #define HAVE_ALLOCA_H 1
28148 echo "$as_me:$LINENO: checking for alloca" >&5
28149 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28150 if test "${ac_cv_func_alloca_works+set}" = set; then
28151 echo $ECHO_N "(cached) $ECHO_C" >&6
28153 cat >conftest.$ac_ext <<_ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h. */
28160 # define alloca __builtin_alloca
28163 # include <malloc.h>
28164 # define alloca _alloca
28167 # include <alloca.h>
28172 # ifndef alloca /* predefined by HP cc +Olibcalls */
28183 char *p = (char *) alloca (1);
28188 rm -f conftest.$ac_objext conftest$ac_exeext
28189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28190 (eval $ac_link) 2>conftest.er1
28192 grep -v '^ *+' conftest.er1 >conftest.err
28194 cat conftest.err >&5
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); } &&
28197 { ac_try='test -z "$ac_c_werror_flag"
28198 || test ! -s conftest.err'
28199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200 (eval $ac_try) 2>&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; } &&
28204 { ac_try='test -s conftest$ac_exeext'
28205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206 (eval $ac_try) 2>&5
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; }; then
28210 ac_cv_func_alloca_works=yes
28212 echo "$as_me: failed program was:" >&5
28213 sed 's/^/| /' conftest.$ac_ext >&5
28215 ac_cv_func_alloca_works=no
28217 rm -f conftest.err conftest.$ac_objext \
28218 conftest$ac_exeext conftest.$ac_ext
28220 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28221 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28223 if test $ac_cv_func_alloca_works = yes; then
28225 cat >>confdefs.h <<\_ACEOF
28226 #define HAVE_ALLOCA 1
28230 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28231 # that cause trouble. Some versions do not even contain alloca or
28232 # contain a buggy version. If you still want to use their alloca,
28233 # use ar to extract alloca.o from them instead of compiling alloca.c.
28235 ALLOCA=alloca.$ac_objext
28237 cat >>confdefs.h <<\_ACEOF
28242 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28243 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28244 if test "${ac_cv_os_cray+set}" = set; then
28245 echo $ECHO_N "(cached) $ECHO_C" >&6
28247 cat >conftest.$ac_ext <<_ACEOF
28250 cat confdefs.h >>conftest.$ac_ext
28251 cat >>conftest.$ac_ext <<_ACEOF
28252 /* end confdefs.h. */
28253 #if defined(CRAY) && ! defined(CRAY2)
28260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28261 $EGREP "webecray" >/dev/null 2>&1; then
28269 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28270 echo "${ECHO_T}$ac_cv_os_cray" >&6
28271 if test $ac_cv_os_cray = yes; then
28272 for ac_func in _getb67 GETB67 getb67; do
28273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28274 echo "$as_me:$LINENO: checking for $ac_func" >&5
28275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28276 if eval "test \"\${$as_ac_var+set}\" = set"; then
28277 echo $ECHO_N "(cached) $ECHO_C" >&6
28279 cat >conftest.$ac_ext <<_ACEOF
28282 cat confdefs.h >>conftest.$ac_ext
28283 cat >>conftest.$ac_ext <<_ACEOF
28284 /* end confdefs.h. */
28285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28287 #define $ac_func innocuous_$ac_func
28289 /* System header to define __stub macros and hopefully few prototypes,
28290 which can conflict with char $ac_func (); below.
28291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28292 <limits.h> exists even on freestanding compilers. */
28295 # include <limits.h>
28297 # include <assert.h>
28302 /* Override any gcc2 internal prototype to avoid an error. */
28307 /* We use char because int might match the return type of a gcc2
28308 builtin and then its argument prototype would still apply. */
28310 /* The GNU C library defines this for functions which it implements
28311 to always fail with ENOSYS. Some functions are actually named
28312 something starting with __ and the normal name is an alias. */
28313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28316 char (*f) () = $ac_func;
28325 return f != $ac_func;
28330 rm -f conftest.$ac_objext conftest$ac_exeext
28331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28332 (eval $ac_link) 2>conftest.er1
28334 grep -v '^ *+' conftest.er1 >conftest.err
28336 cat conftest.err >&5
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); } &&
28339 { ac_try='test -z "$ac_c_werror_flag"
28340 || test ! -s conftest.err'
28341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28342 (eval $ac_try) 2>&5
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); }; } &&
28346 { ac_try='test -s conftest$ac_exeext'
28347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348 (eval $ac_try) 2>&5
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); }; }; then
28352 eval "$as_ac_var=yes"
28354 echo "$as_me: failed program was:" >&5
28355 sed 's/^/| /' conftest.$ac_ext >&5
28357 eval "$as_ac_var=no"
28359 rm -f conftest.err conftest.$ac_objext \
28360 conftest$ac_exeext conftest.$ac_ext
28362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28364 if test `eval echo '${'$as_ac_var'}'` = yes; then
28366 cat >>confdefs.h <<_ACEOF
28367 #define CRAY_STACKSEG_END $ac_func
28376 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28377 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28378 if test "${ac_cv_c_stack_direction+set}" = set; then
28379 echo $ECHO_N "(cached) $ECHO_C" >&6
28381 if test "$cross_compiling" = yes; then
28382 ac_cv_c_stack_direction=0
28384 cat >conftest.$ac_ext <<_ACEOF
28387 cat confdefs.h >>conftest.$ac_ext
28388 cat >>conftest.$ac_ext <<_ACEOF
28389 /* end confdefs.h. */
28391 find_stack_direction ()
28393 static char *addr = 0;
28398 return find_stack_direction ();
28401 return (&dummy > addr) ? 1 : -1;
28407 exit (find_stack_direction () < 0);
28410 rm -f conftest$ac_exeext
28411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28412 (eval $ac_link) 2>&5
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; }; then
28421 ac_cv_c_stack_direction=1
28423 echo "$as_me: program exited with status $ac_status" >&5
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28427 ( exit $ac_status )
28428 ac_cv_c_stack_direction=-1
28430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28433 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28434 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28436 cat >>confdefs.h <<_ACEOF
28437 #define STACK_DIRECTION $ac_cv_c_stack_direction
28444 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28445 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28446 if test "${ac_cv_func_rand48+set}" = set; then
28447 echo $ECHO_N "(cached) $ECHO_C" >&6
28450 ac_cpp='$CXXCPP $CPPFLAGS'
28451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28455 cat >conftest.$ac_ext <<_ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h. */
28461 #include <stdlib.h>
28465 srand48(0);lrand48();drand48();
28470 rm -f conftest.$ac_objext
28471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28472 (eval $ac_compile) 2>conftest.er1
28474 grep -v '^ *+' conftest.er1 >conftest.err
28476 cat conftest.err >&5
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); } &&
28479 { ac_try='test -z "$ac_cxx_werror_flag"
28480 || test ! -s conftest.err'
28481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28482 (eval $ac_try) 2>&5
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); }; } &&
28486 { ac_try='test -s conftest.$ac_objext'
28487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488 (eval $ac_try) 2>&5
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; }; then
28492 ac_cv_func_rand48=yes
28494 echo "$as_me: failed program was:" >&5
28495 sed 's/^/| /' conftest.$ac_ext >&5
28497 ac_cv_func_rand48=no
28499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28501 ac_cpp='$CPP $CPPFLAGS'
28502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28507 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28508 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28510 if test "$ac_cv_func_rand48" = "yes" ; then
28512 cat >>confdefs.h <<\_ACEOF
28513 #define HAVE_RAND48 1
28519 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28520 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28521 if test "${ac_cv_cxx_namespaces+set}" = set; then
28522 echo $ECHO_N "(cached) $ECHO_C" >&6
28525 ac_cpp='$CXXCPP $CPPFLAGS'
28526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28530 cat >conftest.$ac_ext <<_ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h. */
28536 namespace Outer { namespace Inner { int i = 0; }}
28540 using namespace Outer::Inner; return i;
28545 rm -f conftest.$ac_objext
28546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28547 (eval $ac_compile) 2>conftest.er1
28549 grep -v '^ *+' conftest.er1 >conftest.err
28551 cat conftest.err >&5
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); } &&
28554 { ac_try='test -z "$ac_cxx_werror_flag"
28555 || test ! -s conftest.err'
28556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557 (eval $ac_try) 2>&5
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); }; } &&
28561 { ac_try='test -s conftest.$ac_objext'
28562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28563 (eval $ac_try) 2>&5
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); }; }; then
28567 ac_cv_cxx_namespaces=yes
28569 echo "$as_me: failed program was:" >&5
28570 sed 's/^/| /' conftest.$ac_ext >&5
28572 ac_cv_cxx_namespaces=no
28574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28576 ac_cpp='$CPP $CPPFLAGS'
28577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28583 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28584 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28585 if test "$ac_cv_cxx_namespaces" = yes; then
28587 cat >>confdefs.h <<\_ACEOF
28588 #define HAVE_NAMESPACES
28593 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28594 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28595 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28596 echo $ECHO_N "(cached) $ECHO_C" >&6
28600 ac_cpp='$CXXCPP $CPPFLAGS'
28601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28605 cat >conftest.$ac_ext <<_ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h. */
28611 #include <ext/hash_map>
28612 #ifdef HAVE_NAMESPACES
28613 using namespace std;
28618 hash_map<int, int> t;
28623 rm -f conftest.$ac_objext
28624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28625 (eval $ac_compile) 2>conftest.er1
28627 grep -v '^ *+' conftest.er1 >conftest.err
28629 cat conftest.err >&5
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); } &&
28632 { ac_try='test -z "$ac_cxx_werror_flag"
28633 || test ! -s conftest.err'
28634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635 (eval $ac_try) 2>&5
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; } &&
28639 { ac_try='test -s conftest.$ac_objext'
28640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641 (eval $ac_try) 2>&5
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; }; then
28645 ac_cv_cxx_have_std_ext_hash_map=yes
28647 echo "$as_me: failed program was:" >&5
28648 sed 's/^/| /' conftest.$ac_ext >&5
28650 ac_cv_cxx_have_std_ext_hash_map=no
28652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28654 ac_cpp='$CPP $CPPFLAGS'
28655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28660 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28661 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28662 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28665 cat >>confdefs.h <<\_ACEOF
28666 #define HAVE_STD_EXT_HASH_MAP 1
28671 cat >>confdefs.h <<\_ACEOF
28672 #define HAVE_STD_EXT_HASH_MAP 0
28677 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28678 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28679 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28680 echo $ECHO_N "(cached) $ECHO_C" >&6
28684 ac_cpp='$CXXCPP $CPPFLAGS'
28685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28689 cat >conftest.$ac_ext <<_ACEOF
28692 cat confdefs.h >>conftest.$ac_ext
28693 cat >>conftest.$ac_ext <<_ACEOF
28694 /* end confdefs.h. */
28695 #include <ext/hash_map>
28696 #ifdef HAVE_NAMESPACES
28697 using namespace __gnu_cxx;
28702 hash_map<int,int> t;
28707 rm -f conftest.$ac_objext
28708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28709 (eval $ac_compile) 2>conftest.er1
28711 grep -v '^ *+' conftest.er1 >conftest.err
28713 cat conftest.err >&5
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); } &&
28716 { ac_try='test -z "$ac_cxx_werror_flag"
28717 || test ! -s conftest.err'
28718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719 (eval $ac_try) 2>&5
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); }; } &&
28723 { ac_try='test -s conftest.$ac_objext'
28724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28725 (eval $ac_try) 2>&5
28727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728 (exit $ac_status); }; }; then
28729 ac_cv_cxx_have_gnu_ext_hash_map=yes
28731 echo "$as_me: failed program was:" >&5
28732 sed 's/^/| /' conftest.$ac_ext >&5
28734 ac_cv_cxx_have_gnu_ext_hash_map=no
28736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28738 ac_cpp='$CPP $CPPFLAGS'
28739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28744 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28745 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28746 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28749 cat >>confdefs.h <<\_ACEOF
28750 #define HAVE_GNU_EXT_HASH_MAP 1
28755 cat >>confdefs.h <<\_ACEOF
28756 #define HAVE_GNU_EXT_HASH_MAP 0
28761 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28762 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28763 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28764 echo $ECHO_N "(cached) $ECHO_C" >&6
28768 ac_cpp='$CXXCPP $CPPFLAGS'
28769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28773 cat >conftest.$ac_ext <<_ACEOF
28776 cat confdefs.h >>conftest.$ac_ext
28777 cat >>conftest.$ac_ext <<_ACEOF
28778 /* end confdefs.h. */
28779 #include <hash_map>
28783 hash_map<int,int> t;
28788 rm -f conftest.$ac_objext
28789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28790 (eval $ac_compile) 2>conftest.er1
28792 grep -v '^ *+' conftest.er1 >conftest.err
28794 cat conftest.err >&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); } &&
28797 { ac_try='test -z "$ac_cxx_werror_flag"
28798 || test ! -s conftest.err'
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; } &&
28804 { ac_try='test -s conftest.$ac_objext'
28805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806 (eval $ac_try) 2>&5
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); }; }; then
28810 ac_cv_cxx_have_global_hash_map=yes
28812 echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28815 ac_cv_cxx_have_global_hash_map=no
28817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28819 ac_cpp='$CPP $CPPFLAGS'
28820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28825 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28826 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28827 if test "$ac_cv_cxx_have_global_hash_map" = yes
28830 cat >>confdefs.h <<\_ACEOF
28831 #define HAVE_GLOBAL_HASH_MAP 1
28836 cat >>confdefs.h <<\_ACEOF
28837 #define HAVE_GLOBAL_HASH_MAP 0
28842 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28843 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28844 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28845 echo $ECHO_N "(cached) $ECHO_C" >&6
28849 ac_cpp='$CXXCPP $CPPFLAGS'
28850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28854 cat >conftest.$ac_ext <<_ACEOF
28857 cat confdefs.h >>conftest.$ac_ext
28858 cat >>conftest.$ac_ext <<_ACEOF
28859 /* end confdefs.h. */
28860 #include <ext/hash_set>
28861 #ifdef HAVE_NAMESPACES
28862 using namespace std;
28872 rm -f conftest.$ac_objext
28873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28874 (eval $ac_compile) 2>conftest.er1
28876 grep -v '^ *+' conftest.er1 >conftest.err
28878 cat conftest.err >&5
28879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); } &&
28881 { ac_try='test -z "$ac_cxx_werror_flag"
28882 || test ! -s conftest.err'
28883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884 (eval $ac_try) 2>&5
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; } &&
28888 { ac_try='test -s conftest.$ac_objext'
28889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890 (eval $ac_try) 2>&5
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); }; }; then
28894 ac_cv_cxx_have_std_ext_hash_set=yes
28896 echo "$as_me: failed program was:" >&5
28897 sed 's/^/| /' conftest.$ac_ext >&5
28899 ac_cv_cxx_have_std_ext_hash_set=no
28901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28903 ac_cpp='$CPP $CPPFLAGS'
28904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28909 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28910 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28911 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28914 cat >>confdefs.h <<\_ACEOF
28915 #define HAVE_STD_EXT_HASH_SET 1
28920 cat >>confdefs.h <<\_ACEOF
28921 #define HAVE_STD_EXT_HASH_SET 0
28926 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28927 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28928 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28929 echo $ECHO_N "(cached) $ECHO_C" >&6
28933 ac_cpp='$CXXCPP $CPPFLAGS'
28934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28938 cat >conftest.$ac_ext <<_ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h. */
28944 #include <ext/hash_set>
28945 #ifdef HAVE_NAMESPACES
28946 using namespace __gnu_cxx;
28956 rm -f conftest.$ac_objext
28957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28958 (eval $ac_compile) 2>conftest.er1
28960 grep -v '^ *+' conftest.er1 >conftest.err
28962 cat conftest.err >&5
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); } &&
28965 { ac_try='test -z "$ac_cxx_werror_flag"
28966 || test ! -s conftest.err'
28967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968 (eval $ac_try) 2>&5
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); }; } &&
28972 { ac_try='test -s conftest.$ac_objext'
28973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28974 (eval $ac_try) 2>&5
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; }; then
28978 ac_cv_cxx_have_gnu_ext_hash_set=yes
28980 echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.$ac_ext >&5
28983 ac_cv_cxx_have_gnu_ext_hash_set=no
28985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28987 ac_cpp='$CPP $CPPFLAGS'
28988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28993 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28994 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28995 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28998 cat >>confdefs.h <<\_ACEOF
28999 #define HAVE_GNU_EXT_HASH_SET 1
29004 cat >>confdefs.h <<\_ACEOF
29005 #define HAVE_GNU_EXT_HASH_SET 0
29010 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29011 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29012 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29013 echo $ECHO_N "(cached) $ECHO_C" >&6
29017 ac_cpp='$CXXCPP $CPPFLAGS'
29018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29022 cat >conftest.$ac_ext <<_ACEOF
29025 cat confdefs.h >>conftest.$ac_ext
29026 cat >>conftest.$ac_ext <<_ACEOF
29027 /* end confdefs.h. */
29028 #include <hash_set>
29032 hash_set<int> t; return 0;
29037 rm -f conftest.$ac_objext
29038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29039 (eval $ac_compile) 2>conftest.er1
29041 grep -v '^ *+' conftest.er1 >conftest.err
29043 cat conftest.err >&5
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); } &&
29046 { ac_try='test -z "$ac_cxx_werror_flag"
29047 || test ! -s conftest.err'
29048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29049 (eval $ac_try) 2>&5
29051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052 (exit $ac_status); }; } &&
29053 { ac_try='test -s conftest.$ac_objext'
29054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055 (eval $ac_try) 2>&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; }; then
29059 ac_cv_cxx_have_global_hash_set=yes
29061 echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29064 ac_cv_cxx_have_global_hash_set=no
29066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29068 ac_cpp='$CPP $CPPFLAGS'
29069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29074 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29075 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29076 if test "$ac_cv_cxx_have_global_hash_set" = yes
29079 cat >>confdefs.h <<\_ACEOF
29080 #define HAVE_GLOBAL_HASH_SET 1
29085 cat >>confdefs.h <<\_ACEOF
29086 #define HAVE_GLOBAL_HASH_SET 0
29091 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29092 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29093 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29094 echo $ECHO_N "(cached) $ECHO_C" >&6
29098 ac_cpp='$CXXCPP $CPPFLAGS'
29099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29103 cat >conftest.$ac_ext <<_ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h. */
29109 #include <iterator>
29110 #ifdef HAVE_NAMESPACES
29111 using namespace std;
29116 iterator<int,int,int> t; return 0;
29121 rm -f conftest.$ac_objext
29122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29123 (eval $ac_compile) 2>conftest.er1
29125 grep -v '^ *+' conftest.er1 >conftest.err
29127 cat conftest.err >&5
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); } &&
29130 { ac_try='test -z "$ac_cxx_werror_flag"
29131 || test ! -s conftest.err'
29132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133 (eval $ac_try) 2>&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; } &&
29137 { ac_try='test -s conftest.$ac_objext'
29138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29139 (eval $ac_try) 2>&5
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); }; }; then
29143 ac_cv_cxx_have_std_iterator=yes
29145 echo "$as_me: failed program was:" >&5
29146 sed 's/^/| /' conftest.$ac_ext >&5
29148 ac_cv_cxx_have_std_iterator=no
29150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29152 ac_cpp='$CPP $CPPFLAGS'
29153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29159 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29160 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29161 if test "$ac_cv_cxx_have_std_iterator" = yes
29164 cat >>confdefs.h <<\_ACEOF
29165 #define HAVE_STD_ITERATOR 1
29170 cat >>confdefs.h <<\_ACEOF
29171 #define HAVE_STD_ITERATOR 0
29176 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29177 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29178 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29179 echo $ECHO_N "(cached) $ECHO_C" >&6
29183 ac_cpp='$CXXCPP $CPPFLAGS'
29184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29188 cat >conftest.$ac_ext <<_ACEOF
29191 cat confdefs.h >>conftest.$ac_ext
29192 cat >>conftest.$ac_ext <<_ACEOF
29193 /* end confdefs.h. */
29194 #include <iterator>
29195 #ifdef HAVE_NAMESPACES
29196 using namespace std;
29201 bidirectional_iterator<int,int> t; return 0;
29206 rm -f conftest.$ac_objext
29207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29208 (eval $ac_compile) 2>conftest.er1
29210 grep -v '^ *+' conftest.er1 >conftest.err
29212 cat conftest.err >&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); } &&
29215 { ac_try='test -z "$ac_cxx_werror_flag"
29216 || test ! -s conftest.err'
29217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218 (eval $ac_try) 2>&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); }; } &&
29222 { ac_try='test -s conftest.$ac_objext'
29223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224 (eval $ac_try) 2>&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; }; then
29228 ac_cv_cxx_have_bi_iterator=yes
29230 echo "$as_me: failed program was:" >&5
29231 sed 's/^/| /' conftest.$ac_ext >&5
29233 ac_cv_cxx_have_bi_iterator=no
29235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29237 ac_cpp='$CPP $CPPFLAGS'
29238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29244 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29245 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29246 if test "$ac_cv_cxx_have_bi_iterator" = yes
29249 cat >>confdefs.h <<\_ACEOF
29250 #define HAVE_BI_ITERATOR 1
29255 cat >>confdefs.h <<\_ACEOF
29256 #define HAVE_BI_ITERATOR 0
29261 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29262 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29263 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29264 echo $ECHO_N "(cached) $ECHO_C" >&6
29268 ac_cpp='$CXXCPP $CPPFLAGS'
29269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29273 cat >conftest.$ac_ext <<_ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h. */
29279 #include <iterator>
29280 #ifdef HAVE_NAMESPACES
29281 using namespace std;
29286 forward_iterator<int,int> t; return 0;
29291 rm -f conftest.$ac_objext
29292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29293 (eval $ac_compile) 2>conftest.er1
29295 grep -v '^ *+' conftest.er1 >conftest.err
29297 cat conftest.err >&5
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); } &&
29300 { ac_try='test -z "$ac_cxx_werror_flag"
29301 || test ! -s conftest.err'
29302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303 (eval $ac_try) 2>&5
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); }; } &&
29307 { ac_try='test -s conftest.$ac_objext'
29308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309 (eval $ac_try) 2>&5
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); }; }; then
29313 ac_cv_cxx_have_fwd_iterator=yes
29315 echo "$as_me: failed program was:" >&5
29316 sed 's/^/| /' conftest.$ac_ext >&5
29318 ac_cv_cxx_have_fwd_iterator=no
29320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29322 ac_cpp='$CPP $CPPFLAGS'
29323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29329 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29330 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29331 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29334 cat >>confdefs.h <<\_ACEOF
29335 #define HAVE_FWD_ITERATOR 1
29340 cat >>confdefs.h <<\_ACEOF
29341 #define HAVE_FWD_ITERATOR 0
29347 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29348 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29349 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29350 echo $ECHO_N "(cached) $ECHO_C" >&6
29353 ac_cpp='$CXXCPP $CPPFLAGS'
29354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29358 cat >conftest.$ac_ext <<_ACEOF
29361 cat confdefs.h >>conftest.$ac_ext
29362 cat >>conftest.$ac_ext <<_ACEOF
29363 /* end confdefs.h. */
29373 rm -f conftest.$ac_objext
29374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29375 (eval $ac_compile) 2>conftest.er1
29377 grep -v '^ *+' conftest.er1 >conftest.err
29379 cat conftest.err >&5
29380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381 (exit $ac_status); } &&
29382 { ac_try='test -z "$ac_cxx_werror_flag"
29383 || test ! -s conftest.err'
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); }; } &&
29389 { ac_try='test -s conftest.$ac_objext'
29390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391 (eval $ac_try) 2>&5
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; }; then
29395 ac_cv_func_isnan_in_math_h=yes
29397 echo "$as_me: failed program was:" >&5
29398 sed 's/^/| /' conftest.$ac_ext >&5
29400 ac_cv_func_isnan_in_math_h=no
29402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29404 ac_cpp='$CPP $CPPFLAGS'
29405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29410 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29411 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29414 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29416 cat >>confdefs.h <<\_ACEOF
29417 #define HAVE_ISNAN_IN_MATH_H 1
29422 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29423 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29424 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29425 echo $ECHO_N "(cached) $ECHO_C" >&6
29428 ac_cpp='$CXXCPP $CPPFLAGS'
29429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29433 cat >conftest.$ac_ext <<_ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h. */
29448 rm -f conftest.$ac_objext
29449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29450 (eval $ac_compile) 2>conftest.er1
29452 grep -v '^ *+' conftest.er1 >conftest.err
29454 cat conftest.err >&5
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); } &&
29457 { ac_try='test -z "$ac_cxx_werror_flag"
29458 || test ! -s conftest.err'
29459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29460 (eval $ac_try) 2>&5
29462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); }; } &&
29464 { ac_try='test -s conftest.$ac_objext'
29465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29466 (eval $ac_try) 2>&5
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); }; }; then
29470 ac_cv_func_isnan_in_cmath=yes
29472 echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29475 ac_cv_func_isnan_in_cmath=no
29477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29479 ac_cpp='$CPP $CPPFLAGS'
29480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29485 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29486 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29488 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29490 cat >>confdefs.h <<\_ACEOF
29491 #define HAVE_ISNAN_IN_CMATH 1
29496 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29497 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29498 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29499 echo $ECHO_N "(cached) $ECHO_C" >&6
29502 ac_cpp='$CXXCPP $CPPFLAGS'
29503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29507 cat >conftest.$ac_ext <<_ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h. */
29517 float f; std::isnan(f);
29522 rm -f conftest.$ac_objext
29523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29524 (eval $ac_compile) 2>conftest.er1
29526 grep -v '^ *+' conftest.er1 >conftest.err
29528 cat conftest.err >&5
29529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530 (exit $ac_status); } &&
29531 { ac_try='test -z "$ac_cxx_werror_flag"
29532 || test ! -s conftest.err'
29533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29534 (eval $ac_try) 2>&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); }; } &&
29538 { ac_try='test -s conftest.$ac_objext'
29539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540 (eval $ac_try) 2>&5
29542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 (exit $ac_status); }; }; then
29544 ac_cv_func_std_isnan_in_cmath=yes
29546 echo "$as_me: failed program was:" >&5
29547 sed 's/^/| /' conftest.$ac_ext >&5
29549 ac_cv_func_std_isnan_in_cmath=no
29551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29553 ac_cpp='$CPP $CPPFLAGS'
29554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29559 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29560 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29562 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29564 cat >>confdefs.h <<\_ACEOF
29565 #define HAVE_STD_ISNAN_IN_CMATH 1
29571 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29572 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29573 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29574 echo $ECHO_N "(cached) $ECHO_C" >&6
29577 ac_cpp='$CXXCPP $CPPFLAGS'
29578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29582 cat >conftest.$ac_ext <<_ACEOF
29585 cat confdefs.h >>conftest.$ac_ext
29586 cat >>conftest.$ac_ext <<_ACEOF
29587 /* end confdefs.h. */
29597 rm -f conftest.$ac_objext
29598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29599 (eval $ac_compile) 2>conftest.er1
29601 grep -v '^ *+' conftest.er1 >conftest.err
29603 cat conftest.err >&5
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); } &&
29606 { ac_try='test -z "$ac_cxx_werror_flag"
29607 || test ! -s conftest.err'
29608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609 (eval $ac_try) 2>&5
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); }; } &&
29613 { ac_try='test -s conftest.$ac_objext'
29614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615 (eval $ac_try) 2>&5
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; }; then
29619 ac_cv_func_isinf_in_math_h=yes
29621 echo "$as_me: failed program was:" >&5
29622 sed 's/^/| /' conftest.$ac_ext >&5
29624 ac_cv_func_isinf_in_math_h=no
29626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29628 ac_cpp='$CPP $CPPFLAGS'
29629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29634 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29635 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29637 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29639 cat >>confdefs.h <<\_ACEOF
29640 #define HAVE_ISINF_IN_MATH_H 1
29645 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29646 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29647 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29651 ac_cpp='$CXXCPP $CPPFLAGS'
29652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29656 cat >conftest.$ac_ext <<_ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h. */
29671 rm -f conftest.$ac_objext
29672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29673 (eval $ac_compile) 2>conftest.er1
29675 grep -v '^ *+' conftest.er1 >conftest.err
29677 cat conftest.err >&5
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); } &&
29680 { ac_try='test -z "$ac_cxx_werror_flag"
29681 || test ! -s conftest.err'
29682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29683 (eval $ac_try) 2>&5
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); }; } &&
29687 { ac_try='test -s conftest.$ac_objext'
29688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689 (eval $ac_try) 2>&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; }; then
29693 ac_cv_func_isinf_in_cmath=yes
29695 echo "$as_me: failed program was:" >&5
29696 sed 's/^/| /' conftest.$ac_ext >&5
29698 ac_cv_func_isinf_in_cmath=no
29700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29702 ac_cpp='$CPP $CPPFLAGS'
29703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29708 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29709 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29711 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29713 cat >>confdefs.h <<\_ACEOF
29714 #define HAVE_ISINF_IN_CMATH 1
29719 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29720 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29721 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29722 echo $ECHO_N "(cached) $ECHO_C" >&6
29725 ac_cpp='$CXXCPP $CPPFLAGS'
29726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29730 cat >conftest.$ac_ext <<_ACEOF
29733 cat confdefs.h >>conftest.$ac_ext
29734 cat >>conftest.$ac_ext <<_ACEOF
29735 /* end confdefs.h. */
29740 float f; std::isinf(f)}
29745 rm -f conftest.$ac_objext
29746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29747 (eval $ac_compile) 2>conftest.er1
29749 grep -v '^ *+' conftest.er1 >conftest.err
29751 cat conftest.err >&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } &&
29754 { ac_try='test -z "$ac_cxx_werror_flag"
29755 || test ! -s conftest.err'
29756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757 (eval $ac_try) 2>&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; } &&
29761 { ac_try='test -s conftest.$ac_objext'
29762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763 (eval $ac_try) 2>&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; }; then
29767 ac_cv_func_std_isinf_in_cmath=yes
29769 echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29772 ac_cv_func_std_isinf_in_cmath=no
29774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29776 ac_cpp='$CPP $CPPFLAGS'
29777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29782 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29783 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29785 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29787 cat >>confdefs.h <<\_ACEOF
29788 #define HAVE_STD_ISINF_IN_CMATH 1
29793 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29794 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29795 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29799 ac_cpp='$CXXCPP $CPPFLAGS'
29800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29804 cat >conftest.$ac_ext <<_ACEOF
29807 cat confdefs.h >>conftest.$ac_ext
29808 cat >>conftest.$ac_ext <<_ACEOF
29809 /* end confdefs.h. */
29810 #include <ieeefp.h>
29814 float f; finite(f);
29819 rm -f conftest.$ac_objext
29820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29821 (eval $ac_compile) 2>conftest.er1
29823 grep -v '^ *+' conftest.er1 >conftest.err
29825 cat conftest.err >&5
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); } &&
29828 { ac_try='test -z "$ac_cxx_werror_flag"
29829 || test ! -s conftest.err'
29830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29831 (eval $ac_try) 2>&5
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); }; } &&
29835 { ac_try='test -s conftest.$ac_objext'
29836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837 (eval $ac_try) 2>&5
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); }; }; then
29841 ac_cv_func_finite_in_ieeefp_h=yes
29843 echo "$as_me: failed program was:" >&5
29844 sed 's/^/| /' conftest.$ac_ext >&5
29846 ac_cv_func_finite_in_ieeefp_h=no
29848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29850 ac_cpp='$CPP $CPPFLAGS'
29851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29856 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29857 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29859 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29861 cat >>confdefs.h <<\_ACEOF
29862 #define HAVE_FINITE_IN_IEEEFP_H 1
29871 for ac_header in stdlib.h unistd.h
29873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29875 echo "$as_me:$LINENO: checking for $ac_header" >&5
29876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29878 echo $ECHO_N "(cached) $ECHO_C" >&6
29880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29883 # Is the header compilable?
29884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29886 cat >conftest.$ac_ext <<_ACEOF
29889 cat confdefs.h >>conftest.$ac_ext
29890 cat >>conftest.$ac_ext <<_ACEOF
29891 /* end confdefs.h. */
29892 $ac_includes_default
29893 #include <$ac_header>
29895 rm -f conftest.$ac_objext
29896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29897 (eval $ac_compile) 2>conftest.er1
29899 grep -v '^ *+' conftest.er1 >conftest.err
29901 cat conftest.err >&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); } &&
29904 { ac_try='test -z "$ac_c_werror_flag"
29905 || test ! -s conftest.err'
29906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907 (eval $ac_try) 2>&5
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); }; } &&
29911 { ac_try='test -s conftest.$ac_objext'
29912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29913 (eval $ac_try) 2>&5
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); }; }; then
29917 ac_header_compiler=yes
29919 echo "$as_me: failed program was:" >&5
29920 sed 's/^/| /' conftest.$ac_ext >&5
29922 ac_header_compiler=no
29924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29926 echo "${ECHO_T}$ac_header_compiler" >&6
29928 # Is the header present?
29929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29931 cat >conftest.$ac_ext <<_ACEOF
29934 cat confdefs.h >>conftest.$ac_ext
29935 cat >>conftest.$ac_ext <<_ACEOF
29936 /* end confdefs.h. */
29937 #include <$ac_header>
29939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29942 grep -v '^ *+' conftest.er1 >conftest.err
29944 cat conftest.err >&5
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); } >/dev/null; then
29947 if test -s conftest.err; then
29948 ac_cpp_err=$ac_c_preproc_warn_flag
29949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29956 if test -z "$ac_cpp_err"; then
29957 ac_header_preproc=yes
29959 echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29962 ac_header_preproc=no
29964 rm -f conftest.err conftest.$ac_ext
29965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29966 echo "${ECHO_T}$ac_header_preproc" >&6
29968 # So? What about this header?
29969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29975 ac_header_preproc=yes
29978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29992 ## ----------------------------------- ##
29993 ## Report this to llvmbugs@cs.uiuc.edu ##
29994 ## ----------------------------------- ##
29997 sed "s/^/$as_me: WARNING: /" >&2
30000 echo "$as_me:$LINENO: checking for $ac_header" >&5
30001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30003 echo $ECHO_N "(cached) $ECHO_C" >&6
30005 eval "$as_ac_Header=\$ac_header_preproc"
30007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30012 cat >>confdefs.h <<_ACEOF
30013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30021 for ac_func in getpagesize
30023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30024 echo "$as_me:$LINENO: checking for $ac_func" >&5
30025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30026 if eval "test \"\${$as_ac_var+set}\" = set"; then
30027 echo $ECHO_N "(cached) $ECHO_C" >&6
30029 cat >conftest.$ac_ext <<_ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h. */
30035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30037 #define $ac_func innocuous_$ac_func
30039 /* System header to define __stub macros and hopefully few prototypes,
30040 which can conflict with char $ac_func (); below.
30041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30042 <limits.h> exists even on freestanding compilers. */
30045 # include <limits.h>
30047 # include <assert.h>
30052 /* Override any gcc2 internal prototype to avoid an error. */
30057 /* We use char because int might match the return type of a gcc2
30058 builtin and then its argument prototype would still apply. */
30060 /* The GNU C library defines this for functions which it implements
30061 to always fail with ENOSYS. Some functions are actually named
30062 something starting with __ and the normal name is an alias. */
30063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30066 char (*f) () = $ac_func;
30075 return f != $ac_func;
30080 rm -f conftest.$ac_objext conftest$ac_exeext
30081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30082 (eval $ac_link) 2>conftest.er1
30084 grep -v '^ *+' conftest.er1 >conftest.err
30086 cat conftest.err >&5
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); } &&
30089 { ac_try='test -z "$ac_c_werror_flag"
30090 || test ! -s conftest.err'
30091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092 (eval $ac_try) 2>&5
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); }; } &&
30096 { ac_try='test -s conftest$ac_exeext'
30097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30098 (eval $ac_try) 2>&5
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); }; }; then
30102 eval "$as_ac_var=yes"
30104 echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30107 eval "$as_ac_var=no"
30109 rm -f conftest.err conftest.$ac_objext \
30110 conftest$ac_exeext conftest.$ac_ext
30112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30114 if test `eval echo '${'$as_ac_var'}'` = yes; then
30115 cat >>confdefs.h <<_ACEOF
30116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30122 echo "$as_me:$LINENO: checking for working mmap" >&5
30123 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30124 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30125 echo $ECHO_N "(cached) $ECHO_C" >&6
30127 if test "$cross_compiling" = yes; then
30128 ac_cv_func_mmap_fixed_mapped=no
30130 cat >conftest.$ac_ext <<_ACEOF
30133 cat confdefs.h >>conftest.$ac_ext
30134 cat >>conftest.$ac_ext <<_ACEOF
30135 /* end confdefs.h. */
30136 $ac_includes_default
30137 /* malloc might have been renamed as rpl_malloc. */
30140 /* Thanks to Mike Haertel and Jim Avera for this test.
30141 Here is a matrix of mmap possibilities:
30142 mmap private not fixed
30143 mmap private fixed at somewhere currently unmapped
30144 mmap private fixed at somewhere already mapped
30145 mmap shared not fixed
30146 mmap shared fixed at somewhere currently unmapped
30147 mmap shared fixed at somewhere already mapped
30148 For private mappings, we should verify that changes cannot be read()
30149 back from the file, nor mmap's back from the file at a different
30150 address. (There have been systems where private was not correctly
30151 implemented like the infamous i386 svr4.0, and systems where the
30152 VM page cache was not coherent with the file system buffer cache
30153 like early versions of FreeBSD and possibly contemporary NetBSD.)
30154 For shared mappings, we should conversely verify that changes get
30155 propagated back to all the places they're supposed to be.
30157 Grep wants private fixed already mapped.
30158 The main things grep needs to know about mmap are:
30159 * does it exist and is it safe to write into the mmap'd area
30160 * how to use it (BSD variants) */
30163 #include <sys/mman.h>
30165 #if !STDC_HEADERS && !HAVE_STDLIB_H
30169 /* This mess was copied from the GNU getpagesize.h. */
30170 #if !HAVE_GETPAGESIZE
30171 /* Assume that all systems that can run configure have sys/param.h. */
30172 # if !HAVE_SYS_PARAM_H
30173 # define HAVE_SYS_PARAM_H 1
30176 # ifdef _SC_PAGESIZE
30177 # define getpagesize() sysconf(_SC_PAGESIZE)
30178 # else /* no _SC_PAGESIZE */
30179 # if HAVE_SYS_PARAM_H
30180 # include <sys/param.h>
30181 # ifdef EXEC_PAGESIZE
30182 # define getpagesize() EXEC_PAGESIZE
30183 # else /* no EXEC_PAGESIZE */
30185 # define getpagesize() NBPG * CLSIZE
30188 # endif /* no CLSIZE */
30189 # else /* no NBPG */
30191 # define getpagesize() NBPC
30192 # else /* no NBPC */
30194 # define getpagesize() PAGESIZE
30195 # endif /* PAGESIZE */
30196 # endif /* no NBPC */
30197 # endif /* no NBPG */
30198 # endif /* no EXEC_PAGESIZE */
30199 # else /* no HAVE_SYS_PARAM_H */
30200 # define getpagesize() 8192 /* punt totally */
30201 # endif /* no HAVE_SYS_PARAM_H */
30202 # endif /* no _SC_PAGESIZE */
30204 #endif /* no HAVE_GETPAGESIZE */
30209 char *data, *data2, *data3;
30213 pagesize = getpagesize ();
30215 /* First, make a file with some known garbage in it. */
30216 data = (char *) malloc (pagesize);
30219 for (i = 0; i < pagesize; ++i)
30220 *(data + i) = rand ();
30222 fd = creat ("conftest.mmap", 0600);
30225 if (write (fd, data, pagesize) != pagesize)
30229 /* Next, try to mmap the file at a fixed address which already has
30230 something else allocated at it. If we can, also make sure that
30231 we see the same garbage. */
30232 fd = open ("conftest.mmap", O_RDWR);
30235 data2 = (char *) malloc (2 * pagesize);
30238 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30239 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30240 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30242 for (i = 0; i < pagesize; ++i)
30243 if (*(data + i) != *(data2 + i))
30246 /* Finally, make sure that changes to the mapped area do not
30247 percolate back to the file as seen by read(). (This is a bug on
30248 some variants of i386 svr4.0.) */
30249 for (i = 0; i < pagesize; ++i)
30250 *(data2 + i) = *(data2 + i) + 1;
30251 data3 = (char *) malloc (pagesize);
30254 if (read (fd, data3, pagesize) != pagesize)
30256 for (i = 0; i < pagesize; ++i)
30257 if (*(data + i) != *(data3 + i))
30263 rm -f conftest$ac_exeext
30264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30265 (eval $ac_link) 2>&5
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30270 (eval $ac_try) 2>&5
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); }; }; then
30274 ac_cv_func_mmap_fixed_mapped=yes
30276 echo "$as_me: program exited with status $ac_status" >&5
30277 echo "$as_me: failed program was:" >&5
30278 sed 's/^/| /' conftest.$ac_ext >&5
30280 ( exit $ac_status )
30281 ac_cv_func_mmap_fixed_mapped=no
30283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30286 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30287 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30288 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30290 cat >>confdefs.h <<\_ACEOF
30291 #define HAVE_MMAP 1
30295 rm -f conftest.mmap
30297 echo "$as_me:$LINENO: checking for mmap of files" >&5
30298 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30299 if test "${ac_cv_func_mmap_file+set}" = set; then
30300 echo $ECHO_N "(cached) $ECHO_C" >&6
30303 ac_cpp='$CPP $CPPFLAGS'
30304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30308 if test "$cross_compiling" = yes; then
30309 ac_cv_func_mmap_file=no
30311 cat >conftest.$ac_ext <<_ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h. */
30319 #include <sys/types.h>
30320 #include <sys/mman.h>
30328 fd = creat ("foo",0777);
30329 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30331 return (fd != (int) MAP_FAILED);
30336 rm -f conftest$ac_exeext
30337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30338 (eval $ac_link) 2>&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30343 (eval $ac_try) 2>&5
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); }; }; then
30347 ac_cv_func_mmap_file=yes
30349 echo "$as_me: program exited with status $ac_status" >&5
30350 echo "$as_me: failed program was:" >&5
30351 sed 's/^/| /' conftest.$ac_ext >&5
30353 ( exit $ac_status )
30354 ac_cv_func_mmap_file=no
30356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30359 ac_cpp='$CPP $CPPFLAGS'
30360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30366 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30367 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30368 if test "$ac_cv_func_mmap_file" = yes; then
30370 cat >>confdefs.h <<\_ACEOF
30371 #define HAVE_MMAP_FILE
30378 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30379 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30380 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30381 echo $ECHO_N "(cached) $ECHO_C" >&6
30383 if test "$llvm_cv_os_type" = "Interix" ; then
30384 ac_cv_need_dev_zero_for_mmap=yes
30386 ac_cv_need_dev_zero_for_mmap=no
30390 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30391 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30392 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30394 cat >>confdefs.h <<\_ACEOF
30395 #define NEED_DEV_ZERO_FOR_MMAP 1
30399 echo "$as_me:$LINENO: checking for mprotect" >&5
30400 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30401 if test "${ac_cv_func_mprotect+set}" = set; then
30402 echo $ECHO_N "(cached) $ECHO_C" >&6
30404 cat >conftest.$ac_ext <<_ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h. */
30410 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30412 #define mprotect innocuous_mprotect
30414 /* System header to define __stub macros and hopefully few prototypes,
30415 which can conflict with char mprotect (); below.
30416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30417 <limits.h> exists even on freestanding compilers. */
30420 # include <limits.h>
30422 # include <assert.h>
30427 /* Override any gcc2 internal prototype to avoid an error. */
30432 /* We use char because int might match the return type of a gcc2
30433 builtin and then its argument prototype would still apply. */
30435 /* The GNU C library defines this for functions which it implements
30436 to always fail with ENOSYS. Some functions are actually named
30437 something starting with __ and the normal name is an alias. */
30438 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30441 char (*f) () = mprotect;
30450 return f != mprotect;
30455 rm -f conftest.$ac_objext conftest$ac_exeext
30456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30457 (eval $ac_link) 2>conftest.er1
30459 grep -v '^ *+' conftest.er1 >conftest.err
30461 cat conftest.err >&5
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); } &&
30464 { ac_try='test -z "$ac_c_werror_flag"
30465 || test ! -s conftest.err'
30466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30467 (eval $ac_try) 2>&5
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); }; } &&
30471 { ac_try='test -s conftest$ac_exeext'
30472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473 (eval $ac_try) 2>&5
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; }; then
30477 ac_cv_func_mprotect=yes
30479 echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30482 ac_cv_func_mprotect=no
30484 rm -f conftest.err conftest.$ac_objext \
30485 conftest$ac_exeext conftest.$ac_ext
30487 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30488 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30489 if test $ac_cv_func_mprotect = yes; then
30492 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30493 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30494 { (exit 1); exit 1; }; }
30498 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30500 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30501 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30503 if test "$ac_cv_func_mmap_file" = "no"
30505 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30506 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30510 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30511 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30512 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30513 echo $ECHO_N "(cached) $ECHO_C" >&6
30515 llvm_cv_llvmgcc_sanity="no"
30516 if test -x "$LLVMGCC" ; then
30517 cp /dev/null conftest.c
30518 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30519 if test $? -eq 0 ; then
30520 llvm_cv_llvmgcc_sanity="yes"
30525 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30526 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30528 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30529 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30530 LLVMCC1=$llvmcc1path
30532 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30533 LLVMCC1PLUS=$llvmcc1pluspath
30535 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30536 LLVMGCCDIR=$llvmgccdir
30540 SHLIBEXT=$libltdl_cv_shlibext
30543 # Translate the various configuration directories and other basic
30544 # information into substitutions that will end up in Makefile.config.in
30545 # that these configured values can be used by the makefiles
30546 eval LLVM_PREFIX="${prefix}";
30547 eval LLVM_BINDIR="${prefix}/bin";
30548 eval LLVM_LIBDIR="${prefix}/lib";
30549 eval LLVM_DATADIR="${prefix}/share/llvm";
30550 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30551 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30552 eval LLVM_INCLUDEDIR="${prefix}/include";
30553 eval LLVM_INFODIR="${prefix}/info";
30554 eval LLVM_MANDIR="${prefix}/man";
30555 LLVM_CONFIGTIME=`date`
30567 # Place the various directores into the config.h file as #defines so that we
30568 # can know about the installation paths within LLVM.
30570 cat >>confdefs.h <<_ACEOF
30571 #define LLVM_PREFIX "$LLVM_PREFIX"
30575 cat >>confdefs.h <<_ACEOF
30576 #define LLVM_BINDIR "$LLVM_BINDIR"
30580 cat >>confdefs.h <<_ACEOF
30581 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30585 cat >>confdefs.h <<_ACEOF
30586 #define LLVM_DATADIR "$LLVM_DATADIR"
30590 cat >>confdefs.h <<_ACEOF
30591 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30595 cat >>confdefs.h <<_ACEOF
30596 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30600 cat >>confdefs.h <<_ACEOF
30601 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30605 cat >>confdefs.h <<_ACEOF
30606 #define LLVM_INFODIR "$LLVM_INFODIR"
30610 cat >>confdefs.h <<_ACEOF
30611 #define LLVM_MANDIR "$LLVM_MANDIR"
30615 cat >>confdefs.h <<_ACEOF
30616 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30621 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30623 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30625 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30627 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30629 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30632 ac_config_files="$ac_config_files Makefile.config"
30635 ac_config_files="$ac_config_files docs/doxygen.cfg"
30638 ac_config_commands="$ac_config_commands setup"
30640 ac_config_commands="$ac_config_commands Makefile"
30643 ac_config_commands="$ac_config_commands Makefile.common"
30646 ac_config_commands="$ac_config_commands examples/Makefile"
30649 ac_config_commands="$ac_config_commands lib/Makefile"
30652 ac_config_commands="$ac_config_commands runtime/Makefile"
30655 ac_config_commands="$ac_config_commands test/Makefile"
30658 ac_config_commands="$ac_config_commands test/Makefile.tests"
30661 ac_config_commands="$ac_config_commands tools/Makefile"
30664 ac_config_commands="$ac_config_commands utils/Makefile"
30667 ac_config_commands="$ac_config_commands projects/Makefile"
30671 cat >confcache <<\_ACEOF
30672 # This file is a shell script that caches the results of configure
30673 # tests run on this system so they can be shared between configure
30674 # scripts and configure runs, see configure's option --config-cache.
30675 # It is not useful on other systems. If it contains results you don't
30676 # want to keep, you may remove or edit it.
30678 # config.status only pays attention to the cache file if you give it
30679 # the --recheck option to rerun configure.
30681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30683 # following values.
30687 # The following way of writing the cache mishandles newlines in values,
30688 # but we know of no workaround that is simple, portable, and efficient.
30689 # So, don't put newlines in cache variables' values.
30690 # Ultrix sh set writes to stderr and can't be redirected directly,
30691 # and sets the high bit in the cache file unless we assign to the vars.
30694 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30696 # `set' does not quote correctly, so add quotes (double-quote
30697 # substitution turns \\\\ into \\, and sed turns \\ into \).
30700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30703 # `set' quotes correctly as required by POSIX, so do not add quotes.
30705 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30712 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30714 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30716 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30717 if test -w $cache_file; then
30718 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30719 cat confcache >$cache_file
30721 echo "not updating unwritable cache $cache_file"
30726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30727 # Let make expand exec_prefix.
30728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30730 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30731 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30732 # trailing colons and then remove the whole line if VPATH becomes empty
30733 # (actually we leave an empty line to preserve line numbers).
30734 if test "x$srcdir" = x.; then
30735 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30736 s/:*\$(srcdir):*/:/;
30737 s/:*\${srcdir}:*/:/;
30739 s/^\([^=]*=[ ]*\):*/\1/;
30745 DEFS=-DHAVE_CONFIG_H
30749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30750 # 1. Remove the extension, and $U if already installed.
30751 ac_i=`echo "$ac_i" |
30752 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30754 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30755 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30757 LIBOBJS=$ac_libobjs
30759 LTLIBOBJS=$ac_ltlibobjs
30762 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30763 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30764 Usually this means the macro was only invoked conditionally." >&5
30765 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30766 Usually this means the macro was only invoked conditionally." >&2;}
30767 { (exit 1); exit 1; }; }
30769 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30770 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30771 Usually this means the macro was only invoked conditionally." >&5
30772 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30773 Usually this means the macro was only invoked conditionally." >&2;}
30774 { (exit 1); exit 1; }; }
30777 : ${CONFIG_STATUS=./config.status}
30778 ac_clean_files_save=$ac_clean_files
30779 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30780 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30781 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30782 cat >$CONFIG_STATUS <<_ACEOF
30784 # Generated by $as_me.
30785 # Run this file to recreate the current configuration.
30786 # Compiler output produced by configure, useful for debugging
30787 # configure, is in config.log if it exists.
30790 ac_cs_recheck=false
30792 SHELL=\${CONFIG_SHELL-$SHELL}
30795 cat >>$CONFIG_STATUS <<\_ACEOF
30796 ## --------------------- ##
30797 ## M4sh Initialization. ##
30798 ## --------------------- ##
30800 # Be Bourne compatible
30801 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30804 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30805 # is contrary to our usage. Disable this feature.
30806 alias -g '${1+"$@"}'='"$@"'
30807 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30810 DUALCASE=1; export DUALCASE # for MKS sh
30812 # Support unset when possible.
30813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30820 # Work around bugs in pre-3.0 UWIN ksh.
30821 $as_unset ENV MAIL MAILPATH
30828 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30829 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30830 LC_TELEPHONE LC_TIME
30832 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30833 eval $as_var=C; export $as_var
30839 # Required to use basename.
30840 if expr a : '\(a\)' >/dev/null 2>&1; then
30846 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30847 as_basename=basename
30853 # Name of the executable.
30854 as_me=`$as_basename "$0" ||
30855 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30856 X"$0" : 'X\(//\)$' \| \
30857 X"$0" : 'X\(/\)$' \| \
30858 . : '\(.\)' 2>/dev/null ||
30860 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30861 /^X\/\(\/\/\)$/{ s//\1/; q; }
30862 /^X\/\(\/\).*/{ s//\1/; q; }
30866 # PATH needs CR, and LINENO needs CR and PATH.
30867 # Avoid depending upon Character Ranges.
30868 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30869 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30870 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30871 as_cr_digits='0123456789'
30872 as_cr_alnum=$as_cr_Letters$as_cr_digits
30874 # The user is always right.
30875 if test "${PATH_SEPARATOR+set}" != set; then
30876 echo "#! /bin/sh" >conf$$.sh
30877 echo "exit 0" >>conf$$.sh
30879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30888 as_lineno_1=$LINENO
30889 as_lineno_2=$LINENO
30890 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30891 test "x$as_lineno_1" != "x$as_lineno_2" &&
30892 test "x$as_lineno_3" = "x$as_lineno_2" || {
30893 # Find who we are. Look in the path if we contain no path at all
30896 *[\\/]* ) as_myself=$0 ;;
30897 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30898 for as_dir in $PATH
30901 test -z "$as_dir" && as_dir=.
30902 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30907 # We did not find ourselves, most probably we were run as `sh COMMAND'
30908 # in which case we are not to be found in the path.
30909 if test "x$as_myself" = x; then
30912 if test ! -f "$as_myself"; then
30913 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30914 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30915 { (exit 1); exit 1; }; }
30917 case $CONFIG_SHELL in
30919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30920 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30923 test -z "$as_dir" && as_dir=.
30924 for as_base in sh bash ksh sh5; do
30927 if ("$as_dir/$as_base" -c '
30928 as_lineno_1=$LINENO
30929 as_lineno_2=$LINENO
30930 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30931 test "x$as_lineno_1" != "x$as_lineno_2" &&
30932 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30933 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30934 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30935 CONFIG_SHELL=$as_dir/$as_base
30936 export CONFIG_SHELL
30937 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30945 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30946 # uniformly replaced by the line number. The first 'sed' inserts a
30947 # line-number line before each line; the second 'sed' does the real
30948 # work. The second script uses 'N' to pair each line-number line
30949 # with the numbered line, and appends trailing '-' during
30950 # substitution so that $LINENO is not a special case at line end.
30951 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30952 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30953 sed '=' <$as_myself |
30958 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30961 s,^['$as_cr_digits']*\n,,
30962 ' >$as_me.lineno &&
30963 chmod +x $as_me.lineno ||
30964 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30965 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30966 { (exit 1); exit 1; }; }
30968 # Don't try to exec as it changes $[0], causing all sort of problems
30969 # (the dirname of $[0] is not the place where we might find the
30970 # original and so on. Autoconf is especially sensible to this).
30972 # Exit status is that of the last command.
30977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30978 *c*,-n*) ECHO_N= ECHO_C='
30980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30984 if expr a : '\(a\)' >/dev/null 2>&1; then
30990 rm -f conf$$ conf$$.exe conf$$.file
30992 if ln -s conf$$.file conf$$ 2>/dev/null; then
30993 # We could just check for DJGPP; but this test a) works b) is more generic
30994 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30995 if test -f conf$$.exe; then
30996 # Don't use ln at all; we don't have any links
31001 elif ln conf$$.file conf$$ 2>/dev/null; then
31006 rm -f conf$$ conf$$.exe conf$$.file
31008 if mkdir -p . 2>/dev/null; then
31011 test -d ./-p && rmdir ./-p
31015 as_executable_p="test -f"
31017 # Sed expression to map a string onto a valid CPP name.
31018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31020 # Sed expression to map a string onto a valid variable name.
31021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31025 # We need space, tab and new line, in precisely that order.
31035 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31036 # report actual input values of CONFIG_FILES etc. instead of their
31037 # values after options handling. Logging --version etc. is OK.
31041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31042 ## Running $as_me. ##
31047 This file was extended by llvm $as_me 1.6cvs, which was
31048 generated by GNU Autoconf 2.59. Invocation command line was
31050 CONFIG_FILES = $CONFIG_FILES
31051 CONFIG_HEADERS = $CONFIG_HEADERS
31052 CONFIG_LINKS = $CONFIG_LINKS
31053 CONFIG_COMMANDS = $CONFIG_COMMANDS
31057 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31061 # Files that config.status was made for.
31062 if test -n "$ac_config_files"; then
31063 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31066 if test -n "$ac_config_headers"; then
31067 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31070 if test -n "$ac_config_links"; then
31071 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31074 if test -n "$ac_config_commands"; then
31075 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31078 cat >>$CONFIG_STATUS <<\_ACEOF
31081 \`$as_me' instantiates files from templates according to the
31082 current configuration.
31084 Usage: $0 [OPTIONS] [FILE]...
31086 -h, --help print this help, then exit
31087 -V, --version print version number, then exit
31088 -q, --quiet do not print progress messages
31089 -d, --debug don't remove temporary files
31090 --recheck update $as_me by reconfiguring in the same conditions
31091 --file=FILE[:TEMPLATE]
31092 instantiate the configuration file FILE
31093 --header=FILE[:TEMPLATE]
31094 instantiate the configuration header FILE
31096 Configuration files:
31099 Configuration headers:
31102 Configuration commands:
31105 Report bugs to <bug-autoconf@gnu.org>."
31108 cat >>$CONFIG_STATUS <<_ACEOF
31110 llvm config.status 1.6cvs
31111 configured by $0, generated by GNU Autoconf 2.59,
31112 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31114 Copyright (C) 2003 Free Software Foundation, Inc.
31115 This config.status script is free software; the Free Software Foundation
31116 gives unlimited permission to copy, distribute and modify it."
31121 cat >>$CONFIG_STATUS <<\_ACEOF
31122 # If no file are specified by the user, then we need to provide default
31123 # value. By we need to know if files were specified by the user.
31129 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31130 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31138 *) # This is not an option, so the user has probably given explicit
31141 ac_need_defaults=false;;
31145 # Handling of the options.
31147 cat >>$CONFIG_STATUS <<\_ACEOF
31148 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31150 --version | --vers* | -V )
31151 echo "$ac_cs_version"; exit 0 ;;
31153 # Conflict between --help and --header
31154 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31155 Try \`$0 --help' for more information." >&5
31156 echo "$as_me: error: ambiguous option: $1
31157 Try \`$0 --help' for more information." >&2;}
31158 { (exit 1); exit 1; }; };;
31159 --help | --hel | -h )
31160 echo "$ac_cs_usage"; exit 0 ;;
31161 --debug | --d* | -d )
31163 --file | --fil | --fi | --f )
31165 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31166 ac_need_defaults=false;;
31167 --header | --heade | --head | --hea )
31169 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31170 ac_need_defaults=false;;
31171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31172 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31175 # This is an error.
31176 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31177 Try \`$0 --help' for more information." >&5
31178 echo "$as_me: error: unrecognized option: $1
31179 Try \`$0 --help' for more information." >&2;}
31180 { (exit 1); exit 1; }; } ;;
31182 *) ac_config_targets="$ac_config_targets $1" ;;
31188 ac_configure_extra_args=
31190 if $ac_cs_silent; then
31192 ac_configure_extra_args="$ac_configure_extra_args --silent"
31196 cat >>$CONFIG_STATUS <<_ACEOF
31197 if \$ac_cs_recheck; then
31198 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31199 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31204 cat >>$CONFIG_STATUS <<_ACEOF
31206 # INIT-COMMANDS section.
31209 llvm_src="${srcdir}"
31215 cat >>$CONFIG_STATUS <<\_ACEOF
31216 for ac_config_target in $ac_config_targets
31218 case "$ac_config_target" in
31219 # Handling of arguments.
31220 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31221 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31222 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31223 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31224 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31225 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31226 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31227 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31228 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31229 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31230 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31231 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31232 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31233 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31234 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31235 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31236 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31237 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31238 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31239 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31240 { (exit 1); exit 1; }; };;
31244 # If the user did not use the arguments to specify the items to instantiate,
31245 # then the envvar interface is used. Set only those that are not.
31246 # We use the long form for the default assignment because of an extremely
31247 # bizarre bug on SunOS 4.1.3.
31248 if $ac_need_defaults; then
31249 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31250 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31251 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31254 # Have a temporary directory for convenience. Make it in the build tree
31255 # simply because there is no reason to put it here, and in addition,
31256 # creating and moving files from /tmp can sometimes cause problems.
31257 # Create a temporary directory, and hook for its removal unless debugging.
31260 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31261 trap '{ (exit 1); exit 1; }' 1 2 13 15
31264 # Create a (secure) tmp directory for tmp files.
31267 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31268 test -n "$tmp" && test -d "$tmp"
31271 tmp=./confstat$$-$RANDOM
31272 (umask 077 && mkdir $tmp)
31275 echo "$me: cannot create a temporary directory in ." >&2
31276 { (exit 1); exit 1; }
31281 cat >>$CONFIG_STATUS <<_ACEOF
31284 # CONFIG_FILES section.
31287 # No need to generate the scripts if there are no CONFIG_FILES.
31288 # This happens for instance when ./config.status config.h
31289 if test -n "\$CONFIG_FILES"; then
31290 # Protect against being on the right side of a sed subst in config.status.
31291 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31292 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31293 s,@SHELL@,$SHELL,;t t
31294 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31295 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31296 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31297 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31298 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31299 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31300 s,@exec_prefix@,$exec_prefix,;t t
31301 s,@prefix@,$prefix,;t t
31302 s,@program_transform_name@,$program_transform_name,;t t
31303 s,@bindir@,$bindir,;t t
31304 s,@sbindir@,$sbindir,;t t
31305 s,@libexecdir@,$libexecdir,;t t
31306 s,@datadir@,$datadir,;t t
31307 s,@sysconfdir@,$sysconfdir,;t t
31308 s,@sharedstatedir@,$sharedstatedir,;t t
31309 s,@localstatedir@,$localstatedir,;t t
31310 s,@libdir@,$libdir,;t t
31311 s,@includedir@,$includedir,;t t
31312 s,@oldincludedir@,$oldincludedir,;t t
31313 s,@infodir@,$infodir,;t t
31314 s,@mandir@,$mandir,;t t
31315 s,@build_alias@,$build_alias,;t t
31316 s,@host_alias@,$host_alias,;t t
31317 s,@target_alias@,$target_alias,;t t
31318 s,@DEFS@,$DEFS,;t t
31319 s,@ECHO_C@,$ECHO_C,;t t
31320 s,@ECHO_N@,$ECHO_N,;t t
31321 s,@ECHO_T@,$ECHO_T,;t t
31322 s,@LIBS@,$LIBS,;t t
31323 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31324 s,@subdirs@,$subdirs,;t t
31325 s,@build@,$build,;t t
31326 s,@build_cpu@,$build_cpu,;t t
31327 s,@build_vendor@,$build_vendor,;t t
31328 s,@build_os@,$build_os,;t t
31329 s,@host@,$host,;t t
31330 s,@host_cpu@,$host_cpu,;t t
31331 s,@host_vendor@,$host_vendor,;t t
31332 s,@host_os@,$host_os,;t t
31333 s,@target@,$target,;t t
31334 s,@target_cpu@,$target_cpu,;t t
31335 s,@target_vendor@,$target_vendor,;t t
31336 s,@target_os@,$target_os,;t t
31338 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31339 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31340 s,@ARCH@,$ARCH,;t t
31341 s,@ENDIAN@,$ENDIAN,;t t
31343 s,@CFLAGS@,$CFLAGS,;t t
31344 s,@LDFLAGS@,$LDFLAGS,;t t
31345 s,@CPPFLAGS@,$CPPFLAGS,;t t
31346 s,@ac_ct_CC@,$ac_ct_CC,;t t
31347 s,@EXEEXT@,$EXEEXT,;t t
31348 s,@OBJEXT@,$OBJEXT,;t t
31349 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31351 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31352 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31353 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31356 s,@CXXFLAGS@,$CXXFLAGS,;t t
31357 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31359 s,@LEXLIB@,$LEXLIB,;t t
31360 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31361 s,@FLEX@,$FLEX,;t t
31362 s,@YACC@,$YACC,;t t
31363 s,@BISON@,$BISON,;t t
31364 s,@ifGNUmake@,$ifGNUmake,;t t
31365 s,@LN_S@,$LN_S,;t t
31368 s,@DATE@,$DATE,;t t
31369 s,@FIND@,$FIND,;t t
31370 s,@GREP@,$GREP,;t t
31371 s,@MKDIR@,$MKDIR,;t t
31373 s,@RANLIB@,$RANLIB,;t t
31374 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31378 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31380 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31381 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31382 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31383 s,@BZIP2@,$BZIP2,;t t
31385 s,@DOXYGEN@,$DOXYGEN,;t t
31386 s,@ETAGS@,$ETAGS,;t t
31387 s,@GROFF@,$GROFF,;t t
31388 s,@GZIP@,$GZIP,;t t
31389 s,@POD2HTML@,$POD2HTML,;t t
31390 s,@POD2MAN@,$POD2MAN,;t t
31391 s,@RUNTEST@,$RUNTEST,;t t
31392 s,@TCLSH@,$TCLSH,;t t
31394 s,@EGREP@,$EGREP,;t t
31395 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31396 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31397 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31398 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31399 s,@LIBADD_DL@,$LIBADD_DL,;t t
31400 s,@ECHO@,$ECHO,;t t
31402 s,@ac_ct_AR@,$ac_ct_AR,;t t
31403 s,@STRIP@,$STRIP,;t t
31404 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31405 s,@CXXCPP@,$CXXCPP,;t t
31407 s,@FFLAGS@,$FFLAGS,;t t
31408 s,@ac_ct_F77@,$ac_ct_F77,;t t
31409 s,@LIBTOOL@,$LIBTOOL,;t t
31410 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31411 s,@LLVMGCC@,$LLVMGCC,;t t
31412 s,@LLVMGXX@,$LLVMGXX,;t t
31413 s,@ALLOCA@,$ALLOCA,;t t
31414 s,@MMAP_FILE@,$MMAP_FILE,;t t
31415 s,@LLVMCC1@,$LLVMCC1,;t t
31416 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31417 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31418 s,@SHLIBEXT@,$SHLIBEXT,;t t
31419 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31420 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31421 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31422 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31423 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31424 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31425 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31426 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31427 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31428 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31429 s,@LIBOBJS@,$LIBOBJS,;t t
31430 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31435 cat >>$CONFIG_STATUS <<\_ACEOF
31436 # Split the substitutions into bite-sized pieces for seds with
31437 # small command number limits, like on Digital OSF/1 and HP-UX.
31438 ac_max_sed_lines=48
31439 ac_sed_frag=1 # Number of current file.
31440 ac_beg=1 # First line for current file.
31441 ac_end=$ac_max_sed_lines # Line after last line for current file.
31444 while $ac_more_lines; do
31445 if test $ac_beg -gt 1; then
31446 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31448 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31450 if test ! -s $tmp/subs.frag; then
31451 ac_more_lines=false
31453 # The purpose of the label and of the branching condition is to
31454 # speed up the sed processing (if there are no `@' at all, there
31455 # is no need to browse any of the substitutions).
31456 # These are the two extra sed commands mentioned above.
31458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31459 if test -z "$ac_sed_cmds"; then
31460 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31462 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31464 ac_sed_frag=`expr $ac_sed_frag + 1`
31466 ac_end=`expr $ac_end + $ac_max_sed_lines`
31469 if test -z "$ac_sed_cmds"; then
31472 fi # test -n "$CONFIG_FILES"
31475 cat >>$CONFIG_STATUS <<\_ACEOF
31476 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31477 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31479 - | *:- | *:-:* ) # input from stdin
31481 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31483 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31484 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31485 * ) ac_file_in=$ac_file.in ;;
31488 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31489 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31491 X"$ac_file" : 'X\(//\)[^/]' \| \
31492 X"$ac_file" : 'X\(//\)$' \| \
31493 X"$ac_file" : 'X\(/\)' \| \
31494 . : '\(.\)' 2>/dev/null ||
31496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31498 /^X\(\/\/\)$/{ s//\1/; q; }
31499 /^X\(\/\).*/{ s//\1/; q; }
31501 { if $as_mkdir_p; then
31506 while test ! -d "$as_dir"; do
31507 as_dirs="$as_dir $as_dirs"
31508 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31510 X"$as_dir" : 'X\(//\)[^/]' \| \
31511 X"$as_dir" : 'X\(//\)$' \| \
31512 X"$as_dir" : 'X\(/\)' \| \
31513 . : '\(.\)' 2>/dev/null ||
31515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31517 /^X\(\/\/\)$/{ s//\1/; q; }
31518 /^X\(\/\).*/{ s//\1/; q; }
31521 test ! -n "$as_dirs" || mkdir $as_dirs
31522 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31523 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31524 { (exit 1); exit 1; }; }; }
31528 if test "$ac_dir" != .; then
31529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31530 # A "../" for each directory in $ac_dir_suffix.
31531 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31533 ac_dir_suffix= ac_top_builddir=
31537 .) # No --srcdir option. We are building in place.
31539 if test -z "$ac_top_builddir"; then
31542 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31544 [\\/]* | ?:[\\/]* ) # Absolute path.
31545 ac_srcdir=$srcdir$ac_dir_suffix;
31546 ac_top_srcdir=$srcdir ;;
31547 *) # Relative path.
31548 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31549 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31552 # Do not use `cd foo && pwd` to compute absolute paths, because
31553 # the directories may not exist.
31555 .) ac_abs_builddir="$ac_dir";;
31558 .) ac_abs_builddir=`pwd`;;
31559 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31560 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31563 case $ac_abs_builddir in
31564 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31566 case ${ac_top_builddir}. in
31567 .) ac_abs_top_builddir=$ac_abs_builddir;;
31568 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31569 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31572 case $ac_abs_builddir in
31573 .) ac_abs_srcdir=$ac_srcdir;;
31576 .) ac_abs_srcdir=$ac_abs_builddir;;
31577 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31578 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31581 case $ac_abs_builddir in
31582 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31584 case $ac_top_srcdir in
31585 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31586 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31587 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31594 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31597 if test x"$ac_file" != x-; then
31598 { echo "$as_me:$LINENO: creating $ac_file" >&5
31599 echo "$as_me: creating $ac_file" >&6;}
31602 # Let's still pretend it is `configure' which instantiates (i.e., don't
31603 # use $as_me), people would be surprised to read:
31604 # /* config.h. Generated by config.status. */
31605 if test x"$ac_file" = x-; then
31608 configure_input="$ac_file. "
31610 configure_input=$configure_input"Generated from `echo $ac_file_in |
31611 sed 's,.*/,,'` by configure."
31613 # First look for the input files in the build tree, otherwise in the
31615 ac_file_inputs=`IFS=:
31616 for f in $ac_file_in; do
31618 -) echo $tmp/stdin ;;
31620 # Absolute (can't be DOS-style, as IFS=:)
31621 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31622 echo "$as_me: error: cannot find input file: $f" >&2;}
31623 { (exit 1); exit 1; }; }
31626 if test -f "$f"; then
31629 elif test -f "$srcdir/$f"; then
31634 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31635 echo "$as_me: error: cannot find input file: $f" >&2;}
31636 { (exit 1); exit 1; }; }
31639 done` || { (exit 1); exit 1; }
31641 cat >>$CONFIG_STATUS <<_ACEOF
31645 cat >>$CONFIG_STATUS <<\_ACEOF
31647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31648 s,@configure_input@,$configure_input,;t t
31649 s,@srcdir@,$ac_srcdir,;t t
31650 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31651 s,@top_srcdir@,$ac_top_srcdir,;t t
31652 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31653 s,@builddir@,$ac_builddir,;t t
31654 s,@abs_builddir@,$ac_abs_builddir,;t t
31655 s,@top_builddir@,$ac_top_builddir,;t t
31656 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31657 s,@INSTALL@,$ac_INSTALL,;t t
31658 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31660 if test x"$ac_file" != x-; then
31661 mv $tmp/out $ac_file
31669 cat >>$CONFIG_STATUS <<\_ACEOF
31672 # CONFIG_HEADER section.
31675 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31676 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31678 # ac_d sets the value in "#define NAME VALUE" lines.
31679 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31680 ac_dB='[ ].*$,\1#\2'
31683 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31684 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31685 ac_uB='$,\1#\2define\3'
31689 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31690 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31692 - | *:- | *:-:* ) # input from stdin
31694 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31695 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31696 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31697 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31698 * ) ac_file_in=$ac_file.in ;;
31701 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31702 echo "$as_me: creating $ac_file" >&6;}
31704 # First look for the input files in the build tree, otherwise in the
31706 ac_file_inputs=`IFS=:
31707 for f in $ac_file_in; do
31709 -) echo $tmp/stdin ;;
31711 # Absolute (can't be DOS-style, as IFS=:)
31712 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31713 echo "$as_me: error: cannot find input file: $f" >&2;}
31714 { (exit 1); exit 1; }; }
31715 # Do quote $f, to prevent DOS paths from being IFS'd.
31718 if test -f "$f"; then
31721 elif test -f "$srcdir/$f"; then
31726 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31727 echo "$as_me: error: cannot find input file: $f" >&2;}
31728 { (exit 1); exit 1; }; }
31731 done` || { (exit 1); exit 1; }
31732 # Remove the trailing spaces.
31733 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31737 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31738 # `conftest.undefs', that substitutes the proper values into
31739 # config.h.in to produce config.h. The first handles `#define'
31740 # templates, and the second `#undef' templates.
31741 # And first: Protect against being on the right side of a sed subst in
31742 # config.status. Protect against being in an unquoted here document
31743 # in config.status.
31744 rm -f conftest.defines conftest.undefs
31745 # Using a here document instead of a string reduces the quoting nightmare.
31746 # Putting comments in sed scripts is not portable.
31748 # `end' is used to avoid that the second main sed command (meant for
31749 # 0-ary CPP macros) applies to n-ary macro definitions.
31750 # See the Autoconf documentation for `clear'.
31751 cat >confdef2sed.sed <<\_ACEOF
31756 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31758 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31761 # If some macros were called several times there might be several times
31762 # the same #defines, which is useless. Nevertheless, we may not want to
31763 # sort them, since we want the *last* AC-DEFINE to be honored.
31764 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31765 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31766 rm -f confdef2sed.sed
31768 # This sed command replaces #undef with comments. This is necessary, for
31769 # example, in the case of _POSIX_SOURCE, which is predefined and required
31770 # on some systems where configure will not decide to define it.
31771 cat >>conftest.undefs <<\_ACEOF
31772 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31775 # Break up conftest.defines because some shells have a limit on the size
31776 # of here documents, and old seds have small limits too (100 cmds).
31777 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31778 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31779 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31780 echo ' :' >>$CONFIG_STATUS
31781 rm -f conftest.tail
31782 while grep . conftest.defines >/dev/null
31784 # Write a limited-size here document to $tmp/defines.sed.
31785 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31786 # Speed up: don't consider the non `#define' lines.
31787 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31788 # Work around the forget-to-reset-the-flag bug.
31789 echo 't clr' >>$CONFIG_STATUS
31790 echo ': clr' >>$CONFIG_STATUS
31791 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31793 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31795 mv $tmp/out $tmp/in
31797 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31798 rm -f conftest.defines
31799 mv conftest.tail conftest.defines
31801 rm -f conftest.defines
31802 echo ' fi # grep' >>$CONFIG_STATUS
31803 echo >>$CONFIG_STATUS
31805 # Break up conftest.undefs because some shells have a limit on the size
31806 # of here documents, and old seds have small limits too (100 cmds).
31807 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31808 rm -f conftest.tail
31809 while grep . conftest.undefs >/dev/null
31811 # Write a limited-size here document to $tmp/undefs.sed.
31812 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31813 # Speed up: don't consider the non `#undef'
31814 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31815 # Work around the forget-to-reset-the-flag bug.
31816 echo 't clr' >>$CONFIG_STATUS
31817 echo ': clr' >>$CONFIG_STATUS
31818 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31820 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31822 mv $tmp/out $tmp/in
31824 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31825 rm -f conftest.undefs
31826 mv conftest.tail conftest.undefs
31828 rm -f conftest.undefs
31830 cat >>$CONFIG_STATUS <<\_ACEOF
31831 # Let's still pretend it is `configure' which instantiates (i.e., don't
31832 # use $as_me), people would be surprised to read:
31833 # /* config.h. Generated by config.status. */
31834 if test x"$ac_file" = x-; then
31835 echo "/* Generated by configure. */" >$tmp/config.h
31837 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31839 cat $tmp/in >>$tmp/config.h
31841 if test x"$ac_file" != x-; then
31842 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31843 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31844 echo "$as_me: $ac_file is unchanged" >&6;}
31846 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31848 X"$ac_file" : 'X\(//\)[^/]' \| \
31849 X"$ac_file" : 'X\(//\)$' \| \
31850 X"$ac_file" : 'X\(/\)' \| \
31851 . : '\(.\)' 2>/dev/null ||
31853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31855 /^X\(\/\/\)$/{ s//\1/; q; }
31856 /^X\(\/\).*/{ s//\1/; q; }
31858 { if $as_mkdir_p; then
31863 while test ! -d "$as_dir"; do
31864 as_dirs="$as_dir $as_dirs"
31865 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31867 X"$as_dir" : 'X\(//\)[^/]' \| \
31868 X"$as_dir" : 'X\(//\)$' \| \
31869 X"$as_dir" : 'X\(/\)' \| \
31870 . : '\(.\)' 2>/dev/null ||
31872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31874 /^X\(\/\/\)$/{ s//\1/; q; }
31875 /^X\(\/\).*/{ s//\1/; q; }
31878 test ! -n "$as_dirs" || mkdir $as_dirs
31879 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31881 { (exit 1); exit 1; }; }; }
31884 mv $tmp/config.h $ac_file
31888 rm -f $tmp/config.h
31892 cat >>$CONFIG_STATUS <<\_ACEOF
31895 # CONFIG_COMMANDS section.
31897 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31898 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31899 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31900 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31901 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31902 X"$ac_dest" : 'X\(//\)[^/]' \| \
31903 X"$ac_dest" : 'X\(//\)$' \| \
31904 X"$ac_dest" : 'X\(/\)' \| \
31905 . : '\(.\)' 2>/dev/null ||
31907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31909 /^X\(\/\/\)$/{ s//\1/; q; }
31910 /^X\(\/\).*/{ s//\1/; q; }
31912 { if $as_mkdir_p; then
31917 while test ! -d "$as_dir"; do
31918 as_dirs="$as_dir $as_dirs"
31919 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31921 X"$as_dir" : 'X\(//\)[^/]' \| \
31922 X"$as_dir" : 'X\(//\)$' \| \
31923 X"$as_dir" : 'X\(/\)' \| \
31924 . : '\(.\)' 2>/dev/null ||
31926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31928 /^X\(\/\/\)$/{ s//\1/; q; }
31929 /^X\(\/\).*/{ s//\1/; q; }
31932 test ! -n "$as_dirs" || mkdir $as_dirs
31933 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31934 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31935 { (exit 1); exit 1; }; }; }
31939 if test "$ac_dir" != .; then
31940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31941 # A "../" for each directory in $ac_dir_suffix.
31942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31944 ac_dir_suffix= ac_top_builddir=
31948 .) # No --srcdir option. We are building in place.
31950 if test -z "$ac_top_builddir"; then
31953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31955 [\\/]* | ?:[\\/]* ) # Absolute path.
31956 ac_srcdir=$srcdir$ac_dir_suffix;
31957 ac_top_srcdir=$srcdir ;;
31958 *) # Relative path.
31959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31963 # Do not use `cd foo && pwd` to compute absolute paths, because
31964 # the directories may not exist.
31966 .) ac_abs_builddir="$ac_dir";;
31969 .) ac_abs_builddir=`pwd`;;
31970 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31971 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31974 case $ac_abs_builddir in
31975 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31977 case ${ac_top_builddir}. in
31978 .) ac_abs_top_builddir=$ac_abs_builddir;;
31979 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31980 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31983 case $ac_abs_builddir in
31984 .) ac_abs_srcdir=$ac_srcdir;;
31987 .) ac_abs_srcdir=$ac_abs_builddir;;
31988 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31989 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31992 case $ac_abs_builddir in
31993 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31995 case $ac_top_srcdir in
31996 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31997 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31998 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32003 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32004 echo "$as_me: executing $ac_dest commands" >&6;}
32006 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32007 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32008 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32009 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32010 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32011 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32012 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32013 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32014 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32015 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32016 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32017 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32018 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32019 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32020 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32021 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32022 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32023 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32024 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32025 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32030 cat >>$CONFIG_STATUS <<\_ACEOF
32032 { (exit 0); exit 0; }
32034 chmod +x $CONFIG_STATUS
32035 ac_clean_files=$ac_clean_files_save
32038 # configure is writing to config.log, and then calls config.status.
32039 # config.status does its own redirection, appending to config.log.
32040 # Unfortunately, on DOS this fails, as config.log is still kept open
32041 # by configure, so config.status won't be able to write to it; its
32042 # output is simply discarded. So we exec the FD to /dev/null,
32043 # effectively closing config.log, so it can be properly (re)opened and
32044 # appended to by config.status. When coming back to configure, we
32045 # need to make the FD available again.
32046 if test "$no_create" != yes; then
32048 ac_config_status_args=
32049 test "$silent" = yes &&
32050 ac_config_status_args="$ac_config_status_args --quiet"
32052 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32054 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32055 # would make configure fail if this is the last instruction.
32056 $ac_cs_success || { (exit 1); exit 1; }
32060 # CONFIG_SUBDIRS section.
32062 if test "$no_recursion" != yes; then
32064 # Remove --cache-file and --srcdir arguments so they do not pile up.
32065 ac_sub_configure_args=
32067 for ac_arg in $ac_configure_args; do
32068 if test -n "$ac_prev"; then
32073 -cache-file | --cache-file | --cache-fil | --cache-fi \
32074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32075 ac_prev=cache_file ;;
32076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32080 --config-cache | -C)
32082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32090 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32094 # Always prepend --prefix to ensure using the same prefix
32095 # in subdir configurations.
32096 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32099 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32101 # Do not complain, so a configure script can configure whichever
32102 # parts of a large source tree are present.
32103 test -d $srcdir/$ac_dir || continue
32105 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32106 echo "$as_me: configuring in $ac_dir" >&6;}
32107 { if $as_mkdir_p; then
32112 while test ! -d "$as_dir"; do
32113 as_dirs="$as_dir $as_dirs"
32114 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32116 X"$as_dir" : 'X\(//\)[^/]' \| \
32117 X"$as_dir" : 'X\(//\)$' \| \
32118 X"$as_dir" : 'X\(/\)' \| \
32119 . : '\(.\)' 2>/dev/null ||
32121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32123 /^X\(\/\/\)$/{ s//\1/; q; }
32124 /^X\(\/\).*/{ s//\1/; q; }
32127 test ! -n "$as_dirs" || mkdir $as_dirs
32128 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32129 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32130 { (exit 1); exit 1; }; }; }
32134 if test "$ac_dir" != .; then
32135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32136 # A "../" for each directory in $ac_dir_suffix.
32137 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32139 ac_dir_suffix= ac_top_builddir=
32143 .) # No --srcdir option. We are building in place.
32145 if test -z "$ac_top_builddir"; then
32148 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32150 [\\/]* | ?:[\\/]* ) # Absolute path.
32151 ac_srcdir=$srcdir$ac_dir_suffix;
32152 ac_top_srcdir=$srcdir ;;
32153 *) # Relative path.
32154 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32155 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32158 # Do not use `cd foo && pwd` to compute absolute paths, because
32159 # the directories may not exist.
32161 .) ac_abs_builddir="$ac_dir";;
32164 .) ac_abs_builddir=`pwd`;;
32165 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32166 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32169 case $ac_abs_builddir in
32170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32172 case ${ac_top_builddir}. in
32173 .) ac_abs_top_builddir=$ac_abs_builddir;;
32174 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32175 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32178 case $ac_abs_builddir in
32179 .) ac_abs_srcdir=$ac_srcdir;;
32182 .) ac_abs_srcdir=$ac_abs_builddir;;
32183 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32184 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32187 case $ac_abs_builddir in
32188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32190 case $ac_top_srcdir in
32191 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32192 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32193 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32200 # Check for guested configure; otherwise get Cygnus style configure.
32201 if test -f $ac_srcdir/configure.gnu; then
32202 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32203 elif test -f $ac_srcdir/configure; then
32204 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32205 elif test -f $ac_srcdir/configure.in; then
32206 ac_sub_configure=$ac_configure
32208 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32209 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32213 # The recursion is here.
32214 if test -n "$ac_sub_configure"; then
32215 # Make the cache file name correct relative to the subdirectory.
32216 case $cache_file in
32217 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32218 *) # Relative path.
32219 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32222 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32223 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32224 # The eval makes quoting arguments work.
32225 eval $ac_sub_configure $ac_sub_configure_args \
32226 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32227 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32228 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32229 { (exit 1); exit 1; }; }
32237 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32238 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32239 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32240 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32241 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32242 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32243 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32244 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32245 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32246 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32247 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}