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 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-target Build specific host targets:
1040 all,host-only,{target-name} (default=all)
1041 --enable-ltdl-install install libltdl
1042 --enable-shared[=PKGS]
1043 build shared libraries [default=yes]
1044 --enable-static[=PKGS]
1045 build static libraries [default=yes]
1046 --enable-fast-install[=PKGS]
1047 optimize for fast installation [default=yes]
1048 --disable-libtool-lock avoid locking (might break parallel builds)
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1053 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1055 --with-tclinclude directory where tcl headers are
1056 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057 --with-pic try to use only PIC/non-PIC objects [default=use
1060 include additional configurations [automatic]
1062 Some influential environment variables:
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
1070 CXX C++ compiler command
1071 CXXFLAGS C++ compiler flags
1072 CXXCPP C++ preprocessor
1073 F77 Fortran 77 compiler command
1074 FFLAGS Fortran 77 compiler flags
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1079 Report bugs to <llvmbugs@cs.uiuc.edu>.
1083 if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1090 if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095 ac_dir_suffix= ac_top_builddir=
1099 .) # No --srcdir option. We are building in place.
1101 if test -z "$ac_top_builddir"; then
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114 # Do not use `cd foo && pwd` to compute absolute paths, because
1115 # the directories may not exist.
1117 .) ac_abs_builddir="$ac_dir";;
1120 .) ac_abs_builddir=`pwd`;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 case ${ac_top_builddir}. in
1129 .) ac_abs_top_builddir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_srcdir=$ac_srcdir;;
1138 .) ac_abs_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143 case $ac_abs_builddir in
1144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 case $ac_top_srcdir in
1147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154 # Check for guested configure; otherwise get Cygnus style configure.
1155 if test -f $ac_srcdir/configure.gnu; then
1157 $SHELL $ac_srcdir/configure.gnu --help=recursive
1158 elif test -f $ac_srcdir/configure; then
1160 $SHELL $ac_srcdir/configure --help=recursive
1161 elif test -f $ac_srcdir/configure.ac ||
1162 test -f $ac_srcdir/configure.in; then
1164 $ac_configure --help
1166 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1172 test -n "$ac_init_help" && exit 0
1173 if $ac_init_version; then
1175 llvm configure 1.6cvs
1176 generated by GNU Autoconf 2.59
1178 Copyright (C) 2003 Free Software Foundation, Inc.
1179 This configure script is free software; the Free Software Foundation
1180 gives unlimited permission to copy, distribute and modify it.
1188 This file contains any messages produced by compilers while
1189 running configure, to aid debugging if configure makes a mistake.
1191 It was created by llvm $as_me 1.6cvs, which was
1192 generated by GNU Autoconf 2.59. Invocation command line was
1203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1212 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1213 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1216 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1217 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1218 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226 test -z "$as_dir" && as_dir=.
1227 echo "PATH: $as_dir"
1242 # Keep a trace of the command line.
1243 # Strip out --no-create and --no-recursion so they do not pile up.
1244 # Strip out --silent because we don't want to record it for future runs.
1245 # Also quote any args containing shell meta-characters.
1246 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_must_keep_next=false
1257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268 if test $ac_must_keep_next = true; then
1269 ac_must_keep_next=false # Got value, back to normal.
1272 *=* | --config-cache | -C | -disable-* | --disable-* \
1273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275 | -with-* | --with-* | -without-* | --without-* | --x)
1276 case "$ac_configure_args0 " in
1277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280 -* ) ac_must_keep_next=true ;;
1283 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284 # Get rid of the leading space.
1290 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293 # When interrupted or exit'd, cleanup temporary files, and complete
1294 # config.log. We remove comments because anyway the quotes in there
1295 # would cause problems or look ugly.
1296 # WARNING: Be sure not to use single quotes in there, as some shells,
1297 # such as our DU 5.0 friend, will then `close' the trap.
1298 trap 'exit_status=$?
1299 # Save into config.log some information that might help in debugging.
1304 ## ---------------- ##
1305 ## Cache variables. ##
1306 ## ---------------- ##
1309 # The following way of writing the cache mishandles newlines in values,
1312 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327 ## ----------------- ##
1328 ## Output variables. ##
1329 ## ----------------- ##
1332 for ac_var in $ac_subst_vars
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1339 if test -n "$ac_subst_files"; then
1346 for ac_var in $ac_subst_files
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1354 if test -s confdefs.h; then
1361 sed "/^$/d" confdefs.h | sort
1364 test "$ac_signal" != 0 &&
1365 echo "$as_me: caught signal $ac_signal"
1366 echo "$as_me: exit $exit_status"
1368 rm -f core *.core &&
1369 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372 for ac_signal in 1 2 13 15; do
1373 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1378 rm -rf conftest* confdefs.h
1379 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382 # Predefined preprocessor variables.
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_NAME "$PACKAGE_NAME"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_STRING "$PACKAGE_STRING"
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409 # Let the site file select an alternate cache file if it wants to.
1410 # Prefer explicitly selected file to automatically selected ones.
1411 if test -z "$CONFIG_SITE"; then
1412 if test "x$prefix" != xNONE; then
1413 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418 for ac_site_file in $CONFIG_SITE; do
1419 if test -r "$ac_site_file"; then
1420 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421 echo "$as_me: loading site script $ac_site_file" >&6;}
1422 sed 's/^/| /' "$ac_site_file" >&5
1427 if test -r "$cache_file"; then
1428 # Some versions of bash will fail to source /dev/null (special
1429 # files actually), so we avoid doing that.
1430 if test -f "$cache_file"; then
1431 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432 echo "$as_me: loading cache $cache_file" >&6;}
1434 [\\/]* | ?:[\\/]* ) . $cache_file;;
1435 *) . ./$cache_file;;
1439 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440 echo "$as_me: creating cache $cache_file" >&6;}
1444 # Check that the precious variables saved in the cache have kept the same
1446 ac_cache_corrupted=false
1447 for ac_var in `(set) 2>&1 |
1448 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450 eval ac_new_set=\$ac_env_${ac_var}_set
1451 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452 eval ac_new_val="\$ac_env_${ac_var}_value"
1453 case $ac_old_set,$ac_new_set in
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1464 if test "x$ac_old_val" != "x$ac_new_val"; then
1465 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1468 echo "$as_me: former value: $ac_old_val" >&2;}
1469 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1470 echo "$as_me: current value: $ac_new_val" >&2;}
1471 ac_cache_corrupted=:
1474 # Pass precious variables to config.status.
1475 if test "$ac_new_set" = set; then
1477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 *) ac_arg=$ac_var=$ac_new_val ;;
1481 case " $ac_configure_args " in
1482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1483 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487 if $ac_cache_corrupted; then
1488 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492 { (exit 1); exit 1; }; }
1496 ac_cpp='$CPP $CPPFLAGS'
1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1537 for ac_dir in autoconf $srcdir/autoconf; do
1538 if test -f $ac_dir/install-sh; then
1540 ac_install_sh="$ac_aux_dir/install-sh -c"
1542 elif test -f $ac_dir/install.sh; then
1544 ac_install_sh="$ac_aux_dir/install.sh -c"
1546 elif test -f $ac_dir/shtool; then
1548 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 if test -z "$ac_aux_dir"; then
1553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1555 { (exit 1); exit 1; }; }
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562 if test ${srcdir} != "." ; then
1563 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1564 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1565 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1566 { (exit 1); exit 1; }; }
1570 for i in `ls ${srcdir}/projects`
1572 if test -d ${srcdir}/projects/${i} ; then
1577 subdirs="$subdirs projects/sample"
1581 subdirs="$subdirs projects/Stacker"
1585 subdirs="$subdirs projects/llvm-test"
1589 subdirs="$subdirs projects/llvm-reopt"
1593 subdirs="$subdirs projects/llvm-gcc"
1597 subdirs="$subdirs projects/llvm-java"
1601 subdirs="$subdirs projects/llvm-tv"
1605 subdirs="$subdirs projects/llvm-poolalloc"
1608 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1697 program_prefix=${target_alias}-
1699 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1700 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1701 if test "${llvm_cv_os_type+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 llvm_cv_os_type="AIX"
1707 llvm_cv_platform_type="Unix" ;;
1709 llvm_cv_os_type="Cygwin"
1710 llvm_cv_platform_type="Unix" ;;
1712 llvm_cv_os_type="Darwin"
1713 llvm_cv_platform_type="Unix" ;;
1715 llvm_cv_os_type="FreeBSD"
1716 llvm_cv_platform_type="Unix" ;;
1718 llvm_cv_os_type="HP-UX"
1719 llvm_cv_platform_type="Unix" ;;
1721 llvm_cv_os_type="Interix"
1722 llvm_cv_platform_type="Unix" ;;
1724 llvm_cv_os_type="Linux"
1725 llvm_cv_platform_type="Unix" ;;
1727 llvm_cv_os_type="SunOS"
1728 llvm_cv_platform_type="Unix" ;;
1730 llvm_cv_os_type="Win32"
1731 llvm_cv_platform_type="Win32" ;;
1733 llvm_cv_os_type="MingW"
1734 llvm_cv_platform_type="Win32" ;;
1736 llvm_cv_os_type="Unknown"
1737 llvm_cv_platform_type="Unknown" ;;
1740 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741 echo "${ECHO_T}$llvm_cv_os_type" >&6
1743 if test "$llvm_cv_os_type" = "Unknown" ; then
1744 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746 { (exit 1); exit 1; }; }
1752 case $llvm_cv_platform_type in
1755 cat >>confdefs.h <<\_ACEOF
1756 #define LLVM_ON_UNIX 1
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_WIN32 1
1777 echo "$as_me:$LINENO: checking target architecture" >&5
1778 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1779 if test "${llvm_cv_target_arch+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 i?86-*) llvm_cv_target_arch="x86" ;;
1784 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1785 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1786 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1787 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1788 ia64-*) llvm_cv_target_arch="IA64" ;;
1789 *) llvm_cv_target_arch="Unknown" ;;
1792 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1793 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1795 if test "$llvm_cv_target_arch" = "Unknown" ; then
1796 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1797 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1800 ARCH=$llvm_cv_target_arch
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808 if test -n "$ac_tool_prefix"; then
1809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_CC+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 if test -n "$CC"; then
1817 ac_cv_prog_CC="$CC" # Let the user override the test.
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 if test -n "$CC"; then
1837 echo "$as_me:$LINENO: result: $CC" >&5
1838 echo "${ECHO_T}$CC" >&6
1840 echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1845 if test -z "$ac_cv_prog_CC"; then
1847 # Extract the first word of "gcc", so it can be a program name with args.
1848 set dummy gcc; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 if test -n "$ac_ct_CC"; then
1855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_ac_ct_CC="gcc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874 if test -n "$ac_ct_CC"; then
1875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876 echo "${ECHO_T}$ac_ct_CC" >&6
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1887 if test -z "$CC"; then
1888 if test -n "$ac_tool_prefix"; then
1889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1890 set dummy ${ac_tool_prefix}cc; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_CC+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 if test -n "$CC"; then
1897 ac_cv_prog_CC="$CC" # Let the user override the test.
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 test -z "$as_dir" && as_dir=.
1904 for ac_exec_ext in '' $ac_executable_extensions; do
1905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906 ac_cv_prog_CC="${ac_tool_prefix}cc"
1907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 if test -n "$CC"; then
1917 echo "$as_me:$LINENO: result: $CC" >&5
1918 echo "${ECHO_T}$CC" >&6
1920 echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1925 if test -z "$ac_cv_prog_CC"; then
1927 # Extract the first word of "cc", so it can be a program name with args.
1928 set dummy cc; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 if test -n "$ac_ct_CC"; then
1935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_ac_ct_CC="cc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1954 if test -n "$ac_ct_CC"; then
1955 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956 echo "${ECHO_T}$ac_ct_CC" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1968 if test -z "$CC"; then
1969 # Extract the first word of "cc", so it can be a program name with args.
1970 set dummy cc; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988 ac_prog_rejected=yes
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 if test $ac_prog_rejected = yes; then
1999 # We found a bogon in the path, so make sure we never use it.
2000 set dummy $ac_cv_prog_CC
2002 if test $# != 0; then
2003 # We chose a different compiler from the bogus one.
2004 # However, it has the same basename, so the bogon will be chosen
2005 # first if we set CC to just the basename; use the full file name.
2007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2013 if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2022 if test -z "$CC"; then
2023 if test -n "$ac_tool_prefix"; then
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 if test -n "$CC"; then
2054 echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$CC" && break
2064 if test -z "$CC"; then
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy $ac_prog; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CC="$ac_prog"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 test -n "$ac_ct_CC" && break
2112 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: no acceptable C compiler found in \$PATH
2115 See \`config.log' for more details." >&2;}
2116 { (exit 1); exit 1; }; }
2118 # Provide some information about the compiler.
2119 echo "$as_me:$LINENO:" \
2120 "checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2123 (eval $ac_compiler --version </dev/null >&5) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2128 (eval $ac_compiler -v </dev/null >&5) 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2133 (eval $ac_compiler -V </dev/null >&5) 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }
2138 cat >conftest.$ac_ext <<_ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2153 ac_clean_files_save=$ac_clean_files
2154 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2155 # Try to create an executable without -o first, disregard a.out.
2156 # It will help us diagnose broken compilers, and finding out an intuition
2158 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2159 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2160 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2161 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2162 (eval $ac_link_default) 2>&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; then
2166 # Find the output, starting from the most likely. This scheme is
2167 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2170 # Be careful to initialize this variable, since it used to be cached.
2171 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2173 # b.out is created by i960 compilers.
2174 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2176 test -f "$ac_file" || continue
2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2181 # This is the source file.
2184 # We found the default executable, but exeext='' is most
2188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 # FIXME: I believe we export ac_cv_exeext for Libtool,
2190 # but it would be cool to find out if it's true. Does anybody
2191 # maintain Libtool? --akim.
2199 echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2202 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: C compiler cannot create executables
2205 See \`config.log' for more details." >&2;}
2206 { (exit 77); exit 77; }; }
2209 ac_exeext=$ac_cv_exeext
2210 echo "$as_me:$LINENO: result: $ac_file" >&5
2211 echo "${ECHO_T}$ac_file" >&6
2213 # Check the compiler produces executables we can run. If not, either
2214 # the compiler is broken, or we cross compile.
2215 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2217 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218 # If not cross compiling, check that we can run a simple program.
2219 if test "$cross_compiling" != yes; then
2220 if { ac_try='./$ac_file'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2228 if test "$cross_compiling" = maybe; then
2231 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2241 echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6
2244 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2245 ac_clean_files=$ac_clean_files_save
2246 # Check the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2250 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251 echo "${ECHO_T}$cross_compiling" >&6
2253 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2256 (eval $ac_link) 2>&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; then
2260 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2261 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2262 # work properly (i.e., refer to `conftest.exe'), while it won't with
2264 for ac_file in conftest.exe conftest conftest.*; do
2265 test -f "$ac_file" || continue
2267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2268 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2278 See \`config.log' for more details." >&2;}
2279 { (exit 1); exit 1; }; }
2282 rm -f conftest$ac_cv_exeext
2283 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2284 echo "${ECHO_T}$ac_cv_exeext" >&6
2286 rm -f conftest.$ac_ext
2287 EXEEXT=$ac_cv_exeext
2289 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2290 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2291 if test "${ac_cv_objext+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 cat >conftest.$ac_ext <<_ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2309 rm -f conftest.o conftest.obj
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2326 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
2333 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336 echo "${ECHO_T}$ac_cv_objext" >&6
2337 OBJEXT=$ac_cv_objext
2339 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2341 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 cat >conftest.$ac_ext <<_ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h. */
2362 rm -f conftest.$ac_objext
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364 (eval $ac_compile) 2>conftest.er1
2366 grep -v '^ *+' conftest.er1 >conftest.err
2368 cat conftest.err >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try='test -z "$ac_c_werror_flag"
2372 || test ! -s conftest.err'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; } &&
2378 { ac_try='test -s conftest.$ac_objext'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2395 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2396 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2397 GCC=`test $ac_compiler_gnu = yes && echo yes`
2398 ac_test_CFLAGS=${CFLAGS+set}
2399 ac_save_CFLAGS=$CFLAGS
2401 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2402 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2403 if test "${ac_cv_prog_cc_g+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 cat >conftest.$ac_ext <<_ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h. */
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423 (eval $ac_compile) 2>conftest.er1
2425 grep -v '^ *+' conftest.er1 >conftest.err
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try='test -z "$ac_c_werror_flag"
2431 || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2453 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2454 if test "$ac_test_CFLAGS" = set; then
2455 CFLAGS=$ac_save_CFLAGS
2456 elif test $ac_cv_prog_cc_g = yes; then
2457 if test "$GCC" = yes; then
2463 if test "$GCC" = yes; then
2469 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2470 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2471 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 ac_cv_prog_cc_stdc=no
2476 cat >conftest.$ac_ext <<_ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2484 #include <sys/types.h>
2485 #include <sys/stat.h>
2486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2487 struct buf { int x; };
2488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2489 static char *e (p, i)
2495 static char *f (char * (*g) (char **, int), char **p, ...)
2500 s = g (p, va_arg (v,int));
2505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2506 function prototypes and stuff, but not '\xHH' hex character constants.
2507 These don't provoke an error unfortunately, instead are silently treated
2508 as 'x'. The following induces an error, until -std1 is added to get
2509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2510 array size at least. It's necessary to write '\x00'==0 to get something
2511 that's true only with -std1. */
2512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2514 int test (int i, double x);
2515 struct s1 {int (*f) (int a);};
2516 struct s2 {int (*f) (double a);};
2517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2523 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2528 # Don't try gcc -ansi; that turns off useful extensions and
2529 # breaks some systems' header files.
2530 # AIX -qlanglvl=ansi
2531 # Ultrix and OSF/1 -std1
2532 # HP-UX 10.20 and later -Ae
2533 # HP-UX older versions -Aa -D_HPUX_SOURCE
2534 # SVR4 -Xc -D__EXTENSIONS__
2535 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2537 CC="$ac_save_CC $ac_arg"
2538 rm -f conftest.$ac_objext
2539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540 (eval $ac_compile) 2>conftest.er1
2542 grep -v '^ *+' conftest.er1 >conftest.err
2544 cat conftest.err >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -z "$ac_c_werror_flag"
2548 || test ! -s conftest.err'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; } &&
2554 { ac_try='test -s conftest.$ac_objext'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 ac_cv_prog_cc_stdc=$ac_arg
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2567 rm -f conftest.err conftest.$ac_objext
2569 rm -f conftest.$ac_ext conftest.$ac_objext
2574 case "x$ac_cv_prog_cc_stdc" in
2576 echo "$as_me:$LINENO: result: none needed" >&5
2577 echo "${ECHO_T}none needed" >&6 ;;
2579 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2580 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2581 CC="$CC $ac_cv_prog_cc_stdc" ;;
2584 # Some people use a C++ compiler to compile C. Since we use `exit',
2585 # in C++ we need to declare it. In case someone uses the same compiler
2586 # for both compiling C and C++ we need to have the C++ compiler decide
2587 # the declaration of exit, since it's the most demanding environment.
2588 cat >conftest.$ac_ext <<_ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2597 grep -v '^ *+' conftest.er1 >conftest.err
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_c_werror_flag"
2603 || test ! -s conftest.err'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 for ac_declaration in \
2617 'extern "C" void std::exit (int) throw (); using std::exit;' \
2618 'extern "C" void std::exit (int); using std::exit;' \
2619 'extern "C" void exit (int) throw ();' \
2620 'extern "C" void exit (int);' \
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>conftest.er1
2643 grep -v '^ *+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -z "$ac_c_werror_flag"
2649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669 cat >conftest.$ac_ext <<_ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 (eval $ac_compile) 2>conftest.er1
2688 grep -v '^ *+' conftest.er1 >conftest.err
2690 cat conftest.err >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 { ac_try='test -z "$ac_c_werror_flag"
2694 || test ! -s conftest.err'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; } &&
2700 { ac_try='test -s conftest.$ac_objext'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2715 if test -n "$ac_declaration"; then
2716 echo '#ifdef __cplusplus' >>confdefs.h
2717 echo $ac_declaration >>confdefs.h
2718 echo '#endif' >>confdefs.h
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2735 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2736 if test "${ac_cv_c_bigendian+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 # See if sys/param.h defines the BYTE_ORDER macro.
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2746 #include <sys/types.h>
2747 #include <sys/param.h>
2752 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2760 rm -f conftest.$ac_objext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>conftest.er1
2764 grep -v '^ *+' conftest.er1 >conftest.err
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -z "$ac_c_werror_flag"
2770 || test ! -s conftest.err'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; } &&
2776 { ac_try='test -s conftest.$ac_objext'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 # It does; now see whether it defined to BIG_ENDIAN or not.
2783 cat >conftest.$ac_ext <<_ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2789 #include <sys/types.h>
2790 #include <sys/param.h>
2795 #if BYTE_ORDER != BIG_ENDIAN
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2807 grep -v '^ *+' conftest.er1 >conftest.err
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_c_bigendian=yes
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2830 ac_cv_c_bigendian=no
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2837 # It does not; compile a test program.
2838 if test "$cross_compiling" = yes; then
2839 # try to guess the endianness by grepping values into an object file
2840 ac_cv_c_bigendian=unknown
2841 cat >conftest.$ac_ext <<_ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2847 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2848 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2849 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2850 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2851 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2852 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2856 _ascii (); _ebcdic ();
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2865 grep -v '^ *+' conftest.er1 >conftest.err
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_c_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2884 ac_cv_c_bigendian=yes
2886 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2887 if test "$ac_cv_c_bigendian" = unknown; then
2888 ac_cv_c_bigendian=no
2890 # finding both strings is unlikely to happen, but who knows?
2891 ac_cv_c_bigendian=unknown
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901 cat >conftest.$ac_ext <<_ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2910 /* Are we little or big endian? From Harbison&Steele. */
2914 char c[sizeof (long)];
2917 exit (u.c[sizeof (long) - 1] == 1);
2920 rm -f conftest$ac_exeext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2922 (eval $ac_link) 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 ac_cv_c_bigendian=no
2933 echo "$as_me: program exited with status $ac_status" >&5
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2938 ac_cv_c_bigendian=yes
2940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2945 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2946 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2947 case $ac_cv_c_bigendian in
2955 { { echo "$as_me:$LINENO: error: unknown endianness
2956 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2957 echo "$as_me: error: unknown endianness
2958 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2959 { (exit 1); exit 1; }; } ;;
2964 # Check whether --enable-optimized or --disable-optimized was given.
2965 if test "${enable_optimized+set}" = set; then
2966 enableval="$enable_optimized"
2971 if test ${enableval} = "no" ; then
2975 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2979 # Check whether --enable-jit or --disable-jit was given.
2980 if test "${enable_jit+set}" = set; then
2981 enableval="$enable_jit"
2986 if test ${enableval} = "no"
2991 case "$llvm_cv_target_arch" in
2992 x86) JIT=TARGET_HAS_JIT=1
2994 Sparc) JIT=TARGET_HAS_JIT=1
2996 PowerPC) JIT=TARGET_HAS_JIT=1
3000 Alpha) JIT=TARGET_HAS_JIT=1
3009 # Check whether --enable-doxygen or --disable-doxygen was given.
3010 if test "${enable_doxygen+set}" = set; then
3011 enableval="$enable_doxygen"
3016 case "$enableval" in
3017 yes) ENABLE_DOXYGEN=1
3019 no) ENABLE_DOXYGEN=0
3021 default) ENABLE_DOXYGEN=0
3023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3024 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3025 { (exit 1); exit 1; }; } ;;
3029 # Check whether --enable-targets or --disable-targets was given.
3030 if test "${enable_targets+set}" = set; then
3031 enableval="$enable_targets"
3036 case "$enableval" in
3037 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3039 case "$llvm_cv_target_arch" in
3040 x86) TARGETS_TO_BUILD="X86" ;;
3041 x86_64) TARGETS_TO_BUILD="X86" ;;
3042 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3043 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3044 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3045 IA64) TARGETS_TO_BUILD="IA64" ;;
3046 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3047 echo "$as_me: error: Can not set target to build" >&2;}
3048 { (exit 1); exit 1; }; } ;;
3051 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3053 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3054 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3055 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3056 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3057 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3058 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3059 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3060 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3061 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3062 { (exit 1); exit 1; }; } ;;
3067 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3068 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3072 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3073 if test "${with_llvmgccdir+set}" = set; then
3074 withval="$with_llvmgccdir"
3080 default) WITH_LLVMGCCDIR=default ;;
3081 /*) WITH_LLVMGCCDIR=$withval ;;
3082 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3083 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3084 { (exit 1); exit 1; }; } ;;
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3095 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3096 # On Suns, sometimes $CPP names a directory.
3097 if test -n "$CPP" && test -d "$CPP"; then
3100 if test -z "$CPP"; then
3101 if test "${ac_cv_prog_CPP+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 # Double quotes because CPP needs to be expanded
3105 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3108 for ac_c_preproc_warn_flag in '' yes
3110 # Use a header file that comes with gcc, so configuring glibc
3111 # with a fresh cross-compiler works.
3112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113 # <limits.h> exists even on freestanding compilers.
3114 # On the NeXT, cc -E runs the code through the compiler's parser,
3115 # not just through cpp. "Syntax error" is here to catch this case.
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3123 # include <limits.h>
3125 # include <assert.h>
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
3139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146 if test -z "$ac_cpp_err"; then
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 # Broken: fails on valid input.
3155 rm -f conftest.err conftest.$ac_ext
3157 # OK, works on sane cases. Now check whether non-existent headers
3158 # can be detected and how.
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3165 #include <ac_nonexistent.h>
3167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3170 grep -v '^ *+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } >/dev/null; then
3175 if test -s conftest.err; then
3176 ac_cpp_err=$ac_c_preproc_warn_flag
3177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184 if test -z "$ac_cpp_err"; then
3185 # Broken: success on invalid input.
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 # Passes both tests.
3195 rm -f conftest.err conftest.$ac_ext
3198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199 rm -f conftest.err conftest.$ac_ext
3200 if $ac_preproc_ok; then
3212 echo "$as_me:$LINENO: result: $CPP" >&5
3213 echo "${ECHO_T}$CPP" >&6
3215 for ac_c_preproc_warn_flag in '' yes
3217 # Use a header file that comes with gcc, so configuring glibc
3218 # with a fresh cross-compiler works.
3219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220 # <limits.h> exists even on freestanding compilers.
3221 # On the NeXT, cc -E runs the code through the compiler's parser,
3222 # not just through cpp. "Syntax error" is here to catch this case.
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3230 # include <limits.h>
3232 # include <assert.h>
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3253 if test -z "$ac_cpp_err"; then
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 # Broken: fails on valid input.
3262 rm -f conftest.err conftest.$ac_ext
3264 # OK, works on sane cases. Now check whether non-existent headers
3265 # can be detected and how.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272 #include <ac_nonexistent.h>
3274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291 if test -z "$ac_cpp_err"; then
3292 # Broken: success on invalid input.
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 # Passes both tests.
3302 rm -f conftest.err conftest.$ac_ext
3305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3306 rm -f conftest.err conftest.$ac_ext
3307 if $ac_preproc_ok; then
3310 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3311 See \`config.log' for more details." >&5
3312 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3313 See \`config.log' for more details." >&2;}
3314 { (exit 1); exit 1; }; }
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_CC+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 if test -n "$CC"; then
3359 echo "$as_me:$LINENO: result: $CC" >&5
3360 echo "${ECHO_T}$CC" >&6
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3366 test -n "$CC" && break
3369 if test -z "$CC"; then
3373 # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy $ac_prog; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_CC="$ac_prog"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400 if test -n "$ac_ct_CC"; then
3401 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3402 echo "${ECHO_T}$ac_ct_CC" >&6
3404 echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6
3408 test -n "$ac_ct_CC" && break
3415 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3416 See \`config.log' for more details." >&5
3417 echo "$as_me: error: no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details." >&2;}
3419 { (exit 1); exit 1; }; }
3421 # Provide some information about the compiler.
3422 echo "$as_me:$LINENO:" \
3423 "checking for C compiler version" >&5
3424 ac_compiler=`set X $ac_compile; echo $2`
3425 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3426 (eval $ac_compiler --version </dev/null >&5) 2>&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }
3430 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3431 (eval $ac_compiler -v </dev/null >&5) 2>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }
3435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3436 (eval $ac_compiler -V </dev/null >&5) 2>&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }
3441 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3442 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3443 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3497 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3498 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3499 GCC=`test $ac_compiler_gnu = yes && echo yes`
3500 ac_test_CFLAGS=${CFLAGS+set}
3501 ac_save_CFLAGS=$CFLAGS
3503 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3504 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3505 if test "${ac_cv_prog_cc_g+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3554 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3555 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3556 if test "$ac_test_CFLAGS" = set; then
3557 CFLAGS=$ac_save_CFLAGS
3558 elif test $ac_cv_prog_cc_g = yes; then
3559 if test "$GCC" = yes; then
3565 if test "$GCC" = yes; then
3571 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3572 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3573 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 ac_cv_prog_cc_stdc=no
3578 cat >conftest.$ac_ext <<_ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3586 #include <sys/types.h>
3587 #include <sys/stat.h>
3588 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3589 struct buf { int x; };
3590 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591 static char *e (p, i)
3597 static char *f (char * (*g) (char **, int), char **p, ...)
3602 s = g (p, va_arg (v,int));
3607 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3608 function prototypes and stuff, but not '\xHH' hex character constants.
3609 These don't provoke an error unfortunately, instead are silently treated
3610 as 'x'. The following induces an error, until -std1 is added to get
3611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3612 array size at least. It's necessary to write '\x00'==0 to get something
3613 that's true only with -std1. */
3614 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616 int test (int i, double x);
3617 struct s1 {int (*f) (int a);};
3618 struct s2 {int (*f) (double a);};
3619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3625 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3630 # Don't try gcc -ansi; that turns off useful extensions and
3631 # breaks some systems' header files.
3632 # AIX -qlanglvl=ansi
3633 # Ultrix and OSF/1 -std1
3634 # HP-UX 10.20 and later -Ae
3635 # HP-UX older versions -Aa -D_HPUX_SOURCE
3636 # SVR4 -Xc -D__EXTENSIONS__
3637 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639 CC="$ac_save_CC $ac_arg"
3640 rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest.$ac_objext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 ac_cv_prog_cc_stdc=$ac_arg
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3669 rm -f conftest.err conftest.$ac_objext
3671 rm -f conftest.$ac_ext conftest.$ac_objext
3676 case "x$ac_cv_prog_cc_stdc" in
3678 echo "$as_me:$LINENO: result: none needed" >&5
3679 echo "${ECHO_T}none needed" >&6 ;;
3681 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3682 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3683 CC="$CC $ac_cv_prog_cc_stdc" ;;
3686 # Some people use a C++ compiler to compile C. Since we use `exit',
3687 # in C++ we need to declare it. In case someone uses the same compiler
3688 # for both compiling C and C++ we need to have the C++ compiler decide
3689 # the declaration of exit, since it's the most demanding environment.
3690 cat >conftest.$ac_ext <<_ACEOF
3695 rm -f conftest.$ac_objext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>conftest.er1
3699 grep -v '^ *+' conftest.er1 >conftest.err
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 for ac_declaration in \
3719 'extern "C" void std::exit (int) throw (); using std::exit;' \
3720 'extern "C" void std::exit (int); using std::exit;' \
3721 'extern "C" void exit (int) throw ();' \
3722 'extern "C" void exit (int);' \
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3741 rm -f conftest.$ac_objext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743 (eval $ac_compile) 2>conftest.er1
3745 grep -v '^ *+' conftest.er1 >conftest.err
3747 cat conftest.err >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 { ac_try='test -z "$ac_c_werror_flag"
3751 || test ! -s conftest.err'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; } &&
3757 { ac_try='test -s conftest.$ac_objext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3771 cat >conftest.$ac_ext <<_ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817 if test -n "$ac_declaration"; then
3818 echo '#ifdef __cplusplus' >>confdefs.h
3819 echo $ac_declaration >>confdefs.h
3820 echo '#endif' >>confdefs.h
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 ac_cpp='$CXXCPP $CPPFLAGS'
3837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3840 if test -n "$ac_tool_prefix"; then
3841 for ac_prog in $CCC g++
3843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_CXX+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if test -n "$CXX"; then
3851 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 if test -n "$CXX"; then
3871 echo "$as_me:$LINENO: result: $CXX" >&5
3872 echo "${ECHO_T}$CXX" >&6
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3878 test -n "$CXX" && break
3881 if test -z "$CXX"; then
3883 for ac_prog in $CCC g++
3885 # Extract the first word of "$ac_prog", so it can be a program name with args.
3886 set dummy $ac_prog; ac_word=$2
3887 echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 if test -n "$ac_ct_CXX"; then
3893 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_ac_ct_CXX="$ac_prog"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3912 if test -n "$ac_ct_CXX"; then
3913 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3914 echo "${ECHO_T}$ac_ct_CXX" >&6
3916 echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6
3920 test -n "$ac_ct_CXX" && break
3922 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3928 # Provide some information about the compiler.
3929 echo "$as_me:$LINENO:" \
3930 "checking for C++ compiler version" >&5
3931 ac_compiler=`set X $ac_compile; echo $2`
3932 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3933 (eval $ac_compiler --version </dev/null >&5) 2>&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }
3937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3938 (eval $ac_compiler -v </dev/null >&5) 2>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }
3942 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3943 (eval $ac_compiler -V </dev/null >&5) 2>&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }
3948 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 cat >conftest.$ac_ext <<_ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>conftest.er1
3975 grep -v '^ *+' conftest.er1 >conftest.err
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } &&
3980 { ac_try='test -z "$ac_cxx_werror_flag"
3981 || test ! -s conftest.err'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
4000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4004 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4005 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4006 GXX=`test $ac_compiler_gnu = yes && echo yes`
4007 ac_test_CXXFLAGS=${CXXFLAGS+set}
4008 ac_save_CXXFLAGS=$CXXFLAGS
4010 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4011 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4012 if test "${ac_cv_prog_cxx_g+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4030 rm -f conftest.$ac_objext
4031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032 (eval $ac_compile) 2>conftest.er1
4034 grep -v '^ *+' conftest.er1 >conftest.err
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -z "$ac_cxx_werror_flag"
4040 || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 ac_cv_prog_cxx_g=yes
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4061 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4062 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4063 if test "$ac_test_CXXFLAGS" = set; then
4064 CXXFLAGS=$ac_save_CXXFLAGS
4065 elif test $ac_cv_prog_cxx_g = yes; then
4066 if test "$GXX" = yes; then
4072 if test "$GXX" = yes; then
4078 for ac_declaration in \
4080 'extern "C" void std::exit (int) throw (); using std::exit;' \
4081 'extern "C" void std::exit (int); using std::exit;' \
4082 'extern "C" void exit (int) throw ();' \
4083 'extern "C" void exit (int);' \
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_cxx_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_cxx_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178 if test -n "$ac_declaration"; then
4179 echo '#ifdef __cplusplus' >>confdefs.h
4180 echo $ac_declaration >>confdefs.h
4181 echo '#endif' >>confdefs.h
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 echo "$as_me:$LINENO: checking " >&5
4191 echo $ECHO_N "checking ... $ECHO_C" >&6
4192 if test "${ac_cv_has_flex+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 for ac_prog in flex lex
4197 # Extract the first word of "$ac_prog", so it can be a program name with args.
4198 set dummy $ac_prog; ac_word=$2
4199 echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201 if test "${ac_cv_prog_LEX+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 if test -n "$LEX"; then
4205 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_LEX="$ac_prog"
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 if test -n "$LEX"; then
4225 echo "$as_me:$LINENO: result: $LEX" >&5
4226 echo "${ECHO_T}$LEX" >&6
4228 echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6
4232 test -n "$LEX" && break
4234 test -n "$LEX" || LEX=":"
4236 if test -z "$LEXLIB"
4238 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4239 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4240 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 ac_check_lib_save_LIBS=$LIBS
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4252 /* Override any gcc2 internal prototype to avoid an error. */
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>conftest.er1
4271 grep -v '^ *+' conftest.er1 >conftest.err
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -z "$ac_c_werror_flag"
4277 || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest$ac_exeext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_cv_lib_fl_yywrap=yes
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4294 ac_cv_lib_fl_yywrap=no
4296 rm -f conftest.err conftest.$ac_objext \
4297 conftest$ac_exeext conftest.$ac_ext
4298 LIBS=$ac_check_lib_save_LIBS
4300 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4301 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4302 if test $ac_cv_lib_fl_yywrap = yes; then
4305 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4306 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4307 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 ac_check_lib_save_LIBS=$LIBS
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4319 /* Override any gcc2 internal prototype to avoid an error. */
4323 /* We use char because int might match the return type of a gcc2
4324 builtin and then its argument prototype would still apply. */
4334 rm -f conftest.$ac_objext conftest$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>conftest.er1
4338 grep -v '^ *+' conftest.er1 >conftest.err
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
4343 { ac_try='test -z "$ac_c_werror_flag"
4344 || test ! -s conftest.err'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; } &&
4350 { ac_try='test -s conftest$ac_exeext'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_lib_l_yywrap=yes
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 ac_cv_lib_l_yywrap=no
4363 rm -f conftest.err conftest.$ac_objext \
4364 conftest$ac_exeext conftest.$ac_ext
4365 LIBS=$ac_check_lib_save_LIBS
4367 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4368 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4369 if test $ac_cv_lib_l_yywrap = yes; then
4377 if test "x$LEX" != "x:"; then
4378 echo "$as_me:$LINENO: checking lex output file root" >&5
4379 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4380 if test "${ac_cv_prog_lex_root+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 # The minimal lex program is just a single line: %%. But some broken lexes
4384 # (Solaris, I think it was) want two %% lines, so accommodate them.
4385 cat >conftest.l <<_ACEOF
4389 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4390 (eval $LEX conftest.l) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4394 if test -f lex.yy.c; then
4395 ac_cv_prog_lex_root=lex.yy
4396 elif test -f lexyy.c; then
4397 ac_cv_prog_lex_root=lexyy
4399 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4400 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4401 { (exit 1); exit 1; }; }
4404 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4405 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4407 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4409 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4410 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4411 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 # POSIX says lex can declare yytext either as a pointer or an array; the
4415 # default is implementation-dependent. Figure out which it is, since
4416 # not all implementations provide the %pointer and %array declarations.
4417 ac_cv_prog_lex_yytext_pointer=no
4418 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4420 LIBS="$LIBS $LEXLIB"
4421 cat >conftest.$ac_ext <<_ACEOF
4422 `cat $LEX_OUTPUT_ROOT.c`
4424 rm -f conftest.$ac_objext conftest$ac_exeext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4426 (eval $ac_link) 2>conftest.er1
4428 grep -v '^ *+' conftest.er1 >conftest.err
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -z "$ac_c_werror_flag"
4434 || test ! -s conftest.err'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; } &&
4440 { ac_try='test -s conftest$ac_exeext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_prog_lex_yytext_pointer=yes
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4452 rm -f conftest.err conftest.$ac_objext \
4453 conftest$ac_exeext conftest.$ac_ext
4455 rm -f "${LEX_OUTPUT_ROOT}.c"
4458 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4459 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4460 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4462 cat >>confdefs.h <<\_ACEOF
4463 #define YYTEXT_POINTER 1
4471 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4472 echo "${ECHO_T}$ac_cv_has_flex" >&6
4473 if test "$LEX" != "flex"; then
4474 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4475 echo "$as_me: error: flex not found but required" >&2;}
4476 { (exit 1); exit 1; }; }
4482 echo "$as_me:$LINENO: checking " >&5
4483 echo $ECHO_N "checking ... $ECHO_C" >&6
4484 if test "${llvm_cv_has_bison+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 for ac_prog in 'bison -y' byacc
4489 # Extract the first word of "$ac_prog", so it can be a program name with args.
4490 set dummy $ac_prog; ac_word=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_prog_YACC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 if test -n "$YACC"; then
4497 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_YACC="$ac_prog"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 YACC=$ac_cv_prog_YACC
4516 if test -n "$YACC"; then
4517 echo "$as_me:$LINENO: result: $YACC" >&5
4518 echo "${ECHO_T}$YACC" >&6
4520 echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6
4524 test -n "$YACC" && break
4526 test -n "$YACC" || YACC="yacc"
4529 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4530 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4531 if test "$YACC" != "bison -y"; then
4532 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4533 echo "$as_me: error: bison not found but required" >&2;}
4534 { (exit 1); exit 1; }; }
4540 echo "$as_me:$LINENO: checking for GNU make" >&5
4541 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4542 if test "${llvm_cv_gnu_make_command+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 llvm_cv_gnu_make_command=''
4546 for a in "$MAKE" make gmake gnumake ; do
4547 if test -z "$a" ; then continue ; fi ;
4548 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4550 llvm_cv_gnu_make_command=$a ;
4555 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4556 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4557 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4561 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4562 echo "${ECHO_T}\"Not found\"" >&6;
4566 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4567 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4569 if test "$LN_S" = "ln -s"; then
4570 echo "$as_me:$LINENO: result: yes" >&5
4571 echo "${ECHO_T}yes" >&6
4573 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4574 echo "${ECHO_T}no, using $LN_S" >&6
4577 # Extract the first word of "cmp", so it can be a program name with args.
4578 set dummy cmp; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_path_CMP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4609 if test -n "$CMP"; then
4610 echo "$as_me:$LINENO: result: $CMP" >&5
4611 echo "${ECHO_T}$CMP" >&6
4613 echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4617 # Extract the first word of "cp", so it can be a program name with args.
4618 set dummy cp; ac_word=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_path_CP+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4649 if test -n "$CP"; then
4650 echo "$as_me:$LINENO: result: $CP" >&5
4651 echo "${ECHO_T}$CP" >&6
4653 echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4657 # Extract the first word of "date", so it can be a program name with args.
4658 set dummy date; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_path_DATE+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4687 DATE=$ac_cv_path_DATE
4689 if test -n "$DATE"; then
4690 echo "$as_me:$LINENO: result: $DATE" >&5
4691 echo "${ECHO_T}$DATE" >&6
4693 echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4697 # Extract the first word of "find", so it can be a program name with args.
4698 set dummy find; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_path_FIND+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4727 FIND=$ac_cv_path_FIND
4729 if test -n "$FIND"; then
4730 echo "$as_me:$LINENO: result: $FIND" >&5
4731 echo "${ECHO_T}$FIND" >&6
4733 echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4737 # Extract the first word of "grep", so it can be a program name with args.
4738 set dummy grep; ac_word=$2
4739 echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741 if test "${ac_cv_path_GREP+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4767 GREP=$ac_cv_path_GREP
4769 if test -n "$GREP"; then
4770 echo "$as_me:$LINENO: result: $GREP" >&5
4771 echo "${ECHO_T}$GREP" >&6
4773 echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6
4777 # Extract the first word of "mkdir", so it can be a program name with args.
4778 set dummy mkdir; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_path_MKDIR+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4807 MKDIR=$ac_cv_path_MKDIR
4809 if test -n "$MKDIR"; then
4810 echo "$as_me:$LINENO: result: $MKDIR" >&5
4811 echo "${ECHO_T}$MKDIR" >&6
4813 echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6
4817 # Extract the first word of "mv", so it can be a program name with args.
4818 set dummy mv; ac_word=$2
4819 echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821 if test "${ac_cv_path_MV+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4849 if test -n "$MV"; then
4850 echo "$as_me:$LINENO: result: $MV" >&5
4851 echo "${ECHO_T}$MV" >&6
4853 echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4857 if test -n "$ac_tool_prefix"; then
4858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_prog_RANLIB+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 if test -n "$RANLIB"; then
4866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 RANLIB=$ac_cv_prog_RANLIB
4885 if test -n "$RANLIB"; then
4886 echo "$as_me:$LINENO: result: $RANLIB" >&5
4887 echo "${ECHO_T}$RANLIB" >&6
4889 echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6
4894 if test -z "$ac_cv_prog_RANLIB"; then
4895 ac_ct_RANLIB=$RANLIB
4896 # Extract the first word of "ranlib", so it can be a program name with args.
4897 set dummy ranlib; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 if test -n "$ac_ct_RANLIB"; then
4904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_ac_ct_RANLIB="ranlib"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4924 if test -n "$ac_ct_RANLIB"; then
4925 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4926 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4928 echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4932 RANLIB=$ac_ct_RANLIB
4934 RANLIB="$ac_cv_prog_RANLIB"
4937 # Extract the first word of "rm", so it can be a program name with args.
4938 set dummy rm; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_path_RM+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4969 if test -n "$RM"; then
4970 echo "$as_me:$LINENO: result: $RM" >&5
4971 echo "${ECHO_T}$RM" >&6
4973 echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4977 # Extract the first word of "sed", so it can be a program name with args.
4978 set dummy sed; ac_word=$2
4979 echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981 if test "${ac_cv_path_SED+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5009 if test -n "$SED"; then
5010 echo "$as_me:$LINENO: result: $SED" >&5
5011 echo "${ECHO_T}$SED" >&6
5013 echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5017 # Extract the first word of "tar", so it can be a program name with args.
5018 set dummy tar; ac_word=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_path_TAR+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5049 if test -n "$TAR"; then
5050 echo "$as_me:$LINENO: result: $TAR" >&5
5051 echo "${ECHO_T}$TAR" >&6
5053 echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6
5057 # Extract the first word of "Graphviz", so it can be a program name with args.
5058 set dummy Graphviz; ac_word=$2
5059 echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5061 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5087 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5089 if test -n "$GRAPHVIZ"; then
5090 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5091 echo "${ECHO_T}$GRAPHVIZ" >&6
5093 echo "$as_me:$LINENO: result: no" >&5
5094 echo "${ECHO_T}no" >&6
5097 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5099 cat >>confdefs.h <<\_ACEOF
5100 #define HAVE_GRAPHVIZ 1
5104 cat >>confdefs.h <<_ACEOF
5105 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5109 # Extract the first word of "gv", so it can be a program name with args.
5110 set dummy gv; ac_word=$2
5111 echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5113 if test "${ac_cv_path_GV+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5141 if test -n "$GV"; then
5142 echo "$as_me:$LINENO: result: $GV" >&5
5143 echo "${ECHO_T}$GV" >&6
5145 echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6
5149 if test "$GRAPHVIZ" != "echo gv" ; then
5151 cat >>confdefs.h <<\_ACEOF
5156 cat >>confdefs.h <<_ACEOF
5157 #define LLVM_PATH_GV "$GV"
5162 # Find a good install program. We prefer a C program (faster),
5163 # so one script is as good as another. But avoid the broken or
5164 # incompatible versions:
5165 # SysV /etc/install, /usr/sbin/install
5166 # SunOS /usr/etc/install
5167 # IRIX /sbin/install
5169 # AmigaOS /C/install, which installs bootblocks on floppy discs
5170 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5171 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5172 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5173 # OS/2's system install, which has a completely different semantic
5174 # ./install, which can be erroneously created by make from ./install.sh.
5175 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5176 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5177 if test -z "$INSTALL"; then
5178 if test "${ac_cv_path_install+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir=.
5186 # Account for people who put trailing slashes in PATH elements.
5188 ./ | .// | /cC/* | \
5189 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5190 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5193 # OSF1 and SCO ODT 3.0 have their own names for install.
5194 # Don't use installbsd from OSF since it installs stuff as root
5196 for ac_prog in ginstall scoinst install; do
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5199 if test $ac_prog = install &&
5200 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5201 # AIX install. It has an incompatible calling convention.
5203 elif test $ac_prog = install &&
5204 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5205 # program-specific install script used by HP pwplus--don't use.
5208 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5220 if test "${ac_cv_path_install+set}" = set; then
5221 INSTALL=$ac_cv_path_install
5223 # As a last resort, use the slow shell script. We don't cache a
5224 # path for INSTALL within a source directory, because that will
5225 # break other packages using the cache if that directory is
5226 # removed, or if the path is relative.
5227 INSTALL=$ac_install_sh
5230 echo "$as_me:$LINENO: result: $INSTALL" >&5
5231 echo "${ECHO_T}$INSTALL" >&6
5233 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5234 # It thinks the first close brace ends the variable substitution.
5235 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5237 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5239 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5242 # Extract the first word of "bzip2", so it can be a program name with args.
5243 set dummy bzip2; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_path_BZIP2+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5272 BZIP2=$ac_cv_path_BZIP2
5274 if test -n "$BZIP2"; then
5275 echo "$as_me:$LINENO: result: $BZIP2" >&5
5276 echo "${ECHO_T}$BZIP2" >&6
5278 echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5282 # Extract the first word of "dot", so it can be a program name with args.
5283 set dummy dot; ac_word=$2
5284 echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286 if test "${ac_cv_path_DOT+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5314 if test -n "$DOT"; then
5315 echo "$as_me:$LINENO: result: $DOT" >&5
5316 echo "${ECHO_T}$DOT" >&6
5318 echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5322 # Extract the first word of "doxygen", so it can be a program name with args.
5323 set dummy doxygen; ac_word=$2
5324 echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5352 DOXYGEN=$ac_cv_path_DOXYGEN
5354 if test -n "$DOXYGEN"; then
5355 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5356 echo "${ECHO_T}$DOXYGEN" >&6
5358 echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5362 # Extract the first word of "etags", so it can be a program name with args.
5363 set dummy etags; ac_word=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_path_ETAGS+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5392 ETAGS=$ac_cv_path_ETAGS
5394 if test -n "$ETAGS"; then
5395 echo "$as_me:$LINENO: result: $ETAGS" >&5
5396 echo "${ECHO_T}$ETAGS" >&6
5398 echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5402 # Extract the first word of "groff", so it can be a program name with args.
5403 set dummy groff; ac_word=$2
5404 echo "$as_me:$LINENO: checking for $ac_word" >&5
5405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5406 if test "${ac_cv_path_GROFF+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5432 GROFF=$ac_cv_path_GROFF
5434 if test -n "$GROFF"; then
5435 echo "$as_me:$LINENO: result: $GROFF" >&5
5436 echo "${ECHO_T}$GROFF" >&6
5438 echo "$as_me:$LINENO: result: no" >&5
5439 echo "${ECHO_T}no" >&6
5442 # Extract the first word of "gzip", so it can be a program name with args.
5443 set dummy gzip; ac_word=$2
5444 echo "$as_me:$LINENO: checking for $ac_word" >&5
5445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5446 if test "${ac_cv_path_GZIP+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5461 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5472 GZIP=$ac_cv_path_GZIP
5474 if test -n "$GZIP"; then
5475 echo "$as_me:$LINENO: result: $GZIP" >&5
5476 echo "${ECHO_T}$GZIP" >&6
5478 echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6
5482 # Extract the first word of "pod2html", so it can be a program name with args.
5483 set dummy pod2html; ac_word=$2
5484 echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486 if test "${ac_cv_path_POD2HTML+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5512 POD2HTML=$ac_cv_path_POD2HTML
5514 if test -n "$POD2HTML"; then
5515 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5516 echo "${ECHO_T}$POD2HTML" >&6
5518 echo "$as_me:$LINENO: result: no" >&5
5519 echo "${ECHO_T}no" >&6
5522 # Extract the first word of "pod2man", so it can be a program name with args.
5523 set dummy pod2man; ac_word=$2
5524 echo "$as_me:$LINENO: checking for $ac_word" >&5
5525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5526 if test "${ac_cv_path_POD2MAN+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5552 POD2MAN=$ac_cv_path_POD2MAN
5554 if test -n "$POD2MAN"; then
5555 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5556 echo "${ECHO_T}$POD2MAN" >&6
5558 echo "$as_me:$LINENO: result: no" >&5
5559 echo "${ECHO_T}no" >&6
5562 # Extract the first word of "runtest", so it can be a program name with args.
5563 set dummy runtest; ac_word=$2
5564 echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5566 if test "${ac_cv_path_RUNTEST+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5592 RUNTEST=$ac_cv_path_RUNTEST
5594 if test -n "$RUNTEST"; then
5595 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5596 echo "${ECHO_T}$RUNTEST" >&6
5598 echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5604 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5605 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5607 # Check whether --with-tclinclude or --without-tclinclude was given.
5608 if test "${with_tclinclude+set}" = set; then
5609 withval="$with_tclinclude"
5610 with_tclinclude=${withval}
5614 if test "${ac_cv_path_tclsh+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 if test x"${with_tclinclude}" != x ; then
5619 if test -f ${with_tclinclude}/tclsh ; then
5620 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5621 elif test -f ${with_tclinclude}/src/tclsh ; then
5622 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5624 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5625 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5626 { (exit 1); exit 1; }; }
5630 if test x"${ac_cv_path_tclsh}" = x ; then
5631 echo "$as_me:$LINENO: result: none" >&5
5632 echo "${ECHO_T}none" >&6
5633 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
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_path_TCLSH+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 TCLSH=$ac_cv_path_TCLSH
5666 if test -n "$TCLSH"; then
5667 echo "$as_me:$LINENO: result: $TCLSH" >&5
5668 echo "${ECHO_T}$TCLSH" >&6
5670 echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6
5674 test -n "$TCLSH" && break
5677 if test x"${TCLSH}" = x ; then
5678 ac_cv_path_tclsh='';
5680 ac_cv_path_tclsh="${TCLSH}";
5683 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5684 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5685 TCLSH="${ac_cv_path_tclsh}"
5691 # Extract the first word of "zip", so it can be a program name with args.
5692 set dummy zip; ac_word=$2
5693 echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5695 if test "${ac_cv_path_ZIP+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5723 if test -n "$ZIP"; then
5724 echo "$as_me:$LINENO: result: $ZIP" >&5
5725 echo "${ECHO_T}$ZIP" >&6
5727 echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6
5732 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5733 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5734 if test "${llvm_cv_link_use_r+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5744 CFLAGS="$CFLAGS -Wl,-R."
5745 cat >conftest.$ac_ext <<_ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5755 int main() { return 0; }
5760 rm -f conftest.$ac_objext conftest$ac_exeext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762 (eval $ac_link) 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -z "$ac_c_werror_flag"
5770 || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try='test -s conftest$ac_exeext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 llvm_cv_link_use_r=yes
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5787 llvm_cv_link_use_r=no
5789 rm -f conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5801 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5802 if test "$llvm_cv_link_use_r" = yes ; then
5804 cat >>confdefs.h <<\_ACEOF
5805 #define HAVE_LINK_R 1
5813 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5814 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5815 if test "${ac_cv_c_const+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 cat >conftest.$ac_ext <<_ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5828 /* FIXME: Include the comments suggested by Paul. */
5830 /* Ultrix mips cc rejects this. */
5831 typedef int charset[2];
5833 /* SunOS 4.1.1 cc rejects this. */
5834 char const *const *ccp;
5836 /* NEC SVR4.0.2 mips cc rejects this. */
5837 struct point {int x, y;};
5838 static struct point const zero = {0,0};
5839 /* AIX XL C 1.02.0.0 rejects this.
5840 It does not let you subtract one const X* pointer from another in
5841 an arm of an if-expression whose if-part is not a constant
5843 const char *g = "string";
5844 ccp = &g + (g ? g-g : 0);
5845 /* HPUX 7.0 cc rejects these. */
5848 ccp = (char const *const *) p;
5849 { /* SCO 3.2v4 cc rejects this. */
5851 char const *s = 0 ? (char *) 0 : (char const *) 0;
5855 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5857 const int *foo = &x[0];
5860 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5861 typedef const int *iptr;
5865 { /* AIX XL C 1.02.0.0 rejects this saying
5866 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5867 struct s { int j; const int *ap[3]; };
5868 struct s *b; b->j = 5;
5870 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag"
5889 || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5911 echo "${ECHO_T}$ac_cv_c_const" >&6
5912 if test $ac_cv_c_const = no; then
5914 cat >>confdefs.h <<\_ACEOF
5921 echo "$as_me:$LINENO: checking for egrep" >&5
5922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5923 if test "${ac_cv_prog_egrep+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5927 then ac_cv_prog_egrep='grep -E'
5928 else ac_cv_prog_egrep='egrep'
5931 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5932 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5933 EGREP=$ac_cv_prog_egrep
5936 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5937 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5938 if test "${ac_cv_header_stdc+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 cat >conftest.$ac_ext <<_ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5960 rm -f conftest.$ac_objext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962 (eval $ac_compile) 2>conftest.er1
5964 grep -v '^ *+' conftest.er1 >conftest.err
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } &&
5969 { ac_try='test -z "$ac_c_werror_flag"
5970 || test ! -s conftest.err'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; } &&
5976 { ac_try='test -s conftest.$ac_objext'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5982 ac_cv_header_stdc=yes
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987 ac_cv_header_stdc=no
5989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5991 if test $ac_cv_header_stdc = yes; then
5992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5993 cat >conftest.$ac_ext <<_ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
6002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6003 $EGREP "memchr" >/dev/null 2>&1; then
6006 ac_cv_header_stdc=no
6012 if test $ac_cv_header_stdc = yes; then
6013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6014 cat >conftest.$ac_ext <<_ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024 $EGREP "free" >/dev/null 2>&1; then
6027 ac_cv_header_stdc=no
6033 if test $ac_cv_header_stdc = yes; then
6034 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6035 if test "$cross_compiling" = yes; then
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6045 #if ((' ' & 0x0FF) == 0x020)
6046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6049 # define ISLOWER(c) \
6050 (('a' <= (c) && (c) <= 'i') \
6051 || ('j' <= (c) && (c) <= 'r') \
6052 || ('s' <= (c) && (c) <= 'z'))
6053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6061 for (i = 0; i < 256; i++)
6062 if (XOR (islower (i), ISLOWER (i))
6063 || toupper (i) != TOUPPER (i))
6068 rm -f conftest$ac_exeext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6070 (eval $ac_link) 2>&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6081 echo "$as_me: program exited with status $ac_status" >&5
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6086 ac_cv_header_stdc=no
6088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6092 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6093 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6094 if test $ac_cv_header_stdc = yes; then
6096 cat >>confdefs.h <<\_ACEOF
6097 #define STDC_HEADERS 1
6108 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6109 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6110 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6111 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6121 #include <sys/types.h>
6133 rm -f conftest.$ac_objext
6134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135 (eval $ac_compile) 2>conftest.er1
6137 grep -v '^ *+' conftest.er1 >conftest.err
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -z "$ac_c_werror_flag"
6143 || test ! -s conftest.err'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; } &&
6149 { ac_try='test -s conftest.$ac_objext'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; }; then
6155 eval "$as_ac_Header=yes"
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6160 eval "$as_ac_Header=no"
6162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6167 cat >>confdefs.h <<_ACEOF
6168 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6171 ac_header_dirent=$ac_hdr; break
6175 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6176 if test $ac_header_dirent = dirent.h; then
6177 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6178 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6179 if test "${ac_cv_search_opendir+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 ac_func_search_save_LIBS=$LIBS
6183 ac_cv_search_opendir=no
6184 cat >conftest.$ac_ext <<_ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6191 /* Override any gcc2 internal prototype to avoid an error. */
6195 /* We use char because int might match the return type of a gcc2
6196 builtin and then its argument prototype would still apply. */
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6208 (eval $ac_link) 2>conftest.er1
6210 grep -v '^ *+' conftest.er1 >conftest.err
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -z "$ac_c_werror_flag"
6216 || test ! -s conftest.err'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; } &&
6222 { ac_try='test -s conftest$ac_exeext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_search_opendir="none required"
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6234 rm -f conftest.err conftest.$ac_objext \
6235 conftest$ac_exeext conftest.$ac_ext
6236 if test "$ac_cv_search_opendir" = no; then
6237 for ac_lib in dir; do
6238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6239 cat >conftest.$ac_ext <<_ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6246 /* Override any gcc2 internal prototype to avoid an error. */
6250 /* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263 (eval $ac_link) 2>conftest.er1
6265 grep -v '^ *+' conftest.er1 >conftest.err
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -z "$ac_c_werror_flag"
6271 || test ! -s conftest.err'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; } &&
6277 { ac_try='test -s conftest$ac_exeext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_search_opendir="-l$ac_lib"
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6290 rm -f conftest.err conftest.$ac_objext \
6291 conftest$ac_exeext conftest.$ac_ext
6294 LIBS=$ac_func_search_save_LIBS
6296 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6297 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6298 if test "$ac_cv_search_opendir" != no; then
6299 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6304 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6305 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6306 if test "${ac_cv_search_opendir+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 ac_func_search_save_LIBS=$LIBS
6310 ac_cv_search_opendir=no
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6318 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6333 rm -f conftest.$ac_objext conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest$ac_exeext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_cv_search_opendir="none required"
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6361 rm -f conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6363 if test "$ac_cv_search_opendir" = no; then
6365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6366 cat >conftest.$ac_ext <<_ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6373 /* Override any gcc2 internal prototype to avoid an error. */
6377 /* We use char because int might match the return type of a gcc2
6378 builtin and then its argument prototype would still apply. */
6388 rm -f conftest.$ac_objext conftest$ac_exeext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390 (eval $ac_link) 2>conftest.er1
6392 grep -v '^ *+' conftest.er1 >conftest.err
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try='test -z "$ac_c_werror_flag"
6398 || test ! -s conftest.err'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest$ac_exeext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_search_opendir="-l$ac_lib"
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6417 rm -f conftest.err conftest.$ac_objext \
6418 conftest$ac_exeext conftest.$ac_ext
6421 LIBS=$ac_func_search_save_LIBS
6423 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6424 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6425 if test "$ac_cv_search_opendir" != no; then
6426 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6443 inttypes.h stdint.h unistd.h
6445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6446 echo "$as_me:$LINENO: checking for $ac_header" >&5
6447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 $ac_includes_default
6459 #include <$ac_header>
6461 rm -f conftest.$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463 (eval $ac_compile) 2>conftest.er1
6465 grep -v '^ *+' conftest.er1 >conftest.err
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try='test -z "$ac_c_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest.$ac_objext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 eval "$as_ac_Header=yes"
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 eval "$as_ac_Header=no"
6490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6495 cat >>confdefs.h <<_ACEOF
6496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 for ac_header in dlfcn.h
6507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6509 echo "$as_me:$LINENO: checking for $ac_header" >&5
6510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6517 # Is the header compilable?
6518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6527 #include <$ac_header>
6529 rm -f conftest.$ac_objext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531 (eval $ac_compile) 2>conftest.er1
6533 grep -v '^ *+' conftest.er1 >conftest.err
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -z "$ac_c_werror_flag"
6539 || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 ac_header_compiler=yes
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 ac_header_compiler=no
6558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6560 echo "${ECHO_T}$ac_header_compiler" >&6
6562 # Is the header present?
6563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6565 cat >conftest.$ac_ext <<_ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <$ac_header>
6573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6576 grep -v '^ *+' conftest.er1 >conftest.err
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } >/dev/null; then
6581 if test -s conftest.err; then
6582 ac_cpp_err=$ac_c_preproc_warn_flag
6583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6590 if test -z "$ac_cpp_err"; then
6591 ac_header_preproc=yes
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 ac_header_preproc=no
6598 rm -f conftest.err conftest.$ac_ext
6599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6600 echo "${ECHO_T}$ac_header_preproc" >&6
6602 # So? What about this header?
6603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6609 ac_header_preproc=yes
6612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6626 ## ----------------------------------- ##
6627 ## Report this to llvmbugs@cs.uiuc.edu ##
6628 ## ----------------------------------- ##
6631 sed "s/^/$as_me: WARNING: /" >&2
6634 echo "$as_me:$LINENO: checking for $ac_header" >&5
6635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 eval "$as_ac_Header=\$ac_header_preproc"
6641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6646 cat >>confdefs.h <<_ACEOF
6647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6654 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6655 if test "${enable_ltdl_install+set}" = set; then
6656 enableval="$enable_ltdl_install"
6662 if test x"${enable_ltdl_install-no}" != xno; then
6664 INSTALL_LTDL_FALSE='#'
6666 INSTALL_LTDL_TRUE='#'
6672 if test x"${enable_ltdl_convenience-no}" != xno; then
6673 CONVENIENCE_LTDL_TRUE=
6674 CONVENIENCE_LTDL_FALSE='#'
6676 CONVENIENCE_LTDL_TRUE='#'
6677 CONVENIENCE_LTDL_FALSE=
6681 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6682 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6684 libname_spec='lib$name'
6692 shlibpath_overrides_runpath=unknown
6694 dynamic_linker="$host_os ld.so"
6695 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6696 if test "$GCC" = yes; then
6697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6698 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6699 # if the path contains ";" then we assume it to be the separator
6700 # otherwise default to the standard path separator (i.e. ":") - it is
6701 # assumed that no part of a normal pathname contains ";" but that should
6702 # okay in the real world where ";" in dirpaths is itself problematic.
6703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6710 need_lib_prefix=unknown
6711 hardcode_into_libs=no
6713 # when you set need_version to no, make sure it does not cause -set_version
6714 # flags to be left without arguments
6715 need_version=unknown
6720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6721 shlibpath_var=LIBPATH
6723 # AIX 3 has no versioning support, so we append a major version to the name.
6724 soname_spec='${libname}${release}${shared_ext}$major'
6731 hardcode_into_libs=yes
6732 if test "$host_cpu" = ia64; then
6733 # AIX 5 supports IA64
6734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6735 shlibpath_var=LD_LIBRARY_PATH
6737 # With GCC up to 2.95.x, collect2 would create an import file
6738 # for dependence libraries. The import file would start with
6739 # the line `#! .'. This would cause the generated library to
6740 # depend on `.', always an invalid library. This was fixed in
6741 # development snapshots of GCC prior to 3.0.
6743 aix4 | aix4.[01] | aix4.[01].*)
6744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6746 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6754 # soname into executable. Probably we can add versioning support to
6755 # collect2, so additional links can be useful in future.
6756 if test "$aix_use_runtimelinking" = yes; then
6757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6758 # instead of lib<name>.a to let people know that these are not
6759 # typical AIX shared libraries.
6760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6762 # We preserve .a as extension for shared libraries through AIX4.2
6763 # and later when we are not doing run time linking.
6764 library_names_spec='${libname}${release}.a $libname.a'
6765 soname_spec='${libname}${release}${shared_ext}$major'
6767 shlibpath_var=LIBPATH
6772 library_names_spec='$libname.ixlibrary $libname.a'
6773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6774 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'
6778 library_names_spec='${libname}${shared_ext}'
6779 dynamic_linker="$host_os ld.so"
6780 shlibpath_var=LIBRARY_PATH
6786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6787 soname_spec='${libname}${release}${shared_ext}$major'
6788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6789 shlibpath_var=LD_LIBRARY_PATH
6790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6792 # the default ld.so.conf also contains /usr/contrib/lib and
6793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6794 # libtool to hard-code these into programs
6797 cygwin* | mingw* | pw32*)
6798 version_type=windows
6803 case $GCC,$host_os in
6804 yes,cygwin* | yes,mingw* | yes,pw32*)
6805 library_names_spec='$libname.dll.a'
6806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6807 postinstall_cmds='base_file=`basename \${file}`~
6808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6809 dldir=$destdir/`dirname \$dlpath`~
6810 test -d \$dldir || mkdir -p \$dldir~
6811 $install_prog $dir/$dlname \$dldir/$dlname'
6812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6813 dlpath=$dir/\$dldll~
6815 shlibpath_overrides_runpath=yes
6819 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6821 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6824 # MinGW DLLs use traditional 'lib' prefix
6825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6827 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6828 # It is most probably a Windows format PATH printed by
6829 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6830 # path with ; separators, and with drive letters. We can handle the
6831 # drive letters (cygwin fileutils understands them), so leave them,
6832 # especially as we might pass files found there to a mingw objdump,
6833 # which wouldn't understand a cygwinified path. Ahh.
6834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6840 # pw32 DLLs use 'pw' prefix rather than 'lib'
6841 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6850 dynamic_linker='Win32 ld.exe'
6851 # FIXME: first we should search . and the directory the executable is in
6855 darwin* | rhapsody*)
6856 dynamic_linker="$host_os dyld"
6860 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6861 soname_spec='${libname}${release}${major}$shared_ext'
6862 shlibpath_overrides_runpath=yes
6863 shlibpath_var=DYLD_LIBRARY_PATH
6864 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6865 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6866 if test "$GCC" = yes; then
6867 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"`
6869 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6879 soname_spec='${libname}${release}${shared_ext}$major'
6880 shlibpath_var=LD_LIBRARY_PATH
6891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6892 soname_spec='${libname}${release}${shared_ext}$major'
6893 shlibpath_var=LD_LIBRARY_PATH
6894 shlibpath_overrides_runpath=no
6895 hardcode_into_libs=yes
6896 dynamic_linker='GNU ld.so'
6900 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6901 version_type=freebsd-$objformat
6902 case $version_type in
6904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6913 shlibpath_var=LD_LIBRARY_PATH
6916 shlibpath_overrides_runpath=yes
6918 freebsd3.01* | freebsdelf3.01*)
6919 shlibpath_overrides_runpath=yes
6920 hardcode_into_libs=yes
6923 shlibpath_overrides_runpath=no
6924 hardcode_into_libs=yes
6933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6934 soname_spec='${libname}${release}${shared_ext}$major'
6935 shlibpath_var=LD_LIBRARY_PATH
6936 hardcode_into_libs=yes
6939 hpux9* | hpux10* | hpux11*)
6940 # Give a soname corresponding to the major version so that dld.sl refuses to
6941 # link against other versions.
6948 hardcode_into_libs=yes
6949 dynamic_linker="$host_os dld.so"
6950 shlibpath_var=LD_LIBRARY_PATH
6951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6953 soname_spec='${libname}${release}${shared_ext}$major'
6954 if test "X$HPUX_IA64_MODE" = X32; then
6955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6963 hardcode_into_libs=yes
6964 dynamic_linker="$host_os dld.sl"
6965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6968 soname_spec='${libname}${release}${shared_ext}$major'
6969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6974 dynamic_linker="$host_os dld.sl"
6975 shlibpath_var=SHLIB_PATH
6976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6978 soname_spec='${libname}${release}${shared_ext}$major'
6981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6982 postinstall_cmds='chmod 555 $lib'
6985 irix5* | irix6* | nonstopux*)
6987 nonstopux*) version_type=nonstopux ;;
6989 if test "$lt_cv_prog_gnu_ld" = yes; then
6997 soname_spec='${libname}${release}${shared_ext}$major'
6998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7000 irix5* | nonstopux*)
7004 case $LD in # libtool.m4 will add one of these switches to LD
7005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7006 libsuff= shlibsuff= libmagic=32-bit;;
7007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7008 libsuff=32 shlibsuff=N32 libmagic=N32;;
7009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7011 *) libsuff= shlibsuff= libmagic=never-match;;
7015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7016 shlibpath_overrides_runpath=no
7017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7019 hardcode_into_libs=yes
7022 # No shared lib support for Linux oldld, aout, or coff.
7023 linux*oldld* | linux*aout* | linux*coff*)
7027 # This must be Linux ELF.
7032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033 soname_spec='${libname}${release}${shared_ext}$major'
7034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7035 shlibpath_var=LD_LIBRARY_PATH
7036 shlibpath_overrides_runpath=no
7037 # This implies no fast_install, which is unacceptable.
7038 # Some rework will be needed to allow for fast_install
7039 # before this can be enabled.
7040 hardcode_into_libs=yes
7042 # Append ld.so.conf contents to the search path
7043 if test -f /etc/ld.so.conf; then
7044 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7048 # We used to test for /lib/ld.so.1 and disable shared libraries on
7049 # powerpc, because MkLinux only supported shared libraries with the
7050 # GNU dynamic linker. Since this was broken with cross compilers,
7051 # most powerpc-linux boxes support dynamic linking these days and
7052 # people can always --disable-shared, the test was removed, and we
7053 # assume the GNU/Linux dynamic linker is in use.
7054 dynamic_linker='GNU/Linux ld.so'
7061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7062 soname_spec='${libname}${release}${shared_ext}$major'
7063 shlibpath_var=LD_LIBRARY_PATH
7064 shlibpath_overrides_runpath=no
7065 hardcode_into_libs=yes
7066 dynamic_linker='GNU ld.so'
7073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7076 dynamic_linker='NetBSD (a.out) ld.so'
7078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7079 soname_spec='${libname}${release}${shared_ext}$major'
7080 dynamic_linker='NetBSD ld.elf_so'
7082 shlibpath_var=LD_LIBRARY_PATH
7083 shlibpath_overrides_runpath=yes
7084 hardcode_into_libs=yes
7089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7090 shlibpath_var=LD_LIBRARY_PATH
7091 shlibpath_overrides_runpath=yes
7098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7099 soname_spec='${libname}${release}${shared_ext}$major'
7100 shlibpath_var=LD_LIBRARY_PATH
7101 shlibpath_overrides_runpath=yes
7108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7110 shlibpath_var=LD_LIBRARY_PATH
7111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7113 openbsd2.[89] | openbsd2.[89].*)
7114 shlibpath_overrides_runpath=no
7117 shlibpath_overrides_runpath=yes
7121 shlibpath_overrides_runpath=yes
7126 libname_spec='$name'
7129 library_names_spec='$libname${shared_ext} $libname.a'
7130 dynamic_linker='OS/2 ld.exe'
7131 shlibpath_var=LIBPATH
7134 osf3* | osf4* | osf5*)
7138 soname_spec='${libname}${release}${shared_ext}$major'
7139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7140 shlibpath_var=LD_LIBRARY_PATH
7141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7147 soname_spec='${libname}${release}${shared_ext}$major'
7148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7149 shlibpath_var=LD_LIBRARY_PATH
7156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7157 soname_spec='${libname}${release}${shared_ext}$major'
7158 shlibpath_var=LD_LIBRARY_PATH
7159 shlibpath_overrides_runpath=yes
7160 hardcode_into_libs=yes
7161 # ldd complains unless libraries are executable
7162 postinstall_cmds='chmod +x $lib'
7167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7169 shlibpath_var=LD_LIBRARY_PATH
7170 shlibpath_overrides_runpath=yes
7171 if test "$with_gnu_ld" = yes; then
7177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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 case $host_vendor in
7184 shlibpath_overrides_runpath=no
7186 export_dynamic_flag_spec='${wl}-Blargedynsym'
7187 runpath_var=LD_RUN_PATH
7195 shlibpath_overrides_runpath=no
7196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7202 if test -d /usr/nec ;then
7204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7205 soname_spec='$libname${shared_ext}.$major'
7206 shlibpath_var=LD_LIBRARY_PATH
7212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7213 soname_spec='${libname}${release}${shared_ext}$major'
7214 shlibpath_var=LD_LIBRARY_PATH
7221 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7222 echo "${ECHO_T}$dynamic_linker" >&6
7223 test "$dynamic_linker" = no && can_build_shared=no
7226 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7227 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7228 if test "${libltdl_cv_shlibext+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 eval libltdl_cv_shlibext=$shrext_cmds
7236 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7237 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7238 if test -n "$libltdl_cv_shlibext"; then
7240 cat >>confdefs.h <<_ACEOF
7241 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7247 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7248 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7249 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 libltdl_cv_shlibpath_var="$shlibpath_var"
7254 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7255 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7256 if test -n "$libltdl_cv_shlibpath_var"; then
7258 cat >>confdefs.h <<_ACEOF
7259 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7265 echo "$as_me:$LINENO: checking for the default library search path" >&5
7266 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7267 if test "${libltdl_cv_sys_search_path+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7272 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7273 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7274 if test -n "$libltdl_cv_sys_search_path"; then
7276 for dir in $libltdl_cv_sys_search_path; do
7277 if test -z "$sys_search_path"; then
7278 sys_search_path="$dir"
7280 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7284 cat >>confdefs.h <<_ACEOF
7285 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7290 echo "$as_me:$LINENO: checking for objdir" >&5
7291 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7292 if test "${libltdl_cv_objdir+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 libltdl_cv_objdir="$objdir"
7296 if test -n "$objdir"; then
7299 rm -f .libs 2>/dev/null
7300 mkdir .libs 2>/dev/null
7301 if test -d .libs; then
7302 libltdl_cv_objdir=.libs
7304 # MS-DOS does not allow filenames that begin with a dot.
7305 libltdl_cv_objdir=_libs
7307 rmdir .libs 2>/dev/null
7311 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7312 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7314 cat >>confdefs.h <<_ACEOF
7315 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7319 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7320 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7321 if test "${lt_cv_path_NM+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 if test -n "$NM"; then
7325 # Let the user override the test.
7328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7329 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7331 test -z "$ac_dir" && ac_dir=.
7332 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7333 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7334 # Check to see if the nm accepts a BSD-compat flag.
7335 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7336 # nm: unknown option "B" ignored
7337 # Tru64's nm complains that /dev/null is an invalid object file
7338 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7339 */dev/null* | *'Invalid file or object type'*)
7340 lt_cv_path_NM="$tmp_nm -B"
7344 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7346 lt_cv_path_NM="$tmp_nm -p"
7350 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7351 continue # so that we can try to find one that supports BSD flags
7358 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7361 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7362 echo "${ECHO_T}$lt_cv_path_NM" >&6
7369 # Check for command to grab the raw symbol name followed by C symbol from nm.
7370 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7371 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7372 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 # These are sane defaults that work on at least a few old systems.
7377 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7379 # Character class describing NM global symbol codes.
7380 symcode='[BCDEGRST]'
7382 # Regexp to match symbols that can be accessed directly from C.
7383 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7385 # Transform the above into a raw symbol and a C symbol.
7386 symxfrm='\1 \2\3 \3'
7388 # Transform an extracted symbol line into a proper C declaration
7389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7391 # Transform an extracted symbol line into symbol name and symbol address
7392 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'"
7394 # Define system-specific variables.
7399 cygwin* | mingw* | pw32*)
7400 symcode='[ABCDGISTW]'
7402 hpux*) # Its linker distinguishes data from code symbols
7403 if test "$host_cpu" = ia64; then
7404 symcode='[ABCDEGRST]'
7406 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7407 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'"
7410 if test "$host_cpu" = ia64; then
7411 symcode='[ABCDGIRSTW]'
7412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7413 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 symcode='[BCDEGRST]'
7420 symcode='[BCDEGQRST]'
7430 # Handle CRLF in mingw tool chain
7434 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7438 # If we're using GNU nm, then use its standard symbol codes.
7439 case `$NM -V 2>&1` in
7440 *GNU* | *'with BFD'*)
7441 symcode='[ABCDGIRSTW]' ;;
7444 # Try without a prefix undercore, then with it.
7445 for ac_symprfx in "" "_"; do
7447 # Write the raw and C identifiers.
7448 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7450 # Check to see that the pipe works correctly.
7454 cat > conftest.$ac_ext <<EOF
7459 void nm_test_func(){}
7463 int main(){nm_test_var='a';nm_test_func();return(0);}
7466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7467 (eval $ac_compile) 2>&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; then
7471 # Now try to grab the symbols.
7473 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7474 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && test -s "$nlist"; then
7478 # Try sorting and uniquifying the output.
7479 if sort "$nlist" | uniq > "$nlist"T; then
7480 mv -f "$nlist"T "$nlist"
7485 # Make sure that we snagged all the symbols we need.
7486 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7487 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7488 cat <<EOF > conftest.$ac_ext
7494 # Now generate the symbol file.
7495 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7497 cat <<EOF >> conftest.$ac_ext
7498 #if defined (__STDC__) && __STDC__
7499 # define lt_ptr_t void *
7501 # define lt_ptr_t char *
7505 /* The mapping between symbol names and symbols. */
7510 lt_preloaded_symbols[] =
7513 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7514 cat <<\EOF >> conftest.$ac_ext
7522 # Now try linking the two files.
7523 mv conftest.$ac_objext conftstm.$ac_objext
7524 lt_save_LIBS="$LIBS"
7525 lt_save_CFLAGS="$CFLAGS"
7526 LIBS="conftstm.$ac_objext"
7527 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7529 (eval $ac_link) 2>&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7535 LIBS="$lt_save_LIBS"
7536 CFLAGS="$lt_save_CFLAGS"
7538 echo "cannot find nm_test_func in $nlist" >&5
7541 echo "cannot find nm_test_var in $nlist" >&5
7544 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7547 echo "$progname: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7550 rm -f conftest* conftst*
7552 # Do not use the global_symbol_pipe unless it works.
7553 if test "$pipe_works" = yes; then
7556 lt_cv_sys_global_symbol_pipe=
7562 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7563 lt_cv_sys_global_symbol_to_cdecl=
7565 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7566 echo "$as_me:$LINENO: result: failed" >&5
7567 echo "${ECHO_T}failed" >&6
7569 echo "$as_me:$LINENO: result: ok" >&5
7570 echo "${ECHO_T}ok" >&6
7574 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7575 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7576 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7580 libltdl_cv_preloaded_symbols=yes
7582 libltdl_cv_preloaded_symbols=no
7586 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7587 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7588 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_PRELOADED_SYMBOLS 1
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7605 echo "$as_me:$LINENO: checking for shl_load" >&5
7606 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7607 if test "${ac_cv_func_shl_load+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 cat >conftest.$ac_ext <<_ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7618 #define shl_load innocuous_shl_load
7620 /* System header to define __stub macros and hopefully few prototypes,
7621 which can conflict with char shl_load (); below.
7622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7623 <limits.h> exists even on freestanding compilers. */
7626 # include <limits.h>
7628 # include <assert.h>
7633 /* Override any gcc2 internal prototype to avoid an error. */
7638 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7641 /* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7647 char (*f) () = shl_load;
7656 return f != shl_load;
7661 rm -f conftest.$ac_objext conftest$ac_exeext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>conftest.er1
7665 grep -v '^ *+' conftest.er1 >conftest.err
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } &&
7670 { ac_try='test -z "$ac_c_werror_flag"
7671 || test ! -s conftest.err'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; } &&
7677 { ac_try='test -s conftest$ac_exeext'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; }; then
7683 ac_cv_func_shl_load=yes
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 ac_cv_func_shl_load=no
7690 rm -f conftest.err conftest.$ac_objext \
7691 conftest$ac_exeext conftest.$ac_ext
7693 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7694 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7695 if test $ac_cv_func_shl_load = yes; then
7697 cat >>confdefs.h <<\_ACEOF
7698 #define HAVE_SHL_LOAD 1
7702 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7703 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7704 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 ac_check_lib_save_LIBS=$LIBS
7709 cat >conftest.$ac_ext <<_ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7716 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7733 (eval $ac_link) 2>conftest.er1
7735 grep -v '^ *+' conftest.er1 >conftest.err
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -z "$ac_c_werror_flag"
7741 || test ! -s conftest.err'
7742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; } &&
7747 { ac_try='test -s conftest$ac_exeext'
7748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; }; then
7753 ac_cv_lib_dld_shl_load=yes
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7758 ac_cv_lib_dld_shl_load=no
7760 rm -f conftest.err conftest.$ac_objext \
7761 conftest$ac_exeext conftest.$ac_ext
7762 LIBS=$ac_check_lib_save_LIBS
7764 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7765 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7766 if test $ac_cv_lib_dld_shl_load = yes; then
7768 cat >>confdefs.h <<\_ACEOF
7769 #define HAVE_SHL_LOAD 1
7772 LIBADD_DL="$LIBADD_DL -ldld"
7774 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7775 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7776 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 ac_check_lib_save_LIBS=$LIBS
7781 cat >conftest.$ac_ext <<_ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7788 /* Override any gcc2 internal prototype to avoid an error. */
7792 /* We use char because int might match the return type of a gcc2
7793 builtin and then its argument prototype would still apply. */
7803 rm -f conftest.$ac_objext conftest$ac_exeext
7804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7805 (eval $ac_link) 2>conftest.er1
7807 grep -v '^ *+' conftest.er1 >conftest.err
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -z "$ac_c_werror_flag"
7813 || test ! -s conftest.err'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; } &&
7819 { ac_try='test -s conftest$ac_exeext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_cv_lib_dl_dlopen=yes
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7830 ac_cv_lib_dl_dlopen=no
7832 rm -f conftest.err conftest.$ac_objext \
7833 conftest$ac_exeext conftest.$ac_ext
7834 LIBS=$ac_check_lib_save_LIBS
7836 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7837 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7838 if test $ac_cv_lib_dl_dlopen = yes; then
7840 cat >>confdefs.h <<\_ACEOF
7841 #define HAVE_LIBDL 1
7844 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7846 cat >conftest.$ac_ext <<_ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7864 rm -f conftest.$ac_objext conftest$ac_exeext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7866 (eval $ac_link) 2>conftest.er1
7868 grep -v '^ *+' conftest.er1 >conftest.err
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag"
7874 || test ! -s conftest.err'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; } &&
7880 { ac_try='test -s conftest$ac_exeext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_LIBDL 1
7890 libltdl_cv_func_dlopen="yes"
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7895 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7896 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7897 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 ac_check_lib_save_LIBS=$LIBS
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7909 /* Override any gcc2 internal prototype to avoid an error. */
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926 (eval $ac_link) 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag"
7934 || test ! -s conftest.err'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; } &&
7940 { ac_try='test -s conftest$ac_exeext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 ac_cv_lib_svld_dlopen=yes
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 ac_cv_lib_svld_dlopen=no
7953 rm -f conftest.err conftest.$ac_objext \
7954 conftest$ac_exeext conftest.$ac_ext
7955 LIBS=$ac_check_lib_save_LIBS
7957 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7958 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7959 if test $ac_cv_lib_svld_dlopen = yes; then
7961 cat >>confdefs.h <<\_ACEOF
7962 #define HAVE_LIBDL 1
7965 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7967 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7968 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7969 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 ac_check_lib_save_LIBS=$LIBS
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7981 /* Override any gcc2 internal prototype to avoid an error. */
7985 /* We use char because int might match the return type of a gcc2
7986 builtin and then its argument prototype would still apply. */
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998 (eval $ac_link) 2>conftest.er1
8000 grep -v '^ *+' conftest.er1 >conftest.err
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -z "$ac_c_werror_flag"
8006 || test ! -s conftest.err'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; } &&
8012 { ac_try='test -s conftest$ac_exeext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_cv_lib_dld_dld_link=yes
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_cv_lib_dld_dld_link=no
8025 rm -f conftest.err conftest.$ac_objext \
8026 conftest$ac_exeext conftest.$ac_ext
8027 LIBS=$ac_check_lib_save_LIBS
8029 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8030 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8031 if test $ac_cv_lib_dld_dld_link = yes; then
8033 cat >>confdefs.h <<\_ACEOF
8037 LIBADD_DL="$LIBADD_DL -ldld"
8039 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8040 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8041 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 cat >conftest.$ac_ext <<_ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8052 #define _dyld_func_lookup innocuous__dyld_func_lookup
8054 /* System header to define __stub macros and hopefully few prototypes,
8055 which can conflict with char _dyld_func_lookup (); below.
8056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8057 <limits.h> exists even on freestanding compilers. */
8060 # include <limits.h>
8062 # include <assert.h>
8065 #undef _dyld_func_lookup
8067 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8074 char _dyld_func_lookup ();
8075 /* The GNU C library defines this for functions which it implements
8076 to always fail with ENOSYS. Some functions are actually named
8077 something starting with __ and the normal name is an alias. */
8078 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8081 char (*f) () = _dyld_func_lookup;
8090 return f != _dyld_func_lookup;
8095 rm -f conftest.$ac_objext conftest$ac_exeext
8096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8097 (eval $ac_link) 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -z "$ac_c_werror_flag"
8105 || test ! -s conftest.err'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest$ac_exeext'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8117 ac_cv_func__dyld_func_lookup=yes
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8122 ac_cv_func__dyld_func_lookup=no
8124 rm -f conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
8127 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8128 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8129 if test $ac_cv_func__dyld_func_lookup = yes; then
8131 cat >>confdefs.h <<\_ACEOF
8145 rm -f conftest.err conftest.$ac_objext \
8146 conftest$ac_exeext conftest.$ac_ext
8157 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8159 lt_save_LIBS="$LIBS"
8160 LIBS="$LIBS $LIBADD_DL"
8162 for ac_func in dlerror
8164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8165 echo "$as_me:$LINENO: checking for $ac_func" >&5
8166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8167 if eval "test \"\${$as_ac_var+set}\" = set"; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 cat >conftest.$ac_ext <<_ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8178 #define $ac_func innocuous_$ac_func
8180 /* System header to define __stub macros and hopefully few prototypes,
8181 which can conflict with char $ac_func (); below.
8182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8183 <limits.h> exists even on freestanding compilers. */
8186 # include <limits.h>
8188 # include <assert.h>
8193 /* Override any gcc2 internal prototype to avoid an error. */
8198 /* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */
8201 /* The GNU C library defines this for functions which it implements
8202 to always fail with ENOSYS. Some functions are actually named
8203 something starting with __ and the normal name is an alias. */
8204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8207 char (*f) () = $ac_func;
8216 return f != $ac_func;
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223 (eval $ac_link) 2>conftest.er1
8225 grep -v '^ *+' conftest.er1 >conftest.err
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag"
8231 || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try='test -s conftest$ac_exeext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 eval "$as_ac_var=yes"
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 eval "$as_ac_var=no"
8250 rm -f conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
8253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8255 if test `eval echo '${'$as_ac_var'}'` = yes; then
8256 cat >>confdefs.h <<_ACEOF
8257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8263 LIBS="$lt_save_LIBS"
8266 ac_cpp='$CPP $CPPFLAGS'
8267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8273 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8274 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8275 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 ac_cv_sys_symbol_underscore=no
8279 cat > conftest.$ac_ext <<EOF
8280 void nm_test_func(){}
8281 int main(){nm_test_func;return 0;}
8283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8284 (eval $ac_compile) 2>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; then
8288 # Now try to grab the symbols.
8289 ac_nlist=conftest.nm
8290 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8291 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } && test -s "$ac_nlist"; then
8295 # See whether the symbols have a leading underscore.
8296 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8297 ac_cv_sys_symbol_underscore=yes
8299 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8302 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8306 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8309 echo "configure: failed program was:" >&5
8315 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8316 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8319 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8320 if test x"$libltdl_cv_func_dlopen" = xyes ||
8321 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8322 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8323 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8324 if test "${libltdl_cv_need_uscore+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 libltdl_cv_need_uscore=unknown
8329 LIBS="$LIBS $LIBADD_DL"
8330 if test "$cross_compiling" = yes; then :
8331 libltdl_cv_need_uscore=cross
8333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8334 lt_status=$lt_dlunknown
8335 cat > conftest.$ac_ext <<EOF
8336 #line 8336 "configure"
8337 #include "confdefs.h"
8346 # define LT_DLGLOBAL RTLD_GLOBAL
8349 # define LT_DLGLOBAL DL_GLOBAL
8351 # define LT_DLGLOBAL 0
8355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8356 find out it does not work in some platform. */
8357 #ifndef LT_DLLAZY_OR_NOW
8359 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8362 # define LT_DLLAZY_OR_NOW DL_LAZY
8365 # define LT_DLLAZY_OR_NOW RTLD_NOW
8368 # define LT_DLLAZY_OR_NOW DL_NOW
8370 # define LT_DLLAZY_OR_NOW 0
8378 extern "C" void exit (int);
8381 void fnord() { int i=42;}
8384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8385 int status = $lt_dlunknown;
8389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8390 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8391 /* dlclose (self); */
8397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398 (eval $ac_link) 2>&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8402 (./conftest; exit; ) 2>/dev/null
8405 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8406 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8410 # compilation failed
8419 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8420 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8424 if test x"$libltdl_cv_need_uscore" = xyes; then
8426 cat >>confdefs.h <<\_ACEOF
8427 #define NEED_USCORE 1
8433 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8434 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8435 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 # PORTME does your system automatically load deplibs for dlopen?
8439 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8440 # For now, we just catch OSes we know something about -- in the
8441 # future, we'll try test this programmatically.
8442 libltdl_cv_sys_dlopen_deplibs=unknown
8444 aix3*|aix4.1.*|aix4.2.*)
8445 # Unknown whether this is true for these versions of AIX, but
8446 # we want this `case' here to explicitly catch those versions.
8447 libltdl_cv_sys_dlopen_deplibs=unknown
8450 libltdl_cv_sys_dlopen_deplibs=yes
8453 # Assuming the user has installed a libdl from somewhere, this is true
8454 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8455 libltdl_cv_sys_dlopen_deplibs=yes
8457 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8458 # GNU and its variants, using gnu ld.so (Glibc)
8459 libltdl_cv_sys_dlopen_deplibs=yes
8462 libltdl_cv_sys_dlopen_deplibs=yes
8464 irix[12345]*|irix6.[01]*)
8465 # Catch all versions of IRIX before 6.2, and indicate that we don't
8466 # know how it worked for any of those versions.
8467 libltdl_cv_sys_dlopen_deplibs=unknown
8470 # The case above catches anything before 6.2, and it's known that
8471 # at 6.2 and later dlopen does load deplibs.
8472 libltdl_cv_sys_dlopen_deplibs=yes
8475 libltdl_cv_sys_dlopen_deplibs=yes
8478 libltdl_cv_sys_dlopen_deplibs=yes
8481 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8482 # it did *not* use an RPATH in a shared library to find objects the
8483 # library depends on, so we explictly say `no'.
8484 libltdl_cv_sys_dlopen_deplibs=no
8486 osf5.0|osf5.0a|osf5.1)
8487 # dlopen *does* load deplibs and with the right loader patch applied
8488 # it even uses RPATH in a shared library to search for shared objects
8489 # that the library depends on, but there's no easy way to know if that
8490 # patch is installed. Since this is the case, all we can really
8491 # say is unknown -- it depends on the patch being installed. If
8492 # it is, this changes to `yes'. Without it, it would be `no'.
8493 libltdl_cv_sys_dlopen_deplibs=unknown
8496 # the two cases above should catch all versions of osf <= 5.1. Read
8497 # the comments above for what we know about them.
8498 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8499 # is used to find them so we can finally say `yes'.
8500 libltdl_cv_sys_dlopen_deplibs=yes
8503 libltdl_cv_sys_dlopen_deplibs=yes
8508 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8509 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8510 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8512 cat >>confdefs.h <<\_ACEOF
8513 #define LTDL_DLOPEN_DEPLIBS 1
8519 for ac_header in argz.h
8521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8523 echo "$as_me:$LINENO: checking for $ac_header" >&5
8524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8531 # Is the header compilable?
8532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8541 #include <$ac_header>
8543 rm -f conftest.$ac_objext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>conftest.er1
8547 grep -v '^ *+' conftest.er1 >conftest.err
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -z "$ac_c_werror_flag"
8553 || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest.$ac_objext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_header_compiler=yes
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8570 ac_header_compiler=no
8572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8574 echo "${ECHO_T}$ac_header_compiler" >&6
8576 # Is the header present?
8577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8579 cat >conftest.$ac_ext <<_ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <$ac_header>
8587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8590 grep -v '^ *+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } >/dev/null; then
8595 if test -s conftest.err; then
8596 ac_cpp_err=$ac_c_preproc_warn_flag
8597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8604 if test -z "$ac_cpp_err"; then
8605 ac_header_preproc=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_header_preproc=no
8612 rm -f conftest.err conftest.$ac_ext
8613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8614 echo "${ECHO_T}$ac_header_preproc" >&6
8616 # So? What about this header?
8617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8623 ac_header_preproc=yes
8626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8640 ## ----------------------------------- ##
8641 ## Report this to llvmbugs@cs.uiuc.edu ##
8642 ## ----------------------------------- ##
8645 sed "s/^/$as_me: WARNING: /" >&2
8648 echo "$as_me:$LINENO: checking for $ac_header" >&5
8649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 eval "$as_ac_Header=\$ac_header_preproc"
8655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8660 cat >>confdefs.h <<_ACEOF
8661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8669 echo "$as_me:$LINENO: checking for error_t" >&5
8670 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8671 if test "${ac_cv_type_error_t+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 cat >conftest.$ac_ext <<_ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8689 if (sizeof (error_t))
8695 rm -f conftest.$ac_objext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8697 (eval $ac_compile) 2>conftest.er1
8699 grep -v '^ *+' conftest.er1 >conftest.err
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest.$ac_objext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_type_error_t=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 ac_cv_type_error_t=no
8724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8726 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8727 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8728 if test $ac_cv_type_error_t = yes; then
8730 cat >>confdefs.h <<_ACEOF
8731 #define HAVE_ERROR_T 1
8737 cat >>confdefs.h <<\_ACEOF
8749 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8752 echo "$as_me:$LINENO: checking for $ac_func" >&5
8753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8754 if eval "test \"\${$as_ac_var+set}\" = set"; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 cat >conftest.$ac_ext <<_ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8765 #define $ac_func innocuous_$ac_func
8767 /* System header to define __stub macros and hopefully few prototypes,
8768 which can conflict with char $ac_func (); below.
8769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8770 <limits.h> exists even on freestanding compilers. */
8773 # include <limits.h>
8775 # include <assert.h>
8780 /* Override any gcc2 internal prototype to avoid an error. */
8785 /* We use char because int might match the return type of a gcc2
8786 builtin and then its argument prototype would still apply. */
8788 /* The GNU C library defines this for functions which it implements
8789 to always fail with ENOSYS. Some functions are actually named
8790 something starting with __ and the normal name is an alias. */
8791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8794 char (*f) () = $ac_func;
8803 return f != $ac_func;
8808 rm -f conftest.$ac_objext conftest$ac_exeext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8810 (eval $ac_link) 2>conftest.er1
8812 grep -v '^ *+' conftest.er1 >conftest.err
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } &&
8817 { ac_try='test -z "$ac_c_werror_flag"
8818 || test ! -s conftest.err'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; } &&
8824 { ac_try='test -s conftest$ac_exeext'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 eval "$as_ac_var=yes"
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8835 eval "$as_ac_var=no"
8837 rm -f conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8842 if test `eval echo '${'$as_ac_var'}'` = yes; then
8843 cat >>confdefs.h <<_ACEOF
8844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8877 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8882 echo "$as_me:$LINENO: checking for $ac_header" >&5
8883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8890 # Is the header compilable?
8891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8893 cat >conftest.$ac_ext <<_ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 $ac_includes_default
8900 #include <$ac_header>
8902 rm -f conftest.$ac_objext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8904 (eval $ac_compile) 2>conftest.er1
8906 grep -v '^ *+' conftest.er1 >conftest.err
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -z "$ac_c_werror_flag"
8912 || test ! -s conftest.err'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; } &&
8918 { ac_try='test -s conftest.$ac_objext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 ac_header_compiler=yes
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 ac_header_compiler=no
8931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8933 echo "${ECHO_T}$ac_header_compiler" >&6
8935 # Is the header present?
8936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8938 cat >conftest.$ac_ext <<_ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8944 #include <$ac_header>
8946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8949 grep -v '^ *+' conftest.er1 >conftest.err
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } >/dev/null; then
8954 if test -s conftest.err; then
8955 ac_cpp_err=$ac_c_preproc_warn_flag
8956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8963 if test -z "$ac_cpp_err"; then
8964 ac_header_preproc=yes
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8969 ac_header_preproc=no
8971 rm -f conftest.err conftest.$ac_ext
8972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8973 echo "${ECHO_T}$ac_header_preproc" >&6
8975 # So? What about this header?
8976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8982 ac_header_preproc=yes
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8999 ## ----------------------------------- ##
9000 ## Report this to llvmbugs@cs.uiuc.edu ##
9001 ## ----------------------------------- ##
9004 sed "s/^/$as_me: WARNING: /" >&2
9007 echo "$as_me:$LINENO: checking for $ac_header" >&5
9008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 eval "$as_ac_Header=\$ac_header_preproc"
9014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9019 cat >>confdefs.h <<_ACEOF
9020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9035 echo "$as_me:$LINENO: checking for $ac_header" >&5
9036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9043 # Is the header compilable?
9044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 $ac_includes_default
9053 #include <$ac_header>
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>conftest.er1
9059 grep -v '^ *+' conftest.er1 >conftest.err
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_header_compiler=yes
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9082 ac_header_compiler=no
9084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9086 echo "${ECHO_T}$ac_header_compiler" >&6
9088 # Is the header present?
9089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9091 cat >conftest.$ac_ext <<_ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <$ac_header>
9099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9102 grep -v '^ *+' conftest.er1 >conftest.err
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } >/dev/null; then
9107 if test -s conftest.err; then
9108 ac_cpp_err=$ac_c_preproc_warn_flag
9109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9116 if test -z "$ac_cpp_err"; then
9117 ac_header_preproc=yes
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 ac_header_preproc=no
9124 rm -f conftest.err conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9126 echo "${ECHO_T}$ac_header_preproc" >&6
9128 # So? What about this header?
9129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9135 ac_header_preproc=yes
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9152 ## ----------------------------------- ##
9153 ## Report this to llvmbugs@cs.uiuc.edu ##
9154 ## ----------------------------------- ##
9157 sed "s/^/$as_me: WARNING: /" >&2
9160 echo "$as_me:$LINENO: checking for $ac_header" >&5
9161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 eval "$as_ac_Header=\$ac_header_preproc"
9167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9172 cat >>confdefs.h <<_ACEOF
9173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182 for ac_header in string.h strings.h
9184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9186 echo "$as_me:$LINENO: checking for $ac_header" >&5
9187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9194 # Is the header compilable?
9195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9197 cat >conftest.$ac_ext <<_ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 $ac_includes_default
9204 #include <$ac_header>
9206 rm -f conftest.$ac_objext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9208 (eval $ac_compile) 2>conftest.er1
9210 grep -v '^ *+' conftest.er1 >conftest.err
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } &&
9215 { ac_try='test -z "$ac_c_werror_flag"
9216 || test ! -s conftest.err'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; } &&
9222 { ac_try='test -s conftest.$ac_objext'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; }; then
9228 ac_header_compiler=yes
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 ac_header_compiler=no
9235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9237 echo "${ECHO_T}$ac_header_compiler" >&6
9239 # Is the header present?
9240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 #include <$ac_header>
9250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } >/dev/null; then
9258 if test -s conftest.err; then
9259 ac_cpp_err=$ac_c_preproc_warn_flag
9260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9267 if test -z "$ac_cpp_err"; then
9268 ac_header_preproc=yes
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9273 ac_header_preproc=no
9275 rm -f conftest.err conftest.$ac_ext
9276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9277 echo "${ECHO_T}$ac_header_preproc" >&6
9279 # So? What about this header?
9280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9286 ac_header_preproc=yes
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9303 ## ----------------------------------- ##
9304 ## Report this to llvmbugs@cs.uiuc.edu ##
9305 ## ----------------------------------- ##
9308 sed "s/^/$as_me: WARNING: /" >&2
9311 echo "$as_me:$LINENO: checking for $ac_header" >&5
9312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 eval "$as_ac_Header=\$ac_header_preproc"
9318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9323 cat >>confdefs.h <<_ACEOF
9324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9334 for ac_func in strchr index
9336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9337 echo "$as_me:$LINENO: checking for $ac_func" >&5
9338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9339 if eval "test \"\${$as_ac_var+set}\" = set"; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 cat >conftest.$ac_ext <<_ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9350 #define $ac_func innocuous_$ac_func
9352 /* System header to define __stub macros and hopefully few prototypes,
9353 which can conflict with char $ac_func (); below.
9354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9355 <limits.h> exists even on freestanding compilers. */
9358 # include <limits.h>
9360 # include <assert.h>
9365 /* Override any gcc2 internal prototype to avoid an error. */
9370 /* We use char because int might match the return type of a gcc2
9371 builtin and then its argument prototype would still apply. */
9373 /* The GNU C library defines this for functions which it implements
9374 to always fail with ENOSYS. Some functions are actually named
9375 something starting with __ and the normal name is an alias. */
9376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9379 char (*f) () = $ac_func;
9388 return f != $ac_func;
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395 (eval $ac_link) 2>conftest.er1
9397 grep -v '^ *+' conftest.er1 >conftest.err
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
9402 { ac_try='test -z "$ac_c_werror_flag"
9403 || test ! -s conftest.err'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; } &&
9409 { ac_try='test -s conftest$ac_exeext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 eval "$as_ac_var=yes"
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9420 eval "$as_ac_var=no"
9422 rm -f conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext conftest.$ac_ext
9425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9427 if test `eval echo '${'$as_ac_var'}'` = yes; then
9428 cat >>confdefs.h <<_ACEOF
9429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9437 for ac_func in strrchr rindex
9439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9440 echo "$as_me:$LINENO: checking for $ac_func" >&5
9441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9442 if eval "test \"\${$as_ac_var+set}\" = set"; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 cat >conftest.$ac_ext <<_ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9453 #define $ac_func innocuous_$ac_func
9455 /* System header to define __stub macros and hopefully few prototypes,
9456 which can conflict with char $ac_func (); below.
9457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458 <limits.h> exists even on freestanding compilers. */
9461 # include <limits.h>
9463 # include <assert.h>
9468 /* Override any gcc2 internal prototype to avoid an error. */
9473 /* We use char because int might match the return type of a gcc2
9474 builtin and then its argument prototype would still apply. */
9476 /* The GNU C library defines this for functions which it implements
9477 to always fail with ENOSYS. Some functions are actually named
9478 something starting with __ and the normal name is an alias. */
9479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9482 char (*f) () = $ac_func;
9491 return f != $ac_func;
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -z "$ac_c_werror_flag"
9506 || test ! -s conftest.err'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 eval "$as_ac_var=yes"
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 eval "$as_ac_var=no"
9525 rm -f conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531 cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9540 for ac_func in memcpy bcopy
9542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9543 echo "$as_me:$LINENO: checking for $ac_func" >&5
9544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9545 if eval "test \"\${$as_ac_var+set}\" = set"; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9556 #define $ac_func innocuous_$ac_func
9558 /* System header to define __stub macros and hopefully few prototypes,
9559 which can conflict with char $ac_func (); below.
9560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9561 <limits.h> exists even on freestanding compilers. */
9564 # include <limits.h>
9566 # include <assert.h>
9571 /* Override any gcc2 internal prototype to avoid an error. */
9576 /* We use char because int might match the return type of a gcc2
9577 builtin and then its argument prototype would still apply. */
9579 /* The GNU C library defines this for functions which it implements
9580 to always fail with ENOSYS. Some functions are actually named
9581 something starting with __ and the normal name is an alias. */
9582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9585 char (*f) () = $ac_func;
9594 return f != $ac_func;
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>conftest.er1
9603 grep -v '^ *+' conftest.er1 >conftest.err
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } &&
9608 { ac_try='test -z "$ac_c_werror_flag"
9609 || test ! -s conftest.err'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; } &&
9615 { ac_try='test -s conftest$ac_exeext'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 eval "$as_ac_var=yes"
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 eval "$as_ac_var=no"
9628 rm -f conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9633 if test `eval echo '${'$as_ac_var'}'` = yes; then
9634 cat >>confdefs.h <<_ACEOF
9635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9643 for ac_func in memmove strcmp
9645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9646 echo "$as_me:$LINENO: checking for $ac_func" >&5
9647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9648 if eval "test \"\${$as_ac_var+set}\" = set"; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9659 #define $ac_func innocuous_$ac_func
9661 /* System header to define __stub macros and hopefully few prototypes,
9662 which can conflict with char $ac_func (); below.
9663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9664 <limits.h> exists even on freestanding compilers. */
9667 # include <limits.h>
9669 # include <assert.h>
9674 /* Override any gcc2 internal prototype to avoid an error. */
9679 /* We use char because int might match the return type of a gcc2
9680 builtin and then its argument prototype would still apply. */
9682 /* The GNU C library defines this for functions which it implements
9683 to always fail with ENOSYS. Some functions are actually named
9684 something starting with __ and the normal name is an alias. */
9685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9688 char (*f) () = $ac_func;
9697 return f != $ac_func;
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>conftest.er1
9706 grep -v '^ *+' conftest.er1 >conftest.err
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } &&
9711 { ac_try='test -z "$ac_c_werror_flag"
9712 || test ! -s conftest.err'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; } &&
9718 { ac_try='test -s conftest$ac_exeext'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 eval "$as_ac_var=yes"
9726 echo "$as_me: failed program was:" >&5
9727 sed 's/^/| /' conftest.$ac_ext >&5
9729 eval "$as_ac_var=no"
9731 rm -f conftest.err conftest.$ac_objext \
9732 conftest$ac_exeext conftest.$ac_ext
9734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9736 if test `eval echo '${'$as_ac_var'}'` = yes; then
9737 cat >>confdefs.h <<_ACEOF
9738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9747 for ac_func in closedir opendir readdir
9749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9750 echo "$as_me:$LINENO: checking for $ac_func" >&5
9751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9752 if eval "test \"\${$as_ac_var+set}\" = set"; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9763 #define $ac_func innocuous_$ac_func
9765 /* System header to define __stub macros and hopefully few prototypes,
9766 which can conflict with char $ac_func (); below.
9767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9768 <limits.h> exists even on freestanding compilers. */
9771 # include <limits.h>
9773 # include <assert.h>
9778 /* Override any gcc2 internal prototype to avoid an error. */
9783 /* We use char because int might match the return type of a gcc2
9784 builtin and then its argument prototype would still apply. */
9786 /* The GNU C library defines this for functions which it implements
9787 to always fail with ENOSYS. Some functions are actually named
9788 something starting with __ and the normal name is an alias. */
9789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9792 char (*f) () = $ac_func;
9801 return f != $ac_func;
9806 rm -f conftest.$ac_objext conftest$ac_exeext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9808 (eval $ac_link) 2>conftest.er1
9810 grep -v '^ *+' conftest.er1 >conftest.err
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } &&
9815 { ac_try='test -z "$ac_c_werror_flag"
9816 || test ! -s conftest.err'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; } &&
9822 { ac_try='test -s conftest$ac_exeext'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
9828 eval "$as_ac_var=yes"
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 eval "$as_ac_var=no"
9835 rm -f conftest.err conftest.$ac_objext \
9836 conftest$ac_exeext conftest.$ac_ext
9838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9840 if test `eval echo '${'$as_ac_var'}'` = yes; then
9841 cat >>confdefs.h <<_ACEOF
9842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9849 # Check whether --enable-shared or --disable-shared was given.
9850 if test "${enable_shared+set}" = set; then
9851 enableval="$enable_shared"
9852 p=${PACKAGE-default}
9854 yes) enable_shared=yes ;;
9855 no) enable_shared=no ;;
9858 # Look at the argument we got. We use all the common list separators.
9859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9860 for pkg in $enableval; do
9862 if test "X$pkg" = "X$p"; then
9873 # Check whether --enable-static or --disable-static was given.
9874 if test "${enable_static+set}" = set; then
9875 enableval="$enable_static"
9876 p=${PACKAGE-default}
9878 yes) enable_static=yes ;;
9879 no) enable_static=no ;;
9882 # Look at the argument we got. We use all the common list separators.
9883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9884 for pkg in $enableval; do
9886 if test "X$pkg" = "X$p"; then
9897 # Check whether --enable-fast-install or --disable-fast-install was given.
9898 if test "${enable_fast_install+set}" = set; then
9899 enableval="$enable_fast_install"
9900 p=${PACKAGE-default}
9902 yes) enable_fast_install=yes ;;
9903 no) enable_fast_install=no ;;
9905 enable_fast_install=no
9906 # Look at the argument we got. We use all the common list separators.
9907 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9908 for pkg in $enableval; do
9910 if test "X$pkg" = "X$p"; then
9911 enable_fast_install=yes
9918 enable_fast_install=yes
9921 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9922 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9923 if test "${lt_cv_path_SED+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 # Loop through the user's path and test for sed and gsed.
9927 # Then use that list of sed's as ones to test for truncation.
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932 test -z "$as_dir" && as_dir=.
9933 for lt_ac_prog in sed gsed; do
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9936 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9943 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9944 # along with /bin/sed that truncates output.
9945 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9946 test ! -f $lt_ac_sed && break
9947 cat /dev/null > conftest.in
9949 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9950 # Check for GNU sed and select it if it is found.
9951 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9952 lt_cv_path_SED=$lt_ac_sed
9956 cat conftest.in conftest.in >conftest.tmp
9957 mv conftest.tmp conftest.in
9958 cp conftest.in conftest.nl
9960 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9961 cmp -s conftest.out conftest.nl || break
9962 # 10000 chars as input seems more than enough
9963 test $lt_ac_count -gt 10 && break
9964 lt_ac_count=`expr $lt_ac_count + 1`
9965 if test $lt_ac_count -gt $lt_ac_max; then
9966 lt_ac_max=$lt_ac_count
9967 lt_cv_path_SED=$lt_ac_sed
9975 echo "$as_me:$LINENO: result: $SED" >&5
9976 echo "${ECHO_T}$SED" >&6
9979 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9980 if test "${with_gnu_ld+set}" = set; then
9981 withval="$with_gnu_ld"
9982 test "$withval" = no || with_gnu_ld=yes
9987 if test "$GCC" = yes; then
9988 # Check if gcc -print-prog-name=ld gives a path.
9989 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9990 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9993 # gcc leaves a trailing carriage return which upsets mingw
9994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9999 # Accept absolute paths.
10001 re_direlt='/[^/][^/]*/\.\./'
10002 # Canonicalize the pathname of ld
10003 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10004 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10005 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10007 test -z "$LD" && LD="$ac_prog"
10010 # If it fails, then pretend we aren't using GCC.
10014 # If it is relative, then search for the first ld in PATH.
10015 with_gnu_ld=unknown
10018 elif test "$with_gnu_ld" = yes; then
10019 echo "$as_me:$LINENO: checking for GNU ld" >&5
10020 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10022 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10023 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10025 if test "${lt_cv_path_LD+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 if test -z "$LD"; then
10029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10030 for ac_dir in $PATH; do
10032 test -z "$ac_dir" && ac_dir=.
10033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10034 lt_cv_path_LD="$ac_dir/$ac_prog"
10035 # Check to see if the program is GNU ld. I'd rather use --version,
10036 # but apparently some GNU ld's only accept -v.
10037 # Break only if it was the GNU/non-GNU ld that we prefer.
10038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10039 *GNU* | *'with BFD'*)
10040 test "$with_gnu_ld" != no && break
10043 test "$with_gnu_ld" != yes && break
10050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10054 LD="$lt_cv_path_LD"
10055 if test -n "$LD"; then
10056 echo "$as_me:$LINENO: result: $LD" >&5
10057 echo "${ECHO_T}$LD" >&6
10059 echo "$as_me:$LINENO: result: no" >&5
10060 echo "${ECHO_T}no" >&6
10062 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10063 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10064 { (exit 1); exit 1; }; }
10065 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10066 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10067 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10071 case `$LD -v 2>&1 </dev/null` in
10072 *GNU* | *'with BFD'*)
10073 lt_cv_prog_gnu_ld=yes
10076 lt_cv_prog_gnu_ld=no
10080 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10081 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10082 with_gnu_ld=$lt_cv_prog_gnu_ld
10085 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10086 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10087 if test "${lt_cv_ld_reload_flag+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 lt_cv_ld_reload_flag='-r'
10092 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10093 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10094 reload_flag=$lt_cv_ld_reload_flag
10095 case $reload_flag in
10097 *) reload_flag=" $reload_flag" ;;
10099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10102 if test "$GCC" = yes; then
10103 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10105 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10110 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10111 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10112 if test "${lt_cv_deplibs_check_method+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 lt_cv_file_magic_cmd='$MAGIC_CMD'
10116 lt_cv_file_magic_test_file=
10117 lt_cv_deplibs_check_method='unknown'
10118 # Need to set the preceding variable on all platforms that support
10119 # interlibrary dependencies.
10120 # 'none' -- dependencies not supported.
10121 # `unknown' -- same as none, but documents that we really don't know.
10122 # 'pass_all' -- all dependencies passed with no checks.
10123 # 'test_compile' -- check by making test program.
10124 # 'file_magic [[regex]]' -- check by looking for files in library path
10125 # which responds to the $file_magic_cmd with a given extended regex.
10126 # If you have `file' or equivalent on your system and you're not sure
10127 # whether `pass_all' will *always* work, you probably want this one.
10131 lt_cv_deplibs_check_method=pass_all
10135 lt_cv_deplibs_check_method=pass_all
10139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10140 lt_cv_file_magic_cmd='/usr/bin/file -L'
10141 lt_cv_file_magic_test_file=/shlib/libc.so
10145 # func_win32_libid is a shell function defined in ltmain.sh
10146 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10147 lt_cv_file_magic_cmd='func_win32_libid'
10151 # Base MSYS/MinGW do not provide the 'file' command needed by
10152 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10153 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10154 lt_cv_file_magic_cmd='$OBJDUMP -f'
10157 darwin* | rhapsody*)
10158 lt_cv_deplibs_check_method=pass_all
10161 freebsd* | kfreebsd*-gnu)
10162 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10165 # Not sure whether the presence of OpenBSD here was a mistake.
10166 # Let's accept both of them until this is cleared up.
10167 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10168 lt_cv_file_magic_cmd=/usr/bin/file
10169 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10173 lt_cv_deplibs_check_method=pass_all
10178 lt_cv_deplibs_check_method=pass_all
10181 hpux10.20* | hpux11*)
10182 lt_cv_file_magic_cmd=/usr/bin/file
10183 case "$host_cpu" in
10185 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10186 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10189 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]'
10190 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10193 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10194 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10199 irix5* | irix6* | nonstopux*)
10201 *-32|*"-32 ") libmagic=32-bit;;
10202 *-n32|*"-n32 ") libmagic=N32;;
10203 *-64|*"-64 ") libmagic=64-bit;;
10204 *) libmagic=never-match;;
10206 lt_cv_deplibs_check_method=pass_all
10209 # This must be Linux ELF.
10211 lt_cv_deplibs_check_method=pass_all
10215 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10224 lt_cv_file_magic_cmd=/usr/bin/file
10225 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10229 lt_cv_deplibs_check_method=unknown
10233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10240 osf3* | osf4* | osf5*)
10241 lt_cv_deplibs_check_method=pass_all
10245 lt_cv_deplibs_check_method=pass_all
10249 lt_cv_deplibs_check_method=pass_all
10252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10253 case $host_vendor in
10255 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]'
10256 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10259 lt_cv_deplibs_check_method=pass_all
10262 lt_cv_file_magic_cmd='/bin/file'
10263 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10266 lt_cv_file_magic_cmd='/bin/file'
10267 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10268 lt_cv_file_magic_test_file=/lib/libc.so
10271 lt_cv_deplibs_check_method=pass_all
10276 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10277 lt_cv_deplibs_check_method=pass_all
10282 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10283 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10284 file_magic_cmd=$lt_cv_file_magic_cmd
10285 deplibs_check_method=$lt_cv_deplibs_check_method
10286 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10290 # If no C compiler was specified, use CC.
10293 # Allow CC to be a program name with arguments.
10296 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10297 if test "${enable_libtool_lock+set}" = set; then
10298 enableval="$enable_libtool_lock"
10301 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10303 # Some flags need to be propagated to the compiler or linker for good
10307 # Find out which ABI we are using.
10308 echo 'int i;' > conftest.$ac_ext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10310 (eval $ac_compile) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; then
10314 case `/usr/bin/file conftest.$ac_objext` in
10316 HPUX_IA64_MODE="32"
10319 HPUX_IA64_MODE="64"
10326 # Find out which ABI we are using.
10327 echo '#line 10327 "configure"' > conftest.$ac_ext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; then
10333 if test "$lt_cv_prog_gnu_ld" = yes; then
10334 case `/usr/bin/file conftest.$ac_objext` in
10336 LD="${LD-ld} -melf32bsmip"
10339 LD="${LD-ld} -melf32bmipn32"
10342 LD="${LD-ld} -melf64bmip"
10346 case `/usr/bin/file conftest.$ac_objext` in
10362 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10363 # Find out which ABI we are using.
10364 echo 'int i;' > conftest.$ac_ext
10365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366 (eval $ac_compile) 2>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; then
10370 case "`/usr/bin/file conftest.o`" in
10374 LD="${LD-ld} -m elf_i386"
10376 ppc64-*linux*|powerpc64-*linux*)
10377 LD="${LD-ld} -m elf32ppclinux"
10380 LD="${LD-ld} -m elf_s390"
10383 LD="${LD-ld} -m elf32_sparc"
10390 LD="${LD-ld} -m elf_x86_64"
10392 ppc*-*linux*|powerpc*-*linux*)
10393 LD="${LD-ld} -m elf64ppc"
10396 LD="${LD-ld} -m elf64_s390"
10399 LD="${LD-ld} -m elf64_sparc"
10409 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10410 SAVE_CFLAGS="$CFLAGS"
10411 CFLAGS="$CFLAGS -belf"
10412 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10413 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10414 if test "${lt_cv_cc_needs_belf+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 ac_cpp='$CPP $CPPFLAGS'
10419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>conftest.er1
10435 grep -v '^ *+' conftest.er1 >conftest.err
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_c_werror_flag"
10441 || test ! -s conftest.err'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; } &&
10447 { ac_try='test -s conftest$ac_exeext'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 lt_cv_cc_needs_belf=yes
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10458 lt_cv_cc_needs_belf=no
10460 rm -f conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10463 ac_cpp='$CPP $CPPFLAGS'
10464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10469 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10470 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10471 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10472 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10473 CFLAGS="$SAVE_CFLAGS"
10479 need_locks="$enable_libtool_lock"
10484 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10485 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10486 (test "X$CXX" != "Xg++"))) ; then
10488 ac_cpp='$CXXCPP $CPPFLAGS'
10489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10492 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10493 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10494 if test -z "$CXXCPP"; then
10495 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 # Double quotes because CXXCPP needs to be expanded
10499 for CXXCPP in "$CXX -E" "/lib/cpp"
10501 ac_preproc_ok=false
10502 for ac_cxx_preproc_warn_flag in '' yes
10504 # Use a header file that comes with gcc, so configuring glibc
10505 # with a fresh cross-compiler works.
10506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10507 # <limits.h> exists even on freestanding compilers.
10508 # On the NeXT, cc -E runs the code through the compiler's parser,
10509 # not just through cpp. "Syntax error" is here to catch this case.
10510 cat >conftest.$ac_ext <<_ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10517 # include <limits.h>
10519 # include <assert.h>
10523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } >/dev/null; then
10531 if test -s conftest.err; then
10532 ac_cpp_err=$ac_cxx_preproc_warn_flag
10533 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10540 if test -z "$ac_cpp_err"; then
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 # Broken: fails on valid input.
10549 rm -f conftest.err conftest.$ac_ext
10551 # OK, works on sane cases. Now check whether non-existent headers
10552 # can be detected and how.
10553 cat >conftest.$ac_ext <<_ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 #include <ac_nonexistent.h>
10561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } >/dev/null; then
10569 if test -s conftest.err; then
10570 ac_cpp_err=$ac_cxx_preproc_warn_flag
10571 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10578 if test -z "$ac_cpp_err"; then
10579 # Broken: success on invalid input.
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 # Passes both tests.
10589 rm -f conftest.err conftest.$ac_ext
10592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10593 rm -f conftest.err conftest.$ac_ext
10594 if $ac_preproc_ok; then
10599 ac_cv_prog_CXXCPP=$CXXCPP
10602 CXXCPP=$ac_cv_prog_CXXCPP
10604 ac_cv_prog_CXXCPP=$CXXCPP
10606 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10607 echo "${ECHO_T}$CXXCPP" >&6
10608 ac_preproc_ok=false
10609 for ac_cxx_preproc_warn_flag in '' yes
10611 # Use a header file that comes with gcc, so configuring glibc
10612 # with a fresh cross-compiler works.
10613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10614 # <limits.h> exists even on freestanding compilers.
10615 # On the NeXT, cc -E runs the code through the compiler's parser,
10616 # not just through cpp. "Syntax error" is here to catch this case.
10617 cat >conftest.$ac_ext <<_ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10624 # include <limits.h>
10626 # include <assert.h>
10630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } >/dev/null; then
10638 if test -s conftest.err; then
10639 ac_cpp_err=$ac_cxx_preproc_warn_flag
10640 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10647 if test -z "$ac_cpp_err"; then
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 # Broken: fails on valid input.
10656 rm -f conftest.err conftest.$ac_ext
10658 # OK, works on sane cases. Now check whether non-existent headers
10659 # can be detected and how.
10660 cat >conftest.$ac_ext <<_ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10666 #include <ac_nonexistent.h>
10668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10671 grep -v '^ *+' conftest.er1 >conftest.err
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } >/dev/null; then
10676 if test -s conftest.err; then
10677 ac_cpp_err=$ac_cxx_preproc_warn_flag
10678 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10685 if test -z "$ac_cpp_err"; then
10686 # Broken: success on invalid input.
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10692 # Passes both tests.
10696 rm -f conftest.err conftest.$ac_ext
10699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10700 rm -f conftest.err conftest.$ac_ext
10701 if $ac_preproc_ok; then
10704 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10705 See \`config.log' for more details." >&5
10706 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10707 See \`config.log' for more details." >&2;}
10708 { (exit 1); exit 1; }; }
10712 ac_cpp='$CXXCPP $CPPFLAGS'
10713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10721 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10722 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10723 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10724 if test -n "$ac_tool_prefix"; then
10725 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10729 echo "$as_me:$LINENO: checking for $ac_word" >&5
10730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10731 if test "${ac_cv_prog_F77+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 if test -n "$F77"; then
10735 ac_cv_prog_F77="$F77" # Let the user override the test.
10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10741 test -z "$as_dir" && as_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10744 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10753 F77=$ac_cv_prog_F77
10754 if test -n "$F77"; then
10755 echo "$as_me:$LINENO: result: $F77" >&5
10756 echo "${ECHO_T}$F77" >&6
10758 echo "$as_me:$LINENO: result: no" >&5
10759 echo "${ECHO_T}no" >&6
10762 test -n "$F77" && break
10765 if test -z "$F77"; then
10767 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10769 # Extract the first word of "$ac_prog", so it can be a program name with args.
10770 set dummy $ac_prog; ac_word=$2
10771 echo "$as_me:$LINENO: checking for $ac_word" >&5
10772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10773 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 if test -n "$ac_ct_F77"; then
10777 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780 for as_dir in $PATH
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10786 ac_cv_prog_ac_ct_F77="$ac_prog"
10787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10796 if test -n "$ac_ct_F77"; then
10797 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10798 echo "${ECHO_T}$ac_ct_F77" >&6
10800 echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6
10804 test -n "$ac_ct_F77" && break
10811 # Provide some information about the compiler.
10812 echo "$as_me:10812:" \
10813 "checking for Fortran 77 compiler version" >&5
10814 ac_compiler=`set X $ac_compile; echo $2`
10815 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10816 (eval $ac_compiler --version </dev/null >&5) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }
10820 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10821 (eval $ac_compiler -v </dev/null >&5) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }
10825 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10826 (eval $ac_compiler -V </dev/null >&5) 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }
10832 # If we don't use `.F' as extension, the preprocessor is not run on the
10833 # input file. (Note that this only needs to work for GNU compilers.)
10834 ac_save_ext=$ac_ext
10836 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10837 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10838 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 cat >conftest.$ac_ext <<_ACEOF
10849 rm -f conftest.$ac_objext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10851 (eval $ac_compile) 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -z "$ac_f77_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest.$ac_objext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_compiler_gnu=yes
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10879 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10882 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10883 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10884 ac_ext=$ac_save_ext
10885 ac_test_FFLAGS=${FFLAGS+set}
10886 ac_save_FFLAGS=$FFLAGS
10888 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10889 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10890 if test "${ac_cv_prog_f77_g+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 cat >conftest.$ac_ext <<_ACEOF
10899 rm -f conftest.$ac_objext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>conftest.er1
10903 grep -v '^ *+' conftest.er1 >conftest.err
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } &&
10908 { ac_try='test -z "$ac_f77_werror_flag"
10909 || test ! -s conftest.err'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest.$ac_objext'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_cv_prog_f77_g=yes
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 ac_cv_prog_f77_g=no
10928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10931 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10932 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10933 if test "$ac_test_FFLAGS" = set; then
10934 FFLAGS=$ac_save_FFLAGS
10935 elif test $ac_cv_prog_f77_g = yes; then
10936 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10942 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10949 G77=`test $ac_compiler_gnu = yes && echo yes`
10951 ac_cpp='$CPP $CPPFLAGS'
10952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10958 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10960 # find the maximum length of command line arguments
10961 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10962 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10963 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 # On DJGPP, this test can blow up pretty badly due to problems in libc
10972 # (any single argument exceeding 2000 bytes causes a buffer overrun
10973 # during glob expansion). Even if it were fixed, the result of this
10974 # check would be larger than it should be.
10975 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10979 # Under GNU Hurd, this test is not required because there is
10980 # no limit to the length of command line arguments.
10981 # Libtool will interpret -1 as no limit whatsoever
10982 lt_cv_sys_max_cmd_len=-1;
10986 # On Win9x/ME, this test blows up -- it succeeds, but takes
10987 # about 5 minutes as the teststring grows exponentially.
10988 # Worse, since 9x/ME are not pre-emptively multitasking,
10989 # you end up with a "frozen" computer, even though with patience
10990 # the test eventually succeeds (with a max line length of 256k).
10991 # Instead, let's just punt: use the minimum linelength reported by
10992 # all of the supported platforms: 8192 (on NT/2K/XP).
10993 lt_cv_sys_max_cmd_len=8192;
10997 # On AmigaOS with pdksh, this test takes hours, literally.
10998 # So we just punt and use a minimum line length of 8192.
10999 lt_cv_sys_max_cmd_len=8192;
11002 netbsd* | freebsd* | openbsd* | darwin* )
11003 # This has been around since 386BSD, at least. Likely further.
11004 if test -x /sbin/sysctl; then
11005 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11006 elif test -x /usr/sbin/sysctl; then
11007 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11009 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11011 # And add a safety zone
11012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11016 # If test is not a shell built-in, we'll probably end up computing a
11017 # maximum length that is only half of the actual maximum length, but
11019 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11020 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11021 = "XX$teststring") >/dev/null 2>&1 &&
11022 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11023 lt_cv_sys_max_cmd_len=$new_result &&
11024 test $i != 17 # 1/2 MB should be enough
11027 teststring=$teststring$teststring
11030 # Add a significant safety factor because C++ compilers can tack on massive
11031 # amounts of additional arguments before passing them to the linker.
11032 # It appears as though 1/2 is a usable value.
11033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11039 if test -n $lt_cv_sys_max_cmd_len ; then
11040 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11041 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11043 echo "$as_me:$LINENO: result: none" >&5
11044 echo "${ECHO_T}none" >&6
11050 # Check for command to grab the raw symbol name followed by C symbol from nm.
11051 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11052 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11053 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 # These are sane defaults that work on at least a few old systems.
11058 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11060 # Character class describing NM global symbol codes.
11061 symcode='[BCDEGRST]'
11063 # Regexp to match symbols that can be accessed directly from C.
11064 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11066 # Transform the above into a raw symbol and a C symbol.
11067 symxfrm='\1 \2\3 \3'
11069 # Transform an extracted symbol line into a proper C declaration
11070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11072 # Transform an extracted symbol line into symbol name and symbol address
11073 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'"
11075 # Define system-specific variables.
11080 cygwin* | mingw* | pw32*)
11081 symcode='[ABCDGISTW]'
11083 hpux*) # Its linker distinguishes data from code symbols
11084 if test "$host_cpu" = ia64; then
11085 symcode='[ABCDEGRST]'
11087 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11088 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'"
11091 if test "$host_cpu" = ia64; then
11092 symcode='[ABCDGIRSTW]'
11093 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11094 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'"
11097 irix* | nonstopux*)
11098 symcode='[BCDEGRST]'
11101 symcode='[BCDEGQRST]'
11111 # Handle CRLF in mingw tool chain
11115 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11119 # If we're using GNU nm, then use its standard symbol codes.
11120 case `$NM -V 2>&1` in
11121 *GNU* | *'with BFD'*)
11122 symcode='[ABCDGIRSTW]' ;;
11125 # Try without a prefix undercore, then with it.
11126 for ac_symprfx in "" "_"; do
11128 # Write the raw and C identifiers.
11129 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11131 # Check to see that the pipe works correctly.
11135 cat > conftest.$ac_ext <<EOF
11140 void nm_test_func(){}
11144 int main(){nm_test_var='a';nm_test_func();return(0);}
11147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11148 (eval $ac_compile) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; then
11152 # Now try to grab the symbols.
11154 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11155 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && test -s "$nlist"; then
11159 # Try sorting and uniquifying the output.
11160 if sort "$nlist" | uniq > "$nlist"T; then
11161 mv -f "$nlist"T "$nlist"
11166 # Make sure that we snagged all the symbols we need.
11167 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11168 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11169 cat <<EOF > conftest.$ac_ext
11175 # Now generate the symbol file.
11176 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11178 cat <<EOF >> conftest.$ac_ext
11179 #if defined (__STDC__) && __STDC__
11180 # define lt_ptr_t void *
11182 # define lt_ptr_t char *
11186 /* The mapping between symbol names and symbols. */
11191 lt_preloaded_symbols[] =
11194 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11195 cat <<\EOF >> conftest.$ac_ext
11203 # Now try linking the two files.
11204 mv conftest.$ac_objext conftstm.$ac_objext
11205 lt_save_LIBS="$LIBS"
11206 lt_save_CFLAGS="$CFLAGS"
11207 LIBS="conftstm.$ac_objext"
11208 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11216 LIBS="$lt_save_LIBS"
11217 CFLAGS="$lt_save_CFLAGS"
11219 echo "cannot find nm_test_func in $nlist" >&5
11222 echo "cannot find nm_test_var in $nlist" >&5
11225 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11228 echo "$progname: failed program was:" >&5
11229 cat conftest.$ac_ext >&5
11231 rm -f conftest* conftst*
11233 # Do not use the global_symbol_pipe unless it works.
11234 if test "$pipe_works" = yes; then
11237 lt_cv_sys_global_symbol_pipe=
11243 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11244 lt_cv_sys_global_symbol_to_cdecl=
11246 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11247 echo "$as_me:$LINENO: result: failed" >&5
11248 echo "${ECHO_T}failed" >&6
11250 echo "$as_me:$LINENO: result: ok" >&5
11251 echo "${ECHO_T}ok" >&6
11254 echo "$as_me:$LINENO: checking for objdir" >&5
11255 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11256 if test "${lt_cv_objdir+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 rm -f .libs 2>/dev/null
11260 mkdir .libs 2>/dev/null
11261 if test -d .libs; then
11264 # MS-DOS does not allow filenames that begin with a dot.
11267 rmdir .libs 2>/dev/null
11269 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11270 echo "${ECHO_T}$lt_cv_objdir" >&6
11271 objdir=$lt_cv_objdir
11279 # AIX sometimes has problems with the GCC collect2 program. For some
11280 # reason, if we set the COLLECT_NAMES environment variable, the problems
11281 # vanish in a puff of smoke.
11282 if test "X${COLLECT_NAMES+set}" != Xset; then
11284 export COLLECT_NAMES
11289 # Sed substitution that helps us do robust quoting. It backslashifies
11290 # metacharacters that are still active within double-quoted strings.
11291 Xsed='sed -e s/^X//'
11292 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11294 # Same as above, but do not quote variable references.
11295 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11297 # Sed substitution to delay expansion of an escaped shell variable in a
11298 # double_quote_subst'ed string.
11299 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11301 # Sed substitution to avoid accidental globbing in evaled expressions
11302 no_glob_subst='s/\*/\\\*/g'
11307 # Global variables:
11308 default_ofile=mklib
11309 can_build_shared=yes
11311 # All known linkers require a `.a' archive for static linking (except M$VC,
11312 # which needs '.lib').
11314 ltmain="$ac_aux_dir/ltmain.sh"
11315 ofile="$default_ofile"
11316 with_gnu_ld="$lt_cv_prog_gnu_ld"
11318 if test -n "$ac_tool_prefix"; then
11319 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11320 set dummy ${ac_tool_prefix}ar; ac_word=$2
11321 echo "$as_me:$LINENO: checking for $ac_word" >&5
11322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11323 if test "${ac_cv_prog_AR+set}" = set; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 if test -n "$AR"; then
11327 ac_cv_prog_AR="$AR" # Let the user override the test.
11329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330 for as_dir in $PATH
11333 test -z "$as_dir" && as_dir=.
11334 for ac_exec_ext in '' $ac_executable_extensions; do
11335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11336 ac_cv_prog_AR="${ac_tool_prefix}ar"
11337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11346 if test -n "$AR"; then
11347 echo "$as_me:$LINENO: result: $AR" >&5
11348 echo "${ECHO_T}$AR" >&6
11350 echo "$as_me:$LINENO: result: no" >&5
11351 echo "${ECHO_T}no" >&6
11355 if test -z "$ac_cv_prog_AR"; then
11357 # Extract the first word of "ar", so it can be a program name with args.
11358 set dummy ar; ac_word=$2
11359 echo "$as_me:$LINENO: checking for $ac_word" >&5
11360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 if test -n "$ac_ct_AR"; then
11365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11371 test -z "$as_dir" && as_dir=.
11372 for ac_exec_ext in '' $ac_executable_extensions; do
11373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11374 ac_cv_prog_ac_ct_AR="ar"
11375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11381 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11385 if test -n "$ac_ct_AR"; then
11386 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11387 echo "${ECHO_T}$ac_ct_AR" >&6
11389 echo "$as_me:$LINENO: result: no" >&5
11390 echo "${ECHO_T}no" >&6
11395 AR="$ac_cv_prog_AR"
11398 if test -n "$ac_tool_prefix"; then
11399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11401 echo "$as_me:$LINENO: checking for $ac_word" >&5
11402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11403 if test "${ac_cv_prog_RANLIB+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 if test -n "$RANLIB"; then
11407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11416 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11425 RANLIB=$ac_cv_prog_RANLIB
11426 if test -n "$RANLIB"; then
11427 echo "$as_me:$LINENO: result: $RANLIB" >&5
11428 echo "${ECHO_T}$RANLIB" >&6
11430 echo "$as_me:$LINENO: result: no" >&5
11431 echo "${ECHO_T}no" >&6
11435 if test -z "$ac_cv_prog_RANLIB"; then
11436 ac_ct_RANLIB=$RANLIB
11437 # Extract the first word of "ranlib", so it can be a program name with args.
11438 set dummy ranlib; ac_word=$2
11439 echo "$as_me:$LINENO: checking for $ac_word" >&5
11440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11441 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 if test -n "$ac_ct_RANLIB"; then
11445 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11454 ac_cv_prog_ac_ct_RANLIB="ranlib"
11455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11465 if test -n "$ac_ct_RANLIB"; then
11466 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11467 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11469 echo "$as_me:$LINENO: result: no" >&5
11470 echo "${ECHO_T}no" >&6
11473 RANLIB=$ac_ct_RANLIB
11475 RANLIB="$ac_cv_prog_RANLIB"
11478 if test -n "$ac_tool_prefix"; then
11479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11480 set dummy ${ac_tool_prefix}strip; ac_word=$2
11481 echo "$as_me:$LINENO: checking for $ac_word" >&5
11482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11483 if test "${ac_cv_prog_STRIP+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 if test -n "$STRIP"; then
11487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 STRIP=$ac_cv_prog_STRIP
11506 if test -n "$STRIP"; then
11507 echo "$as_me:$LINENO: result: $STRIP" >&5
11508 echo "${ECHO_T}$STRIP" >&6
11510 echo "$as_me:$LINENO: result: no" >&5
11511 echo "${ECHO_T}no" >&6
11515 if test -z "$ac_cv_prog_STRIP"; then
11517 # Extract the first word of "strip", so it can be a program name with args.
11518 set dummy strip; ac_word=$2
11519 echo "$as_me:$LINENO: checking for $ac_word" >&5
11520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11521 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 if test -n "$ac_ct_STRIP"; then
11525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528 for as_dir in $PATH
11531 test -z "$as_dir" && as_dir=.
11532 for ac_exec_ext in '' $ac_executable_extensions; do
11533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11534 ac_cv_prog_ac_ct_STRIP="strip"
11535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11541 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11545 if test -n "$ac_ct_STRIP"; then
11546 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11547 echo "${ECHO_T}$ac_ct_STRIP" >&6
11549 echo "$as_me:$LINENO: result: no" >&5
11550 echo "${ECHO_T}no" >&6
11555 STRIP="$ac_cv_prog_STRIP"
11560 old_CFLAGS="$CFLAGS"
11562 # Set sane defaults for various variables
11563 test -z "$AR" && AR=ar
11564 test -z "$AR_FLAGS" && AR_FLAGS=cru
11565 test -z "$AS" && AS=as
11566 test -z "$CC" && CC=cc
11567 test -z "$LTCC" && LTCC=$CC
11568 test -z "$DLLTOOL" && DLLTOOL=dlltool
11569 test -z "$LD" && LD=ld
11570 test -z "$LN_S" && LN_S="ln -s"
11571 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11572 test -z "$NM" && NM=nm
11573 test -z "$SED" && SED=sed
11574 test -z "$OBJDUMP" && OBJDUMP=objdump
11575 test -z "$RANLIB" && RANLIB=:
11576 test -z "$STRIP" && STRIP=:
11577 test -z "$ac_objext" && ac_objext=o
11579 # Determine commands to create old-style static archives.
11580 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11581 old_postinstall_cmds='chmod 644 $oldlib'
11582 old_postuninstall_cmds=
11584 if test -n "$RANLIB"; then
11587 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11590 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11593 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11596 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11598 # Only perform the check for file, if the check method requires it
11599 case $deplibs_check_method in
11601 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11602 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11603 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11604 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11612 lt_save_MAGIC_CMD="$MAGIC_CMD"
11613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11615 for ac_dir in $ac_dummy; do
11617 test -z "$ac_dir" && ac_dir=.
11618 if test -f $ac_dir/${ac_tool_prefix}file; then
11619 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11620 if test -n "$file_magic_test_file"; then
11621 case $deplibs_check_method in
11623 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11626 $EGREP "$file_magic_regex" > /dev/null; then
11631 *** Warning: the command libtool uses to detect shared libraries,
11632 *** $file_magic_cmd, produces output that libtool cannot recognize.
11633 *** The result is that libtool may fail to recognize shared libraries
11634 *** as such. This will affect the creation of libtool libraries that
11635 *** depend on shared libraries, but programs linked with such libtool
11636 *** libraries will work regardless of this problem. Nevertheless, you
11637 *** may want to report the problem to your system manager and/or to
11638 *** bug-libtool@gnu.org
11648 MAGIC_CMD="$lt_save_MAGIC_CMD"
11653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11654 if test -n "$MAGIC_CMD"; then
11655 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11656 echo "${ECHO_T}$MAGIC_CMD" >&6
11658 echo "$as_me:$LINENO: result: no" >&5
11659 echo "${ECHO_T}no" >&6
11662 if test -z "$lt_cv_path_MAGIC_CMD"; then
11663 if test -n "$ac_tool_prefix"; then
11664 echo "$as_me:$LINENO: checking for file" >&5
11665 echo $ECHO_N "checking for file... $ECHO_C" >&6
11666 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11674 lt_save_MAGIC_CMD="$MAGIC_CMD"
11675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11676 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11677 for ac_dir in $ac_dummy; do
11679 test -z "$ac_dir" && ac_dir=.
11680 if test -f $ac_dir/file; then
11681 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11682 if test -n "$file_magic_test_file"; then
11683 case $deplibs_check_method in
11685 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11687 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11688 $EGREP "$file_magic_regex" > /dev/null; then
11693 *** Warning: the command libtool uses to detect shared libraries,
11694 *** $file_magic_cmd, produces output that libtool cannot recognize.
11695 *** The result is that libtool may fail to recognize shared libraries
11696 *** as such. This will affect the creation of libtool libraries that
11697 *** depend on shared libraries, but programs linked with such libtool
11698 *** libraries will work regardless of this problem. Nevertheless, you
11699 *** may want to report the problem to your system manager and/or to
11700 *** bug-libtool@gnu.org
11710 MAGIC_CMD="$lt_save_MAGIC_CMD"
11715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11716 if test -n "$MAGIC_CMD"; then
11717 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11718 echo "${ECHO_T}$MAGIC_CMD" >&6
11720 echo "$as_me:$LINENO: result: no" >&5
11721 echo "${ECHO_T}no" >&6
11734 enable_win32_dll=no
11736 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11737 if test "${enable_libtool_lock+set}" = set; then
11738 enableval="$enable_libtool_lock"
11741 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11744 # Check whether --with-pic or --without-pic was given.
11745 if test "${with_pic+set}" = set; then
11746 withval="$with_pic"
11747 pic_mode="$withval"
11751 test -z "$pic_mode" && pic_mode=default
11753 # Use C for the default configuration in the libtool script
11757 ac_cpp='$CPP $CPPFLAGS'
11758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11763 # Source file extension for C test sources.
11766 # Object file extension for compiled C test sources.
11770 # Code to be used in simple compile tests
11771 lt_simple_compile_test_code="int some_variable = 0;\n"
11773 # Code to be used in simple link tests
11774 lt_simple_link_test_code='int main(){return(0);}\n'
11777 # If no C compiler was specified, use CC.
11780 # Allow CC to be a program name with arguments.
11785 # Check for any special shared library compilation flags.
11788 if test "$GCC" = no; then
11791 lt_prog_cc_shlib='-belf'
11795 if test -n "$lt_prog_cc_shlib"; then
11796 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11797 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11798 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11800 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11801 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11802 lt_cv_prog_cc_can_build_shared=no
11808 # Check to make sure the static flag actually works.
11810 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11811 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11812 if test "${lt_prog_compiler_static_works+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 lt_prog_compiler_static_works=no
11816 save_LDFLAGS="$LDFLAGS"
11817 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11818 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11819 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11820 # The compiler can only warn and ignore the option if not recognized
11821 # So say no if there are warnings
11822 if test -s conftest.err; then
11823 # Append any errors to the config.log.
11824 cat conftest.err 1>&5
11826 lt_prog_compiler_static_works=yes
11830 LDFLAGS="$save_LDFLAGS"
11833 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11834 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11836 if test x"$lt_prog_compiler_static_works" = xyes; then
11839 lt_prog_compiler_static=
11845 lt_prog_compiler_no_builtin_flag=
11847 if test "$GCC" = yes; then
11848 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11851 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11852 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11853 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 lt_cv_prog_compiler_rtti_exceptions=no
11857 ac_outfile=conftest.$ac_objext
11858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11859 lt_compiler_flag="-fno-rtti -fno-exceptions"
11860 # Insert the option either (1) after the last *FLAGS variable, or
11861 # (2) before a word containing "conftest.", or (3) at the end.
11862 # Note that $ac_compile itself does not contain backslashes and begins
11863 # with a dollar sign (not a hyphen), so the echo should work correctly.
11864 # The option is referenced via a variable to avoid confusing sed.
11865 lt_compile=`echo "$ac_compile" | $SED \
11866 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11868 -e 's:$: $lt_compiler_flag:'`
11869 (eval echo "\"\$as_me:11869: $lt_compile\"" >&5)
11870 (eval "$lt_compile" 2>conftest.err)
11872 cat conftest.err >&5
11873 echo "$as_me:11873: \$? = $ac_status" >&5
11874 if (exit $ac_status) && test -s "$ac_outfile"; then
11875 # The compiler can only warn and ignore the option if not recognized
11876 # So say no if there are warnings
11877 if test ! -s conftest.err; then
11878 lt_cv_prog_compiler_rtti_exceptions=yes
11884 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11885 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11887 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11888 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11895 lt_prog_compiler_wl=
11896 lt_prog_compiler_pic=
11897 lt_prog_compiler_static=
11899 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11900 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11902 if test "$GCC" = yes; then
11903 lt_prog_compiler_wl='-Wl,'
11904 lt_prog_compiler_static='-static'
11908 # All AIX code is PIC.
11909 if test "$host_cpu" = ia64; then
11910 # AIX 5 now supports IA64 processor
11911 lt_prog_compiler_static='-Bstatic'
11916 # FIXME: we need at least 68020 code to build shared libraries, but
11917 # adding the `-m68020' flag to GCC prevents building anything better,
11919 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11922 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11923 # PIC is the default for these OSes.
11926 mingw* | pw32* | os2*)
11927 # This hack is so that the source file can tell whether it is being
11928 # built for inclusion in a dll (and should export symbols for example).
11929 lt_prog_compiler_pic='-DDLL_EXPORT'
11932 darwin* | rhapsody*)
11933 # PIC is the default on this platform
11934 # Common symbols not allowed in MH_DYLIB files
11935 lt_prog_compiler_pic='-fno-common'
11939 # Just because we use GCC doesn't mean we suddenly get shared libraries
11940 # on systems that don't support them.
11941 lt_prog_compiler_can_build_shared=no
11946 if test -d /usr/nec; then
11947 lt_prog_compiler_pic=-Kconform_pic
11952 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11953 # not for PA HP-UX.
11954 case "$host_cpu" in
11959 lt_prog_compiler_pic='-fPIC'
11965 lt_prog_compiler_pic='-fPIC'
11969 # PORTME Check for flag to pass linker flags through the system compiler.
11972 lt_prog_compiler_wl='-Wl,'
11973 if test "$host_cpu" = ia64; then
11974 # AIX 5 now supports IA64 processor
11975 lt_prog_compiler_static='-Bstatic'
11977 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11981 # PIC is the default on this platform
11982 # Common symbols not allowed in MH_DYLIB files
11983 case "$cc_basename" in
11985 lt_prog_compiler_pic='-qnocommon'
11986 lt_prog_compiler_wl='-Wl,'
11991 mingw* | pw32* | os2*)
11992 # This hack is so that the source file can tell whether it is being
11993 # built for inclusion in a dll (and should export symbols for example).
11994 lt_prog_compiler_pic='-DDLL_EXPORT'
11997 hpux9* | hpux10* | hpux11*)
11998 lt_prog_compiler_wl='-Wl,'
11999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12000 # not for PA HP-UX.
12001 case "$host_cpu" in
12006 lt_prog_compiler_pic='+Z'
12009 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12010 lt_prog_compiler_static='${wl}-a ${wl}archive'
12013 irix5* | irix6* | nonstopux*)
12014 lt_prog_compiler_wl='-Wl,'
12015 # PIC (with -KPIC) is the default.
12016 lt_prog_compiler_static='-non_shared'
12020 lt_prog_compiler_pic='-KPIC'
12021 lt_prog_compiler_static='-Bstatic'
12027 lt_prog_compiler_wl='-Wl,'
12028 lt_prog_compiler_pic='-KPIC'
12029 lt_prog_compiler_static='-static'
12032 lt_prog_compiler_wl='-Wl,'
12033 # All Alpha code is PIC.
12034 lt_prog_compiler_static='-non_shared'
12039 osf3* | osf4* | osf5*)
12040 lt_prog_compiler_wl='-Wl,'
12041 # All OSF/1 code is PIC.
12042 lt_prog_compiler_static='-non_shared'
12046 lt_prog_compiler_pic='-Kpic'
12047 lt_prog_compiler_static='-dn'
12051 lt_prog_compiler_wl='-Wl,'
12052 lt_prog_compiler_pic='-KPIC'
12053 lt_prog_compiler_static='-Bstatic'
12057 lt_prog_compiler_wl='-Qoption ld '
12058 lt_prog_compiler_pic='-PIC'
12059 lt_prog_compiler_static='-Bstatic'
12062 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12063 lt_prog_compiler_wl='-Wl,'
12064 lt_prog_compiler_pic='-KPIC'
12065 lt_prog_compiler_static='-Bstatic'
12069 if test -d /usr/nec ;then
12070 lt_prog_compiler_pic='-Kconform_pic'
12071 lt_prog_compiler_static='-Bstatic'
12076 lt_prog_compiler_pic='-pic'
12077 lt_prog_compiler_static='-Bstatic'
12081 lt_prog_compiler_can_build_shared=no
12086 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12087 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12090 # Check to make sure the PIC flag actually works.
12092 if test -n "$lt_prog_compiler_pic"; then
12094 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12095 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12096 if test "${lt_prog_compiler_pic_works+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 lt_prog_compiler_pic_works=no
12100 ac_outfile=conftest.$ac_objext
12101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12102 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12103 # Insert the option either (1) after the last *FLAGS variable, or
12104 # (2) before a word containing "conftest.", or (3) at the end.
12105 # Note that $ac_compile itself does not contain backslashes and begins
12106 # with a dollar sign (not a hyphen), so the echo should work correctly.
12107 # The option is referenced via a variable to avoid confusing sed.
12108 lt_compile=`echo "$ac_compile" | $SED \
12109 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12111 -e 's:$: $lt_compiler_flag:'`
12112 (eval echo "\"\$as_me:12112: $lt_compile\"" >&5)
12113 (eval "$lt_compile" 2>conftest.err)
12115 cat conftest.err >&5
12116 echo "$as_me:12116: \$? = $ac_status" >&5
12117 if (exit $ac_status) && test -s "$ac_outfile"; then
12118 # The compiler can only warn and ignore the option if not recognized
12119 # So say no if there are warnings
12120 if test ! -s conftest.err; then
12121 lt_prog_compiler_pic_works=yes
12127 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12128 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12130 if test x"$lt_prog_compiler_pic_works" = xyes; then
12131 case $lt_prog_compiler_pic in
12133 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12136 lt_prog_compiler_pic=
12137 lt_prog_compiler_can_build_shared=no
12142 # For platforms which do not support PIC, -DPIC is meaningless:
12144 lt_prog_compiler_pic=
12147 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12151 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12152 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12153 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 lt_cv_prog_compiler_c_o=no
12157 $rm -r conftest 2>/dev/null
12161 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12163 lt_compiler_flag="-o out/conftest2.$ac_objext"
12164 # Insert the option either (1) after the last *FLAGS variable, or
12165 # (2) before a word containing "conftest.", or (3) at the end.
12166 # Note that $ac_compile itself does not contain backslashes and begins
12167 # with a dollar sign (not a hyphen), so the echo should work correctly.
12168 lt_compile=`echo "$ac_compile" | $SED \
12169 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12171 -e 's:$: $lt_compiler_flag:'`
12172 (eval echo "\"\$as_me:12172: $lt_compile\"" >&5)
12173 (eval "$lt_compile" 2>out/conftest.err)
12175 cat out/conftest.err >&5
12176 echo "$as_me:12176: \$? = $ac_status" >&5
12177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12179 # The compiler can only warn and ignore the option if not recognized
12180 # So say no if there are warnings
12181 if test ! -s out/conftest.err; then
12182 lt_cv_prog_compiler_c_o=yes
12187 # SGI C++ compiler will create directory out/ii_files/ for
12188 # template instantiation
12189 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12190 $rm out/* && rmdir out
12196 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12200 hard_links="nottested"
12201 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12202 # do not overwrite the value of need_locks provided by the user
12203 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12204 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12209 ln conftest.a conftest.b 2>&5 || hard_links=no
12210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12211 echo "$as_me:$LINENO: result: $hard_links" >&5
12212 echo "${ECHO_T}$hard_links" >&6
12213 if test "$hard_links" = no; then
12214 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12215 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12222 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12223 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12226 allow_undefined_flag=
12227 enable_shared_with_static_runtimes=no
12229 archive_expsym_cmds=
12230 old_archive_From_new_cmds=
12231 old_archive_from_expsyms_cmds=
12232 export_dynamic_flag_spec=
12233 whole_archive_flag_spec=
12234 thread_safe_flag_spec=
12235 hardcode_libdir_flag_spec=
12236 hardcode_libdir_flag_spec_ld=
12237 hardcode_libdir_separator=
12239 hardcode_minus_L=no
12240 hardcode_shlibpath_var=unsupported
12241 link_all_deplibs=unknown
12242 hardcode_automatic=no
12244 module_expsym_cmds=
12245 always_export_symbols=no
12246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12247 # include_expsyms should be a list of space-separated symbols to be *always*
12248 # included in the symbol list
12250 # exclude_expsyms can be an extended regexp of symbols to exclude
12251 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12253 # as well as any symbol that contains `d'.
12254 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12256 # platforms (ab)use it in PIC code, but their linkers get confused if
12257 # the symbol is explicitly referenced. Since portable code cannot
12258 # rely on this symbol name, it's probably fine to never include it in
12259 # preloaded symbol tables.
12260 extract_expsyms_cmds=
12263 cygwin* | mingw* | pw32*)
12264 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12265 # When not using gcc, we currently assume that we are using
12266 # Microsoft Visual C++.
12267 if test "$GCC" != yes; then
12277 if test "$with_gnu_ld" = yes; then
12278 # If archive_cmds runs LD, not CC, wlarc should be empty
12281 # See if GNU ld supports shared libraries.
12283 aix3* | aix4* | aix5*)
12284 # On AIX/PPC, the GNU linker is very broken
12285 if test "$host_cpu" != ia64; then
12289 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12290 *** to be unable to reliably create shared libraries on AIX.
12291 *** Therefore, libtool is disabling shared libraries support. If you
12292 *** really care for shared libraries, you may want to modify your PATH
12293 *** so that a non-GNU linker is found, and then restart.
12300 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)'
12301 hardcode_libdir_flag_spec='-L$libdir'
12302 hardcode_minus_L=yes
12304 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12305 # that the semantics of dynamic libraries on AmigaOS, at least up
12306 # to version 4, is to share data among multiple programs linked
12307 # with the same dynamic library. Since this doesn't match the
12308 # behavior of shared libraries on other platforms, we can't use
12314 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12315 allow_undefined_flag=unsupported
12316 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12317 # support --undefined. This deserves some investigation. FIXME
12318 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12324 cygwin* | mingw* | pw32*)
12325 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12326 # as there is no search path for DLLs.
12327 hardcode_libdir_flag_spec='-L$libdir'
12328 allow_undefined_flag=unsupported
12329 always_export_symbols=no
12330 enable_shared_with_static_runtimes=yes
12331 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12333 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12335 # If the export-symbols file already is a .def file (1st line
12336 # is EXPORTS), use it as is; otherwise, prepend...
12337 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12338 cp $export_symbols $output_objdir/$soname.def;
12340 echo EXPORTS > $output_objdir/$soname.def;
12341 cat $export_symbols >> $output_objdir/$soname.def;
12343 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12351 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12360 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12364 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12365 *** create shared libraries on Solaris systems. Therefore, libtool
12366 *** is disabling shared libraries support. We urge you to upgrade GNU
12367 *** binutils to release 2.9.1 or newer. Another option is to modify
12368 *** your PATH or compiler configuration so that the native linker is
12369 *** used, and then restart.
12372 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12381 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12383 hardcode_direct=yes
12384 hardcode_shlibpath_var=no
12388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12389 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12390 archive_cmds="$tmp_archive_cmds"
12391 supports_anon_versioning=no
12392 case `$LD -v 2>/dev/null` in
12393 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12394 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12395 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12396 *\ 2.11.*) ;; # other 2.11 versions
12397 *) supports_anon_versioning=yes ;;
12399 if test $supports_anon_versioning = yes; then
12400 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12402 $echo "local: *; };" >> $output_objdir/$libname.ver~
12403 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12405 archive_expsym_cmds="$tmp_archive_cmds"
12413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12422 if test "$ld_shlibs" = yes; then
12423 runpath_var=LD_RUN_PATH
12424 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12425 export_dynamic_flag_spec='${wl}--export-dynamic'
12426 # ancient GNU ld didn't support --whole-archive et. al.
12427 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12428 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12430 whole_archive_flag_spec=
12434 # PORTME fill in a description of your system's linker (not GNU ld)
12437 allow_undefined_flag=unsupported
12438 always_export_symbols=yes
12439 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'
12440 # Note: this linker hardcodes the directories in LIBPATH if there
12441 # are no directories specified by -L.
12442 hardcode_minus_L=yes
12443 if test "$GCC" = yes && test -z "$link_static_flag"; then
12444 # Neither direct hardcoding nor static linking is supported with a
12446 hardcode_direct=unsupported
12451 if test "$host_cpu" = ia64; then
12452 # On IA64, the linker does run time linking by default, so we don't
12453 # have to do anything special.
12454 aix_use_runtimelinking=no
12455 exp_sym_flag='-Bexport'
12458 # If we're using GNU nm, then we don't want the "-C" option.
12459 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12460 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12461 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'
12463 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'
12465 aix_use_runtimelinking=no
12467 # Test if we are trying to use run time linking or normal
12468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12469 # need to do runtime linking.
12470 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12471 for ld_flag in $LDFLAGS; do
12472 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12473 aix_use_runtimelinking=yes
12479 exp_sym_flag='-bexport'
12480 no_entry_flag='-bnoentry'
12483 # When large executables or shared objects are built, AIX ld can
12484 # have problems creating the table of contents. If linking a library
12485 # or program results in "error TOC overflow" add -mminimal-toc to
12486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12490 hardcode_direct=yes
12491 hardcode_libdir_separator=':'
12492 link_all_deplibs=yes
12494 if test "$GCC" = yes; then
12495 case $host_os in aix4.012|aix4.012.*)
12496 # We only want to do this on AIX 4.2 and lower, the check
12497 # below for broken collect2 doesn't work under 4.3+
12498 collect2name=`${CC} -print-prog-name=collect2`
12499 if test -f "$collect2name" && \
12500 strings "$collect2name" | grep resolve_lib_name >/dev/null
12502 # We have reworked collect2
12503 hardcode_direct=yes
12505 # We have old collect2
12506 hardcode_direct=unsupported
12507 # It fails to find uninstalled libraries when the uninstalled
12508 # path is not listed in the libpath. Setting hardcode_minus_L
12509 # to unsupported forces relinking
12510 hardcode_minus_L=yes
12511 hardcode_libdir_flag_spec='-L$libdir'
12512 hardcode_libdir_separator=
12515 shared_flag='-shared'
12518 if test "$host_cpu" = ia64; then
12519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12520 # chokes on -Wl,-G. The following line is correct:
12523 if test "$aix_use_runtimelinking" = yes; then
12524 shared_flag='${wl}-G'
12526 shared_flag='${wl}-bM:SRE'
12531 # It seems that -bexpall does not export symbols beginning with
12532 # underscore (_), so it is better to generate a list of symbols to export.
12533 always_export_symbols=yes
12534 if test "$aix_use_runtimelinking" = yes; then
12535 # Warning - without using the other runtime loading flags (-brtl),
12536 # -berok will link without error, but may produce a broken library.
12537 allow_undefined_flag='-berok'
12538 # Determine the default libpath from the value encoded in an empty executable.
12539 cat >conftest.$ac_ext <<_ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556 (eval $ac_link) 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag"
12564 || test ! -s conftest.err'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try='test -s conftest$ac_exeext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12579 # Check for a 64-bit object if we didn't find anything.
12580 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; }
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12587 rm -f conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12592 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"
12594 if test "$host_cpu" = ia64; then
12595 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12596 allow_undefined_flag="-z nodefs"
12597 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"
12599 # Determine the default libpath from the value encoded in an empty executable.
12600 cat >conftest.$ac_ext <<_ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617 (eval $ac_link) 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest$ac_exeext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12640 # Check for a 64-bit object if we didn't find anything.
12641 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; }
12644 echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12648 rm -f conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12652 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12653 # Warning - without using the other run time loading flags,
12654 # -berok will link without error, but may produce a broken library.
12655 no_undefined_flag=' ${wl}-bernotok'
12656 allow_undefined_flag=' ${wl}-berok'
12657 # -bexpall does not export symbols beginning with underscore (_)
12658 always_export_symbols=yes
12659 # Exported symbols can be pulled into shared objects from archives
12660 whole_archive_flag_spec=' '
12661 archive_cmds_need_lc=yes
12662 # This is similar to how AIX traditionally builds it's shared libraries.
12663 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'
12669 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)'
12670 hardcode_libdir_flag_spec='-L$libdir'
12671 hardcode_minus_L=yes
12672 # see comment about different semantics on the GNU ld section
12677 export_dynamic_flag_spec=-rdynamic
12680 cygwin* | mingw* | pw32*)
12681 # When not using gcc, we currently assume that we are using
12682 # Microsoft Visual C++.
12683 # hardcode_libdir_flag_spec is actually meaningless, as there is
12684 # no search path for DLLs.
12685 hardcode_libdir_flag_spec=' '
12686 allow_undefined_flag=unsupported
12687 # Tell ltmain to make .lib files, not .a files.
12689 # Tell ltmain to make .dll files, not .so files.
12691 # FIXME: Setting linknames here is a bad hack.
12692 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12693 # The linker will automatically build a .lib file if we build a DLL.
12694 old_archive_From_new_cmds='true'
12695 # FIXME: Should let the user specify the lib program.
12696 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12697 fix_srcfile_path='`cygpath -w "$srcfile"`'
12698 enable_shared_with_static_runtimes=yes
12701 darwin* | rhapsody*)
12703 rhapsody* | darwin1.[012])
12704 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12707 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12708 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12710 case ${MACOSX_DEPLOYMENT_TARGET} in
12712 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12715 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12721 archive_cmds_need_lc=no
12723 hardcode_automatic=yes
12724 hardcode_shlibpath_var=unsupported
12725 whole_archive_flag_spec=''
12726 link_all_deplibs=yes
12727 if test "$GCC" = yes ; then
12728 output_verbose_link_cmd='echo'
12729 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12730 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12731 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12732 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}'
12733 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}'
12735 case "$cc_basename" in
12737 output_verbose_link_cmd='echo'
12738 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12739 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12741 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}'
12742 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}'
12752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12753 hardcode_libdir_flag_spec='-L$libdir'
12754 hardcode_shlibpath_var=no
12761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12762 # support. Future versions do this automatically, but an explicit c++rt0.o
12763 # does not break anything, and helps significantly (at the cost of a little
12766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12767 hardcode_libdir_flag_spec='-R$libdir'
12768 hardcode_direct=yes
12769 hardcode_shlibpath_var=no
12772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12775 hardcode_direct=yes
12776 hardcode_minus_L=yes
12777 hardcode_shlibpath_var=no
12780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12781 freebsd* | kfreebsd*-gnu)
12782 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12783 hardcode_libdir_flag_spec='-R$libdir'
12784 hardcode_direct=yes
12785 hardcode_shlibpath_var=no
12789 if test "$GCC" = yes; then
12790 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'
12792 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'
12794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12795 hardcode_libdir_separator=:
12796 hardcode_direct=yes
12798 # hardcode_minus_L: Not really in the search PATH,
12799 # but as the default location of the library.
12800 hardcode_minus_L=yes
12801 export_dynamic_flag_spec='${wl}-E'
12805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12806 case "$host_cpu" in
12808 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12811 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12815 case "$host_cpu" in
12817 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12820 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12824 if test "$with_gnu_ld" = no; then
12825 case "$host_cpu" in
12827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12828 hardcode_libdir_flag_spec_ld='+b $libdir'
12829 hardcode_libdir_separator=:
12831 hardcode_shlibpath_var=no
12834 hardcode_libdir_flag_spec='-L$libdir'
12836 hardcode_shlibpath_var=no
12838 # hardcode_minus_L: Not really in the search PATH,
12839 # but as the default location of the library.
12840 hardcode_minus_L=yes
12843 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12844 hardcode_libdir_separator=:
12845 hardcode_direct=yes
12846 export_dynamic_flag_spec='${wl}-E'
12848 # hardcode_minus_L: Not really in the search PATH,
12849 # but as the default location of the library.
12850 hardcode_minus_L=yes
12856 irix5* | irix6* | nonstopux*)
12857 if test "$GCC" = yes; then
12858 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'
12860 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'
12861 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12864 hardcode_libdir_separator=:
12865 link_all_deplibs=yes
12869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12874 hardcode_libdir_flag_spec='-R$libdir'
12875 hardcode_direct=yes
12876 hardcode_shlibpath_var=no
12880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12881 hardcode_direct=yes
12882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12883 hardcode_libdir_separator=:
12884 hardcode_shlibpath_var=no
12888 hardcode_direct=yes
12889 hardcode_shlibpath_var=no
12890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12892 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12894 export_dynamic_flag_spec='${wl}-E'
12897 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12899 hardcode_libdir_flag_spec='-R$libdir'
12902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12910 hardcode_libdir_flag_spec='-L$libdir'
12911 hardcode_minus_L=yes
12912 allow_undefined_flag=unsupported
12913 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'
12914 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12918 if test "$GCC" = yes; then
12919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12920 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'
12922 allow_undefined_flag=' -expect_unresolved \*'
12923 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'
12925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12926 hardcode_libdir_separator=:
12929 osf4* | osf5*) # as osf3* with the addition of -msym flag
12930 if test "$GCC" = yes; then
12931 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12932 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'
12933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12935 allow_undefined_flag=' -expect_unresolved \*'
12936 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'
12937 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12938 $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'
12940 # Both c and cxx compiler support -rpath directly
12941 hardcode_libdir_flag_spec='-rpath $libdir'
12943 hardcode_libdir_separator=:
12947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12948 hardcode_shlibpath_var=no
12949 export_dynamic_flag_spec='${wl}-Bexport'
12950 runpath_var=LD_RUN_PATH
12951 hardcode_runpath_var=yes
12955 no_undefined_flag=' -z text'
12956 if test "$GCC" = yes; then
12957 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12958 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12959 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12961 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12962 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12963 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12965 hardcode_libdir_flag_spec='-R$libdir'
12966 hardcode_shlibpath_var=no
12968 solaris2.[0-5] | solaris2.[0-5].*) ;;
12969 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12970 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12972 link_all_deplibs=yes
12976 if test "x$host_vendor" = xsequent; then
12977 # Use $CC to link under sequent, because it throws in some extra .o
12978 # files that make .init and .fini sections work.
12979 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12981 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12983 hardcode_libdir_flag_spec='-L$libdir'
12984 hardcode_direct=yes
12985 hardcode_minus_L=yes
12986 hardcode_shlibpath_var=no
12990 case $host_vendor in
12992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12993 hardcode_direct=yes # is this really true???
12996 ## LD is ld it makes a PLAMLIB
12997 ## CC just makes a GrossModule.
12998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12999 reload_cmds='$CC -r -o $output$reload_objs'
13003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13004 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13007 runpath_var='LD_RUN_PATH'
13008 hardcode_shlibpath_var=no
13012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13013 hardcode_shlibpath_var=no
13014 export_dynamic_flag_spec='-Bexport'
13018 if test -d /usr/nec; then
13019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13020 hardcode_shlibpath_var=no
13021 runpath_var=LD_RUN_PATH
13022 hardcode_runpath_var=yes
13028 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13029 hardcode_direct=yes
13030 hardcode_minus_L=no
13031 hardcode_shlibpath_var=no
13032 hardcode_runpath_var=yes
13033 runpath_var=LD_RUN_PATH
13036 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13037 no_undefined_flag='${wl}-z ${wl}text'
13038 if test "$GCC" = yes; then
13039 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13041 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13043 runpath_var='LD_RUN_PATH'
13044 hardcode_shlibpath_var=no
13048 no_undefined_flag=' -z text'
13049 # $CC -shared without GNU ld will not create a library from C++
13050 # object files and a static libstdc++, better avoid it by now
13051 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13052 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13054 hardcode_libdir_flag_spec=
13055 hardcode_shlibpath_var=no
13056 runpath_var='LD_RUN_PATH'
13060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13061 hardcode_libdir_flag_spec='-L$libdir'
13062 hardcode_shlibpath_var=no
13071 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13072 echo "${ECHO_T}$ld_shlibs" >&6
13073 test "$ld_shlibs" = no && can_build_shared=no
13075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13076 if test "$GCC" = yes; then
13077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13081 # Do we need to explicitly link libc?
13083 case "x$archive_cmds_need_lc" in
13085 # Assume -lc should be added
13086 archive_cmds_need_lc=yes
13088 if test "$enable_shared" = yes && test "$GCC" = yes; then
13089 case $archive_cmds in
13091 # FIXME: we may have to deal with multi-command sequences.
13094 # Test whether the compiler implicitly links with -lc since on some
13095 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13096 # to ld, don't add -lc before -lgcc.
13097 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13098 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13100 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13103 (eval $ac_compile) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } 2>conftest.err; then
13109 libobjs=conftest.$ac_objext
13111 wl=$lt_prog_compiler_wl
13117 lt_save_allow_undefined_flag=$allow_undefined_flag
13118 allow_undefined_flag=
13119 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13120 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }
13125 archive_cmds_need_lc=no
13127 archive_cmds_need_lc=yes
13129 allow_undefined_flag=$lt_save_allow_undefined_flag
13131 cat conftest.err 1>&5
13134 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13135 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13142 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13143 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13144 library_names_spec=
13145 libname_spec='lib$name'
13149 postuninstall_cmds=
13153 shlibpath_overrides_runpath=unknown
13155 dynamic_linker="$host_os ld.so"
13156 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13157 if test "$GCC" = yes; then
13158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13159 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13160 # if the path contains ";" then we assume it to be the separator
13161 # otherwise default to the standard path separator (i.e. ":") - it is
13162 # assumed that no part of a normal pathname contains ";" but that should
13163 # okay in the real world where ";" in dirpaths is itself problematic.
13164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13171 need_lib_prefix=unknown
13172 hardcode_into_libs=no
13174 # when you set need_version to no, make sure it does not cause -set_version
13175 # flags to be left without arguments
13176 need_version=unknown
13181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13182 shlibpath_var=LIBPATH
13184 # AIX 3 has no versioning support, so we append a major version to the name.
13185 soname_spec='${libname}${release}${shared_ext}$major'
13192 hardcode_into_libs=yes
13193 if test "$host_cpu" = ia64; then
13194 # AIX 5 supports IA64
13195 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13196 shlibpath_var=LD_LIBRARY_PATH
13198 # With GCC up to 2.95.x, collect2 would create an import file
13199 # for dependence libraries. The import file would start with
13200 # the line `#! .'. This would cause the generated library to
13201 # depend on `.', always an invalid library. This was fixed in
13202 # development snapshots of GCC prior to 3.0.
13204 aix4 | aix4.[01] | aix4.[01].*)
13205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13207 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13210 can_build_shared=no
13214 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13215 # soname into executable. Probably we can add versioning support to
13216 # collect2, so additional links can be useful in future.
13217 if test "$aix_use_runtimelinking" = yes; then
13218 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13219 # instead of lib<name>.a to let people know that these are not
13220 # typical AIX shared libraries.
13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223 # We preserve .a as extension for shared libraries through AIX4.2
13224 # and later when we are not doing run time linking.
13225 library_names_spec='${libname}${release}.a $libname.a'
13226 soname_spec='${libname}${release}${shared_ext}$major'
13228 shlibpath_var=LIBPATH
13233 library_names_spec='$libname.ixlibrary $libname.a'
13234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13235 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'
13239 library_names_spec='${libname}${shared_ext}'
13240 dynamic_linker="$host_os ld.so"
13241 shlibpath_var=LIBRARY_PATH
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248 soname_spec='${libname}${release}${shared_ext}$major'
13249 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13250 shlibpath_var=LD_LIBRARY_PATH
13251 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13252 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13253 # the default ld.so.conf also contains /usr/contrib/lib and
13254 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13255 # libtool to hard-code these into programs
13258 cygwin* | mingw* | pw32*)
13259 version_type=windows
13264 case $GCC,$host_os in
13265 yes,cygwin* | yes,mingw* | yes,pw32*)
13266 library_names_spec='$libname.dll.a'
13267 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13268 postinstall_cmds='base_file=`basename \${file}`~
13269 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13270 dldir=$destdir/`dirname \$dlpath`~
13271 test -d \$dldir || mkdir -p \$dldir~
13272 $install_prog $dir/$dlname \$dldir/$dlname'
13273 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13274 dlpath=$dir/\$dldll~
13276 shlibpath_overrides_runpath=yes
13280 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13281 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13282 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13285 # MinGW DLLs use traditional 'lib' prefix
13286 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13287 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13288 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13289 # It is most probably a Windows format PATH printed by
13290 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13291 # path with ; separators, and with drive letters. We can handle the
13292 # drive letters (cygwin fileutils understands them), so leave them,
13293 # especially as we might pass files found there to a mingw objdump,
13294 # which wouldn't understand a cygwinified path. Ahh.
13295 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13301 # pw32 DLLs use 'pw' prefix rather than 'lib'
13302 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13308 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13311 dynamic_linker='Win32 ld.exe'
13312 # FIXME: first we should search . and the directory the executable is in
13316 darwin* | rhapsody*)
13317 dynamic_linker="$host_os dyld"
13318 version_type=darwin
13321 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13322 soname_spec='${libname}${release}${major}$shared_ext'
13323 shlibpath_overrides_runpath=yes
13324 shlibpath_var=DYLD_LIBRARY_PATH
13325 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13326 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13327 if test "$GCC" = yes; then
13328 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"`
13330 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13332 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13340 soname_spec='${libname}${release}${shared_ext}$major'
13341 shlibpath_var=LD_LIBRARY_PATH
13352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13353 soname_spec='${libname}${release}${shared_ext}$major'
13354 shlibpath_var=LD_LIBRARY_PATH
13355 shlibpath_overrides_runpath=no
13356 hardcode_into_libs=yes
13357 dynamic_linker='GNU ld.so'
13361 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13362 version_type=freebsd-$objformat
13363 case $version_type in
13365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13374 shlibpath_var=LD_LIBRARY_PATH
13377 shlibpath_overrides_runpath=yes
13379 freebsd3.01* | freebsdelf3.01*)
13380 shlibpath_overrides_runpath=yes
13381 hardcode_into_libs=yes
13384 shlibpath_overrides_runpath=no
13385 hardcode_into_libs=yes
13394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13395 soname_spec='${libname}${release}${shared_ext}$major'
13396 shlibpath_var=LD_LIBRARY_PATH
13397 hardcode_into_libs=yes
13400 hpux9* | hpux10* | hpux11*)
13401 # Give a soname corresponding to the major version so that dld.sl refuses to
13402 # link against other versions.
13406 case "$host_cpu" in
13409 hardcode_into_libs=yes
13410 dynamic_linker="$host_os dld.so"
13411 shlibpath_var=LD_LIBRARY_PATH
13412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 if test "X$HPUX_IA64_MODE" = X32; then
13416 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13418 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13424 hardcode_into_libs=yes
13425 dynamic_linker="$host_os dld.sl"
13426 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13429 soname_spec='${libname}${release}${shared_ext}$major'
13430 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13435 dynamic_linker="$host_os dld.sl"
13436 shlibpath_var=SHLIB_PATH
13437 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439 soname_spec='${libname}${release}${shared_ext}$major'
13442 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13443 postinstall_cmds='chmod 555 $lib'
13446 irix5* | irix6* | nonstopux*)
13448 nonstopux*) version_type=nonstopux ;;
13450 if test "$lt_cv_prog_gnu_ld" = yes; then
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13461 irix5* | nonstopux*)
13462 libsuff= shlibsuff=
13465 case $LD in # libtool.m4 will add one of these switches to LD
13466 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13467 libsuff= shlibsuff= libmagic=32-bit;;
13468 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13469 libsuff=32 shlibsuff=N32 libmagic=N32;;
13470 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13471 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13472 *) libsuff= shlibsuff= libmagic=never-match;;
13476 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13477 shlibpath_overrides_runpath=no
13478 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13479 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13480 hardcode_into_libs=yes
13483 # No shared lib support for Linux oldld, aout, or coff.
13484 linux*oldld* | linux*aout* | linux*coff*)
13488 # This must be Linux ELF.
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 soname_spec='${libname}${release}${shared_ext}$major'
13495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 shlibpath_overrides_runpath=no
13498 # This implies no fast_install, which is unacceptable.
13499 # Some rework will be needed to allow for fast_install
13500 # before this can be enabled.
13501 hardcode_into_libs=yes
13503 # Append ld.so.conf contents to the search path
13504 if test -f /etc/ld.so.conf; then
13505 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13506 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13509 # We used to test for /lib/ld.so.1 and disable shared libraries on
13510 # powerpc, because MkLinux only supported shared libraries with the
13511 # GNU dynamic linker. Since this was broken with cross compilers,
13512 # most powerpc-linux boxes support dynamic linking these days and
13513 # people can always --disable-shared, the test was removed, and we
13514 # assume the GNU/Linux dynamic linker is in use.
13515 dynamic_linker='GNU/Linux ld.so'
13522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13523 soname_spec='${libname}${release}${shared_ext}$major'
13524 shlibpath_var=LD_LIBRARY_PATH
13525 shlibpath_overrides_runpath=no
13526 hardcode_into_libs=yes
13527 dynamic_linker='GNU ld.so'
13534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13537 dynamic_linker='NetBSD (a.out) ld.so'
13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13540 soname_spec='${libname}${release}${shared_ext}$major'
13541 dynamic_linker='NetBSD ld.elf_so'
13543 shlibpath_var=LD_LIBRARY_PATH
13544 shlibpath_overrides_runpath=yes
13545 hardcode_into_libs=yes
13550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13551 shlibpath_var=LD_LIBRARY_PATH
13552 shlibpath_overrides_runpath=yes
13559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13560 soname_spec='${libname}${release}${shared_ext}$major'
13561 shlibpath_var=LD_LIBRARY_PATH
13562 shlibpath_overrides_runpath=yes
13569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13571 shlibpath_var=LD_LIBRARY_PATH
13572 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13574 openbsd2.[89] | openbsd2.[89].*)
13575 shlibpath_overrides_runpath=no
13578 shlibpath_overrides_runpath=yes
13582 shlibpath_overrides_runpath=yes
13587 libname_spec='$name'
13590 library_names_spec='$libname${shared_ext} $libname.a'
13591 dynamic_linker='OS/2 ld.exe'
13592 shlibpath_var=LIBPATH
13595 osf3* | osf4* | osf5*)
13599 soname_spec='${libname}${release}${shared_ext}$major'
13600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13601 shlibpath_var=LD_LIBRARY_PATH
13602 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13603 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13608 soname_spec='${libname}${release}${shared_ext}$major'
13609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13610 shlibpath_var=LD_LIBRARY_PATH
13617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13618 soname_spec='${libname}${release}${shared_ext}$major'
13619 shlibpath_var=LD_LIBRARY_PATH
13620 shlibpath_overrides_runpath=yes
13621 hardcode_into_libs=yes
13622 # ldd complains unless libraries are executable
13623 postinstall_cmds='chmod +x $lib'
13628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13629 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13630 shlibpath_var=LD_LIBRARY_PATH
13631 shlibpath_overrides_runpath=yes
13632 if test "$with_gnu_ld" = yes; then
13638 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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 case $host_vendor in
13645 shlibpath_overrides_runpath=no
13647 export_dynamic_flag_spec='${wl}-Blargedynsym'
13648 runpath_var=LD_RUN_PATH
13656 shlibpath_overrides_runpath=no
13657 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13663 if test -d /usr/nec ;then
13665 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13666 soname_spec='$libname${shared_ext}.$major'
13667 shlibpath_var=LD_LIBRARY_PATH
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13674 soname_spec='${libname}${release}${shared_ext}$major'
13675 shlibpath_var=LD_LIBRARY_PATH
13682 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13683 echo "${ECHO_T}$dynamic_linker" >&6
13684 test "$dynamic_linker" = no && can_build_shared=no
13686 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13687 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13689 if test -n "$hardcode_libdir_flag_spec" || \
13690 test -n "$runpath_var" || \
13691 test "X$hardcode_automatic" = "Xyes" ; then
13693 # We can hardcode non-existant directories.
13694 if test "$hardcode_direct" != no &&
13695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13696 # have to relink, otherwise we might link with an installed library
13697 # when we should be linking with a yet-to-be-installed one
13698 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13699 test "$hardcode_minus_L" != no; then
13700 # Linking always hardcodes the temporary library directory.
13701 hardcode_action=relink
13703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13704 hardcode_action=immediate
13707 # We cannot hardcode anything, or else we can only hardcode existing
13709 hardcode_action=unsupported
13711 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13712 echo "${ECHO_T}$hardcode_action" >&6
13714 if test "$hardcode_action" = relink; then
13715 # Fast installation is not supported
13716 enable_fast_install=no
13717 elif test "$shlibpath_overrides_runpath" = yes ||
13718 test "$enable_shared" = no; then
13719 # Fast installation is not necessary
13720 enable_fast_install=needless
13725 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13726 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13727 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13728 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13729 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13730 echo "$as_me:$LINENO: result: yes" >&5
13731 echo "${ECHO_T}yes" >&6
13733 # FIXME - insert some real tests, host_os isn't really good enough
13736 if test -n "$STRIP" ; then
13737 striplib="$STRIP -x"
13738 echo "$as_me:$LINENO: result: yes" >&5
13739 echo "${ECHO_T}yes" >&6
13741 echo "$as_me:$LINENO: result: no" >&5
13742 echo "${ECHO_T}no" >&6
13746 echo "$as_me:$LINENO: result: no" >&5
13747 echo "${ECHO_T}no" >&6
13752 if test "x$enable_dlopen" != xyes; then
13753 enable_dlopen=unknown
13754 enable_dlopen_self=unknown
13755 enable_dlopen_self_static=unknown
13762 lt_cv_dlopen="load_add_on"
13764 lt_cv_dlopen_self=yes
13768 lt_cv_dlopen="LoadLibrary"
13773 lt_cv_dlopen="dlopen"
13778 # if libdl is installed we need to link against it
13779 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13780 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13781 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 ac_check_lib_save_LIBS=$LIBS
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13793 /* Override any gcc2 internal prototype to avoid an error. */
13797 /* We use char because int might match the return type of a gcc2
13798 builtin and then its argument prototype would still apply. */
13808 rm -f conftest.$ac_objext conftest$ac_exeext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13810 (eval $ac_link) 2>conftest.er1
13812 grep -v '^ *+' conftest.er1 >conftest.err
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } &&
13817 { ac_try='test -z "$ac_c_werror_flag"
13818 || test ! -s conftest.err'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; } &&
13824 { ac_try='test -s conftest$ac_exeext'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; }; then
13830 ac_cv_lib_dl_dlopen=yes
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 ac_cv_lib_dl_dlopen=no
13837 rm -f conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
13839 LIBS=$ac_check_lib_save_LIBS
13841 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13842 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13843 if test $ac_cv_lib_dl_dlopen = yes; then
13844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13847 lt_cv_dlopen="dyld"
13849 lt_cv_dlopen_self=yes
13856 echo "$as_me:$LINENO: checking for shl_load" >&5
13857 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13858 if test "${ac_cv_func_shl_load+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13869 #define shl_load innocuous_shl_load
13871 /* System header to define __stub macros and hopefully few prototypes,
13872 which can conflict with char shl_load (); below.
13873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13874 <limits.h> exists even on freestanding compilers. */
13877 # include <limits.h>
13879 # include <assert.h>
13884 /* Override any gcc2 internal prototype to avoid an error. */
13889 /* We use char because int might match the return type of a gcc2
13890 builtin and then its argument prototype would still apply. */
13892 /* The GNU C library defines this for functions which it implements
13893 to always fail with ENOSYS. Some functions are actually named
13894 something starting with __ and the normal name is an alias. */
13895 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13898 char (*f) () = shl_load;
13907 return f != shl_load;
13912 rm -f conftest.$ac_objext conftest$ac_exeext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13914 (eval $ac_link) 2>conftest.er1
13916 grep -v '^ *+' conftest.er1 >conftest.err
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } &&
13921 { ac_try='test -z "$ac_c_werror_flag"
13922 || test ! -s conftest.err'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; } &&
13928 { ac_try='test -s conftest$ac_exeext'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 ac_cv_func_shl_load=yes
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13939 ac_cv_func_shl_load=no
13941 rm -f conftest.err conftest.$ac_objext \
13942 conftest$ac_exeext conftest.$ac_ext
13944 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13945 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13946 if test $ac_cv_func_shl_load = yes; then
13947 lt_cv_dlopen="shl_load"
13949 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13950 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13951 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 ac_check_lib_save_LIBS=$LIBS
13956 cat >conftest.$ac_ext <<_ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h. */
13963 /* Override any gcc2 internal prototype to avoid an error. */
13967 /* We use char because int might match the return type of a gcc2
13968 builtin and then its argument prototype would still apply. */
13978 rm -f conftest.$ac_objext conftest$ac_exeext
13979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13980 (eval $ac_link) 2>conftest.er1
13982 grep -v '^ *+' conftest.er1 >conftest.err
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
13987 { ac_try='test -z "$ac_c_werror_flag"
13988 || test ! -s conftest.err'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; } &&
13994 { ac_try='test -s conftest$ac_exeext'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_cv_lib_dld_shl_load=yes
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_cv_lib_dld_shl_load=no
14007 rm -f conftest.err conftest.$ac_objext \
14008 conftest$ac_exeext conftest.$ac_ext
14009 LIBS=$ac_check_lib_save_LIBS
14011 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14012 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14013 if test $ac_cv_lib_dld_shl_load = yes; then
14014 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14016 echo "$as_me:$LINENO: checking for dlopen" >&5
14017 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14018 if test "${ac_cv_func_dlopen+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 cat >conftest.$ac_ext <<_ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14027 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14029 #define dlopen innocuous_dlopen
14031 /* System header to define __stub macros and hopefully few prototypes,
14032 which can conflict with char dlopen (); below.
14033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14034 <limits.h> exists even on freestanding compilers. */
14037 # include <limits.h>
14039 # include <assert.h>
14044 /* Override any gcc2 internal prototype to avoid an error. */
14049 /* We use char because int might match the return type of a gcc2
14050 builtin and then its argument prototype would still apply. */
14052 /* The GNU C library defines this for functions which it implements
14053 to always fail with ENOSYS. Some functions are actually named
14054 something starting with __ and the normal name is an alias. */
14055 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14058 char (*f) () = dlopen;
14067 return f != dlopen;
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14074 (eval $ac_link) 2>conftest.er1
14076 grep -v '^ *+' conftest.er1 >conftest.err
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
14081 { ac_try='test -z "$ac_c_werror_flag"
14082 || test ! -s conftest.err'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; } &&
14088 { ac_try='test -s conftest$ac_exeext'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14094 ac_cv_func_dlopen=yes
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14099 ac_cv_func_dlopen=no
14101 rm -f conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
14104 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14105 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14106 if test $ac_cv_func_dlopen = yes; then
14107 lt_cv_dlopen="dlopen"
14109 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14110 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14111 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 ac_check_lib_save_LIBS=$LIBS
14116 cat >conftest.$ac_ext <<_ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14123 /* Override any gcc2 internal prototype to avoid an error. */
14127 /* We use char because int might match the return type of a gcc2
14128 builtin and then its argument prototype would still apply. */
14138 rm -f conftest.$ac_objext conftest$ac_exeext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14140 (eval $ac_link) 2>conftest.er1
14142 grep -v '^ *+' conftest.er1 >conftest.err
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -z "$ac_c_werror_flag"
14148 || test ! -s conftest.err'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; } &&
14154 { ac_try='test -s conftest$ac_exeext'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
14160 ac_cv_lib_dl_dlopen=yes
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14165 ac_cv_lib_dl_dlopen=no
14167 rm -f conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14169 LIBS=$ac_check_lib_save_LIBS
14171 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14172 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14173 if test $ac_cv_lib_dl_dlopen = yes; then
14174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14176 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14177 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14178 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lsvld $LIBS"
14183 cat >conftest.$ac_ext <<_ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any gcc2 internal prototype to avoid an error. */
14194 /* We use char because int might match the return type of a gcc2
14195 builtin and then its argument prototype would still apply. */
14205 rm -f conftest.$ac_objext conftest$ac_exeext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14207 (eval $ac_link) 2>conftest.er1
14209 grep -v '^ *+' conftest.er1 >conftest.err
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag"
14215 || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest$ac_exeext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_lib_svld_dlopen=yes
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 ac_cv_lib_svld_dlopen=no
14234 rm -f conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
14236 LIBS=$ac_check_lib_save_LIBS
14238 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14239 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14240 if test $ac_cv_lib_svld_dlopen = yes; then
14241 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14243 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14244 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14245 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 ac_check_lib_save_LIBS=$LIBS
14250 cat >conftest.$ac_ext <<_ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14257 /* Override any gcc2 internal prototype to avoid an error. */
14261 /* We use char because int might match the return type of a gcc2
14262 builtin and then its argument prototype would still apply. */
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14274 (eval $ac_link) 2>conftest.er1
14276 grep -v '^ *+' conftest.er1 >conftest.err
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -z "$ac_c_werror_flag"
14282 || test ! -s conftest.err'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest$ac_exeext'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 ac_cv_lib_dld_dld_link=yes
14296 echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14299 ac_cv_lib_dld_dld_link=no
14301 rm -f conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
14303 LIBS=$ac_check_lib_save_LIBS
14305 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14306 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14307 if test $ac_cv_lib_dld_dld_link = yes; then
14308 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14329 if test "x$lt_cv_dlopen" != xno; then
14335 case $lt_cv_dlopen in
14337 save_CPPFLAGS="$CPPFLAGS"
14338 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14340 save_LDFLAGS="$LDFLAGS"
14341 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14344 LIBS="$lt_cv_dlopen_libs $LIBS"
14346 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14347 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14348 if test "${lt_cv_dlopen_self+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 if test "$cross_compiling" = yes; then :
14352 lt_cv_dlopen_self=cross
14354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14355 lt_status=$lt_dlunknown
14356 cat > conftest.$ac_ext <<EOF
14357 #line 14357 "configure"
14358 #include "confdefs.h"
14367 # define LT_DLGLOBAL RTLD_GLOBAL
14370 # define LT_DLGLOBAL DL_GLOBAL
14372 # define LT_DLGLOBAL 0
14376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14377 find out it does not work in some platform. */
14378 #ifndef LT_DLLAZY_OR_NOW
14380 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14383 # define LT_DLLAZY_OR_NOW DL_LAZY
14386 # define LT_DLLAZY_OR_NOW RTLD_NOW
14389 # define LT_DLLAZY_OR_NOW DL_NOW
14391 # define LT_DLLAZY_OR_NOW 0
14399 extern "C" void exit (int);
14402 void fnord() { int i=42;}
14405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14406 int status = $lt_dlunknown;
14410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14411 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14412 /* dlclose (self); */
14418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14419 (eval $ac_link) 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14423 (./conftest; exit; ) 2>/dev/null
14425 case x$lt_status in
14426 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14427 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14428 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14431 # compilation failed
14432 lt_cv_dlopen_self=no
14439 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14440 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14442 if test "x$lt_cv_dlopen_self" = xyes; then
14443 LDFLAGS="$LDFLAGS $link_static_flag"
14444 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14445 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14446 if test "${lt_cv_dlopen_self_static+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 if test "$cross_compiling" = yes; then :
14450 lt_cv_dlopen_self_static=cross
14452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14453 lt_status=$lt_dlunknown
14454 cat > conftest.$ac_ext <<EOF
14455 #line 14455 "configure"
14456 #include "confdefs.h"
14465 # define LT_DLGLOBAL RTLD_GLOBAL
14468 # define LT_DLGLOBAL DL_GLOBAL
14470 # define LT_DLGLOBAL 0
14474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14475 find out it does not work in some platform. */
14476 #ifndef LT_DLLAZY_OR_NOW
14478 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14481 # define LT_DLLAZY_OR_NOW DL_LAZY
14484 # define LT_DLLAZY_OR_NOW RTLD_NOW
14487 # define LT_DLLAZY_OR_NOW DL_NOW
14489 # define LT_DLLAZY_OR_NOW 0
14497 extern "C" void exit (int);
14500 void fnord() { int i=42;}
14503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14504 int status = $lt_dlunknown;
14508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14509 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14510 /* dlclose (self); */
14516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14517 (eval $ac_link) 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14521 (./conftest; exit; ) 2>/dev/null
14523 case x$lt_status in
14524 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14525 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14526 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14529 # compilation failed
14530 lt_cv_dlopen_self_static=no
14537 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14538 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14541 CPPFLAGS="$save_CPPFLAGS"
14542 LDFLAGS="$save_LDFLAGS"
14547 case $lt_cv_dlopen_self in
14548 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14549 *) enable_dlopen_self=unknown ;;
14552 case $lt_cv_dlopen_self_static in
14553 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14554 *) enable_dlopen_self_static=unknown ;;
14559 # Report which librarie types wil actually be built
14560 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14561 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14562 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14563 echo "${ECHO_T}$can_build_shared" >&6
14565 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14566 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14567 test "$can_build_shared" = "no" && enable_shared=no
14569 # On AIX, shared libraries and static libraries use the same namespace, and
14570 # are all built from PIC.
14573 test "$enable_shared" = yes && enable_static=no
14574 if test -n "$RANLIB"; then
14575 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14576 postinstall_cmds='$RANLIB $lib'
14581 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14582 test "$enable_shared" = yes && enable_static=no
14586 echo "$as_me:$LINENO: result: $enable_shared" >&5
14587 echo "${ECHO_T}$enable_shared" >&6
14589 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14590 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14591 # Make sure either enable_shared or enable_static is yes.
14592 test "$enable_shared" = yes || enable_static=yes
14593 echo "$as_me:$LINENO: result: $enable_static" >&5
14594 echo "${ECHO_T}$enable_static" >&6
14596 # The else clause should only fire when bootstrapping the
14597 # libtool distribution, otherwise you forgot to ship ltmain.sh
14598 # with your package, and you will get complaints that there are
14599 # no rules to generate ltmain.sh.
14600 if test -f "$ltmain"; then
14601 # See if we are running on zsh, and set the options which allow our commands through
14602 # without removal of \ escapes.
14603 if test -n "${ZSH_VERSION+set}" ; then
14604 setopt NO_GLOB_SUBST
14606 # Now quote all the things that may contain metacharacters while being
14607 # careful not to overquote the AC_SUBSTed values. We take copies of the
14608 # variables and quote the copies for generation of the libtool script.
14609 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14611 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14612 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14613 deplibs_check_method reload_flag reload_cmds need_locks \
14614 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14615 lt_cv_sys_global_symbol_to_c_name_address \
14616 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14617 old_postinstall_cmds old_postuninstall_cmds \
14621 lt_prog_compiler_wl \
14622 lt_prog_compiler_pic \
14623 lt_prog_compiler_static \
14624 lt_prog_compiler_no_builtin_flag \
14625 export_dynamic_flag_spec \
14626 thread_safe_flag_spec \
14627 whole_archive_flag_spec \
14628 enable_shared_with_static_runtimes \
14630 old_archive_from_new_cmds \
14635 compiler_lib_search_path \
14637 archive_expsym_cmds \
14639 postuninstall_cmds \
14640 old_archive_from_expsyms_cmds \
14641 allow_undefined_flag \
14642 no_undefined_flag \
14643 export_symbols_cmds \
14644 hardcode_libdir_flag_spec \
14645 hardcode_libdir_flag_spec_ld \
14646 hardcode_libdir_separator \
14647 hardcode_automatic \
14649 module_expsym_cmds \
14650 lt_cv_prog_compiler_c_o \
14652 include_expsyms; do
14655 old_archive_cmds | \
14656 old_archive_from_new_cmds | \
14658 archive_expsym_cmds | \
14660 module_expsym_cmds | \
14661 old_archive_from_expsyms_cmds | \
14662 export_symbols_cmds | \
14663 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14664 postinstall_cmds | postuninstall_cmds | \
14665 old_postinstall_cmds | old_postuninstall_cmds | \
14666 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14667 # Double-quote double-evaled strings.
14668 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14671 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14677 *'\$0 --fallback-echo"')
14678 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14682 cfgfile="${ofile}T"
14683 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14685 { echo "$as_me:$LINENO: creating $ofile" >&5
14686 echo "$as_me: creating $ofile" >&6;}
14688 cat <<__EOF__ >> "$cfgfile"
14691 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14692 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14693 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14695 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14696 # Free Software Foundation, Inc.
14698 # This file is part of GNU Libtool:
14699 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14701 # This program is free software; you can redistribute it and/or modify
14702 # it under the terms of the GNU General Public License as published by
14703 # the Free Software Foundation; either version 2 of the License, or
14704 # (at your option) any later version.
14706 # This program is distributed in the hope that it will be useful, but
14707 # WITHOUT ANY WARRANTY; without even the implied warranty of
14708 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14709 # General Public License for more details.
14711 # You should have received a copy of the GNU General Public License
14712 # along with this program; if not, write to the Free Software
14713 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14715 # As a special exception to the GNU General Public License, if you
14716 # distribute this file as part of a program that contains a
14717 # configuration script generated by Autoconf, you may include it under
14718 # the same distribution terms that you use for the rest of that program.
14720 # A sed program that does not truncate output.
14723 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14724 Xsed="$SED -e s/^X//"
14726 # The HP-UX ksh and POSIX shell print the target directory to stdout
14727 # if CDPATH is set.
14728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14730 # The names of the tagged configurations supported by this script.
14733 # ### BEGIN LIBTOOL CONFIG
14735 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14737 # Shell to use when invoking shell scripts.
14740 # Whether or not to build shared libraries.
14741 build_libtool_libs=$enable_shared
14743 # Whether or not to build static libraries.
14744 build_old_libs=$enable_static
14746 # Whether or not to add -lc for building shared libraries.
14747 build_libtool_need_lc=$archive_cmds_need_lc
14749 # Whether or not to disallow shared libs when runtime libs are static
14750 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14752 # Whether or not to optimize for fast installation.
14753 fast_install=$enable_fast_install
14756 host_alias=$host_alias
14759 # An echo program that does not interpret backslashes.
14764 AR_FLAGS=$lt_AR_FLAGS
14769 # A language-specific compiler.
14772 # Is the compiler the GNU C compiler?
14778 # The linker used to build libraries.
14781 # Whether we need hard or soft links.
14784 # A BSD-compatible nm program.
14787 # A symbol stripping program
14790 # Used to examine libraries when file_magic_cmd begins "file"
14791 MAGIC_CMD=$MAGIC_CMD
14793 # Used on cygwin: DLL creation program.
14796 # Used on cygwin: object dumper.
14799 # Used on cygwin: assembler.
14802 # The name of the directory that contains temporary libtool files.
14805 # How to create reloadable object files.
14806 reload_flag=$lt_reload_flag
14807 reload_cmds=$lt_reload_cmds
14809 # How to pass a linker flag through the compiler.
14810 wl=$lt_lt_prog_compiler_wl
14812 # Object file suffix (normally "o").
14813 objext="$ac_objext"
14815 # Old archive suffix (normally "a").
14818 # Shared library suffix (normally ".so").
14819 shrext_cmds='$shrext_cmds'
14821 # Executable file suffix (normally "").
14824 # Additional compiler flags for building library objects.
14825 pic_flag=$lt_lt_prog_compiler_pic
14828 # What is the maximum length of a command?
14829 max_cmd_len=$lt_cv_sys_max_cmd_len
14831 # Does compiler simultaneously support -c and -o options?
14832 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14834 # Must we lock files when doing compilation ?
14835 need_locks=$lt_need_locks
14837 # Do we need the lib prefix for modules?
14838 need_lib_prefix=$need_lib_prefix
14840 # Do we need a version for libraries?
14841 need_version=$need_version
14843 # Whether dlopen is supported.
14844 dlopen_support=$enable_dlopen
14846 # Whether dlopen of programs is supported.
14847 dlopen_self=$enable_dlopen_self
14849 # Whether dlopen of statically linked programs is supported.
14850 dlopen_self_static=$enable_dlopen_self_static
14852 # Compiler flag to prevent dynamic linking.
14853 link_static_flag=$lt_lt_prog_compiler_static
14855 # Compiler flag to turn off builtin functions.
14856 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14858 # Compiler flag to allow reflexive dlopens.
14859 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14861 # Compiler flag to generate shared objects directly from archives.
14862 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14864 # Compiler flag to generate thread-safe objects.
14865 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14867 # Library versioning type.
14868 version_type=$version_type
14870 # Format of library name prefix.
14871 libname_spec=$lt_libname_spec
14873 # List of archive names. First name is the real one, the rest are links.
14874 # The last name is the one that the linker finds with -lNAME.
14875 library_names_spec=$lt_library_names_spec
14877 # The coded name of the library, if different from the real name.
14878 soname_spec=$lt_soname_spec
14880 # Commands used to build and install an old-style archive.
14882 old_archive_cmds=$lt_old_archive_cmds
14883 old_postinstall_cmds=$lt_old_postinstall_cmds
14884 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14886 # Create an old-style archive from a shared archive.
14887 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14889 # Create a temporary old-style archive to link instead of a shared archive.
14890 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14892 # Commands used to build and install a shared archive.
14893 archive_cmds=$lt_archive_cmds
14894 archive_expsym_cmds=$lt_archive_expsym_cmds
14895 postinstall_cmds=$lt_postinstall_cmds
14896 postuninstall_cmds=$lt_postuninstall_cmds
14898 # Commands used to build a loadable module (assumed same as above if empty)
14899 module_cmds=$lt_module_cmds
14900 module_expsym_cmds=$lt_module_expsym_cmds
14902 # Commands to strip libraries.
14903 old_striplib=$lt_old_striplib
14904 striplib=$lt_striplib
14906 # Dependencies to place before the objects being linked to create a
14908 predep_objects=$lt_predep_objects
14910 # Dependencies to place after the objects being linked to create a
14912 postdep_objects=$lt_postdep_objects
14914 # Dependencies to place before the objects being linked to create a
14916 predeps=$lt_predeps
14918 # Dependencies to place after the objects being linked to create a
14920 postdeps=$lt_postdeps
14922 # The library search path used internally by the compiler when linking
14923 # a shared library.
14924 compiler_lib_search_path=$lt_compiler_lib_search_path
14926 # Method to check whether dependent libraries are shared objects.
14927 deplibs_check_method=$lt_deplibs_check_method
14929 # Command to use when deplibs_check_method == file_magic.
14930 file_magic_cmd=$lt_file_magic_cmd
14932 # Flag that allows shared libraries with undefined symbols to be built.
14933 allow_undefined_flag=$lt_allow_undefined_flag
14935 # Flag that forces no undefined symbols.
14936 no_undefined_flag=$lt_no_undefined_flag
14938 # Commands used to finish a libtool library installation in a directory.
14939 finish_cmds=$lt_finish_cmds
14941 # Same as above, but a single script fragment to be evaled but not shown.
14942 finish_eval=$lt_finish_eval
14944 # Take the output of nm and produce a listing of raw symbols and C names.
14945 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14947 # Transform the output of nm in a proper C declaration
14948 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14950 # Transform the output of nm in a C name address pair
14951 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14953 # This is the shared library runtime path variable.
14954 runpath_var=$runpath_var
14956 # This is the shared library path variable.
14957 shlibpath_var=$shlibpath_var
14959 # Is shlibpath searched before the hard-coded library search path?
14960 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14962 # How to hardcode a shared library path into an executable.
14963 hardcode_action=$hardcode_action
14965 # Whether we should hardcode library paths into libraries.
14966 hardcode_into_libs=$hardcode_into_libs
14968 # Flag to hardcode \$libdir into a binary during linking.
14969 # This must work even if \$libdir does not exist.
14970 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14972 # If ld is used when linking, flag to hardcode \$libdir into
14973 # a binary during linking. This must work even if \$libdir does
14975 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14977 # Whether we need a single -rpath flag with a separated argument.
14978 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14980 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14981 # resulting binary.
14982 hardcode_direct=$hardcode_direct
14984 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14985 # resulting binary.
14986 hardcode_minus_L=$hardcode_minus_L
14988 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14989 # the resulting binary.
14990 hardcode_shlibpath_var=$hardcode_shlibpath_var
14992 # Set to yes if building a shared library automatically hardcodes DIR into the library
14993 # and all subsequent libraries and executables linked against it.
14994 hardcode_automatic=$hardcode_automatic
14996 # Variables whose values should be saved in libtool wrapper scripts and
14997 # restored at relink time.
14998 variables_saved_for_relink="$variables_saved_for_relink"
15000 # Whether libtool must link a program against all its dependency libraries.
15001 link_all_deplibs=$link_all_deplibs
15003 # Compile-time system search path for libraries
15004 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15006 # Run-time system search path for libraries
15007 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15009 # Fix the shell variable \$srcfile for the compiler.
15010 fix_srcfile_path="$fix_srcfile_path"
15012 # Set to yes if exported symbols are required.
15013 always_export_symbols=$always_export_symbols
15015 # The commands to list exported symbols.
15016 export_symbols_cmds=$lt_export_symbols_cmds
15018 # The commands to extract the exported symbol list from a shared archive.
15019 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15021 # Symbols that should not be listed in the preloaded symbols.
15022 exclude_expsyms=$lt_exclude_expsyms
15024 # Symbols that must always be exported.
15025 include_expsyms=$lt_include_expsyms
15027 # ### END LIBTOOL CONFIG
15034 cat <<\EOF >> "$cfgfile"
15036 # AIX sometimes has problems with the GCC collect2 program. For some
15037 # reason, if we set the COLLECT_NAMES environment variable, the problems
15038 # vanish in a puff of smoke.
15039 if test "X${COLLECT_NAMES+set}" != Xset; then
15041 export COLLECT_NAMES
15047 # We use sed instead of cat because bash on DJGPP gets confused if
15048 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15049 # text mode, it properly converts lines to CR/LF. This bash problem
15050 # is reportedly fixed, but why not run on old versions too?
15051 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15053 mv -f "$cfgfile" "$ofile" || \
15054 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15058 # If there is no Makefile yet, we rely on a make rule to execute
15059 # `config.status --recheck' to rerun these tests and create the
15060 # libtool script then.
15061 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15062 if test -f "$ltmain_in"; then
15063 test -f Makefile && make "$ltmain"
15069 ac_cpp='$CPP $CPPFLAGS'
15070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15077 # Check whether --with-tags or --without-tags was given.
15078 if test "${with_tags+set}" = set; then
15079 withval="$with_tags"
15080 tagnames="$withval"
15083 if test -f "$ltmain" && test -n "$tagnames"; then
15084 if test ! -f "${ofile}"; then
15085 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15086 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15089 if test -z "$LTCC"; then
15090 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15091 if test -z "$LTCC"; then
15092 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15093 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15096 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15100 # Extract list of available tagged configurations in $ofile.
15101 # Note that this assumes the entire list is on one line.
15102 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15105 for tagname in $tagnames; do
15107 # Check whether tagname contains only valid characters
15108 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15110 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15111 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15112 { (exit 1); exit 1; }; }
15116 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15118 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15119 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15120 { (exit 1); exit 1; }; }
15123 # Update the list of available tags.
15124 if test -n "$tagname"; then
15125 echo appending configuration tag "$tagname" to $ofile
15129 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15130 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15131 (test "X$CXX" != "Xg++"))) ; then
15133 ac_cpp='$CXXCPP $CPPFLAGS'
15134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15141 archive_cmds_need_lc_CXX=no
15142 allow_undefined_flag_CXX=
15143 always_export_symbols_CXX=no
15144 archive_expsym_cmds_CXX=
15145 export_dynamic_flag_spec_CXX=
15146 hardcode_direct_CXX=no
15147 hardcode_libdir_flag_spec_CXX=
15148 hardcode_libdir_flag_spec_ld_CXX=
15149 hardcode_libdir_separator_CXX=
15150 hardcode_minus_L_CXX=no
15151 hardcode_automatic_CXX=no
15153 module_expsym_cmds_CXX=
15154 link_all_deplibs_CXX=unknown
15155 old_archive_cmds_CXX=$old_archive_cmds
15156 no_undefined_flag_CXX=
15157 whole_archive_flag_spec_CXX=
15158 enable_shared_with_static_runtimes_CXX=no
15160 # Dependencies to place before and after the object being linked:
15161 predep_objects_CXX=
15162 postdep_objects_CXX=
15165 compiler_lib_search_path_CXX=
15167 # Source file extension for C++ test sources.
15170 # Object file extension for compiled C++ test sources.
15174 # Code to be used in simple compile tests
15175 lt_simple_compile_test_code="int some_variable = 0;\n"
15177 # Code to be used in simple link tests
15178 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15180 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15182 # If no C compiler was specified, use CC.
15185 # Allow CC to be a program name with arguments.
15189 # Allow CC to be a program name with arguments.
15194 lt_save_with_gnu_ld=$with_gnu_ld
15195 lt_save_path_LD=$lt_cv_path_LD
15196 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15197 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15199 unset lt_cv_prog_gnu_ld
15201 if test -n "${lt_cv_path_LDCXX+set}"; then
15202 lt_cv_path_LD=$lt_cv_path_LDCXX
15204 unset lt_cv_path_LD
15206 test -z "${LDCXX+set}" || LD=$LDCXX
15210 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15212 # We don't want -fno-exception wen compiling C++ code, so set the
15213 # no_builtin_flag separately
15214 if test "$GXX" = yes; then
15215 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15217 lt_prog_compiler_no_builtin_flag_CXX=
15220 if test "$GXX" = yes; then
15221 # Set up default GNU C++ configuration
15224 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15225 if test "${with_gnu_ld+set}" = set; then
15226 withval="$with_gnu_ld"
15227 test "$withval" = no || with_gnu_ld=yes
15232 if test "$GCC" = yes; then
15233 # Check if gcc -print-prog-name=ld gives a path.
15234 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15235 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15238 # gcc leaves a trailing carriage return which upsets mingw
15239 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15241 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15244 # Accept absolute paths.
15246 re_direlt='/[^/][^/]*/\.\./'
15247 # Canonicalize the pathname of ld
15248 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15249 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15250 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15252 test -z "$LD" && LD="$ac_prog"
15255 # If it fails, then pretend we aren't using GCC.
15259 # If it is relative, then search for the first ld in PATH.
15260 with_gnu_ld=unknown
15263 elif test "$with_gnu_ld" = yes; then
15264 echo "$as_me:$LINENO: checking for GNU ld" >&5
15265 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15267 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15268 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15270 if test "${lt_cv_path_LD+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 if test -z "$LD"; then
15274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15275 for ac_dir in $PATH; do
15277 test -z "$ac_dir" && ac_dir=.
15278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15279 lt_cv_path_LD="$ac_dir/$ac_prog"
15280 # Check to see if the program is GNU ld. I'd rather use --version,
15281 # but apparently some GNU ld's only accept -v.
15282 # Break only if it was the GNU/non-GNU ld that we prefer.
15283 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15284 *GNU* | *'with BFD'*)
15285 test "$with_gnu_ld" != no && break
15288 test "$with_gnu_ld" != yes && break
15295 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15299 LD="$lt_cv_path_LD"
15300 if test -n "$LD"; then
15301 echo "$as_me:$LINENO: result: $LD" >&5
15302 echo "${ECHO_T}$LD" >&6
15304 echo "$as_me:$LINENO: result: no" >&5
15305 echo "${ECHO_T}no" >&6
15307 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15308 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15309 { (exit 1); exit 1; }; }
15310 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15311 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15312 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15316 case `$LD -v 2>&1 </dev/null` in
15317 *GNU* | *'with BFD'*)
15318 lt_cv_prog_gnu_ld=yes
15321 lt_cv_prog_gnu_ld=no
15325 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15326 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15327 with_gnu_ld=$lt_cv_prog_gnu_ld
15331 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15332 # archiving commands below assume that GNU ld is being used.
15333 if test "$with_gnu_ld" = yes; then
15334 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15335 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'
15337 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15340 # If archive_cmds runs LD, not CC, wlarc should be empty
15341 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15342 # investigate it a little bit more. (MM)
15345 # ancient GNU ld didn't support --whole-archive et. al.
15346 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15347 grep 'no-whole-archive' > /dev/null; then
15348 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15350 whole_archive_flag_spec_CXX=
15356 # A generic and very simple default shared library creation
15357 # command for GNU C++ for the case where it uses the native
15358 # linker, instead of GNU ld. If possible, this setting should
15359 # overridden to take advantage of the native linker features on
15360 # the platform it is being used on.
15361 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15364 # Commands to make compiler produce verbose output that lists
15365 # what "hidden" libraries, object files and flags are used when
15366 # linking a shared library.
15367 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15375 # PORTME: fill in a description of your system's C++ link characteristics
15376 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15377 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15381 # FIXME: insert proper C++ library support
15385 if test "$host_cpu" = ia64; then
15386 # On IA64, the linker does run time linking by default, so we don't
15387 # have to do anything special.
15388 aix_use_runtimelinking=no
15389 exp_sym_flag='-Bexport'
15392 aix_use_runtimelinking=no
15394 # Test if we are trying to use run time linking or normal
15395 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15396 # need to do runtime linking.
15397 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15398 for ld_flag in $LDFLAGS; do
15401 aix_use_runtimelinking=yes
15408 exp_sym_flag='-bexport'
15409 no_entry_flag='-bnoentry'
15412 # When large executables or shared objects are built, AIX ld can
15413 # have problems creating the table of contents. If linking a library
15414 # or program results in "error TOC overflow" add -mminimal-toc to
15415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15418 archive_cmds_CXX=''
15419 hardcode_direct_CXX=yes
15420 hardcode_libdir_separator_CXX=':'
15421 link_all_deplibs_CXX=yes
15423 if test "$GXX" = yes; then
15424 case $host_os in aix4.012|aix4.012.*)
15425 # We only want to do this on AIX 4.2 and lower, the check
15426 # below for broken collect2 doesn't work under 4.3+
15427 collect2name=`${CC} -print-prog-name=collect2`
15428 if test -f "$collect2name" && \
15429 strings "$collect2name" | grep resolve_lib_name >/dev/null
15431 # We have reworked collect2
15432 hardcode_direct_CXX=yes
15434 # We have old collect2
15435 hardcode_direct_CXX=unsupported
15436 # It fails to find uninstalled libraries when the uninstalled
15437 # path is not listed in the libpath. Setting hardcode_minus_L
15438 # to unsupported forces relinking
15439 hardcode_minus_L_CXX=yes
15440 hardcode_libdir_flag_spec_CXX='-L$libdir'
15441 hardcode_libdir_separator_CXX=
15444 shared_flag='-shared'
15447 if test "$host_cpu" = ia64; then
15448 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15449 # chokes on -Wl,-G. The following line is correct:
15452 if test "$aix_use_runtimelinking" = yes; then
15453 shared_flag='${wl}-G'
15455 shared_flag='${wl}-bM:SRE'
15460 # It seems that -bexpall does not export symbols beginning with
15461 # underscore (_), so it is better to generate a list of symbols to export.
15462 always_export_symbols_CXX=yes
15463 if test "$aix_use_runtimelinking" = yes; then
15464 # Warning - without using the other runtime loading flags (-brtl),
15465 # -berok will link without error, but may produce a broken library.
15466 allow_undefined_flag_CXX='-berok'
15467 # Determine the default libpath from the value encoded in an empty executable.
15468 cat >conftest.$ac_ext <<_ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15483 rm -f conftest.$ac_objext conftest$ac_exeext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15485 (eval $ac_link) 2>conftest.er1
15487 grep -v '^ *+' conftest.er1 >conftest.err
15489 cat conftest.err >&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
15492 { ac_try='test -z "$ac_cxx_werror_flag"
15493 || test ! -s conftest.err'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; } &&
15499 { ac_try='test -s conftest$ac_exeext'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15506 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15508 # Check for a 64-bit object if we didn't find anything.
15509 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; }
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15516 rm -f conftest.err conftest.$ac_objext \
15517 conftest$ac_exeext conftest.$ac_ext
15518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15520 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15522 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"
15524 if test "$host_cpu" = ia64; then
15525 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15526 allow_undefined_flag_CXX="-z nodefs"
15527 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"
15529 # Determine the default libpath from the value encoded in an empty executable.
15530 cat >conftest.$ac_ext <<_ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15545 rm -f conftest.$ac_objext conftest$ac_exeext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15547 (eval $ac_link) 2>conftest.er1
15549 grep -v '^ *+' conftest.er1 >conftest.err
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -z "$ac_cxx_werror_flag"
15555 || test ! -s conftest.err'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; } &&
15561 { ac_try='test -s conftest$ac_exeext'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; }; then
15568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15570 # Check for a 64-bit object if we didn't find anything.
15571 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; }
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15578 rm -f conftest.err conftest.$ac_objext \
15579 conftest$ac_exeext conftest.$ac_ext
15580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15582 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15583 # Warning - without using the other run time loading flags,
15584 # -berok will link without error, but may produce a broken library.
15585 no_undefined_flag_CXX=' ${wl}-bernotok'
15586 allow_undefined_flag_CXX=' ${wl}-berok'
15587 # -bexpall does not export symbols beginning with underscore (_)
15588 always_export_symbols_CXX=yes
15589 # Exported symbols can be pulled into shared objects from archives
15590 whole_archive_flag_spec_CXX=' '
15591 archive_cmds_need_lc_CXX=yes
15592 # This is similar to how AIX traditionally builds it's shared libraries.
15593 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'
15598 case $cc_basename in
15600 # FIXME: insert proper C++ library support
15607 cygwin* | mingw* | pw32*)
15608 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15609 # as there is no search path for DLLs.
15610 hardcode_libdir_flag_spec_CXX='-L$libdir'
15611 allow_undefined_flag_CXX=unsupported
15612 always_export_symbols_CXX=no
15613 enable_shared_with_static_runtimes_CXX=yes
15615 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15616 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'
15617 # If the export-symbols file already is a .def file (1st line
15618 # is EXPORTS), use it as is; otherwise, prepend...
15619 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15620 cp $export_symbols $output_objdir/$soname.def;
15622 echo EXPORTS > $output_objdir/$soname.def;
15623 cat $export_symbols >> $output_objdir/$soname.def;
15625 $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'
15630 darwin* | rhapsody*)
15632 rhapsody* | darwin1.[012])
15633 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15636 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15637 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15639 case ${MACOSX_DEPLOYMENT_TARGET} in
15641 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15644 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15650 archive_cmds_need_lc_CXX=no
15651 hardcode_direct_CXX=no
15652 hardcode_automatic_CXX=yes
15653 hardcode_shlibpath_var_CXX=unsupported
15654 whole_archive_flag_spec_CXX=''
15655 link_all_deplibs_CXX=yes
15657 if test "$GXX" = yes ; then
15658 lt_int_apple_cc_single_mod=no
15659 output_verbose_link_cmd='echo'
15660 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15661 lt_int_apple_cc_single_mod=yes
15663 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15664 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15666 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'
15668 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15670 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15671 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}'
15673 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}'
15675 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}'
15677 case "$cc_basename" in
15679 output_verbose_link_cmd='echo'
15680 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'
15681 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15682 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15683 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}'
15684 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}'
15694 case $cc_basename in
15696 # FIXME: insert proper C++ library support
15700 # Green Hills C++ Compiler
15701 # FIXME: insert proper C++ library support
15705 # FIXME: insert proper C++ library support
15711 # C++ shared libraries reported to be fairly broken before switch to ELF
15715 archive_cmds_need_lc_CXX=no
15717 freebsd* | kfreebsd*-gnu)
15718 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15725 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15726 hardcode_libdir_separator_CXX=:
15727 export_dynamic_flag_spec_CXX='${wl}-E'
15728 hardcode_direct_CXX=yes
15729 hardcode_minus_L_CXX=yes # Not in the search PATH,
15730 # but as the default
15731 # location of the library.
15733 case $cc_basename in
15735 # FIXME: insert proper C++ library support
15739 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'
15740 # Commands to make compiler produce verbose output that lists
15741 # what "hidden" libraries, object files and flags are used when
15742 # linking a shared library.
15744 # There doesn't appear to be a way to prevent this compiler from
15745 # explicitly linking system object files so we need to strip them
15746 # from the output so that they don't get included in the library
15748 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'
15751 if test "$GXX" = yes; then
15752 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'
15754 # FIXME: insert proper C++ library support
15761 if test $with_gnu_ld = no; then
15762 case "$host_cpu" in
15764 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15765 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15766 hardcode_libdir_separator_CXX=:
15769 hardcode_libdir_flag_spec_CXX='-L$libdir'
15772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15773 hardcode_libdir_separator_CXX=:
15774 export_dynamic_flag_spec_CXX='${wl}-E'
15778 case "$host_cpu" in
15780 hardcode_direct_CXX=no
15781 hardcode_shlibpath_var_CXX=no
15784 hardcode_direct_CXX=no
15785 hardcode_shlibpath_var_CXX=no
15786 hardcode_minus_L_CXX=yes # Not in the search PATH,
15787 # but as the default
15788 # location of the library.
15791 hardcode_direct_CXX=yes
15792 hardcode_minus_L_CXX=yes # Not in the search PATH,
15793 # but as the default
15794 # location of the library.
15798 case $cc_basename in
15800 # FIXME: insert proper C++ library support
15804 case "$host_cpu" in
15806 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15809 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15812 # Commands to make compiler produce verbose output that lists
15813 # what "hidden" libraries, object files and flags are used when
15814 # linking a shared library.
15816 # There doesn't appear to be a way to prevent this compiler from
15817 # explicitly linking system object files so we need to strip them
15818 # from the output so that they don't get included in the library
15820 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'
15823 if test "$GXX" = yes; then
15824 if test $with_gnu_ld = no; then
15825 case "$host_cpu" in
15827 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15830 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'
15835 # FIXME: insert proper C++ library support
15842 case $cc_basename in
15845 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'
15847 # Archives containing C++ object files must be created using
15848 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15849 # necessary to make sure instantiated templates are included
15851 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15854 if test "$GXX" = yes; then
15855 if test "$with_gnu_ld" = no; then
15856 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'
15858 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'
15861 link_all_deplibs_CXX=yes
15864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15865 hardcode_libdir_separator_CXX=:
15868 case $cc_basename in
15870 # Kuck and Associates, Inc. (KAI) C++ Compiler
15872 # KCC will only create a shared library if the output file
15873 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15874 # to its proper name (with version) after linking.
15875 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'
15876 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'
15877 # Commands to make compiler produce verbose output that lists
15878 # what "hidden" libraries, object files and flags are used when
15879 # linking a shared library.
15881 # There doesn't appear to be a way to prevent this compiler from
15882 # explicitly linking system object files so we need to strip them
15883 # from the output so that they don't get included in the library
15885 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'
15887 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15890 # Archives containing C++ object files must be created using
15891 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15892 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15897 # version 8.0 and above of icpc choke on multiply defined symbols
15898 # if we add $predep_objects and $postdep_objects, however 7.1 and
15899 # earlier do not add the objects themselves.
15900 case `$CC -V 2>&1` in
15902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15903 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'
15905 *) # Version 8.0 or newer
15906 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15907 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15910 archive_cmds_need_lc_CXX=no
15911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15912 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15913 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15917 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15918 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'
15920 runpath_var=LD_RUN_PATH
15921 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15922 hardcode_libdir_separator_CXX=:
15924 # Commands to make compiler produce verbose output that lists
15925 # what "hidden" libraries, object files and flags are used when
15926 # linking a shared library.
15928 # There doesn't appear to be a way to prevent this compiler from
15929 # explicitly linking system object files so we need to strip them
15930 # from the output so that they don't get included in the library
15932 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'
15937 # FIXME: insert proper C++ library support
15941 # FIXME: insert proper C++ library support
15945 case $cc_basename in
15947 # FIXME: insert proper C++ library support
15951 # FIXME: insert proper C++ library support
15957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15958 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15960 hardcode_libdir_flag_spec_CXX='-R$libdir'
15961 hardcode_direct_CXX=yes
15962 hardcode_shlibpath_var_CXX=no
15964 # Workaround some broken pre-1.5 toolchains
15965 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15968 # C++ shared libraries are fairly broken
15972 hardcode_direct_CXX=yes
15973 hardcode_shlibpath_var_CXX=no
15974 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15977 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15978 export_dynamic_flag_spec_CXX='${wl}-E'
15979 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15981 output_verbose_link_cmd='echo'
15984 case $cc_basename in
15986 # Kuck and Associates, Inc. (KAI) C++ Compiler
15988 # KCC will only create a shared library if the output file
15989 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15990 # to its proper name (with version) after linking.
15991 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'
15993 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15994 hardcode_libdir_separator_CXX=:
15996 # Archives containing C++ object files must be created using
15997 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15998 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16002 # Rational C++ 2.4.1
16003 # FIXME: insert proper C++ library support
16007 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16008 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'
16010 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16011 hardcode_libdir_separator_CXX=:
16013 # Commands to make compiler produce verbose output that lists
16014 # what "hidden" libraries, object files and flags are used when
16015 # linking a shared library.
16017 # There doesn't appear to be a way to prevent this compiler from
16018 # explicitly linking system object files so we need to strip them
16019 # from the output so that they don't get included in the library
16021 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'
16024 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16025 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16026 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'
16028 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16029 hardcode_libdir_separator_CXX=:
16031 # Commands to make compiler produce verbose output that lists
16032 # what "hidden" libraries, object files and flags are used when
16033 # linking a shared library.
16034 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16037 # FIXME: insert proper C++ library support
16044 case $cc_basename in
16046 # Kuck and Associates, Inc. (KAI) C++ Compiler
16048 # KCC will only create a shared library if the output file
16049 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16050 # to its proper name (with version) after linking.
16051 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'
16053 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16054 hardcode_libdir_separator_CXX=:
16056 # Archives containing C++ object files must be created using
16057 # the KAI C++ compiler.
16058 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16061 # Rational C++ 2.4.1
16062 # FIXME: insert proper C++ library support
16066 allow_undefined_flag_CXX=' -expect_unresolved \*'
16067 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'
16068 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16069 echo "-hidden">> $lib.exp~
16070 $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~
16073 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16074 hardcode_libdir_separator_CXX=:
16076 # Commands to make compiler produce verbose output that lists
16077 # what "hidden" libraries, object files and flags are used when
16078 # linking a shared library.
16080 # There doesn't appear to be a way to prevent this compiler from
16081 # explicitly linking system object files so we need to strip them
16082 # from the output so that they don't get included in the library
16084 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'
16087 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16088 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16089 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'
16091 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16092 hardcode_libdir_separator_CXX=:
16094 # Commands to make compiler produce verbose output that lists
16095 # what "hidden" libraries, object files and flags are used when
16096 # linking a shared library.
16097 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16100 # FIXME: insert proper C++ library support
16107 # FIXME: insert proper C++ library support
16111 archive_cmds_need_lc_CXX=no
16112 case $cc_basename in
16114 # FIXME: insert proper C++ library support
16118 # FIXME: insert proper C++ library support
16124 case $cc_basename in
16127 # FIXME: insert proper C++ library support
16132 # FIXME: insert proper C++ library support
16136 # FIXME: insert proper C++ library support
16142 case $cc_basename in
16144 # Sun C++ 4.2, 5.x and Centerline C++
16145 no_undefined_flag_CXX=' -zdefs'
16146 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16147 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16148 $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'
16150 hardcode_libdir_flag_spec_CXX='-R$libdir'
16151 hardcode_shlibpath_var_CXX=no
16153 solaris2.0-5 | solaris2.0-5.*) ;;
16155 # The C++ compiler is used as linker so we must use $wl
16156 # flag to pass the commands to the underlying system
16158 # Supported since Solaris 2.6 (maybe 2.5.1?)
16159 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16162 link_all_deplibs_CXX=yes
16164 # Commands to make compiler produce verbose output that lists
16165 # what "hidden" libraries, object files and flags are used when
16166 # linking a shared library.
16168 # There doesn't appear to be a way to prevent this compiler from
16169 # explicitly linking system object files so we need to strip them
16170 # from the output so that they don't get included in the library
16172 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'
16174 # Archives containing C++ object files must be created using
16175 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16176 # necessary to make sure instantiated templates are included
16178 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16181 # Green Hills C++ Compiler
16182 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16184 # The C++ compiler must be used to create the archive.
16185 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16188 # GNU C++ compiler with Solaris linker
16189 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16190 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16191 if $CC --version | grep -v '^2\.7' > /dev/null; then
16192 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16193 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16194 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16196 # Commands to make compiler produce verbose output that lists
16197 # what "hidden" libraries, object files and flags are used when
16198 # linking a shared library.
16199 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16201 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16203 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16204 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16205 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16207 # Commands to make compiler produce verbose output that lists
16208 # what "hidden" libraries, object files and flags are used when
16209 # linking a shared library.
16210 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16213 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16218 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16219 archive_cmds_need_lc_CXX=no
16222 case $cc_basename in
16224 # NonStop-UX NCC 3.20
16225 # FIXME: insert proper C++ library support
16229 # FIXME: insert proper C++ library support
16235 # FIXME: insert proper C++ library support
16239 # FIXME: insert proper C++ library support
16243 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16244 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16245 test "$ld_shlibs_CXX" = no && can_build_shared=no
16251 cat > conftest.$ac_ext <<EOF
16255 Foo (void) { a = 0; }
16261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16262 (eval $ac_compile) 2>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; then
16266 # Parse the compiler output and extract the necessary
16267 # objects, libraries and library flags.
16269 # Sentinel used to keep track of whether or not we are before
16270 # the conftest object file.
16271 pre_test_object_deps_done=no
16273 # The `*' in the case matches for architectures that use `case' in
16274 # $output_verbose_cmd can trigger glob expansion during the loop
16275 # eval without this substitution.
16276 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16278 for p in `eval $output_verbose_link_cmd`; do
16282 # Some compilers place space between "-{L,R}" and the path.
16283 # Remove the space.
16284 if test $p = "-L" \
16285 || test $p = "-R"; then
16292 if test "$pre_test_object_deps_done" = no; then
16295 # Internal compiler library paths should come after those
16296 # provided the user. The postdeps already come after the
16297 # user supplied libs so there is no need to process them.
16298 if test -z "$compiler_lib_search_path_CXX"; then
16299 compiler_lib_search_path_CXX="${prev}${p}"
16301 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16304 # The "-l" case would never come before the object being
16305 # linked, so don't bother handling this case.
16308 if test -z "$postdeps_CXX"; then
16309 postdeps_CXX="${prev}${p}"
16311 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16317 # This assumes that the test object file only shows up
16318 # once in the compiler output.
16319 if test "$p" = "conftest.$objext"; then
16320 pre_test_object_deps_done=yes
16324 if test "$pre_test_object_deps_done" = no; then
16325 if test -z "$predep_objects_CXX"; then
16326 predep_objects_CXX="$p"
16328 predep_objects_CXX="$predep_objects_CXX $p"
16331 if test -z "$postdep_objects_CXX"; then
16332 postdep_objects_CXX="$p"
16334 postdep_objects_CXX="$postdep_objects_CXX $p"
16339 *) ;; # Ignore the rest.
16347 echo "libtool.m4: error: problem compiling CXX test program"
16350 $rm -f confest.$objext
16352 case " $postdeps_CXX " in
16353 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16356 lt_prog_compiler_wl_CXX=
16357 lt_prog_compiler_pic_CXX=
16358 lt_prog_compiler_static_CXX=
16360 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16361 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16363 # C++ specific cases for pic, static, wl, etc.
16364 if test "$GXX" = yes; then
16365 lt_prog_compiler_wl_CXX='-Wl,'
16366 lt_prog_compiler_static_CXX='-static'
16370 # All AIX code is PIC.
16371 if test "$host_cpu" = ia64; then
16372 # AIX 5 now supports IA64 processor
16373 lt_prog_compiler_static_CXX='-Bstatic'
16377 # FIXME: we need at least 68020 code to build shared libraries, but
16378 # adding the `-m68020' flag to GCC prevents building anything better,
16380 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16382 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16383 # PIC is the default for these OSes.
16385 mingw* | os2* | pw32*)
16386 # This hack is so that the source file can tell whether it is being
16387 # built for inclusion in a dll (and should export symbols for example).
16388 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16390 darwin* | rhapsody*)
16391 # PIC is the default on this platform
16392 # Common symbols not allowed in MH_DYLIB files
16393 lt_prog_compiler_pic_CXX='-fno-common'
16396 # DJGPP does not support shared libraries at all
16397 lt_prog_compiler_pic_CXX=
16400 if test -d /usr/nec; then
16401 lt_prog_compiler_pic_CXX=-Kconform_pic
16405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16406 # not for PA HP-UX.
16407 case "$host_cpu" in
16411 lt_prog_compiler_pic_CXX='-fPIC'
16416 lt_prog_compiler_pic_CXX='-fPIC'
16422 # All AIX code is PIC.
16423 if test "$host_cpu" = ia64; then
16424 # AIX 5 now supports IA64 processor
16425 lt_prog_compiler_static_CXX='-Bstatic'
16427 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16431 case $cc_basename in
16433 # Green Hills C++ Compiler
16434 # _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"
16439 # PIC is the default on this platform
16440 # Common symbols not allowed in MH_DYLIB files
16441 case "$cc_basename" in
16443 lt_prog_compiler_pic_CXX='-qnocommon'
16444 lt_prog_compiler_wl_CXX='-Wl,'
16449 case $cc_basename in
16451 lt_prog_compiler_pic_CXX='-KPIC'
16454 # Green Hills C++ Compiler
16455 lt_prog_compiler_pic_CXX='-pic'
16461 freebsd* | kfreebsd*-gnu)
16462 # FreeBSD uses GNU C++
16464 hpux9* | hpux10* | hpux11*)
16465 case $cc_basename in
16467 lt_prog_compiler_wl_CXX='-Wl,'
16468 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16469 if test "$host_cpu" != ia64; then
16470 lt_prog_compiler_pic_CXX='+Z'
16474 lt_prog_compiler_wl_CXX='-Wl,'
16475 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16476 case "$host_cpu" in
16481 lt_prog_compiler_pic_CXX='+Z'
16489 irix5* | irix6* | nonstopux*)
16490 case $cc_basename in
16492 lt_prog_compiler_wl_CXX='-Wl,'
16493 lt_prog_compiler_static_CXX='-non_shared'
16494 # CC pic flag -KPIC is the default.
16501 case $cc_basename in
16504 lt_prog_compiler_wl_CXX='--backend -Wl,'
16505 lt_prog_compiler_pic_CXX='-fPIC'
16509 lt_prog_compiler_wl_CXX='-Wl,'
16510 lt_prog_compiler_pic_CXX='-KPIC'
16511 lt_prog_compiler_static_CXX='-static'
16515 # Make sure the PIC flag is empty. It appears that all Alpha
16516 # Linux and Compaq Tru64 Unix objects are PIC.
16517 lt_prog_compiler_pic_CXX=
16518 lt_prog_compiler_static_CXX='-non_shared'
16529 case $cc_basename in
16531 lt_prog_compiler_pic_CXX='-W c,exportall'
16539 osf3* | osf4* | osf5*)
16540 case $cc_basename in
16542 lt_prog_compiler_wl_CXX='--backend -Wl,'
16545 # Rational C++ 2.4.1
16546 lt_prog_compiler_pic_CXX='-pic'
16549 # Digital/Compaq C++
16550 lt_prog_compiler_wl_CXX='-Wl,'
16551 # Make sure the PIC flag is empty. It appears that all Alpha
16552 # Linux and Compaq Tru64 Unix objects are PIC.
16553 lt_prog_compiler_pic_CXX=
16554 lt_prog_compiler_static_CXX='-non_shared'
16563 case $cc_basename in
16565 lt_prog_compiler_pic_CXX='-fPIC'
16572 case $cc_basename in
16574 # Sun C++ 4.2, 5.x and Centerline C++
16575 lt_prog_compiler_pic_CXX='-KPIC'
16576 lt_prog_compiler_static_CXX='-Bstatic'
16577 lt_prog_compiler_wl_CXX='-Qoption ld '
16580 # Green Hills C++ Compiler
16581 lt_prog_compiler_pic_CXX='-PIC'
16588 case $cc_basename in
16591 lt_prog_compiler_pic_CXX='-pic'
16592 lt_prog_compiler_static_CXX='-Bstatic'
16596 lt_prog_compiler_pic_CXX='-pic'
16603 case $cc_basename in
16605 # NonStop-UX NCC 3.20
16606 lt_prog_compiler_pic_CXX='-KPIC'
16617 lt_prog_compiler_can_build_shared_CXX=no
16622 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16623 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16626 # Check to make sure the PIC flag actually works.
16628 if test -n "$lt_prog_compiler_pic_CXX"; then
16630 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16631 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16632 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 lt_prog_compiler_pic_works_CXX=no
16636 ac_outfile=conftest.$ac_objext
16637 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16638 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16639 # Insert the option either (1) after the last *FLAGS variable, or
16640 # (2) before a word containing "conftest.", or (3) at the end.
16641 # Note that $ac_compile itself does not contain backslashes and begins
16642 # with a dollar sign (not a hyphen), so the echo should work correctly.
16643 # The option is referenced via a variable to avoid confusing sed.
16644 lt_compile=`echo "$ac_compile" | $SED \
16645 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16647 -e 's:$: $lt_compiler_flag:'`
16648 (eval echo "\"\$as_me:16648: $lt_compile\"" >&5)
16649 (eval "$lt_compile" 2>conftest.err)
16651 cat conftest.err >&5
16652 echo "$as_me:16652: \$? = $ac_status" >&5
16653 if (exit $ac_status) && test -s "$ac_outfile"; then
16654 # The compiler can only warn and ignore the option if not recognized
16655 # So say no if there are warnings
16656 if test ! -s conftest.err; then
16657 lt_prog_compiler_pic_works_CXX=yes
16663 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16664 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16666 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16667 case $lt_prog_compiler_pic_CXX in
16669 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16672 lt_prog_compiler_pic_CXX=
16673 lt_prog_compiler_can_build_shared_CXX=no
16678 # For platforms which do not support PIC, -DPIC is meaningless:
16680 lt_prog_compiler_pic_CXX=
16683 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16687 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16688 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16689 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 lt_cv_prog_compiler_c_o_CXX=no
16693 $rm -r conftest 2>/dev/null
16697 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16699 lt_compiler_flag="-o out/conftest2.$ac_objext"
16700 # Insert the option either (1) after the last *FLAGS variable, or
16701 # (2) before a word containing "conftest.", or (3) at the end.
16702 # Note that $ac_compile itself does not contain backslashes and begins
16703 # with a dollar sign (not a hyphen), so the echo should work correctly.
16704 lt_compile=`echo "$ac_compile" | $SED \
16705 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16707 -e 's:$: $lt_compiler_flag:'`
16708 (eval echo "\"\$as_me:16708: $lt_compile\"" >&5)
16709 (eval "$lt_compile" 2>out/conftest.err)
16711 cat out/conftest.err >&5
16712 echo "$as_me:16712: \$? = $ac_status" >&5
16713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16715 # The compiler can only warn and ignore the option if not recognized
16716 # So say no if there are warnings
16717 if test ! -s out/conftest.err; then
16718 lt_cv_prog_compiler_c_o_CXX=yes
16723 # SGI C++ compiler will create directory out/ii_files/ for
16724 # template instantiation
16725 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16726 $rm out/* && rmdir out
16732 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16733 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16736 hard_links="nottested"
16737 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16738 # do not overwrite the value of need_locks provided by the user
16739 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16740 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16745 ln conftest.a conftest.b 2>&5 || hard_links=no
16746 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16747 echo "$as_me:$LINENO: result: $hard_links" >&5
16748 echo "${ECHO_T}$hard_links" >&6
16749 if test "$hard_links" = no; then
16750 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16751 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16758 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16759 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16761 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16764 # If we're using GNU nm, then we don't want the "-C" option.
16765 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16766 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16767 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'
16769 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'
16773 export_symbols_cmds_CXX="$ltdll_cmds"
16776 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16779 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16783 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16784 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16785 test "$ld_shlibs_CXX" = no && can_build_shared=no
16787 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16788 if test "$GCC" = yes; then
16789 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16793 # Do we need to explicitly link libc?
16795 case "x$archive_cmds_need_lc_CXX" in
16797 # Assume -lc should be added
16798 archive_cmds_need_lc_CXX=yes
16800 if test "$enable_shared" = yes && test "$GCC" = yes; then
16801 case $archive_cmds_CXX in
16803 # FIXME: we may have to deal with multi-command sequences.
16806 # Test whether the compiler implicitly links with -lc since on some
16807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16808 # to ld, don't add -lc before -lgcc.
16809 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16810 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16815 (eval $ac_compile) 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } 2>conftest.err; then
16821 libobjs=conftest.$ac_objext
16823 wl=$lt_prog_compiler_wl_CXX
16829 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16830 allow_undefined_flag_CXX=
16831 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16832 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }
16837 archive_cmds_need_lc_CXX=no
16839 archive_cmds_need_lc_CXX=yes
16841 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16843 cat conftest.err 1>&5
16846 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16847 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16854 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16855 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16856 library_names_spec=
16857 libname_spec='lib$name'
16861 postuninstall_cmds=
16865 shlibpath_overrides_runpath=unknown
16867 dynamic_linker="$host_os ld.so"
16868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16869 if test "$GCC" = yes; then
16870 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16871 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16872 # if the path contains ";" then we assume it to be the separator
16873 # otherwise default to the standard path separator (i.e. ":") - it is
16874 # assumed that no part of a normal pathname contains ";" but that should
16875 # okay in the real world where ";" in dirpaths is itself problematic.
16876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16883 need_lib_prefix=unknown
16884 hardcode_into_libs=no
16886 # when you set need_version to no, make sure it does not cause -set_version
16887 # flags to be left without arguments
16888 need_version=unknown
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16894 shlibpath_var=LIBPATH
16896 # AIX 3 has no versioning support, so we append a major version to the name.
16897 soname_spec='${libname}${release}${shared_ext}$major'
16904 hardcode_into_libs=yes
16905 if test "$host_cpu" = ia64; then
16906 # AIX 5 supports IA64
16907 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16908 shlibpath_var=LD_LIBRARY_PATH
16910 # With GCC up to 2.95.x, collect2 would create an import file
16911 # for dependence libraries. The import file would start with
16912 # the line `#! .'. This would cause the generated library to
16913 # depend on `.', always an invalid library. This was fixed in
16914 # development snapshots of GCC prior to 3.0.
16916 aix4 | aix4.[01] | aix4.[01].*)
16917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16919 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16922 can_build_shared=no
16926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16927 # soname into executable. Probably we can add versioning support to
16928 # collect2, so additional links can be useful in future.
16929 if test "$aix_use_runtimelinking" = yes; then
16930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16931 # instead of lib<name>.a to let people know that these are not
16932 # typical AIX shared libraries.
16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16935 # We preserve .a as extension for shared libraries through AIX4.2
16936 # and later when we are not doing run time linking.
16937 library_names_spec='${libname}${release}.a $libname.a'
16938 soname_spec='${libname}${release}${shared_ext}$major'
16940 shlibpath_var=LIBPATH
16945 library_names_spec='$libname.ixlibrary $libname.a'
16946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16947 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'
16951 library_names_spec='${libname}${shared_ext}'
16952 dynamic_linker="$host_os ld.so"
16953 shlibpath_var=LIBRARY_PATH
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16960 soname_spec='${libname}${release}${shared_ext}$major'
16961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16965 # the default ld.so.conf also contains /usr/contrib/lib and
16966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16967 # libtool to hard-code these into programs
16970 cygwin* | mingw* | pw32*)
16971 version_type=windows
16976 case $GCC,$host_os in
16977 yes,cygwin* | yes,mingw* | yes,pw32*)
16978 library_names_spec='$libname.dll.a'
16979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16980 postinstall_cmds='base_file=`basename \${file}`~
16981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16982 dldir=$destdir/`dirname \$dlpath`~
16983 test -d \$dldir || mkdir -p \$dldir~
16984 $install_prog $dir/$dlname \$dldir/$dlname'
16985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16986 dlpath=$dir/\$dldll~
16988 shlibpath_overrides_runpath=yes
16992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16994 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16997 # MinGW DLLs use traditional 'lib' prefix
16998 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17000 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17001 # It is most probably a Windows format PATH printed by
17002 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17003 # path with ; separators, and with drive letters. We can handle the
17004 # drive letters (cygwin fileutils understands them), so leave them,
17005 # especially as we might pass files found there to a mingw objdump,
17006 # which wouldn't understand a cygwinified path. Ahh.
17007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17013 # pw32 DLLs use 'pw' prefix rather than 'lib'
17014 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17020 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17023 dynamic_linker='Win32 ld.exe'
17024 # FIXME: first we should search . and the directory the executable is in
17028 darwin* | rhapsody*)
17029 dynamic_linker="$host_os dyld"
17030 version_type=darwin
17033 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17034 soname_spec='${libname}${release}${major}$shared_ext'
17035 shlibpath_overrides_runpath=yes
17036 shlibpath_var=DYLD_LIBRARY_PATH
17037 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17038 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17039 if test "$GCC" = yes; then
17040 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"`
17042 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17044 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17052 soname_spec='${libname}${release}${shared_ext}$major'
17053 shlibpath_var=LD_LIBRARY_PATH
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 shlibpath_var=LD_LIBRARY_PATH
17067 shlibpath_overrides_runpath=no
17068 hardcode_into_libs=yes
17069 dynamic_linker='GNU ld.so'
17073 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17074 version_type=freebsd-$objformat
17075 case $version_type in
17077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17086 shlibpath_var=LD_LIBRARY_PATH
17089 shlibpath_overrides_runpath=yes
17091 freebsd3.01* | freebsdelf3.01*)
17092 shlibpath_overrides_runpath=yes
17093 hardcode_into_libs=yes
17096 shlibpath_overrides_runpath=no
17097 hardcode_into_libs=yes
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 hardcode_into_libs=yes
17112 hpux9* | hpux10* | hpux11*)
17113 # Give a soname corresponding to the major version so that dld.sl refuses to
17114 # link against other versions.
17118 case "$host_cpu" in
17121 hardcode_into_libs=yes
17122 dynamic_linker="$host_os dld.so"
17123 shlibpath_var=LD_LIBRARY_PATH
17124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126 soname_spec='${libname}${release}${shared_ext}$major'
17127 if test "X$HPUX_IA64_MODE" = X32; then
17128 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17130 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17136 hardcode_into_libs=yes
17137 dynamic_linker="$host_os dld.sl"
17138 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141 soname_spec='${libname}${release}${shared_ext}$major'
17142 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17147 dynamic_linker="$host_os dld.sl"
17148 shlibpath_var=SHLIB_PATH
17149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17154 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17155 postinstall_cmds='chmod 555 $lib'
17158 irix5* | irix6* | nonstopux*)
17160 nonstopux*) version_type=nonstopux ;;
17162 if test "$lt_cv_prog_gnu_ld" = yes; then
17170 soname_spec='${libname}${release}${shared_ext}$major'
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17173 irix5* | nonstopux*)
17174 libsuff= shlibsuff=
17177 case $LD in # libtool.m4 will add one of these switches to LD
17178 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17179 libsuff= shlibsuff= libmagic=32-bit;;
17180 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17181 libsuff=32 shlibsuff=N32 libmagic=N32;;
17182 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17183 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17184 *) libsuff= shlibsuff= libmagic=never-match;;
17188 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17189 shlibpath_overrides_runpath=no
17190 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17191 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17192 hardcode_into_libs=yes
17195 # No shared lib support for Linux oldld, aout, or coff.
17196 linux*oldld* | linux*aout* | linux*coff*)
17200 # This must be Linux ELF.
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17208 shlibpath_var=LD_LIBRARY_PATH
17209 shlibpath_overrides_runpath=no
17210 # This implies no fast_install, which is unacceptable.
17211 # Some rework will be needed to allow for fast_install
17212 # before this can be enabled.
17213 hardcode_into_libs=yes
17215 # Append ld.so.conf contents to the search path
17216 if test -f /etc/ld.so.conf; then
17217 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17221 # We used to test for /lib/ld.so.1 and disable shared libraries on
17222 # powerpc, because MkLinux only supported shared libraries with the
17223 # GNU dynamic linker. Since this was broken with cross compilers,
17224 # most powerpc-linux boxes support dynamic linking these days and
17225 # people can always --disable-shared, the test was removed, and we
17226 # assume the GNU/Linux dynamic linker is in use.
17227 dynamic_linker='GNU/Linux ld.so'
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath=no
17238 hardcode_into_libs=yes
17239 dynamic_linker='GNU ld.so'
17246 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17249 dynamic_linker='NetBSD (a.out) ld.so'
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 dynamic_linker='NetBSD ld.elf_so'
17255 shlibpath_var=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath=yes
17257 hardcode_into_libs=yes
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 shlibpath_overrides_runpath=yes
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272 soname_spec='${libname}${release}${shared_ext}$major'
17273 shlibpath_var=LD_LIBRARY_PATH
17274 shlibpath_overrides_runpath=yes
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17286 openbsd2.[89] | openbsd2.[89].*)
17287 shlibpath_overrides_runpath=no
17290 shlibpath_overrides_runpath=yes
17294 shlibpath_overrides_runpath=yes
17299 libname_spec='$name'
17302 library_names_spec='$libname${shared_ext} $libname.a'
17303 dynamic_linker='OS/2 ld.exe'
17304 shlibpath_var=LIBPATH
17307 osf3* | osf4* | osf5*)
17311 soname_spec='${libname}${release}${shared_ext}$major'
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17315 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17320 soname_spec='${libname}${release}${shared_ext}$major'
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322 shlibpath_var=LD_LIBRARY_PATH
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330 soname_spec='${libname}${release}${shared_ext}$major'
17331 shlibpath_var=LD_LIBRARY_PATH
17332 shlibpath_overrides_runpath=yes
17333 hardcode_into_libs=yes
17334 # ldd complains unless libraries are executable
17335 postinstall_cmds='chmod +x $lib'
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17341 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=yes
17344 if test "$with_gnu_ld" = yes; then
17350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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 case $host_vendor in
17357 shlibpath_overrides_runpath=no
17359 export_dynamic_flag_spec='${wl}-Blargedynsym'
17360 runpath_var=LD_RUN_PATH
17368 shlibpath_overrides_runpath=no
17369 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17375 if test -d /usr/nec ;then
17377 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17378 soname_spec='$libname${shared_ext}.$major'
17379 shlibpath_var=LD_LIBRARY_PATH
17385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386 soname_spec='${libname}${release}${shared_ext}$major'
17387 shlibpath_var=LD_LIBRARY_PATH
17394 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17395 echo "${ECHO_T}$dynamic_linker" >&6
17396 test "$dynamic_linker" = no && can_build_shared=no
17398 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17399 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17400 hardcode_action_CXX=
17401 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17402 test -n "$runpath_var_CXX" || \
17403 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17405 # We can hardcode non-existant directories.
17406 if test "$hardcode_direct_CXX" != no &&
17407 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17408 # have to relink, otherwise we might link with an installed library
17409 # when we should be linking with a yet-to-be-installed one
17410 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17411 test "$hardcode_minus_L_CXX" != no; then
17412 # Linking always hardcodes the temporary library directory.
17413 hardcode_action_CXX=relink
17415 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17416 hardcode_action_CXX=immediate
17419 # We cannot hardcode anything, or else we can only hardcode existing
17421 hardcode_action_CXX=unsupported
17423 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17424 echo "${ECHO_T}$hardcode_action_CXX" >&6
17426 if test "$hardcode_action_CXX" = relink; then
17427 # Fast installation is not supported
17428 enable_fast_install=no
17429 elif test "$shlibpath_overrides_runpath" = yes ||
17430 test "$enable_shared" = no; then
17431 # Fast installation is not necessary
17432 enable_fast_install=needless
17437 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17438 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17439 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17440 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17441 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17442 echo "$as_me:$LINENO: result: yes" >&5
17443 echo "${ECHO_T}yes" >&6
17445 # FIXME - insert some real tests, host_os isn't really good enough
17448 if test -n "$STRIP" ; then
17449 striplib="$STRIP -x"
17450 echo "$as_me:$LINENO: result: yes" >&5
17451 echo "${ECHO_T}yes" >&6
17453 echo "$as_me:$LINENO: result: no" >&5
17454 echo "${ECHO_T}no" >&6
17458 echo "$as_me:$LINENO: result: no" >&5
17459 echo "${ECHO_T}no" >&6
17464 if test "x$enable_dlopen" != xyes; then
17465 enable_dlopen=unknown
17466 enable_dlopen_self=unknown
17467 enable_dlopen_self_static=unknown
17474 lt_cv_dlopen="load_add_on"
17476 lt_cv_dlopen_self=yes
17480 lt_cv_dlopen="LoadLibrary"
17485 lt_cv_dlopen="dlopen"
17490 # if libdl is installed we need to link against it
17491 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17492 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17493 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 ac_check_lib_save_LIBS=$LIBS
17498 cat >conftest.$ac_ext <<_ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17505 /* Override any gcc2 internal prototype to avoid an error. */
17509 /* We use char because int might match the return type of a gcc2
17510 builtin and then its argument prototype would still apply. */
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17522 (eval $ac_link) 2>conftest.er1
17524 grep -v '^ *+' conftest.er1 >conftest.err
17526 cat conftest.err >&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
17529 { ac_try='test -z "$ac_cxx_werror_flag"
17530 || test ! -s conftest.err'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; } &&
17536 { ac_try='test -s conftest$ac_exeext'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_lib_dl_dlopen=yes
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17547 ac_cv_lib_dl_dlopen=no
17549 rm -f conftest.err conftest.$ac_objext \
17550 conftest$ac_exeext conftest.$ac_ext
17551 LIBS=$ac_check_lib_save_LIBS
17553 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17554 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17555 if test $ac_cv_lib_dl_dlopen = yes; then
17556 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17559 lt_cv_dlopen="dyld"
17561 lt_cv_dlopen_self=yes
17568 echo "$as_me:$LINENO: checking for shl_load" >&5
17569 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17570 if test "${ac_cv_func_shl_load+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 cat >conftest.$ac_ext <<_ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17581 #define shl_load innocuous_shl_load
17583 /* System header to define __stub macros and hopefully few prototypes,
17584 which can conflict with char shl_load (); below.
17585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17586 <limits.h> exists even on freestanding compilers. */
17589 # include <limits.h>
17591 # include <assert.h>
17596 /* Override any gcc2 internal prototype to avoid an error. */
17601 /* We use char because int might match the return type of a gcc2
17602 builtin and then its argument prototype would still apply. */
17604 /* The GNU C library defines this for functions which it implements
17605 to always fail with ENOSYS. Some functions are actually named
17606 something starting with __ and the normal name is an alias. */
17607 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17610 char (*f) () = shl_load;
17619 return f != shl_load;
17624 rm -f conftest.$ac_objext conftest$ac_exeext
17625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17626 (eval $ac_link) 2>conftest.er1
17628 grep -v '^ *+' conftest.er1 >conftest.err
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -z "$ac_cxx_werror_flag"
17634 || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest$ac_exeext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_func_shl_load=yes
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 ac_cv_func_shl_load=no
17653 rm -f conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
17656 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17657 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17658 if test $ac_cv_func_shl_load = yes; then
17659 lt_cv_dlopen="shl_load"
17661 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17662 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17663 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 ac_check_lib_save_LIBS=$LIBS
17668 cat >conftest.$ac_ext <<_ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17675 /* Override any gcc2 internal prototype to avoid an error. */
17679 /* We use char because int might match the return type of a gcc2
17680 builtin and then its argument prototype would still apply. */
17690 rm -f conftest.$ac_objext conftest$ac_exeext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692 (eval $ac_link) 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_cxx_werror_flag"
17700 || test ! -s conftest.err'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest$ac_exeext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_cv_lib_dld_shl_load=yes
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17717 ac_cv_lib_dld_shl_load=no
17719 rm -f conftest.err conftest.$ac_objext \
17720 conftest$ac_exeext conftest.$ac_ext
17721 LIBS=$ac_check_lib_save_LIBS
17723 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17724 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17725 if test $ac_cv_lib_dld_shl_load = yes; then
17726 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17728 echo "$as_me:$LINENO: checking for dlopen" >&5
17729 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17730 if test "${ac_cv_func_dlopen+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 cat >conftest.$ac_ext <<_ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17741 #define dlopen innocuous_dlopen
17743 /* System header to define __stub macros and hopefully few prototypes,
17744 which can conflict with char dlopen (); below.
17745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17746 <limits.h> exists even on freestanding compilers. */
17749 # include <limits.h>
17751 # include <assert.h>
17756 /* Override any gcc2 internal prototype to avoid an error. */
17761 /* We use char because int might match the return type of a gcc2
17762 builtin and then its argument prototype would still apply. */
17764 /* The GNU C library defines this for functions which it implements
17765 to always fail with ENOSYS. Some functions are actually named
17766 something starting with __ and the normal name is an alias. */
17767 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17770 char (*f) () = dlopen;
17779 return f != dlopen;
17784 rm -f conftest.$ac_objext conftest$ac_exeext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786 (eval $ac_link) 2>conftest.er1
17788 grep -v '^ *+' conftest.er1 >conftest.err
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -z "$ac_cxx_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest$ac_exeext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_cv_func_dlopen=yes
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ac_cv_func_dlopen=no
17813 rm -f conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
17816 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17817 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17818 if test $ac_cv_func_dlopen = yes; then
17819 lt_cv_dlopen="dlopen"
17821 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17822 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17823 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17826 ac_check_lib_save_LIBS=$LIBS
17828 cat >conftest.$ac_ext <<_ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17835 /* Override any gcc2 internal prototype to avoid an error. */
17839 /* We use char because int might match the return type of a gcc2
17840 builtin and then its argument prototype would still apply. */
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852 (eval $ac_link) 2>conftest.er1
17854 grep -v '^ *+' conftest.er1 >conftest.err
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
17859 { ac_try='test -z "$ac_cxx_werror_flag"
17860 || test ! -s conftest.err'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest$ac_exeext'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 ac_cv_lib_dl_dlopen=yes
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 ac_cv_lib_dl_dlopen=no
17879 rm -f conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881 LIBS=$ac_check_lib_save_LIBS
17883 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17884 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17885 if test $ac_cv_lib_dl_dlopen = yes; then
17886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17888 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17889 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17890 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-lsvld $LIBS"
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17902 /* Override any gcc2 internal prototype to avoid an error. */
17906 /* We use char because int might match the return type of a gcc2
17907 builtin and then its argument prototype would still apply. */
17917 rm -f conftest.$ac_objext conftest$ac_exeext
17918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17919 (eval $ac_link) 2>conftest.er1
17921 grep -v '^ *+' conftest.er1 >conftest.err
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_cxx_werror_flag"
17927 || test ! -s conftest.err'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest$ac_exeext'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 ac_cv_lib_svld_dlopen=yes
17941 echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17944 ac_cv_lib_svld_dlopen=no
17946 rm -f conftest.err conftest.$ac_objext \
17947 conftest$ac_exeext conftest.$ac_ext
17948 LIBS=$ac_check_lib_save_LIBS
17950 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17951 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17952 if test $ac_cv_lib_svld_dlopen = yes; then
17953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17955 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17956 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17957 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17958 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 ac_check_lib_save_LIBS=$LIBS
17962 cat >conftest.$ac_ext <<_ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17969 /* Override any gcc2 internal prototype to avoid an error. */
17973 /* We use char because int might match the return type of a gcc2
17974 builtin and then its argument prototype would still apply. */
17984 rm -f conftest.$ac_objext conftest$ac_exeext
17985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17986 (eval $ac_link) 2>conftest.er1
17988 grep -v '^ *+' conftest.er1 >conftest.err
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -z "$ac_cxx_werror_flag"
17994 || test ! -s conftest.err'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; } &&
18000 { ac_try='test -s conftest$ac_exeext'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_cv_lib_dld_dld_link=yes
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18011 ac_cv_lib_dld_dld_link=no
18013 rm -f conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18015 LIBS=$ac_check_lib_save_LIBS
18017 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18018 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18019 if test $ac_cv_lib_dld_dld_link = yes; then
18020 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18041 if test "x$lt_cv_dlopen" != xno; then
18047 case $lt_cv_dlopen in
18049 save_CPPFLAGS="$CPPFLAGS"
18050 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18052 save_LDFLAGS="$LDFLAGS"
18053 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18056 LIBS="$lt_cv_dlopen_libs $LIBS"
18058 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18059 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18060 if test "${lt_cv_dlopen_self+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 if test "$cross_compiling" = yes; then :
18064 lt_cv_dlopen_self=cross
18066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18067 lt_status=$lt_dlunknown
18068 cat > conftest.$ac_ext <<EOF
18069 #line 18069 "configure"
18070 #include "confdefs.h"
18079 # define LT_DLGLOBAL RTLD_GLOBAL
18082 # define LT_DLGLOBAL DL_GLOBAL
18084 # define LT_DLGLOBAL 0
18088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18089 find out it does not work in some platform. */
18090 #ifndef LT_DLLAZY_OR_NOW
18092 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18095 # define LT_DLLAZY_OR_NOW DL_LAZY
18098 # define LT_DLLAZY_OR_NOW RTLD_NOW
18101 # define LT_DLLAZY_OR_NOW DL_NOW
18103 # define LT_DLLAZY_OR_NOW 0
18111 extern "C" void exit (int);
18114 void fnord() { int i=42;}
18117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18118 int status = $lt_dlunknown;
18122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18123 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18124 /* dlclose (self); */
18130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18135 (./conftest; exit; ) 2>/dev/null
18137 case x$lt_status in
18138 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18139 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18140 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18143 # compilation failed
18144 lt_cv_dlopen_self=no
18151 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18152 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18154 if test "x$lt_cv_dlopen_self" = xyes; then
18155 LDFLAGS="$LDFLAGS $link_static_flag"
18156 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18157 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18158 if test "${lt_cv_dlopen_self_static+set}" = set; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18161 if test "$cross_compiling" = yes; then :
18162 lt_cv_dlopen_self_static=cross
18164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18165 lt_status=$lt_dlunknown
18166 cat > conftest.$ac_ext <<EOF
18167 #line 18167 "configure"
18168 #include "confdefs.h"
18177 # define LT_DLGLOBAL RTLD_GLOBAL
18180 # define LT_DLGLOBAL DL_GLOBAL
18182 # define LT_DLGLOBAL 0
18186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18187 find out it does not work in some platform. */
18188 #ifndef LT_DLLAZY_OR_NOW
18190 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18193 # define LT_DLLAZY_OR_NOW DL_LAZY
18196 # define LT_DLLAZY_OR_NOW RTLD_NOW
18199 # define LT_DLLAZY_OR_NOW DL_NOW
18201 # define LT_DLLAZY_OR_NOW 0
18209 extern "C" void exit (int);
18212 void fnord() { int i=42;}
18215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18216 int status = $lt_dlunknown;
18220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18221 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18222 /* dlclose (self); */
18228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18229 (eval $ac_link) 2>&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18233 (./conftest; exit; ) 2>/dev/null
18235 case x$lt_status in
18236 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18237 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18238 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18241 # compilation failed
18242 lt_cv_dlopen_self_static=no
18249 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18250 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18253 CPPFLAGS="$save_CPPFLAGS"
18254 LDFLAGS="$save_LDFLAGS"
18259 case $lt_cv_dlopen_self in
18260 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18261 *) enable_dlopen_self=unknown ;;
18264 case $lt_cv_dlopen_self_static in
18265 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18266 *) enable_dlopen_self_static=unknown ;;
18271 # The else clause should only fire when bootstrapping the
18272 # libtool distribution, otherwise you forgot to ship ltmain.sh
18273 # with your package, and you will get complaints that there are
18274 # no rules to generate ltmain.sh.
18275 if test -f "$ltmain"; then
18276 # See if we are running on zsh, and set the options which allow our commands through
18277 # without removal of \ escapes.
18278 if test -n "${ZSH_VERSION+set}" ; then
18279 setopt NO_GLOB_SUBST
18281 # Now quote all the things that may contain metacharacters while being
18282 # careful not to overquote the AC_SUBSTed values. We take copies of the
18283 # variables and quote the copies for generation of the libtool script.
18284 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18286 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18287 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18288 deplibs_check_method reload_flag reload_cmds need_locks \
18289 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18290 lt_cv_sys_global_symbol_to_c_name_address \
18291 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18292 old_postinstall_cmds old_postuninstall_cmds \
18296 lt_prog_compiler_wl_CXX \
18297 lt_prog_compiler_pic_CXX \
18298 lt_prog_compiler_static_CXX \
18299 lt_prog_compiler_no_builtin_flag_CXX \
18300 export_dynamic_flag_spec_CXX \
18301 thread_safe_flag_spec_CXX \
18302 whole_archive_flag_spec_CXX \
18303 enable_shared_with_static_runtimes_CXX \
18304 old_archive_cmds_CXX \
18305 old_archive_from_new_cmds_CXX \
18306 predep_objects_CXX \
18307 postdep_objects_CXX \
18310 compiler_lib_search_path_CXX \
18312 archive_expsym_cmds_CXX \
18313 postinstall_cmds_CXX \
18314 postuninstall_cmds_CXX \
18315 old_archive_from_expsyms_cmds_CXX \
18316 allow_undefined_flag_CXX \
18317 no_undefined_flag_CXX \
18318 export_symbols_cmds_CXX \
18319 hardcode_libdir_flag_spec_CXX \
18320 hardcode_libdir_flag_spec_ld_CXX \
18321 hardcode_libdir_separator_CXX \
18322 hardcode_automatic_CXX \
18324 module_expsym_cmds_CXX \
18325 lt_cv_prog_compiler_c_o_CXX \
18326 exclude_expsyms_CXX \
18327 include_expsyms_CXX; do
18330 old_archive_cmds_CXX | \
18331 old_archive_from_new_cmds_CXX | \
18332 archive_cmds_CXX | \
18333 archive_expsym_cmds_CXX | \
18334 module_cmds_CXX | \
18335 module_expsym_cmds_CXX | \
18336 old_archive_from_expsyms_cmds_CXX | \
18337 export_symbols_cmds_CXX | \
18338 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18339 postinstall_cmds | postuninstall_cmds | \
18340 old_postinstall_cmds | old_postuninstall_cmds | \
18341 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18342 # Double-quote double-evaled strings.
18343 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18346 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18352 *'\$0 --fallback-echo"')
18353 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18359 cat <<__EOF__ >> "$cfgfile"
18360 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18362 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18364 # Shell to use when invoking shell scripts.
18367 # Whether or not to build shared libraries.
18368 build_libtool_libs=$enable_shared
18370 # Whether or not to build static libraries.
18371 build_old_libs=$enable_static
18373 # Whether or not to add -lc for building shared libraries.
18374 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18376 # Whether or not to disallow shared libs when runtime libs are static
18377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18379 # Whether or not to optimize for fast installation.
18380 fast_install=$enable_fast_install
18383 host_alias=$host_alias
18386 # An echo program that does not interpret backslashes.
18391 AR_FLAGS=$lt_AR_FLAGS
18396 # A language-specific compiler.
18397 CC=$lt_compiler_CXX
18399 # Is the compiler the GNU C compiler?
18405 # The linker used to build libraries.
18408 # Whether we need hard or soft links.
18411 # A BSD-compatible nm program.
18414 # A symbol stripping program
18417 # Used to examine libraries when file_magic_cmd begins "file"
18418 MAGIC_CMD=$MAGIC_CMD
18420 # Used on cygwin: DLL creation program.
18423 # Used on cygwin: object dumper.
18426 # Used on cygwin: assembler.
18429 # The name of the directory that contains temporary libtool files.
18432 # How to create reloadable object files.
18433 reload_flag=$lt_reload_flag
18434 reload_cmds=$lt_reload_cmds
18436 # How to pass a linker flag through the compiler.
18437 wl=$lt_lt_prog_compiler_wl_CXX
18439 # Object file suffix (normally "o").
18440 objext="$ac_objext"
18442 # Old archive suffix (normally "a").
18445 # Shared library suffix (normally ".so").
18446 shrext_cmds='$shrext_cmds'
18448 # Executable file suffix (normally "").
18451 # Additional compiler flags for building library objects.
18452 pic_flag=$lt_lt_prog_compiler_pic_CXX
18455 # What is the maximum length of a command?
18456 max_cmd_len=$lt_cv_sys_max_cmd_len
18458 # Does compiler simultaneously support -c and -o options?
18459 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18461 # Must we lock files when doing compilation ?
18462 need_locks=$lt_need_locks
18464 # Do we need the lib prefix for modules?
18465 need_lib_prefix=$need_lib_prefix
18467 # Do we need a version for libraries?
18468 need_version=$need_version
18470 # Whether dlopen is supported.
18471 dlopen_support=$enable_dlopen
18473 # Whether dlopen of programs is supported.
18474 dlopen_self=$enable_dlopen_self
18476 # Whether dlopen of statically linked programs is supported.
18477 dlopen_self_static=$enable_dlopen_self_static
18479 # Compiler flag to prevent dynamic linking.
18480 link_static_flag=$lt_lt_prog_compiler_static_CXX
18482 # Compiler flag to turn off builtin functions.
18483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18485 # Compiler flag to allow reflexive dlopens.
18486 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18488 # Compiler flag to generate shared objects directly from archives.
18489 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18491 # Compiler flag to generate thread-safe objects.
18492 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18494 # Library versioning type.
18495 version_type=$version_type
18497 # Format of library name prefix.
18498 libname_spec=$lt_libname_spec
18500 # List of archive names. First name is the real one, the rest are links.
18501 # The last name is the one that the linker finds with -lNAME.
18502 library_names_spec=$lt_library_names_spec
18504 # The coded name of the library, if different from the real name.
18505 soname_spec=$lt_soname_spec
18507 # Commands used to build and install an old-style archive.
18509 old_archive_cmds=$lt_old_archive_cmds_CXX
18510 old_postinstall_cmds=$lt_old_postinstall_cmds
18511 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18513 # Create an old-style archive from a shared archive.
18514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18516 # Create a temporary old-style archive to link instead of a shared archive.
18517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18519 # Commands used to build and install a shared archive.
18520 archive_cmds=$lt_archive_cmds_CXX
18521 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18522 postinstall_cmds=$lt_postinstall_cmds
18523 postuninstall_cmds=$lt_postuninstall_cmds
18525 # Commands used to build a loadable module (assumed same as above if empty)
18526 module_cmds=$lt_module_cmds_CXX
18527 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18529 # Commands to strip libraries.
18530 old_striplib=$lt_old_striplib
18531 striplib=$lt_striplib
18533 # Dependencies to place before the objects being linked to create a
18535 predep_objects=$lt_predep_objects_CXX
18537 # Dependencies to place after the objects being linked to create a
18539 postdep_objects=$lt_postdep_objects_CXX
18541 # Dependencies to place before the objects being linked to create a
18543 predeps=$lt_predeps_CXX
18545 # Dependencies to place after the objects being linked to create a
18547 postdeps=$lt_postdeps_CXX
18549 # The library search path used internally by the compiler when linking
18550 # a shared library.
18551 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18553 # Method to check whether dependent libraries are shared objects.
18554 deplibs_check_method=$lt_deplibs_check_method
18556 # Command to use when deplibs_check_method == file_magic.
18557 file_magic_cmd=$lt_file_magic_cmd
18559 # Flag that allows shared libraries with undefined symbols to be built.
18560 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18562 # Flag that forces no undefined symbols.
18563 no_undefined_flag=$lt_no_undefined_flag_CXX
18565 # Commands used to finish a libtool library installation in a directory.
18566 finish_cmds=$lt_finish_cmds
18568 # Same as above, but a single script fragment to be evaled but not shown.
18569 finish_eval=$lt_finish_eval
18571 # Take the output of nm and produce a listing of raw symbols and C names.
18572 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18574 # Transform the output of nm in a proper C declaration
18575 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18577 # Transform the output of nm in a C name address pair
18578 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18580 # This is the shared library runtime path variable.
18581 runpath_var=$runpath_var
18583 # This is the shared library path variable.
18584 shlibpath_var=$shlibpath_var
18586 # Is shlibpath searched before the hard-coded library search path?
18587 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18589 # How to hardcode a shared library path into an executable.
18590 hardcode_action=$hardcode_action_CXX
18592 # Whether we should hardcode library paths into libraries.
18593 hardcode_into_libs=$hardcode_into_libs
18595 # Flag to hardcode \$libdir into a binary during linking.
18596 # This must work even if \$libdir does not exist.
18597 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18599 # If ld is used when linking, flag to hardcode \$libdir into
18600 # a binary during linking. This must work even if \$libdir does
18602 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18604 # Whether we need a single -rpath flag with a separated argument.
18605 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18607 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18608 # resulting binary.
18609 hardcode_direct=$hardcode_direct_CXX
18611 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18612 # resulting binary.
18613 hardcode_minus_L=$hardcode_minus_L_CXX
18615 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18616 # the resulting binary.
18617 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18619 # Set to yes if building a shared library automatically hardcodes DIR into the library
18620 # and all subsequent libraries and executables linked against it.
18621 hardcode_automatic=$hardcode_automatic_CXX
18623 # Variables whose values should be saved in libtool wrapper scripts and
18624 # restored at relink time.
18625 variables_saved_for_relink="$variables_saved_for_relink"
18627 # Whether libtool must link a program against all its dependency libraries.
18628 link_all_deplibs=$link_all_deplibs_CXX
18630 # Compile-time system search path for libraries
18631 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18633 # Run-time system search path for libraries
18634 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18636 # Fix the shell variable \$srcfile for the compiler.
18637 fix_srcfile_path="$fix_srcfile_path_CXX"
18639 # Set to yes if exported symbols are required.
18640 always_export_symbols=$always_export_symbols_CXX
18642 # The commands to list exported symbols.
18643 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18645 # The commands to extract the exported symbol list from a shared archive.
18646 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18648 # Symbols that should not be listed in the preloaded symbols.
18649 exclude_expsyms=$lt_exclude_expsyms_CXX
18651 # Symbols that must always be exported.
18652 include_expsyms=$lt_include_expsyms_CXX
18654 # ### END LIBTOOL TAG CONFIG: $tagname
18660 # If there is no Makefile yet, we rely on a make rule to execute
18661 # `config.status --recheck' to rerun these tests and create the
18662 # libtool script then.
18663 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18664 if test -f "$ltmain_in"; then
18665 test -f Makefile && make "$ltmain"
18671 ac_cpp='$CPP $CPPFLAGS'
18672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18680 with_gnu_ldcxx=$with_gnu_ld
18681 with_gnu_ld=$lt_save_with_gnu_ld
18682 lt_cv_path_LDCXX=$lt_cv_path_LD
18683 lt_cv_path_LD=$lt_save_path_LD
18684 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18685 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18693 if test -n "$F77" && test "X$F77" != "Xno"; then
18696 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18697 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18698 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18701 archive_cmds_need_lc_F77=no
18702 allow_undefined_flag_F77=
18703 always_export_symbols_F77=no
18704 archive_expsym_cmds_F77=
18705 export_dynamic_flag_spec_F77=
18706 hardcode_direct_F77=no
18707 hardcode_libdir_flag_spec_F77=
18708 hardcode_libdir_flag_spec_ld_F77=
18709 hardcode_libdir_separator_F77=
18710 hardcode_minus_L_F77=no
18711 hardcode_automatic_F77=no
18713 module_expsym_cmds_F77=
18714 link_all_deplibs_F77=unknown
18715 old_archive_cmds_F77=$old_archive_cmds
18716 no_undefined_flag_F77=
18717 whole_archive_flag_spec_F77=
18718 enable_shared_with_static_runtimes_F77=no
18720 # Source file extension for f77 test sources.
18723 # Object file extension for compiled f77 test sources.
18727 # Code to be used in simple compile tests
18728 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18730 # Code to be used in simple link tests
18731 lt_simple_link_test_code=" program t\n end\n"
18733 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18735 # If no C compiler was specified, use CC.
18738 # Allow CC to be a program name with arguments.
18742 # Allow CC to be a program name with arguments.
18747 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18749 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18750 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18751 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18752 echo "${ECHO_T}$can_build_shared" >&6
18754 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18755 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18756 test "$can_build_shared" = "no" && enable_shared=no
18758 # On AIX, shared libraries and static libraries use the same namespace, and
18759 # are all built from PIC.
18762 test "$enable_shared" = yes && enable_static=no
18763 if test -n "$RANLIB"; then
18764 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18765 postinstall_cmds='$RANLIB $lib'
18769 test "$enable_shared" = yes && enable_static=no
18772 echo "$as_me:$LINENO: result: $enable_shared" >&5
18773 echo "${ECHO_T}$enable_shared" >&6
18775 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18776 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18777 # Make sure either enable_shared or enable_static is yes.
18778 test "$enable_shared" = yes || enable_static=yes
18779 echo "$as_me:$LINENO: result: $enable_static" >&5
18780 echo "${ECHO_T}$enable_static" >&6
18782 test "$ld_shlibs_F77" = no && can_build_shared=no
18787 lt_prog_compiler_wl_F77=
18788 lt_prog_compiler_pic_F77=
18789 lt_prog_compiler_static_F77=
18791 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18792 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18794 if test "$GCC" = yes; then
18795 lt_prog_compiler_wl_F77='-Wl,'
18796 lt_prog_compiler_static_F77='-static'
18800 # All AIX code is PIC.
18801 if test "$host_cpu" = ia64; then
18802 # AIX 5 now supports IA64 processor
18803 lt_prog_compiler_static_F77='-Bstatic'
18808 # FIXME: we need at least 68020 code to build shared libraries, but
18809 # adding the `-m68020' flag to GCC prevents building anything better,
18811 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18814 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18815 # PIC is the default for these OSes.
18818 mingw* | pw32* | os2*)
18819 # This hack is so that the source file can tell whether it is being
18820 # built for inclusion in a dll (and should export symbols for example).
18821 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18824 darwin* | rhapsody*)
18825 # PIC is the default on this platform
18826 # Common symbols not allowed in MH_DYLIB files
18827 lt_prog_compiler_pic_F77='-fno-common'
18831 # Just because we use GCC doesn't mean we suddenly get shared libraries
18832 # on systems that don't support them.
18833 lt_prog_compiler_can_build_shared_F77=no
18838 if test -d /usr/nec; then
18839 lt_prog_compiler_pic_F77=-Kconform_pic
18844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18845 # not for PA HP-UX.
18846 case "$host_cpu" in
18851 lt_prog_compiler_pic_F77='-fPIC'
18857 lt_prog_compiler_pic_F77='-fPIC'
18861 # PORTME Check for flag to pass linker flags through the system compiler.
18864 lt_prog_compiler_wl_F77='-Wl,'
18865 if test "$host_cpu" = ia64; then
18866 # AIX 5 now supports IA64 processor
18867 lt_prog_compiler_static_F77='-Bstatic'
18869 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18873 # PIC is the default on this platform
18874 # Common symbols not allowed in MH_DYLIB files
18875 case "$cc_basename" in
18877 lt_prog_compiler_pic_F77='-qnocommon'
18878 lt_prog_compiler_wl_F77='-Wl,'
18883 mingw* | pw32* | os2*)
18884 # This hack is so that the source file can tell whether it is being
18885 # built for inclusion in a dll (and should export symbols for example).
18886 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18889 hpux9* | hpux10* | hpux11*)
18890 lt_prog_compiler_wl_F77='-Wl,'
18891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18892 # not for PA HP-UX.
18893 case "$host_cpu" in
18898 lt_prog_compiler_pic_F77='+Z'
18901 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18902 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18905 irix5* | irix6* | nonstopux*)
18906 lt_prog_compiler_wl_F77='-Wl,'
18907 # PIC (with -KPIC) is the default.
18908 lt_prog_compiler_static_F77='-non_shared'
18912 lt_prog_compiler_pic_F77='-KPIC'
18913 lt_prog_compiler_static_F77='-Bstatic'
18919 lt_prog_compiler_wl_F77='-Wl,'
18920 lt_prog_compiler_pic_F77='-KPIC'
18921 lt_prog_compiler_static_F77='-static'
18924 lt_prog_compiler_wl_F77='-Wl,'
18925 # All Alpha code is PIC.
18926 lt_prog_compiler_static_F77='-non_shared'
18931 osf3* | osf4* | osf5*)
18932 lt_prog_compiler_wl_F77='-Wl,'
18933 # All OSF/1 code is PIC.
18934 lt_prog_compiler_static_F77='-non_shared'
18938 lt_prog_compiler_pic_F77='-Kpic'
18939 lt_prog_compiler_static_F77='-dn'
18943 lt_prog_compiler_wl_F77='-Wl,'
18944 lt_prog_compiler_pic_F77='-KPIC'
18945 lt_prog_compiler_static_F77='-Bstatic'
18949 lt_prog_compiler_wl_F77='-Qoption ld '
18950 lt_prog_compiler_pic_F77='-PIC'
18951 lt_prog_compiler_static_F77='-Bstatic'
18954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18955 lt_prog_compiler_wl_F77='-Wl,'
18956 lt_prog_compiler_pic_F77='-KPIC'
18957 lt_prog_compiler_static_F77='-Bstatic'
18961 if test -d /usr/nec ;then
18962 lt_prog_compiler_pic_F77='-Kconform_pic'
18963 lt_prog_compiler_static_F77='-Bstatic'
18968 lt_prog_compiler_pic_F77='-pic'
18969 lt_prog_compiler_static_F77='-Bstatic'
18973 lt_prog_compiler_can_build_shared_F77=no
18978 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18979 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18982 # Check to make sure the PIC flag actually works.
18984 if test -n "$lt_prog_compiler_pic_F77"; then
18986 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18987 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18988 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 lt_prog_compiler_pic_works_F77=no
18992 ac_outfile=conftest.$ac_objext
18993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18994 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18995 # Insert the option either (1) after the last *FLAGS variable, or
18996 # (2) before a word containing "conftest.", or (3) at the end.
18997 # Note that $ac_compile itself does not contain backslashes and begins
18998 # with a dollar sign (not a hyphen), so the echo should work correctly.
18999 # The option is referenced via a variable to avoid confusing sed.
19000 lt_compile=`echo "$ac_compile" | $SED \
19001 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19003 -e 's:$: $lt_compiler_flag:'`
19004 (eval echo "\"\$as_me:19004: $lt_compile\"" >&5)
19005 (eval "$lt_compile" 2>conftest.err)
19007 cat conftest.err >&5
19008 echo "$as_me:19008: \$? = $ac_status" >&5
19009 if (exit $ac_status) && test -s "$ac_outfile"; then
19010 # The compiler can only warn and ignore the option if not recognized
19011 # So say no if there are warnings
19012 if test ! -s conftest.err; then
19013 lt_prog_compiler_pic_works_F77=yes
19019 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19020 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19022 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19023 case $lt_prog_compiler_pic_F77 in
19025 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19028 lt_prog_compiler_pic_F77=
19029 lt_prog_compiler_can_build_shared_F77=no
19034 # For platforms which do not support PIC, -DPIC is meaningless:
19036 lt_prog_compiler_pic_F77=
19039 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19043 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19044 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19045 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 lt_cv_prog_compiler_c_o_F77=no
19049 $rm -r conftest 2>/dev/null
19053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19055 lt_compiler_flag="-o out/conftest2.$ac_objext"
19056 # Insert the option either (1) after the last *FLAGS variable, or
19057 # (2) before a word containing "conftest.", or (3) at the end.
19058 # Note that $ac_compile itself does not contain backslashes and begins
19059 # with a dollar sign (not a hyphen), so the echo should work correctly.
19060 lt_compile=`echo "$ac_compile" | $SED \
19061 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19063 -e 's:$: $lt_compiler_flag:'`
19064 (eval echo "\"\$as_me:19064: $lt_compile\"" >&5)
19065 (eval "$lt_compile" 2>out/conftest.err)
19067 cat out/conftest.err >&5
19068 echo "$as_me:19068: \$? = $ac_status" >&5
19069 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19071 # The compiler can only warn and ignore the option if not recognized
19072 # So say no if there are warnings
19073 if test ! -s out/conftest.err; then
19074 lt_cv_prog_compiler_c_o_F77=yes
19079 # SGI C++ compiler will create directory out/ii_files/ for
19080 # template instantiation
19081 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19082 $rm out/* && rmdir out
19088 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19089 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19092 hard_links="nottested"
19093 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19094 # do not overwrite the value of need_locks provided by the user
19095 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19096 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19101 ln conftest.a conftest.b 2>&5 || hard_links=no
19102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19103 echo "$as_me:$LINENO: result: $hard_links" >&5
19104 echo "${ECHO_T}$hard_links" >&6
19105 if test "$hard_links" = no; then
19106 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19107 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19114 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19115 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19118 allow_undefined_flag_F77=
19119 enable_shared_with_static_runtimes_F77=no
19121 archive_expsym_cmds_F77=
19122 old_archive_From_new_cmds_F77=
19123 old_archive_from_expsyms_cmds_F77=
19124 export_dynamic_flag_spec_F77=
19125 whole_archive_flag_spec_F77=
19126 thread_safe_flag_spec_F77=
19127 hardcode_libdir_flag_spec_F77=
19128 hardcode_libdir_flag_spec_ld_F77=
19129 hardcode_libdir_separator_F77=
19130 hardcode_direct_F77=no
19131 hardcode_minus_L_F77=no
19132 hardcode_shlibpath_var_F77=unsupported
19133 link_all_deplibs_F77=unknown
19134 hardcode_automatic_F77=no
19136 module_expsym_cmds_F77=
19137 always_export_symbols_F77=no
19138 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19139 # include_expsyms should be a list of space-separated symbols to be *always*
19140 # included in the symbol list
19141 include_expsyms_F77=
19142 # exclude_expsyms can be an extended regexp of symbols to exclude
19143 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19144 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19145 # as well as any symbol that contains `d'.
19146 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19147 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19148 # platforms (ab)use it in PIC code, but their linkers get confused if
19149 # the symbol is explicitly referenced. Since portable code cannot
19150 # rely on this symbol name, it's probably fine to never include it in
19151 # preloaded symbol tables.
19152 extract_expsyms_cmds=
19155 cygwin* | mingw* | pw32*)
19156 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19157 # When not using gcc, we currently assume that we are using
19158 # Microsoft Visual C++.
19159 if test "$GCC" != yes; then
19169 if test "$with_gnu_ld" = yes; then
19170 # If archive_cmds runs LD, not CC, wlarc should be empty
19173 # See if GNU ld supports shared libraries.
19175 aix3* | aix4* | aix5*)
19176 # On AIX/PPC, the GNU linker is very broken
19177 if test "$host_cpu" != ia64; then
19181 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19182 *** to be unable to reliably create shared libraries on AIX.
19183 *** Therefore, libtool is disabling shared libraries support. If you
19184 *** really care for shared libraries, you may want to modify your PATH
19185 *** so that a non-GNU linker is found, and then restart.
19192 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)'
19193 hardcode_libdir_flag_spec_F77='-L$libdir'
19194 hardcode_minus_L_F77=yes
19196 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19197 # that the semantics of dynamic libraries on AmigaOS, at least up
19198 # to version 4, is to share data among multiple programs linked
19199 # with the same dynamic library. Since this doesn't match the
19200 # behavior of shared libraries on other platforms, we can't use
19206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19207 allow_undefined_flag_F77=unsupported
19208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19209 # support --undefined. This deserves some investigation. FIXME
19210 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19216 cygwin* | mingw* | pw32*)
19217 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19218 # as there is no search path for DLLs.
19219 hardcode_libdir_flag_spec_F77='-L$libdir'
19220 allow_undefined_flag_F77=unsupported
19221 always_export_symbols_F77=no
19222 enable_shared_with_static_runtimes_F77=yes
19223 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19225 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19226 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19227 # If the export-symbols file already is a .def file (1st line
19228 # is EXPORTS), use it as is; otherwise, prepend...
19229 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19230 cp $export_symbols $output_objdir/$soname.def;
19232 echo EXPORTS > $output_objdir/$soname.def;
19233 cat $export_symbols >> $output_objdir/$soname.def;
19235 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19243 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19246 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19247 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19252 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19256 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19257 *** create shared libraries on Solaris systems. Therefore, libtool
19258 *** is disabling shared libraries support. We urge you to upgrade GNU
19259 *** binutils to release 2.9.1 or newer. Another option is to modify
19260 *** your PATH or compiler configuration so that the native linker is
19261 *** used, and then restart.
19264 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19265 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19266 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19273 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19275 hardcode_direct_F77=yes
19276 hardcode_shlibpath_var_F77=no
19280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19281 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19282 archive_cmds_F77="$tmp_archive_cmds"
19283 supports_anon_versioning=no
19284 case `$LD -v 2>/dev/null` in
19285 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19286 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19287 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19288 *\ 2.11.*) ;; # other 2.11 versions
19289 *) supports_anon_versioning=yes ;;
19291 if test $supports_anon_versioning = yes; then
19292 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19294 $echo "local: *; };" >> $output_objdir/$libname.ver~
19295 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19297 archive_expsym_cmds_F77="$tmp_archive_cmds"
19305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19306 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19307 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19314 if test "$ld_shlibs_F77" = yes; then
19315 runpath_var=LD_RUN_PATH
19316 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19317 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19318 # ancient GNU ld didn't support --whole-archive et. al.
19319 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19320 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19322 whole_archive_flag_spec_F77=
19326 # PORTME fill in a description of your system's linker (not GNU ld)
19329 allow_undefined_flag_F77=unsupported
19330 always_export_symbols_F77=yes
19331 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'
19332 # Note: this linker hardcodes the directories in LIBPATH if there
19333 # are no directories specified by -L.
19334 hardcode_minus_L_F77=yes
19335 if test "$GCC" = yes && test -z "$link_static_flag"; then
19336 # Neither direct hardcoding nor static linking is supported with a
19338 hardcode_direct_F77=unsupported
19343 if test "$host_cpu" = ia64; then
19344 # On IA64, the linker does run time linking by default, so we don't
19345 # have to do anything special.
19346 aix_use_runtimelinking=no
19347 exp_sym_flag='-Bexport'
19350 # If we're using GNU nm, then we don't want the "-C" option.
19351 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19352 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19353 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'
19355 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'
19357 aix_use_runtimelinking=no
19359 # Test if we are trying to use run time linking or normal
19360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19361 # need to do runtime linking.
19362 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19363 for ld_flag in $LDFLAGS; do
19364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19365 aix_use_runtimelinking=yes
19371 exp_sym_flag='-bexport'
19372 no_entry_flag='-bnoentry'
19375 # When large executables or shared objects are built, AIX ld can
19376 # have problems creating the table of contents. If linking a library
19377 # or program results in "error TOC overflow" add -mminimal-toc to
19378 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19379 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19381 archive_cmds_F77=''
19382 hardcode_direct_F77=yes
19383 hardcode_libdir_separator_F77=':'
19384 link_all_deplibs_F77=yes
19386 if test "$GCC" = yes; then
19387 case $host_os in aix4.012|aix4.012.*)
19388 # We only want to do this on AIX 4.2 and lower, the check
19389 # below for broken collect2 doesn't work under 4.3+
19390 collect2name=`${CC} -print-prog-name=collect2`
19391 if test -f "$collect2name" && \
19392 strings "$collect2name" | grep resolve_lib_name >/dev/null
19394 # We have reworked collect2
19395 hardcode_direct_F77=yes
19397 # We have old collect2
19398 hardcode_direct_F77=unsupported
19399 # It fails to find uninstalled libraries when the uninstalled
19400 # path is not listed in the libpath. Setting hardcode_minus_L
19401 # to unsupported forces relinking
19402 hardcode_minus_L_F77=yes
19403 hardcode_libdir_flag_spec_F77='-L$libdir'
19404 hardcode_libdir_separator_F77=
19407 shared_flag='-shared'
19410 if test "$host_cpu" = ia64; then
19411 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19412 # chokes on -Wl,-G. The following line is correct:
19415 if test "$aix_use_runtimelinking" = yes; then
19416 shared_flag='${wl}-G'
19418 shared_flag='${wl}-bM:SRE'
19423 # It seems that -bexpall does not export symbols beginning with
19424 # underscore (_), so it is better to generate a list of symbols to export.
19425 always_export_symbols_F77=yes
19426 if test "$aix_use_runtimelinking" = yes; then
19427 # Warning - without using the other runtime loading flags (-brtl),
19428 # -berok will link without error, but may produce a broken library.
19429 allow_undefined_flag_F77='-berok'
19430 # Determine the default libpath from the value encoded in an empty executable.
19431 cat >conftest.$ac_ext <<_ACEOF
19436 rm -f conftest.$ac_objext conftest$ac_exeext
19437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19438 (eval $ac_link) 2>conftest.er1
19440 grep -v '^ *+' conftest.er1 >conftest.err
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } &&
19445 { ac_try='test -z "$ac_f77_werror_flag"
19446 || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest$ac_exeext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19461 # Check for a 64-bit object if we didn't find anything.
19462 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; }
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19469 rm -f conftest.err conftest.$ac_objext \
19470 conftest$ac_exeext conftest.$ac_ext
19471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19473 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19474 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"
19476 if test "$host_cpu" = ia64; then
19477 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19478 allow_undefined_flag_F77="-z nodefs"
19479 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"
19481 # Determine the default libpath from the value encoded in an empty executable.
19482 cat >conftest.$ac_ext <<_ACEOF
19487 rm -f conftest.$ac_objext conftest$ac_exeext
19488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19489 (eval $ac_link) 2>conftest.er1
19491 grep -v '^ *+' conftest.er1 >conftest.err
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_f77_werror_flag"
19497 || test ! -s conftest.err'
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; } &&
19503 { ac_try='test -s conftest$ac_exeext'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19512 # Check for a 64-bit object if we didn't find anything.
19513 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; }
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19520 rm -f conftest.err conftest.$ac_objext \
19521 conftest$ac_exeext conftest.$ac_ext
19522 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19524 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19525 # Warning - without using the other run time loading flags,
19526 # -berok will link without error, but may produce a broken library.
19527 no_undefined_flag_F77=' ${wl}-bernotok'
19528 allow_undefined_flag_F77=' ${wl}-berok'
19529 # -bexpall does not export symbols beginning with underscore (_)
19530 always_export_symbols_F77=yes
19531 # Exported symbols can be pulled into shared objects from archives
19532 whole_archive_flag_spec_F77=' '
19533 archive_cmds_need_lc_F77=yes
19534 # This is similar to how AIX traditionally builds it's shared libraries.
19535 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'
19541 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)'
19542 hardcode_libdir_flag_spec_F77='-L$libdir'
19543 hardcode_minus_L_F77=yes
19544 # see comment about different semantics on the GNU ld section
19549 export_dynamic_flag_spec_F77=-rdynamic
19552 cygwin* | mingw* | pw32*)
19553 # When not using gcc, we currently assume that we are using
19554 # Microsoft Visual C++.
19555 # hardcode_libdir_flag_spec is actually meaningless, as there is
19556 # no search path for DLLs.
19557 hardcode_libdir_flag_spec_F77=' '
19558 allow_undefined_flag_F77=unsupported
19559 # Tell ltmain to make .lib files, not .a files.
19561 # Tell ltmain to make .dll files, not .so files.
19563 # FIXME: Setting linknames here is a bad hack.
19564 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19565 # The linker will automatically build a .lib file if we build a DLL.
19566 old_archive_From_new_cmds_F77='true'
19567 # FIXME: Should let the user specify the lib program.
19568 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19569 fix_srcfile_path='`cygpath -w "$srcfile"`'
19570 enable_shared_with_static_runtimes_F77=yes
19573 darwin* | rhapsody*)
19575 rhapsody* | darwin1.[012])
19576 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19580 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19582 case ${MACOSX_DEPLOYMENT_TARGET} in
19584 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19587 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19593 archive_cmds_need_lc_F77=no
19594 hardcode_direct_F77=no
19595 hardcode_automatic_F77=yes
19596 hardcode_shlibpath_var_F77=unsupported
19597 whole_archive_flag_spec_F77=''
19598 link_all_deplibs_F77=yes
19599 if test "$GCC" = yes ; then
19600 output_verbose_link_cmd='echo'
19601 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19602 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19603 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19604 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}'
19605 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}'
19607 case "$cc_basename" in
19609 output_verbose_link_cmd='echo'
19610 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19611 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19612 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19613 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}'
19614 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}'
19624 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19625 hardcode_libdir_flag_spec_F77='-L$libdir'
19626 hardcode_shlibpath_var_F77=no
19633 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19634 # support. Future versions do this automatically, but an explicit c++rt0.o
19635 # does not break anything, and helps significantly (at the cost of a little
19638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19639 hardcode_libdir_flag_spec_F77='-R$libdir'
19640 hardcode_direct_F77=yes
19641 hardcode_shlibpath_var_F77=no
19644 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19646 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19647 hardcode_direct_F77=yes
19648 hardcode_minus_L_F77=yes
19649 hardcode_shlibpath_var_F77=no
19652 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19653 freebsd* | kfreebsd*-gnu)
19654 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19655 hardcode_libdir_flag_spec_F77='-R$libdir'
19656 hardcode_direct_F77=yes
19657 hardcode_shlibpath_var_F77=no
19661 if test "$GCC" = yes; then
19662 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'
19664 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'
19666 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19667 hardcode_libdir_separator_F77=:
19668 hardcode_direct_F77=yes
19670 # hardcode_minus_L: Not really in the search PATH,
19671 # but as the default location of the library.
19672 hardcode_minus_L_F77=yes
19673 export_dynamic_flag_spec_F77='${wl}-E'
19677 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19678 case "$host_cpu" in
19680 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19683 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19687 case "$host_cpu" in
19689 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19692 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19696 if test "$with_gnu_ld" = no; then
19697 case "$host_cpu" in
19699 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19700 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19701 hardcode_libdir_separator_F77=:
19702 hardcode_direct_F77=no
19703 hardcode_shlibpath_var_F77=no
19706 hardcode_libdir_flag_spec_F77='-L$libdir'
19707 hardcode_direct_F77=no
19708 hardcode_shlibpath_var_F77=no
19710 # hardcode_minus_L: Not really in the search PATH,
19711 # but as the default location of the library.
19712 hardcode_minus_L_F77=yes
19715 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19716 hardcode_libdir_separator_F77=:
19717 hardcode_direct_F77=yes
19718 export_dynamic_flag_spec_F77='${wl}-E'
19720 # hardcode_minus_L: Not really in the search PATH,
19721 # but as the default location of the library.
19722 hardcode_minus_L_F77=yes
19728 irix5* | irix6* | nonstopux*)
19729 if test "$GCC" = yes; then
19730 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'
19732 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'
19733 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19735 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19736 hardcode_libdir_separator_F77=:
19737 link_all_deplibs_F77=yes
19741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19742 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19744 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19746 hardcode_libdir_flag_spec_F77='-R$libdir'
19747 hardcode_direct_F77=yes
19748 hardcode_shlibpath_var_F77=no
19752 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19753 hardcode_direct_F77=yes
19754 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19755 hardcode_libdir_separator_F77=:
19756 hardcode_shlibpath_var_F77=no
19760 hardcode_direct_F77=yes
19761 hardcode_shlibpath_var_F77=no
19762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19763 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19764 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19765 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19766 export_dynamic_flag_spec_F77='${wl}-E'
19769 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19770 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19771 hardcode_libdir_flag_spec_F77='-R$libdir'
19774 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19775 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19782 hardcode_libdir_flag_spec_F77='-L$libdir'
19783 hardcode_minus_L_F77=yes
19784 allow_undefined_flag_F77=unsupported
19785 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'
19786 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19790 if test "$GCC" = yes; then
19791 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19792 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'
19794 allow_undefined_flag_F77=' -expect_unresolved \*'
19795 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'
19797 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19798 hardcode_libdir_separator_F77=:
19801 osf4* | osf5*) # as osf3* with the addition of -msym flag
19802 if test "$GCC" = yes; then
19803 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19804 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'
19805 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19807 allow_undefined_flag_F77=' -expect_unresolved \*'
19808 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'
19809 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~
19810 $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'
19812 # Both c and cxx compiler support -rpath directly
19813 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19815 hardcode_libdir_separator_F77=:
19819 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19820 hardcode_shlibpath_var_F77=no
19821 export_dynamic_flag_spec_F77='${wl}-Bexport'
19822 runpath_var=LD_RUN_PATH
19823 hardcode_runpath_var=yes
19827 no_undefined_flag_F77=' -z text'
19828 if test "$GCC" = yes; then
19829 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19830 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19831 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19833 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19834 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19837 hardcode_libdir_flag_spec_F77='-R$libdir'
19838 hardcode_shlibpath_var_F77=no
19840 solaris2.[0-5] | solaris2.[0-5].*) ;;
19841 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19842 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19844 link_all_deplibs_F77=yes
19848 if test "x$host_vendor" = xsequent; then
19849 # Use $CC to link under sequent, because it throws in some extra .o
19850 # files that make .init and .fini sections work.
19851 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19853 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19855 hardcode_libdir_flag_spec_F77='-L$libdir'
19856 hardcode_direct_F77=yes
19857 hardcode_minus_L_F77=yes
19858 hardcode_shlibpath_var_F77=no
19862 case $host_vendor in
19864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19865 hardcode_direct_F77=yes # is this really true???
19868 ## LD is ld it makes a PLAMLIB
19869 ## CC just makes a GrossModule.
19870 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19871 reload_cmds_F77='$CC -r -o $output$reload_objs'
19872 hardcode_direct_F77=no
19875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19876 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19879 runpath_var='LD_RUN_PATH'
19880 hardcode_shlibpath_var_F77=no
19884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19885 hardcode_shlibpath_var_F77=no
19886 export_dynamic_flag_spec_F77='-Bexport'
19890 if test -d /usr/nec; then
19891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19892 hardcode_shlibpath_var_F77=no
19893 runpath_var=LD_RUN_PATH
19894 hardcode_runpath_var=yes
19900 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19901 hardcode_direct_F77=yes
19902 hardcode_minus_L_F77=no
19903 hardcode_shlibpath_var_F77=no
19904 hardcode_runpath_var=yes
19905 runpath_var=LD_RUN_PATH
19908 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19909 no_undefined_flag_F77='${wl}-z ${wl}text'
19910 if test "$GCC" = yes; then
19911 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19913 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19915 runpath_var='LD_RUN_PATH'
19916 hardcode_shlibpath_var_F77=no
19920 no_undefined_flag_F77=' -z text'
19921 # $CC -shared without GNU ld will not create a library from C++
19922 # object files and a static libstdc++, better avoid it by now
19923 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19924 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19925 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19926 hardcode_libdir_flag_spec_F77=
19927 hardcode_shlibpath_var_F77=no
19928 runpath_var='LD_RUN_PATH'
19932 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19933 hardcode_libdir_flag_spec_F77='-L$libdir'
19934 hardcode_shlibpath_var_F77=no
19943 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19944 echo "${ECHO_T}$ld_shlibs_F77" >&6
19945 test "$ld_shlibs_F77" = no && can_build_shared=no
19947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19948 if test "$GCC" = yes; then
19949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19953 # Do we need to explicitly link libc?
19955 case "x$archive_cmds_need_lc_F77" in
19957 # Assume -lc should be added
19958 archive_cmds_need_lc_F77=yes
19960 if test "$enable_shared" = yes && test "$GCC" = yes; then
19961 case $archive_cmds_F77 in
19963 # FIXME: we may have to deal with multi-command sequences.
19966 # Test whether the compiler implicitly links with -lc since on some
19967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19968 # to ld, don't add -lc before -lgcc.
19969 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19970 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19975 (eval $ac_compile) 2>&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } 2>conftest.err; then
19981 libobjs=conftest.$ac_objext
19983 wl=$lt_prog_compiler_wl_F77
19989 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19990 allow_undefined_flag_F77=
19991 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19992 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }
19997 archive_cmds_need_lc_F77=no
19999 archive_cmds_need_lc_F77=yes
20001 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20003 cat conftest.err 1>&5
20006 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20007 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20014 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20015 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20016 library_names_spec=
20017 libname_spec='lib$name'
20021 postuninstall_cmds=
20025 shlibpath_overrides_runpath=unknown
20027 dynamic_linker="$host_os ld.so"
20028 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20029 if test "$GCC" = yes; then
20030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20031 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20032 # if the path contains ";" then we assume it to be the separator
20033 # otherwise default to the standard path separator (i.e. ":") - it is
20034 # assumed that no part of a normal pathname contains ";" but that should
20035 # okay in the real world where ";" in dirpaths is itself problematic.
20036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20043 need_lib_prefix=unknown
20044 hardcode_into_libs=no
20046 # when you set need_version to no, make sure it does not cause -set_version
20047 # flags to be left without arguments
20048 need_version=unknown
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20054 shlibpath_var=LIBPATH
20056 # AIX 3 has no versioning support, so we append a major version to the name.
20057 soname_spec='${libname}${release}${shared_ext}$major'
20064 hardcode_into_libs=yes
20065 if test "$host_cpu" = ia64; then
20066 # AIX 5 supports IA64
20067 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20068 shlibpath_var=LD_LIBRARY_PATH
20070 # With GCC up to 2.95.x, collect2 would create an import file
20071 # for dependence libraries. The import file would start with
20072 # the line `#! .'. This would cause the generated library to
20073 # depend on `.', always an invalid library. This was fixed in
20074 # development snapshots of GCC prior to 3.0.
20076 aix4 | aix4.[01] | aix4.[01].*)
20077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20079 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20082 can_build_shared=no
20086 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20087 # soname into executable. Probably we can add versioning support to
20088 # collect2, so additional links can be useful in future.
20089 if test "$aix_use_runtimelinking" = yes; then
20090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20091 # instead of lib<name>.a to let people know that these are not
20092 # typical AIX shared libraries.
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20095 # We preserve .a as extension for shared libraries through AIX4.2
20096 # and later when we are not doing run time linking.
20097 library_names_spec='${libname}${release}.a $libname.a'
20098 soname_spec='${libname}${release}${shared_ext}$major'
20100 shlibpath_var=LIBPATH
20105 library_names_spec='$libname.ixlibrary $libname.a'
20106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20107 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'
20111 library_names_spec='${libname}${shared_ext}'
20112 dynamic_linker="$host_os ld.so"
20113 shlibpath_var=LIBRARY_PATH
20119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20120 soname_spec='${libname}${release}${shared_ext}$major'
20121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20125 # the default ld.so.conf also contains /usr/contrib/lib and
20126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20127 # libtool to hard-code these into programs
20130 cygwin* | mingw* | pw32*)
20131 version_type=windows
20136 case $GCC,$host_os in
20137 yes,cygwin* | yes,mingw* | yes,pw32*)
20138 library_names_spec='$libname.dll.a'
20139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20140 postinstall_cmds='base_file=`basename \${file}`~
20141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20142 dldir=$destdir/`dirname \$dlpath`~
20143 test -d \$dldir || mkdir -p \$dldir~
20144 $install_prog $dir/$dlname \$dldir/$dlname'
20145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20146 dlpath=$dir/\$dldll~
20148 shlibpath_overrides_runpath=yes
20152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20153 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20154 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20157 # MinGW DLLs use traditional 'lib' prefix
20158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20160 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20161 # It is most probably a Windows format PATH printed by
20162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20163 # path with ; separators, and with drive letters. We can handle the
20164 # drive letters (cygwin fileutils understands them), so leave them,
20165 # especially as we might pass files found there to a mingw objdump,
20166 # which wouldn't understand a cygwinified path. Ahh.
20167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20173 # pw32 DLLs use 'pw' prefix rather than 'lib'
20174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20183 dynamic_linker='Win32 ld.exe'
20184 # FIXME: first we should search . and the directory the executable is in
20188 darwin* | rhapsody*)
20189 dynamic_linker="$host_os dyld"
20190 version_type=darwin
20193 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20194 soname_spec='${libname}${release}${major}$shared_ext'
20195 shlibpath_overrides_runpath=yes
20196 shlibpath_var=DYLD_LIBRARY_PATH
20197 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20198 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20199 if test "$GCC" = yes; then
20200 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"`
20202 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20212 soname_spec='${libname}${release}${shared_ext}$major'
20213 shlibpath_var=LD_LIBRARY_PATH
20224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20225 soname_spec='${libname}${release}${shared_ext}$major'
20226 shlibpath_var=LD_LIBRARY_PATH
20227 shlibpath_overrides_runpath=no
20228 hardcode_into_libs=yes
20229 dynamic_linker='GNU ld.so'
20233 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20234 version_type=freebsd-$objformat
20235 case $version_type in
20237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20246 shlibpath_var=LD_LIBRARY_PATH
20249 shlibpath_overrides_runpath=yes
20251 freebsd3.01* | freebsdelf3.01*)
20252 shlibpath_overrides_runpath=yes
20253 hardcode_into_libs=yes
20256 shlibpath_overrides_runpath=no
20257 hardcode_into_libs=yes
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20268 shlibpath_var=LD_LIBRARY_PATH
20269 hardcode_into_libs=yes
20272 hpux9* | hpux10* | hpux11*)
20273 # Give a soname corresponding to the major version so that dld.sl refuses to
20274 # link against other versions.
20278 case "$host_cpu" in
20281 hardcode_into_libs=yes
20282 dynamic_linker="$host_os dld.so"
20283 shlibpath_var=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 if test "X$HPUX_IA64_MODE" = X32; then
20288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20290 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20296 hardcode_into_libs=yes
20297 dynamic_linker="$host_os dld.sl"
20298 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20307 dynamic_linker="$host_os dld.sl"
20308 shlibpath_var=SHLIB_PATH
20309 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311 soname_spec='${libname}${release}${shared_ext}$major'
20314 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20315 postinstall_cmds='chmod 555 $lib'
20318 irix5* | irix6* | nonstopux*)
20320 nonstopux*) version_type=nonstopux ;;
20322 if test "$lt_cv_prog_gnu_ld" = yes; then
20330 soname_spec='${libname}${release}${shared_ext}$major'
20331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20333 irix5* | nonstopux*)
20334 libsuff= shlibsuff=
20337 case $LD in # libtool.m4 will add one of these switches to LD
20338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20339 libsuff= shlibsuff= libmagic=32-bit;;
20340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20341 libsuff=32 shlibsuff=N32 libmagic=N32;;
20342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20344 *) libsuff= shlibsuff= libmagic=never-match;;
20348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20349 shlibpath_overrides_runpath=no
20350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20352 hardcode_into_libs=yes
20355 # No shared lib support for Linux oldld, aout, or coff.
20356 linux*oldld* | linux*aout* | linux*coff*)
20360 # This must be Linux ELF.
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366 soname_spec='${libname}${release}${shared_ext}$major'
20367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20368 shlibpath_var=LD_LIBRARY_PATH
20369 shlibpath_overrides_runpath=no
20370 # This implies no fast_install, which is unacceptable.
20371 # Some rework will be needed to allow for fast_install
20372 # before this can be enabled.
20373 hardcode_into_libs=yes
20375 # Append ld.so.conf contents to the search path
20376 if test -f /etc/ld.so.conf; then
20377 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20381 # We used to test for /lib/ld.so.1 and disable shared libraries on
20382 # powerpc, because MkLinux only supported shared libraries with the
20383 # GNU dynamic linker. Since this was broken with cross compilers,
20384 # most powerpc-linux boxes support dynamic linking these days and
20385 # people can always --disable-shared, the test was removed, and we
20386 # assume the GNU/Linux dynamic linker is in use.
20387 dynamic_linker='GNU/Linux ld.so'
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20395 soname_spec='${libname}${release}${shared_ext}$major'
20396 shlibpath_var=LD_LIBRARY_PATH
20397 shlibpath_overrides_runpath=no
20398 hardcode_into_libs=yes
20399 dynamic_linker='GNU ld.so'
20406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20409 dynamic_linker='NetBSD (a.out) ld.so'
20411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20412 soname_spec='${libname}${release}${shared_ext}$major'
20413 dynamic_linker='NetBSD ld.elf_so'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 shlibpath_overrides_runpath=yes
20417 hardcode_into_libs=yes
20422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423 shlibpath_var=LD_LIBRARY_PATH
20424 shlibpath_overrides_runpath=yes
20431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432 soname_spec='${libname}${release}${shared_ext}$major'
20433 shlibpath_var=LD_LIBRARY_PATH
20434 shlibpath_overrides_runpath=yes
20441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20443 shlibpath_var=LD_LIBRARY_PATH
20444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20446 openbsd2.[89] | openbsd2.[89].*)
20447 shlibpath_overrides_runpath=no
20450 shlibpath_overrides_runpath=yes
20454 shlibpath_overrides_runpath=yes
20459 libname_spec='$name'
20462 library_names_spec='$libname${shared_ext} $libname.a'
20463 dynamic_linker='OS/2 ld.exe'
20464 shlibpath_var=LIBPATH
20467 osf3* | osf4* | osf5*)
20471 soname_spec='${libname}${release}${shared_ext}$major'
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473 shlibpath_var=LD_LIBRARY_PATH
20474 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20475 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20480 soname_spec='${libname}${release}${shared_ext}$major'
20481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20482 shlibpath_var=LD_LIBRARY_PATH
20489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20490 soname_spec='${libname}${release}${shared_ext}$major'
20491 shlibpath_var=LD_LIBRARY_PATH
20492 shlibpath_overrides_runpath=yes
20493 hardcode_into_libs=yes
20494 # ldd complains unless libraries are executable
20495 postinstall_cmds='chmod +x $lib'
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20502 shlibpath_var=LD_LIBRARY_PATH
20503 shlibpath_overrides_runpath=yes
20504 if test "$with_gnu_ld" = yes; then
20510 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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 case $host_vendor in
20517 shlibpath_overrides_runpath=no
20519 export_dynamic_flag_spec='${wl}-Blargedynsym'
20520 runpath_var=LD_RUN_PATH
20528 shlibpath_overrides_runpath=no
20529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20535 if test -d /usr/nec ;then
20537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20538 soname_spec='$libname${shared_ext}.$major'
20539 shlibpath_var=LD_LIBRARY_PATH
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20546 soname_spec='${libname}${release}${shared_ext}$major'
20547 shlibpath_var=LD_LIBRARY_PATH
20554 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20555 echo "${ECHO_T}$dynamic_linker" >&6
20556 test "$dynamic_linker" = no && can_build_shared=no
20558 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20559 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20560 hardcode_action_F77=
20561 if test -n "$hardcode_libdir_flag_spec_F77" || \
20562 test -n "$runpath_var_F77" || \
20563 test "X$hardcode_automatic_F77" = "Xyes" ; then
20565 # We can hardcode non-existant directories.
20566 if test "$hardcode_direct_F77" != no &&
20567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20568 # have to relink, otherwise we might link with an installed library
20569 # when we should be linking with a yet-to-be-installed one
20570 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20571 test "$hardcode_minus_L_F77" != no; then
20572 # Linking always hardcodes the temporary library directory.
20573 hardcode_action_F77=relink
20575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20576 hardcode_action_F77=immediate
20579 # We cannot hardcode anything, or else we can only hardcode existing
20581 hardcode_action_F77=unsupported
20583 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20584 echo "${ECHO_T}$hardcode_action_F77" >&6
20586 if test "$hardcode_action_F77" = relink; then
20587 # Fast installation is not supported
20588 enable_fast_install=no
20589 elif test "$shlibpath_overrides_runpath" = yes ||
20590 test "$enable_shared" = no; then
20591 # Fast installation is not necessary
20592 enable_fast_install=needless
20597 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20598 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20599 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20600 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20601 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20602 echo "$as_me:$LINENO: result: yes" >&5
20603 echo "${ECHO_T}yes" >&6
20605 # FIXME - insert some real tests, host_os isn't really good enough
20608 if test -n "$STRIP" ; then
20609 striplib="$STRIP -x"
20610 echo "$as_me:$LINENO: result: yes" >&5
20611 echo "${ECHO_T}yes" >&6
20613 echo "$as_me:$LINENO: result: no" >&5
20614 echo "${ECHO_T}no" >&6
20618 echo "$as_me:$LINENO: result: no" >&5
20619 echo "${ECHO_T}no" >&6
20626 # The else clause should only fire when bootstrapping the
20627 # libtool distribution, otherwise you forgot to ship ltmain.sh
20628 # with your package, and you will get complaints that there are
20629 # no rules to generate ltmain.sh.
20630 if test -f "$ltmain"; then
20631 # See if we are running on zsh, and set the options which allow our commands through
20632 # without removal of \ escapes.
20633 if test -n "${ZSH_VERSION+set}" ; then
20634 setopt NO_GLOB_SUBST
20636 # Now quote all the things that may contain metacharacters while being
20637 # careful not to overquote the AC_SUBSTed values. We take copies of the
20638 # variables and quote the copies for generation of the libtool script.
20639 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20641 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20642 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20643 deplibs_check_method reload_flag reload_cmds need_locks \
20644 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20645 lt_cv_sys_global_symbol_to_c_name_address \
20646 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20647 old_postinstall_cmds old_postuninstall_cmds \
20651 lt_prog_compiler_wl_F77 \
20652 lt_prog_compiler_pic_F77 \
20653 lt_prog_compiler_static_F77 \
20654 lt_prog_compiler_no_builtin_flag_F77 \
20655 export_dynamic_flag_spec_F77 \
20656 thread_safe_flag_spec_F77 \
20657 whole_archive_flag_spec_F77 \
20658 enable_shared_with_static_runtimes_F77 \
20659 old_archive_cmds_F77 \
20660 old_archive_from_new_cmds_F77 \
20661 predep_objects_F77 \
20662 postdep_objects_F77 \
20665 compiler_lib_search_path_F77 \
20667 archive_expsym_cmds_F77 \
20668 postinstall_cmds_F77 \
20669 postuninstall_cmds_F77 \
20670 old_archive_from_expsyms_cmds_F77 \
20671 allow_undefined_flag_F77 \
20672 no_undefined_flag_F77 \
20673 export_symbols_cmds_F77 \
20674 hardcode_libdir_flag_spec_F77 \
20675 hardcode_libdir_flag_spec_ld_F77 \
20676 hardcode_libdir_separator_F77 \
20677 hardcode_automatic_F77 \
20679 module_expsym_cmds_F77 \
20680 lt_cv_prog_compiler_c_o_F77 \
20681 exclude_expsyms_F77 \
20682 include_expsyms_F77; do
20685 old_archive_cmds_F77 | \
20686 old_archive_from_new_cmds_F77 | \
20687 archive_cmds_F77 | \
20688 archive_expsym_cmds_F77 | \
20689 module_cmds_F77 | \
20690 module_expsym_cmds_F77 | \
20691 old_archive_from_expsyms_cmds_F77 | \
20692 export_symbols_cmds_F77 | \
20693 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20694 postinstall_cmds | postuninstall_cmds | \
20695 old_postinstall_cmds | old_postuninstall_cmds | \
20696 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20697 # Double-quote double-evaled strings.
20698 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20701 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20707 *'\$0 --fallback-echo"')
20708 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20714 cat <<__EOF__ >> "$cfgfile"
20715 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20717 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20719 # Shell to use when invoking shell scripts.
20722 # Whether or not to build shared libraries.
20723 build_libtool_libs=$enable_shared
20725 # Whether or not to build static libraries.
20726 build_old_libs=$enable_static
20728 # Whether or not to add -lc for building shared libraries.
20729 build_libtool_need_lc=$archive_cmds_need_lc_F77
20731 # Whether or not to disallow shared libs when runtime libs are static
20732 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20734 # Whether or not to optimize for fast installation.
20735 fast_install=$enable_fast_install
20738 host_alias=$host_alias
20741 # An echo program that does not interpret backslashes.
20746 AR_FLAGS=$lt_AR_FLAGS
20751 # A language-specific compiler.
20752 CC=$lt_compiler_F77
20754 # Is the compiler the GNU C compiler?
20760 # The linker used to build libraries.
20763 # Whether we need hard or soft links.
20766 # A BSD-compatible nm program.
20769 # A symbol stripping program
20772 # Used to examine libraries when file_magic_cmd begins "file"
20773 MAGIC_CMD=$MAGIC_CMD
20775 # Used on cygwin: DLL creation program.
20778 # Used on cygwin: object dumper.
20781 # Used on cygwin: assembler.
20784 # The name of the directory that contains temporary libtool files.
20787 # How to create reloadable object files.
20788 reload_flag=$lt_reload_flag
20789 reload_cmds=$lt_reload_cmds
20791 # How to pass a linker flag through the compiler.
20792 wl=$lt_lt_prog_compiler_wl_F77
20794 # Object file suffix (normally "o").
20795 objext="$ac_objext"
20797 # Old archive suffix (normally "a").
20800 # Shared library suffix (normally ".so").
20801 shrext_cmds='$shrext_cmds'
20803 # Executable file suffix (normally "").
20806 # Additional compiler flags for building library objects.
20807 pic_flag=$lt_lt_prog_compiler_pic_F77
20810 # What is the maximum length of a command?
20811 max_cmd_len=$lt_cv_sys_max_cmd_len
20813 # Does compiler simultaneously support -c and -o options?
20814 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20816 # Must we lock files when doing compilation ?
20817 need_locks=$lt_need_locks
20819 # Do we need the lib prefix for modules?
20820 need_lib_prefix=$need_lib_prefix
20822 # Do we need a version for libraries?
20823 need_version=$need_version
20825 # Whether dlopen is supported.
20826 dlopen_support=$enable_dlopen
20828 # Whether dlopen of programs is supported.
20829 dlopen_self=$enable_dlopen_self
20831 # Whether dlopen of statically linked programs is supported.
20832 dlopen_self_static=$enable_dlopen_self_static
20834 # Compiler flag to prevent dynamic linking.
20835 link_static_flag=$lt_lt_prog_compiler_static_F77
20837 # Compiler flag to turn off builtin functions.
20838 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20840 # Compiler flag to allow reflexive dlopens.
20841 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20843 # Compiler flag to generate shared objects directly from archives.
20844 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20846 # Compiler flag to generate thread-safe objects.
20847 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20849 # Library versioning type.
20850 version_type=$version_type
20852 # Format of library name prefix.
20853 libname_spec=$lt_libname_spec
20855 # List of archive names. First name is the real one, the rest are links.
20856 # The last name is the one that the linker finds with -lNAME.
20857 library_names_spec=$lt_library_names_spec
20859 # The coded name of the library, if different from the real name.
20860 soname_spec=$lt_soname_spec
20862 # Commands used to build and install an old-style archive.
20864 old_archive_cmds=$lt_old_archive_cmds_F77
20865 old_postinstall_cmds=$lt_old_postinstall_cmds
20866 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20868 # Create an old-style archive from a shared archive.
20869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20871 # Create a temporary old-style archive to link instead of a shared archive.
20872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20874 # Commands used to build and install a shared archive.
20875 archive_cmds=$lt_archive_cmds_F77
20876 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20877 postinstall_cmds=$lt_postinstall_cmds
20878 postuninstall_cmds=$lt_postuninstall_cmds
20880 # Commands used to build a loadable module (assumed same as above if empty)
20881 module_cmds=$lt_module_cmds_F77
20882 module_expsym_cmds=$lt_module_expsym_cmds_F77
20884 # Commands to strip libraries.
20885 old_striplib=$lt_old_striplib
20886 striplib=$lt_striplib
20888 # Dependencies to place before the objects being linked to create a
20890 predep_objects=$lt_predep_objects_F77
20892 # Dependencies to place after the objects being linked to create a
20894 postdep_objects=$lt_postdep_objects_F77
20896 # Dependencies to place before the objects being linked to create a
20898 predeps=$lt_predeps_F77
20900 # Dependencies to place after the objects being linked to create a
20902 postdeps=$lt_postdeps_F77
20904 # The library search path used internally by the compiler when linking
20905 # a shared library.
20906 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20908 # Method to check whether dependent libraries are shared objects.
20909 deplibs_check_method=$lt_deplibs_check_method
20911 # Command to use when deplibs_check_method == file_magic.
20912 file_magic_cmd=$lt_file_magic_cmd
20914 # Flag that allows shared libraries with undefined symbols to be built.
20915 allow_undefined_flag=$lt_allow_undefined_flag_F77
20917 # Flag that forces no undefined symbols.
20918 no_undefined_flag=$lt_no_undefined_flag_F77
20920 # Commands used to finish a libtool library installation in a directory.
20921 finish_cmds=$lt_finish_cmds
20923 # Same as above, but a single script fragment to be evaled but not shown.
20924 finish_eval=$lt_finish_eval
20926 # Take the output of nm and produce a listing of raw symbols and C names.
20927 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20929 # Transform the output of nm in a proper C declaration
20930 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20932 # Transform the output of nm in a C name address pair
20933 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20935 # This is the shared library runtime path variable.
20936 runpath_var=$runpath_var
20938 # This is the shared library path variable.
20939 shlibpath_var=$shlibpath_var
20941 # Is shlibpath searched before the hard-coded library search path?
20942 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20944 # How to hardcode a shared library path into an executable.
20945 hardcode_action=$hardcode_action_F77
20947 # Whether we should hardcode library paths into libraries.
20948 hardcode_into_libs=$hardcode_into_libs
20950 # Flag to hardcode \$libdir into a binary during linking.
20951 # This must work even if \$libdir does not exist.
20952 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20954 # If ld is used when linking, flag to hardcode \$libdir into
20955 # a binary during linking. This must work even if \$libdir does
20957 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20959 # Whether we need a single -rpath flag with a separated argument.
20960 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20962 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20963 # resulting binary.
20964 hardcode_direct=$hardcode_direct_F77
20966 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20967 # resulting binary.
20968 hardcode_minus_L=$hardcode_minus_L_F77
20970 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20971 # the resulting binary.
20972 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20974 # Set to yes if building a shared library automatically hardcodes DIR into the library
20975 # and all subsequent libraries and executables linked against it.
20976 hardcode_automatic=$hardcode_automatic_F77
20978 # Variables whose values should be saved in libtool wrapper scripts and
20979 # restored at relink time.
20980 variables_saved_for_relink="$variables_saved_for_relink"
20982 # Whether libtool must link a program against all its dependency libraries.
20983 link_all_deplibs=$link_all_deplibs_F77
20985 # Compile-time system search path for libraries
20986 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20988 # Run-time system search path for libraries
20989 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20991 # Fix the shell variable \$srcfile for the compiler.
20992 fix_srcfile_path="$fix_srcfile_path_F77"
20994 # Set to yes if exported symbols are required.
20995 always_export_symbols=$always_export_symbols_F77
20997 # The commands to list exported symbols.
20998 export_symbols_cmds=$lt_export_symbols_cmds_F77
21000 # The commands to extract the exported symbol list from a shared archive.
21001 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21003 # Symbols that should not be listed in the preloaded symbols.
21004 exclude_expsyms=$lt_exclude_expsyms_F77
21006 # Symbols that must always be exported.
21007 include_expsyms=$lt_include_expsyms_F77
21009 # ### END LIBTOOL TAG CONFIG: $tagname
21015 # If there is no Makefile yet, we rely on a make rule to execute
21016 # `config.status --recheck' to rerun these tests and create the
21017 # libtool script then.
21018 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21019 if test -f "$ltmain_in"; then
21020 test -f Makefile && make "$ltmain"
21026 ac_cpp='$CPP $CPPFLAGS'
21027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21039 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21041 ac_cpp='$CPP $CPPFLAGS'
21042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21047 # Source file extension for Java test sources.
21050 # Object file extension for compiled Java test sources.
21054 # Code to be used in simple compile tests
21055 lt_simple_compile_test_code="class foo {}\n"
21057 # Code to be used in simple link tests
21058 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21060 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21062 # If no C compiler was specified, use CC.
21065 # Allow CC to be a program name with arguments.
21069 # Allow CC to be a program name with arguments.
21075 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21076 archive_cmds_need_lc_GCJ=no
21079 lt_prog_compiler_no_builtin_flag_GCJ=
21081 if test "$GCC" = yes; then
21082 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21085 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21086 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21087 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21088 echo $ECHO_N "(cached) $ECHO_C" >&6
21090 lt_cv_prog_compiler_rtti_exceptions=no
21091 ac_outfile=conftest.$ac_objext
21092 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21093 lt_compiler_flag="-fno-rtti -fno-exceptions"
21094 # Insert the option either (1) after the last *FLAGS variable, or
21095 # (2) before a word containing "conftest.", or (3) at the end.
21096 # Note that $ac_compile itself does not contain backslashes and begins
21097 # with a dollar sign (not a hyphen), so the echo should work correctly.
21098 # The option is referenced via a variable to avoid confusing sed.
21099 lt_compile=`echo "$ac_compile" | $SED \
21100 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21102 -e 's:$: $lt_compiler_flag:'`
21103 (eval echo "\"\$as_me:21103: $lt_compile\"" >&5)
21104 (eval "$lt_compile" 2>conftest.err)
21106 cat conftest.err >&5
21107 echo "$as_me:21107: \$? = $ac_status" >&5
21108 if (exit $ac_status) && test -s "$ac_outfile"; then
21109 # The compiler can only warn and ignore the option if not recognized
21110 # So say no if there are warnings
21111 if test ! -s conftest.err; then
21112 lt_cv_prog_compiler_rtti_exceptions=yes
21118 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21119 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21121 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21122 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21129 lt_prog_compiler_wl_GCJ=
21130 lt_prog_compiler_pic_GCJ=
21131 lt_prog_compiler_static_GCJ=
21133 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21134 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21136 if test "$GCC" = yes; then
21137 lt_prog_compiler_wl_GCJ='-Wl,'
21138 lt_prog_compiler_static_GCJ='-static'
21142 # All AIX code is PIC.
21143 if test "$host_cpu" = ia64; then
21144 # AIX 5 now supports IA64 processor
21145 lt_prog_compiler_static_GCJ='-Bstatic'
21150 # FIXME: we need at least 68020 code to build shared libraries, but
21151 # adding the `-m68020' flag to GCC prevents building anything better,
21153 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21156 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21157 # PIC is the default for these OSes.
21160 mingw* | pw32* | os2*)
21161 # This hack is so that the source file can tell whether it is being
21162 # built for inclusion in a dll (and should export symbols for example).
21163 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21166 darwin* | rhapsody*)
21167 # PIC is the default on this platform
21168 # Common symbols not allowed in MH_DYLIB files
21169 lt_prog_compiler_pic_GCJ='-fno-common'
21173 # Just because we use GCC doesn't mean we suddenly get shared libraries
21174 # on systems that don't support them.
21175 lt_prog_compiler_can_build_shared_GCJ=no
21180 if test -d /usr/nec; then
21181 lt_prog_compiler_pic_GCJ=-Kconform_pic
21186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21187 # not for PA HP-UX.
21188 case "$host_cpu" in
21193 lt_prog_compiler_pic_GCJ='-fPIC'
21199 lt_prog_compiler_pic_GCJ='-fPIC'
21203 # PORTME Check for flag to pass linker flags through the system compiler.
21206 lt_prog_compiler_wl_GCJ='-Wl,'
21207 if test "$host_cpu" = ia64; then
21208 # AIX 5 now supports IA64 processor
21209 lt_prog_compiler_static_GCJ='-Bstatic'
21211 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21215 # PIC is the default on this platform
21216 # Common symbols not allowed in MH_DYLIB files
21217 case "$cc_basename" in
21219 lt_prog_compiler_pic_GCJ='-qnocommon'
21220 lt_prog_compiler_wl_GCJ='-Wl,'
21225 mingw* | pw32* | os2*)
21226 # This hack is so that the source file can tell whether it is being
21227 # built for inclusion in a dll (and should export symbols for example).
21228 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21231 hpux9* | hpux10* | hpux11*)
21232 lt_prog_compiler_wl_GCJ='-Wl,'
21233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21234 # not for PA HP-UX.
21235 case "$host_cpu" in
21240 lt_prog_compiler_pic_GCJ='+Z'
21243 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21244 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21247 irix5* | irix6* | nonstopux*)
21248 lt_prog_compiler_wl_GCJ='-Wl,'
21249 # PIC (with -KPIC) is the default.
21250 lt_prog_compiler_static_GCJ='-non_shared'
21254 lt_prog_compiler_pic_GCJ='-KPIC'
21255 lt_prog_compiler_static_GCJ='-Bstatic'
21261 lt_prog_compiler_wl_GCJ='-Wl,'
21262 lt_prog_compiler_pic_GCJ='-KPIC'
21263 lt_prog_compiler_static_GCJ='-static'
21266 lt_prog_compiler_wl_GCJ='-Wl,'
21267 # All Alpha code is PIC.
21268 lt_prog_compiler_static_GCJ='-non_shared'
21273 osf3* | osf4* | osf5*)
21274 lt_prog_compiler_wl_GCJ='-Wl,'
21275 # All OSF/1 code is PIC.
21276 lt_prog_compiler_static_GCJ='-non_shared'
21280 lt_prog_compiler_pic_GCJ='-Kpic'
21281 lt_prog_compiler_static_GCJ='-dn'
21285 lt_prog_compiler_wl_GCJ='-Wl,'
21286 lt_prog_compiler_pic_GCJ='-KPIC'
21287 lt_prog_compiler_static_GCJ='-Bstatic'
21291 lt_prog_compiler_wl_GCJ='-Qoption ld '
21292 lt_prog_compiler_pic_GCJ='-PIC'
21293 lt_prog_compiler_static_GCJ='-Bstatic'
21296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21297 lt_prog_compiler_wl_GCJ='-Wl,'
21298 lt_prog_compiler_pic_GCJ='-KPIC'
21299 lt_prog_compiler_static_GCJ='-Bstatic'
21303 if test -d /usr/nec ;then
21304 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21305 lt_prog_compiler_static_GCJ='-Bstatic'
21310 lt_prog_compiler_pic_GCJ='-pic'
21311 lt_prog_compiler_static_GCJ='-Bstatic'
21315 lt_prog_compiler_can_build_shared_GCJ=no
21320 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21321 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21324 # Check to make sure the PIC flag actually works.
21326 if test -n "$lt_prog_compiler_pic_GCJ"; then
21328 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21329 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21330 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 lt_prog_compiler_pic_works_GCJ=no
21334 ac_outfile=conftest.$ac_objext
21335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21336 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21337 # Insert the option either (1) after the last *FLAGS variable, or
21338 # (2) before a word containing "conftest.", or (3) at the end.
21339 # Note that $ac_compile itself does not contain backslashes and begins
21340 # with a dollar sign (not a hyphen), so the echo should work correctly.
21341 # The option is referenced via a variable to avoid confusing sed.
21342 lt_compile=`echo "$ac_compile" | $SED \
21343 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21345 -e 's:$: $lt_compiler_flag:'`
21346 (eval echo "\"\$as_me:21346: $lt_compile\"" >&5)
21347 (eval "$lt_compile" 2>conftest.err)
21349 cat conftest.err >&5
21350 echo "$as_me:21350: \$? = $ac_status" >&5
21351 if (exit $ac_status) && test -s "$ac_outfile"; then
21352 # The compiler can only warn and ignore the option if not recognized
21353 # So say no if there are warnings
21354 if test ! -s conftest.err; then
21355 lt_prog_compiler_pic_works_GCJ=yes
21361 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21362 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21364 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21365 case $lt_prog_compiler_pic_GCJ in
21367 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21370 lt_prog_compiler_pic_GCJ=
21371 lt_prog_compiler_can_build_shared_GCJ=no
21376 # For platforms which do not support PIC, -DPIC is meaningless:
21378 lt_prog_compiler_pic_GCJ=
21381 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21385 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21386 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21387 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21390 lt_cv_prog_compiler_c_o_GCJ=no
21391 $rm -r conftest 2>/dev/null
21395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21397 lt_compiler_flag="-o out/conftest2.$ac_objext"
21398 # Insert the option either (1) after the last *FLAGS variable, or
21399 # (2) before a word containing "conftest.", or (3) at the end.
21400 # Note that $ac_compile itself does not contain backslashes and begins
21401 # with a dollar sign (not a hyphen), so the echo should work correctly.
21402 lt_compile=`echo "$ac_compile" | $SED \
21403 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21405 -e 's:$: $lt_compiler_flag:'`
21406 (eval echo "\"\$as_me:21406: $lt_compile\"" >&5)
21407 (eval "$lt_compile" 2>out/conftest.err)
21409 cat out/conftest.err >&5
21410 echo "$as_me:21410: \$? = $ac_status" >&5
21411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21413 # The compiler can only warn and ignore the option if not recognized
21414 # So say no if there are warnings
21415 if test ! -s out/conftest.err; then
21416 lt_cv_prog_compiler_c_o_GCJ=yes
21421 # SGI C++ compiler will create directory out/ii_files/ for
21422 # template instantiation
21423 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21424 $rm out/* && rmdir out
21430 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21431 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21434 hard_links="nottested"
21435 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21436 # do not overwrite the value of need_locks provided by the user
21437 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21438 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21443 ln conftest.a conftest.b 2>&5 || hard_links=no
21444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21445 echo "$as_me:$LINENO: result: $hard_links" >&5
21446 echo "${ECHO_T}$hard_links" >&6
21447 if test "$hard_links" = no; then
21448 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21449 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21456 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21457 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21460 allow_undefined_flag_GCJ=
21461 enable_shared_with_static_runtimes_GCJ=no
21463 archive_expsym_cmds_GCJ=
21464 old_archive_From_new_cmds_GCJ=
21465 old_archive_from_expsyms_cmds_GCJ=
21466 export_dynamic_flag_spec_GCJ=
21467 whole_archive_flag_spec_GCJ=
21468 thread_safe_flag_spec_GCJ=
21469 hardcode_libdir_flag_spec_GCJ=
21470 hardcode_libdir_flag_spec_ld_GCJ=
21471 hardcode_libdir_separator_GCJ=
21472 hardcode_direct_GCJ=no
21473 hardcode_minus_L_GCJ=no
21474 hardcode_shlibpath_var_GCJ=unsupported
21475 link_all_deplibs_GCJ=unknown
21476 hardcode_automatic_GCJ=no
21478 module_expsym_cmds_GCJ=
21479 always_export_symbols_GCJ=no
21480 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21481 # include_expsyms should be a list of space-separated symbols to be *always*
21482 # included in the symbol list
21483 include_expsyms_GCJ=
21484 # exclude_expsyms can be an extended regexp of symbols to exclude
21485 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21486 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21487 # as well as any symbol that contains `d'.
21488 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21489 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21490 # platforms (ab)use it in PIC code, but their linkers get confused if
21491 # the symbol is explicitly referenced. Since portable code cannot
21492 # rely on this symbol name, it's probably fine to never include it in
21493 # preloaded symbol tables.
21494 extract_expsyms_cmds=
21497 cygwin* | mingw* | pw32*)
21498 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21499 # When not using gcc, we currently assume that we are using
21500 # Microsoft Visual C++.
21501 if test "$GCC" != yes; then
21511 if test "$with_gnu_ld" = yes; then
21512 # If archive_cmds runs LD, not CC, wlarc should be empty
21515 # See if GNU ld supports shared libraries.
21517 aix3* | aix4* | aix5*)
21518 # On AIX/PPC, the GNU linker is very broken
21519 if test "$host_cpu" != ia64; then
21523 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21524 *** to be unable to reliably create shared libraries on AIX.
21525 *** Therefore, libtool is disabling shared libraries support. If you
21526 *** really care for shared libraries, you may want to modify your PATH
21527 *** so that a non-GNU linker is found, and then restart.
21534 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)'
21535 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21536 hardcode_minus_L_GCJ=yes
21538 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21539 # that the semantics of dynamic libraries on AmigaOS, at least up
21540 # to version 4, is to share data among multiple programs linked
21541 # with the same dynamic library. Since this doesn't match the
21542 # behavior of shared libraries on other platforms, we can't use
21548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21549 allow_undefined_flag_GCJ=unsupported
21550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21551 # support --undefined. This deserves some investigation. FIXME
21552 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21558 cygwin* | mingw* | pw32*)
21559 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21560 # as there is no search path for DLLs.
21561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21562 allow_undefined_flag_GCJ=unsupported
21563 always_export_symbols_GCJ=no
21564 enable_shared_with_static_runtimes_GCJ=yes
21565 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21567 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21568 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21569 # If the export-symbols file already is a .def file (1st line
21570 # is EXPORTS), use it as is; otherwise, prepend...
21571 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21572 cp $export_symbols $output_objdir/$soname.def;
21574 echo EXPORTS > $output_objdir/$soname.def;
21575 cat $export_symbols >> $output_objdir/$soname.def;
21577 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21585 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21588 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21589 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21594 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21598 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21599 *** create shared libraries on Solaris systems. Therefore, libtool
21600 *** is disabling shared libraries support. We urge you to upgrade GNU
21601 *** binutils to release 2.9.1 or newer. Another option is to modify
21602 *** your PATH or compiler configuration so that the native linker is
21603 *** used, and then restart.
21606 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21607 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21608 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21615 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21617 hardcode_direct_GCJ=yes
21618 hardcode_shlibpath_var_GCJ=no
21622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21623 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21624 archive_cmds_GCJ="$tmp_archive_cmds"
21625 supports_anon_versioning=no
21626 case `$LD -v 2>/dev/null` in
21627 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21628 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21629 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21630 *\ 2.11.*) ;; # other 2.11 versions
21631 *) supports_anon_versioning=yes ;;
21633 if test $supports_anon_versioning = yes; then
21634 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21635 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21636 $echo "local: *; };" >> $output_objdir/$libname.ver~
21637 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21639 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21647 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21648 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21649 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21656 if test "$ld_shlibs_GCJ" = yes; then
21657 runpath_var=LD_RUN_PATH
21658 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21659 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21660 # ancient GNU ld didn't support --whole-archive et. al.
21661 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21662 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21664 whole_archive_flag_spec_GCJ=
21668 # PORTME fill in a description of your system's linker (not GNU ld)
21671 allow_undefined_flag_GCJ=unsupported
21672 always_export_symbols_GCJ=yes
21673 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'
21674 # Note: this linker hardcodes the directories in LIBPATH if there
21675 # are no directories specified by -L.
21676 hardcode_minus_L_GCJ=yes
21677 if test "$GCC" = yes && test -z "$link_static_flag"; then
21678 # Neither direct hardcoding nor static linking is supported with a
21680 hardcode_direct_GCJ=unsupported
21685 if test "$host_cpu" = ia64; then
21686 # On IA64, the linker does run time linking by default, so we don't
21687 # have to do anything special.
21688 aix_use_runtimelinking=no
21689 exp_sym_flag='-Bexport'
21692 # If we're using GNU nm, then we don't want the "-C" option.
21693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21694 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21695 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'
21697 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'
21699 aix_use_runtimelinking=no
21701 # Test if we are trying to use run time linking or normal
21702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21703 # need to do runtime linking.
21704 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21705 for ld_flag in $LDFLAGS; do
21706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21707 aix_use_runtimelinking=yes
21713 exp_sym_flag='-bexport'
21714 no_entry_flag='-bnoentry'
21717 # When large executables or shared objects are built, AIX ld can
21718 # have problems creating the table of contents. If linking a library
21719 # or program results in "error TOC overflow" add -mminimal-toc to
21720 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21721 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21723 archive_cmds_GCJ=''
21724 hardcode_direct_GCJ=yes
21725 hardcode_libdir_separator_GCJ=':'
21726 link_all_deplibs_GCJ=yes
21728 if test "$GCC" = yes; then
21729 case $host_os in aix4.012|aix4.012.*)
21730 # We only want to do this on AIX 4.2 and lower, the check
21731 # below for broken collect2 doesn't work under 4.3+
21732 collect2name=`${CC} -print-prog-name=collect2`
21733 if test -f "$collect2name" && \
21734 strings "$collect2name" | grep resolve_lib_name >/dev/null
21736 # We have reworked collect2
21737 hardcode_direct_GCJ=yes
21739 # We have old collect2
21740 hardcode_direct_GCJ=unsupported
21741 # It fails to find uninstalled libraries when the uninstalled
21742 # path is not listed in the libpath. Setting hardcode_minus_L
21743 # to unsupported forces relinking
21744 hardcode_minus_L_GCJ=yes
21745 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21746 hardcode_libdir_separator_GCJ=
21749 shared_flag='-shared'
21752 if test "$host_cpu" = ia64; then
21753 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21754 # chokes on -Wl,-G. The following line is correct:
21757 if test "$aix_use_runtimelinking" = yes; then
21758 shared_flag='${wl}-G'
21760 shared_flag='${wl}-bM:SRE'
21765 # It seems that -bexpall does not export symbols beginning with
21766 # underscore (_), so it is better to generate a list of symbols to export.
21767 always_export_symbols_GCJ=yes
21768 if test "$aix_use_runtimelinking" = yes; then
21769 # Warning - without using the other runtime loading flags (-brtl),
21770 # -berok will link without error, but may produce a broken library.
21771 allow_undefined_flag_GCJ='-berok'
21772 # Determine the default libpath from the value encoded in an empty executable.
21773 cat >conftest.$ac_ext <<_ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21788 rm -f conftest.$ac_objext conftest$ac_exeext
21789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21790 (eval $ac_link) 2>conftest.er1
21792 grep -v '^ *+' conftest.er1 >conftest.err
21794 cat conftest.err >&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } &&
21797 { ac_try='test -z "$ac_c_werror_flag"
21798 || test ! -s conftest.err'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; } &&
21804 { ac_try='test -s conftest$ac_exeext'
21805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806 (eval $ac_try) 2>&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); }; }; then
21811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21813 # Check for a 64-bit object if we didn't find anything.
21814 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; }
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21821 rm -f conftest.err conftest.$ac_objext \
21822 conftest$ac_exeext conftest.$ac_ext
21823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21825 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21826 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"
21828 if test "$host_cpu" = ia64; then
21829 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21830 allow_undefined_flag_GCJ="-z nodefs"
21831 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"
21833 # Determine the default libpath from the value encoded in an empty executable.
21834 cat >conftest.$ac_ext <<_ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h. */
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21851 (eval $ac_link) 2>conftest.er1
21853 grep -v '^ *+' conftest.er1 >conftest.err
21855 cat conftest.err >&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } &&
21858 { ac_try='test -z "$ac_c_werror_flag"
21859 || test ! -s conftest.err'
21860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861 (eval $ac_try) 2>&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; } &&
21865 { ac_try='test -s conftest$ac_exeext'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; }; then
21872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21874 # Check for a 64-bit object if we didn't find anything.
21875 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; }
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21882 rm -f conftest.err conftest.$ac_objext \
21883 conftest$ac_exeext conftest.$ac_ext
21884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21886 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21887 # Warning - without using the other run time loading flags,
21888 # -berok will link without error, but may produce a broken library.
21889 no_undefined_flag_GCJ=' ${wl}-bernotok'
21890 allow_undefined_flag_GCJ=' ${wl}-berok'
21891 # -bexpall does not export symbols beginning with underscore (_)
21892 always_export_symbols_GCJ=yes
21893 # Exported symbols can be pulled into shared objects from archives
21894 whole_archive_flag_spec_GCJ=' '
21895 archive_cmds_need_lc_GCJ=yes
21896 # This is similar to how AIX traditionally builds it's shared libraries.
21897 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'
21903 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)'
21904 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21905 hardcode_minus_L_GCJ=yes
21906 # see comment about different semantics on the GNU ld section
21911 export_dynamic_flag_spec_GCJ=-rdynamic
21914 cygwin* | mingw* | pw32*)
21915 # When not using gcc, we currently assume that we are using
21916 # Microsoft Visual C++.
21917 # hardcode_libdir_flag_spec is actually meaningless, as there is
21918 # no search path for DLLs.
21919 hardcode_libdir_flag_spec_GCJ=' '
21920 allow_undefined_flag_GCJ=unsupported
21921 # Tell ltmain to make .lib files, not .a files.
21923 # Tell ltmain to make .dll files, not .so files.
21925 # FIXME: Setting linknames here is a bad hack.
21926 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21927 # The linker will automatically build a .lib file if we build a DLL.
21928 old_archive_From_new_cmds_GCJ='true'
21929 # FIXME: Should let the user specify the lib program.
21930 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21931 fix_srcfile_path='`cygpath -w "$srcfile"`'
21932 enable_shared_with_static_runtimes_GCJ=yes
21935 darwin* | rhapsody*)
21937 rhapsody* | darwin1.[012])
21938 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21941 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21942 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21944 case ${MACOSX_DEPLOYMENT_TARGET} in
21946 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21949 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21955 archive_cmds_need_lc_GCJ=no
21956 hardcode_direct_GCJ=no
21957 hardcode_automatic_GCJ=yes
21958 hardcode_shlibpath_var_GCJ=unsupported
21959 whole_archive_flag_spec_GCJ=''
21960 link_all_deplibs_GCJ=yes
21961 if test "$GCC" = yes ; then
21962 output_verbose_link_cmd='echo'
21963 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21964 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21965 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21966 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}'
21967 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}'
21969 case "$cc_basename" in
21971 output_verbose_link_cmd='echo'
21972 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21973 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21974 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21975 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}'
21976 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}'
21986 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21987 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21988 hardcode_shlibpath_var_GCJ=no
21995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21996 # support. Future versions do this automatically, but an explicit c++rt0.o
21997 # does not break anything, and helps significantly (at the cost of a little
22000 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22001 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22002 hardcode_direct_GCJ=yes
22003 hardcode_shlibpath_var_GCJ=no
22006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22008 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22009 hardcode_direct_GCJ=yes
22010 hardcode_minus_L_GCJ=yes
22011 hardcode_shlibpath_var_GCJ=no
22014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22015 freebsd* | kfreebsd*-gnu)
22016 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22018 hardcode_direct_GCJ=yes
22019 hardcode_shlibpath_var_GCJ=no
22023 if test "$GCC" = yes; then
22024 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'
22026 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'
22028 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22029 hardcode_libdir_separator_GCJ=:
22030 hardcode_direct_GCJ=yes
22032 # hardcode_minus_L: Not really in the search PATH,
22033 # but as the default location of the library.
22034 hardcode_minus_L_GCJ=yes
22035 export_dynamic_flag_spec_GCJ='${wl}-E'
22039 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22040 case "$host_cpu" in
22042 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22045 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22049 case "$host_cpu" in
22051 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22054 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22058 if test "$with_gnu_ld" = no; then
22059 case "$host_cpu" in
22061 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22062 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22063 hardcode_libdir_separator_GCJ=:
22064 hardcode_direct_GCJ=no
22065 hardcode_shlibpath_var_GCJ=no
22068 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22069 hardcode_direct_GCJ=no
22070 hardcode_shlibpath_var_GCJ=no
22072 # hardcode_minus_L: Not really in the search PATH,
22073 # but as the default location of the library.
22074 hardcode_minus_L_GCJ=yes
22077 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22078 hardcode_libdir_separator_GCJ=:
22079 hardcode_direct_GCJ=yes
22080 export_dynamic_flag_spec_GCJ='${wl}-E'
22082 # hardcode_minus_L: Not really in the search PATH,
22083 # but as the default location of the library.
22084 hardcode_minus_L_GCJ=yes
22090 irix5* | irix6* | nonstopux*)
22091 if test "$GCC" = yes; then
22092 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'
22094 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'
22095 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22097 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22098 hardcode_libdir_separator_GCJ=:
22099 link_all_deplibs_GCJ=yes
22103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22104 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22106 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22108 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22109 hardcode_direct_GCJ=yes
22110 hardcode_shlibpath_var_GCJ=no
22114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22115 hardcode_direct_GCJ=yes
22116 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22117 hardcode_libdir_separator_GCJ=:
22118 hardcode_shlibpath_var_GCJ=no
22122 hardcode_direct_GCJ=yes
22123 hardcode_shlibpath_var_GCJ=no
22124 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22125 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22126 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22127 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22128 export_dynamic_flag_spec_GCJ='${wl}-E'
22131 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22132 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22133 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22136 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22137 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22144 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22145 hardcode_minus_L_GCJ=yes
22146 allow_undefined_flag_GCJ=unsupported
22147 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'
22148 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22152 if test "$GCC" = yes; then
22153 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22154 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'
22156 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22157 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'
22159 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22160 hardcode_libdir_separator_GCJ=:
22163 osf4* | osf5*) # as osf3* with the addition of -msym flag
22164 if test "$GCC" = yes; then
22165 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22166 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'
22167 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22169 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22170 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'
22171 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~
22172 $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'
22174 # Both c and cxx compiler support -rpath directly
22175 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22177 hardcode_libdir_separator_GCJ=:
22181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182 hardcode_shlibpath_var_GCJ=no
22183 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22184 runpath_var=LD_RUN_PATH
22185 hardcode_runpath_var=yes
22189 no_undefined_flag_GCJ=' -z text'
22190 if test "$GCC" = yes; then
22191 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22192 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22193 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22195 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22196 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22197 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22199 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22200 hardcode_shlibpath_var_GCJ=no
22202 solaris2.[0-5] | solaris2.[0-5].*) ;;
22203 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22204 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22206 link_all_deplibs_GCJ=yes
22210 if test "x$host_vendor" = xsequent; then
22211 # Use $CC to link under sequent, because it throws in some extra .o
22212 # files that make .init and .fini sections work.
22213 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22215 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22217 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22218 hardcode_direct_GCJ=yes
22219 hardcode_minus_L_GCJ=yes
22220 hardcode_shlibpath_var_GCJ=no
22224 case $host_vendor in
22226 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22227 hardcode_direct_GCJ=yes # is this really true???
22230 ## LD is ld it makes a PLAMLIB
22231 ## CC just makes a GrossModule.
22232 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22233 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22234 hardcode_direct_GCJ=no
22237 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22238 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22241 runpath_var='LD_RUN_PATH'
22242 hardcode_shlibpath_var_GCJ=no
22246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22247 hardcode_shlibpath_var_GCJ=no
22248 export_dynamic_flag_spec_GCJ='-Bexport'
22252 if test -d /usr/nec; then
22253 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22254 hardcode_shlibpath_var_GCJ=no
22255 runpath_var=LD_RUN_PATH
22256 hardcode_runpath_var=yes
22262 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22263 hardcode_direct_GCJ=yes
22264 hardcode_minus_L_GCJ=no
22265 hardcode_shlibpath_var_GCJ=no
22266 hardcode_runpath_var=yes
22267 runpath_var=LD_RUN_PATH
22270 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22271 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22272 if test "$GCC" = yes; then
22273 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22275 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22277 runpath_var='LD_RUN_PATH'
22278 hardcode_shlibpath_var_GCJ=no
22282 no_undefined_flag_GCJ=' -z text'
22283 # $CC -shared without GNU ld will not create a library from C++
22284 # object files and a static libstdc++, better avoid it by now
22285 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22286 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22287 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22288 hardcode_libdir_flag_spec_GCJ=
22289 hardcode_shlibpath_var_GCJ=no
22290 runpath_var='LD_RUN_PATH'
22294 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22295 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22296 hardcode_shlibpath_var_GCJ=no
22305 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22306 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22307 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22309 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22310 if test "$GCC" = yes; then
22311 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22315 # Do we need to explicitly link libc?
22317 case "x$archive_cmds_need_lc_GCJ" in
22319 # Assume -lc should be added
22320 archive_cmds_need_lc_GCJ=yes
22322 if test "$enable_shared" = yes && test "$GCC" = yes; then
22323 case $archive_cmds_GCJ in
22325 # FIXME: we may have to deal with multi-command sequences.
22328 # Test whether the compiler implicitly links with -lc since on some
22329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22330 # to ld, don't add -lc before -lgcc.
22331 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22332 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22337 (eval $ac_compile) 2>&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } 2>conftest.err; then
22343 libobjs=conftest.$ac_objext
22345 wl=$lt_prog_compiler_wl_GCJ
22351 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22352 allow_undefined_flag_GCJ=
22353 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22354 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); }
22359 archive_cmds_need_lc_GCJ=no
22361 archive_cmds_need_lc_GCJ=yes
22363 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22365 cat conftest.err 1>&5
22368 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22369 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22376 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22377 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22378 library_names_spec=
22379 libname_spec='lib$name'
22383 postuninstall_cmds=
22387 shlibpath_overrides_runpath=unknown
22389 dynamic_linker="$host_os ld.so"
22390 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22391 if test "$GCC" = yes; then
22392 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22393 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22394 # if the path contains ";" then we assume it to be the separator
22395 # otherwise default to the standard path separator (i.e. ":") - it is
22396 # assumed that no part of a normal pathname contains ";" but that should
22397 # okay in the real world where ";" in dirpaths is itself problematic.
22398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22403 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22405 need_lib_prefix=unknown
22406 hardcode_into_libs=no
22408 # when you set need_version to no, make sure it does not cause -set_version
22409 # flags to be left without arguments
22410 need_version=unknown
22415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22416 shlibpath_var=LIBPATH
22418 # AIX 3 has no versioning support, so we append a major version to the name.
22419 soname_spec='${libname}${release}${shared_ext}$major'
22426 hardcode_into_libs=yes
22427 if test "$host_cpu" = ia64; then
22428 # AIX 5 supports IA64
22429 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22430 shlibpath_var=LD_LIBRARY_PATH
22432 # With GCC up to 2.95.x, collect2 would create an import file
22433 # for dependence libraries. The import file would start with
22434 # the line `#! .'. This would cause the generated library to
22435 # depend on `.', always an invalid library. This was fixed in
22436 # development snapshots of GCC prior to 3.0.
22438 aix4 | aix4.[01] | aix4.[01].*)
22439 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22441 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22444 can_build_shared=no
22448 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22449 # soname into executable. Probably we can add versioning support to
22450 # collect2, so additional links can be useful in future.
22451 if test "$aix_use_runtimelinking" = yes; then
22452 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22453 # instead of lib<name>.a to let people know that these are not
22454 # typical AIX shared libraries.
22455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22457 # We preserve .a as extension for shared libraries through AIX4.2
22458 # and later when we are not doing run time linking.
22459 library_names_spec='${libname}${release}.a $libname.a'
22460 soname_spec='${libname}${release}${shared_ext}$major'
22462 shlibpath_var=LIBPATH
22467 library_names_spec='$libname.ixlibrary $libname.a'
22468 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22469 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'
22473 library_names_spec='${libname}${shared_ext}'
22474 dynamic_linker="$host_os ld.so"
22475 shlibpath_var=LIBRARY_PATH
22481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22482 soname_spec='${libname}${release}${shared_ext}$major'
22483 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22484 shlibpath_var=LD_LIBRARY_PATH
22485 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22486 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22487 # the default ld.so.conf also contains /usr/contrib/lib and
22488 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22489 # libtool to hard-code these into programs
22492 cygwin* | mingw* | pw32*)
22493 version_type=windows
22498 case $GCC,$host_os in
22499 yes,cygwin* | yes,mingw* | yes,pw32*)
22500 library_names_spec='$libname.dll.a'
22501 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22502 postinstall_cmds='base_file=`basename \${file}`~
22503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22504 dldir=$destdir/`dirname \$dlpath`~
22505 test -d \$dldir || mkdir -p \$dldir~
22506 $install_prog $dir/$dlname \$dldir/$dlname'
22507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22508 dlpath=$dir/\$dldll~
22510 shlibpath_overrides_runpath=yes
22514 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22515 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22516 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22519 # MinGW DLLs use traditional 'lib' prefix
22520 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22522 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22523 # It is most probably a Windows format PATH printed by
22524 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22525 # path with ; separators, and with drive letters. We can handle the
22526 # drive letters (cygwin fileutils understands them), so leave them,
22527 # especially as we might pass files found there to a mingw objdump,
22528 # which wouldn't understand a cygwinified path. Ahh.
22529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22535 # pw32 DLLs use 'pw' prefix rather than 'lib'
22536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22545 dynamic_linker='Win32 ld.exe'
22546 # FIXME: first we should search . and the directory the executable is in
22550 darwin* | rhapsody*)
22551 dynamic_linker="$host_os dyld"
22552 version_type=darwin
22555 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22556 soname_spec='${libname}${release}${major}$shared_ext'
22557 shlibpath_overrides_runpath=yes
22558 shlibpath_var=DYLD_LIBRARY_PATH
22559 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22560 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22561 if test "$GCC" = yes; then
22562 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"`
22564 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22566 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22574 soname_spec='${libname}${release}${shared_ext}$major'
22575 shlibpath_var=LD_LIBRARY_PATH
22586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22587 soname_spec='${libname}${release}${shared_ext}$major'
22588 shlibpath_var=LD_LIBRARY_PATH
22589 shlibpath_overrides_runpath=no
22590 hardcode_into_libs=yes
22591 dynamic_linker='GNU ld.so'
22595 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22596 version_type=freebsd-$objformat
22597 case $version_type in
22599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22608 shlibpath_var=LD_LIBRARY_PATH
22611 shlibpath_overrides_runpath=yes
22613 freebsd3.01* | freebsdelf3.01*)
22614 shlibpath_overrides_runpath=yes
22615 hardcode_into_libs=yes
22618 shlibpath_overrides_runpath=no
22619 hardcode_into_libs=yes
22628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22629 soname_spec='${libname}${release}${shared_ext}$major'
22630 shlibpath_var=LD_LIBRARY_PATH
22631 hardcode_into_libs=yes
22634 hpux9* | hpux10* | hpux11*)
22635 # Give a soname corresponding to the major version so that dld.sl refuses to
22636 # link against other versions.
22640 case "$host_cpu" in
22643 hardcode_into_libs=yes
22644 dynamic_linker="$host_os dld.so"
22645 shlibpath_var=LD_LIBRARY_PATH
22646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22648 soname_spec='${libname}${release}${shared_ext}$major'
22649 if test "X$HPUX_IA64_MODE" = X32; then
22650 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22652 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22658 hardcode_into_libs=yes
22659 dynamic_linker="$host_os dld.sl"
22660 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22663 soname_spec='${libname}${release}${shared_ext}$major'
22664 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22669 dynamic_linker="$host_os dld.sl"
22670 shlibpath_var=SHLIB_PATH
22671 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22673 soname_spec='${libname}${release}${shared_ext}$major'
22676 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22677 postinstall_cmds='chmod 555 $lib'
22680 irix5* | irix6* | nonstopux*)
22682 nonstopux*) version_type=nonstopux ;;
22684 if test "$lt_cv_prog_gnu_ld" = yes; then
22692 soname_spec='${libname}${release}${shared_ext}$major'
22693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22695 irix5* | nonstopux*)
22696 libsuff= shlibsuff=
22699 case $LD in # libtool.m4 will add one of these switches to LD
22700 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22701 libsuff= shlibsuff= libmagic=32-bit;;
22702 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22703 libsuff=32 shlibsuff=N32 libmagic=N32;;
22704 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22705 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22706 *) libsuff= shlibsuff= libmagic=never-match;;
22710 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22711 shlibpath_overrides_runpath=no
22712 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22713 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22714 hardcode_into_libs=yes
22717 # No shared lib support for Linux oldld, aout, or coff.
22718 linux*oldld* | linux*aout* | linux*coff*)
22722 # This must be Linux ELF.
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 soname_spec='${libname}${release}${shared_ext}$major'
22729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22730 shlibpath_var=LD_LIBRARY_PATH
22731 shlibpath_overrides_runpath=no
22732 # This implies no fast_install, which is unacceptable.
22733 # Some rework will be needed to allow for fast_install
22734 # before this can be enabled.
22735 hardcode_into_libs=yes
22737 # Append ld.so.conf contents to the search path
22738 if test -f /etc/ld.so.conf; then
22739 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22740 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22743 # We used to test for /lib/ld.so.1 and disable shared libraries on
22744 # powerpc, because MkLinux only supported shared libraries with the
22745 # GNU dynamic linker. Since this was broken with cross compilers,
22746 # most powerpc-linux boxes support dynamic linking these days and
22747 # people can always --disable-shared, the test was removed, and we
22748 # assume the GNU/Linux dynamic linker is in use.
22749 dynamic_linker='GNU/Linux ld.so'
22756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22757 soname_spec='${libname}${release}${shared_ext}$major'
22758 shlibpath_var=LD_LIBRARY_PATH
22759 shlibpath_overrides_runpath=no
22760 hardcode_into_libs=yes
22761 dynamic_linker='GNU ld.so'
22768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22771 dynamic_linker='NetBSD (a.out) ld.so'
22773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22774 soname_spec='${libname}${release}${shared_ext}$major'
22775 dynamic_linker='NetBSD ld.elf_so'
22777 shlibpath_var=LD_LIBRARY_PATH
22778 shlibpath_overrides_runpath=yes
22779 hardcode_into_libs=yes
22784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22785 shlibpath_var=LD_LIBRARY_PATH
22786 shlibpath_overrides_runpath=yes
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22794 soname_spec='${libname}${release}${shared_ext}$major'
22795 shlibpath_var=LD_LIBRARY_PATH
22796 shlibpath_overrides_runpath=yes
22803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22805 shlibpath_var=LD_LIBRARY_PATH
22806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22808 openbsd2.[89] | openbsd2.[89].*)
22809 shlibpath_overrides_runpath=no
22812 shlibpath_overrides_runpath=yes
22816 shlibpath_overrides_runpath=yes
22821 libname_spec='$name'
22824 library_names_spec='$libname${shared_ext} $libname.a'
22825 dynamic_linker='OS/2 ld.exe'
22826 shlibpath_var=LIBPATH
22829 osf3* | osf4* | osf5*)
22833 soname_spec='${libname}${release}${shared_ext}$major'
22834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22835 shlibpath_var=LD_LIBRARY_PATH
22836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22842 soname_spec='${libname}${release}${shared_ext}$major'
22843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22844 shlibpath_var=LD_LIBRARY_PATH
22851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22852 soname_spec='${libname}${release}${shared_ext}$major'
22853 shlibpath_var=LD_LIBRARY_PATH
22854 shlibpath_overrides_runpath=yes
22855 hardcode_into_libs=yes
22856 # ldd complains unless libraries are executable
22857 postinstall_cmds='chmod +x $lib'
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22864 shlibpath_var=LD_LIBRARY_PATH
22865 shlibpath_overrides_runpath=yes
22866 if test "$with_gnu_ld" = yes; then
22872 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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 case $host_vendor in
22879 shlibpath_overrides_runpath=no
22881 export_dynamic_flag_spec='${wl}-Blargedynsym'
22882 runpath_var=LD_RUN_PATH
22890 shlibpath_overrides_runpath=no
22891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22897 if test -d /usr/nec ;then
22899 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22900 soname_spec='$libname${shared_ext}.$major'
22901 shlibpath_var=LD_LIBRARY_PATH
22907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22908 soname_spec='${libname}${release}${shared_ext}$major'
22909 shlibpath_var=LD_LIBRARY_PATH
22916 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22917 echo "${ECHO_T}$dynamic_linker" >&6
22918 test "$dynamic_linker" = no && can_build_shared=no
22920 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22921 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22922 hardcode_action_GCJ=
22923 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22924 test -n "$runpath_var_GCJ" || \
22925 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22927 # We can hardcode non-existant directories.
22928 if test "$hardcode_direct_GCJ" != no &&
22929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22930 # have to relink, otherwise we might link with an installed library
22931 # when we should be linking with a yet-to-be-installed one
22932 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22933 test "$hardcode_minus_L_GCJ" != no; then
22934 # Linking always hardcodes the temporary library directory.
22935 hardcode_action_GCJ=relink
22937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22938 hardcode_action_GCJ=immediate
22941 # We cannot hardcode anything, or else we can only hardcode existing
22943 hardcode_action_GCJ=unsupported
22945 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22946 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22948 if test "$hardcode_action_GCJ" = relink; then
22949 # Fast installation is not supported
22950 enable_fast_install=no
22951 elif test "$shlibpath_overrides_runpath" = yes ||
22952 test "$enable_shared" = no; then
22953 # Fast installation is not necessary
22954 enable_fast_install=needless
22959 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22960 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22961 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22962 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22963 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22964 echo "$as_me:$LINENO: result: yes" >&5
22965 echo "${ECHO_T}yes" >&6
22967 # FIXME - insert some real tests, host_os isn't really good enough
22970 if test -n "$STRIP" ; then
22971 striplib="$STRIP -x"
22972 echo "$as_me:$LINENO: result: yes" >&5
22973 echo "${ECHO_T}yes" >&6
22975 echo "$as_me:$LINENO: result: no" >&5
22976 echo "${ECHO_T}no" >&6
22980 echo "$as_me:$LINENO: result: no" >&5
22981 echo "${ECHO_T}no" >&6
22986 if test "x$enable_dlopen" != xyes; then
22987 enable_dlopen=unknown
22988 enable_dlopen_self=unknown
22989 enable_dlopen_self_static=unknown
22996 lt_cv_dlopen="load_add_on"
22998 lt_cv_dlopen_self=yes
23002 lt_cv_dlopen="LoadLibrary"
23007 lt_cv_dlopen="dlopen"
23012 # if libdl is installed we need to link against it
23013 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23018 ac_check_lib_save_LIBS=$LIBS
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23027 /* Override any gcc2 internal prototype to avoid an error. */
23031 /* We use char because int might match the return type of a gcc2
23032 builtin and then its argument prototype would still apply. */
23042 rm -f conftest.$ac_objext conftest$ac_exeext
23043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23044 (eval $ac_link) 2>conftest.er1
23046 grep -v '^ *+' conftest.er1 >conftest.err
23048 cat conftest.err >&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); } &&
23051 { ac_try='test -z "$ac_c_werror_flag"
23052 || test ! -s conftest.err'
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest$ac_exeext'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_cv_lib_dl_dlopen=yes
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_cv_lib_dl_dlopen=no
23071 rm -f conftest.err conftest.$ac_objext \
23072 conftest$ac_exeext conftest.$ac_ext
23073 LIBS=$ac_check_lib_save_LIBS
23075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23077 if test $ac_cv_lib_dl_dlopen = yes; then
23078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23081 lt_cv_dlopen="dyld"
23083 lt_cv_dlopen_self=yes
23090 echo "$as_me:$LINENO: checking for shl_load" >&5
23091 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23092 if test "${ac_cv_func_shl_load+set}" = set; then
23093 echo $ECHO_N "(cached) $ECHO_C" >&6
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23103 #define shl_load innocuous_shl_load
23105 /* System header to define __stub macros and hopefully few prototypes,
23106 which can conflict with char shl_load (); below.
23107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23108 <limits.h> exists even on freestanding compilers. */
23111 # include <limits.h>
23113 # include <assert.h>
23118 /* Override any gcc2 internal prototype to avoid an error. */
23123 /* We use char because int might match the return type of a gcc2
23124 builtin and then its argument prototype would still apply. */
23126 /* The GNU C library defines this for functions which it implements
23127 to always fail with ENOSYS. Some functions are actually named
23128 something starting with __ and the normal name is an alias. */
23129 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23132 char (*f) () = shl_load;
23141 return f != shl_load;
23146 rm -f conftest.$ac_objext conftest$ac_exeext
23147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23148 (eval $ac_link) 2>conftest.er1
23150 grep -v '^ *+' conftest.er1 >conftest.err
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } &&
23155 { ac_try='test -z "$ac_c_werror_flag"
23156 || test ! -s conftest.err'
23157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158 (eval $ac_try) 2>&5
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); }; } &&
23162 { ac_try='test -s conftest$ac_exeext'
23163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164 (eval $ac_try) 2>&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; }; then
23168 ac_cv_func_shl_load=yes
23170 echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23173 ac_cv_func_shl_load=no
23175 rm -f conftest.err conftest.$ac_objext \
23176 conftest$ac_exeext conftest.$ac_ext
23178 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23179 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23180 if test $ac_cv_func_shl_load = yes; then
23181 lt_cv_dlopen="shl_load"
23183 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23184 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23185 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 ac_check_lib_save_LIBS=$LIBS
23190 cat >conftest.$ac_ext <<_ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23197 /* Override any gcc2 internal prototype to avoid an error. */
23201 /* We use char because int might match the return type of a gcc2
23202 builtin and then its argument prototype would still apply. */
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23214 (eval $ac_link) 2>conftest.er1
23216 grep -v '^ *+' conftest.er1 >conftest.err
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } &&
23221 { ac_try='test -z "$ac_c_werror_flag"
23222 || test ! -s conftest.err'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; } &&
23228 { ac_try='test -s conftest$ac_exeext'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_cv_lib_dld_shl_load=yes
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 ac_cv_lib_dld_shl_load=no
23241 rm -f conftest.err conftest.$ac_objext \
23242 conftest$ac_exeext conftest.$ac_ext
23243 LIBS=$ac_check_lib_save_LIBS
23245 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23246 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23247 if test $ac_cv_lib_dld_shl_load = yes; then
23248 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23250 echo "$as_me:$LINENO: checking for dlopen" >&5
23251 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23252 if test "${ac_cv_func_dlopen+set}" = set; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
23255 cat >conftest.$ac_ext <<_ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h. */
23261 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23263 #define dlopen innocuous_dlopen
23265 /* System header to define __stub macros and hopefully few prototypes,
23266 which can conflict with char dlopen (); below.
23267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23268 <limits.h> exists even on freestanding compilers. */
23271 # include <limits.h>
23273 # include <assert.h>
23278 /* Override any gcc2 internal prototype to avoid an error. */
23283 /* We use char because int might match the return type of a gcc2
23284 builtin and then its argument prototype would still apply. */
23286 /* The GNU C library defines this for functions which it implements
23287 to always fail with ENOSYS. Some functions are actually named
23288 something starting with __ and the normal name is an alias. */
23289 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23292 char (*f) () = dlopen;
23301 return f != dlopen;
23306 rm -f conftest.$ac_objext conftest$ac_exeext
23307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23308 (eval $ac_link) 2>conftest.er1
23310 grep -v '^ *+' conftest.er1 >conftest.err
23312 cat conftest.err >&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } &&
23315 { ac_try='test -z "$ac_c_werror_flag"
23316 || test ! -s conftest.err'
23317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318 (eval $ac_try) 2>&5
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); }; } &&
23322 { ac_try='test -s conftest$ac_exeext'
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; }; then
23328 ac_cv_func_dlopen=yes
23330 echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23333 ac_cv_func_dlopen=no
23335 rm -f conftest.err conftest.$ac_objext \
23336 conftest$ac_exeext conftest.$ac_ext
23338 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23339 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23340 if test $ac_cv_func_dlopen = yes; then
23341 lt_cv_dlopen="dlopen"
23343 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23344 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23348 ac_check_lib_save_LIBS=$LIBS
23350 cat >conftest.$ac_ext <<_ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23357 /* Override any gcc2 internal prototype to avoid an error. */
23361 /* We use char because int might match the return type of a gcc2
23362 builtin and then its argument prototype would still apply. */
23372 rm -f conftest.$ac_objext conftest$ac_exeext
23373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23374 (eval $ac_link) 2>conftest.er1
23376 grep -v '^ *+' conftest.er1 >conftest.err
23378 cat conftest.err >&5
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } &&
23381 { ac_try='test -z "$ac_c_werror_flag"
23382 || test ! -s conftest.err'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; } &&
23388 { ac_try='test -s conftest$ac_exeext'
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 ac_cv_lib_dl_dlopen=yes
23396 echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23399 ac_cv_lib_dl_dlopen=no
23401 rm -f conftest.err conftest.$ac_objext \
23402 conftest$ac_exeext conftest.$ac_ext
23403 LIBS=$ac_check_lib_save_LIBS
23405 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23407 if test $ac_cv_lib_dl_dlopen = yes; then
23408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23410 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23411 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23412 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23413 echo $ECHO_N "(cached) $ECHO_C" >&6
23415 ac_check_lib_save_LIBS=$LIBS
23416 LIBS="-lsvld $LIBS"
23417 cat >conftest.$ac_ext <<_ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h. */
23424 /* Override any gcc2 internal prototype to avoid an error. */
23428 /* We use char because int might match the return type of a gcc2
23429 builtin and then its argument prototype would still apply. */
23439 rm -f conftest.$ac_objext conftest$ac_exeext
23440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23441 (eval $ac_link) 2>conftest.er1
23443 grep -v '^ *+' conftest.er1 >conftest.err
23445 cat conftest.err >&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } &&
23448 { ac_try='test -z "$ac_c_werror_flag"
23449 || test ! -s conftest.err'
23450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451 (eval $ac_try) 2>&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); }; } &&
23455 { ac_try='test -s conftest$ac_exeext'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; }; then
23461 ac_cv_lib_svld_dlopen=yes
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 ac_cv_lib_svld_dlopen=no
23468 rm -f conftest.err conftest.$ac_objext \
23469 conftest$ac_exeext conftest.$ac_ext
23470 LIBS=$ac_check_lib_save_LIBS
23472 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23473 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23474 if test $ac_cv_lib_svld_dlopen = yes; then
23475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23477 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23478 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23479 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23482 ac_check_lib_save_LIBS=$LIBS
23484 cat >conftest.$ac_ext <<_ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23491 /* Override any gcc2 internal prototype to avoid an error. */
23495 /* We use char because int might match the return type of a gcc2
23496 builtin and then its argument prototype would still apply. */
23506 rm -f conftest.$ac_objext conftest$ac_exeext
23507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23508 (eval $ac_link) 2>conftest.er1
23510 grep -v '^ *+' conftest.er1 >conftest.err
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } &&
23515 { ac_try='test -z "$ac_c_werror_flag"
23516 || test ! -s conftest.err'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } &&
23522 { ac_try='test -s conftest$ac_exeext'
23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 ac_cv_lib_dld_dld_link=yes
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23533 ac_cv_lib_dld_dld_link=no
23535 rm -f conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
23537 LIBS=$ac_check_lib_save_LIBS
23539 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23540 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23541 if test $ac_cv_lib_dld_dld_link = yes; then
23542 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23563 if test "x$lt_cv_dlopen" != xno; then
23569 case $lt_cv_dlopen in
23571 save_CPPFLAGS="$CPPFLAGS"
23572 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23574 save_LDFLAGS="$LDFLAGS"
23575 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23578 LIBS="$lt_cv_dlopen_libs $LIBS"
23580 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23581 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23582 if test "${lt_cv_dlopen_self+set}" = set; then
23583 echo $ECHO_N "(cached) $ECHO_C" >&6
23585 if test "$cross_compiling" = yes; then :
23586 lt_cv_dlopen_self=cross
23588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23589 lt_status=$lt_dlunknown
23590 cat > conftest.$ac_ext <<EOF
23591 #line 23591 "configure"
23592 #include "confdefs.h"
23601 # define LT_DLGLOBAL RTLD_GLOBAL
23604 # define LT_DLGLOBAL DL_GLOBAL
23606 # define LT_DLGLOBAL 0
23610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23611 find out it does not work in some platform. */
23612 #ifndef LT_DLLAZY_OR_NOW
23614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23617 # define LT_DLLAZY_OR_NOW DL_LAZY
23620 # define LT_DLLAZY_OR_NOW RTLD_NOW
23623 # define LT_DLLAZY_OR_NOW DL_NOW
23625 # define LT_DLLAZY_OR_NOW 0
23633 extern "C" void exit (int);
23636 void fnord() { int i=42;}
23639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23640 int status = $lt_dlunknown;
23644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23646 /* dlclose (self); */
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653 (eval $ac_link) 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23657 (./conftest; exit; ) 2>/dev/null
23659 case x$lt_status in
23660 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23661 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23662 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23665 # compilation failed
23666 lt_cv_dlopen_self=no
23673 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23674 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23676 if test "x$lt_cv_dlopen_self" = xyes; then
23677 LDFLAGS="$LDFLAGS $link_static_flag"
23678 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23679 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23680 if test "${lt_cv_dlopen_self_static+set}" = set; then
23681 echo $ECHO_N "(cached) $ECHO_C" >&6
23683 if test "$cross_compiling" = yes; then :
23684 lt_cv_dlopen_self_static=cross
23686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23687 lt_status=$lt_dlunknown
23688 cat > conftest.$ac_ext <<EOF
23689 #line 23689 "configure"
23690 #include "confdefs.h"
23699 # define LT_DLGLOBAL RTLD_GLOBAL
23702 # define LT_DLGLOBAL DL_GLOBAL
23704 # define LT_DLGLOBAL 0
23708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23709 find out it does not work in some platform. */
23710 #ifndef LT_DLLAZY_OR_NOW
23712 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23715 # define LT_DLLAZY_OR_NOW DL_LAZY
23718 # define LT_DLLAZY_OR_NOW RTLD_NOW
23721 # define LT_DLLAZY_OR_NOW DL_NOW
23723 # define LT_DLLAZY_OR_NOW 0
23731 extern "C" void exit (int);
23734 void fnord() { int i=42;}
23737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23738 int status = $lt_dlunknown;
23742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23744 /* dlclose (self); */
23750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23751 (eval $ac_link) 2>&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23755 (./conftest; exit; ) 2>/dev/null
23757 case x$lt_status in
23758 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23759 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23760 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23763 # compilation failed
23764 lt_cv_dlopen_self_static=no
23771 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23772 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23775 CPPFLAGS="$save_CPPFLAGS"
23776 LDFLAGS="$save_LDFLAGS"
23781 case $lt_cv_dlopen_self in
23782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23783 *) enable_dlopen_self=unknown ;;
23786 case $lt_cv_dlopen_self_static in
23787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23788 *) enable_dlopen_self_static=unknown ;;
23793 # The else clause should only fire when bootstrapping the
23794 # libtool distribution, otherwise you forgot to ship ltmain.sh
23795 # with your package, and you will get complaints that there are
23796 # no rules to generate ltmain.sh.
23797 if test -f "$ltmain"; then
23798 # See if we are running on zsh, and set the options which allow our commands through
23799 # without removal of \ escapes.
23800 if test -n "${ZSH_VERSION+set}" ; then
23801 setopt NO_GLOB_SUBST
23803 # Now quote all the things that may contain metacharacters while being
23804 # careful not to overquote the AC_SUBSTed values. We take copies of the
23805 # variables and quote the copies for generation of the libtool script.
23806 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23808 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23809 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23810 deplibs_check_method reload_flag reload_cmds need_locks \
23811 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23812 lt_cv_sys_global_symbol_to_c_name_address \
23813 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23814 old_postinstall_cmds old_postuninstall_cmds \
23818 lt_prog_compiler_wl_GCJ \
23819 lt_prog_compiler_pic_GCJ \
23820 lt_prog_compiler_static_GCJ \
23821 lt_prog_compiler_no_builtin_flag_GCJ \
23822 export_dynamic_flag_spec_GCJ \
23823 thread_safe_flag_spec_GCJ \
23824 whole_archive_flag_spec_GCJ \
23825 enable_shared_with_static_runtimes_GCJ \
23826 old_archive_cmds_GCJ \
23827 old_archive_from_new_cmds_GCJ \
23828 predep_objects_GCJ \
23829 postdep_objects_GCJ \
23832 compiler_lib_search_path_GCJ \
23834 archive_expsym_cmds_GCJ \
23835 postinstall_cmds_GCJ \
23836 postuninstall_cmds_GCJ \
23837 old_archive_from_expsyms_cmds_GCJ \
23838 allow_undefined_flag_GCJ \
23839 no_undefined_flag_GCJ \
23840 export_symbols_cmds_GCJ \
23841 hardcode_libdir_flag_spec_GCJ \
23842 hardcode_libdir_flag_spec_ld_GCJ \
23843 hardcode_libdir_separator_GCJ \
23844 hardcode_automatic_GCJ \
23846 module_expsym_cmds_GCJ \
23847 lt_cv_prog_compiler_c_o_GCJ \
23848 exclude_expsyms_GCJ \
23849 include_expsyms_GCJ; do
23852 old_archive_cmds_GCJ | \
23853 old_archive_from_new_cmds_GCJ | \
23854 archive_cmds_GCJ | \
23855 archive_expsym_cmds_GCJ | \
23856 module_cmds_GCJ | \
23857 module_expsym_cmds_GCJ | \
23858 old_archive_from_expsyms_cmds_GCJ | \
23859 export_symbols_cmds_GCJ | \
23860 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23861 postinstall_cmds | postuninstall_cmds | \
23862 old_postinstall_cmds | old_postuninstall_cmds | \
23863 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23864 # Double-quote double-evaled strings.
23865 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23868 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23874 *'\$0 --fallback-echo"')
23875 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23881 cat <<__EOF__ >> "$cfgfile"
23882 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23884 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23886 # Shell to use when invoking shell scripts.
23889 # Whether or not to build shared libraries.
23890 build_libtool_libs=$enable_shared
23892 # Whether or not to build static libraries.
23893 build_old_libs=$enable_static
23895 # Whether or not to add -lc for building shared libraries.
23896 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23898 # Whether or not to disallow shared libs when runtime libs are static
23899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23901 # Whether or not to optimize for fast installation.
23902 fast_install=$enable_fast_install
23905 host_alias=$host_alias
23908 # An echo program that does not interpret backslashes.
23913 AR_FLAGS=$lt_AR_FLAGS
23918 # A language-specific compiler.
23919 CC=$lt_compiler_GCJ
23921 # Is the compiler the GNU C compiler?
23927 # The linker used to build libraries.
23930 # Whether we need hard or soft links.
23933 # A BSD-compatible nm program.
23936 # A symbol stripping program
23939 # Used to examine libraries when file_magic_cmd begins "file"
23940 MAGIC_CMD=$MAGIC_CMD
23942 # Used on cygwin: DLL creation program.
23945 # Used on cygwin: object dumper.
23948 # Used on cygwin: assembler.
23951 # The name of the directory that contains temporary libtool files.
23954 # How to create reloadable object files.
23955 reload_flag=$lt_reload_flag
23956 reload_cmds=$lt_reload_cmds
23958 # How to pass a linker flag through the compiler.
23959 wl=$lt_lt_prog_compiler_wl_GCJ
23961 # Object file suffix (normally "o").
23962 objext="$ac_objext"
23964 # Old archive suffix (normally "a").
23967 # Shared library suffix (normally ".so").
23968 shrext_cmds='$shrext_cmds'
23970 # Executable file suffix (normally "").
23973 # Additional compiler flags for building library objects.
23974 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23977 # What is the maximum length of a command?
23978 max_cmd_len=$lt_cv_sys_max_cmd_len
23980 # Does compiler simultaneously support -c and -o options?
23981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23983 # Must we lock files when doing compilation ?
23984 need_locks=$lt_need_locks
23986 # Do we need the lib prefix for modules?
23987 need_lib_prefix=$need_lib_prefix
23989 # Do we need a version for libraries?
23990 need_version=$need_version
23992 # Whether dlopen is supported.
23993 dlopen_support=$enable_dlopen
23995 # Whether dlopen of programs is supported.
23996 dlopen_self=$enable_dlopen_self
23998 # Whether dlopen of statically linked programs is supported.
23999 dlopen_self_static=$enable_dlopen_self_static
24001 # Compiler flag to prevent dynamic linking.
24002 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24004 # Compiler flag to turn off builtin functions.
24005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24007 # Compiler flag to allow reflexive dlopens.
24008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24010 # Compiler flag to generate shared objects directly from archives.
24011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24013 # Compiler flag to generate thread-safe objects.
24014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24016 # Library versioning type.
24017 version_type=$version_type
24019 # Format of library name prefix.
24020 libname_spec=$lt_libname_spec
24022 # List of archive names. First name is the real one, the rest are links.
24023 # The last name is the one that the linker finds with -lNAME.
24024 library_names_spec=$lt_library_names_spec
24026 # The coded name of the library, if different from the real name.
24027 soname_spec=$lt_soname_spec
24029 # Commands used to build and install an old-style archive.
24031 old_archive_cmds=$lt_old_archive_cmds_GCJ
24032 old_postinstall_cmds=$lt_old_postinstall_cmds
24033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24035 # Create an old-style archive from a shared archive.
24036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24038 # Create a temporary old-style archive to link instead of a shared archive.
24039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24041 # Commands used to build and install a shared archive.
24042 archive_cmds=$lt_archive_cmds_GCJ
24043 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24044 postinstall_cmds=$lt_postinstall_cmds
24045 postuninstall_cmds=$lt_postuninstall_cmds
24047 # Commands used to build a loadable module (assumed same as above if empty)
24048 module_cmds=$lt_module_cmds_GCJ
24049 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24051 # Commands to strip libraries.
24052 old_striplib=$lt_old_striplib
24053 striplib=$lt_striplib
24055 # Dependencies to place before the objects being linked to create a
24057 predep_objects=$lt_predep_objects_GCJ
24059 # Dependencies to place after the objects being linked to create a
24061 postdep_objects=$lt_postdep_objects_GCJ
24063 # Dependencies to place before the objects being linked to create a
24065 predeps=$lt_predeps_GCJ
24067 # Dependencies to place after the objects being linked to create a
24069 postdeps=$lt_postdeps_GCJ
24071 # The library search path used internally by the compiler when linking
24072 # a shared library.
24073 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24075 # Method to check whether dependent libraries are shared objects.
24076 deplibs_check_method=$lt_deplibs_check_method
24078 # Command to use when deplibs_check_method == file_magic.
24079 file_magic_cmd=$lt_file_magic_cmd
24081 # Flag that allows shared libraries with undefined symbols to be built.
24082 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24084 # Flag that forces no undefined symbols.
24085 no_undefined_flag=$lt_no_undefined_flag_GCJ
24087 # Commands used to finish a libtool library installation in a directory.
24088 finish_cmds=$lt_finish_cmds
24090 # Same as above, but a single script fragment to be evaled but not shown.
24091 finish_eval=$lt_finish_eval
24093 # Take the output of nm and produce a listing of raw symbols and C names.
24094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24096 # Transform the output of nm in a proper C declaration
24097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24099 # Transform the output of nm in a C name address pair
24100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24102 # This is the shared library runtime path variable.
24103 runpath_var=$runpath_var
24105 # This is the shared library path variable.
24106 shlibpath_var=$shlibpath_var
24108 # Is shlibpath searched before the hard-coded library search path?
24109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24111 # How to hardcode a shared library path into an executable.
24112 hardcode_action=$hardcode_action_GCJ
24114 # Whether we should hardcode library paths into libraries.
24115 hardcode_into_libs=$hardcode_into_libs
24117 # Flag to hardcode \$libdir into a binary during linking.
24118 # This must work even if \$libdir does not exist.
24119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24121 # If ld is used when linking, flag to hardcode \$libdir into
24122 # a binary during linking. This must work even if \$libdir does
24124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24126 # Whether we need a single -rpath flag with a separated argument.
24127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24130 # resulting binary.
24131 hardcode_direct=$hardcode_direct_GCJ
24133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24134 # resulting binary.
24135 hardcode_minus_L=$hardcode_minus_L_GCJ
24137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24138 # the resulting binary.
24139 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24141 # Set to yes if building a shared library automatically hardcodes DIR into the library
24142 # and all subsequent libraries and executables linked against it.
24143 hardcode_automatic=$hardcode_automatic_GCJ
24145 # Variables whose values should be saved in libtool wrapper scripts and
24146 # restored at relink time.
24147 variables_saved_for_relink="$variables_saved_for_relink"
24149 # Whether libtool must link a program against all its dependency libraries.
24150 link_all_deplibs=$link_all_deplibs_GCJ
24152 # Compile-time system search path for libraries
24153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24155 # Run-time system search path for libraries
24156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24158 # Fix the shell variable \$srcfile for the compiler.
24159 fix_srcfile_path="$fix_srcfile_path_GCJ"
24161 # Set to yes if exported symbols are required.
24162 always_export_symbols=$always_export_symbols_GCJ
24164 # The commands to list exported symbols.
24165 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24167 # The commands to extract the exported symbol list from a shared archive.
24168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24170 # Symbols that should not be listed in the preloaded symbols.
24171 exclude_expsyms=$lt_exclude_expsyms_GCJ
24173 # Symbols that must always be exported.
24174 include_expsyms=$lt_include_expsyms_GCJ
24176 # ### END LIBTOOL TAG CONFIG: $tagname
24182 # If there is no Makefile yet, we rely on a make rule to execute
24183 # `config.status --recheck' to rerun these tests and create the
24184 # libtool script then.
24185 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24186 if test -f "$ltmain_in"; then
24187 test -f Makefile && make "$ltmain"
24193 ac_cpp='$CPP $CPPFLAGS'
24194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24207 ac_cpp='$CPP $CPPFLAGS'
24208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24213 # Source file extension for RC test sources.
24216 # Object file extension for compiled RC test sources.
24220 # Code to be used in simple compile tests
24221 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24223 # Code to be used in simple link tests
24224 lt_simple_link_test_code="$lt_simple_compile_test_code"
24226 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24228 # If no C compiler was specified, use CC.
24231 # Allow CC to be a program name with arguments.
24235 # Allow CC to be a program name with arguments.
24240 lt_cv_prog_compiler_c_o_RC=yes
24242 # The else clause should only fire when bootstrapping the
24243 # libtool distribution, otherwise you forgot to ship ltmain.sh
24244 # with your package, and you will get complaints that there are
24245 # no rules to generate ltmain.sh.
24246 if test -f "$ltmain"; then
24247 # See if we are running on zsh, and set the options which allow our commands through
24248 # without removal of \ escapes.
24249 if test -n "${ZSH_VERSION+set}" ; then
24250 setopt NO_GLOB_SUBST
24252 # Now quote all the things that may contain metacharacters while being
24253 # careful not to overquote the AC_SUBSTed values. We take copies of the
24254 # variables and quote the copies for generation of the libtool script.
24255 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24257 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24258 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24259 deplibs_check_method reload_flag reload_cmds need_locks \
24260 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24261 lt_cv_sys_global_symbol_to_c_name_address \
24262 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24263 old_postinstall_cmds old_postuninstall_cmds \
24267 lt_prog_compiler_wl_RC \
24268 lt_prog_compiler_pic_RC \
24269 lt_prog_compiler_static_RC \
24270 lt_prog_compiler_no_builtin_flag_RC \
24271 export_dynamic_flag_spec_RC \
24272 thread_safe_flag_spec_RC \
24273 whole_archive_flag_spec_RC \
24274 enable_shared_with_static_runtimes_RC \
24275 old_archive_cmds_RC \
24276 old_archive_from_new_cmds_RC \
24277 predep_objects_RC \
24278 postdep_objects_RC \
24281 compiler_lib_search_path_RC \
24283 archive_expsym_cmds_RC \
24284 postinstall_cmds_RC \
24285 postuninstall_cmds_RC \
24286 old_archive_from_expsyms_cmds_RC \
24287 allow_undefined_flag_RC \
24288 no_undefined_flag_RC \
24289 export_symbols_cmds_RC \
24290 hardcode_libdir_flag_spec_RC \
24291 hardcode_libdir_flag_spec_ld_RC \
24292 hardcode_libdir_separator_RC \
24293 hardcode_automatic_RC \
24295 module_expsym_cmds_RC \
24296 lt_cv_prog_compiler_c_o_RC \
24297 exclude_expsyms_RC \
24298 include_expsyms_RC; do
24301 old_archive_cmds_RC | \
24302 old_archive_from_new_cmds_RC | \
24303 archive_cmds_RC | \
24304 archive_expsym_cmds_RC | \
24306 module_expsym_cmds_RC | \
24307 old_archive_from_expsyms_cmds_RC | \
24308 export_symbols_cmds_RC | \
24309 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24310 postinstall_cmds | postuninstall_cmds | \
24311 old_postinstall_cmds | old_postuninstall_cmds | \
24312 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24313 # Double-quote double-evaled strings.
24314 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24317 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24323 *'\$0 --fallback-echo"')
24324 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24330 cat <<__EOF__ >> "$cfgfile"
24331 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24333 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24335 # Shell to use when invoking shell scripts.
24338 # Whether or not to build shared libraries.
24339 build_libtool_libs=$enable_shared
24341 # Whether or not to build static libraries.
24342 build_old_libs=$enable_static
24344 # Whether or not to add -lc for building shared libraries.
24345 build_libtool_need_lc=$archive_cmds_need_lc_RC
24347 # Whether or not to disallow shared libs when runtime libs are static
24348 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24350 # Whether or not to optimize for fast installation.
24351 fast_install=$enable_fast_install
24354 host_alias=$host_alias
24357 # An echo program that does not interpret backslashes.
24362 AR_FLAGS=$lt_AR_FLAGS
24367 # A language-specific compiler.
24370 # Is the compiler the GNU C compiler?
24376 # The linker used to build libraries.
24379 # Whether we need hard or soft links.
24382 # A BSD-compatible nm program.
24385 # A symbol stripping program
24388 # Used to examine libraries when file_magic_cmd begins "file"
24389 MAGIC_CMD=$MAGIC_CMD
24391 # Used on cygwin: DLL creation program.
24394 # Used on cygwin: object dumper.
24397 # Used on cygwin: assembler.
24400 # The name of the directory that contains temporary libtool files.
24403 # How to create reloadable object files.
24404 reload_flag=$lt_reload_flag
24405 reload_cmds=$lt_reload_cmds
24407 # How to pass a linker flag through the compiler.
24408 wl=$lt_lt_prog_compiler_wl_RC
24410 # Object file suffix (normally "o").
24411 objext="$ac_objext"
24413 # Old archive suffix (normally "a").
24416 # Shared library suffix (normally ".so").
24417 shrext_cmds='$shrext_cmds'
24419 # Executable file suffix (normally "").
24422 # Additional compiler flags for building library objects.
24423 pic_flag=$lt_lt_prog_compiler_pic_RC
24426 # What is the maximum length of a command?
24427 max_cmd_len=$lt_cv_sys_max_cmd_len
24429 # Does compiler simultaneously support -c and -o options?
24430 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24432 # Must we lock files when doing compilation ?
24433 need_locks=$lt_need_locks
24435 # Do we need the lib prefix for modules?
24436 need_lib_prefix=$need_lib_prefix
24438 # Do we need a version for libraries?
24439 need_version=$need_version
24441 # Whether dlopen is supported.
24442 dlopen_support=$enable_dlopen
24444 # Whether dlopen of programs is supported.
24445 dlopen_self=$enable_dlopen_self
24447 # Whether dlopen of statically linked programs is supported.
24448 dlopen_self_static=$enable_dlopen_self_static
24450 # Compiler flag to prevent dynamic linking.
24451 link_static_flag=$lt_lt_prog_compiler_static_RC
24453 # Compiler flag to turn off builtin functions.
24454 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24456 # Compiler flag to allow reflexive dlopens.
24457 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24459 # Compiler flag to generate shared objects directly from archives.
24460 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24462 # Compiler flag to generate thread-safe objects.
24463 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24465 # Library versioning type.
24466 version_type=$version_type
24468 # Format of library name prefix.
24469 libname_spec=$lt_libname_spec
24471 # List of archive names. First name is the real one, the rest are links.
24472 # The last name is the one that the linker finds with -lNAME.
24473 library_names_spec=$lt_library_names_spec
24475 # The coded name of the library, if different from the real name.
24476 soname_spec=$lt_soname_spec
24478 # Commands used to build and install an old-style archive.
24480 old_archive_cmds=$lt_old_archive_cmds_RC
24481 old_postinstall_cmds=$lt_old_postinstall_cmds
24482 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24484 # Create an old-style archive from a shared archive.
24485 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24487 # Create a temporary old-style archive to link instead of a shared archive.
24488 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24490 # Commands used to build and install a shared archive.
24491 archive_cmds=$lt_archive_cmds_RC
24492 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24493 postinstall_cmds=$lt_postinstall_cmds
24494 postuninstall_cmds=$lt_postuninstall_cmds
24496 # Commands used to build a loadable module (assumed same as above if empty)
24497 module_cmds=$lt_module_cmds_RC
24498 module_expsym_cmds=$lt_module_expsym_cmds_RC
24500 # Commands to strip libraries.
24501 old_striplib=$lt_old_striplib
24502 striplib=$lt_striplib
24504 # Dependencies to place before the objects being linked to create a
24506 predep_objects=$lt_predep_objects_RC
24508 # Dependencies to place after the objects being linked to create a
24510 postdep_objects=$lt_postdep_objects_RC
24512 # Dependencies to place before the objects being linked to create a
24514 predeps=$lt_predeps_RC
24516 # Dependencies to place after the objects being linked to create a
24518 postdeps=$lt_postdeps_RC
24520 # The library search path used internally by the compiler when linking
24521 # a shared library.
24522 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24524 # Method to check whether dependent libraries are shared objects.
24525 deplibs_check_method=$lt_deplibs_check_method
24527 # Command to use when deplibs_check_method == file_magic.
24528 file_magic_cmd=$lt_file_magic_cmd
24530 # Flag that allows shared libraries with undefined symbols to be built.
24531 allow_undefined_flag=$lt_allow_undefined_flag_RC
24533 # Flag that forces no undefined symbols.
24534 no_undefined_flag=$lt_no_undefined_flag_RC
24536 # Commands used to finish a libtool library installation in a directory.
24537 finish_cmds=$lt_finish_cmds
24539 # Same as above, but a single script fragment to be evaled but not shown.
24540 finish_eval=$lt_finish_eval
24542 # Take the output of nm and produce a listing of raw symbols and C names.
24543 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24545 # Transform the output of nm in a proper C declaration
24546 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24548 # Transform the output of nm in a C name address pair
24549 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24551 # This is the shared library runtime path variable.
24552 runpath_var=$runpath_var
24554 # This is the shared library path variable.
24555 shlibpath_var=$shlibpath_var
24557 # Is shlibpath searched before the hard-coded library search path?
24558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24560 # How to hardcode a shared library path into an executable.
24561 hardcode_action=$hardcode_action_RC
24563 # Whether we should hardcode library paths into libraries.
24564 hardcode_into_libs=$hardcode_into_libs
24566 # Flag to hardcode \$libdir into a binary during linking.
24567 # This must work even if \$libdir does not exist.
24568 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24570 # If ld is used when linking, flag to hardcode \$libdir into
24571 # a binary during linking. This must work even if \$libdir does
24573 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24575 # Whether we need a single -rpath flag with a separated argument.
24576 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24578 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24579 # resulting binary.
24580 hardcode_direct=$hardcode_direct_RC
24582 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24583 # resulting binary.
24584 hardcode_minus_L=$hardcode_minus_L_RC
24586 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24587 # the resulting binary.
24588 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24590 # Set to yes if building a shared library automatically hardcodes DIR into the library
24591 # and all subsequent libraries and executables linked against it.
24592 hardcode_automatic=$hardcode_automatic_RC
24594 # Variables whose values should be saved in libtool wrapper scripts and
24595 # restored at relink time.
24596 variables_saved_for_relink="$variables_saved_for_relink"
24598 # Whether libtool must link a program against all its dependency libraries.
24599 link_all_deplibs=$link_all_deplibs_RC
24601 # Compile-time system search path for libraries
24602 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24604 # Run-time system search path for libraries
24605 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24607 # Fix the shell variable \$srcfile for the compiler.
24608 fix_srcfile_path="$fix_srcfile_path_RC"
24610 # Set to yes if exported symbols are required.
24611 always_export_symbols=$always_export_symbols_RC
24613 # The commands to list exported symbols.
24614 export_symbols_cmds=$lt_export_symbols_cmds_RC
24616 # The commands to extract the exported symbol list from a shared archive.
24617 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24619 # Symbols that should not be listed in the preloaded symbols.
24620 exclude_expsyms=$lt_exclude_expsyms_RC
24622 # Symbols that must always be exported.
24623 include_expsyms=$lt_include_expsyms_RC
24625 # ### END LIBTOOL TAG CONFIG: $tagname
24631 # If there is no Makefile yet, we rely on a make rule to execute
24632 # `config.status --recheck' to rerun these tests and create the
24633 # libtool script then.
24634 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24635 if test -f "$ltmain_in"; then
24636 test -f Makefile && make "$ltmain"
24642 ac_cpp='$CPP $CPPFLAGS'
24643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24652 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24653 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24654 { (exit 1); exit 1; }; }
24658 # Append the new tag name to the list of available tags.
24659 if test -n "$tagname" ; then
24660 available_tags="$available_tags $tagname"
24666 # Now substitute the updated list of available tags.
24667 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24668 mv "${ofile}T" "$ofile"
24672 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24673 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24674 { (exit 1); exit 1; }; }
24680 # This can be used to rebuild libtool when needed
24681 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24683 # Always use our own libtool.
24684 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24686 # Prevent multiple expansion
24708 if test "$lt_cv_dlopen_self" = "yes" ; then
24710 cat >>confdefs.h <<\_ACEOF
24711 #define CAN_DLOPEN_SELF 1
24716 etags_version=`$ETAGS --version 2>&1`
24717 case "$etags_version" in
24718 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24719 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24720 *) ETAGSFLAGS="" ;;
24722 ETAGSFLAGS=$ETAGSFLAGS
24725 if test "$WITH_LLVMGCCDIR" = "default" ; then
24726 LLVMGCC="llvm-gcc${EXEEXT}"
24727 LLVMGXX="llvm-g++${EXEEXT}"
24728 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24729 set dummy $LLVMGCC; ac_word=$2
24730 echo "$as_me:$LINENO: checking for $ac_word" >&5
24731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24732 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24733 echo $ECHO_N "(cached) $ECHO_C" >&6
24737 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24741 for as_dir in $PATH
24744 test -z "$as_dir" && as_dir=.
24745 for ac_exec_ext in '' $ac_executable_extensions; do
24746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24747 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24757 LLVMGCC=$ac_cv_path_LLVMGCC
24759 if test -n "$LLVMGCC"; then
24760 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24761 echo "${ECHO_T}$LLVMGCC" >&6
24763 echo "$as_me:$LINENO: result: no" >&5
24764 echo "${ECHO_T}no" >&6
24767 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24768 set dummy $LLVMGXX; ac_word=$2
24769 echo "$as_me:$LINENO: checking for $ac_word" >&5
24770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24771 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24772 echo $ECHO_N "(cached) $ECHO_C" >&6
24776 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24780 for as_dir in $PATH
24783 test -z "$as_dir" && as_dir=.
24784 for ac_exec_ext in '' $ac_executable_extensions; do
24785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24786 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24796 LLVMGXX=$ac_cv_path_LLVMGXX
24798 if test -n "$LLVMGXX"; then
24799 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24800 echo "${ECHO_T}$LLVMGXX" >&6
24802 echo "$as_me:$LINENO: result: no" >&5
24803 echo "${ECHO_T}no" >&6
24807 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24808 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24815 echo "$as_me:$LINENO: checking tool compatibility" >&5
24816 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24829 if test "$GCC" != "yes" && test "$ICC" != "yes"
24831 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24832 echo "$as_me: error: gcc|icc required but not found" >&2;}
24833 { (exit 1); exit 1; }; }
24836 if test "$GXX" != "yes" && test "$IXX" != "yes"
24838 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24839 echo "$as_me: error: g++|icc required but not found" >&2;}
24840 { (exit 1); exit 1; }; }
24843 if test "$GCC" = "yes"
24845 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24846 if test "$gccmajor" -lt "3"
24848 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24849 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24850 { (exit 1); exit 1; }; }
24854 if test -z "$llvm_cv_gnu_make_command"
24856 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24857 echo "$as_me: error: GNU Make required but not found" >&2;}
24858 { (exit 1); exit 1; }; }
24861 echo "$as_me:$LINENO: result: ok" >&5
24862 echo "${ECHO_T}ok" >&6
24866 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24867 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24868 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24869 echo $ECHO_N "(cached) $ECHO_C" >&6
24871 ac_check_lib_save_LIBS=$LIBS
24873 cat >conftest.$ac_ext <<_ACEOF
24876 cat confdefs.h >>conftest.$ac_ext
24877 cat >>conftest.$ac_ext <<_ACEOF
24878 /* end confdefs.h. */
24880 /* Override any gcc2 internal prototype to avoid an error. */
24884 /* We use char because int might match the return type of a gcc2
24885 builtin and then its argument prototype would still apply. */
24895 rm -f conftest.$ac_objext conftest$ac_exeext
24896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24897 (eval $ac_link) 2>conftest.er1
24899 grep -v '^ *+' conftest.er1 >conftest.err
24901 cat conftest.err >&5
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); } &&
24904 { ac_try='test -z "$ac_c_werror_flag"
24905 || test ! -s conftest.err'
24906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24907 (eval $ac_try) 2>&5
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); }; } &&
24911 { ac_try='test -s conftest$ac_exeext'
24912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913 (eval $ac_try) 2>&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); }; }; then
24917 ac_cv_lib_elf_elf_begin=yes
24919 echo "$as_me: failed program was:" >&5
24920 sed 's/^/| /' conftest.$ac_ext >&5
24922 ac_cv_lib_elf_elf_begin=no
24924 rm -f conftest.err conftest.$ac_objext \
24925 conftest$ac_exeext conftest.$ac_ext
24926 LIBS=$ac_check_lib_save_LIBS
24928 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24929 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24930 if test $ac_cv_lib_elf_elf_begin = yes; then
24931 cat >>confdefs.h <<_ACEOF
24932 #define HAVE_LIBELF 1
24941 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24942 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24943 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24944 echo $ECHO_N "(cached) $ECHO_C" >&6
24946 ac_func_search_save_LIBS=$LIBS
24947 ac_cv_search_lt_dlopen=no
24948 cat >conftest.$ac_ext <<_ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h. */
24955 /* Override any gcc2 internal prototype to avoid an error. */
24959 /* We use char because int might match the return type of a gcc2
24960 builtin and then its argument prototype would still apply. */
24970 rm -f conftest.$ac_objext conftest$ac_exeext
24971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24972 (eval $ac_link) 2>conftest.er1
24974 grep -v '^ *+' conftest.er1 >conftest.err
24976 cat conftest.err >&5
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); } &&
24979 { ac_try='test -z "$ac_c_werror_flag"
24980 || test ! -s conftest.err'
24981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24982 (eval $ac_try) 2>&5
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); }; } &&
24986 { ac_try='test -s conftest$ac_exeext'
24987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24988 (eval $ac_try) 2>&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); }; }; then
24992 ac_cv_search_lt_dlopen="none required"
24994 echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
24998 rm -f conftest.err conftest.$ac_objext \
24999 conftest$ac_exeext conftest.$ac_ext
25000 if test "$ac_cv_search_lt_dlopen" = no; then
25001 for ac_lib in ltdl; do
25002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25003 cat >conftest.$ac_ext <<_ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h. */
25010 /* Override any gcc2 internal prototype to avoid an error. */
25014 /* We use char because int might match the return type of a gcc2
25015 builtin and then its argument prototype would still apply. */
25025 rm -f conftest.$ac_objext conftest$ac_exeext
25026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25027 (eval $ac_link) 2>conftest.er1
25029 grep -v '^ *+' conftest.er1 >conftest.err
25031 cat conftest.err >&5
25032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); } &&
25034 { ac_try='test -z "$ac_c_werror_flag"
25035 || test ! -s conftest.err'
25036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25037 (eval $ac_try) 2>&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); }; } &&
25041 { ac_try='test -s conftest$ac_exeext'
25042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25043 (eval $ac_try) 2>&5
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); }; }; then
25047 ac_cv_search_lt_dlopen="-l$ac_lib"
25050 echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25054 rm -f conftest.err conftest.$ac_objext \
25055 conftest$ac_exeext conftest.$ac_ext
25058 LIBS=$ac_func_search_save_LIBS
25060 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25061 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25062 if test "$ac_cv_search_lt_dlopen" != no; then
25063 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25065 cat >>confdefs.h <<\_ACEOF
25066 #define HAVE_LT_DLOPEN 1
25070 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25071 not be available" >&5
25072 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25073 not be available" >&2;}
25077 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25078 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25079 if test "${ac_cv_search_dlopen+set}" = set; then
25080 echo $ECHO_N "(cached) $ECHO_C" >&6
25082 ac_func_search_save_LIBS=$LIBS
25083 ac_cv_search_dlopen=no
25084 cat >conftest.$ac_ext <<_ACEOF
25087 cat confdefs.h >>conftest.$ac_ext
25088 cat >>conftest.$ac_ext <<_ACEOF
25089 /* end confdefs.h. */
25091 /* Override any gcc2 internal prototype to avoid an error. */
25095 /* We use char because int might match the return type of a gcc2
25096 builtin and then its argument prototype would still apply. */
25106 rm -f conftest.$ac_objext conftest$ac_exeext
25107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25108 (eval $ac_link) 2>conftest.er1
25110 grep -v '^ *+' conftest.er1 >conftest.err
25112 cat conftest.err >&5
25113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114 (exit $ac_status); } &&
25115 { ac_try='test -z "$ac_c_werror_flag"
25116 || test ! -s conftest.err'
25117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118 (eval $ac_try) 2>&5
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); }; } &&
25122 { ac_try='test -s conftest$ac_exeext'
25123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25124 (eval $ac_try) 2>&5
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }; }; then
25128 ac_cv_search_dlopen="none required"
25130 echo "$as_me: failed program was:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25134 rm -f conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
25136 if test "$ac_cv_search_dlopen" = no; then
25137 for ac_lib in dl; do
25138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25139 cat >conftest.$ac_ext <<_ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h. */
25146 /* Override any gcc2 internal prototype to avoid an error. */
25150 /* We use char because int might match the return type of a gcc2
25151 builtin and then its argument prototype would still apply. */
25161 rm -f conftest.$ac_objext conftest$ac_exeext
25162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25163 (eval $ac_link) 2>conftest.er1
25165 grep -v '^ *+' conftest.er1 >conftest.err
25167 cat conftest.err >&5
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } &&
25170 { ac_try='test -z "$ac_c_werror_flag"
25171 || test ! -s conftest.err'
25172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173 (eval $ac_try) 2>&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; } &&
25177 { ac_try='test -s conftest$ac_exeext'
25178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179 (eval $ac_try) 2>&5
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); }; }; then
25183 ac_cv_search_dlopen="-l$ac_lib"
25186 echo "$as_me: failed program was:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25190 rm -f conftest.err conftest.$ac_objext \
25191 conftest$ac_exeext conftest.$ac_ext
25194 LIBS=$ac_func_search_save_LIBS
25196 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25197 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25198 if test "$ac_cv_search_dlopen" != no; then
25199 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25201 cat >>confdefs.h <<\_ACEOF
25202 #define HAVE_DLOPEN 1
25206 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25207 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25211 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25212 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25213 if test "${ac_cv_search_mallinfo+set}" = set; then
25214 echo $ECHO_N "(cached) $ECHO_C" >&6
25216 ac_func_search_save_LIBS=$LIBS
25217 ac_cv_search_mallinfo=no
25218 cat >conftest.$ac_ext <<_ACEOF
25221 cat confdefs.h >>conftest.$ac_ext
25222 cat >>conftest.$ac_ext <<_ACEOF
25223 /* end confdefs.h. */
25225 /* Override any gcc2 internal prototype to avoid an error. */
25229 /* We use char because int might match the return type of a gcc2
25230 builtin and then its argument prototype would still apply. */
25240 rm -f conftest.$ac_objext conftest$ac_exeext
25241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25242 (eval $ac_link) 2>conftest.er1
25244 grep -v '^ *+' conftest.er1 >conftest.err
25246 cat conftest.err >&5
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); } &&
25249 { ac_try='test -z "$ac_c_werror_flag"
25250 || test ! -s conftest.err'
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; } &&
25256 { ac_try='test -s conftest$ac_exeext'
25257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258 (eval $ac_try) 2>&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
25262 ac_cv_search_mallinfo="none required"
25264 echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25268 rm -f conftest.err conftest.$ac_objext \
25269 conftest$ac_exeext conftest.$ac_ext
25270 if test "$ac_cv_search_mallinfo" = no; then
25271 for ac_lib in malloc; do
25272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25273 cat >conftest.$ac_ext <<_ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h. */
25280 /* Override any gcc2 internal prototype to avoid an error. */
25284 /* We use char because int might match the return type of a gcc2
25285 builtin and then its argument prototype would still apply. */
25295 rm -f conftest.$ac_objext conftest$ac_exeext
25296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25297 (eval $ac_link) 2>conftest.er1
25299 grep -v '^ *+' conftest.er1 >conftest.err
25301 cat conftest.err >&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); } &&
25304 { ac_try='test -z "$ac_c_werror_flag"
25305 || test ! -s conftest.err'
25306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307 (eval $ac_try) 2>&5
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); }; } &&
25311 { ac_try='test -s conftest$ac_exeext'
25312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25313 (eval $ac_try) 2>&5
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); }; }; then
25317 ac_cv_search_mallinfo="-l$ac_lib"
25320 echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25324 rm -f conftest.err conftest.$ac_objext \
25325 conftest$ac_exeext conftest.$ac_ext
25328 LIBS=$ac_func_search_save_LIBS
25330 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25331 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25332 if test "$ac_cv_search_mallinfo" != no; then
25333 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25335 cat >>confdefs.h <<\_ACEOF
25336 #define HAVE_MALLINFO 1
25343 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25344 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25345 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25346 echo $ECHO_N "(cached) $ECHO_C" >&6
25348 ac_check_lib_save_LIBS=$LIBS
25349 LIBS="-lpthread $LIBS"
25350 cat >conftest.$ac_ext <<_ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h. */
25357 /* Override any gcc2 internal prototype to avoid an error. */
25361 /* We use char because int might match the return type of a gcc2
25362 builtin and then its argument prototype would still apply. */
25363 char pthread_mutex_init ();
25367 pthread_mutex_init ();
25372 rm -f conftest.$ac_objext conftest$ac_exeext
25373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25374 (eval $ac_link) 2>conftest.er1
25376 grep -v '^ *+' conftest.er1 >conftest.err
25378 cat conftest.err >&5
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); } &&
25381 { ac_try='test -z "$ac_c_werror_flag"
25382 || test ! -s conftest.err'
25383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; } &&
25388 { ac_try='test -s conftest$ac_exeext'
25389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25390 (eval $ac_try) 2>&5
25392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); }; }; then
25394 ac_cv_lib_pthread_pthread_mutex_init=yes
25396 echo "$as_me: failed program was:" >&5
25397 sed 's/^/| /' conftest.$ac_ext >&5
25399 ac_cv_lib_pthread_pthread_mutex_init=no
25401 rm -f conftest.err conftest.$ac_objext \
25402 conftest$ac_exeext conftest.$ac_ext
25403 LIBS=$ac_check_lib_save_LIBS
25405 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25406 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25407 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25408 cat >>confdefs.h <<_ACEOF
25409 #define HAVE_LIBPTHREAD 1
25412 LIBS="-lpthread $LIBS"
25416 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25417 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25418 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25419 echo $ECHO_N "(cached) $ECHO_C" >&6
25421 ac_func_search_save_LIBS=$LIBS
25422 ac_cv_search_pthread_mutex_lock=no
25423 cat >conftest.$ac_ext <<_ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h. */
25430 /* Override any gcc2 internal prototype to avoid an error. */
25434 /* We use char because int might match the return type of a gcc2
25435 builtin and then its argument prototype would still apply. */
25436 char pthread_mutex_lock ();
25440 pthread_mutex_lock ();
25445 rm -f conftest.$ac_objext conftest$ac_exeext
25446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25447 (eval $ac_link) 2>conftest.er1
25449 grep -v '^ *+' conftest.er1 >conftest.err
25451 cat conftest.err >&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } &&
25454 { ac_try='test -z "$ac_c_werror_flag"
25455 || test ! -s conftest.err'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; } &&
25461 { ac_try='test -s conftest$ac_exeext'
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
25467 ac_cv_search_pthread_mutex_lock="none required"
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25473 rm -f conftest.err conftest.$ac_objext \
25474 conftest$ac_exeext conftest.$ac_ext
25475 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25476 for ac_lib in pthread; do
25477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25478 cat >conftest.$ac_ext <<_ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h. */
25485 /* Override any gcc2 internal prototype to avoid an error. */
25489 /* We use char because int might match the return type of a gcc2
25490 builtin and then its argument prototype would still apply. */
25491 char pthread_mutex_lock ();
25495 pthread_mutex_lock ();
25500 rm -f conftest.$ac_objext conftest$ac_exeext
25501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25502 (eval $ac_link) 2>conftest.er1
25504 grep -v '^ *+' conftest.er1 >conftest.err
25506 cat conftest.err >&5
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } &&
25509 { ac_try='test -z "$ac_c_werror_flag"
25510 || test ! -s conftest.err'
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; } &&
25516 { ac_try='test -s conftest$ac_exeext'
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; }; then
25522 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25525 echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25529 rm -f conftest.err conftest.$ac_objext \
25530 conftest$ac_exeext conftest.$ac_ext
25533 LIBS=$ac_func_search_save_LIBS
25535 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25536 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25537 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25538 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25540 cat >>confdefs.h <<\_ACEOF
25541 #define HAVE_PTHREAD_MUTEX_LOCK 1
25553 ac_header_dirent=no
25554 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25555 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25556 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25557 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25559 echo $ECHO_N "(cached) $ECHO_C" >&6
25561 cat >conftest.$ac_ext <<_ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h. */
25567 #include <sys/types.h>
25579 rm -f conftest.$ac_objext
25580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25581 (eval $ac_compile) 2>conftest.er1
25583 grep -v '^ *+' conftest.er1 >conftest.err
25585 cat conftest.err >&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } &&
25588 { ac_try='test -z "$ac_c_werror_flag"
25589 || test ! -s conftest.err'
25590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591 (eval $ac_try) 2>&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); }; } &&
25595 { ac_try='test -s conftest.$ac_objext'
25596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597 (eval $ac_try) 2>&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }; }; then
25601 eval "$as_ac_Header=yes"
25603 echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25606 eval "$as_ac_Header=no"
25608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25613 cat >>confdefs.h <<_ACEOF
25614 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25617 ac_header_dirent=$ac_hdr; break
25621 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25622 if test $ac_header_dirent = dirent.h; then
25623 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25624 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25625 if test "${ac_cv_search_opendir+set}" = set; then
25626 echo $ECHO_N "(cached) $ECHO_C" >&6
25628 ac_func_search_save_LIBS=$LIBS
25629 ac_cv_search_opendir=no
25630 cat >conftest.$ac_ext <<_ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25637 /* Override any gcc2 internal prototype to avoid an error. */
25641 /* We use char because int might match the return type of a gcc2
25642 builtin and then its argument prototype would still apply. */
25652 rm -f conftest.$ac_objext conftest$ac_exeext
25653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25654 (eval $ac_link) 2>conftest.er1
25656 grep -v '^ *+' conftest.er1 >conftest.err
25658 cat conftest.err >&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); } &&
25661 { ac_try='test -z "$ac_c_werror_flag"
25662 || test ! -s conftest.err'
25663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664 (eval $ac_try) 2>&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); }; } &&
25668 { ac_try='test -s conftest$ac_exeext'
25669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670 (eval $ac_try) 2>&5
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); }; }; then
25674 ac_cv_search_opendir="none required"
25676 echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25680 rm -f conftest.err conftest.$ac_objext \
25681 conftest$ac_exeext conftest.$ac_ext
25682 if test "$ac_cv_search_opendir" = no; then
25683 for ac_lib in dir; do
25684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25685 cat >conftest.$ac_ext <<_ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h. */
25692 /* Override any gcc2 internal prototype to avoid an error. */
25696 /* We use char because int might match the return type of a gcc2
25697 builtin and then its argument prototype would still apply. */
25707 rm -f conftest.$ac_objext conftest$ac_exeext
25708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25709 (eval $ac_link) 2>conftest.er1
25711 grep -v '^ *+' conftest.er1 >conftest.err
25713 cat conftest.err >&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); } &&
25716 { ac_try='test -z "$ac_c_werror_flag"
25717 || test ! -s conftest.err'
25718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25719 (eval $ac_try) 2>&5
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); }; } &&
25723 { ac_try='test -s conftest$ac_exeext'
25724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725 (eval $ac_try) 2>&5
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); }; }; then
25729 ac_cv_search_opendir="-l$ac_lib"
25732 echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25736 rm -f conftest.err conftest.$ac_objext \
25737 conftest$ac_exeext conftest.$ac_ext
25740 LIBS=$ac_func_search_save_LIBS
25742 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25743 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25744 if test "$ac_cv_search_opendir" != no; then
25745 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25750 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25752 if test "${ac_cv_search_opendir+set}" = set; then
25753 echo $ECHO_N "(cached) $ECHO_C" >&6
25755 ac_func_search_save_LIBS=$LIBS
25756 ac_cv_search_opendir=no
25757 cat >conftest.$ac_ext <<_ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h. */
25764 /* Override any gcc2 internal prototype to avoid an error. */
25768 /* We use char because int might match the return type of a gcc2
25769 builtin and then its argument prototype would still apply. */
25779 rm -f conftest.$ac_objext conftest$ac_exeext
25780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25781 (eval $ac_link) 2>conftest.er1
25783 grep -v '^ *+' conftest.er1 >conftest.err
25785 cat conftest.err >&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); } &&
25788 { ac_try='test -z "$ac_c_werror_flag"
25789 || test ! -s conftest.err'
25790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25791 (eval $ac_try) 2>&5
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); }; } &&
25795 { ac_try='test -s conftest$ac_exeext'
25796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25797 (eval $ac_try) 2>&5
25799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800 (exit $ac_status); }; }; then
25801 ac_cv_search_opendir="none required"
25803 echo "$as_me: failed program was:" >&5
25804 sed 's/^/| /' conftest.$ac_ext >&5
25807 rm -f conftest.err conftest.$ac_objext \
25808 conftest$ac_exeext conftest.$ac_ext
25809 if test "$ac_cv_search_opendir" = no; then
25810 for ac_lib in x; do
25811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25812 cat >conftest.$ac_ext <<_ACEOF
25815 cat confdefs.h >>conftest.$ac_ext
25816 cat >>conftest.$ac_ext <<_ACEOF
25817 /* end confdefs.h. */
25819 /* Override any gcc2 internal prototype to avoid an error. */
25823 /* We use char because int might match the return type of a gcc2
25824 builtin and then its argument prototype would still apply. */
25834 rm -f conftest.$ac_objext conftest$ac_exeext
25835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25836 (eval $ac_link) 2>conftest.er1
25838 grep -v '^ *+' conftest.er1 >conftest.err
25840 cat conftest.err >&5
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } &&
25843 { ac_try='test -z "$ac_c_werror_flag"
25844 || test ! -s conftest.err'
25845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; } &&
25850 { ac_try='test -s conftest$ac_exeext'
25851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); }; }; then
25856 ac_cv_search_opendir="-l$ac_lib"
25859 echo "$as_me: failed program was:" >&5
25860 sed 's/^/| /' conftest.$ac_ext >&5
25863 rm -f conftest.err conftest.$ac_objext \
25864 conftest$ac_exeext conftest.$ac_ext
25867 LIBS=$ac_func_search_save_LIBS
25869 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25870 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25871 if test "$ac_cv_search_opendir" != no; then
25872 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25878 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25879 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25880 if test "${ac_cv_header_mmap_anon+set}" = set; then
25881 echo $ECHO_N "(cached) $ECHO_C" >&6
25884 ac_cpp='$CPP $CPPFLAGS'
25885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25889 cat >conftest.$ac_ext <<_ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895 #include <sys/mman.h>
25896 #include <unistd.h>
25901 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25906 rm -f conftest.$ac_objext
25907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25908 (eval $ac_compile) 2>conftest.er1
25910 grep -v '^ *+' conftest.er1 >conftest.err
25912 cat conftest.err >&5
25913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); } &&
25915 { ac_try='test -z "$ac_c_werror_flag"
25916 || test ! -s conftest.err'
25917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918 (eval $ac_try) 2>&5
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); }; } &&
25922 { ac_try='test -s conftest.$ac_objext'
25923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924 (eval $ac_try) 2>&5
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); }; }; then
25928 ac_cv_header_mmap_anon=yes
25930 echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25933 ac_cv_header_mmap_anon=no
25935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25937 ac_cpp='$CPP $CPPFLAGS'
25938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25944 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25945 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25946 if test "$ac_cv_header_mmap_anon" = yes; then
25948 cat >>confdefs.h <<\_ACEOF
25949 #define HAVE_MMAP_ANONYMOUS 1
25954 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25955 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25956 if test "${ac_cv_header_stat_broken+set}" = set; then
25957 echo $ECHO_N "(cached) $ECHO_C" >&6
25959 cat >conftest.$ac_ext <<_ACEOF
25962 cat confdefs.h >>conftest.$ac_ext
25963 cat >>conftest.$ac_ext <<_ACEOF
25964 /* end confdefs.h. */
25965 #include <sys/types.h>
25966 #include <sys/stat.h>
25968 #if defined(S_ISBLK) && defined(S_IFDIR)
25969 # if S_ISBLK (S_IFDIR)
25974 #if defined(S_ISBLK) && defined(S_IFCHR)
25975 # if S_ISBLK (S_IFCHR)
25980 #if defined(S_ISLNK) && defined(S_IFREG)
25981 # if S_ISLNK (S_IFREG)
25986 #if defined(S_ISSOCK) && defined(S_IFREG)
25987 # if S_ISSOCK (S_IFREG)
25993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25994 $EGREP "You lose" >/dev/null 2>&1; then
25995 ac_cv_header_stat_broken=yes
25997 ac_cv_header_stat_broken=no
26002 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26003 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26004 if test $ac_cv_header_stat_broken = yes; then
26006 cat >>confdefs.h <<\_ACEOF
26007 #define STAT_MACROS_BROKEN 1
26012 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26013 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26014 if test "${ac_cv_header_stdc+set}" = set; then
26015 echo $ECHO_N "(cached) $ECHO_C" >&6
26017 cat >conftest.$ac_ext <<_ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h. */
26023 #include <stdlib.h>
26024 #include <stdarg.h>
26025 #include <string.h>
26036 rm -f conftest.$ac_objext
26037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26038 (eval $ac_compile) 2>conftest.er1
26040 grep -v '^ *+' conftest.er1 >conftest.err
26042 cat conftest.err >&5
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); } &&
26045 { ac_try='test -z "$ac_c_werror_flag"
26046 || test ! -s conftest.err'
26047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048 (eval $ac_try) 2>&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; } &&
26052 { ac_try='test -s conftest.$ac_objext'
26053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054 (eval $ac_try) 2>&5
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); }; }; then
26058 ac_cv_header_stdc=yes
26060 echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26063 ac_cv_header_stdc=no
26065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26067 if test $ac_cv_header_stdc = yes; then
26068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26069 cat >conftest.$ac_ext <<_ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h. */
26075 #include <string.h>
26078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26079 $EGREP "memchr" >/dev/null 2>&1; then
26082 ac_cv_header_stdc=no
26088 if test $ac_cv_header_stdc = yes; then
26089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26090 cat >conftest.$ac_ext <<_ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h. */
26096 #include <stdlib.h>
26099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26100 $EGREP "free" >/dev/null 2>&1; then
26103 ac_cv_header_stdc=no
26109 if test $ac_cv_header_stdc = yes; then
26110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26111 if test "$cross_compiling" = yes; then
26114 cat >conftest.$ac_ext <<_ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h. */
26121 #if ((' ' & 0x0FF) == 0x020)
26122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26125 # define ISLOWER(c) \
26126 (('a' <= (c) && (c) <= 'i') \
26127 || ('j' <= (c) && (c) <= 'r') \
26128 || ('s' <= (c) && (c) <= 'z'))
26129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26137 for (i = 0; i < 256; i++)
26138 if (XOR (islower (i), ISLOWER (i))
26139 || toupper (i) != TOUPPER (i))
26144 rm -f conftest$ac_exeext
26145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26146 (eval $ac_link) 2>&5
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26151 (eval $ac_try) 2>&5
26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); }; }; then
26157 echo "$as_me: program exited with status $ac_status" >&5
26158 echo "$as_me: failed program was:" >&5
26159 sed 's/^/| /' conftest.$ac_ext >&5
26161 ( exit $ac_status )
26162 ac_cv_header_stdc=no
26164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26168 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26169 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26170 if test $ac_cv_header_stdc = yes; then
26172 cat >>confdefs.h <<\_ACEOF
26173 #define STDC_HEADERS 1
26178 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26179 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26180 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26181 echo $ECHO_N "(cached) $ECHO_C" >&6
26183 cat >conftest.$ac_ext <<_ACEOF
26186 cat confdefs.h >>conftest.$ac_ext
26187 cat >>conftest.$ac_ext <<_ACEOF
26188 /* end confdefs.h. */
26189 #include <sys/types.h>
26190 #include <sys/wait.h>
26191 #ifndef WEXITSTATUS
26192 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26195 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26203 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26208 rm -f conftest.$ac_objext
26209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26210 (eval $ac_compile) 2>conftest.er1
26212 grep -v '^ *+' conftest.er1 >conftest.err
26214 cat conftest.err >&5
26215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216 (exit $ac_status); } &&
26217 { ac_try='test -z "$ac_c_werror_flag"
26218 || test ! -s conftest.err'
26219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26220 (eval $ac_try) 2>&5
26222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223 (exit $ac_status); }; } &&
26224 { ac_try='test -s conftest.$ac_objext'
26225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226 (eval $ac_try) 2>&5
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); }; }; then
26230 ac_cv_header_sys_wait_h=yes
26232 echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26235 ac_cv_header_sys_wait_h=no
26237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26239 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26240 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26241 if test $ac_cv_header_sys_wait_h = yes; then
26243 cat >>confdefs.h <<\_ACEOF
26244 #define HAVE_SYS_WAIT_H 1
26249 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26250 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26251 if test "${ac_cv_header_time+set}" = set; then
26252 echo $ECHO_N "(cached) $ECHO_C" >&6
26254 cat >conftest.$ac_ext <<_ACEOF
26257 cat confdefs.h >>conftest.$ac_ext
26258 cat >>conftest.$ac_ext <<_ACEOF
26259 /* end confdefs.h. */
26260 #include <sys/types.h>
26261 #include <sys/time.h>
26267 if ((struct tm *) 0)
26273 rm -f conftest.$ac_objext
26274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26275 (eval $ac_compile) 2>conftest.er1
26277 grep -v '^ *+' conftest.er1 >conftest.err
26279 cat conftest.err >&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } &&
26282 { ac_try='test -z "$ac_c_werror_flag"
26283 || test ! -s conftest.err'
26284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285 (eval $ac_try) 2>&5
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); }; } &&
26289 { ac_try='test -s conftest.$ac_objext'
26290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291 (eval $ac_try) 2>&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); }; }; then
26295 ac_cv_header_time=yes
26297 echo "$as_me: failed program was:" >&5
26298 sed 's/^/| /' conftest.$ac_ext >&5
26300 ac_cv_header_time=no
26302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26304 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26305 echo "${ECHO_T}$ac_cv_header_time" >&6
26306 if test $ac_cv_header_time = yes; then
26308 cat >>confdefs.h <<\_ACEOF
26309 #define TIME_WITH_SYS_TIME 1
26321 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26325 echo "$as_me:$LINENO: checking for $ac_header" >&5
26326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26328 echo $ECHO_N "(cached) $ECHO_C" >&6
26330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26333 # Is the header compilable?
26334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26336 cat >conftest.$ac_ext <<_ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h. */
26342 $ac_includes_default
26343 #include <$ac_header>
26345 rm -f conftest.$ac_objext
26346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26347 (eval $ac_compile) 2>conftest.er1
26349 grep -v '^ *+' conftest.er1 >conftest.err
26351 cat conftest.err >&5
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); } &&
26354 { ac_try='test -z "$ac_c_werror_flag"
26355 || test ! -s conftest.err'
26356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26357 (eval $ac_try) 2>&5
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); }; } &&
26361 { ac_try='test -s conftest.$ac_objext'
26362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363 (eval $ac_try) 2>&5
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); }; }; then
26367 ac_header_compiler=yes
26369 echo "$as_me: failed program was:" >&5
26370 sed 's/^/| /' conftest.$ac_ext >&5
26372 ac_header_compiler=no
26374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26376 echo "${ECHO_T}$ac_header_compiler" >&6
26378 # Is the header present?
26379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26381 cat >conftest.$ac_ext <<_ACEOF
26384 cat confdefs.h >>conftest.$ac_ext
26385 cat >>conftest.$ac_ext <<_ACEOF
26386 /* end confdefs.h. */
26387 #include <$ac_header>
26389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26392 grep -v '^ *+' conftest.er1 >conftest.err
26394 cat conftest.err >&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } >/dev/null; then
26397 if test -s conftest.err; then
26398 ac_cpp_err=$ac_c_preproc_warn_flag
26399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26406 if test -z "$ac_cpp_err"; then
26407 ac_header_preproc=yes
26409 echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.$ac_ext >&5
26412 ac_header_preproc=no
26414 rm -f conftest.err conftest.$ac_ext
26415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26416 echo "${ECHO_T}$ac_header_preproc" >&6
26418 # So? What about this header?
26419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26425 ac_header_preproc=yes
26428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26442 ## ----------------------------------- ##
26443 ## Report this to llvmbugs@cs.uiuc.edu ##
26444 ## ----------------------------------- ##
26447 sed "s/^/$as_me: WARNING: /" >&2
26450 echo "$as_me:$LINENO: checking for $ac_header" >&5
26451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26453 echo $ECHO_N "(cached) $ECHO_C" >&6
26455 eval "$as_ac_Header=\$ac_header_preproc"
26457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26462 cat >>confdefs.h <<_ACEOF
26463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26476 for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26480 echo "$as_me:$LINENO: checking for $ac_header" >&5
26481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26488 # Is the header compilable?
26489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26491 cat >conftest.$ac_ext <<_ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h. */
26497 $ac_includes_default
26498 #include <$ac_header>
26500 rm -f conftest.$ac_objext
26501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26502 (eval $ac_compile) 2>conftest.er1
26504 grep -v '^ *+' conftest.er1 >conftest.err
26506 cat conftest.err >&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } &&
26509 { ac_try='test -z "$ac_c_werror_flag"
26510 || test ! -s conftest.err'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; } &&
26516 { ac_try='test -s conftest.$ac_objext'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; }; then
26522 ac_header_compiler=yes
26524 echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26527 ac_header_compiler=no
26529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26531 echo "${ECHO_T}$ac_header_compiler" >&6
26533 # Is the header present?
26534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26536 cat >conftest.$ac_ext <<_ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h. */
26542 #include <$ac_header>
26544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26547 grep -v '^ *+' conftest.er1 >conftest.err
26549 cat conftest.err >&5
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } >/dev/null; then
26552 if test -s conftest.err; then
26553 ac_cpp_err=$ac_c_preproc_warn_flag
26554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26561 if test -z "$ac_cpp_err"; then
26562 ac_header_preproc=yes
26564 echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26567 ac_header_preproc=no
26569 rm -f conftest.err conftest.$ac_ext
26570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26571 echo "${ECHO_T}$ac_header_preproc" >&6
26573 # So? What about this header?
26574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26580 ac_header_preproc=yes
26583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26597 ## ----------------------------------- ##
26598 ## Report this to llvmbugs@cs.uiuc.edu ##
26599 ## ----------------------------------- ##
26602 sed "s/^/$as_me: WARNING: /" >&2
26605 echo "$as_me:$LINENO: checking for $ac_header" >&5
26606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26608 echo $ECHO_N "(cached) $ECHO_C" >&6
26610 eval "$as_ac_Header=\$ac_header_preproc"
26612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26617 cat >>confdefs.h <<_ACEOF
26618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26626 for ac_header in windows.h
26628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26638 # Is the header compilable?
26639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26641 cat >conftest.$ac_ext <<_ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h. */
26647 $ac_includes_default
26648 #include <$ac_header>
26650 rm -f conftest.$ac_objext
26651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26652 (eval $ac_compile) 2>conftest.er1
26654 grep -v '^ *+' conftest.er1 >conftest.err
26656 cat conftest.err >&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
26659 { ac_try='test -z "$ac_c_werror_flag"
26660 || test ! -s conftest.err'
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; } &&
26666 { ac_try='test -s conftest.$ac_objext'
26667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668 (eval $ac_try) 2>&5
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); }; }; then
26672 ac_header_compiler=yes
26674 echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26677 ac_header_compiler=no
26679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26681 echo "${ECHO_T}$ac_header_compiler" >&6
26683 # Is the header present?
26684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26686 cat >conftest.$ac_ext <<_ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h. */
26692 #include <$ac_header>
26694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26697 grep -v '^ *+' conftest.er1 >conftest.err
26699 cat conftest.err >&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); } >/dev/null; then
26702 if test -s conftest.err; then
26703 ac_cpp_err=$ac_c_preproc_warn_flag
26704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26711 if test -z "$ac_cpp_err"; then
26712 ac_header_preproc=yes
26714 echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26717 ac_header_preproc=no
26719 rm -f conftest.err conftest.$ac_ext
26720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26721 echo "${ECHO_T}$ac_header_preproc" >&6
26723 # So? What about this header?
26724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26730 ac_header_preproc=yes
26733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26747 ## ----------------------------------- ##
26748 ## Report this to llvmbugs@cs.uiuc.edu ##
26749 ## ----------------------------------- ##
26752 sed "s/^/$as_me: WARNING: /" >&2
26755 echo "$as_me:$LINENO: checking for $ac_header" >&5
26756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26760 eval "$as_ac_Header=\$ac_header_preproc"
26762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26767 cat >>confdefs.h <<_ACEOF
26768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26780 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26792 # Is the header compilable?
26793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26795 cat >conftest.$ac_ext <<_ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h. */
26801 $ac_includes_default
26802 #include <$ac_header>
26804 rm -f conftest.$ac_objext
26805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26806 (eval $ac_compile) 2>conftest.er1
26808 grep -v '^ *+' conftest.er1 >conftest.err
26810 cat conftest.err >&5
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); } &&
26813 { ac_try='test -z "$ac_c_werror_flag"
26814 || test ! -s conftest.err'
26815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816 (eval $ac_try) 2>&5
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; } &&
26820 { ac_try='test -s conftest.$ac_objext'
26821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26822 (eval $ac_try) 2>&5
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); }; }; then
26826 ac_header_compiler=yes
26828 echo "$as_me: failed program was:" >&5
26829 sed 's/^/| /' conftest.$ac_ext >&5
26831 ac_header_compiler=no
26833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26835 echo "${ECHO_T}$ac_header_compiler" >&6
26837 # Is the header present?
26838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26840 cat >conftest.$ac_ext <<_ACEOF
26843 cat confdefs.h >>conftest.$ac_ext
26844 cat >>conftest.$ac_ext <<_ACEOF
26845 /* end confdefs.h. */
26846 #include <$ac_header>
26848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26851 grep -v '^ *+' conftest.er1 >conftest.err
26853 cat conftest.err >&5
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } >/dev/null; then
26856 if test -s conftest.err; then
26857 ac_cpp_err=$ac_c_preproc_warn_flag
26858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26865 if test -z "$ac_cpp_err"; then
26866 ac_header_preproc=yes
26868 echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26871 ac_header_preproc=no
26873 rm -f conftest.err conftest.$ac_ext
26874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26875 echo "${ECHO_T}$ac_header_preproc" >&6
26877 # So? What about this header?
26878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26884 ac_header_preproc=yes
26887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26901 ## ----------------------------------- ##
26902 ## Report this to llvmbugs@cs.uiuc.edu ##
26903 ## ----------------------------------- ##
26906 sed "s/^/$as_me: WARNING: /" >&2
26909 echo "$as_me:$LINENO: checking for $ac_header" >&5
26910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26912 echo $ECHO_N "(cached) $ECHO_C" >&6
26914 eval "$as_ac_Header=\$ac_header_preproc"
26916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26921 cat >>confdefs.h <<_ACEOF
26922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26931 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26943 # Is the header compilable?
26944 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26946 cat >conftest.$ac_ext <<_ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h. */
26952 $ac_includes_default
26953 #include <$ac_header>
26955 rm -f conftest.$ac_objext
26956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26957 (eval $ac_compile) 2>conftest.er1
26959 grep -v '^ *+' conftest.er1 >conftest.err
26961 cat conftest.err >&5
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); } &&
26964 { ac_try='test -z "$ac_c_werror_flag"
26965 || test ! -s conftest.err'
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; } &&
26971 { ac_try='test -s conftest.$ac_objext'
26972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
26977 ac_header_compiler=yes
26979 echo "$as_me: failed program was:" >&5
26980 sed 's/^/| /' conftest.$ac_ext >&5
26982 ac_header_compiler=no
26984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26986 echo "${ECHO_T}$ac_header_compiler" >&6
26988 # Is the header present?
26989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26991 cat >conftest.$ac_ext <<_ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h. */
26997 #include <$ac_header>
26999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27002 grep -v '^ *+' conftest.er1 >conftest.err
27004 cat conftest.err >&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } >/dev/null; then
27007 if test -s conftest.err; then
27008 ac_cpp_err=$ac_c_preproc_warn_flag
27009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27016 if test -z "$ac_cpp_err"; then
27017 ac_header_preproc=yes
27019 echo "$as_me: failed program was:" >&5
27020 sed 's/^/| /' conftest.$ac_ext >&5
27022 ac_header_preproc=no
27024 rm -f conftest.err conftest.$ac_ext
27025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27026 echo "${ECHO_T}$ac_header_preproc" >&6
27028 # So? What about this header?
27029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27035 ac_header_preproc=yes
27038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27052 ## ----------------------------------- ##
27053 ## Report this to llvmbugs@cs.uiuc.edu ##
27054 ## ----------------------------------- ##
27057 sed "s/^/$as_me: WARNING: /" >&2
27060 echo "$as_me:$LINENO: checking for $ac_header" >&5
27061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27063 echo $ECHO_N "(cached) $ECHO_C" >&6
27065 eval "$as_ac_Header=\$ac_header_preproc"
27067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27072 cat >>confdefs.h <<_ACEOF
27073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27082 echo "$as_me:$LINENO: checking for pid_t" >&5
27083 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27084 if test "${ac_cv_type_pid_t+set}" = set; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27087 cat >conftest.$ac_ext <<_ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h. */
27093 $ac_includes_default
27099 if (sizeof (pid_t))
27105 rm -f conftest.$ac_objext
27106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27107 (eval $ac_compile) 2>conftest.er1
27109 grep -v '^ *+' conftest.er1 >conftest.err
27111 cat conftest.err >&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
27114 { ac_try='test -z "$ac_c_werror_flag"
27115 || test ! -s conftest.err'
27116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117 (eval $ac_try) 2>&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); }; } &&
27121 { ac_try='test -s conftest.$ac_objext'
27122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27123 (eval $ac_try) 2>&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); }; }; then
27127 ac_cv_type_pid_t=yes
27129 echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27132 ac_cv_type_pid_t=no
27134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27136 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27138 if test $ac_cv_type_pid_t = yes; then
27142 cat >>confdefs.h <<_ACEOF
27148 echo "$as_me:$LINENO: checking for size_t" >&5
27149 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27150 if test "${ac_cv_type_size_t+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27153 cat >conftest.$ac_ext <<_ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27159 $ac_includes_default
27165 if (sizeof (size_t))
27171 rm -f conftest.$ac_objext
27172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27173 (eval $ac_compile) 2>conftest.er1
27175 grep -v '^ *+' conftest.er1 >conftest.err
27177 cat conftest.err >&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } &&
27180 { ac_try='test -z "$ac_c_werror_flag"
27181 || test ! -s conftest.err'
27182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183 (eval $ac_try) 2>&5
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; } &&
27187 { ac_try='test -s conftest.$ac_objext'
27188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189 (eval $ac_try) 2>&5
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); }; }; then
27193 ac_cv_type_size_t=yes
27195 echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27198 ac_cv_type_size_t=no
27200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27202 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27203 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27204 if test $ac_cv_type_size_t = yes; then
27208 cat >>confdefs.h <<_ACEOF
27209 #define size_t unsigned
27214 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27215 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27216 if test "${ac_cv_type_signal+set}" = set; then
27217 echo $ECHO_N "(cached) $ECHO_C" >&6
27219 cat >conftest.$ac_ext <<_ACEOF
27222 cat confdefs.h >>conftest.$ac_ext
27223 cat >>conftest.$ac_ext <<_ACEOF
27224 /* end confdefs.h. */
27225 #include <sys/types.h>
27226 #include <signal.h>
27231 extern "C" void (*signal (int, void (*)(int)))(int);
27233 void (*signal ()) ();
27244 rm -f conftest.$ac_objext
27245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27246 (eval $ac_compile) 2>conftest.er1
27248 grep -v '^ *+' conftest.er1 >conftest.err
27250 cat conftest.err >&5
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } &&
27253 { ac_try='test -z "$ac_c_werror_flag"
27254 || test ! -s conftest.err'
27255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256 (eval $ac_try) 2>&5
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); }; } &&
27260 { ac_try='test -s conftest.$ac_objext'
27261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262 (eval $ac_try) 2>&5
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); }; }; then
27266 ac_cv_type_signal=void
27268 echo "$as_me: failed program was:" >&5
27269 sed 's/^/| /' conftest.$ac_ext >&5
27271 ac_cv_type_signal=int
27273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27275 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27276 echo "${ECHO_T}$ac_cv_type_signal" >&6
27278 cat >>confdefs.h <<_ACEOF
27279 #define RETSIGTYPE $ac_cv_type_signal
27283 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27284 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27285 if test "${ac_cv_struct_tm+set}" = set; then
27286 echo $ECHO_N "(cached) $ECHO_C" >&6
27288 cat >conftest.$ac_ext <<_ACEOF
27291 cat confdefs.h >>conftest.$ac_ext
27292 cat >>conftest.$ac_ext <<_ACEOF
27293 /* end confdefs.h. */
27294 #include <sys/types.h>
27300 struct tm *tp; tp->tm_sec;
27305 rm -f conftest.$ac_objext
27306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27307 (eval $ac_compile) 2>conftest.er1
27309 grep -v '^ *+' conftest.er1 >conftest.err
27311 cat conftest.err >&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); } &&
27314 { ac_try='test -z "$ac_c_werror_flag"
27315 || test ! -s conftest.err'
27316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317 (eval $ac_try) 2>&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; } &&
27321 { ac_try='test -s conftest.$ac_objext'
27322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323 (eval $ac_try) 2>&5
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); }; }; then
27327 ac_cv_struct_tm=time.h
27329 echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27332 ac_cv_struct_tm=sys/time.h
27334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27336 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27337 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27338 if test $ac_cv_struct_tm = sys/time.h; then
27340 cat >>confdefs.h <<\_ACEOF
27341 #define TM_IN_SYS_TIME 1
27346 echo "$as_me:$LINENO: checking for int64_t" >&5
27347 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27348 if test "${ac_cv_type_int64_t+set}" = set; then
27349 echo $ECHO_N "(cached) $ECHO_C" >&6
27351 cat >conftest.$ac_ext <<_ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h. */
27357 $ac_includes_default
27363 if (sizeof (int64_t))
27369 rm -f conftest.$ac_objext
27370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27371 (eval $ac_compile) 2>conftest.er1
27373 grep -v '^ *+' conftest.er1 >conftest.err
27375 cat conftest.err >&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); } &&
27378 { ac_try='test -z "$ac_c_werror_flag"
27379 || test ! -s conftest.err'
27380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381 (eval $ac_try) 2>&5
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; } &&
27385 { ac_try='test -s conftest.$ac_objext'
27386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387 (eval $ac_try) 2>&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; }; then
27391 ac_cv_type_int64_t=yes
27393 echo "$as_me: failed program was:" >&5
27394 sed 's/^/| /' conftest.$ac_ext >&5
27396 ac_cv_type_int64_t=no
27398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27400 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27401 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27402 if test $ac_cv_type_int64_t = yes; then
27404 cat >>confdefs.h <<_ACEOF
27405 #define HAVE_INT64_T 1
27410 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27411 echo "$as_me: error: Type int64_t required but not found" >&2;}
27412 { (exit 1); exit 1; }; }
27415 echo "$as_me:$LINENO: checking for uint64_t" >&5
27416 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27417 if test "${ac_cv_type_uint64_t+set}" = set; then
27418 echo $ECHO_N "(cached) $ECHO_C" >&6
27420 cat >conftest.$ac_ext <<_ACEOF
27423 cat confdefs.h >>conftest.$ac_ext
27424 cat >>conftest.$ac_ext <<_ACEOF
27425 /* end confdefs.h. */
27426 $ac_includes_default
27430 if ((uint64_t *) 0)
27432 if (sizeof (uint64_t))
27438 rm -f conftest.$ac_objext
27439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27440 (eval $ac_compile) 2>conftest.er1
27442 grep -v '^ *+' conftest.er1 >conftest.err
27444 cat conftest.err >&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); } &&
27447 { ac_try='test -z "$ac_c_werror_flag"
27448 || test ! -s conftest.err'
27449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27450 (eval $ac_try) 2>&5
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; } &&
27454 { ac_try='test -s conftest.$ac_objext'
27455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456 (eval $ac_try) 2>&5
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); }; }; then
27460 ac_cv_type_uint64_t=yes
27462 echo "$as_me: failed program was:" >&5
27463 sed 's/^/| /' conftest.$ac_ext >&5
27465 ac_cv_type_uint64_t=no
27467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27469 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27470 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27471 if test $ac_cv_type_uint64_t = yes; then
27473 cat >>confdefs.h <<_ACEOF
27474 #define HAVE_UINT64_T 1
27479 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27480 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27481 if test "${ac_cv_type_u_int64_t+set}" = set; then
27482 echo $ECHO_N "(cached) $ECHO_C" >&6
27484 cat >conftest.$ac_ext <<_ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h. */
27490 $ac_includes_default
27494 if ((u_int64_t *) 0)
27496 if (sizeof (u_int64_t))
27502 rm -f conftest.$ac_objext
27503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27504 (eval $ac_compile) 2>conftest.er1
27506 grep -v '^ *+' conftest.er1 >conftest.err
27508 cat conftest.err >&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); } &&
27511 { ac_try='test -z "$ac_c_werror_flag"
27512 || test ! -s conftest.err'
27513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514 (eval $ac_try) 2>&5
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); }; } &&
27518 { ac_try='test -s conftest.$ac_objext'
27519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520 (eval $ac_try) 2>&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; }; then
27524 ac_cv_type_u_int64_t=yes
27526 echo "$as_me: failed program was:" >&5
27527 sed 's/^/| /' conftest.$ac_ext >&5
27529 ac_cv_type_u_int64_t=no
27531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27533 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27534 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27535 if test $ac_cv_type_u_int64_t = yes; then
27537 cat >>confdefs.h <<_ACEOF
27538 #define HAVE_U_INT64_T 1
27543 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27544 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27545 { (exit 1); exit 1; }; }
27557 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27560 echo "$as_me:$LINENO: checking for $ac_func" >&5
27561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27562 if eval "test \"\${$as_ac_var+set}\" = set"; then
27563 echo $ECHO_N "(cached) $ECHO_C" >&6
27565 cat >conftest.$ac_ext <<_ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h. */
27571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27573 #define $ac_func innocuous_$ac_func
27575 /* System header to define __stub macros and hopefully few prototypes,
27576 which can conflict with char $ac_func (); below.
27577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27578 <limits.h> exists even on freestanding compilers. */
27581 # include <limits.h>
27583 # include <assert.h>
27588 /* Override any gcc2 internal prototype to avoid an error. */
27593 /* We use char because int might match the return type of a gcc2
27594 builtin and then its argument prototype would still apply. */
27596 /* The GNU C library defines this for functions which it implements
27597 to always fail with ENOSYS. Some functions are actually named
27598 something starting with __ and the normal name is an alias. */
27599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27602 char (*f) () = $ac_func;
27611 return f != $ac_func;
27616 rm -f conftest.$ac_objext conftest$ac_exeext
27617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27618 (eval $ac_link) 2>conftest.er1
27620 grep -v '^ *+' conftest.er1 >conftest.err
27622 cat conftest.err >&5
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); } &&
27625 { ac_try='test -z "$ac_c_werror_flag"
27626 || test ! -s conftest.err'
27627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628 (eval $ac_try) 2>&5
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; } &&
27632 { ac_try='test -s conftest$ac_exeext'
27633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27634 (eval $ac_try) 2>&5
27636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); }; }; then
27638 eval "$as_ac_var=yes"
27640 echo "$as_me: failed program was:" >&5
27641 sed 's/^/| /' conftest.$ac_ext >&5
27643 eval "$as_ac_var=no"
27645 rm -f conftest.err conftest.$ac_objext \
27646 conftest$ac_exeext conftest.$ac_ext
27648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27650 if test `eval echo '${'$as_ac_var'}'` = yes; then
27651 cat >>confdefs.h <<_ACEOF
27652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27662 for ac_func in isatty mkdtemp mkstemp mktemp
27664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27665 echo "$as_me:$LINENO: checking for $ac_func" >&5
27666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27667 if eval "test \"\${$as_ac_var+set}\" = set"; then
27668 echo $ECHO_N "(cached) $ECHO_C" >&6
27670 cat >conftest.$ac_ext <<_ACEOF
27673 cat confdefs.h >>conftest.$ac_ext
27674 cat >>conftest.$ac_ext <<_ACEOF
27675 /* end confdefs.h. */
27676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27678 #define $ac_func innocuous_$ac_func
27680 /* System header to define __stub macros and hopefully few prototypes,
27681 which can conflict with char $ac_func (); below.
27682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27683 <limits.h> exists even on freestanding compilers. */
27686 # include <limits.h>
27688 # include <assert.h>
27693 /* Override any gcc2 internal prototype to avoid an error. */
27698 /* We use char because int might match the return type of a gcc2
27699 builtin and then its argument prototype would still apply. */
27701 /* The GNU C library defines this for functions which it implements
27702 to always fail with ENOSYS. Some functions are actually named
27703 something starting with __ and the normal name is an alias. */
27704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27707 char (*f) () = $ac_func;
27716 return f != $ac_func;
27721 rm -f conftest.$ac_objext conftest$ac_exeext
27722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27723 (eval $ac_link) 2>conftest.er1
27725 grep -v '^ *+' conftest.er1 >conftest.err
27727 cat conftest.err >&5
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); } &&
27730 { ac_try='test -z "$ac_c_werror_flag"
27731 || test ! -s conftest.err'
27732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733 (eval $ac_try) 2>&5
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; } &&
27737 { ac_try='test -s conftest$ac_exeext'
27738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27739 (eval $ac_try) 2>&5
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); }; }; then
27743 eval "$as_ac_var=yes"
27745 echo "$as_me: failed program was:" >&5
27746 sed 's/^/| /' conftest.$ac_ext >&5
27748 eval "$as_ac_var=no"
27750 rm -f conftest.err conftest.$ac_objext \
27751 conftest$ac_exeext conftest.$ac_ext
27753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27755 if test `eval echo '${'$as_ac_var'}'` = yes; then
27756 cat >>confdefs.h <<_ACEOF
27757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27769 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27772 echo "$as_me:$LINENO: checking for $ac_func" >&5
27773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27774 if eval "test \"\${$as_ac_var+set}\" = set"; then
27775 echo $ECHO_N "(cached) $ECHO_C" >&6
27777 cat >conftest.$ac_ext <<_ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h. */
27783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27785 #define $ac_func innocuous_$ac_func
27787 /* System header to define __stub macros and hopefully few prototypes,
27788 which can conflict with char $ac_func (); below.
27789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27790 <limits.h> exists even on freestanding compilers. */
27793 # include <limits.h>
27795 # include <assert.h>
27800 /* Override any gcc2 internal prototype to avoid an error. */
27805 /* We use char because int might match the return type of a gcc2
27806 builtin and then its argument prototype would still apply. */
27808 /* The GNU C library defines this for functions which it implements
27809 to always fail with ENOSYS. Some functions are actually named
27810 something starting with __ and the normal name is an alias. */
27811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27814 char (*f) () = $ac_func;
27823 return f != $ac_func;
27828 rm -f conftest.$ac_objext conftest$ac_exeext
27829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27830 (eval $ac_link) 2>conftest.er1
27832 grep -v '^ *+' conftest.er1 >conftest.err
27834 cat conftest.err >&5
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } &&
27837 { ac_try='test -z "$ac_c_werror_flag"
27838 || test ! -s conftest.err'
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; } &&
27844 { ac_try='test -s conftest$ac_exeext'
27845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846 (eval $ac_try) 2>&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
27850 eval "$as_ac_var=yes"
27852 echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27855 eval "$as_ac_var=no"
27857 rm -f conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
27860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27862 if test `eval echo '${'$as_ac_var'}'` = yes; then
27863 cat >>confdefs.h <<_ACEOF
27864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27873 for ac_func in strtoll strtoq sysconf
27875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27876 echo "$as_me:$LINENO: checking for $ac_func" >&5
27877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27878 if eval "test \"\${$as_ac_var+set}\" = set"; then
27879 echo $ECHO_N "(cached) $ECHO_C" >&6
27881 cat >conftest.$ac_ext <<_ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h. */
27887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27889 #define $ac_func innocuous_$ac_func
27891 /* System header to define __stub macros and hopefully few prototypes,
27892 which can conflict with char $ac_func (); below.
27893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27894 <limits.h> exists even on freestanding compilers. */
27897 # include <limits.h>
27899 # include <assert.h>
27904 /* Override any gcc2 internal prototype to avoid an error. */
27909 /* We use char because int might match the return type of a gcc2
27910 builtin and then its argument prototype would still apply. */
27912 /* The GNU C library defines this for functions which it implements
27913 to always fail with ENOSYS. Some functions are actually named
27914 something starting with __ and the normal name is an alias. */
27915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27918 char (*f) () = $ac_func;
27927 return f != $ac_func;
27932 rm -f conftest.$ac_objext conftest$ac_exeext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934 (eval $ac_link) 2>conftest.er1
27936 grep -v '^ *+' conftest.er1 >conftest.err
27938 cat conftest.err >&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } &&
27941 { ac_try='test -z "$ac_c_werror_flag"
27942 || test ! -s conftest.err'
27943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944 (eval $ac_try) 2>&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); }; } &&
27948 { ac_try='test -s conftest$ac_exeext'
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
27954 eval "$as_ac_var=yes"
27956 echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27959 eval "$as_ac_var=no"
27961 rm -f conftest.err conftest.$ac_objext \
27962 conftest$ac_exeext conftest.$ac_ext
27964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27966 if test `eval echo '${'$as_ac_var'}'` = yes; then
27967 cat >>confdefs.h <<_ACEOF
27968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27974 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27975 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27976 if test "${llvm_cv_c_printf_a+set}" = set; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27980 ac_cpp='$CPP $CPPFLAGS'
27981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27985 if test "$cross_compiling" = yes; then
27986 llvmac_cv_c_printf_a=no
27988 cat >conftest.$ac_ext <<_ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h. */
27997 #include <stdlib.h>
28003 volatile double A, B;
28007 sprintf(Buffer, "%a", A);
28011 if (A != 0x1.999999999999ap-4)
28018 rm -f conftest$ac_exeext
28019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28020 (eval $ac_link) 2>&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28025 (eval $ac_try) 2>&5
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); }; }; then
28029 llvm_cv_c_printf_a=yes
28031 echo "$as_me: program exited with status $ac_status" >&5
28032 echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28035 ( exit $ac_status )
28036 llvmac_cv_c_printf_a=no
28038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28041 ac_cpp='$CPP $CPPFLAGS'
28042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28047 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28048 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28049 if test "$llvm_cv_c_printf_a" = "yes"; then
28051 cat >>confdefs.h <<\_ACEOF
28052 #define HAVE_PRINTF_A 1
28057 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28058 # for constant arguments. Useless!
28059 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28060 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28061 if test "${ac_cv_working_alloca_h+set}" = set; then
28062 echo $ECHO_N "(cached) $ECHO_C" >&6
28064 cat >conftest.$ac_ext <<_ACEOF
28067 cat confdefs.h >>conftest.$ac_ext
28068 cat >>conftest.$ac_ext <<_ACEOF
28069 /* end confdefs.h. */
28070 #include <alloca.h>
28074 char *p = (char *) alloca (2 * sizeof (int));
28079 rm -f conftest.$ac_objext conftest$ac_exeext
28080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28081 (eval $ac_link) 2>conftest.er1
28083 grep -v '^ *+' conftest.er1 >conftest.err
28085 cat conftest.err >&5
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } &&
28088 { ac_try='test -z "$ac_c_werror_flag"
28089 || test ! -s conftest.err'
28090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28091 (eval $ac_try) 2>&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }; } &&
28095 { ac_try='test -s conftest$ac_exeext'
28096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28097 (eval $ac_try) 2>&5
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); }; }; then
28101 ac_cv_working_alloca_h=yes
28103 echo "$as_me: failed program was:" >&5
28104 sed 's/^/| /' conftest.$ac_ext >&5
28106 ac_cv_working_alloca_h=no
28108 rm -f conftest.err conftest.$ac_objext \
28109 conftest$ac_exeext conftest.$ac_ext
28111 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28112 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28113 if test $ac_cv_working_alloca_h = yes; then
28115 cat >>confdefs.h <<\_ACEOF
28116 #define HAVE_ALLOCA_H 1
28121 echo "$as_me:$LINENO: checking for alloca" >&5
28122 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28123 if test "${ac_cv_func_alloca_works+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28126 cat >conftest.$ac_ext <<_ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h. */
28133 # define alloca __builtin_alloca
28136 # include <malloc.h>
28137 # define alloca _alloca
28140 # include <alloca.h>
28145 # ifndef alloca /* predefined by HP cc +Olibcalls */
28156 char *p = (char *) alloca (1);
28161 rm -f conftest.$ac_objext conftest$ac_exeext
28162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28163 (eval $ac_link) 2>conftest.er1
28165 grep -v '^ *+' conftest.er1 >conftest.err
28167 cat conftest.err >&5
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); } &&
28170 { ac_try='test -z "$ac_c_werror_flag"
28171 || test ! -s conftest.err'
28172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28173 (eval $ac_try) 2>&5
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); }; } &&
28177 { ac_try='test -s conftest$ac_exeext'
28178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179 (eval $ac_try) 2>&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; }; then
28183 ac_cv_func_alloca_works=yes
28185 echo "$as_me: failed program was:" >&5
28186 sed 's/^/| /' conftest.$ac_ext >&5
28188 ac_cv_func_alloca_works=no
28190 rm -f conftest.err conftest.$ac_objext \
28191 conftest$ac_exeext conftest.$ac_ext
28193 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28194 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28196 if test $ac_cv_func_alloca_works = yes; then
28198 cat >>confdefs.h <<\_ACEOF
28199 #define HAVE_ALLOCA 1
28203 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28204 # that cause trouble. Some versions do not even contain alloca or
28205 # contain a buggy version. If you still want to use their alloca,
28206 # use ar to extract alloca.o from them instead of compiling alloca.c.
28208 ALLOCA=alloca.$ac_objext
28210 cat >>confdefs.h <<\_ACEOF
28215 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28216 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28217 if test "${ac_cv_os_cray+set}" = set; then
28218 echo $ECHO_N "(cached) $ECHO_C" >&6
28220 cat >conftest.$ac_ext <<_ACEOF
28223 cat confdefs.h >>conftest.$ac_ext
28224 cat >>conftest.$ac_ext <<_ACEOF
28225 /* end confdefs.h. */
28226 #if defined(CRAY) && ! defined(CRAY2)
28233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28234 $EGREP "webecray" >/dev/null 2>&1; then
28242 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28243 echo "${ECHO_T}$ac_cv_os_cray" >&6
28244 if test $ac_cv_os_cray = yes; then
28245 for ac_func in _getb67 GETB67 getb67; do
28246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28247 echo "$as_me:$LINENO: checking for $ac_func" >&5
28248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28249 if eval "test \"\${$as_ac_var+set}\" = set"; then
28250 echo $ECHO_N "(cached) $ECHO_C" >&6
28252 cat >conftest.$ac_ext <<_ACEOF
28255 cat confdefs.h >>conftest.$ac_ext
28256 cat >>conftest.$ac_ext <<_ACEOF
28257 /* end confdefs.h. */
28258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28260 #define $ac_func innocuous_$ac_func
28262 /* System header to define __stub macros and hopefully few prototypes,
28263 which can conflict with char $ac_func (); below.
28264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28265 <limits.h> exists even on freestanding compilers. */
28268 # include <limits.h>
28270 # include <assert.h>
28275 /* Override any gcc2 internal prototype to avoid an error. */
28280 /* We use char because int might match the return type of a gcc2
28281 builtin and then its argument prototype would still apply. */
28283 /* The GNU C library defines this for functions which it implements
28284 to always fail with ENOSYS. Some functions are actually named
28285 something starting with __ and the normal name is an alias. */
28286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28289 char (*f) () = $ac_func;
28298 return f != $ac_func;
28303 rm -f conftest.$ac_objext conftest$ac_exeext
28304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28305 (eval $ac_link) 2>conftest.er1
28307 grep -v '^ *+' conftest.er1 >conftest.err
28309 cat conftest.err >&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } &&
28312 { ac_try='test -z "$ac_c_werror_flag"
28313 || test ! -s conftest.err'
28314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28315 (eval $ac_try) 2>&5
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); }; } &&
28319 { ac_try='test -s conftest$ac_exeext'
28320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28321 (eval $ac_try) 2>&5
28323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 (exit $ac_status); }; }; then
28325 eval "$as_ac_var=yes"
28327 echo "$as_me: failed program was:" >&5
28328 sed 's/^/| /' conftest.$ac_ext >&5
28330 eval "$as_ac_var=no"
28332 rm -f conftest.err conftest.$ac_objext \
28333 conftest$ac_exeext conftest.$ac_ext
28335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28337 if test `eval echo '${'$as_ac_var'}'` = yes; then
28339 cat >>confdefs.h <<_ACEOF
28340 #define CRAY_STACKSEG_END $ac_func
28349 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28350 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28351 if test "${ac_cv_c_stack_direction+set}" = set; then
28352 echo $ECHO_N "(cached) $ECHO_C" >&6
28354 if test "$cross_compiling" = yes; then
28355 ac_cv_c_stack_direction=0
28357 cat >conftest.$ac_ext <<_ACEOF
28360 cat confdefs.h >>conftest.$ac_ext
28361 cat >>conftest.$ac_ext <<_ACEOF
28362 /* end confdefs.h. */
28364 find_stack_direction ()
28366 static char *addr = 0;
28371 return find_stack_direction ();
28374 return (&dummy > addr) ? 1 : -1;
28380 exit (find_stack_direction () < 0);
28383 rm -f conftest$ac_exeext
28384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28385 (eval $ac_link) 2>&5
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390 (eval $ac_try) 2>&5
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); }; }; then
28394 ac_cv_c_stack_direction=1
28396 echo "$as_me: program exited with status $ac_status" >&5
28397 echo "$as_me: failed program was:" >&5
28398 sed 's/^/| /' conftest.$ac_ext >&5
28400 ( exit $ac_status )
28401 ac_cv_c_stack_direction=-1
28403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28406 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28407 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28409 cat >>confdefs.h <<_ACEOF
28410 #define STACK_DIRECTION $ac_cv_c_stack_direction
28417 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28418 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28419 if test "${ac_cv_func_rand48+set}" = set; then
28420 echo $ECHO_N "(cached) $ECHO_C" >&6
28423 ac_cpp='$CXXCPP $CPPFLAGS'
28424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28428 cat >conftest.$ac_ext <<_ACEOF
28431 cat confdefs.h >>conftest.$ac_ext
28432 cat >>conftest.$ac_ext <<_ACEOF
28433 /* end confdefs.h. */
28434 #include <stdlib.h>
28438 srand48(0);lrand48();drand48();
28443 rm -f conftest.$ac_objext
28444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28445 (eval $ac_compile) 2>conftest.er1
28447 grep -v '^ *+' conftest.er1 >conftest.err
28449 cat conftest.err >&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } &&
28452 { ac_try='test -z "$ac_cxx_werror_flag"
28453 || test ! -s conftest.err'
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; } &&
28459 { ac_try='test -s conftest.$ac_objext'
28460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28461 (eval $ac_try) 2>&5
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); }; }; then
28465 ac_cv_func_rand48=yes
28467 echo "$as_me: failed program was:" >&5
28468 sed 's/^/| /' conftest.$ac_ext >&5
28470 ac_cv_func_rand48=no
28472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28474 ac_cpp='$CPP $CPPFLAGS'
28475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28480 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28481 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28483 if test "$ac_cv_func_rand48" = "yes" ; then
28485 cat >>confdefs.h <<\_ACEOF
28486 #define HAVE_RAND48 1
28492 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28493 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28494 if test "${ac_cv_cxx_namespaces+set}" = set; then
28495 echo $ECHO_N "(cached) $ECHO_C" >&6
28498 ac_cpp='$CXXCPP $CPPFLAGS'
28499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28503 cat >conftest.$ac_ext <<_ACEOF
28506 cat confdefs.h >>conftest.$ac_ext
28507 cat >>conftest.$ac_ext <<_ACEOF
28508 /* end confdefs.h. */
28509 namespace Outer { namespace Inner { int i = 0; }}
28513 using namespace Outer::Inner; return i;
28518 rm -f conftest.$ac_objext
28519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28520 (eval $ac_compile) 2>conftest.er1
28522 grep -v '^ *+' conftest.er1 >conftest.err
28524 cat conftest.err >&5
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); } &&
28527 { ac_try='test -z "$ac_cxx_werror_flag"
28528 || test ! -s conftest.err'
28529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530 (eval $ac_try) 2>&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; } &&
28534 { ac_try='test -s conftest.$ac_objext'
28535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536 (eval $ac_try) 2>&5
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; }; then
28540 ac_cv_cxx_namespaces=yes
28542 echo "$as_me: failed program was:" >&5
28543 sed 's/^/| /' conftest.$ac_ext >&5
28545 ac_cv_cxx_namespaces=no
28547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28549 ac_cpp='$CPP $CPPFLAGS'
28550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28556 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28557 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28558 if test "$ac_cv_cxx_namespaces" = yes; then
28560 cat >>confdefs.h <<\_ACEOF
28561 #define HAVE_NAMESPACES
28566 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28567 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28568 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28569 echo $ECHO_N "(cached) $ECHO_C" >&6
28573 ac_cpp='$CXXCPP $CPPFLAGS'
28574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28578 cat >conftest.$ac_ext <<_ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h. */
28584 #include <ext/hash_map>
28585 #ifdef HAVE_NAMESPACES
28586 using namespace std;
28591 hash_map<int, int> t;
28596 rm -f conftest.$ac_objext
28597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28598 (eval $ac_compile) 2>conftest.er1
28600 grep -v '^ *+' conftest.er1 >conftest.err
28602 cat conftest.err >&5
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); } &&
28605 { ac_try='test -z "$ac_cxx_werror_flag"
28606 || test ! -s conftest.err'
28607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28608 (eval $ac_try) 2>&5
28610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); }; } &&
28612 { ac_try='test -s conftest.$ac_objext'
28613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614 (eval $ac_try) 2>&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; }; then
28618 ac_cv_cxx_have_std_ext_hash_map=yes
28620 echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28623 ac_cv_cxx_have_std_ext_hash_map=no
28625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28627 ac_cpp='$CPP $CPPFLAGS'
28628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28633 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28634 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28635 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28638 cat >>confdefs.h <<\_ACEOF
28639 #define HAVE_STD_EXT_HASH_MAP 1
28644 cat >>confdefs.h <<\_ACEOF
28645 #define HAVE_STD_EXT_HASH_MAP 0
28650 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28651 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28652 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28653 echo $ECHO_N "(cached) $ECHO_C" >&6
28657 ac_cpp='$CXXCPP $CPPFLAGS'
28658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28662 cat >conftest.$ac_ext <<_ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h. */
28668 #include <ext/hash_map>
28669 #ifdef HAVE_NAMESPACES
28670 using namespace __gnu_cxx;
28675 hash_map<int,int> t;
28680 rm -f conftest.$ac_objext
28681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28682 (eval $ac_compile) 2>conftest.er1
28684 grep -v '^ *+' conftest.er1 >conftest.err
28686 cat conftest.err >&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); } &&
28689 { ac_try='test -z "$ac_cxx_werror_flag"
28690 || test ! -s conftest.err'
28691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692 (eval $ac_try) 2>&5
28694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); }; } &&
28696 { ac_try='test -s conftest.$ac_objext'
28697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698 (eval $ac_try) 2>&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); }; }; then
28702 ac_cv_cxx_have_gnu_ext_hash_map=yes
28704 echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.$ac_ext >&5
28707 ac_cv_cxx_have_gnu_ext_hash_map=no
28709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28711 ac_cpp='$CPP $CPPFLAGS'
28712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28717 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28718 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28719 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28722 cat >>confdefs.h <<\_ACEOF
28723 #define HAVE_GNU_EXT_HASH_MAP 1
28728 cat >>confdefs.h <<\_ACEOF
28729 #define HAVE_GNU_EXT_HASH_MAP 0
28734 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28735 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28736 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28737 echo $ECHO_N "(cached) $ECHO_C" >&6
28741 ac_cpp='$CXXCPP $CPPFLAGS'
28742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28746 cat >conftest.$ac_ext <<_ACEOF
28749 cat confdefs.h >>conftest.$ac_ext
28750 cat >>conftest.$ac_ext <<_ACEOF
28751 /* end confdefs.h. */
28752 #include <hash_map>
28756 hash_map<int,int> t;
28761 rm -f conftest.$ac_objext
28762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28763 (eval $ac_compile) 2>conftest.er1
28765 grep -v '^ *+' conftest.er1 >conftest.err
28767 cat conftest.err >&5
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } &&
28770 { ac_try='test -z "$ac_cxx_werror_flag"
28771 || test ! -s conftest.err'
28772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773 (eval $ac_try) 2>&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); }; } &&
28777 { ac_try='test -s conftest.$ac_objext'
28778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28779 (eval $ac_try) 2>&5
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; }; then
28783 ac_cv_cxx_have_global_hash_map=yes
28785 echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28788 ac_cv_cxx_have_global_hash_map=no
28790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28792 ac_cpp='$CPP $CPPFLAGS'
28793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28798 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28799 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28800 if test "$ac_cv_cxx_have_global_hash_map" = yes
28803 cat >>confdefs.h <<\_ACEOF
28804 #define HAVE_GLOBAL_HASH_MAP 1
28809 cat >>confdefs.h <<\_ACEOF
28810 #define HAVE_GLOBAL_HASH_MAP 0
28815 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28816 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28817 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28818 echo $ECHO_N "(cached) $ECHO_C" >&6
28822 ac_cpp='$CXXCPP $CPPFLAGS'
28823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28827 cat >conftest.$ac_ext <<_ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h. */
28833 #include <ext/hash_set>
28834 #ifdef HAVE_NAMESPACES
28835 using namespace std;
28845 rm -f conftest.$ac_objext
28846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28847 (eval $ac_compile) 2>conftest.er1
28849 grep -v '^ *+' conftest.er1 >conftest.err
28851 cat conftest.err >&5
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); } &&
28854 { ac_try='test -z "$ac_cxx_werror_flag"
28855 || test ! -s conftest.err'
28856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857 (eval $ac_try) 2>&5
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); }; } &&
28861 { ac_try='test -s conftest.$ac_objext'
28862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863 (eval $ac_try) 2>&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; }; then
28867 ac_cv_cxx_have_std_ext_hash_set=yes
28869 echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28872 ac_cv_cxx_have_std_ext_hash_set=no
28874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28876 ac_cpp='$CPP $CPPFLAGS'
28877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28882 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28883 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28884 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28887 cat >>confdefs.h <<\_ACEOF
28888 #define HAVE_STD_EXT_HASH_SET 1
28893 cat >>confdefs.h <<\_ACEOF
28894 #define HAVE_STD_EXT_HASH_SET 0
28899 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28900 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28901 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28902 echo $ECHO_N "(cached) $ECHO_C" >&6
28906 ac_cpp='$CXXCPP $CPPFLAGS'
28907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28911 cat >conftest.$ac_ext <<_ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h. */
28917 #include <ext/hash_set>
28918 #ifdef HAVE_NAMESPACES
28919 using namespace __gnu_cxx;
28929 rm -f conftest.$ac_objext
28930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28931 (eval $ac_compile) 2>conftest.er1
28933 grep -v '^ *+' conftest.er1 >conftest.err
28935 cat conftest.err >&5
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); } &&
28938 { ac_try='test -z "$ac_cxx_werror_flag"
28939 || test ! -s conftest.err'
28940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941 (eval $ac_try) 2>&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; } &&
28945 { ac_try='test -s conftest.$ac_objext'
28946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28947 (eval $ac_try) 2>&5
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); }; }; then
28951 ac_cv_cxx_have_gnu_ext_hash_set=yes
28953 echo "$as_me: failed program was:" >&5
28954 sed 's/^/| /' conftest.$ac_ext >&5
28956 ac_cv_cxx_have_gnu_ext_hash_set=no
28958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28960 ac_cpp='$CPP $CPPFLAGS'
28961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28966 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28967 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28968 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28971 cat >>confdefs.h <<\_ACEOF
28972 #define HAVE_GNU_EXT_HASH_SET 1
28977 cat >>confdefs.h <<\_ACEOF
28978 #define HAVE_GNU_EXT_HASH_SET 0
28983 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28984 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28985 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28990 ac_cpp='$CXXCPP $CPPFLAGS'
28991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28995 cat >conftest.$ac_ext <<_ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h. */
29001 #include <hash_set>
29005 hash_set<int> t; return 0;
29010 rm -f conftest.$ac_objext
29011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29012 (eval $ac_compile) 2>conftest.er1
29014 grep -v '^ *+' conftest.er1 >conftest.err
29016 cat conftest.err >&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); } &&
29019 { ac_try='test -z "$ac_cxx_werror_flag"
29020 || test ! -s conftest.err'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; } &&
29026 { ac_try='test -s conftest.$ac_objext'
29027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028 (eval $ac_try) 2>&5
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); }; }; then
29032 ac_cv_cxx_have_global_hash_set=yes
29034 echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29037 ac_cv_cxx_have_global_hash_set=no
29039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29041 ac_cpp='$CPP $CPPFLAGS'
29042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29047 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29048 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29049 if test "$ac_cv_cxx_have_global_hash_set" = yes
29052 cat >>confdefs.h <<\_ACEOF
29053 #define HAVE_GLOBAL_HASH_SET 1
29058 cat >>confdefs.h <<\_ACEOF
29059 #define HAVE_GLOBAL_HASH_SET 0
29064 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29065 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29066 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29067 echo $ECHO_N "(cached) $ECHO_C" >&6
29071 ac_cpp='$CXXCPP $CPPFLAGS'
29072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29076 cat >conftest.$ac_ext <<_ACEOF
29079 cat confdefs.h >>conftest.$ac_ext
29080 cat >>conftest.$ac_ext <<_ACEOF
29081 /* end confdefs.h. */
29082 #include <iterator>
29083 #ifdef HAVE_NAMESPACES
29084 using namespace std;
29089 iterator<int,int,int> t; return 0;
29094 rm -f conftest.$ac_objext
29095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29096 (eval $ac_compile) 2>conftest.er1
29098 grep -v '^ *+' conftest.er1 >conftest.err
29100 cat conftest.err >&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } &&
29103 { ac_try='test -z "$ac_cxx_werror_flag"
29104 || test ! -s conftest.err'
29105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29106 (eval $ac_try) 2>&5
29108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109 (exit $ac_status); }; } &&
29110 { ac_try='test -s conftest.$ac_objext'
29111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112 (eval $ac_try) 2>&5
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; }; then
29116 ac_cv_cxx_have_std_iterator=yes
29118 echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29121 ac_cv_cxx_have_std_iterator=no
29123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29125 ac_cpp='$CPP $CPPFLAGS'
29126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29132 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29133 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29134 if test "$ac_cv_cxx_have_std_iterator" = yes
29137 cat >>confdefs.h <<\_ACEOF
29138 #define HAVE_STD_ITERATOR 1
29143 cat >>confdefs.h <<\_ACEOF
29144 #define HAVE_STD_ITERATOR 0
29149 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29150 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29151 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29152 echo $ECHO_N "(cached) $ECHO_C" >&6
29156 ac_cpp='$CXXCPP $CPPFLAGS'
29157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29161 cat >conftest.$ac_ext <<_ACEOF
29164 cat confdefs.h >>conftest.$ac_ext
29165 cat >>conftest.$ac_ext <<_ACEOF
29166 /* end confdefs.h. */
29167 #include <iterator>
29168 #ifdef HAVE_NAMESPACES
29169 using namespace std;
29174 bidirectional_iterator<int,int> t; return 0;
29179 rm -f conftest.$ac_objext
29180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29181 (eval $ac_compile) 2>conftest.er1
29183 grep -v '^ *+' conftest.er1 >conftest.err
29185 cat conftest.err >&5
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); } &&
29188 { ac_try='test -z "$ac_cxx_werror_flag"
29189 || test ! -s conftest.err'
29190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29191 (eval $ac_try) 2>&5
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; } &&
29195 { ac_try='test -s conftest.$ac_objext'
29196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197 (eval $ac_try) 2>&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); }; }; then
29201 ac_cv_cxx_have_bi_iterator=yes
29203 echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29206 ac_cv_cxx_have_bi_iterator=no
29208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29210 ac_cpp='$CPP $CPPFLAGS'
29211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29217 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29218 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29219 if test "$ac_cv_cxx_have_bi_iterator" = yes
29222 cat >>confdefs.h <<\_ACEOF
29223 #define HAVE_BI_ITERATOR 1
29228 cat >>confdefs.h <<\_ACEOF
29229 #define HAVE_BI_ITERATOR 0
29234 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29235 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29236 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29237 echo $ECHO_N "(cached) $ECHO_C" >&6
29241 ac_cpp='$CXXCPP $CPPFLAGS'
29242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29246 cat >conftest.$ac_ext <<_ACEOF
29249 cat confdefs.h >>conftest.$ac_ext
29250 cat >>conftest.$ac_ext <<_ACEOF
29251 /* end confdefs.h. */
29252 #include <iterator>
29253 #ifdef HAVE_NAMESPACES
29254 using namespace std;
29259 forward_iterator<int,int> t; return 0;
29264 rm -f conftest.$ac_objext
29265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29266 (eval $ac_compile) 2>conftest.er1
29268 grep -v '^ *+' conftest.er1 >conftest.err
29270 cat conftest.err >&5
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); } &&
29273 { ac_try='test -z "$ac_cxx_werror_flag"
29274 || test ! -s conftest.err'
29275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276 (eval $ac_try) 2>&5
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); }; } &&
29280 { ac_try='test -s conftest.$ac_objext'
29281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282 (eval $ac_try) 2>&5
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; }; then
29286 ac_cv_cxx_have_fwd_iterator=yes
29288 echo "$as_me: failed program was:" >&5
29289 sed 's/^/| /' conftest.$ac_ext >&5
29291 ac_cv_cxx_have_fwd_iterator=no
29293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29295 ac_cpp='$CPP $CPPFLAGS'
29296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29302 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29303 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29304 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29307 cat >>confdefs.h <<\_ACEOF
29308 #define HAVE_FWD_ITERATOR 1
29313 cat >>confdefs.h <<\_ACEOF
29314 #define HAVE_FWD_ITERATOR 0
29320 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29321 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29322 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29323 echo $ECHO_N "(cached) $ECHO_C" >&6
29326 ac_cpp='$CXXCPP $CPPFLAGS'
29327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29331 cat >conftest.$ac_ext <<_ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h. */
29346 rm -f conftest.$ac_objext
29347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29348 (eval $ac_compile) 2>conftest.er1
29350 grep -v '^ *+' conftest.er1 >conftest.err
29352 cat conftest.err >&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); } &&
29355 { ac_try='test -z "$ac_cxx_werror_flag"
29356 || test ! -s conftest.err'
29357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358 (eval $ac_try) 2>&5
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; } &&
29362 { ac_try='test -s conftest.$ac_objext'
29363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29364 (eval $ac_try) 2>&5
29366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); }; }; then
29368 ac_cv_func_isnan_in_math_h=yes
29370 echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29373 ac_cv_func_isnan_in_math_h=no
29375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29377 ac_cpp='$CPP $CPPFLAGS'
29378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29383 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29384 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29387 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29389 cat >>confdefs.h <<\_ACEOF
29390 #define HAVE_ISNAN_IN_MATH_H 1
29395 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29396 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29397 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29401 ac_cpp='$CXXCPP $CPPFLAGS'
29402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29406 cat >conftest.$ac_ext <<_ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h. */
29421 rm -f conftest.$ac_objext
29422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29423 (eval $ac_compile) 2>conftest.er1
29425 grep -v '^ *+' conftest.er1 >conftest.err
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_cxx_werror_flag"
29431 || test ! -s conftest.err'
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; } &&
29437 { ac_try='test -s conftest.$ac_objext'
29438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439 (eval $ac_try) 2>&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; }; then
29443 ac_cv_func_isnan_in_cmath=yes
29445 echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29448 ac_cv_func_isnan_in_cmath=no
29450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29452 ac_cpp='$CPP $CPPFLAGS'
29453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29458 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29459 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29461 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29463 cat >>confdefs.h <<\_ACEOF
29464 #define HAVE_ISNAN_IN_CMATH 1
29469 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29470 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29471 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29472 echo $ECHO_N "(cached) $ECHO_C" >&6
29475 ac_cpp='$CXXCPP $CPPFLAGS'
29476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29480 cat >conftest.$ac_ext <<_ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h. */
29490 float f; std::isnan(f);
29495 rm -f conftest.$ac_objext
29496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29497 (eval $ac_compile) 2>conftest.er1
29499 grep -v '^ *+' conftest.er1 >conftest.err
29501 cat conftest.err >&5
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); } &&
29504 { ac_try='test -z "$ac_cxx_werror_flag"
29505 || test ! -s conftest.err'
29506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29507 (eval $ac_try) 2>&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); }; } &&
29511 { ac_try='test -s conftest.$ac_objext'
29512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513 (eval $ac_try) 2>&5
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; }; then
29517 ac_cv_func_std_isnan_in_cmath=yes
29519 echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29522 ac_cv_func_std_isnan_in_cmath=no
29524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29526 ac_cpp='$CPP $CPPFLAGS'
29527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29532 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29533 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29535 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29537 cat >>confdefs.h <<\_ACEOF
29538 #define HAVE_STD_ISNAN_IN_CMATH 1
29544 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29545 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29546 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29547 echo $ECHO_N "(cached) $ECHO_C" >&6
29550 ac_cpp='$CXXCPP $CPPFLAGS'
29551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29555 cat >conftest.$ac_ext <<_ACEOF
29558 cat confdefs.h >>conftest.$ac_ext
29559 cat >>conftest.$ac_ext <<_ACEOF
29560 /* end confdefs.h. */
29570 rm -f conftest.$ac_objext
29571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29572 (eval $ac_compile) 2>conftest.er1
29574 grep -v '^ *+' conftest.er1 >conftest.err
29576 cat conftest.err >&5
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); } &&
29579 { ac_try='test -z "$ac_cxx_werror_flag"
29580 || test ! -s conftest.err'
29581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29582 (eval $ac_try) 2>&5
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); }; } &&
29586 { ac_try='test -s conftest.$ac_objext'
29587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29588 (eval $ac_try) 2>&5
29590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591 (exit $ac_status); }; }; then
29592 ac_cv_func_isinf_in_math_h=yes
29594 echo "$as_me: failed program was:" >&5
29595 sed 's/^/| /' conftest.$ac_ext >&5
29597 ac_cv_func_isinf_in_math_h=no
29599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29601 ac_cpp='$CPP $CPPFLAGS'
29602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29607 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29608 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29610 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29612 cat >>confdefs.h <<\_ACEOF
29613 #define HAVE_ISINF_IN_MATH_H 1
29618 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29619 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29620 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29621 echo $ECHO_N "(cached) $ECHO_C" >&6
29624 ac_cpp='$CXXCPP $CPPFLAGS'
29625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29629 cat >conftest.$ac_ext <<_ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h. */
29644 rm -f conftest.$ac_objext
29645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29646 (eval $ac_compile) 2>conftest.er1
29648 grep -v '^ *+' conftest.er1 >conftest.err
29650 cat conftest.err >&5
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); } &&
29653 { ac_try='test -z "$ac_cxx_werror_flag"
29654 || test ! -s conftest.err'
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; } &&
29660 { ac_try='test -s conftest.$ac_objext'
29661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29662 (eval $ac_try) 2>&5
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); }; }; then
29666 ac_cv_func_isinf_in_cmath=yes
29668 echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29671 ac_cv_func_isinf_in_cmath=no
29673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29675 ac_cpp='$CPP $CPPFLAGS'
29676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29681 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29682 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29684 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29686 cat >>confdefs.h <<\_ACEOF
29687 #define HAVE_ISINF_IN_CMATH 1
29692 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29693 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29694 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29695 echo $ECHO_N "(cached) $ECHO_C" >&6
29698 ac_cpp='$CXXCPP $CPPFLAGS'
29699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29703 cat >conftest.$ac_ext <<_ACEOF
29706 cat confdefs.h >>conftest.$ac_ext
29707 cat >>conftest.$ac_ext <<_ACEOF
29708 /* end confdefs.h. */
29713 float f; std::isinf(f)}
29718 rm -f conftest.$ac_objext
29719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29720 (eval $ac_compile) 2>conftest.er1
29722 grep -v '^ *+' conftest.er1 >conftest.err
29724 cat conftest.err >&5
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } &&
29727 { ac_try='test -z "$ac_cxx_werror_flag"
29728 || test ! -s conftest.err'
29729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730 (eval $ac_try) 2>&5
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); }; } &&
29734 { ac_try='test -s conftest.$ac_objext'
29735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736 (eval $ac_try) 2>&5
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); }; }; then
29740 ac_cv_func_std_isinf_in_cmath=yes
29742 echo "$as_me: failed program was:" >&5
29743 sed 's/^/| /' conftest.$ac_ext >&5
29745 ac_cv_func_std_isinf_in_cmath=no
29747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29749 ac_cpp='$CPP $CPPFLAGS'
29750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29755 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29756 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29758 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29760 cat >>confdefs.h <<\_ACEOF
29761 #define HAVE_STD_ISINF_IN_CMATH 1
29766 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29767 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29768 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29769 echo $ECHO_N "(cached) $ECHO_C" >&6
29772 ac_cpp='$CXXCPP $CPPFLAGS'
29773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29777 cat >conftest.$ac_ext <<_ACEOF
29780 cat confdefs.h >>conftest.$ac_ext
29781 cat >>conftest.$ac_ext <<_ACEOF
29782 /* end confdefs.h. */
29783 #include <ieeefp.h>
29787 float f; finite(f);
29792 rm -f conftest.$ac_objext
29793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29794 (eval $ac_compile) 2>conftest.er1
29796 grep -v '^ *+' conftest.er1 >conftest.err
29798 cat conftest.err >&5
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); } &&
29801 { ac_try='test -z "$ac_cxx_werror_flag"
29802 || test ! -s conftest.err'
29803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804 (eval $ac_try) 2>&5
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); }; } &&
29808 { ac_try='test -s conftest.$ac_objext'
29809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29810 (eval $ac_try) 2>&5
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); }; }; then
29814 ac_cv_func_finite_in_ieeefp_h=yes
29816 echo "$as_me: failed program was:" >&5
29817 sed 's/^/| /' conftest.$ac_ext >&5
29819 ac_cv_func_finite_in_ieeefp_h=no
29821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29823 ac_cpp='$CPP $CPPFLAGS'
29824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29829 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29830 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29832 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29834 cat >>confdefs.h <<\_ACEOF
29835 #define HAVE_FINITE_IN_IEEEFP_H 1
29844 for ac_header in stdlib.h unistd.h
29846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29848 echo "$as_me:$LINENO: checking for $ac_header" >&5
29849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29851 echo $ECHO_N "(cached) $ECHO_C" >&6
29853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29856 # Is the header compilable?
29857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29859 cat >conftest.$ac_ext <<_ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h. */
29865 $ac_includes_default
29866 #include <$ac_header>
29868 rm -f conftest.$ac_objext
29869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29870 (eval $ac_compile) 2>conftest.er1
29872 grep -v '^ *+' conftest.er1 >conftest.err
29874 cat conftest.err >&5
29875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876 (exit $ac_status); } &&
29877 { ac_try='test -z "$ac_c_werror_flag"
29878 || test ! -s conftest.err'
29879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29880 (eval $ac_try) 2>&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); }; } &&
29884 { ac_try='test -s conftest.$ac_objext'
29885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29886 (eval $ac_try) 2>&5
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); }; }; then
29890 ac_header_compiler=yes
29892 echo "$as_me: failed program was:" >&5
29893 sed 's/^/| /' conftest.$ac_ext >&5
29895 ac_header_compiler=no
29897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29899 echo "${ECHO_T}$ac_header_compiler" >&6
29901 # Is the header present?
29902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29904 cat >conftest.$ac_ext <<_ACEOF
29907 cat confdefs.h >>conftest.$ac_ext
29908 cat >>conftest.$ac_ext <<_ACEOF
29909 /* end confdefs.h. */
29910 #include <$ac_header>
29912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29915 grep -v '^ *+' conftest.er1 >conftest.err
29917 cat conftest.err >&5
29918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919 (exit $ac_status); } >/dev/null; then
29920 if test -s conftest.err; then
29921 ac_cpp_err=$ac_c_preproc_warn_flag
29922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29929 if test -z "$ac_cpp_err"; then
29930 ac_header_preproc=yes
29932 echo "$as_me: failed program was:" >&5
29933 sed 's/^/| /' conftest.$ac_ext >&5
29935 ac_header_preproc=no
29937 rm -f conftest.err conftest.$ac_ext
29938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29939 echo "${ECHO_T}$ac_header_preproc" >&6
29941 # So? What about this header?
29942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29948 ac_header_preproc=yes
29951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29965 ## ----------------------------------- ##
29966 ## Report this to llvmbugs@cs.uiuc.edu ##
29967 ## ----------------------------------- ##
29970 sed "s/^/$as_me: WARNING: /" >&2
29973 echo "$as_me:$LINENO: checking for $ac_header" >&5
29974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29978 eval "$as_ac_Header=\$ac_header_preproc"
29980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29985 cat >>confdefs.h <<_ACEOF
29986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29994 for ac_func in getpagesize
29996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29997 echo "$as_me:$LINENO: checking for $ac_func" >&5
29998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29999 if eval "test \"\${$as_ac_var+set}\" = set"; then
30000 echo $ECHO_N "(cached) $ECHO_C" >&6
30002 cat >conftest.$ac_ext <<_ACEOF
30005 cat confdefs.h >>conftest.$ac_ext
30006 cat >>conftest.$ac_ext <<_ACEOF
30007 /* end confdefs.h. */
30008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30010 #define $ac_func innocuous_$ac_func
30012 /* System header to define __stub macros and hopefully few prototypes,
30013 which can conflict with char $ac_func (); below.
30014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30015 <limits.h> exists even on freestanding compilers. */
30018 # include <limits.h>
30020 # include <assert.h>
30025 /* Override any gcc2 internal prototype to avoid an error. */
30030 /* We use char because int might match the return type of a gcc2
30031 builtin and then its argument prototype would still apply. */
30033 /* The GNU C library defines this for functions which it implements
30034 to always fail with ENOSYS. Some functions are actually named
30035 something starting with __ and the normal name is an alias. */
30036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30039 char (*f) () = $ac_func;
30048 return f != $ac_func;
30053 rm -f conftest.$ac_objext conftest$ac_exeext
30054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30055 (eval $ac_link) 2>conftest.er1
30057 grep -v '^ *+' conftest.er1 >conftest.err
30059 cat conftest.err >&5
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); } &&
30062 { ac_try='test -z "$ac_c_werror_flag"
30063 || test ! -s conftest.err'
30064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065 (eval $ac_try) 2>&5
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; } &&
30069 { ac_try='test -s conftest$ac_exeext'
30070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071 (eval $ac_try) 2>&5
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; }; then
30075 eval "$as_ac_var=yes"
30077 echo "$as_me: failed program was:" >&5
30078 sed 's/^/| /' conftest.$ac_ext >&5
30080 eval "$as_ac_var=no"
30082 rm -f conftest.err conftest.$ac_objext \
30083 conftest$ac_exeext conftest.$ac_ext
30085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30087 if test `eval echo '${'$as_ac_var'}'` = yes; then
30088 cat >>confdefs.h <<_ACEOF
30089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30095 echo "$as_me:$LINENO: checking for working mmap" >&5
30096 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30097 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30098 echo $ECHO_N "(cached) $ECHO_C" >&6
30100 if test "$cross_compiling" = yes; then
30101 ac_cv_func_mmap_fixed_mapped=no
30103 cat >conftest.$ac_ext <<_ACEOF
30106 cat confdefs.h >>conftest.$ac_ext
30107 cat >>conftest.$ac_ext <<_ACEOF
30108 /* end confdefs.h. */
30109 $ac_includes_default
30110 /* malloc might have been renamed as rpl_malloc. */
30113 /* Thanks to Mike Haertel and Jim Avera for this test.
30114 Here is a matrix of mmap possibilities:
30115 mmap private not fixed
30116 mmap private fixed at somewhere currently unmapped
30117 mmap private fixed at somewhere already mapped
30118 mmap shared not fixed
30119 mmap shared fixed at somewhere currently unmapped
30120 mmap shared fixed at somewhere already mapped
30121 For private mappings, we should verify that changes cannot be read()
30122 back from the file, nor mmap's back from the file at a different
30123 address. (There have been systems where private was not correctly
30124 implemented like the infamous i386 svr4.0, and systems where the
30125 VM page cache was not coherent with the file system buffer cache
30126 like early versions of FreeBSD and possibly contemporary NetBSD.)
30127 For shared mappings, we should conversely verify that changes get
30128 propagated back to all the places they're supposed to be.
30130 Grep wants private fixed already mapped.
30131 The main things grep needs to know about mmap are:
30132 * does it exist and is it safe to write into the mmap'd area
30133 * how to use it (BSD variants) */
30136 #include <sys/mman.h>
30138 #if !STDC_HEADERS && !HAVE_STDLIB_H
30142 /* This mess was copied from the GNU getpagesize.h. */
30143 #if !HAVE_GETPAGESIZE
30144 /* Assume that all systems that can run configure have sys/param.h. */
30145 # if !HAVE_SYS_PARAM_H
30146 # define HAVE_SYS_PARAM_H 1
30149 # ifdef _SC_PAGESIZE
30150 # define getpagesize() sysconf(_SC_PAGESIZE)
30151 # else /* no _SC_PAGESIZE */
30152 # if HAVE_SYS_PARAM_H
30153 # include <sys/param.h>
30154 # ifdef EXEC_PAGESIZE
30155 # define getpagesize() EXEC_PAGESIZE
30156 # else /* no EXEC_PAGESIZE */
30158 # define getpagesize() NBPG * CLSIZE
30161 # endif /* no CLSIZE */
30162 # else /* no NBPG */
30164 # define getpagesize() NBPC
30165 # else /* no NBPC */
30167 # define getpagesize() PAGESIZE
30168 # endif /* PAGESIZE */
30169 # endif /* no NBPC */
30170 # endif /* no NBPG */
30171 # endif /* no EXEC_PAGESIZE */
30172 # else /* no HAVE_SYS_PARAM_H */
30173 # define getpagesize() 8192 /* punt totally */
30174 # endif /* no HAVE_SYS_PARAM_H */
30175 # endif /* no _SC_PAGESIZE */
30177 #endif /* no HAVE_GETPAGESIZE */
30182 char *data, *data2, *data3;
30186 pagesize = getpagesize ();
30188 /* First, make a file with some known garbage in it. */
30189 data = (char *) malloc (pagesize);
30192 for (i = 0; i < pagesize; ++i)
30193 *(data + i) = rand ();
30195 fd = creat ("conftest.mmap", 0600);
30198 if (write (fd, data, pagesize) != pagesize)
30202 /* Next, try to mmap the file at a fixed address which already has
30203 something else allocated at it. If we can, also make sure that
30204 we see the same garbage. */
30205 fd = open ("conftest.mmap", O_RDWR);
30208 data2 = (char *) malloc (2 * pagesize);
30211 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30212 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30213 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30215 for (i = 0; i < pagesize; ++i)
30216 if (*(data + i) != *(data2 + i))
30219 /* Finally, make sure that changes to the mapped area do not
30220 percolate back to the file as seen by read(). (This is a bug on
30221 some variants of i386 svr4.0.) */
30222 for (i = 0; i < pagesize; ++i)
30223 *(data2 + i) = *(data2 + i) + 1;
30224 data3 = (char *) malloc (pagesize);
30227 if (read (fd, data3, pagesize) != pagesize)
30229 for (i = 0; i < pagesize; ++i)
30230 if (*(data + i) != *(data3 + i))
30236 rm -f conftest$ac_exeext
30237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30238 (eval $ac_link) 2>&5
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30243 (eval $ac_try) 2>&5
30245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246 (exit $ac_status); }; }; then
30247 ac_cv_func_mmap_fixed_mapped=yes
30249 echo "$as_me: program exited with status $ac_status" >&5
30250 echo "$as_me: failed program was:" >&5
30251 sed 's/^/| /' conftest.$ac_ext >&5
30253 ( exit $ac_status )
30254 ac_cv_func_mmap_fixed_mapped=no
30256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30259 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30260 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30261 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30263 cat >>confdefs.h <<\_ACEOF
30264 #define HAVE_MMAP 1
30268 rm -f conftest.mmap
30270 echo "$as_me:$LINENO: checking for mmap of files" >&5
30271 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30272 if test "${ac_cv_func_mmap_file+set}" = set; then
30273 echo $ECHO_N "(cached) $ECHO_C" >&6
30276 ac_cpp='$CPP $CPPFLAGS'
30277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30281 if test "$cross_compiling" = yes; then
30282 ac_cv_func_mmap_file=no
30284 cat >conftest.$ac_ext <<_ACEOF
30288 cat confdefs.h >>conftest.$ac_ext
30289 cat >>conftest.$ac_ext <<_ACEOF
30290 /* end confdefs.h. */
30292 #include <sys/types.h>
30293 #include <sys/mman.h>
30301 fd = creat ("foo",0777);
30302 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30304 return (fd != (int) MAP_FAILED);
30309 rm -f conftest$ac_exeext
30310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30311 (eval $ac_link) 2>&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30316 (eval $ac_try) 2>&5
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); }; }; then
30320 ac_cv_func_mmap_file=yes
30322 echo "$as_me: program exited with status $ac_status" >&5
30323 echo "$as_me: failed program was:" >&5
30324 sed 's/^/| /' conftest.$ac_ext >&5
30326 ( exit $ac_status )
30327 ac_cv_func_mmap_file=no
30329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30332 ac_cpp='$CPP $CPPFLAGS'
30333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30339 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30340 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30341 if test "$ac_cv_func_mmap_file" = yes; then
30343 cat >>confdefs.h <<\_ACEOF
30344 #define HAVE_MMAP_FILE
30351 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30352 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30353 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30354 echo $ECHO_N "(cached) $ECHO_C" >&6
30356 if test "$llvm_cv_os_type" = "Interix" ; then
30357 ac_cv_need_dev_zero_for_mmap=yes
30359 ac_cv_need_dev_zero_for_mmap=no
30363 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30364 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30365 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30367 cat >>confdefs.h <<\_ACEOF
30368 #define NEED_DEV_ZERO_FOR_MMAP 1
30372 echo "$as_me:$LINENO: checking for mprotect" >&5
30373 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30374 if test "${ac_cv_func_mprotect+set}" = set; then
30375 echo $ECHO_N "(cached) $ECHO_C" >&6
30377 cat >conftest.$ac_ext <<_ACEOF
30380 cat confdefs.h >>conftest.$ac_ext
30381 cat >>conftest.$ac_ext <<_ACEOF
30382 /* end confdefs.h. */
30383 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30385 #define mprotect innocuous_mprotect
30387 /* System header to define __stub macros and hopefully few prototypes,
30388 which can conflict with char mprotect (); below.
30389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30390 <limits.h> exists even on freestanding compilers. */
30393 # include <limits.h>
30395 # include <assert.h>
30400 /* Override any gcc2 internal prototype to avoid an error. */
30405 /* We use char because int might match the return type of a gcc2
30406 builtin and then its argument prototype would still apply. */
30408 /* The GNU C library defines this for functions which it implements
30409 to always fail with ENOSYS. Some functions are actually named
30410 something starting with __ and the normal name is an alias. */
30411 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30414 char (*f) () = mprotect;
30423 return f != mprotect;
30428 rm -f conftest.$ac_objext conftest$ac_exeext
30429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30430 (eval $ac_link) 2>conftest.er1
30432 grep -v '^ *+' conftest.er1 >conftest.err
30434 cat conftest.err >&5
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); } &&
30437 { ac_try='test -z "$ac_c_werror_flag"
30438 || test ! -s conftest.err'
30439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30440 (eval $ac_try) 2>&5
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); }; } &&
30444 { ac_try='test -s conftest$ac_exeext'
30445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446 (eval $ac_try) 2>&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); }; }; then
30450 ac_cv_func_mprotect=yes
30452 echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.$ac_ext >&5
30455 ac_cv_func_mprotect=no
30457 rm -f conftest.err conftest.$ac_objext \
30458 conftest$ac_exeext conftest.$ac_ext
30460 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30461 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30462 if test $ac_cv_func_mprotect = yes; then
30465 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30466 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30467 { (exit 1); exit 1; }; }
30471 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30473 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30474 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30476 if test "$ac_cv_func_mmap_file" = "no"
30478 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30479 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30483 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30484 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30485 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30486 echo $ECHO_N "(cached) $ECHO_C" >&6
30488 llvm_cv_llvmgcc_sanity="no"
30489 if test -x "$LLVMGCC" ; then
30490 cp /dev/null conftest.c
30491 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30492 if test $? -eq 0 ; then
30493 llvm_cv_llvmgcc_sanity="yes"
30498 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30499 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30501 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30502 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30503 LLVMCC1=$llvmcc1path
30505 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30506 LLVMCC1PLUS=$llvmcc1pluspath
30508 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30509 LLVMGCCDIR=$llvmgccdir
30513 SHLIBEXT=$libltdl_cv_shlibext
30516 # Translate the various configuration directories and other basic
30517 # information into substitutions that will end up in Makefile.config.in
30518 # that these configured values can be used by the makefiles
30519 eval LLVM_PREFIX="${prefix}";
30520 eval LLVM_BINDIR="${prefix}/bin";
30521 eval LLVM_LIBDIR="${prefix}/lib";
30522 eval LLVM_DATADIR="${prefix}/share/llvm";
30523 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30524 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30525 eval LLVM_INCLUDEDIR="${prefix}/include";
30526 eval LLVM_INFODIR="${prefix}/info";
30527 eval LLVM_MANDIR="${prefix}/man";
30528 LLVM_CONFIGTIME=`date`
30540 # Place the various directores into the config.h file as #defines so that we
30541 # can know about the installation paths within LLVM.
30543 cat >>confdefs.h <<_ACEOF
30544 #define LLVM_PREFIX "$LLVM_PREFIX"
30548 cat >>confdefs.h <<_ACEOF
30549 #define LLVM_BINDIR "$LLVM_BINDIR"
30553 cat >>confdefs.h <<_ACEOF
30554 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30558 cat >>confdefs.h <<_ACEOF
30559 #define LLVM_DATADIR "$LLVM_DATADIR"
30563 cat >>confdefs.h <<_ACEOF
30564 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30568 cat >>confdefs.h <<_ACEOF
30569 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30573 cat >>confdefs.h <<_ACEOF
30574 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30578 cat >>confdefs.h <<_ACEOF
30579 #define LLVM_INFODIR "$LLVM_INFODIR"
30583 cat >>confdefs.h <<_ACEOF
30584 #define LLVM_MANDIR "$LLVM_MANDIR"
30588 cat >>confdefs.h <<_ACEOF
30589 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30594 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30596 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30598 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30600 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30602 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30605 ac_config_files="$ac_config_files Makefile.config"
30608 ac_config_files="$ac_config_files docs/doxygen.cfg"
30611 ac_config_commands="$ac_config_commands setup"
30613 ac_config_commands="$ac_config_commands Makefile"
30616 ac_config_commands="$ac_config_commands Makefile.common"
30619 ac_config_commands="$ac_config_commands examples/Makefile"
30622 ac_config_commands="$ac_config_commands lib/Makefile"
30625 ac_config_commands="$ac_config_commands runtime/Makefile"
30628 ac_config_commands="$ac_config_commands test/Makefile"
30631 ac_config_commands="$ac_config_commands test/Makefile.tests"
30634 ac_config_commands="$ac_config_commands tools/Makefile"
30637 ac_config_commands="$ac_config_commands utils/Makefile"
30640 ac_config_commands="$ac_config_commands projects/Makefile"
30644 cat >confcache <<\_ACEOF
30645 # This file is a shell script that caches the results of configure
30646 # tests run on this system so they can be shared between configure
30647 # scripts and configure runs, see configure's option --config-cache.
30648 # It is not useful on other systems. If it contains results you don't
30649 # want to keep, you may remove or edit it.
30651 # config.status only pays attention to the cache file if you give it
30652 # the --recheck option to rerun configure.
30654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30656 # following values.
30660 # The following way of writing the cache mishandles newlines in values,
30661 # but we know of no workaround that is simple, portable, and efficient.
30662 # So, don't put newlines in cache variables' values.
30663 # Ultrix sh set writes to stderr and can't be redirected directly,
30664 # and sets the high bit in the cache file unless we assign to the vars.
30667 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30669 # `set' does not quote correctly, so add quotes (double-quote
30670 # substitution turns \\\\ into \\, and sed turns \\ into \).
30673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30676 # `set' quotes correctly as required by POSIX, so do not add quotes.
30678 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30687 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30689 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30690 if test -w $cache_file; then
30691 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30692 cat confcache >$cache_file
30694 echo "not updating unwritable cache $cache_file"
30699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30700 # Let make expand exec_prefix.
30701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30703 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30704 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30705 # trailing colons and then remove the whole line if VPATH becomes empty
30706 # (actually we leave an empty line to preserve line numbers).
30707 if test "x$srcdir" = x.; then
30708 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30709 s/:*\$(srcdir):*/:/;
30710 s/:*\${srcdir}:*/:/;
30712 s/^\([^=]*=[ ]*\):*/\1/;
30718 DEFS=-DHAVE_CONFIG_H
30722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30723 # 1. Remove the extension, and $U if already installed.
30724 ac_i=`echo "$ac_i" |
30725 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30727 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30728 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30730 LIBOBJS=$ac_libobjs
30732 LTLIBOBJS=$ac_ltlibobjs
30735 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30736 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30737 Usually this means the macro was only invoked conditionally." >&5
30738 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30739 Usually this means the macro was only invoked conditionally." >&2;}
30740 { (exit 1); exit 1; }; }
30742 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30743 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30744 Usually this means the macro was only invoked conditionally." >&5
30745 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30746 Usually this means the macro was only invoked conditionally." >&2;}
30747 { (exit 1); exit 1; }; }
30750 : ${CONFIG_STATUS=./config.status}
30751 ac_clean_files_save=$ac_clean_files
30752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30755 cat >$CONFIG_STATUS <<_ACEOF
30757 # Generated by $as_me.
30758 # Run this file to recreate the current configuration.
30759 # Compiler output produced by configure, useful for debugging
30760 # configure, is in config.log if it exists.
30763 ac_cs_recheck=false
30765 SHELL=\${CONFIG_SHELL-$SHELL}
30768 cat >>$CONFIG_STATUS <<\_ACEOF
30769 ## --------------------- ##
30770 ## M4sh Initialization. ##
30771 ## --------------------- ##
30773 # Be Bourne compatible
30774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30778 # is contrary to our usage. Disable this feature.
30779 alias -g '${1+"$@"}'='"$@"'
30780 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30783 DUALCASE=1; export DUALCASE # for MKS sh
30785 # Support unset when possible.
30786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30793 # Work around bugs in pre-3.0 UWIN ksh.
30794 $as_unset ENV MAIL MAILPATH
30801 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30802 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30803 LC_TELEPHONE LC_TIME
30805 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30806 eval $as_var=C; export $as_var
30812 # Required to use basename.
30813 if expr a : '\(a\)' >/dev/null 2>&1; then
30819 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30820 as_basename=basename
30826 # Name of the executable.
30827 as_me=`$as_basename "$0" ||
30828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30829 X"$0" : 'X\(//\)$' \| \
30830 X"$0" : 'X\(/\)$' \| \
30831 . : '\(.\)' 2>/dev/null ||
30833 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30834 /^X\/\(\/\/\)$/{ s//\1/; q; }
30835 /^X\/\(\/\).*/{ s//\1/; q; }
30839 # PATH needs CR, and LINENO needs CR and PATH.
30840 # Avoid depending upon Character Ranges.
30841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30844 as_cr_digits='0123456789'
30845 as_cr_alnum=$as_cr_Letters$as_cr_digits
30847 # The user is always right.
30848 if test "${PATH_SEPARATOR+set}" != set; then
30849 echo "#! /bin/sh" >conf$$.sh
30850 echo "exit 0" >>conf$$.sh
30852 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30861 as_lineno_1=$LINENO
30862 as_lineno_2=$LINENO
30863 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30864 test "x$as_lineno_1" != "x$as_lineno_2" &&
30865 test "x$as_lineno_3" = "x$as_lineno_2" || {
30866 # Find who we are. Look in the path if we contain no path at all
30869 *[\\/]* ) as_myself=$0 ;;
30870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30871 for as_dir in $PATH
30874 test -z "$as_dir" && as_dir=.
30875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30880 # We did not find ourselves, most probably we were run as `sh COMMAND'
30881 # in which case we are not to be found in the path.
30882 if test "x$as_myself" = x; then
30885 if test ! -f "$as_myself"; then
30886 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30887 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30888 { (exit 1); exit 1; }; }
30890 case $CONFIG_SHELL in
30892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30893 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30896 test -z "$as_dir" && as_dir=.
30897 for as_base in sh bash ksh sh5; do
30900 if ("$as_dir/$as_base" -c '
30901 as_lineno_1=$LINENO
30902 as_lineno_2=$LINENO
30903 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30904 test "x$as_lineno_1" != "x$as_lineno_2" &&
30905 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30906 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30907 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30908 CONFIG_SHELL=$as_dir/$as_base
30909 export CONFIG_SHELL
30910 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30918 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30919 # uniformly replaced by the line number. The first 'sed' inserts a
30920 # line-number line before each line; the second 'sed' does the real
30921 # work. The second script uses 'N' to pair each line-number line
30922 # with the numbered line, and appends trailing '-' during
30923 # substitution so that $LINENO is not a special case at line end.
30924 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30925 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30926 sed '=' <$as_myself |
30931 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30934 s,^['$as_cr_digits']*\n,,
30935 ' >$as_me.lineno &&
30936 chmod +x $as_me.lineno ||
30937 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30938 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30939 { (exit 1); exit 1; }; }
30941 # Don't try to exec as it changes $[0], causing all sort of problems
30942 # (the dirname of $[0] is not the place where we might find the
30943 # original and so on. Autoconf is especially sensible to this).
30945 # Exit status is that of the last command.
30950 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30951 *c*,-n*) ECHO_N= ECHO_C='
30953 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30954 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30957 if expr a : '\(a\)' >/dev/null 2>&1; then
30963 rm -f conf$$ conf$$.exe conf$$.file
30965 if ln -s conf$$.file conf$$ 2>/dev/null; then
30966 # We could just check for DJGPP; but this test a) works b) is more generic
30967 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30968 if test -f conf$$.exe; then
30969 # Don't use ln at all; we don't have any links
30974 elif ln conf$$.file conf$$ 2>/dev/null; then
30979 rm -f conf$$ conf$$.exe conf$$.file
30981 if mkdir -p . 2>/dev/null; then
30984 test -d ./-p && rmdir ./-p
30988 as_executable_p="test -f"
30990 # Sed expression to map a string onto a valid CPP name.
30991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30993 # Sed expression to map a string onto a valid variable name.
30994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30998 # We need space, tab and new line, in precisely that order.
31008 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31009 # report actual input values of CONFIG_FILES etc. instead of their
31010 # values after options handling. Logging --version etc. is OK.
31014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31015 ## Running $as_me. ##
31020 This file was extended by llvm $as_me 1.6cvs, which was
31021 generated by GNU Autoconf 2.59. Invocation command line was
31023 CONFIG_FILES = $CONFIG_FILES
31024 CONFIG_HEADERS = $CONFIG_HEADERS
31025 CONFIG_LINKS = $CONFIG_LINKS
31026 CONFIG_COMMANDS = $CONFIG_COMMANDS
31030 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31034 # Files that config.status was made for.
31035 if test -n "$ac_config_files"; then
31036 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31039 if test -n "$ac_config_headers"; then
31040 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31043 if test -n "$ac_config_links"; then
31044 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31047 if test -n "$ac_config_commands"; then
31048 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31051 cat >>$CONFIG_STATUS <<\_ACEOF
31054 \`$as_me' instantiates files from templates according to the
31055 current configuration.
31057 Usage: $0 [OPTIONS] [FILE]...
31059 -h, --help print this help, then exit
31060 -V, --version print version number, then exit
31061 -q, --quiet do not print progress messages
31062 -d, --debug don't remove temporary files
31063 --recheck update $as_me by reconfiguring in the same conditions
31064 --file=FILE[:TEMPLATE]
31065 instantiate the configuration file FILE
31066 --header=FILE[:TEMPLATE]
31067 instantiate the configuration header FILE
31069 Configuration files:
31072 Configuration headers:
31075 Configuration commands:
31078 Report bugs to <bug-autoconf@gnu.org>."
31081 cat >>$CONFIG_STATUS <<_ACEOF
31083 llvm config.status 1.6cvs
31084 configured by $0, generated by GNU Autoconf 2.59,
31085 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31087 Copyright (C) 2003 Free Software Foundation, Inc.
31088 This config.status script is free software; the Free Software Foundation
31089 gives unlimited permission to copy, distribute and modify it."
31094 cat >>$CONFIG_STATUS <<\_ACEOF
31095 # If no file are specified by the user, then we need to provide default
31096 # value. By we need to know if files were specified by the user.
31102 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31103 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31111 *) # This is not an option, so the user has probably given explicit
31114 ac_need_defaults=false;;
31118 # Handling of the options.
31120 cat >>$CONFIG_STATUS <<\_ACEOF
31121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31123 --version | --vers* | -V )
31124 echo "$ac_cs_version"; exit 0 ;;
31126 # Conflict between --help and --header
31127 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31128 Try \`$0 --help' for more information." >&5
31129 echo "$as_me: error: ambiguous option: $1
31130 Try \`$0 --help' for more information." >&2;}
31131 { (exit 1); exit 1; }; };;
31132 --help | --hel | -h )
31133 echo "$ac_cs_usage"; exit 0 ;;
31134 --debug | --d* | -d )
31136 --file | --fil | --fi | --f )
31138 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31139 ac_need_defaults=false;;
31140 --header | --heade | --head | --hea )
31142 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31143 ac_need_defaults=false;;
31144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31148 # This is an error.
31149 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31150 Try \`$0 --help' for more information." >&5
31151 echo "$as_me: error: unrecognized option: $1
31152 Try \`$0 --help' for more information." >&2;}
31153 { (exit 1); exit 1; }; } ;;
31155 *) ac_config_targets="$ac_config_targets $1" ;;
31161 ac_configure_extra_args=
31163 if $ac_cs_silent; then
31165 ac_configure_extra_args="$ac_configure_extra_args --silent"
31169 cat >>$CONFIG_STATUS <<_ACEOF
31170 if \$ac_cs_recheck; then
31171 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31172 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31177 cat >>$CONFIG_STATUS <<_ACEOF
31179 # INIT-COMMANDS section.
31182 llvm_src="${srcdir}"
31188 cat >>$CONFIG_STATUS <<\_ACEOF
31189 for ac_config_target in $ac_config_targets
31191 case "$ac_config_target" in
31192 # Handling of arguments.
31193 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31194 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31195 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31196 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31197 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31198 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31199 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31200 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31201 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31202 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31203 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31204 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31205 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31206 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31207 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31208 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31209 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31210 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31211 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31212 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31213 { (exit 1); exit 1; }; };;
31217 # If the user did not use the arguments to specify the items to instantiate,
31218 # then the envvar interface is used. Set only those that are not.
31219 # We use the long form for the default assignment because of an extremely
31220 # bizarre bug on SunOS 4.1.3.
31221 if $ac_need_defaults; then
31222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31227 # Have a temporary directory for convenience. Make it in the build tree
31228 # simply because there is no reason to put it here, and in addition,
31229 # creating and moving files from /tmp can sometimes cause problems.
31230 # Create a temporary directory, and hook for its removal unless debugging.
31233 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31234 trap '{ (exit 1); exit 1; }' 1 2 13 15
31237 # Create a (secure) tmp directory for tmp files.
31240 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31241 test -n "$tmp" && test -d "$tmp"
31244 tmp=./confstat$$-$RANDOM
31245 (umask 077 && mkdir $tmp)
31248 echo "$me: cannot create a temporary directory in ." >&2
31249 { (exit 1); exit 1; }
31254 cat >>$CONFIG_STATUS <<_ACEOF
31257 # CONFIG_FILES section.
31260 # No need to generate the scripts if there are no CONFIG_FILES.
31261 # This happens for instance when ./config.status config.h
31262 if test -n "\$CONFIG_FILES"; then
31263 # Protect against being on the right side of a sed subst in config.status.
31264 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31265 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31266 s,@SHELL@,$SHELL,;t t
31267 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31268 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31269 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31270 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31271 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31272 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31273 s,@exec_prefix@,$exec_prefix,;t t
31274 s,@prefix@,$prefix,;t t
31275 s,@program_transform_name@,$program_transform_name,;t t
31276 s,@bindir@,$bindir,;t t
31277 s,@sbindir@,$sbindir,;t t
31278 s,@libexecdir@,$libexecdir,;t t
31279 s,@datadir@,$datadir,;t t
31280 s,@sysconfdir@,$sysconfdir,;t t
31281 s,@sharedstatedir@,$sharedstatedir,;t t
31282 s,@localstatedir@,$localstatedir,;t t
31283 s,@libdir@,$libdir,;t t
31284 s,@includedir@,$includedir,;t t
31285 s,@oldincludedir@,$oldincludedir,;t t
31286 s,@infodir@,$infodir,;t t
31287 s,@mandir@,$mandir,;t t
31288 s,@build_alias@,$build_alias,;t t
31289 s,@host_alias@,$host_alias,;t t
31290 s,@target_alias@,$target_alias,;t t
31291 s,@DEFS@,$DEFS,;t t
31292 s,@ECHO_C@,$ECHO_C,;t t
31293 s,@ECHO_N@,$ECHO_N,;t t
31294 s,@ECHO_T@,$ECHO_T,;t t
31295 s,@LIBS@,$LIBS,;t t
31296 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31297 s,@subdirs@,$subdirs,;t t
31298 s,@build@,$build,;t t
31299 s,@build_cpu@,$build_cpu,;t t
31300 s,@build_vendor@,$build_vendor,;t t
31301 s,@build_os@,$build_os,;t t
31302 s,@host@,$host,;t t
31303 s,@host_cpu@,$host_cpu,;t t
31304 s,@host_vendor@,$host_vendor,;t t
31305 s,@host_os@,$host_os,;t t
31306 s,@target@,$target,;t t
31307 s,@target_cpu@,$target_cpu,;t t
31308 s,@target_vendor@,$target_vendor,;t t
31309 s,@target_os@,$target_os,;t t
31311 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31312 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31313 s,@ARCH@,$ARCH,;t t
31314 s,@ENDIAN@,$ENDIAN,;t t
31316 s,@CFLAGS@,$CFLAGS,;t t
31317 s,@LDFLAGS@,$LDFLAGS,;t t
31318 s,@CPPFLAGS@,$CPPFLAGS,;t t
31319 s,@ac_ct_CC@,$ac_ct_CC,;t t
31320 s,@EXEEXT@,$EXEEXT,;t t
31321 s,@OBJEXT@,$OBJEXT,;t t
31322 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31324 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31325 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31328 s,@CXXFLAGS@,$CXXFLAGS,;t t
31329 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31331 s,@LEXLIB@,$LEXLIB,;t t
31332 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31333 s,@FLEX@,$FLEX,;t t
31334 s,@YACC@,$YACC,;t t
31335 s,@BISON@,$BISON,;t t
31336 s,@ifGNUmake@,$ifGNUmake,;t t
31337 s,@LN_S@,$LN_S,;t t
31340 s,@DATE@,$DATE,;t t
31341 s,@FIND@,$FIND,;t t
31342 s,@GREP@,$GREP,;t t
31343 s,@MKDIR@,$MKDIR,;t t
31345 s,@RANLIB@,$RANLIB,;t t
31346 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31350 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31352 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31353 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31354 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31355 s,@BZIP2@,$BZIP2,;t t
31357 s,@DOXYGEN@,$DOXYGEN,;t t
31358 s,@ETAGS@,$ETAGS,;t t
31359 s,@GROFF@,$GROFF,;t t
31360 s,@GZIP@,$GZIP,;t t
31361 s,@POD2HTML@,$POD2HTML,;t t
31362 s,@POD2MAN@,$POD2MAN,;t t
31363 s,@RUNTEST@,$RUNTEST,;t t
31364 s,@TCLSH@,$TCLSH,;t t
31366 s,@EGREP@,$EGREP,;t t
31367 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31368 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31369 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31370 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31371 s,@LIBADD_DL@,$LIBADD_DL,;t t
31372 s,@ECHO@,$ECHO,;t t
31374 s,@ac_ct_AR@,$ac_ct_AR,;t t
31375 s,@STRIP@,$STRIP,;t t
31376 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31377 s,@CXXCPP@,$CXXCPP,;t t
31379 s,@FFLAGS@,$FFLAGS,;t t
31380 s,@ac_ct_F77@,$ac_ct_F77,;t t
31381 s,@LIBTOOL@,$LIBTOOL,;t t
31382 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31383 s,@LLVMGCC@,$LLVMGCC,;t t
31384 s,@LLVMGXX@,$LLVMGXX,;t t
31385 s,@ALLOCA@,$ALLOCA,;t t
31386 s,@MMAP_FILE@,$MMAP_FILE,;t t
31387 s,@LLVMCC1@,$LLVMCC1,;t t
31388 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31389 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31390 s,@SHLIBEXT@,$SHLIBEXT,;t t
31391 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31392 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31393 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31394 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31395 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31396 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31397 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31398 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31399 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31400 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31401 s,@LIBOBJS@,$LIBOBJS,;t t
31402 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31407 cat >>$CONFIG_STATUS <<\_ACEOF
31408 # Split the substitutions into bite-sized pieces for seds with
31409 # small command number limits, like on Digital OSF/1 and HP-UX.
31410 ac_max_sed_lines=48
31411 ac_sed_frag=1 # Number of current file.
31412 ac_beg=1 # First line for current file.
31413 ac_end=$ac_max_sed_lines # Line after last line for current file.
31416 while $ac_more_lines; do
31417 if test $ac_beg -gt 1; then
31418 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31420 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31422 if test ! -s $tmp/subs.frag; then
31423 ac_more_lines=false
31425 # The purpose of the label and of the branching condition is to
31426 # speed up the sed processing (if there are no `@' at all, there
31427 # is no need to browse any of the substitutions).
31428 # These are the two extra sed commands mentioned above.
31430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31431 if test -z "$ac_sed_cmds"; then
31432 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31434 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31436 ac_sed_frag=`expr $ac_sed_frag + 1`
31438 ac_end=`expr $ac_end + $ac_max_sed_lines`
31441 if test -z "$ac_sed_cmds"; then
31444 fi # test -n "$CONFIG_FILES"
31447 cat >>$CONFIG_STATUS <<\_ACEOF
31448 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31451 - | *:- | *:-:* ) # input from stdin
31453 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31455 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31457 * ) ac_file_in=$ac_file.in ;;
31460 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31461 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31463 X"$ac_file" : 'X\(//\)[^/]' \| \
31464 X"$ac_file" : 'X\(//\)$' \| \
31465 X"$ac_file" : 'X\(/\)' \| \
31466 . : '\(.\)' 2>/dev/null ||
31468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31469 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31470 /^X\(\/\/\)$/{ s//\1/; q; }
31471 /^X\(\/\).*/{ s//\1/; q; }
31473 { if $as_mkdir_p; then
31478 while test ! -d "$as_dir"; do
31479 as_dirs="$as_dir $as_dirs"
31480 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31481 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31482 X"$as_dir" : 'X\(//\)[^/]' \| \
31483 X"$as_dir" : 'X\(//\)$' \| \
31484 X"$as_dir" : 'X\(/\)' \| \
31485 . : '\(.\)' 2>/dev/null ||
31487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31489 /^X\(\/\/\)$/{ s//\1/; q; }
31490 /^X\(\/\).*/{ s//\1/; q; }
31493 test ! -n "$as_dirs" || mkdir $as_dirs
31494 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31495 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31496 { (exit 1); exit 1; }; }; }
31500 if test "$ac_dir" != .; then
31501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31502 # A "../" for each directory in $ac_dir_suffix.
31503 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31505 ac_dir_suffix= ac_top_builddir=
31509 .) # No --srcdir option. We are building in place.
31511 if test -z "$ac_top_builddir"; then
31514 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31516 [\\/]* | ?:[\\/]* ) # Absolute path.
31517 ac_srcdir=$srcdir$ac_dir_suffix;
31518 ac_top_srcdir=$srcdir ;;
31519 *) # Relative path.
31520 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31521 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31524 # Do not use `cd foo && pwd` to compute absolute paths, because
31525 # the directories may not exist.
31527 .) ac_abs_builddir="$ac_dir";;
31530 .) ac_abs_builddir=`pwd`;;
31531 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31532 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31535 case $ac_abs_builddir in
31536 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31538 case ${ac_top_builddir}. in
31539 .) ac_abs_top_builddir=$ac_abs_builddir;;
31540 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31541 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31544 case $ac_abs_builddir in
31545 .) ac_abs_srcdir=$ac_srcdir;;
31548 .) ac_abs_srcdir=$ac_abs_builddir;;
31549 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31550 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31553 case $ac_abs_builddir in
31554 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31556 case $ac_top_srcdir in
31557 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31558 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31559 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31566 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31569 if test x"$ac_file" != x-; then
31570 { echo "$as_me:$LINENO: creating $ac_file" >&5
31571 echo "$as_me: creating $ac_file" >&6;}
31574 # Let's still pretend it is `configure' which instantiates (i.e., don't
31575 # use $as_me), people would be surprised to read:
31576 # /* config.h. Generated by config.status. */
31577 if test x"$ac_file" = x-; then
31580 configure_input="$ac_file. "
31582 configure_input=$configure_input"Generated from `echo $ac_file_in |
31583 sed 's,.*/,,'` by configure."
31585 # First look for the input files in the build tree, otherwise in the
31587 ac_file_inputs=`IFS=:
31588 for f in $ac_file_in; do
31590 -) echo $tmp/stdin ;;
31592 # Absolute (can't be DOS-style, as IFS=:)
31593 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31594 echo "$as_me: error: cannot find input file: $f" >&2;}
31595 { (exit 1); exit 1; }; }
31598 if test -f "$f"; then
31601 elif test -f "$srcdir/$f"; then
31606 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31607 echo "$as_me: error: cannot find input file: $f" >&2;}
31608 { (exit 1); exit 1; }; }
31611 done` || { (exit 1); exit 1; }
31613 cat >>$CONFIG_STATUS <<_ACEOF
31617 cat >>$CONFIG_STATUS <<\_ACEOF
31619 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31620 s,@configure_input@,$configure_input,;t t
31621 s,@srcdir@,$ac_srcdir,;t t
31622 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31623 s,@top_srcdir@,$ac_top_srcdir,;t t
31624 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31625 s,@builddir@,$ac_builddir,;t t
31626 s,@abs_builddir@,$ac_abs_builddir,;t t
31627 s,@top_builddir@,$ac_top_builddir,;t t
31628 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31629 s,@INSTALL@,$ac_INSTALL,;t t
31630 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31632 if test x"$ac_file" != x-; then
31633 mv $tmp/out $ac_file
31641 cat >>$CONFIG_STATUS <<\_ACEOF
31644 # CONFIG_HEADER section.
31647 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31648 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31650 # ac_d sets the value in "#define NAME VALUE" lines.
31651 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31652 ac_dB='[ ].*$,\1#\2'
31655 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31656 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31657 ac_uB='$,\1#\2define\3'
31661 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31664 - | *:- | *:-:* ) # input from stdin
31666 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31668 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31670 * ) ac_file_in=$ac_file.in ;;
31673 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31674 echo "$as_me: creating $ac_file" >&6;}
31676 # First look for the input files in the build tree, otherwise in the
31678 ac_file_inputs=`IFS=:
31679 for f in $ac_file_in; do
31681 -) echo $tmp/stdin ;;
31683 # Absolute (can't be DOS-style, as IFS=:)
31684 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31685 echo "$as_me: error: cannot find input file: $f" >&2;}
31686 { (exit 1); exit 1; }; }
31687 # Do quote $f, to prevent DOS paths from being IFS'd.
31690 if test -f "$f"; then
31693 elif test -f "$srcdir/$f"; then
31698 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31699 echo "$as_me: error: cannot find input file: $f" >&2;}
31700 { (exit 1); exit 1; }; }
31703 done` || { (exit 1); exit 1; }
31704 # Remove the trailing spaces.
31705 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31709 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31710 # `conftest.undefs', that substitutes the proper values into
31711 # config.h.in to produce config.h. The first handles `#define'
31712 # templates, and the second `#undef' templates.
31713 # And first: Protect against being on the right side of a sed subst in
31714 # config.status. Protect against being in an unquoted here document
31715 # in config.status.
31716 rm -f conftest.defines conftest.undefs
31717 # Using a here document instead of a string reduces the quoting nightmare.
31718 # Putting comments in sed scripts is not portable.
31720 # `end' is used to avoid that the second main sed command (meant for
31721 # 0-ary CPP macros) applies to n-ary macro definitions.
31722 # See the Autoconf documentation for `clear'.
31723 cat >confdef2sed.sed <<\_ACEOF
31728 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31730 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31733 # If some macros were called several times there might be several times
31734 # the same #defines, which is useless. Nevertheless, we may not want to
31735 # sort them, since we want the *last* AC-DEFINE to be honored.
31736 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31737 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31738 rm -f confdef2sed.sed
31740 # This sed command replaces #undef with comments. This is necessary, for
31741 # example, in the case of _POSIX_SOURCE, which is predefined and required
31742 # on some systems where configure will not decide to define it.
31743 cat >>conftest.undefs <<\_ACEOF
31744 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31747 # Break up conftest.defines because some shells have a limit on the size
31748 # of here documents, and old seds have small limits too (100 cmds).
31749 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31750 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31751 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31752 echo ' :' >>$CONFIG_STATUS
31753 rm -f conftest.tail
31754 while grep . conftest.defines >/dev/null
31756 # Write a limited-size here document to $tmp/defines.sed.
31757 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31758 # Speed up: don't consider the non `#define' lines.
31759 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31760 # Work around the forget-to-reset-the-flag bug.
31761 echo 't clr' >>$CONFIG_STATUS
31762 echo ': clr' >>$CONFIG_STATUS
31763 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31765 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31767 mv $tmp/out $tmp/in
31769 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31770 rm -f conftest.defines
31771 mv conftest.tail conftest.defines
31773 rm -f conftest.defines
31774 echo ' fi # grep' >>$CONFIG_STATUS
31775 echo >>$CONFIG_STATUS
31777 # Break up conftest.undefs because some shells have a limit on the size
31778 # of here documents, and old seds have small limits too (100 cmds).
31779 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31780 rm -f conftest.tail
31781 while grep . conftest.undefs >/dev/null
31783 # Write a limited-size here document to $tmp/undefs.sed.
31784 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31785 # Speed up: don't consider the non `#undef'
31786 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31787 # Work around the forget-to-reset-the-flag bug.
31788 echo 't clr' >>$CONFIG_STATUS
31789 echo ': clr' >>$CONFIG_STATUS
31790 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31792 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31794 mv $tmp/out $tmp/in
31796 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31797 rm -f conftest.undefs
31798 mv conftest.tail conftest.undefs
31800 rm -f conftest.undefs
31802 cat >>$CONFIG_STATUS <<\_ACEOF
31803 # Let's still pretend it is `configure' which instantiates (i.e., don't
31804 # use $as_me), people would be surprised to read:
31805 # /* config.h. Generated by config.status. */
31806 if test x"$ac_file" = x-; then
31807 echo "/* Generated by configure. */" >$tmp/config.h
31809 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31811 cat $tmp/in >>$tmp/config.h
31813 if test x"$ac_file" != x-; then
31814 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31815 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31816 echo "$as_me: $ac_file is unchanged" >&6;}
31818 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31820 X"$ac_file" : 'X\(//\)[^/]' \| \
31821 X"$ac_file" : 'X\(//\)$' \| \
31822 X"$ac_file" : 'X\(/\)' \| \
31823 . : '\(.\)' 2>/dev/null ||
31825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31827 /^X\(\/\/\)$/{ s//\1/; q; }
31828 /^X\(\/\).*/{ s//\1/; q; }
31830 { if $as_mkdir_p; then
31835 while test ! -d "$as_dir"; do
31836 as_dirs="$as_dir $as_dirs"
31837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31839 X"$as_dir" : 'X\(//\)[^/]' \| \
31840 X"$as_dir" : 'X\(//\)$' \| \
31841 X"$as_dir" : 'X\(/\)' \| \
31842 . : '\(.\)' 2>/dev/null ||
31844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31846 /^X\(\/\/\)$/{ s//\1/; q; }
31847 /^X\(\/\).*/{ s//\1/; q; }
31850 test ! -n "$as_dirs" || mkdir $as_dirs
31851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31853 { (exit 1); exit 1; }; }; }
31856 mv $tmp/config.h $ac_file
31860 rm -f $tmp/config.h
31864 cat >>$CONFIG_STATUS <<\_ACEOF
31867 # CONFIG_COMMANDS section.
31869 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31870 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31871 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31872 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31873 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31874 X"$ac_dest" : 'X\(//\)[^/]' \| \
31875 X"$ac_dest" : 'X\(//\)$' \| \
31876 X"$ac_dest" : 'X\(/\)' \| \
31877 . : '\(.\)' 2>/dev/null ||
31879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31881 /^X\(\/\/\)$/{ s//\1/; q; }
31882 /^X\(\/\).*/{ s//\1/; q; }
31884 { if $as_mkdir_p; then
31889 while test ! -d "$as_dir"; do
31890 as_dirs="$as_dir $as_dirs"
31891 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31893 X"$as_dir" : 'X\(//\)[^/]' \| \
31894 X"$as_dir" : 'X\(//\)$' \| \
31895 X"$as_dir" : 'X\(/\)' \| \
31896 . : '\(.\)' 2>/dev/null ||
31898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31900 /^X\(\/\/\)$/{ s//\1/; q; }
31901 /^X\(\/\).*/{ s//\1/; q; }
31904 test ! -n "$as_dirs" || mkdir $as_dirs
31905 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31906 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31907 { (exit 1); exit 1; }; }; }
31911 if test "$ac_dir" != .; then
31912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31913 # A "../" for each directory in $ac_dir_suffix.
31914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31916 ac_dir_suffix= ac_top_builddir=
31920 .) # No --srcdir option. We are building in place.
31922 if test -z "$ac_top_builddir"; then
31925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31927 [\\/]* | ?:[\\/]* ) # Absolute path.
31928 ac_srcdir=$srcdir$ac_dir_suffix;
31929 ac_top_srcdir=$srcdir ;;
31930 *) # Relative path.
31931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31935 # Do not use `cd foo && pwd` to compute absolute paths, because
31936 # the directories may not exist.
31938 .) ac_abs_builddir="$ac_dir";;
31941 .) ac_abs_builddir=`pwd`;;
31942 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31943 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31946 case $ac_abs_builddir in
31947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31949 case ${ac_top_builddir}. in
31950 .) ac_abs_top_builddir=$ac_abs_builddir;;
31951 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31952 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31955 case $ac_abs_builddir in
31956 .) ac_abs_srcdir=$ac_srcdir;;
31959 .) ac_abs_srcdir=$ac_abs_builddir;;
31960 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31961 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31964 case $ac_abs_builddir in
31965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31967 case $ac_top_srcdir in
31968 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31969 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31970 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31975 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31976 echo "$as_me: executing $ac_dest commands" >&6;}
31978 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31979 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31980 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31981 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31982 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31983 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31984 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31985 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31986 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31987 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31988 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31989 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31990 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31991 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31992 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31993 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31994 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31995 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31996 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31997 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32002 cat >>$CONFIG_STATUS <<\_ACEOF
32004 { (exit 0); exit 0; }
32006 chmod +x $CONFIG_STATUS
32007 ac_clean_files=$ac_clean_files_save
32010 # configure is writing to config.log, and then calls config.status.
32011 # config.status does its own redirection, appending to config.log.
32012 # Unfortunately, on DOS this fails, as config.log is still kept open
32013 # by configure, so config.status won't be able to write to it; its
32014 # output is simply discarded. So we exec the FD to /dev/null,
32015 # effectively closing config.log, so it can be properly (re)opened and
32016 # appended to by config.status. When coming back to configure, we
32017 # need to make the FD available again.
32018 if test "$no_create" != yes; then
32020 ac_config_status_args=
32021 test "$silent" = yes &&
32022 ac_config_status_args="$ac_config_status_args --quiet"
32024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32027 # would make configure fail if this is the last instruction.
32028 $ac_cs_success || { (exit 1); exit 1; }
32032 # CONFIG_SUBDIRS section.
32034 if test "$no_recursion" != yes; then
32036 # Remove --cache-file and --srcdir arguments so they do not pile up.
32037 ac_sub_configure_args=
32039 for ac_arg in $ac_configure_args; do
32040 if test -n "$ac_prev"; then
32045 -cache-file | --cache-file | --cache-fil | --cache-fi \
32046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32047 ac_prev=cache_file ;;
32048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32052 --config-cache | -C)
32054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32062 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32066 # Always prepend --prefix to ensure using the same prefix
32067 # in subdir configurations.
32068 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32071 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32073 # Do not complain, so a configure script can configure whichever
32074 # parts of a large source tree are present.
32075 test -d $srcdir/$ac_dir || continue
32077 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32078 echo "$as_me: configuring in $ac_dir" >&6;}
32079 { if $as_mkdir_p; then
32084 while test ! -d "$as_dir"; do
32085 as_dirs="$as_dir $as_dirs"
32086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32088 X"$as_dir" : 'X\(//\)[^/]' \| \
32089 X"$as_dir" : 'X\(//\)$' \| \
32090 X"$as_dir" : 'X\(/\)' \| \
32091 . : '\(.\)' 2>/dev/null ||
32093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32095 /^X\(\/\/\)$/{ s//\1/; q; }
32096 /^X\(\/\).*/{ s//\1/; q; }
32099 test ! -n "$as_dirs" || mkdir $as_dirs
32100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32102 { (exit 1); exit 1; }; }; }
32106 if test "$ac_dir" != .; then
32107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32108 # A "../" for each directory in $ac_dir_suffix.
32109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32111 ac_dir_suffix= ac_top_builddir=
32115 .) # No --srcdir option. We are building in place.
32117 if test -z "$ac_top_builddir"; then
32120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32122 [\\/]* | ?:[\\/]* ) # Absolute path.
32123 ac_srcdir=$srcdir$ac_dir_suffix;
32124 ac_top_srcdir=$srcdir ;;
32125 *) # Relative path.
32126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32130 # Do not use `cd foo && pwd` to compute absolute paths, because
32131 # the directories may not exist.
32133 .) ac_abs_builddir="$ac_dir";;
32136 .) ac_abs_builddir=`pwd`;;
32137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32141 case $ac_abs_builddir in
32142 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32144 case ${ac_top_builddir}. in
32145 .) ac_abs_top_builddir=$ac_abs_builddir;;
32146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32150 case $ac_abs_builddir in
32151 .) ac_abs_srcdir=$ac_srcdir;;
32154 .) ac_abs_srcdir=$ac_abs_builddir;;
32155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32159 case $ac_abs_builddir in
32160 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32162 case $ac_top_srcdir in
32163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32172 # Check for guested configure; otherwise get Cygnus style configure.
32173 if test -f $ac_srcdir/configure.gnu; then
32174 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32175 elif test -f $ac_srcdir/configure; then
32176 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32177 elif test -f $ac_srcdir/configure.in; then
32178 ac_sub_configure=$ac_configure
32180 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32185 # The recursion is here.
32186 if test -n "$ac_sub_configure"; then
32187 # Make the cache file name correct relative to the subdirectory.
32188 case $cache_file in
32189 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32190 *) # Relative path.
32191 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32194 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32195 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32196 # The eval makes quoting arguments work.
32197 eval $ac_sub_configure $ac_sub_configure_args \
32198 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32199 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32200 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32201 { (exit 1); exit 1; }; }
32209 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32210 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32211 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32212 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32213 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32214 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32215 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32216 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32217 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32218 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32219 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}