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 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
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"
5110 # Find a good install program. We prefer a C program (faster),
5111 # so one script is as good as another. But avoid the broken or
5112 # incompatible versions:
5113 # SysV /etc/install, /usr/sbin/install
5114 # SunOS /usr/etc/install
5115 # IRIX /sbin/install
5117 # AmigaOS /C/install, which installs bootblocks on floppy discs
5118 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5121 # OS/2's system install, which has a completely different semantic
5122 # ./install, which can be erroneously created by make from ./install.sh.
5123 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5124 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5125 if test -z "$INSTALL"; then
5126 if test "${ac_cv_path_install+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 test -z "$as_dir" && as_dir=.
5134 # Account for people who put trailing slashes in PATH elements.
5136 ./ | .// | /cC/* | \
5137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5138 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5141 # OSF1 and SCO ODT 3.0 have their own names for install.
5142 # Don't use installbsd from OSF since it installs stuff as root
5144 for ac_prog in ginstall scoinst install; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5147 if test $ac_prog = install &&
5148 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5149 # AIX install. It has an incompatible calling convention.
5151 elif test $ac_prog = install &&
5152 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5153 # program-specific install script used by HP pwplus--don't use.
5156 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5168 if test "${ac_cv_path_install+set}" = set; then
5169 INSTALL=$ac_cv_path_install
5171 # As a last resort, use the slow shell script. We don't cache a
5172 # path for INSTALL within a source directory, because that will
5173 # break other packages using the cache if that directory is
5174 # removed, or if the path is relative.
5175 INSTALL=$ac_install_sh
5178 echo "$as_me:$LINENO: result: $INSTALL" >&5
5179 echo "${ECHO_T}$INSTALL" >&6
5181 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5182 # It thinks the first close brace ends the variable substitution.
5183 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5185 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5187 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5190 # Extract the first word of "bzip2", so it can be a program name with args.
5191 set dummy bzip2; ac_word=$2
5192 echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194 if test "${ac_cv_path_BZIP2+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5220 BZIP2=$ac_cv_path_BZIP2
5222 if test -n "$BZIP2"; then
5223 echo "$as_me:$LINENO: result: $BZIP2" >&5
5224 echo "${ECHO_T}$BZIP2" >&6
5226 echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6
5230 # Extract the first word of "dot", so it can be a program name with args.
5231 set dummy dot; ac_word=$2
5232 echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234 if test "${ac_cv_path_DOT+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5262 if test -n "$DOT"; then
5263 echo "$as_me:$LINENO: result: $DOT" >&5
5264 echo "${ECHO_T}$DOT" >&6
5266 echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5270 # Extract the first word of "doxygen", so it can be a program name with args.
5271 set dummy doxygen; ac_word=$2
5272 echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5300 DOXYGEN=$ac_cv_path_DOXYGEN
5302 if test -n "$DOXYGEN"; then
5303 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5304 echo "${ECHO_T}$DOXYGEN" >&6
5306 echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6
5310 # Extract the first word of "etags", so it can be a program name with args.
5311 set dummy etags; ac_word=$2
5312 echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314 if test "${ac_cv_path_ETAGS+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5340 ETAGS=$ac_cv_path_ETAGS
5342 if test -n "$ETAGS"; then
5343 echo "$as_me:$LINENO: result: $ETAGS" >&5
5344 echo "${ECHO_T}$ETAGS" >&6
5346 echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6
5350 # Extract the first word of "groff", so it can be a program name with args.
5351 set dummy groff; ac_word=$2
5352 echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354 if test "${ac_cv_path_GROFF+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5380 GROFF=$ac_cv_path_GROFF
5382 if test -n "$GROFF"; then
5383 echo "$as_me:$LINENO: result: $GROFF" >&5
5384 echo "${ECHO_T}$GROFF" >&6
5386 echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6
5390 # Extract the first word of "gzip", so it can be a program name with args.
5391 set dummy gzip; ac_word=$2
5392 echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394 if test "${ac_cv_path_GZIP+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5420 GZIP=$ac_cv_path_GZIP
5422 if test -n "$GZIP"; then
5423 echo "$as_me:$LINENO: result: $GZIP" >&5
5424 echo "${ECHO_T}$GZIP" >&6
5426 echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6
5430 # Extract the first word of "pod2html", so it can be a program name with args.
5431 set dummy pod2html; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_path_POD2HTML+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5460 POD2HTML=$ac_cv_path_POD2HTML
5462 if test -n "$POD2HTML"; then
5463 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5464 echo "${ECHO_T}$POD2HTML" >&6
5466 echo "$as_me:$LINENO: result: no" >&5
5467 echo "${ECHO_T}no" >&6
5470 # Extract the first word of "pod2man", so it can be a program name with args.
5471 set dummy pod2man; ac_word=$2
5472 echo "$as_me:$LINENO: checking for $ac_word" >&5
5473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474 if test "${ac_cv_path_POD2MAN+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5500 POD2MAN=$ac_cv_path_POD2MAN
5502 if test -n "$POD2MAN"; then
5503 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5504 echo "${ECHO_T}$POD2MAN" >&6
5506 echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5510 # Extract the first word of "runtest", so it can be a program name with args.
5511 set dummy runtest; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_RUNTEST+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5540 RUNTEST=$ac_cv_path_RUNTEST
5542 if test -n "$RUNTEST"; then
5543 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5544 echo "${ECHO_T}$RUNTEST" >&6
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5552 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5553 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5555 # Check whether --with-tclinclude or --without-tclinclude was given.
5556 if test "${with_tclinclude+set}" = set; then
5557 withval="$with_tclinclude"
5558 with_tclinclude=${withval}
5562 if test "${ac_cv_path_tclsh+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 if test x"${with_tclinclude}" != x ; then
5567 if test -f ${with_tclinclude}/tclsh ; then
5568 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5569 elif test -f ${with_tclinclude}/src/tclsh ; then
5570 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5572 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5573 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5574 { (exit 1); exit 1; }; }
5578 if test x"${ac_cv_path_tclsh}" = x ; then
5579 echo "$as_me:$LINENO: result: none" >&5
5580 echo "${ECHO_T}none" >&6
5581 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
5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
5584 set dummy $ac_prog; ac_word=$2
5585 echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587 if test "${ac_cv_path_TCLSH+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 TCLSH=$ac_cv_path_TCLSH
5614 if test -n "$TCLSH"; then
5615 echo "$as_me:$LINENO: result: $TCLSH" >&5
5616 echo "${ECHO_T}$TCLSH" >&6
5618 echo "$as_me:$LINENO: result: no" >&5
5619 echo "${ECHO_T}no" >&6
5622 test -n "$TCLSH" && break
5625 if test x"${TCLSH}" = x ; then
5626 ac_cv_path_tclsh='';
5628 ac_cv_path_tclsh="${TCLSH}";
5631 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5632 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5633 TCLSH="${ac_cv_path_tclsh}"
5639 # Extract the first word of "zip", so it can be a program name with args.
5640 set dummy zip; ac_word=$2
5641 echo "$as_me:$LINENO: checking for $ac_word" >&5
5642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643 if test "${ac_cv_path_ZIP+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5671 if test -n "$ZIP"; then
5672 echo "$as_me:$LINENO: result: $ZIP" >&5
5673 echo "${ECHO_T}$ZIP" >&6
5675 echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5680 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5681 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5682 if test "${llvm_cv_link_use_r+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 ac_cpp='$CPP $CPPFLAGS'
5687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692 CFLAGS="$CFLAGS -Wl,-R."
5693 cat >conftest.$ac_ext <<_ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5703 int main() { return 0; }
5708 rm -f conftest.$ac_objext conftest$ac_exeext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5710 (eval $ac_link) 2>conftest.er1
5712 grep -v '^ *+' conftest.er1 >conftest.err
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -z "$ac_c_werror_flag"
5718 || test ! -s conftest.err'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest$ac_exeext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 llvm_cv_link_use_r=yes
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5735 llvm_cv_link_use_r=no
5737 rm -f conftest.err conftest.$ac_objext \
5738 conftest$ac_exeext conftest.$ac_ext
5741 ac_cpp='$CPP $CPPFLAGS'
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5749 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5750 if test "$llvm_cv_link_use_r" = yes ; then
5752 cat >>confdefs.h <<\_ACEOF
5753 #define HAVE_LINK_R 1
5761 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5762 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5763 if test "${ac_cv_c_const+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 cat >conftest.$ac_ext <<_ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5776 /* FIXME: Include the comments suggested by Paul. */
5778 /* Ultrix mips cc rejects this. */
5779 typedef int charset[2];
5781 /* SunOS 4.1.1 cc rejects this. */
5782 char const *const *ccp;
5784 /* NEC SVR4.0.2 mips cc rejects this. */
5785 struct point {int x, y;};
5786 static struct point const zero = {0,0};
5787 /* AIX XL C 1.02.0.0 rejects this.
5788 It does not let you subtract one const X* pointer from another in
5789 an arm of an if-expression whose if-part is not a constant
5791 const char *g = "string";
5792 ccp = &g + (g ? g-g : 0);
5793 /* HPUX 7.0 cc rejects these. */
5796 ccp = (char const *const *) p;
5797 { /* SCO 3.2v4 cc rejects this. */
5799 char const *s = 0 ? (char *) 0 : (char const *) 0;
5803 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5805 const int *foo = &x[0];
5808 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5809 typedef const int *iptr;
5813 { /* AIX XL C 1.02.0.0 rejects this saying
5814 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5815 struct s { int j; const int *ap[3]; };
5816 struct s *b; b->j = 5;
5818 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5827 rm -f conftest.$ac_objext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829 (eval $ac_compile) 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag"
5837 || test ! -s conftest.err'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest.$ac_objext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5858 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5859 echo "${ECHO_T}$ac_cv_c_const" >&6
5860 if test $ac_cv_c_const = no; then
5862 cat >>confdefs.h <<\_ACEOF
5869 echo "$as_me:$LINENO: checking for egrep" >&5
5870 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5871 if test "${ac_cv_prog_egrep+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5875 then ac_cv_prog_egrep='grep -E'
5876 else ac_cv_prog_egrep='egrep'
5879 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5880 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5881 EGREP=$ac_cv_prog_egrep
5884 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5885 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5886 if test "${ac_cv_header_stdc+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 cat >conftest.$ac_ext <<_ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5908 rm -f conftest.$ac_objext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5910 (eval $ac_compile) 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag"
5918 || test ! -s conftest.err'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest.$ac_objext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_header_stdc=yes
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5935 ac_cv_header_stdc=no
5937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5939 if test $ac_cv_header_stdc = yes; then
5940 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5941 cat >conftest.$ac_ext <<_ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5951 $EGREP "memchr" >/dev/null 2>&1; then
5954 ac_cv_header_stdc=no
5960 if test $ac_cv_header_stdc = yes; then
5961 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5962 cat >conftest.$ac_ext <<_ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5972 $EGREP "free" >/dev/null 2>&1; then
5975 ac_cv_header_stdc=no
5981 if test $ac_cv_header_stdc = yes; then
5982 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5983 if test "$cross_compiling" = yes; then
5986 cat >conftest.$ac_ext <<_ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5993 #if ((' ' & 0x0FF) == 0x020)
5994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5997 # define ISLOWER(c) \
5998 (('a' <= (c) && (c) <= 'i') \
5999 || ('j' <= (c) && (c) <= 'r') \
6000 || ('s' <= (c) && (c) <= 'z'))
6001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6009 for (i = 0; i < 256; i++)
6010 if (XOR (islower (i), ISLOWER (i))
6011 || toupper (i) != TOUPPER (i))
6016 rm -f conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6029 echo "$as_me: program exited with status $ac_status" >&5
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6034 ac_cv_header_stdc=no
6036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6040 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6041 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6042 if test $ac_cv_header_stdc = yes; then
6044 cat >>confdefs.h <<\_ACEOF
6045 #define STDC_HEADERS 1
6056 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6057 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6058 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6059 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 cat >conftest.$ac_ext <<_ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <sys/types.h>
6081 rm -f conftest.$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>conftest.er1
6085 grep -v '^ *+' conftest.er1 >conftest.err
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try='test -z "$ac_c_werror_flag"
6091 || test ! -s conftest.err'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; } &&
6097 { ac_try='test -s conftest.$ac_objext'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6103 eval "$as_ac_Header=yes"
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 eval "$as_ac_Header=no"
6110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6115 cat >>confdefs.h <<_ACEOF
6116 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6119 ac_header_dirent=$ac_hdr; break
6123 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6124 if test $ac_header_dirent = dirent.h; then
6125 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6126 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6127 if test "${ac_cv_search_opendir+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 ac_func_search_save_LIBS=$LIBS
6131 ac_cv_search_opendir=no
6132 cat >conftest.$ac_ext <<_ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6139 /* Override any gcc2 internal prototype to avoid an error. */
6143 /* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6156 (eval $ac_link) 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag"
6164 || test ! -s conftest.err'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; } &&
6170 { ac_try='test -s conftest$ac_exeext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_search_opendir="none required"
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6182 rm -f conftest.err conftest.$ac_objext \
6183 conftest$ac_exeext conftest.$ac_ext
6184 if test "$ac_cv_search_opendir" = no; then
6185 for ac_lib in dir; do
6186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6187 cat >conftest.$ac_ext <<_ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6194 /* Override any gcc2 internal prototype to avoid an error. */
6198 /* We use char because int might match the return type of a gcc2
6199 builtin and then its argument prototype would still apply. */
6209 rm -f conftest.$ac_objext conftest$ac_exeext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6211 (eval $ac_link) 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_c_werror_flag"
6219 || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try='test -s conftest$ac_exeext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_search_opendir="-l$ac_lib"
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6238 rm -f conftest.err conftest.$ac_objext \
6239 conftest$ac_exeext conftest.$ac_ext
6242 LIBS=$ac_func_search_save_LIBS
6244 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6245 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6246 if test "$ac_cv_search_opendir" != no; then
6247 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6252 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6253 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6254 if test "${ac_cv_search_opendir+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 ac_func_search_save_LIBS=$LIBS
6258 ac_cv_search_opendir=no
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6266 /* Override any gcc2 internal prototype to avoid an error. */
6270 /* We use char because int might match the return type of a gcc2
6271 builtin and then its argument prototype would still apply. */
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283 (eval $ac_link) 2>conftest.er1
6285 grep -v '^ *+' conftest.er1 >conftest.err
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest$ac_exeext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_search_opendir="none required"
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6309 rm -f conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6311 if test "$ac_cv_search_opendir" = no; then
6313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6314 cat >conftest.$ac_ext <<_ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6321 /* Override any gcc2 internal prototype to avoid an error. */
6325 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */
6336 rm -f conftest.$ac_objext conftest$ac_exeext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338 (eval $ac_link) 2>conftest.er1
6340 grep -v '^ *+' conftest.er1 >conftest.err
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -z "$ac_c_werror_flag"
6346 || test ! -s conftest.err'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; } &&
6352 { ac_try='test -s conftest$ac_exeext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_search_opendir="-l$ac_lib"
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6365 rm -f conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6369 LIBS=$ac_func_search_save_LIBS
6371 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6372 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6373 if test "$ac_cv_search_opendir" != no; then
6374 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6380 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6391 inttypes.h stdint.h unistd.h
6393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394 echo "$as_me:$LINENO: checking for $ac_header" >&5
6395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 cat >conftest.$ac_ext <<_ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 $ac_includes_default
6407 #include <$ac_header>
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_c_werror_flag"
6419 || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try='test -s conftest.$ac_objext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 eval "$as_ac_Header=yes"
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6436 eval "$as_ac_Header=no"
6438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6453 for ac_header in dlfcn.h
6455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6457 echo "$as_me:$LINENO: checking for $ac_header" >&5
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6465 # Is the header compilable?
6466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6468 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6475 #include <$ac_header>
6477 rm -f conftest.$ac_objext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479 (eval $ac_compile) 2>conftest.er1
6481 grep -v '^ *+' conftest.er1 >conftest.err
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_c_werror_flag"
6487 || test ! -s conftest.err'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 ac_header_compiler=yes
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6504 ac_header_compiler=no
6506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6508 echo "${ECHO_T}$ac_header_compiler" >&6
6510 # Is the header present?
6511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 #include <$ac_header>
6521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6524 grep -v '^ *+' conftest.er1 >conftest.err
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } >/dev/null; then
6529 if test -s conftest.err; then
6530 ac_cpp_err=$ac_c_preproc_warn_flag
6531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6538 if test -z "$ac_cpp_err"; then
6539 ac_header_preproc=yes
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6544 ac_header_preproc=no
6546 rm -f conftest.err conftest.$ac_ext
6547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6548 echo "${ECHO_T}$ac_header_preproc" >&6
6550 # So? What about this header?
6551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6557 ac_header_preproc=yes
6560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6574 ## ----------------------------------- ##
6575 ## Report this to llvmbugs@cs.uiuc.edu ##
6576 ## ----------------------------------- ##
6579 sed "s/^/$as_me: WARNING: /" >&2
6582 echo "$as_me:$LINENO: checking for $ac_header" >&5
6583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 eval "$as_ac_Header=\$ac_header_preproc"
6589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594 cat >>confdefs.h <<_ACEOF
6595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6603 if test "${enable_ltdl_install+set}" = set; then
6604 enableval="$enable_ltdl_install"
6610 if test x"${enable_ltdl_install-no}" != xno; then
6612 INSTALL_LTDL_FALSE='#'
6614 INSTALL_LTDL_TRUE='#'
6620 if test x"${enable_ltdl_convenience-no}" != xno; then
6621 CONVENIENCE_LTDL_TRUE=
6622 CONVENIENCE_LTDL_FALSE='#'
6624 CONVENIENCE_LTDL_TRUE='#'
6625 CONVENIENCE_LTDL_FALSE=
6629 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6630 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6632 libname_spec='lib$name'
6640 shlibpath_overrides_runpath=unknown
6642 dynamic_linker="$host_os ld.so"
6643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6644 if test "$GCC" = yes; then
6645 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6646 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6647 # if the path contains ";" then we assume it to be the separator
6648 # otherwise default to the standard path separator (i.e. ":") - it is
6649 # assumed that no part of a normal pathname contains ";" but that should
6650 # okay in the real world where ";" in dirpaths is itself problematic.
6651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6658 need_lib_prefix=unknown
6659 hardcode_into_libs=no
6661 # when you set need_version to no, make sure it does not cause -set_version
6662 # flags to be left without arguments
6663 need_version=unknown
6668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6669 shlibpath_var=LIBPATH
6671 # AIX 3 has no versioning support, so we append a major version to the name.
6672 soname_spec='${libname}${release}${shared_ext}$major'
6679 hardcode_into_libs=yes
6680 if test "$host_cpu" = ia64; then
6681 # AIX 5 supports IA64
6682 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6683 shlibpath_var=LD_LIBRARY_PATH
6685 # With GCC up to 2.95.x, collect2 would create an import file
6686 # for dependence libraries. The import file would start with
6687 # the line `#! .'. This would cause the generated library to
6688 # depend on `.', always an invalid library. This was fixed in
6689 # development snapshots of GCC prior to 3.0.
6691 aix4 | aix4.[01] | aix4.[01].*)
6692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6694 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6701 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6702 # soname into executable. Probably we can add versioning support to
6703 # collect2, so additional links can be useful in future.
6704 if test "$aix_use_runtimelinking" = yes; then
6705 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6706 # instead of lib<name>.a to let people know that these are not
6707 # typical AIX shared libraries.
6708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6710 # We preserve .a as extension for shared libraries through AIX4.2
6711 # and later when we are not doing run time linking.
6712 library_names_spec='${libname}${release}.a $libname.a'
6713 soname_spec='${libname}${release}${shared_ext}$major'
6715 shlibpath_var=LIBPATH
6720 library_names_spec='$libname.ixlibrary $libname.a'
6721 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6722 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'
6726 library_names_spec='${libname}${shared_ext}'
6727 dynamic_linker="$host_os ld.so"
6728 shlibpath_var=LIBRARY_PATH
6734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6735 soname_spec='${libname}${release}${shared_ext}$major'
6736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6737 shlibpath_var=LD_LIBRARY_PATH
6738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6740 # the default ld.so.conf also contains /usr/contrib/lib and
6741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6742 # libtool to hard-code these into programs
6745 cygwin* | mingw* | pw32*)
6746 version_type=windows
6751 case $GCC,$host_os in
6752 yes,cygwin* | yes,mingw* | yes,pw32*)
6753 library_names_spec='$libname.dll.a'
6754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6755 postinstall_cmds='base_file=`basename \${file}`~
6756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6757 dldir=$destdir/`dirname \$dlpath`~
6758 test -d \$dldir || mkdir -p \$dldir~
6759 $install_prog $dir/$dlname \$dldir/$dlname'
6760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6761 dlpath=$dir/\$dldll~
6763 shlibpath_overrides_runpath=yes
6767 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6769 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6772 # MinGW DLLs use traditional 'lib' prefix
6773 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6775 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6776 # It is most probably a Windows format PATH printed by
6777 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6778 # path with ; separators, and with drive letters. We can handle the
6779 # drive letters (cygwin fileutils understands them), so leave them,
6780 # especially as we might pass files found there to a mingw objdump,
6781 # which wouldn't understand a cygwinified path. Ahh.
6782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6788 # pw32 DLLs use 'pw' prefix rather than 'lib'
6789 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6795 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6798 dynamic_linker='Win32 ld.exe'
6799 # FIXME: first we should search . and the directory the executable is in
6803 darwin* | rhapsody*)
6804 dynamic_linker="$host_os dyld"
6808 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6809 soname_spec='${libname}${release}${major}$shared_ext'
6810 shlibpath_overrides_runpath=yes
6811 shlibpath_var=DYLD_LIBRARY_PATH
6812 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6813 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6814 if test "$GCC" = yes; then
6815 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"`
6817 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6827 soname_spec='${libname}${release}${shared_ext}$major'
6828 shlibpath_var=LD_LIBRARY_PATH
6839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6840 soname_spec='${libname}${release}${shared_ext}$major'
6841 shlibpath_var=LD_LIBRARY_PATH
6842 shlibpath_overrides_runpath=no
6843 hardcode_into_libs=yes
6844 dynamic_linker='GNU ld.so'
6848 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6849 version_type=freebsd-$objformat
6850 case $version_type in
6852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6861 shlibpath_var=LD_LIBRARY_PATH
6864 shlibpath_overrides_runpath=yes
6866 freebsd3.01* | freebsdelf3.01*)
6867 shlibpath_overrides_runpath=yes
6868 hardcode_into_libs=yes
6871 shlibpath_overrides_runpath=no
6872 hardcode_into_libs=yes
6881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6882 soname_spec='${libname}${release}${shared_ext}$major'
6883 shlibpath_var=LD_LIBRARY_PATH
6884 hardcode_into_libs=yes
6887 hpux9* | hpux10* | hpux11*)
6888 # Give a soname corresponding to the major version so that dld.sl refuses to
6889 # link against other versions.
6896 hardcode_into_libs=yes
6897 dynamic_linker="$host_os dld.so"
6898 shlibpath_var=LD_LIBRARY_PATH
6899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6901 soname_spec='${libname}${release}${shared_ext}$major'
6902 if test "X$HPUX_IA64_MODE" = X32; then
6903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6911 hardcode_into_libs=yes
6912 dynamic_linker="$host_os dld.sl"
6913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6916 soname_spec='${libname}${release}${shared_ext}$major'
6917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6922 dynamic_linker="$host_os dld.sl"
6923 shlibpath_var=SHLIB_PATH
6924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6926 soname_spec='${libname}${release}${shared_ext}$major'
6929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6930 postinstall_cmds='chmod 555 $lib'
6933 irix5* | irix6* | nonstopux*)
6935 nonstopux*) version_type=nonstopux ;;
6937 if test "$lt_cv_prog_gnu_ld" = yes; then
6945 soname_spec='${libname}${release}${shared_ext}$major'
6946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6948 irix5* | nonstopux*)
6952 case $LD in # libtool.m4 will add one of these switches to LD
6953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6954 libsuff= shlibsuff= libmagic=32-bit;;
6955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6956 libsuff=32 shlibsuff=N32 libmagic=N32;;
6957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6958 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6959 *) libsuff= shlibsuff= libmagic=never-match;;
6963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6964 shlibpath_overrides_runpath=no
6965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6967 hardcode_into_libs=yes
6970 # No shared lib support for Linux oldld, aout, or coff.
6971 linux*oldld* | linux*aout* | linux*coff*)
6975 # This must be Linux ELF.
6980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6981 soname_spec='${libname}${release}${shared_ext}$major'
6982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6983 shlibpath_var=LD_LIBRARY_PATH
6984 shlibpath_overrides_runpath=no
6985 # This implies no fast_install, which is unacceptable.
6986 # Some rework will be needed to allow for fast_install
6987 # before this can be enabled.
6988 hardcode_into_libs=yes
6990 # Append ld.so.conf contents to the search path
6991 if test -f /etc/ld.so.conf; then
6992 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6996 # We used to test for /lib/ld.so.1 and disable shared libraries on
6997 # powerpc, because MkLinux only supported shared libraries with the
6998 # GNU dynamic linker. Since this was broken with cross compilers,
6999 # most powerpc-linux boxes support dynamic linking these days and
7000 # people can always --disable-shared, the test was removed, and we
7001 # assume the GNU/Linux dynamic linker is in use.
7002 dynamic_linker='GNU/Linux ld.so'
7009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7010 soname_spec='${libname}${release}${shared_ext}$major'
7011 shlibpath_var=LD_LIBRARY_PATH
7012 shlibpath_overrides_runpath=no
7013 hardcode_into_libs=yes
7014 dynamic_linker='GNU ld.so'
7021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7024 dynamic_linker='NetBSD (a.out) ld.so'
7026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7027 soname_spec='${libname}${release}${shared_ext}$major'
7028 dynamic_linker='NetBSD ld.elf_so'
7030 shlibpath_var=LD_LIBRARY_PATH
7031 shlibpath_overrides_runpath=yes
7032 hardcode_into_libs=yes
7037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7038 shlibpath_var=LD_LIBRARY_PATH
7039 shlibpath_overrides_runpath=yes
7046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7047 soname_spec='${libname}${release}${shared_ext}$major'
7048 shlibpath_var=LD_LIBRARY_PATH
7049 shlibpath_overrides_runpath=yes
7056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7058 shlibpath_var=LD_LIBRARY_PATH
7059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7061 openbsd2.[89] | openbsd2.[89].*)
7062 shlibpath_overrides_runpath=no
7065 shlibpath_overrides_runpath=yes
7069 shlibpath_overrides_runpath=yes
7074 libname_spec='$name'
7077 library_names_spec='$libname${shared_ext} $libname.a'
7078 dynamic_linker='OS/2 ld.exe'
7079 shlibpath_var=LIBPATH
7082 osf3* | osf4* | osf5*)
7086 soname_spec='${libname}${release}${shared_ext}$major'
7087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7088 shlibpath_var=LD_LIBRARY_PATH
7089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7095 soname_spec='${libname}${release}${shared_ext}$major'
7096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7097 shlibpath_var=LD_LIBRARY_PATH
7104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7105 soname_spec='${libname}${release}${shared_ext}$major'
7106 shlibpath_var=LD_LIBRARY_PATH
7107 shlibpath_overrides_runpath=yes
7108 hardcode_into_libs=yes
7109 # ldd complains unless libraries are executable
7110 postinstall_cmds='chmod +x $lib'
7115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7117 shlibpath_var=LD_LIBRARY_PATH
7118 shlibpath_overrides_runpath=yes
7119 if test "$with_gnu_ld" = yes; then
7125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7128 soname_spec='${libname}${release}${shared_ext}$major'
7129 shlibpath_var=LD_LIBRARY_PATH
7130 case $host_vendor in
7132 shlibpath_overrides_runpath=no
7134 export_dynamic_flag_spec='${wl}-Blargedynsym'
7135 runpath_var=LD_RUN_PATH
7143 shlibpath_overrides_runpath=no
7144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7150 if test -d /usr/nec ;then
7152 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7153 soname_spec='$libname${shared_ext}.$major'
7154 shlibpath_var=LD_LIBRARY_PATH
7160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7161 soname_spec='${libname}${release}${shared_ext}$major'
7162 shlibpath_var=LD_LIBRARY_PATH
7169 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7170 echo "${ECHO_T}$dynamic_linker" >&6
7171 test "$dynamic_linker" = no && can_build_shared=no
7174 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7175 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7176 if test "${libltdl_cv_shlibext+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 eval libltdl_cv_shlibext=$shrext_cmds
7184 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7185 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7186 if test -n "$libltdl_cv_shlibext"; then
7188 cat >>confdefs.h <<_ACEOF
7189 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7195 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7196 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7197 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 libltdl_cv_shlibpath_var="$shlibpath_var"
7202 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7203 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7204 if test -n "$libltdl_cv_shlibpath_var"; then
7206 cat >>confdefs.h <<_ACEOF
7207 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7213 echo "$as_me:$LINENO: checking for the default library search path" >&5
7214 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7215 if test "${libltdl_cv_sys_search_path+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7220 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7221 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7222 if test -n "$libltdl_cv_sys_search_path"; then
7224 for dir in $libltdl_cv_sys_search_path; do
7225 if test -z "$sys_search_path"; then
7226 sys_search_path="$dir"
7228 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7232 cat >>confdefs.h <<_ACEOF
7233 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7238 echo "$as_me:$LINENO: checking for objdir" >&5
7239 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7240 if test "${libltdl_cv_objdir+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 libltdl_cv_objdir="$objdir"
7244 if test -n "$objdir"; then
7247 rm -f .libs 2>/dev/null
7248 mkdir .libs 2>/dev/null
7249 if test -d .libs; then
7250 libltdl_cv_objdir=.libs
7252 # MS-DOS does not allow filenames that begin with a dot.
7253 libltdl_cv_objdir=_libs
7255 rmdir .libs 2>/dev/null
7259 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7260 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7262 cat >>confdefs.h <<_ACEOF
7263 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7267 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7268 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7269 if test "${lt_cv_path_NM+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 if test -n "$NM"; then
7273 # Let the user override the test.
7276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7277 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7279 test -z "$ac_dir" && ac_dir=.
7280 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7281 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7282 # Check to see if the nm accepts a BSD-compat flag.
7283 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7284 # nm: unknown option "B" ignored
7285 # Tru64's nm complains that /dev/null is an invalid object file
7286 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7287 */dev/null* | *'Invalid file or object type'*)
7288 lt_cv_path_NM="$tmp_nm -B"
7292 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7294 lt_cv_path_NM="$tmp_nm -p"
7298 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7299 continue # so that we can try to find one that supports BSD flags
7306 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7309 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7310 echo "${ECHO_T}$lt_cv_path_NM" >&6
7317 # Check for command to grab the raw symbol name followed by C symbol from nm.
7318 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7319 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7320 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 # These are sane defaults that work on at least a few old systems.
7325 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7327 # Character class describing NM global symbol codes.
7328 symcode='[BCDEGRST]'
7330 # Regexp to match symbols that can be accessed directly from C.
7331 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7333 # Transform the above into a raw symbol and a C symbol.
7334 symxfrm='\1 \2\3 \3'
7336 # Transform an extracted symbol line into a proper C declaration
7337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7339 # Transform an extracted symbol line into symbol name and symbol address
7340 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'"
7342 # Define system-specific variables.
7347 cygwin* | mingw* | pw32*)
7348 symcode='[ABCDGISTW]'
7350 hpux*) # Its linker distinguishes data from code symbols
7351 if test "$host_cpu" = ia64; then
7352 symcode='[ABCDEGRST]'
7354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7355 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'"
7358 if test "$host_cpu" = ia64; then
7359 symcode='[ABCDGIRSTW]'
7360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7361 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'"
7365 symcode='[BCDEGRST]'
7368 symcode='[BCDEGQRST]'
7378 # Handle CRLF in mingw tool chain
7382 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7386 # If we're using GNU nm, then use its standard symbol codes.
7387 case `$NM -V 2>&1` in
7388 *GNU* | *'with BFD'*)
7389 symcode='[ABCDGIRSTW]' ;;
7392 # Try without a prefix undercore, then with it.
7393 for ac_symprfx in "" "_"; do
7395 # Write the raw and C identifiers.
7396 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7398 # Check to see that the pipe works correctly.
7402 cat > conftest.$ac_ext <<EOF
7407 void nm_test_func(){}
7411 int main(){nm_test_var='a';nm_test_func();return(0);}
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; then
7419 # Now try to grab the symbols.
7421 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7422 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && test -s "$nlist"; then
7426 # Try sorting and uniquifying the output.
7427 if sort "$nlist" | uniq > "$nlist"T; then
7428 mv -f "$nlist"T "$nlist"
7433 # Make sure that we snagged all the symbols we need.
7434 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7435 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7436 cat <<EOF > conftest.$ac_ext
7442 # Now generate the symbol file.
7443 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7445 cat <<EOF >> conftest.$ac_ext
7446 #if defined (__STDC__) && __STDC__
7447 # define lt_ptr_t void *
7449 # define lt_ptr_t char *
7453 /* The mapping between symbol names and symbols. */
7458 lt_preloaded_symbols[] =
7461 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7462 cat <<\EOF >> conftest.$ac_ext
7470 # Now try linking the two files.
7471 mv conftest.$ac_objext conftstm.$ac_objext
7472 lt_save_LIBS="$LIBS"
7473 lt_save_CFLAGS="$CFLAGS"
7474 LIBS="conftstm.$ac_objext"
7475 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477 (eval $ac_link) 2>&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7483 LIBS="$lt_save_LIBS"
7484 CFLAGS="$lt_save_CFLAGS"
7486 echo "cannot find nm_test_func in $nlist" >&5
7489 echo "cannot find nm_test_var in $nlist" >&5
7492 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7495 echo "$progname: failed program was:" >&5
7496 cat conftest.$ac_ext >&5
7498 rm -f conftest* conftst*
7500 # Do not use the global_symbol_pipe unless it works.
7501 if test "$pipe_works" = yes; then
7504 lt_cv_sys_global_symbol_pipe=
7510 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7511 lt_cv_sys_global_symbol_to_cdecl=
7513 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7514 echo "$as_me:$LINENO: result: failed" >&5
7515 echo "${ECHO_T}failed" >&6
7517 echo "$as_me:$LINENO: result: ok" >&5
7518 echo "${ECHO_T}ok" >&6
7522 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7523 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7524 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7528 libltdl_cv_preloaded_symbols=yes
7530 libltdl_cv_preloaded_symbols=no
7534 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7535 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7536 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7538 cat >>confdefs.h <<\_ACEOF
7539 #define HAVE_PRELOADED_SYMBOLS 1
7547 ac_cpp='$CPP $CPPFLAGS'
7548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553 echo "$as_me:$LINENO: checking for shl_load" >&5
7554 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7555 if test "${ac_cv_func_shl_load+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7566 #define shl_load innocuous_shl_load
7568 /* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char shl_load (); below.
7570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7571 <limits.h> exists even on freestanding compilers. */
7574 # include <limits.h>
7576 # include <assert.h>
7581 /* Override any gcc2 internal prototype to avoid an error. */
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7589 /* The GNU C library defines this for functions which it implements
7590 to always fail with ENOSYS. Some functions are actually named
7591 something starting with __ and the normal name is an alias. */
7592 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7595 char (*f) () = shl_load;
7604 return f != shl_load;
7609 rm -f conftest.$ac_objext conftest$ac_exeext
7610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7611 (eval $ac_link) 2>conftest.er1
7613 grep -v '^ *+' conftest.er1 >conftest.err
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -z "$ac_c_werror_flag"
7619 || test ! -s conftest.err'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_cv_func_shl_load=yes
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 ac_cv_func_shl_load=no
7638 rm -f conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
7641 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7642 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7643 if test $ac_cv_func_shl_load = yes; then
7645 cat >>confdefs.h <<\_ACEOF
7646 #define HAVE_SHL_LOAD 1
7650 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7651 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7652 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 ac_check_lib_save_LIBS=$LIBS
7657 cat >conftest.$ac_ext <<_ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7664 /* Override any gcc2 internal prototype to avoid an error. */
7668 /* We use char because int might match the return type of a gcc2
7669 builtin and then its argument prototype would still apply. */
7679 rm -f conftest.$ac_objext conftest$ac_exeext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7681 (eval $ac_link) 2>conftest.er1
7683 grep -v '^ *+' conftest.er1 >conftest.err
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } &&
7688 { ac_try='test -z "$ac_c_werror_flag"
7689 || test ! -s conftest.err'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; } &&
7695 { ac_try='test -s conftest$ac_exeext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701 ac_cv_lib_dld_shl_load=yes
7703 echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7706 ac_cv_lib_dld_shl_load=no
7708 rm -f conftest.err conftest.$ac_objext \
7709 conftest$ac_exeext conftest.$ac_ext
7710 LIBS=$ac_check_lib_save_LIBS
7712 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7713 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7714 if test $ac_cv_lib_dld_shl_load = yes; then
7716 cat >>confdefs.h <<\_ACEOF
7717 #define HAVE_SHL_LOAD 1
7720 LIBADD_DL="$LIBADD_DL -ldld"
7722 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 ac_check_lib_save_LIBS=$LIBS
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7736 /* Override any gcc2 internal prototype to avoid an error. */
7740 /* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753 (eval $ac_link) 2>conftest.er1
7755 grep -v '^ *+' conftest.er1 >conftest.err
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -z "$ac_c_werror_flag"
7761 || test ! -s conftest.err'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; } &&
7767 { ac_try='test -s conftest$ac_exeext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_cv_lib_dl_dlopen=yes
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_cv_lib_dl_dlopen=no
7780 rm -f conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
7782 LIBS=$ac_check_lib_save_LIBS
7784 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7785 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7786 if test $ac_cv_lib_dl_dlopen = yes; then
7788 cat >>confdefs.h <<\_ACEOF
7789 #define HAVE_LIBDL 1
7792 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7794 cat >conftest.$ac_ext <<_ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814 (eval $ac_link) 2>conftest.er1
7816 grep -v '^ *+' conftest.er1 >conftest.err
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest$ac_exeext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7835 cat >>confdefs.h <<\_ACEOF
7836 #define HAVE_LIBDL 1
7838 libltdl_cv_func_dlopen="yes"
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7844 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7845 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 ac_check_lib_save_LIBS=$LIBS
7850 cat >conftest.$ac_ext <<_ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7857 /* Override any gcc2 internal prototype to avoid an error. */
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>conftest.er1
7876 grep -v '^ *+' conftest.er1 >conftest.err
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag"
7882 || test ! -s conftest.err'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; } &&
7888 { ac_try='test -s conftest$ac_exeext'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 ac_cv_lib_svld_dlopen=yes
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 ac_cv_lib_svld_dlopen=no
7901 rm -f conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7903 LIBS=$ac_check_lib_save_LIBS
7905 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7906 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7907 if test $ac_cv_lib_svld_dlopen = yes; then
7909 cat >>confdefs.h <<\_ACEOF
7910 #define HAVE_LIBDL 1
7913 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7915 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7916 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 ac_check_lib_save_LIBS=$LIBS
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7929 /* Override any gcc2 internal prototype to avoid an error. */
7933 /* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag"
7954 || test ! -s conftest.err'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest$ac_exeext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 ac_cv_lib_dld_dld_link=yes
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 ac_cv_lib_dld_dld_link=no
7973 rm -f conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
7975 LIBS=$ac_check_lib_save_LIBS
7977 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7978 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7979 if test $ac_cv_lib_dld_dld_link = yes; then
7981 cat >>confdefs.h <<\_ACEOF
7985 LIBADD_DL="$LIBADD_DL -ldld"
7987 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7988 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7989 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 cat >conftest.$ac_ext <<_ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8000 #define _dyld_func_lookup innocuous__dyld_func_lookup
8002 /* System header to define __stub macros and hopefully few prototypes,
8003 which can conflict with char _dyld_func_lookup (); below.
8004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8005 <limits.h> exists even on freestanding compilers. */
8008 # include <limits.h>
8010 # include <assert.h>
8013 #undef _dyld_func_lookup
8015 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char _dyld_func_lookup ();
8023 /* The GNU C library defines this for functions which it implements
8024 to always fail with ENOSYS. Some functions are actually named
8025 something starting with __ and the normal name is an alias. */
8026 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8029 char (*f) () = _dyld_func_lookup;
8038 return f != _dyld_func_lookup;
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 (eval $ac_link) 2>conftest.er1
8047 grep -v '^ *+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest$ac_exeext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_cv_func__dyld_func_lookup=yes
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 ac_cv_func__dyld_func_lookup=no
8072 rm -f conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8075 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8076 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8077 if test $ac_cv_func__dyld_func_lookup = yes; then
8079 cat >>confdefs.h <<\_ACEOF
8093 rm -f conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8105 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8107 lt_save_LIBS="$LIBS"
8108 LIBS="$LIBS $LIBADD_DL"
8110 for ac_func in dlerror
8112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8113 echo "$as_me:$LINENO: checking for $ac_func" >&5
8114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_var+set}\" = set"; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 cat >conftest.$ac_ext <<_ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8126 #define $ac_func innocuous_$ac_func
8128 /* System header to define __stub macros and hopefully few prototypes,
8129 which can conflict with char $ac_func (); below.
8130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8131 <limits.h> exists even on freestanding compilers. */
8134 # include <limits.h>
8136 # include <assert.h>
8141 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8149 /* The GNU C library defines this for functions which it implements
8150 to always fail with ENOSYS. Some functions are actually named
8151 something starting with __ and the normal name is an alias. */
8152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8155 char (*f) () = $ac_func;
8164 return f != $ac_func;
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8171 (eval $ac_link) 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag"
8179 || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try='test -s conftest$ac_exeext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 eval "$as_ac_var=yes"
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8196 eval "$as_ac_var=no"
8198 rm -f conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8203 if test `eval echo '${'$as_ac_var'}'` = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8211 LIBS="$lt_save_LIBS"
8214 ac_cpp='$CPP $CPPFLAGS'
8215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8221 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8222 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8223 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 ac_cv_sys_symbol_underscore=no
8227 cat > conftest.$ac_ext <<EOF
8228 void nm_test_func(){}
8229 int main(){nm_test_func;return 0;}
8231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8232 (eval $ac_compile) 2>&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; then
8236 # Now try to grab the symbols.
8237 ac_nlist=conftest.nm
8238 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8239 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && test -s "$ac_nlist"; then
8243 # See whether the symbols have a leading underscore.
8244 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8245 ac_cv_sys_symbol_underscore=yes
8247 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8250 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8254 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8257 echo "configure: failed program was:" >&5
8263 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8264 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8267 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8268 if test x"$libltdl_cv_func_dlopen" = xyes ||
8269 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8270 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8271 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8272 if test "${libltdl_cv_need_uscore+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 libltdl_cv_need_uscore=unknown
8277 LIBS="$LIBS $LIBADD_DL"
8278 if test "$cross_compiling" = yes; then :
8279 libltdl_cv_need_uscore=cross
8281 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8282 lt_status=$lt_dlunknown
8283 cat > conftest.$ac_ext <<EOF
8284 #line 8284 "configure"
8285 #include "confdefs.h"
8294 # define LT_DLGLOBAL RTLD_GLOBAL
8297 # define LT_DLGLOBAL DL_GLOBAL
8299 # define LT_DLGLOBAL 0
8303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8304 find out it does not work in some platform. */
8305 #ifndef LT_DLLAZY_OR_NOW
8307 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8310 # define LT_DLLAZY_OR_NOW DL_LAZY
8313 # define LT_DLLAZY_OR_NOW RTLD_NOW
8316 # define LT_DLLAZY_OR_NOW DL_NOW
8318 # define LT_DLLAZY_OR_NOW 0
8326 extern "C" void exit (int);
8329 void fnord() { int i=42;}
8332 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8333 int status = $lt_dlunknown;
8337 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8338 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8339 /* dlclose (self); */
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346 (eval $ac_link) 2>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8350 (./conftest; exit; ) 2>/dev/null
8353 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8354 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8358 # compilation failed
8367 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8368 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8372 if test x"$libltdl_cv_need_uscore" = xyes; then
8374 cat >>confdefs.h <<\_ACEOF
8375 #define NEED_USCORE 1
8381 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8382 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8383 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 # PORTME does your system automatically load deplibs for dlopen?
8387 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8388 # For now, we just catch OSes we know something about -- in the
8389 # future, we'll try test this programmatically.
8390 libltdl_cv_sys_dlopen_deplibs=unknown
8392 aix3*|aix4.1.*|aix4.2.*)
8393 # Unknown whether this is true for these versions of AIX, but
8394 # we want this `case' here to explicitly catch those versions.
8395 libltdl_cv_sys_dlopen_deplibs=unknown
8398 libltdl_cv_sys_dlopen_deplibs=yes
8401 # Assuming the user has installed a libdl from somewhere, this is true
8402 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8403 libltdl_cv_sys_dlopen_deplibs=yes
8405 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8406 # GNU and its variants, using gnu ld.so (Glibc)
8407 libltdl_cv_sys_dlopen_deplibs=yes
8410 libltdl_cv_sys_dlopen_deplibs=yes
8412 irix[12345]*|irix6.[01]*)
8413 # Catch all versions of IRIX before 6.2, and indicate that we don't
8414 # know how it worked for any of those versions.
8415 libltdl_cv_sys_dlopen_deplibs=unknown
8418 # The case above catches anything before 6.2, and it's known that
8419 # at 6.2 and later dlopen does load deplibs.
8420 libltdl_cv_sys_dlopen_deplibs=yes
8423 libltdl_cv_sys_dlopen_deplibs=yes
8426 libltdl_cv_sys_dlopen_deplibs=yes
8429 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8430 # it did *not* use an RPATH in a shared library to find objects the
8431 # library depends on, so we explictly say `no'.
8432 libltdl_cv_sys_dlopen_deplibs=no
8434 osf5.0|osf5.0a|osf5.1)
8435 # dlopen *does* load deplibs and with the right loader patch applied
8436 # it even uses RPATH in a shared library to search for shared objects
8437 # that the library depends on, but there's no easy way to know if that
8438 # patch is installed. Since this is the case, all we can really
8439 # say is unknown -- it depends on the patch being installed. If
8440 # it is, this changes to `yes'. Without it, it would be `no'.
8441 libltdl_cv_sys_dlopen_deplibs=unknown
8444 # the two cases above should catch all versions of osf <= 5.1. Read
8445 # the comments above for what we know about them.
8446 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8447 # is used to find them so we can finally say `yes'.
8448 libltdl_cv_sys_dlopen_deplibs=yes
8451 libltdl_cv_sys_dlopen_deplibs=yes
8456 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8457 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8458 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8460 cat >>confdefs.h <<\_ACEOF
8461 #define LTDL_DLOPEN_DEPLIBS 1
8467 for ac_header in argz.h
8469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471 echo "$as_me:$LINENO: checking for $ac_header" >&5
8472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479 # Is the header compilable?
8480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8482 cat >conftest.$ac_ext <<_ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 $ac_includes_default
8489 #include <$ac_header>
8491 rm -f conftest.$ac_objext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>conftest.er1
8495 grep -v '^ *+' conftest.er1 >conftest.err
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag"
8501 || test ! -s conftest.err'
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest.$ac_objext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_header_compiler=yes
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 ac_header_compiler=no
8520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8522 echo "${ECHO_T}$ac_header_compiler" >&6
8524 # Is the header present?
8525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8527 cat >conftest.$ac_ext <<_ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 #include <$ac_header>
8535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8538 grep -v '^ *+' conftest.er1 >conftest.err
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } >/dev/null; then
8543 if test -s conftest.err; then
8544 ac_cpp_err=$ac_c_preproc_warn_flag
8545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8552 if test -z "$ac_cpp_err"; then
8553 ac_header_preproc=yes
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8558 ac_header_preproc=no
8560 rm -f conftest.err conftest.$ac_ext
8561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8562 echo "${ECHO_T}$ac_header_preproc" >&6
8564 # So? What about this header?
8565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8571 ac_header_preproc=yes
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8588 ## ----------------------------------- ##
8589 ## Report this to llvmbugs@cs.uiuc.edu ##
8590 ## ----------------------------------- ##
8593 sed "s/^/$as_me: WARNING: /" >&2
8596 echo "$as_me:$LINENO: checking for $ac_header" >&5
8597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 eval "$as_ac_Header=\$ac_header_preproc"
8603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8608 cat >>confdefs.h <<_ACEOF
8609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8617 echo "$as_me:$LINENO: checking for error_t" >&5
8618 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8619 if test "${ac_cv_type_error_t+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8637 if (sizeof (error_t))
8643 rm -f conftest.$ac_objext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8645 (eval $ac_compile) 2>conftest.er1
8647 grep -v '^ *+' conftest.er1 >conftest.err
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag"
8653 || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest.$ac_objext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_type_error_t=yes
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8670 ac_cv_type_error_t=no
8672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8674 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8675 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8676 if test $ac_cv_type_error_t = yes; then
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_ERROR_T 1
8685 cat >>confdefs.h <<\_ACEOF
8697 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8700 echo "$as_me:$LINENO: checking for $ac_func" >&5
8701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8702 if eval "test \"\${$as_ac_var+set}\" = set"; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8713 #define $ac_func innocuous_$ac_func
8715 /* System header to define __stub macros and hopefully few prototypes,
8716 which can conflict with char $ac_func (); below.
8717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8718 <limits.h> exists even on freestanding compilers. */
8721 # include <limits.h>
8723 # include <assert.h>
8728 /* Override any gcc2 internal prototype to avoid an error. */
8733 /* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8736 /* The GNU C library defines this for functions which it implements
8737 to always fail with ENOSYS. Some functions are actually named
8738 something starting with __ and the normal name is an alias. */
8739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8742 char (*f) () = $ac_func;
8751 return f != $ac_func;
8756 rm -f conftest.$ac_objext conftest$ac_exeext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>conftest.er1
8760 grep -v '^ *+' conftest.er1 >conftest.err
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest$ac_exeext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 eval "$as_ac_var=yes"
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 eval "$as_ac_var=no"
8785 rm -f conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8790 if test `eval echo '${'$as_ac_var'}'` = yes; then
8791 cat >>confdefs.h <<_ACEOF
8792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8825 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8830 echo "$as_me:$LINENO: checking for $ac_header" >&5
8831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8838 # Is the header compilable?
8839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 $ac_includes_default
8848 #include <$ac_header>
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_header_compiler=yes
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8877 ac_header_compiler=no
8879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8881 echo "${ECHO_T}$ac_header_compiler" >&6
8883 # Is the header present?
8884 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8886 cat >conftest.$ac_ext <<_ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 #include <$ac_header>
8894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8897 grep -v '^ *+' conftest.er1 >conftest.err
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } >/dev/null; then
8902 if test -s conftest.err; then
8903 ac_cpp_err=$ac_c_preproc_warn_flag
8904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8911 if test -z "$ac_cpp_err"; then
8912 ac_header_preproc=yes
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ac_header_preproc=no
8919 rm -f conftest.err conftest.$ac_ext
8920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8921 echo "${ECHO_T}$ac_header_preproc" >&6
8923 # So? What about this header?
8924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8930 ac_header_preproc=yes
8933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8947 ## ----------------------------------- ##
8948 ## Report this to llvmbugs@cs.uiuc.edu ##
8949 ## ----------------------------------- ##
8952 sed "s/^/$as_me: WARNING: /" >&2
8955 echo "$as_me:$LINENO: checking for $ac_header" >&5
8956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 eval "$as_ac_Header=\$ac_header_preproc"
8962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8967 cat >>confdefs.h <<_ACEOF
8968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8979 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8983 echo "$as_me:$LINENO: checking for $ac_header" >&5
8984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8991 # Is the header compilable?
8992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8994 cat >conftest.$ac_ext <<_ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 $ac_includes_default
9001 #include <$ac_header>
9003 rm -f conftest.$ac_objext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9005 (eval $ac_compile) 2>conftest.er1
9007 grep -v '^ *+' conftest.er1 >conftest.err
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } &&
9012 { ac_try='test -z "$ac_c_werror_flag"
9013 || test ! -s conftest.err'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; } &&
9019 { ac_try='test -s conftest.$ac_objext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_header_compiler=yes
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9030 ac_header_compiler=no
9032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9034 echo "${ECHO_T}$ac_header_compiler" >&6
9036 # Is the header present?
9037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9039 cat >conftest.$ac_ext <<_ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 #include <$ac_header>
9047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9050 grep -v '^ *+' conftest.er1 >conftest.err
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } >/dev/null; then
9055 if test -s conftest.err; then
9056 ac_cpp_err=$ac_c_preproc_warn_flag
9057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9064 if test -z "$ac_cpp_err"; then
9065 ac_header_preproc=yes
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9070 ac_header_preproc=no
9072 rm -f conftest.err conftest.$ac_ext
9073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9074 echo "${ECHO_T}$ac_header_preproc" >&6
9076 # So? What about this header?
9077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9083 ac_header_preproc=yes
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9100 ## ----------------------------------- ##
9101 ## Report this to llvmbugs@cs.uiuc.edu ##
9102 ## ----------------------------------- ##
9105 sed "s/^/$as_me: WARNING: /" >&2
9108 echo "$as_me:$LINENO: checking for $ac_header" >&5
9109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 eval "$as_ac_Header=\$ac_header_preproc"
9115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9120 cat >>confdefs.h <<_ACEOF
9121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9130 for ac_header in string.h strings.h
9132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9134 echo "$as_me:$LINENO: checking for $ac_header" >&5
9135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9142 # Is the header compilable?
9143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9145 cat >conftest.$ac_ext <<_ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 $ac_includes_default
9152 #include <$ac_header>
9154 rm -f conftest.$ac_objext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156 (eval $ac_compile) 2>conftest.er1
9158 grep -v '^ *+' conftest.er1 >conftest.err
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest.$ac_objext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 ac_header_compiler=yes
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_header_compiler=no
9183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9185 echo "${ECHO_T}$ac_header_compiler" >&6
9187 # Is the header present?
9188 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9190 cat >conftest.$ac_ext <<_ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 #include <$ac_header>
9198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9201 grep -v '^ *+' conftest.er1 >conftest.err
9203 cat conftest.err >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } >/dev/null; then
9206 if test -s conftest.err; then
9207 ac_cpp_err=$ac_c_preproc_warn_flag
9208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9215 if test -z "$ac_cpp_err"; then
9216 ac_header_preproc=yes
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9221 ac_header_preproc=no
9223 rm -f conftest.err conftest.$ac_ext
9224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9225 echo "${ECHO_T}$ac_header_preproc" >&6
9227 # So? What about this header?
9228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9234 ac_header_preproc=yes
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9244 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9251 ## ----------------------------------- ##
9252 ## Report this to llvmbugs@cs.uiuc.edu ##
9253 ## ----------------------------------- ##
9256 sed "s/^/$as_me: WARNING: /" >&2
9259 echo "$as_me:$LINENO: checking for $ac_header" >&5
9260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 eval "$as_ac_Header=\$ac_header_preproc"
9266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9271 cat >>confdefs.h <<_ACEOF
9272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9282 for ac_func in strchr index
9284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9285 echo "$as_me:$LINENO: checking for $ac_func" >&5
9286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9287 if eval "test \"\${$as_ac_var+set}\" = set"; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 cat >conftest.$ac_ext <<_ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9298 #define $ac_func innocuous_$ac_func
9300 /* System header to define __stub macros and hopefully few prototypes,
9301 which can conflict with char $ac_func (); below.
9302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9303 <limits.h> exists even on freestanding compilers. */
9306 # include <limits.h>
9308 # include <assert.h>
9313 /* Override any gcc2 internal prototype to avoid an error. */
9318 /* We use char because int might match the return type of a gcc2
9319 builtin and then its argument prototype would still apply. */
9321 /* The GNU C library defines this for functions which it implements
9322 to always fail with ENOSYS. Some functions are actually named
9323 something starting with __ and the normal name is an alias. */
9324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9327 char (*f) () = $ac_func;
9336 return f != $ac_func;
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343 (eval $ac_link) 2>conftest.er1
9345 grep -v '^ *+' conftest.er1 >conftest.err
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -z "$ac_c_werror_flag"
9351 || test ! -s conftest.err'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; } &&
9357 { ac_try='test -s conftest$ac_exeext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 eval "$as_ac_var=yes"
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9368 eval "$as_ac_var=no"
9370 rm -f conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
9373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9375 if test `eval echo '${'$as_ac_var'}'` = yes; then
9376 cat >>confdefs.h <<_ACEOF
9377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9385 for ac_func in strrchr rindex
9387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9388 echo "$as_me:$LINENO: checking for $ac_func" >&5
9389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9390 if eval "test \"\${$as_ac_var+set}\" = set"; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9401 #define $ac_func innocuous_$ac_func
9403 /* System header to define __stub macros and hopefully few prototypes,
9404 which can conflict with char $ac_func (); below.
9405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9406 <limits.h> exists even on freestanding compilers. */
9409 # include <limits.h>
9411 # include <assert.h>
9416 /* Override any gcc2 internal prototype to avoid an error. */
9421 /* We use char because int might match the return type of a gcc2
9422 builtin and then its argument prototype would still apply. */
9424 /* The GNU C library defines this for functions which it implements
9425 to always fail with ENOSYS. Some functions are actually named
9426 something starting with __ and the normal name is an alias. */
9427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9430 char (*f) () = $ac_func;
9439 return f != $ac_func;
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446 (eval $ac_link) 2>conftest.er1
9448 grep -v '^ *+' conftest.er1 >conftest.err
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest$ac_exeext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 eval "$as_ac_var=yes"
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 eval "$as_ac_var=no"
9473 rm -f conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9478 if test `eval echo '${'$as_ac_var'}'` = yes; then
9479 cat >>confdefs.h <<_ACEOF
9480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9488 for ac_func in memcpy bcopy
9490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9491 echo "$as_me:$LINENO: checking for $ac_func" >&5
9492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9493 if eval "test \"\${$as_ac_var+set}\" = set"; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 cat >conftest.$ac_ext <<_ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9504 #define $ac_func innocuous_$ac_func
9506 /* System header to define __stub macros and hopefully few prototypes,
9507 which can conflict with char $ac_func (); below.
9508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9509 <limits.h> exists even on freestanding compilers. */
9512 # include <limits.h>
9514 # include <assert.h>
9519 /* Override any gcc2 internal prototype to avoid an error. */
9524 /* We use char because int might match the return type of a gcc2
9525 builtin and then its argument prototype would still apply. */
9527 /* The GNU C library defines this for functions which it implements
9528 to always fail with ENOSYS. Some functions are actually named
9529 something starting with __ and the normal name is an alias. */
9530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9533 char (*f) () = $ac_func;
9542 return f != $ac_func;
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549 (eval $ac_link) 2>conftest.er1
9551 grep -v '^ *+' conftest.er1 >conftest.err
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -z "$ac_c_werror_flag"
9557 || test ! -s conftest.err'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; } &&
9563 { ac_try='test -s conftest$ac_exeext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 eval "$as_ac_var=yes"
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 eval "$as_ac_var=no"
9576 rm -f conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9581 if test `eval echo '${'$as_ac_var'}'` = yes; then
9582 cat >>confdefs.h <<_ACEOF
9583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9591 for ac_func in memmove strcmp
9593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9594 echo "$as_me:$LINENO: checking for $ac_func" >&5
9595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9596 if eval "test \"\${$as_ac_var+set}\" = set"; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9607 #define $ac_func innocuous_$ac_func
9609 /* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char $ac_func (); below.
9611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612 <limits.h> exists even on freestanding compilers. */
9615 # include <limits.h>
9617 # include <assert.h>
9622 /* Override any gcc2 internal prototype to avoid an error. */
9627 /* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9630 /* The GNU C library defines this for functions which it implements
9631 to always fail with ENOSYS. Some functions are actually named
9632 something starting with __ and the normal name is an alias. */
9633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9636 char (*f) () = $ac_func;
9645 return f != $ac_func;
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>conftest.er1
9654 grep -v '^ *+' conftest.er1 >conftest.err
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -z "$ac_c_werror_flag"
9660 || test ! -s conftest.err'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 eval "$as_ac_var=yes"
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 eval "$as_ac_var=no"
9679 rm -f conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9684 if test `eval echo '${'$as_ac_var'}'` = yes; then
9685 cat >>confdefs.h <<_ACEOF
9686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9695 for ac_func in closedir opendir readdir
9697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9698 echo "$as_me:$LINENO: checking for $ac_func" >&5
9699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9700 if eval "test \"\${$as_ac_var+set}\" = set"; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 cat >conftest.$ac_ext <<_ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9711 #define $ac_func innocuous_$ac_func
9713 /* System header to define __stub macros and hopefully few prototypes,
9714 which can conflict with char $ac_func (); below.
9715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716 <limits.h> exists even on freestanding compilers. */
9719 # include <limits.h>
9721 # include <assert.h>
9726 /* Override any gcc2 internal prototype to avoid an error. */
9731 /* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9734 /* The GNU C library defines this for functions which it implements
9735 to always fail with ENOSYS. Some functions are actually named
9736 something starting with __ and the normal name is an alias. */
9737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9740 char (*f) () = $ac_func;
9749 return f != $ac_func;
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 eval "$as_ac_var=yes"
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 eval "$as_ac_var=no"
9783 rm -f conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9788 if test `eval echo '${'$as_ac_var'}'` = yes; then
9789 cat >>confdefs.h <<_ACEOF
9790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9797 # Check whether --enable-shared or --disable-shared was given.
9798 if test "${enable_shared+set}" = set; then
9799 enableval="$enable_shared"
9800 p=${PACKAGE-default}
9802 yes) enable_shared=yes ;;
9803 no) enable_shared=no ;;
9806 # Look at the argument we got. We use all the common list separators.
9807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9808 for pkg in $enableval; do
9810 if test "X$pkg" = "X$p"; then
9821 # Check whether --enable-static or --disable-static was given.
9822 if test "${enable_static+set}" = set; then
9823 enableval="$enable_static"
9824 p=${PACKAGE-default}
9826 yes) enable_static=yes ;;
9827 no) enable_static=no ;;
9830 # Look at the argument we got. We use all the common list separators.
9831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9832 for pkg in $enableval; do
9834 if test "X$pkg" = "X$p"; then
9845 # Check whether --enable-fast-install or --disable-fast-install was given.
9846 if test "${enable_fast_install+set}" = set; then
9847 enableval="$enable_fast_install"
9848 p=${PACKAGE-default}
9850 yes) enable_fast_install=yes ;;
9851 no) enable_fast_install=no ;;
9853 enable_fast_install=no
9854 # Look at the argument we got. We use all the common list separators.
9855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9856 for pkg in $enableval; do
9858 if test "X$pkg" = "X$p"; then
9859 enable_fast_install=yes
9866 enable_fast_install=yes
9869 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9870 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9871 if test "${lt_cv_path_SED+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 # Loop through the user's path and test for sed and gsed.
9875 # Then use that list of sed's as ones to test for truncation.
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880 test -z "$as_dir" && as_dir=.
9881 for lt_ac_prog in sed gsed; do
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9884 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9891 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9892 # along with /bin/sed that truncates output.
9893 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9894 test ! -f $lt_ac_sed && break
9895 cat /dev/null > conftest.in
9897 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9898 # Check for GNU sed and select it if it is found.
9899 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9900 lt_cv_path_SED=$lt_ac_sed
9904 cat conftest.in conftest.in >conftest.tmp
9905 mv conftest.tmp conftest.in
9906 cp conftest.in conftest.nl
9908 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9909 cmp -s conftest.out conftest.nl || break
9910 # 10000 chars as input seems more than enough
9911 test $lt_ac_count -gt 10 && break
9912 lt_ac_count=`expr $lt_ac_count + 1`
9913 if test $lt_ac_count -gt $lt_ac_max; then
9914 lt_ac_max=$lt_ac_count
9915 lt_cv_path_SED=$lt_ac_sed
9923 echo "$as_me:$LINENO: result: $SED" >&5
9924 echo "${ECHO_T}$SED" >&6
9927 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9928 if test "${with_gnu_ld+set}" = set; then
9929 withval="$with_gnu_ld"
9930 test "$withval" = no || with_gnu_ld=yes
9935 if test "$GCC" = yes; then
9936 # Check if gcc -print-prog-name=ld gives a path.
9937 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9938 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9941 # gcc leaves a trailing carriage return which upsets mingw
9942 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9944 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9947 # Accept absolute paths.
9949 re_direlt='/[^/][^/]*/\.\./'
9950 # Canonicalize the pathname of ld
9951 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9952 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9953 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9955 test -z "$LD" && LD="$ac_prog"
9958 # If it fails, then pretend we aren't using GCC.
9962 # If it is relative, then search for the first ld in PATH.
9966 elif test "$with_gnu_ld" = yes; then
9967 echo "$as_me:$LINENO: checking for GNU ld" >&5
9968 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9970 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9971 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9973 if test "${lt_cv_path_LD+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 if test -z "$LD"; then
9977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9978 for ac_dir in $PATH; do
9980 test -z "$ac_dir" && ac_dir=.
9981 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9982 lt_cv_path_LD="$ac_dir/$ac_prog"
9983 # Check to see if the program is GNU ld. I'd rather use --version,
9984 # but apparently some GNU ld's only accept -v.
9985 # Break only if it was the GNU/non-GNU ld that we prefer.
9986 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9987 *GNU* | *'with BFD'*)
9988 test "$with_gnu_ld" != no && break
9991 test "$with_gnu_ld" != yes && break
9998 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10002 LD="$lt_cv_path_LD"
10003 if test -n "$LD"; then
10004 echo "$as_me:$LINENO: result: $LD" >&5
10005 echo "${ECHO_T}$LD" >&6
10007 echo "$as_me:$LINENO: result: no" >&5
10008 echo "${ECHO_T}no" >&6
10010 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10011 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10012 { (exit 1); exit 1; }; }
10013 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10014 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10015 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10019 case `$LD -v 2>&1 </dev/null` in
10020 *GNU* | *'with BFD'*)
10021 lt_cv_prog_gnu_ld=yes
10024 lt_cv_prog_gnu_ld=no
10028 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10029 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10030 with_gnu_ld=$lt_cv_prog_gnu_ld
10033 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10034 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10035 if test "${lt_cv_ld_reload_flag+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 lt_cv_ld_reload_flag='-r'
10040 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10041 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10042 reload_flag=$lt_cv_ld_reload_flag
10043 case $reload_flag in
10045 *) reload_flag=" $reload_flag" ;;
10047 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10050 if test "$GCC" = yes; then
10051 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10053 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10058 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10059 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10060 if test "${lt_cv_deplibs_check_method+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 lt_cv_file_magic_cmd='$MAGIC_CMD'
10064 lt_cv_file_magic_test_file=
10065 lt_cv_deplibs_check_method='unknown'
10066 # Need to set the preceding variable on all platforms that support
10067 # interlibrary dependencies.
10068 # 'none' -- dependencies not supported.
10069 # `unknown' -- same as none, but documents that we really don't know.
10070 # 'pass_all' -- all dependencies passed with no checks.
10071 # 'test_compile' -- check by making test program.
10072 # 'file_magic [[regex]]' -- check by looking for files in library path
10073 # which responds to the $file_magic_cmd with a given extended regex.
10074 # If you have `file' or equivalent on your system and you're not sure
10075 # whether `pass_all' will *always* work, you probably want this one.
10079 lt_cv_deplibs_check_method=pass_all
10083 lt_cv_deplibs_check_method=pass_all
10087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10088 lt_cv_file_magic_cmd='/usr/bin/file -L'
10089 lt_cv_file_magic_test_file=/shlib/libc.so
10093 # func_win32_libid is a shell function defined in ltmain.sh
10094 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10095 lt_cv_file_magic_cmd='func_win32_libid'
10099 # Base MSYS/MinGW do not provide the 'file' command needed by
10100 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10101 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10102 lt_cv_file_magic_cmd='$OBJDUMP -f'
10105 darwin* | rhapsody*)
10106 lt_cv_deplibs_check_method=pass_all
10109 freebsd* | kfreebsd*-gnu)
10110 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10113 # Not sure whether the presence of OpenBSD here was a mistake.
10114 # Let's accept both of them until this is cleared up.
10115 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10116 lt_cv_file_magic_cmd=/usr/bin/file
10117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10121 lt_cv_deplibs_check_method=pass_all
10126 lt_cv_deplibs_check_method=pass_all
10129 hpux10.20* | hpux11*)
10130 lt_cv_file_magic_cmd=/usr/bin/file
10131 case "$host_cpu" in
10133 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10134 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10137 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]'
10138 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10141 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10142 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10147 irix5* | irix6* | nonstopux*)
10149 *-32|*"-32 ") libmagic=32-bit;;
10150 *-n32|*"-n32 ") libmagic=N32;;
10151 *-64|*"-64 ") libmagic=64-bit;;
10152 *) libmagic=never-match;;
10154 lt_cv_deplibs_check_method=pass_all
10157 # This must be Linux ELF.
10159 lt_cv_deplibs_check_method=pass_all
10163 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10171 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10172 lt_cv_file_magic_cmd=/usr/bin/file
10173 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10177 lt_cv_deplibs_check_method=unknown
10181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10188 osf3* | osf4* | osf5*)
10189 lt_cv_deplibs_check_method=pass_all
10193 lt_cv_deplibs_check_method=pass_all
10197 lt_cv_deplibs_check_method=pass_all
10200 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10201 case $host_vendor in
10203 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]'
10204 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10207 lt_cv_deplibs_check_method=pass_all
10210 lt_cv_file_magic_cmd='/bin/file'
10211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10214 lt_cv_file_magic_cmd='/bin/file'
10215 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10216 lt_cv_file_magic_test_file=/lib/libc.so
10219 lt_cv_deplibs_check_method=pass_all
10224 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10225 lt_cv_deplibs_check_method=pass_all
10230 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10231 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10232 file_magic_cmd=$lt_cv_file_magic_cmd
10233 deplibs_check_method=$lt_cv_deplibs_check_method
10234 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10238 # If no C compiler was specified, use CC.
10241 # Allow CC to be a program name with arguments.
10244 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10245 if test "${enable_libtool_lock+set}" = set; then
10246 enableval="$enable_libtool_lock"
10249 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10251 # Some flags need to be propagated to the compiler or linker for good
10255 # Find out which ABI we are using.
10256 echo 'int i;' > conftest.$ac_ext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; then
10262 case `/usr/bin/file conftest.$ac_objext` in
10264 HPUX_IA64_MODE="32"
10267 HPUX_IA64_MODE="64"
10274 # Find out which ABI we are using.
10275 echo '#line 10275 "configure"' > conftest.$ac_ext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10277 (eval $ac_compile) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; then
10281 if test "$lt_cv_prog_gnu_ld" = yes; then
10282 case `/usr/bin/file conftest.$ac_objext` in
10284 LD="${LD-ld} -melf32bsmip"
10287 LD="${LD-ld} -melf32bmipn32"
10290 LD="${LD-ld} -melf64bmip"
10294 case `/usr/bin/file conftest.$ac_objext` in
10310 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10311 # Find out which ABI we are using.
10312 echo 'int i;' > conftest.$ac_ext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10314 (eval $ac_compile) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; then
10318 case "`/usr/bin/file conftest.o`" in
10322 LD="${LD-ld} -m elf_i386"
10324 ppc64-*linux*|powerpc64-*linux*)
10325 LD="${LD-ld} -m elf32ppclinux"
10328 LD="${LD-ld} -m elf_s390"
10331 LD="${LD-ld} -m elf32_sparc"
10338 LD="${LD-ld} -m elf_x86_64"
10340 ppc*-*linux*|powerpc*-*linux*)
10341 LD="${LD-ld} -m elf64ppc"
10344 LD="${LD-ld} -m elf64_s390"
10347 LD="${LD-ld} -m elf64_sparc"
10357 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10358 SAVE_CFLAGS="$CFLAGS"
10359 CFLAGS="$CFLAGS -belf"
10360 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10361 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10362 if test "${lt_cv_cc_needs_belf+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 ac_cpp='$CPP $CPPFLAGS'
10367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10371 cat >conftest.$ac_ext <<_ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>conftest.er1
10383 grep -v '^ *+' conftest.er1 >conftest.err
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -z "$ac_c_werror_flag"
10389 || test ! -s conftest.err'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 lt_cv_cc_needs_belf=yes
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 lt_cv_cc_needs_belf=no
10408 rm -f conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10411 ac_cpp='$CPP $CPPFLAGS'
10412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10417 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10418 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10419 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10420 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10421 CFLAGS="$SAVE_CFLAGS"
10427 need_locks="$enable_libtool_lock"
10432 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10433 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10434 (test "X$CXX" != "Xg++"))) ; then
10436 ac_cpp='$CXXCPP $CPPFLAGS'
10437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10440 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10441 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10442 if test -z "$CXXCPP"; then
10443 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 # Double quotes because CXXCPP needs to be expanded
10447 for CXXCPP in "$CXX -E" "/lib/cpp"
10449 ac_preproc_ok=false
10450 for ac_cxx_preproc_warn_flag in '' yes
10452 # Use a header file that comes with gcc, so configuring glibc
10453 # with a fresh cross-compiler works.
10454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10455 # <limits.h> exists even on freestanding compilers.
10456 # On the NeXT, cc -E runs the code through the compiler's parser,
10457 # not just through cpp. "Syntax error" is here to catch this case.
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10465 # include <limits.h>
10467 # include <assert.h>
10471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10474 grep -v '^ *+' conftest.er1 >conftest.err
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } >/dev/null; then
10479 if test -s conftest.err; then
10480 ac_cpp_err=$ac_cxx_preproc_warn_flag
10481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10488 if test -z "$ac_cpp_err"; then
10491 echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10494 # Broken: fails on valid input.
10497 rm -f conftest.err conftest.$ac_ext
10499 # OK, works on sane cases. Now check whether non-existent headers
10500 # can be detected and how.
10501 cat >conftest.$ac_ext <<_ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10507 #include <ac_nonexistent.h>
10509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10512 grep -v '^ *+' conftest.er1 >conftest.err
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } >/dev/null; then
10517 if test -s conftest.err; then
10518 ac_cpp_err=$ac_cxx_preproc_warn_flag
10519 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10526 if test -z "$ac_cpp_err"; then
10527 # Broken: success on invalid input.
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 # Passes both tests.
10537 rm -f conftest.err conftest.$ac_ext
10540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10541 rm -f conftest.err conftest.$ac_ext
10542 if $ac_preproc_ok; then
10547 ac_cv_prog_CXXCPP=$CXXCPP
10550 CXXCPP=$ac_cv_prog_CXXCPP
10552 ac_cv_prog_CXXCPP=$CXXCPP
10554 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10555 echo "${ECHO_T}$CXXCPP" >&6
10556 ac_preproc_ok=false
10557 for ac_cxx_preproc_warn_flag in '' yes
10559 # Use a header file that comes with gcc, so configuring glibc
10560 # with a fresh cross-compiler works.
10561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10562 # <limits.h> exists even on freestanding compilers.
10563 # On the NeXT, cc -E runs the code through the compiler's parser,
10564 # not just through cpp. "Syntax error" is here to catch this case.
10565 cat >conftest.$ac_ext <<_ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10572 # include <limits.h>
10574 # include <assert.h>
10578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10581 grep -v '^ *+' conftest.er1 >conftest.err
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } >/dev/null; then
10586 if test -s conftest.err; then
10587 ac_cpp_err=$ac_cxx_preproc_warn_flag
10588 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10595 if test -z "$ac_cpp_err"; then
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 # Broken: fails on valid input.
10604 rm -f conftest.err conftest.$ac_ext
10606 # OK, works on sane cases. Now check whether non-existent headers
10607 # can be detected and how.
10608 cat >conftest.$ac_ext <<_ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <ac_nonexistent.h>
10616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } >/dev/null; then
10624 if test -s conftest.err; then
10625 ac_cpp_err=$ac_cxx_preproc_warn_flag
10626 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10633 if test -z "$ac_cpp_err"; then
10634 # Broken: success on invalid input.
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 # Passes both tests.
10644 rm -f conftest.err conftest.$ac_ext
10647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10648 rm -f conftest.err conftest.$ac_ext
10649 if $ac_preproc_ok; then
10652 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10653 See \`config.log' for more details." >&5
10654 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10655 See \`config.log' for more details." >&2;}
10656 { (exit 1); exit 1; }; }
10660 ac_cpp='$CXXCPP $CPPFLAGS'
10661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10669 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10670 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10671 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10672 if test -n "$ac_tool_prefix"; then
10673 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10677 echo "$as_me:$LINENO: checking for $ac_word" >&5
10678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10679 if test "${ac_cv_prog_F77+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 if test -n "$F77"; then
10683 ac_cv_prog_F77="$F77" # Let the user override the test.
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10689 test -z "$as_dir" && as_dir=.
10690 for ac_exec_ext in '' $ac_executable_extensions; do
10691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 F77=$ac_cv_prog_F77
10702 if test -n "$F77"; then
10703 echo "$as_me:$LINENO: result: $F77" >&5
10704 echo "${ECHO_T}$F77" >&6
10706 echo "$as_me:$LINENO: result: no" >&5
10707 echo "${ECHO_T}no" >&6
10710 test -n "$F77" && break
10713 if test -z "$F77"; then
10715 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10717 # Extract the first word of "$ac_prog", so it can be a program name with args.
10718 set dummy $ac_prog; ac_word=$2
10719 echo "$as_me:$LINENO: checking for $ac_word" >&5
10720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10721 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 if test -n "$ac_ct_F77"; then
10725 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734 ac_cv_prog_ac_ct_F77="$ac_prog"
10735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10743 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10744 if test -n "$ac_ct_F77"; then
10745 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10746 echo "${ECHO_T}$ac_ct_F77" >&6
10748 echo "$as_me:$LINENO: result: no" >&5
10749 echo "${ECHO_T}no" >&6
10752 test -n "$ac_ct_F77" && break
10759 # Provide some information about the compiler.
10760 echo "$as_me:10760:" \
10761 "checking for Fortran 77 compiler version" >&5
10762 ac_compiler=`set X $ac_compile; echo $2`
10763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10764 (eval $ac_compiler --version </dev/null >&5) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }
10768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10769 (eval $ac_compiler -v </dev/null >&5) 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }
10773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10774 (eval $ac_compiler -V </dev/null >&5) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }
10780 # If we don't use `.F' as extension, the preprocessor is not run on the
10781 # input file. (Note that this only needs to work for GNU compilers.)
10782 ac_save_ext=$ac_ext
10784 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10785 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10786 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 cat >conftest.$ac_ext <<_ACEOF
10797 rm -f conftest.$ac_objext
10798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10799 (eval $ac_compile) 2>conftest.er1
10801 grep -v '^ *+' conftest.er1 >conftest.err
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
10806 { ac_try='test -z "$ac_f77_werror_flag"
10807 || test ! -s conftest.err'
10808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 (eval $ac_try) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; } &&
10813 { ac_try='test -s conftest.$ac_objext'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_compiler_gnu=yes
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10827 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10830 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10831 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10832 ac_ext=$ac_save_ext
10833 ac_test_FFLAGS=${FFLAGS+set}
10834 ac_save_FFLAGS=$FFLAGS
10836 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10837 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10838 if test "${ac_cv_prog_f77_g+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 cat >conftest.$ac_ext <<_ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849 (eval $ac_compile) 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } &&
10856 { ac_try='test -z "$ac_f77_werror_flag"
10857 || test ! -s conftest.err'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; } &&
10863 { ac_try='test -s conftest.$ac_objext'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; }; then
10869 ac_cv_prog_f77_g=yes
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10874 ac_cv_prog_f77_g=no
10876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10879 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10880 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10881 if test "$ac_test_FFLAGS" = set; then
10882 FFLAGS=$ac_save_FFLAGS
10883 elif test $ac_cv_prog_f77_g = yes; then
10884 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10890 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10897 G77=`test $ac_compiler_gnu = yes && echo yes`
10899 ac_cpp='$CPP $CPPFLAGS'
10900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10906 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10908 # find the maximum length of command line arguments
10909 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10910 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10911 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 # On DJGPP, this test can blow up pretty badly due to problems in libc
10920 # (any single argument exceeding 2000 bytes causes a buffer overrun
10921 # during glob expansion). Even if it were fixed, the result of this
10922 # check would be larger than it should be.
10923 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10927 # Under GNU Hurd, this test is not required because there is
10928 # no limit to the length of command line arguments.
10929 # Libtool will interpret -1 as no limit whatsoever
10930 lt_cv_sys_max_cmd_len=-1;
10934 # On Win9x/ME, this test blows up -- it succeeds, but takes
10935 # about 5 minutes as the teststring grows exponentially.
10936 # Worse, since 9x/ME are not pre-emptively multitasking,
10937 # you end up with a "frozen" computer, even though with patience
10938 # the test eventually succeeds (with a max line length of 256k).
10939 # Instead, let's just punt: use the minimum linelength reported by
10940 # all of the supported platforms: 8192 (on NT/2K/XP).
10941 lt_cv_sys_max_cmd_len=8192;
10945 # On AmigaOS with pdksh, this test takes hours, literally.
10946 # So we just punt and use a minimum line length of 8192.
10947 lt_cv_sys_max_cmd_len=8192;
10950 netbsd* | freebsd* | openbsd* | darwin* )
10951 # This has been around since 386BSD, at least. Likely further.
10952 if test -x /sbin/sysctl; then
10953 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10954 elif test -x /usr/sbin/sysctl; then
10955 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10957 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10959 # And add a safety zone
10960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10964 # If test is not a shell built-in, we'll probably end up computing a
10965 # maximum length that is only half of the actual maximum length, but
10967 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10968 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10969 = "XX$teststring") >/dev/null 2>&1 &&
10970 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10971 lt_cv_sys_max_cmd_len=$new_result &&
10972 test $i != 17 # 1/2 MB should be enough
10975 teststring=$teststring$teststring
10978 # Add a significant safety factor because C++ compilers can tack on massive
10979 # amounts of additional arguments before passing them to the linker.
10980 # It appears as though 1/2 is a usable value.
10981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10987 if test -n $lt_cv_sys_max_cmd_len ; then
10988 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10989 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10991 echo "$as_me:$LINENO: result: none" >&5
10992 echo "${ECHO_T}none" >&6
10998 # Check for command to grab the raw symbol name followed by C symbol from nm.
10999 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11000 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11001 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 # These are sane defaults that work on at least a few old systems.
11006 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11008 # Character class describing NM global symbol codes.
11009 symcode='[BCDEGRST]'
11011 # Regexp to match symbols that can be accessed directly from C.
11012 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11014 # Transform the above into a raw symbol and a C symbol.
11015 symxfrm='\1 \2\3 \3'
11017 # Transform an extracted symbol line into a proper C declaration
11018 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11020 # Transform an extracted symbol line into symbol name and symbol address
11021 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'"
11023 # Define system-specific variables.
11028 cygwin* | mingw* | pw32*)
11029 symcode='[ABCDGISTW]'
11031 hpux*) # Its linker distinguishes data from code symbols
11032 if test "$host_cpu" = ia64; then
11033 symcode='[ABCDEGRST]'
11035 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11036 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'"
11039 if test "$host_cpu" = ia64; then
11040 symcode='[ABCDGIRSTW]'
11041 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11042 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'"
11045 irix* | nonstopux*)
11046 symcode='[BCDEGRST]'
11049 symcode='[BCDEGQRST]'
11059 # Handle CRLF in mingw tool chain
11063 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11067 # If we're using GNU nm, then use its standard symbol codes.
11068 case `$NM -V 2>&1` in
11069 *GNU* | *'with BFD'*)
11070 symcode='[ABCDGIRSTW]' ;;
11073 # Try without a prefix undercore, then with it.
11074 for ac_symprfx in "" "_"; do
11076 # Write the raw and C identifiers.
11077 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11079 # Check to see that the pipe works correctly.
11083 cat > conftest.$ac_ext <<EOF
11088 void nm_test_func(){}
11092 int main(){nm_test_var='a';nm_test_func();return(0);}
11095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096 (eval $ac_compile) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; then
11100 # Now try to grab the symbols.
11102 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11103 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && test -s "$nlist"; then
11107 # Try sorting and uniquifying the output.
11108 if sort "$nlist" | uniq > "$nlist"T; then
11109 mv -f "$nlist"T "$nlist"
11114 # Make sure that we snagged all the symbols we need.
11115 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11116 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11117 cat <<EOF > conftest.$ac_ext
11123 # Now generate the symbol file.
11124 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11126 cat <<EOF >> conftest.$ac_ext
11127 #if defined (__STDC__) && __STDC__
11128 # define lt_ptr_t void *
11130 # define lt_ptr_t char *
11134 /* The mapping between symbol names and symbols. */
11139 lt_preloaded_symbols[] =
11142 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11143 cat <<\EOF >> conftest.$ac_ext
11151 # Now try linking the two files.
11152 mv conftest.$ac_objext conftstm.$ac_objext
11153 lt_save_LIBS="$LIBS"
11154 lt_save_CFLAGS="$CFLAGS"
11155 LIBS="conftstm.$ac_objext"
11156 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11158 (eval $ac_link) 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11164 LIBS="$lt_save_LIBS"
11165 CFLAGS="$lt_save_CFLAGS"
11167 echo "cannot find nm_test_func in $nlist" >&5
11170 echo "cannot find nm_test_var in $nlist" >&5
11173 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11176 echo "$progname: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11179 rm -f conftest* conftst*
11181 # Do not use the global_symbol_pipe unless it works.
11182 if test "$pipe_works" = yes; then
11185 lt_cv_sys_global_symbol_pipe=
11191 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11192 lt_cv_sys_global_symbol_to_cdecl=
11194 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11195 echo "$as_me:$LINENO: result: failed" >&5
11196 echo "${ECHO_T}failed" >&6
11198 echo "$as_me:$LINENO: result: ok" >&5
11199 echo "${ECHO_T}ok" >&6
11202 echo "$as_me:$LINENO: checking for objdir" >&5
11203 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11204 if test "${lt_cv_objdir+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 rm -f .libs 2>/dev/null
11208 mkdir .libs 2>/dev/null
11209 if test -d .libs; then
11212 # MS-DOS does not allow filenames that begin with a dot.
11215 rmdir .libs 2>/dev/null
11217 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11218 echo "${ECHO_T}$lt_cv_objdir" >&6
11219 objdir=$lt_cv_objdir
11227 # AIX sometimes has problems with the GCC collect2 program. For some
11228 # reason, if we set the COLLECT_NAMES environment variable, the problems
11229 # vanish in a puff of smoke.
11230 if test "X${COLLECT_NAMES+set}" != Xset; then
11232 export COLLECT_NAMES
11237 # Sed substitution that helps us do robust quoting. It backslashifies
11238 # metacharacters that are still active within double-quoted strings.
11239 Xsed='sed -e s/^X//'
11240 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11242 # Same as above, but do not quote variable references.
11243 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11245 # Sed substitution to delay expansion of an escaped shell variable in a
11246 # double_quote_subst'ed string.
11247 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11249 # Sed substitution to avoid accidental globbing in evaled expressions
11250 no_glob_subst='s/\*/\\\*/g'
11255 # Global variables:
11256 default_ofile=mklib
11257 can_build_shared=yes
11259 # All known linkers require a `.a' archive for static linking (except M$VC,
11260 # which needs '.lib').
11262 ltmain="$ac_aux_dir/ltmain.sh"
11263 ofile="$default_ofile"
11264 with_gnu_ld="$lt_cv_prog_gnu_ld"
11266 if test -n "$ac_tool_prefix"; then
11267 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11268 set dummy ${ac_tool_prefix}ar; ac_word=$2
11269 echo "$as_me:$LINENO: checking for $ac_word" >&5
11270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11271 if test "${ac_cv_prog_AR+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 if test -n "$AR"; then
11275 ac_cv_prog_AR="$AR" # Let the user override the test.
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11281 test -z "$as_dir" && as_dir=.
11282 for ac_exec_ext in '' $ac_executable_extensions; do
11283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284 ac_cv_prog_AR="${ac_tool_prefix}ar"
11285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11294 if test -n "$AR"; then
11295 echo "$as_me:$LINENO: result: $AR" >&5
11296 echo "${ECHO_T}$AR" >&6
11298 echo "$as_me:$LINENO: result: no" >&5
11299 echo "${ECHO_T}no" >&6
11303 if test -z "$ac_cv_prog_AR"; then
11305 # Extract the first word of "ar", so it can be a program name with args.
11306 set dummy ar; ac_word=$2
11307 echo "$as_me:$LINENO: checking for $ac_word" >&5
11308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11309 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 if test -n "$ac_ct_AR"; then
11313 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316 for as_dir in $PATH
11319 test -z "$as_dir" && as_dir=.
11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11322 ac_cv_prog_ac_ct_AR="ar"
11323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11332 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11333 if test -n "$ac_ct_AR"; then
11334 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11335 echo "${ECHO_T}$ac_ct_AR" >&6
11337 echo "$as_me:$LINENO: result: no" >&5
11338 echo "${ECHO_T}no" >&6
11343 AR="$ac_cv_prog_AR"
11346 if test -n "$ac_tool_prefix"; then
11347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11349 echo "$as_me:$LINENO: checking for $ac_word" >&5
11350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11351 if test "${ac_cv_prog_RANLIB+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 if test -n "$RANLIB"; then
11355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in $PATH
11361 test -z "$as_dir" && as_dir=.
11362 for ac_exec_ext in '' $ac_executable_extensions; do
11363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 RANLIB=$ac_cv_prog_RANLIB
11374 if test -n "$RANLIB"; then
11375 echo "$as_me:$LINENO: result: $RANLIB" >&5
11376 echo "${ECHO_T}$RANLIB" >&6
11378 echo "$as_me:$LINENO: result: no" >&5
11379 echo "${ECHO_T}no" >&6
11383 if test -z "$ac_cv_prog_RANLIB"; then
11384 ac_ct_RANLIB=$RANLIB
11385 # Extract the first word of "ranlib", so it can be a program name with args.
11386 set dummy ranlib; ac_word=$2
11387 echo "$as_me:$LINENO: checking for $ac_word" >&5
11388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 if test -n "$ac_ct_RANLIB"; then
11393 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396 for as_dir in $PATH
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402 ac_cv_prog_ac_ct_RANLIB="ranlib"
11403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11409 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11413 if test -n "$ac_ct_RANLIB"; then
11414 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11415 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11417 echo "$as_me:$LINENO: result: no" >&5
11418 echo "${ECHO_T}no" >&6
11421 RANLIB=$ac_ct_RANLIB
11423 RANLIB="$ac_cv_prog_RANLIB"
11426 if test -n "$ac_tool_prefix"; then
11427 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11428 set dummy ${ac_tool_prefix}strip; ac_word=$2
11429 echo "$as_me:$LINENO: checking for $ac_word" >&5
11430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11431 if test "${ac_cv_prog_STRIP+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 if test -n "$STRIP"; then
11435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438 for as_dir in $PATH
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11453 STRIP=$ac_cv_prog_STRIP
11454 if test -n "$STRIP"; then
11455 echo "$as_me:$LINENO: result: $STRIP" >&5
11456 echo "${ECHO_T}$STRIP" >&6
11458 echo "$as_me:$LINENO: result: no" >&5
11459 echo "${ECHO_T}no" >&6
11463 if test -z "$ac_cv_prog_STRIP"; then
11465 # Extract the first word of "strip", so it can be a program name with args.
11466 set dummy strip; ac_word=$2
11467 echo "$as_me:$LINENO: checking for $ac_word" >&5
11468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11469 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 if test -n "$ac_ct_STRIP"; then
11473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476 for as_dir in $PATH
11479 test -z "$as_dir" && as_dir=.
11480 for ac_exec_ext in '' $ac_executable_extensions; do
11481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11482 ac_cv_prog_ac_ct_STRIP="strip"
11483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11489 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11493 if test -n "$ac_ct_STRIP"; then
11494 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11495 echo "${ECHO_T}$ac_ct_STRIP" >&6
11497 echo "$as_me:$LINENO: result: no" >&5
11498 echo "${ECHO_T}no" >&6
11503 STRIP="$ac_cv_prog_STRIP"
11508 old_CFLAGS="$CFLAGS"
11510 # Set sane defaults for various variables
11511 test -z "$AR" && AR=ar
11512 test -z "$AR_FLAGS" && AR_FLAGS=cru
11513 test -z "$AS" && AS=as
11514 test -z "$CC" && CC=cc
11515 test -z "$LTCC" && LTCC=$CC
11516 test -z "$DLLTOOL" && DLLTOOL=dlltool
11517 test -z "$LD" && LD=ld
11518 test -z "$LN_S" && LN_S="ln -s"
11519 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11520 test -z "$NM" && NM=nm
11521 test -z "$SED" && SED=sed
11522 test -z "$OBJDUMP" && OBJDUMP=objdump
11523 test -z "$RANLIB" && RANLIB=:
11524 test -z "$STRIP" && STRIP=:
11525 test -z "$ac_objext" && ac_objext=o
11527 # Determine commands to create old-style static archives.
11528 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11529 old_postinstall_cmds='chmod 644 $oldlib'
11530 old_postuninstall_cmds=
11532 if test -n "$RANLIB"; then
11535 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11538 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11541 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11544 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11546 # Only perform the check for file, if the check method requires it
11547 case $deplibs_check_method in
11549 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11550 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11551 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11552 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11560 lt_save_MAGIC_CMD="$MAGIC_CMD"
11561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11562 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11563 for ac_dir in $ac_dummy; do
11565 test -z "$ac_dir" && ac_dir=.
11566 if test -f $ac_dir/${ac_tool_prefix}file; then
11567 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11568 if test -n "$file_magic_test_file"; then
11569 case $deplibs_check_method in
11571 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11574 $EGREP "$file_magic_regex" > /dev/null; then
11579 *** Warning: the command libtool uses to detect shared libraries,
11580 *** $file_magic_cmd, produces output that libtool cannot recognize.
11581 *** The result is that libtool may fail to recognize shared libraries
11582 *** as such. This will affect the creation of libtool libraries that
11583 *** depend on shared libraries, but programs linked with such libtool
11584 *** libraries will work regardless of this problem. Nevertheless, you
11585 *** may want to report the problem to your system manager and/or to
11586 *** bug-libtool@gnu.org
11596 MAGIC_CMD="$lt_save_MAGIC_CMD"
11601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11602 if test -n "$MAGIC_CMD"; then
11603 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11604 echo "${ECHO_T}$MAGIC_CMD" >&6
11606 echo "$as_me:$LINENO: result: no" >&5
11607 echo "${ECHO_T}no" >&6
11610 if test -z "$lt_cv_path_MAGIC_CMD"; then
11611 if test -n "$ac_tool_prefix"; then
11612 echo "$as_me:$LINENO: checking for file" >&5
11613 echo $ECHO_N "checking for file... $ECHO_C" >&6
11614 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11622 lt_save_MAGIC_CMD="$MAGIC_CMD"
11623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11624 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11625 for ac_dir in $ac_dummy; do
11627 test -z "$ac_dir" && ac_dir=.
11628 if test -f $ac_dir/file; then
11629 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11630 if test -n "$file_magic_test_file"; then
11631 case $deplibs_check_method in
11633 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11635 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11636 $EGREP "$file_magic_regex" > /dev/null; then
11641 *** Warning: the command libtool uses to detect shared libraries,
11642 *** $file_magic_cmd, produces output that libtool cannot recognize.
11643 *** The result is that libtool may fail to recognize shared libraries
11644 *** as such. This will affect the creation of libtool libraries that
11645 *** depend on shared libraries, but programs linked with such libtool
11646 *** libraries will work regardless of this problem. Nevertheless, you
11647 *** may want to report the problem to your system manager and/or to
11648 *** bug-libtool@gnu.org
11658 MAGIC_CMD="$lt_save_MAGIC_CMD"
11663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11664 if test -n "$MAGIC_CMD"; then
11665 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11666 echo "${ECHO_T}$MAGIC_CMD" >&6
11668 echo "$as_me:$LINENO: result: no" >&5
11669 echo "${ECHO_T}no" >&6
11682 enable_win32_dll=no
11684 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11685 if test "${enable_libtool_lock+set}" = set; then
11686 enableval="$enable_libtool_lock"
11689 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11692 # Check whether --with-pic or --without-pic was given.
11693 if test "${with_pic+set}" = set; then
11694 withval="$with_pic"
11695 pic_mode="$withval"
11699 test -z "$pic_mode" && pic_mode=default
11701 # Use C for the default configuration in the libtool script
11705 ac_cpp='$CPP $CPPFLAGS'
11706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11711 # Source file extension for C test sources.
11714 # Object file extension for compiled C test sources.
11718 # Code to be used in simple compile tests
11719 lt_simple_compile_test_code="int some_variable = 0;\n"
11721 # Code to be used in simple link tests
11722 lt_simple_link_test_code='int main(){return(0);}\n'
11725 # If no C compiler was specified, use CC.
11728 # Allow CC to be a program name with arguments.
11733 # Check for any special shared library compilation flags.
11736 if test "$GCC" = no; then
11739 lt_prog_cc_shlib='-belf'
11743 if test -n "$lt_prog_cc_shlib"; then
11744 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11745 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11746 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11748 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11749 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11750 lt_cv_prog_cc_can_build_shared=no
11756 # Check to make sure the static flag actually works.
11758 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11759 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11760 if test "${lt_prog_compiler_static_works+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 lt_prog_compiler_static_works=no
11764 save_LDFLAGS="$LDFLAGS"
11765 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11766 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11768 # The compiler can only warn and ignore the option if not recognized
11769 # So say no if there are warnings
11770 if test -s conftest.err; then
11771 # Append any errors to the config.log.
11772 cat conftest.err 1>&5
11774 lt_prog_compiler_static_works=yes
11778 LDFLAGS="$save_LDFLAGS"
11781 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11782 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11784 if test x"$lt_prog_compiler_static_works" = xyes; then
11787 lt_prog_compiler_static=
11793 lt_prog_compiler_no_builtin_flag=
11795 if test "$GCC" = yes; then
11796 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11799 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11800 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11801 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 lt_cv_prog_compiler_rtti_exceptions=no
11805 ac_outfile=conftest.$ac_objext
11806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11807 lt_compiler_flag="-fno-rtti -fno-exceptions"
11808 # Insert the option either (1) after the last *FLAGS variable, or
11809 # (2) before a word containing "conftest.", or (3) at the end.
11810 # Note that $ac_compile itself does not contain backslashes and begins
11811 # with a dollar sign (not a hyphen), so the echo should work correctly.
11812 # The option is referenced via a variable to avoid confusing sed.
11813 lt_compile=`echo "$ac_compile" | $SED \
11814 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11816 -e 's:$: $lt_compiler_flag:'`
11817 (eval echo "\"\$as_me:11817: $lt_compile\"" >&5)
11818 (eval "$lt_compile" 2>conftest.err)
11820 cat conftest.err >&5
11821 echo "$as_me:11821: \$? = $ac_status" >&5
11822 if (exit $ac_status) && test -s "$ac_outfile"; then
11823 # The compiler can only warn and ignore the option if not recognized
11824 # So say no if there are warnings
11825 if test ! -s conftest.err; then
11826 lt_cv_prog_compiler_rtti_exceptions=yes
11832 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11833 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11835 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11836 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11843 lt_prog_compiler_wl=
11844 lt_prog_compiler_pic=
11845 lt_prog_compiler_static=
11847 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11848 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11850 if test "$GCC" = yes; then
11851 lt_prog_compiler_wl='-Wl,'
11852 lt_prog_compiler_static='-static'
11856 # All AIX code is PIC.
11857 if test "$host_cpu" = ia64; then
11858 # AIX 5 now supports IA64 processor
11859 lt_prog_compiler_static='-Bstatic'
11864 # FIXME: we need at least 68020 code to build shared libraries, but
11865 # adding the `-m68020' flag to GCC prevents building anything better,
11867 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11870 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11871 # PIC is the default for these OSes.
11874 mingw* | pw32* | os2*)
11875 # This hack is so that the source file can tell whether it is being
11876 # built for inclusion in a dll (and should export symbols for example).
11877 lt_prog_compiler_pic='-DDLL_EXPORT'
11880 darwin* | rhapsody*)
11881 # PIC is the default on this platform
11882 # Common symbols not allowed in MH_DYLIB files
11883 lt_prog_compiler_pic='-fno-common'
11887 # Just because we use GCC doesn't mean we suddenly get shared libraries
11888 # on systems that don't support them.
11889 lt_prog_compiler_can_build_shared=no
11894 if test -d /usr/nec; then
11895 lt_prog_compiler_pic=-Kconform_pic
11900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11901 # not for PA HP-UX.
11902 case "$host_cpu" in
11907 lt_prog_compiler_pic='-fPIC'
11913 lt_prog_compiler_pic='-fPIC'
11917 # PORTME Check for flag to pass linker flags through the system compiler.
11920 lt_prog_compiler_wl='-Wl,'
11921 if test "$host_cpu" = ia64; then
11922 # AIX 5 now supports IA64 processor
11923 lt_prog_compiler_static='-Bstatic'
11925 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11929 # PIC is the default on this platform
11930 # Common symbols not allowed in MH_DYLIB files
11931 case "$cc_basename" in
11933 lt_prog_compiler_pic='-qnocommon'
11934 lt_prog_compiler_wl='-Wl,'
11939 mingw* | pw32* | os2*)
11940 # This hack is so that the source file can tell whether it is being
11941 # built for inclusion in a dll (and should export symbols for example).
11942 lt_prog_compiler_pic='-DDLL_EXPORT'
11945 hpux9* | hpux10* | hpux11*)
11946 lt_prog_compiler_wl='-Wl,'
11947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11948 # not for PA HP-UX.
11949 case "$host_cpu" in
11954 lt_prog_compiler_pic='+Z'
11957 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11958 lt_prog_compiler_static='${wl}-a ${wl}archive'
11961 irix5* | irix6* | nonstopux*)
11962 lt_prog_compiler_wl='-Wl,'
11963 # PIC (with -KPIC) is the default.
11964 lt_prog_compiler_static='-non_shared'
11968 lt_prog_compiler_pic='-KPIC'
11969 lt_prog_compiler_static='-Bstatic'
11975 lt_prog_compiler_wl='-Wl,'
11976 lt_prog_compiler_pic='-KPIC'
11977 lt_prog_compiler_static='-static'
11980 lt_prog_compiler_wl='-Wl,'
11981 # All Alpha code is PIC.
11982 lt_prog_compiler_static='-non_shared'
11987 osf3* | osf4* | osf5*)
11988 lt_prog_compiler_wl='-Wl,'
11989 # All OSF/1 code is PIC.
11990 lt_prog_compiler_static='-non_shared'
11994 lt_prog_compiler_pic='-Kpic'
11995 lt_prog_compiler_static='-dn'
11999 lt_prog_compiler_wl='-Wl,'
12000 lt_prog_compiler_pic='-KPIC'
12001 lt_prog_compiler_static='-Bstatic'
12005 lt_prog_compiler_wl='-Qoption ld '
12006 lt_prog_compiler_pic='-PIC'
12007 lt_prog_compiler_static='-Bstatic'
12010 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12011 lt_prog_compiler_wl='-Wl,'
12012 lt_prog_compiler_pic='-KPIC'
12013 lt_prog_compiler_static='-Bstatic'
12017 if test -d /usr/nec ;then
12018 lt_prog_compiler_pic='-Kconform_pic'
12019 lt_prog_compiler_static='-Bstatic'
12024 lt_prog_compiler_pic='-pic'
12025 lt_prog_compiler_static='-Bstatic'
12029 lt_prog_compiler_can_build_shared=no
12034 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12035 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12038 # Check to make sure the PIC flag actually works.
12040 if test -n "$lt_prog_compiler_pic"; then
12042 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12043 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12044 if test "${lt_prog_compiler_pic_works+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 lt_prog_compiler_pic_works=no
12048 ac_outfile=conftest.$ac_objext
12049 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12050 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12051 # Insert the option either (1) after the last *FLAGS variable, or
12052 # (2) before a word containing "conftest.", or (3) at the end.
12053 # Note that $ac_compile itself does not contain backslashes and begins
12054 # with a dollar sign (not a hyphen), so the echo should work correctly.
12055 # The option is referenced via a variable to avoid confusing sed.
12056 lt_compile=`echo "$ac_compile" | $SED \
12057 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12059 -e 's:$: $lt_compiler_flag:'`
12060 (eval echo "\"\$as_me:12060: $lt_compile\"" >&5)
12061 (eval "$lt_compile" 2>conftest.err)
12063 cat conftest.err >&5
12064 echo "$as_me:12064: \$? = $ac_status" >&5
12065 if (exit $ac_status) && test -s "$ac_outfile"; then
12066 # The compiler can only warn and ignore the option if not recognized
12067 # So say no if there are warnings
12068 if test ! -s conftest.err; then
12069 lt_prog_compiler_pic_works=yes
12075 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12076 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12078 if test x"$lt_prog_compiler_pic_works" = xyes; then
12079 case $lt_prog_compiler_pic in
12081 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12084 lt_prog_compiler_pic=
12085 lt_prog_compiler_can_build_shared=no
12090 # For platforms which do not support PIC, -DPIC is meaningless:
12092 lt_prog_compiler_pic=
12095 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12099 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12100 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12101 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 lt_cv_prog_compiler_c_o=no
12105 $rm -r conftest 2>/dev/null
12109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12111 lt_compiler_flag="-o out/conftest2.$ac_objext"
12112 # Insert the option either (1) after the last *FLAGS variable, or
12113 # (2) before a word containing "conftest.", or (3) at the end.
12114 # Note that $ac_compile itself does not contain backslashes and begins
12115 # with a dollar sign (not a hyphen), so the echo should work correctly.
12116 lt_compile=`echo "$ac_compile" | $SED \
12117 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12119 -e 's:$: $lt_compiler_flag:'`
12120 (eval echo "\"\$as_me:12120: $lt_compile\"" >&5)
12121 (eval "$lt_compile" 2>out/conftest.err)
12123 cat out/conftest.err >&5
12124 echo "$as_me:12124: \$? = $ac_status" >&5
12125 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12127 # The compiler can only warn and ignore the option if not recognized
12128 # So say no if there are warnings
12129 if test ! -s out/conftest.err; then
12130 lt_cv_prog_compiler_c_o=yes
12135 # SGI C++ compiler will create directory out/ii_files/ for
12136 # template instantiation
12137 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12138 $rm out/* && rmdir out
12144 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12145 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12148 hard_links="nottested"
12149 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12150 # do not overwrite the value of need_locks provided by the user
12151 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12152 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12157 ln conftest.a conftest.b 2>&5 || hard_links=no
12158 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12159 echo "$as_me:$LINENO: result: $hard_links" >&5
12160 echo "${ECHO_T}$hard_links" >&6
12161 if test "$hard_links" = no; then
12162 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12163 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12170 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12171 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12174 allow_undefined_flag=
12175 enable_shared_with_static_runtimes=no
12177 archive_expsym_cmds=
12178 old_archive_From_new_cmds=
12179 old_archive_from_expsyms_cmds=
12180 export_dynamic_flag_spec=
12181 whole_archive_flag_spec=
12182 thread_safe_flag_spec=
12183 hardcode_libdir_flag_spec=
12184 hardcode_libdir_flag_spec_ld=
12185 hardcode_libdir_separator=
12187 hardcode_minus_L=no
12188 hardcode_shlibpath_var=unsupported
12189 link_all_deplibs=unknown
12190 hardcode_automatic=no
12192 module_expsym_cmds=
12193 always_export_symbols=no
12194 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12195 # include_expsyms should be a list of space-separated symbols to be *always*
12196 # included in the symbol list
12198 # exclude_expsyms can be an extended regexp of symbols to exclude
12199 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12200 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12201 # as well as any symbol that contains `d'.
12202 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12203 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12204 # platforms (ab)use it in PIC code, but their linkers get confused if
12205 # the symbol is explicitly referenced. Since portable code cannot
12206 # rely on this symbol name, it's probably fine to never include it in
12207 # preloaded symbol tables.
12208 extract_expsyms_cmds=
12211 cygwin* | mingw* | pw32*)
12212 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12213 # When not using gcc, we currently assume that we are using
12214 # Microsoft Visual C++.
12215 if test "$GCC" != yes; then
12225 if test "$with_gnu_ld" = yes; then
12226 # If archive_cmds runs LD, not CC, wlarc should be empty
12229 # See if GNU ld supports shared libraries.
12231 aix3* | aix4* | aix5*)
12232 # On AIX/PPC, the GNU linker is very broken
12233 if test "$host_cpu" != ia64; then
12237 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12238 *** to be unable to reliably create shared libraries on AIX.
12239 *** Therefore, libtool is disabling shared libraries support. If you
12240 *** really care for shared libraries, you may want to modify your PATH
12241 *** so that a non-GNU linker is found, and then restart.
12248 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)'
12249 hardcode_libdir_flag_spec='-L$libdir'
12250 hardcode_minus_L=yes
12252 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12253 # that the semantics of dynamic libraries on AmigaOS, at least up
12254 # to version 4, is to share data among multiple programs linked
12255 # with the same dynamic library. Since this doesn't match the
12256 # behavior of shared libraries on other platforms, we can't use
12262 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12263 allow_undefined_flag=unsupported
12264 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12265 # support --undefined. This deserves some investigation. FIXME
12266 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272 cygwin* | mingw* | pw32*)
12273 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12274 # as there is no search path for DLLs.
12275 hardcode_libdir_flag_spec='-L$libdir'
12276 allow_undefined_flag=unsupported
12277 always_export_symbols=no
12278 enable_shared_with_static_runtimes=yes
12279 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12281 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12283 # If the export-symbols file already is a .def file (1st line
12284 # is EXPORTS), use it as is; otherwise, prepend...
12285 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12286 cp $export_symbols $output_objdir/$soname.def;
12288 echo EXPORTS > $output_objdir/$soname.def;
12289 cat $export_symbols >> $output_objdir/$soname.def;
12291 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12299 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12308 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12312 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12313 *** create shared libraries on Solaris systems. Therefore, libtool
12314 *** is disabling shared libraries support. We urge you to upgrade GNU
12315 *** binutils to release 2.9.1 or newer. Another option is to modify
12316 *** your PATH or compiler configuration so that the native linker is
12317 *** used, and then restart.
12320 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12331 hardcode_direct=yes
12332 hardcode_shlibpath_var=no
12336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12337 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12338 archive_cmds="$tmp_archive_cmds"
12339 supports_anon_versioning=no
12340 case `$LD -v 2>/dev/null` in
12341 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12342 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12343 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12344 *\ 2.11.*) ;; # other 2.11 versions
12345 *) supports_anon_versioning=yes ;;
12347 if test $supports_anon_versioning = yes; then
12348 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12350 $echo "local: *; };" >> $output_objdir/$libname.ver~
12351 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12353 archive_expsym_cmds="$tmp_archive_cmds"
12361 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12370 if test "$ld_shlibs" = yes; then
12371 runpath_var=LD_RUN_PATH
12372 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12373 export_dynamic_flag_spec='${wl}--export-dynamic'
12374 # ancient GNU ld didn't support --whole-archive et. al.
12375 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12376 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12378 whole_archive_flag_spec=
12382 # PORTME fill in a description of your system's linker (not GNU ld)
12385 allow_undefined_flag=unsupported
12386 always_export_symbols=yes
12387 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'
12388 # Note: this linker hardcodes the directories in LIBPATH if there
12389 # are no directories specified by -L.
12390 hardcode_minus_L=yes
12391 if test "$GCC" = yes && test -z "$link_static_flag"; then
12392 # Neither direct hardcoding nor static linking is supported with a
12394 hardcode_direct=unsupported
12399 if test "$host_cpu" = ia64; then
12400 # On IA64, the linker does run time linking by default, so we don't
12401 # have to do anything special.
12402 aix_use_runtimelinking=no
12403 exp_sym_flag='-Bexport'
12406 # If we're using GNU nm, then we don't want the "-C" option.
12407 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12408 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12409 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'
12411 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'
12413 aix_use_runtimelinking=no
12415 # Test if we are trying to use run time linking or normal
12416 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12417 # need to do runtime linking.
12418 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12419 for ld_flag in $LDFLAGS; do
12420 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12421 aix_use_runtimelinking=yes
12427 exp_sym_flag='-bexport'
12428 no_entry_flag='-bnoentry'
12431 # When large executables or shared objects are built, AIX ld can
12432 # have problems creating the table of contents. If linking a library
12433 # or program results in "error TOC overflow" add -mminimal-toc to
12434 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12435 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12438 hardcode_direct=yes
12439 hardcode_libdir_separator=':'
12440 link_all_deplibs=yes
12442 if test "$GCC" = yes; then
12443 case $host_os in aix4.012|aix4.012.*)
12444 # We only want to do this on AIX 4.2 and lower, the check
12445 # below for broken collect2 doesn't work under 4.3+
12446 collect2name=`${CC} -print-prog-name=collect2`
12447 if test -f "$collect2name" && \
12448 strings "$collect2name" | grep resolve_lib_name >/dev/null
12450 # We have reworked collect2
12451 hardcode_direct=yes
12453 # We have old collect2
12454 hardcode_direct=unsupported
12455 # It fails to find uninstalled libraries when the uninstalled
12456 # path is not listed in the libpath. Setting hardcode_minus_L
12457 # to unsupported forces relinking
12458 hardcode_minus_L=yes
12459 hardcode_libdir_flag_spec='-L$libdir'
12460 hardcode_libdir_separator=
12463 shared_flag='-shared'
12466 if test "$host_cpu" = ia64; then
12467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12468 # chokes on -Wl,-G. The following line is correct:
12471 if test "$aix_use_runtimelinking" = yes; then
12472 shared_flag='${wl}-G'
12474 shared_flag='${wl}-bM:SRE'
12479 # It seems that -bexpall does not export symbols beginning with
12480 # underscore (_), so it is better to generate a list of symbols to export.
12481 always_export_symbols=yes
12482 if test "$aix_use_runtimelinking" = yes; then
12483 # Warning - without using the other runtime loading flags (-brtl),
12484 # -berok will link without error, but may produce a broken library.
12485 allow_undefined_flag='-berok'
12486 # Determine the default libpath from the value encoded in an empty executable.
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504 (eval $ac_link) 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest$ac_exeext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12527 # Check for a 64-bit object if we didn't find anything.
12528 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; }
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12535 rm -f conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12539 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12540 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"
12542 if test "$host_cpu" = ia64; then
12543 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12544 allow_undefined_flag="-z nodefs"
12545 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"
12547 # Determine the default libpath from the value encoded in an empty executable.
12548 cat >conftest.$ac_ext <<_ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12563 rm -f conftest.$ac_objext conftest$ac_exeext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12565 (eval $ac_link) 2>conftest.er1
12567 grep -v '^ *+' conftest.er1 >conftest.err
12569 cat conftest.err >&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
12572 { ac_try='test -z "$ac_c_werror_flag"
12573 || test ! -s conftest.err'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; } &&
12579 { ac_try='test -s conftest$ac_exeext'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12586 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12588 # Check for a 64-bit object if we didn't find anything.
12589 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; }
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12596 rm -f conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12600 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12601 # Warning - without using the other run time loading flags,
12602 # -berok will link without error, but may produce a broken library.
12603 no_undefined_flag=' ${wl}-bernotok'
12604 allow_undefined_flag=' ${wl}-berok'
12605 # -bexpall does not export symbols beginning with underscore (_)
12606 always_export_symbols=yes
12607 # Exported symbols can be pulled into shared objects from archives
12608 whole_archive_flag_spec=' '
12609 archive_cmds_need_lc=yes
12610 # This is similar to how AIX traditionally builds it's shared libraries.
12611 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'
12617 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)'
12618 hardcode_libdir_flag_spec='-L$libdir'
12619 hardcode_minus_L=yes
12620 # see comment about different semantics on the GNU ld section
12625 export_dynamic_flag_spec=-rdynamic
12628 cygwin* | mingw* | pw32*)
12629 # When not using gcc, we currently assume that we are using
12630 # Microsoft Visual C++.
12631 # hardcode_libdir_flag_spec is actually meaningless, as there is
12632 # no search path for DLLs.
12633 hardcode_libdir_flag_spec=' '
12634 allow_undefined_flag=unsupported
12635 # Tell ltmain to make .lib files, not .a files.
12637 # Tell ltmain to make .dll files, not .so files.
12639 # FIXME: Setting linknames here is a bad hack.
12640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12641 # The linker will automatically build a .lib file if we build a DLL.
12642 old_archive_From_new_cmds='true'
12643 # FIXME: Should let the user specify the lib program.
12644 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12645 fix_srcfile_path='`cygpath -w "$srcfile"`'
12646 enable_shared_with_static_runtimes=yes
12649 darwin* | rhapsody*)
12651 rhapsody* | darwin1.[012])
12652 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12655 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12656 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12658 case ${MACOSX_DEPLOYMENT_TARGET} in
12660 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12663 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12669 archive_cmds_need_lc=no
12671 hardcode_automatic=yes
12672 hardcode_shlibpath_var=unsupported
12673 whole_archive_flag_spec=''
12674 link_all_deplibs=yes
12675 if test "$GCC" = yes ; then
12676 output_verbose_link_cmd='echo'
12677 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12678 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12679 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12680 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}'
12681 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}'
12683 case "$cc_basename" in
12685 output_verbose_link_cmd='echo'
12686 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12687 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12688 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12689 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}'
12690 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}'
12700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12701 hardcode_libdir_flag_spec='-L$libdir'
12702 hardcode_shlibpath_var=no
12709 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12710 # support. Future versions do this automatically, but an explicit c++rt0.o
12711 # does not break anything, and helps significantly (at the cost of a little
12714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12715 hardcode_libdir_flag_spec='-R$libdir'
12716 hardcode_direct=yes
12717 hardcode_shlibpath_var=no
12720 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12723 hardcode_direct=yes
12724 hardcode_minus_L=yes
12725 hardcode_shlibpath_var=no
12728 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12729 freebsd* | kfreebsd*-gnu)
12730 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12731 hardcode_libdir_flag_spec='-R$libdir'
12732 hardcode_direct=yes
12733 hardcode_shlibpath_var=no
12737 if test "$GCC" = yes; then
12738 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'
12740 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'
12742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12743 hardcode_libdir_separator=:
12744 hardcode_direct=yes
12746 # hardcode_minus_L: Not really in the search PATH,
12747 # but as the default location of the library.
12748 hardcode_minus_L=yes
12749 export_dynamic_flag_spec='${wl}-E'
12753 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12754 case "$host_cpu" in
12756 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12759 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12763 case "$host_cpu" in
12765 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12768 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12772 if test "$with_gnu_ld" = no; then
12773 case "$host_cpu" in
12775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12776 hardcode_libdir_flag_spec_ld='+b $libdir'
12777 hardcode_libdir_separator=:
12779 hardcode_shlibpath_var=no
12782 hardcode_libdir_flag_spec='-L$libdir'
12784 hardcode_shlibpath_var=no
12786 # hardcode_minus_L: Not really in the search PATH,
12787 # but as the default location of the library.
12788 hardcode_minus_L=yes
12791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12792 hardcode_libdir_separator=:
12793 hardcode_direct=yes
12794 export_dynamic_flag_spec='${wl}-E'
12796 # hardcode_minus_L: Not really in the search PATH,
12797 # but as the default location of the library.
12798 hardcode_minus_L=yes
12804 irix5* | irix6* | nonstopux*)
12805 if test "$GCC" = yes; then
12806 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'
12808 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'
12809 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12812 hardcode_libdir_separator=:
12813 link_all_deplibs=yes
12817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12820 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12822 hardcode_libdir_flag_spec='-R$libdir'
12823 hardcode_direct=yes
12824 hardcode_shlibpath_var=no
12828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12829 hardcode_direct=yes
12830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12831 hardcode_libdir_separator=:
12832 hardcode_shlibpath_var=no
12836 hardcode_direct=yes
12837 hardcode_shlibpath_var=no
12838 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12839 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12840 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12842 export_dynamic_flag_spec='${wl}-E'
12845 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12847 hardcode_libdir_flag_spec='-R$libdir'
12850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12851 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12858 hardcode_libdir_flag_spec='-L$libdir'
12859 hardcode_minus_L=yes
12860 allow_undefined_flag=unsupported
12861 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'
12862 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12866 if test "$GCC" = yes; then
12867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12868 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'
12870 allow_undefined_flag=' -expect_unresolved \*'
12871 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'
12873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12874 hardcode_libdir_separator=:
12877 osf4* | osf5*) # as osf3* with the addition of -msym flag
12878 if test "$GCC" = yes; then
12879 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12880 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'
12881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12883 allow_undefined_flag=' -expect_unresolved \*'
12884 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'
12885 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12886 $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'
12888 # Both c and cxx compiler support -rpath directly
12889 hardcode_libdir_flag_spec='-rpath $libdir'
12891 hardcode_libdir_separator=:
12895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12896 hardcode_shlibpath_var=no
12897 export_dynamic_flag_spec='${wl}-Bexport'
12898 runpath_var=LD_RUN_PATH
12899 hardcode_runpath_var=yes
12903 no_undefined_flag=' -z text'
12904 if test "$GCC" = yes; then
12905 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12906 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12907 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12909 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12910 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12911 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12913 hardcode_libdir_flag_spec='-R$libdir'
12914 hardcode_shlibpath_var=no
12916 solaris2.[0-5] | solaris2.[0-5].*) ;;
12917 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12918 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12920 link_all_deplibs=yes
12924 if test "x$host_vendor" = xsequent; then
12925 # Use $CC to link under sequent, because it throws in some extra .o
12926 # files that make .init and .fini sections work.
12927 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12931 hardcode_libdir_flag_spec='-L$libdir'
12932 hardcode_direct=yes
12933 hardcode_minus_L=yes
12934 hardcode_shlibpath_var=no
12938 case $host_vendor in
12940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12941 hardcode_direct=yes # is this really true???
12944 ## LD is ld it makes a PLAMLIB
12945 ## CC just makes a GrossModule.
12946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12947 reload_cmds='$CC -r -o $output$reload_objs'
12951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12955 runpath_var='LD_RUN_PATH'
12956 hardcode_shlibpath_var=no
12960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12961 hardcode_shlibpath_var=no
12962 export_dynamic_flag_spec='-Bexport'
12966 if test -d /usr/nec; then
12967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12968 hardcode_shlibpath_var=no
12969 runpath_var=LD_RUN_PATH
12970 hardcode_runpath_var=yes
12976 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12977 hardcode_direct=yes
12978 hardcode_minus_L=no
12979 hardcode_shlibpath_var=no
12980 hardcode_runpath_var=yes
12981 runpath_var=LD_RUN_PATH
12984 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12985 no_undefined_flag='${wl}-z ${wl}text'
12986 if test "$GCC" = yes; then
12987 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12989 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12991 runpath_var='LD_RUN_PATH'
12992 hardcode_shlibpath_var=no
12996 no_undefined_flag=' -z text'
12997 # $CC -shared without GNU ld will not create a library from C++
12998 # object files and a static libstdc++, better avoid it by now
12999 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13000 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13001 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13002 hardcode_libdir_flag_spec=
13003 hardcode_shlibpath_var=no
13004 runpath_var='LD_RUN_PATH'
13008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13009 hardcode_libdir_flag_spec='-L$libdir'
13010 hardcode_shlibpath_var=no
13019 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13020 echo "${ECHO_T}$ld_shlibs" >&6
13021 test "$ld_shlibs" = no && can_build_shared=no
13023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13024 if test "$GCC" = yes; then
13025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13029 # Do we need to explicitly link libc?
13031 case "x$archive_cmds_need_lc" in
13033 # Assume -lc should be added
13034 archive_cmds_need_lc=yes
13036 if test "$enable_shared" = yes && test "$GCC" = yes; then
13037 case $archive_cmds in
13039 # FIXME: we may have to deal with multi-command sequences.
13042 # Test whether the compiler implicitly links with -lc since on some
13043 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13044 # to ld, don't add -lc before -lgcc.
13045 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13046 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } 2>conftest.err; then
13057 libobjs=conftest.$ac_objext
13059 wl=$lt_prog_compiler_wl
13065 lt_save_allow_undefined_flag=$allow_undefined_flag
13066 allow_undefined_flag=
13067 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13068 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }
13073 archive_cmds_need_lc=no
13075 archive_cmds_need_lc=yes
13077 allow_undefined_flag=$lt_save_allow_undefined_flag
13079 cat conftest.err 1>&5
13082 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13083 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13090 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13091 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13092 library_names_spec=
13093 libname_spec='lib$name'
13097 postuninstall_cmds=
13101 shlibpath_overrides_runpath=unknown
13103 dynamic_linker="$host_os ld.so"
13104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13105 if test "$GCC" = yes; then
13106 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13107 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13108 # if the path contains ";" then we assume it to be the separator
13109 # otherwise default to the standard path separator (i.e. ":") - it is
13110 # assumed that no part of a normal pathname contains ";" but that should
13111 # okay in the real world where ";" in dirpaths is itself problematic.
13112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13117 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13119 need_lib_prefix=unknown
13120 hardcode_into_libs=no
13122 # when you set need_version to no, make sure it does not cause -set_version
13123 # flags to be left without arguments
13124 need_version=unknown
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13130 shlibpath_var=LIBPATH
13132 # AIX 3 has no versioning support, so we append a major version to the name.
13133 soname_spec='${libname}${release}${shared_ext}$major'
13140 hardcode_into_libs=yes
13141 if test "$host_cpu" = ia64; then
13142 # AIX 5 supports IA64
13143 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13144 shlibpath_var=LD_LIBRARY_PATH
13146 # With GCC up to 2.95.x, collect2 would create an import file
13147 # for dependence libraries. The import file would start with
13148 # the line `#! .'. This would cause the generated library to
13149 # depend on `.', always an invalid library. This was fixed in
13150 # development snapshots of GCC prior to 3.0.
13152 aix4 | aix4.[01] | aix4.[01].*)
13153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13155 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13158 can_build_shared=no
13162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13163 # soname into executable. Probably we can add versioning support to
13164 # collect2, so additional links can be useful in future.
13165 if test "$aix_use_runtimelinking" = yes; then
13166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13167 # instead of lib<name>.a to let people know that these are not
13168 # typical AIX shared libraries.
13169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13171 # We preserve .a as extension for shared libraries through AIX4.2
13172 # and later when we are not doing run time linking.
13173 library_names_spec='${libname}${release}.a $libname.a'
13174 soname_spec='${libname}${release}${shared_ext}$major'
13176 shlibpath_var=LIBPATH
13181 library_names_spec='$libname.ixlibrary $libname.a'
13182 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13183 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'
13187 library_names_spec='${libname}${shared_ext}'
13188 dynamic_linker="$host_os ld.so"
13189 shlibpath_var=LIBRARY_PATH
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13198 shlibpath_var=LD_LIBRARY_PATH
13199 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13200 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13201 # the default ld.so.conf also contains /usr/contrib/lib and
13202 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13203 # libtool to hard-code these into programs
13206 cygwin* | mingw* | pw32*)
13207 version_type=windows
13212 case $GCC,$host_os in
13213 yes,cygwin* | yes,mingw* | yes,pw32*)
13214 library_names_spec='$libname.dll.a'
13215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13216 postinstall_cmds='base_file=`basename \${file}`~
13217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13218 dldir=$destdir/`dirname \$dlpath`~
13219 test -d \$dldir || mkdir -p \$dldir~
13220 $install_prog $dir/$dlname \$dldir/$dlname'
13221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13222 dlpath=$dir/\$dldll~
13224 shlibpath_overrides_runpath=yes
13228 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13229 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13230 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13233 # MinGW DLLs use traditional 'lib' prefix
13234 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13235 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13236 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13237 # It is most probably a Windows format PATH printed by
13238 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13239 # path with ; separators, and with drive letters. We can handle the
13240 # drive letters (cygwin fileutils understands them), so leave them,
13241 # especially as we might pass files found there to a mingw objdump,
13242 # which wouldn't understand a cygwinified path. Ahh.
13243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13249 # pw32 DLLs use 'pw' prefix rather than 'lib'
13250 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13256 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13259 dynamic_linker='Win32 ld.exe'
13260 # FIXME: first we should search . and the directory the executable is in
13264 darwin* | rhapsody*)
13265 dynamic_linker="$host_os dyld"
13266 version_type=darwin
13269 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13270 soname_spec='${libname}${release}${major}$shared_ext'
13271 shlibpath_overrides_runpath=yes
13272 shlibpath_var=DYLD_LIBRARY_PATH
13273 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13274 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13275 if test "$GCC" = yes; then
13276 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"`
13278 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13280 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13288 soname_spec='${libname}${release}${shared_ext}$major'
13289 shlibpath_var=LD_LIBRARY_PATH
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13301 soname_spec='${libname}${release}${shared_ext}$major'
13302 shlibpath_var=LD_LIBRARY_PATH
13303 shlibpath_overrides_runpath=no
13304 hardcode_into_libs=yes
13305 dynamic_linker='GNU ld.so'
13309 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13310 version_type=freebsd-$objformat
13311 case $version_type in
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13322 shlibpath_var=LD_LIBRARY_PATH
13325 shlibpath_overrides_runpath=yes
13327 freebsd3.01* | freebsdelf3.01*)
13328 shlibpath_overrides_runpath=yes
13329 hardcode_into_libs=yes
13332 shlibpath_overrides_runpath=no
13333 hardcode_into_libs=yes
13342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13343 soname_spec='${libname}${release}${shared_ext}$major'
13344 shlibpath_var=LD_LIBRARY_PATH
13345 hardcode_into_libs=yes
13348 hpux9* | hpux10* | hpux11*)
13349 # Give a soname corresponding to the major version so that dld.sl refuses to
13350 # link against other versions.
13354 case "$host_cpu" in
13357 hardcode_into_libs=yes
13358 dynamic_linker="$host_os dld.so"
13359 shlibpath_var=LD_LIBRARY_PATH
13360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 if test "X$HPUX_IA64_MODE" = X32; then
13364 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13366 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13372 hardcode_into_libs=yes
13373 dynamic_linker="$host_os dld.sl"
13374 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13377 soname_spec='${libname}${release}${shared_ext}$major'
13378 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13383 dynamic_linker="$host_os dld.sl"
13384 shlibpath_var=SHLIB_PATH
13385 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13387 soname_spec='${libname}${release}${shared_ext}$major'
13390 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13391 postinstall_cmds='chmod 555 $lib'
13394 irix5* | irix6* | nonstopux*)
13396 nonstopux*) version_type=nonstopux ;;
13398 if test "$lt_cv_prog_gnu_ld" = yes; then
13406 soname_spec='${libname}${release}${shared_ext}$major'
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13409 irix5* | nonstopux*)
13410 libsuff= shlibsuff=
13413 case $LD in # libtool.m4 will add one of these switches to LD
13414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13415 libsuff= shlibsuff= libmagic=32-bit;;
13416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13417 libsuff=32 shlibsuff=N32 libmagic=N32;;
13418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13419 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13420 *) libsuff= shlibsuff= libmagic=never-match;;
13424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13425 shlibpath_overrides_runpath=no
13426 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13427 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13428 hardcode_into_libs=yes
13431 # No shared lib support for Linux oldld, aout, or coff.
13432 linux*oldld* | linux*aout* | linux*coff*)
13436 # This must be Linux ELF.
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 shlibpath_overrides_runpath=no
13446 # This implies no fast_install, which is unacceptable.
13447 # Some rework will be needed to allow for fast_install
13448 # before this can be enabled.
13449 hardcode_into_libs=yes
13451 # Append ld.so.conf contents to the search path
13452 if test -f /etc/ld.so.conf; then
13453 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13454 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13457 # We used to test for /lib/ld.so.1 and disable shared libraries on
13458 # powerpc, because MkLinux only supported shared libraries with the
13459 # GNU dynamic linker. Since this was broken with cross compilers,
13460 # most powerpc-linux boxes support dynamic linking these days and
13461 # people can always --disable-shared, the test was removed, and we
13462 # assume the GNU/Linux dynamic linker is in use.
13463 dynamic_linker='GNU/Linux ld.so'
13470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13471 soname_spec='${libname}${release}${shared_ext}$major'
13472 shlibpath_var=LD_LIBRARY_PATH
13473 shlibpath_overrides_runpath=no
13474 hardcode_into_libs=yes
13475 dynamic_linker='GNU ld.so'
13482 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13485 dynamic_linker='NetBSD (a.out) ld.so'
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13488 soname_spec='${libname}${release}${shared_ext}$major'
13489 dynamic_linker='NetBSD ld.elf_so'
13491 shlibpath_var=LD_LIBRARY_PATH
13492 shlibpath_overrides_runpath=yes
13493 hardcode_into_libs=yes
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499 shlibpath_var=LD_LIBRARY_PATH
13500 shlibpath_overrides_runpath=yes
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508 soname_spec='${libname}${release}${shared_ext}$major'
13509 shlibpath_var=LD_LIBRARY_PATH
13510 shlibpath_overrides_runpath=yes
13517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13519 shlibpath_var=LD_LIBRARY_PATH
13520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13522 openbsd2.[89] | openbsd2.[89].*)
13523 shlibpath_overrides_runpath=no
13526 shlibpath_overrides_runpath=yes
13530 shlibpath_overrides_runpath=yes
13535 libname_spec='$name'
13538 library_names_spec='$libname${shared_ext} $libname.a'
13539 dynamic_linker='OS/2 ld.exe'
13540 shlibpath_var=LIBPATH
13543 osf3* | osf4* | osf5*)
13547 soname_spec='${libname}${release}${shared_ext}$major'
13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549 shlibpath_var=LD_LIBRARY_PATH
13550 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13551 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13556 soname_spec='${libname}${release}${shared_ext}$major'
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558 shlibpath_var=LD_LIBRARY_PATH
13565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13566 soname_spec='${libname}${release}${shared_ext}$major'
13567 shlibpath_var=LD_LIBRARY_PATH
13568 shlibpath_overrides_runpath=yes
13569 hardcode_into_libs=yes
13570 # ldd complains unless libraries are executable
13571 postinstall_cmds='chmod +x $lib'
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13577 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 shlibpath_overrides_runpath=yes
13580 if test "$with_gnu_ld" = yes; then
13586 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13589 soname_spec='${libname}${release}${shared_ext}$major'
13590 shlibpath_var=LD_LIBRARY_PATH
13591 case $host_vendor in
13593 shlibpath_overrides_runpath=no
13595 export_dynamic_flag_spec='${wl}-Blargedynsym'
13596 runpath_var=LD_RUN_PATH
13604 shlibpath_overrides_runpath=no
13605 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13611 if test -d /usr/nec ;then
13613 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13614 soname_spec='$libname${shared_ext}.$major'
13615 shlibpath_var=LD_LIBRARY_PATH
13621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13622 soname_spec='${libname}${release}${shared_ext}$major'
13623 shlibpath_var=LD_LIBRARY_PATH
13630 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13631 echo "${ECHO_T}$dynamic_linker" >&6
13632 test "$dynamic_linker" = no && can_build_shared=no
13634 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13635 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13637 if test -n "$hardcode_libdir_flag_spec" || \
13638 test -n "$runpath_var" || \
13639 test "X$hardcode_automatic" = "Xyes" ; then
13641 # We can hardcode non-existant directories.
13642 if test "$hardcode_direct" != no &&
13643 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13644 # have to relink, otherwise we might link with an installed library
13645 # when we should be linking with a yet-to-be-installed one
13646 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13647 test "$hardcode_minus_L" != no; then
13648 # Linking always hardcodes the temporary library directory.
13649 hardcode_action=relink
13651 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13652 hardcode_action=immediate
13655 # We cannot hardcode anything, or else we can only hardcode existing
13657 hardcode_action=unsupported
13659 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13660 echo "${ECHO_T}$hardcode_action" >&6
13662 if test "$hardcode_action" = relink; then
13663 # Fast installation is not supported
13664 enable_fast_install=no
13665 elif test "$shlibpath_overrides_runpath" = yes ||
13666 test "$enable_shared" = no; then
13667 # Fast installation is not necessary
13668 enable_fast_install=needless
13673 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13674 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13675 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13677 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13678 echo "$as_me:$LINENO: result: yes" >&5
13679 echo "${ECHO_T}yes" >&6
13681 # FIXME - insert some real tests, host_os isn't really good enough
13684 if test -n "$STRIP" ; then
13685 striplib="$STRIP -x"
13686 echo "$as_me:$LINENO: result: yes" >&5
13687 echo "${ECHO_T}yes" >&6
13689 echo "$as_me:$LINENO: result: no" >&5
13690 echo "${ECHO_T}no" >&6
13694 echo "$as_me:$LINENO: result: no" >&5
13695 echo "${ECHO_T}no" >&6
13700 if test "x$enable_dlopen" != xyes; then
13701 enable_dlopen=unknown
13702 enable_dlopen_self=unknown
13703 enable_dlopen_self_static=unknown
13710 lt_cv_dlopen="load_add_on"
13712 lt_cv_dlopen_self=yes
13716 lt_cv_dlopen="LoadLibrary"
13721 lt_cv_dlopen="dlopen"
13726 # if libdl is installed we need to link against it
13727 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13728 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13729 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 ac_check_lib_save_LIBS=$LIBS
13734 cat >conftest.$ac_ext <<_ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13741 /* Override any gcc2 internal prototype to avoid an error. */
13745 /* We use char because int might match the return type of a gcc2
13746 builtin and then its argument prototype would still apply. */
13756 rm -f conftest.$ac_objext conftest$ac_exeext
13757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13758 (eval $ac_link) 2>conftest.er1
13760 grep -v '^ *+' conftest.er1 >conftest.err
13762 cat conftest.err >&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
13765 { ac_try='test -z "$ac_c_werror_flag"
13766 || test ! -s conftest.err'
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; } &&
13772 { ac_try='test -s conftest$ac_exeext'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 ac_cv_lib_dl_dlopen=yes
13780 echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13783 ac_cv_lib_dl_dlopen=no
13785 rm -f conftest.err conftest.$ac_objext \
13786 conftest$ac_exeext conftest.$ac_ext
13787 LIBS=$ac_check_lib_save_LIBS
13789 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13790 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13791 if test $ac_cv_lib_dl_dlopen = yes; then
13792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13795 lt_cv_dlopen="dyld"
13797 lt_cv_dlopen_self=yes
13804 echo "$as_me:$LINENO: checking for shl_load" >&5
13805 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13806 if test "${ac_cv_func_shl_load+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13817 #define shl_load innocuous_shl_load
13819 /* System header to define __stub macros and hopefully few prototypes,
13820 which can conflict with char shl_load (); below.
13821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13822 <limits.h> exists even on freestanding compilers. */
13825 # include <limits.h>
13827 # include <assert.h>
13832 /* Override any gcc2 internal prototype to avoid an error. */
13837 /* We use char because int might match the return type of a gcc2
13838 builtin and then its argument prototype would still apply. */
13840 /* The GNU C library defines this for functions which it implements
13841 to always fail with ENOSYS. Some functions are actually named
13842 something starting with __ and the normal name is an alias. */
13843 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13846 char (*f) () = shl_load;
13855 return f != shl_load;
13860 rm -f conftest.$ac_objext conftest$ac_exeext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13862 (eval $ac_link) 2>conftest.er1
13864 grep -v '^ *+' conftest.er1 >conftest.err
13866 cat conftest.err >&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } &&
13869 { ac_try='test -z "$ac_c_werror_flag"
13870 || test ! -s conftest.err'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; } &&
13876 { ac_try='test -s conftest$ac_exeext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_cv_func_shl_load=yes
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 ac_cv_func_shl_load=no
13889 rm -f conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
13892 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13893 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13894 if test $ac_cv_func_shl_load = yes; then
13895 lt_cv_dlopen="shl_load"
13897 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13898 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13899 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 ac_check_lib_save_LIBS=$LIBS
13904 cat >conftest.$ac_ext <<_ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13911 /* Override any gcc2 internal prototype to avoid an error. */
13915 /* We use char because int might match the return type of a gcc2
13916 builtin and then its argument prototype would still apply. */
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928 (eval $ac_link) 2>conftest.er1
13930 grep -v '^ *+' conftest.er1 >conftest.err
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_lib_dld_shl_load=yes
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_cv_lib_dld_shl_load=no
13955 rm -f conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
13957 LIBS=$ac_check_lib_save_LIBS
13959 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13960 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13961 if test $ac_cv_lib_dld_shl_load = yes; then
13962 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13964 echo "$as_me:$LINENO: checking for dlopen" >&5
13965 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13966 if test "${ac_cv_func_dlopen+set}" = set; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 cat >conftest.$ac_ext <<_ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13977 #define dlopen innocuous_dlopen
13979 /* System header to define __stub macros and hopefully few prototypes,
13980 which can conflict with char dlopen (); below.
13981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13982 <limits.h> exists even on freestanding compilers. */
13985 # include <limits.h>
13987 # include <assert.h>
13992 /* Override any gcc2 internal prototype to avoid an error. */
13997 /* We use char because int might match the return type of a gcc2
13998 builtin and then its argument prototype would still apply. */
14000 /* The GNU C library defines this for functions which it implements
14001 to always fail with ENOSYS. Some functions are actually named
14002 something starting with __ and the normal name is an alias. */
14003 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14006 char (*f) () = dlopen;
14015 return f != dlopen;
14020 rm -f conftest.$ac_objext conftest$ac_exeext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022 (eval $ac_link) 2>conftest.er1
14024 grep -v '^ *+' conftest.er1 >conftest.err
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
14029 { ac_try='test -z "$ac_c_werror_flag"
14030 || test ! -s conftest.err'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; } &&
14036 { ac_try='test -s conftest$ac_exeext'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 ac_cv_func_dlopen=yes
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ac_cv_func_dlopen=no
14049 rm -f conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14052 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14053 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14054 if test $ac_cv_func_dlopen = yes; then
14055 lt_cv_dlopen="dlopen"
14057 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14058 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14059 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 ac_check_lib_save_LIBS=$LIBS
14064 cat >conftest.$ac_ext <<_ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14071 /* Override any gcc2 internal prototype to avoid an error. */
14075 /* We use char because int might match the return type of a gcc2
14076 builtin and then its argument prototype would still apply. */
14086 rm -f conftest.$ac_objext conftest$ac_exeext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14088 (eval $ac_link) 2>conftest.er1
14090 grep -v '^ *+' conftest.er1 >conftest.err
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag"
14096 || test ! -s conftest.err'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest$ac_exeext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_cv_lib_dl_dlopen=yes
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_lib_dl_dlopen=no
14115 rm -f conftest.err conftest.$ac_objext \
14116 conftest$ac_exeext conftest.$ac_ext
14117 LIBS=$ac_check_lib_save_LIBS
14119 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14120 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14121 if test $ac_cv_lib_dl_dlopen = yes; then
14122 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14124 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14125 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14126 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 ac_check_lib_save_LIBS=$LIBS
14130 LIBS="-lsvld $LIBS"
14131 cat >conftest.$ac_ext <<_ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14138 /* Override any gcc2 internal prototype to avoid an error. */
14142 /* We use char because int might match the return type of a gcc2
14143 builtin and then its argument prototype would still apply. */
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14155 (eval $ac_link) 2>conftest.er1
14157 grep -v '^ *+' conftest.er1 >conftest.err
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
14162 { ac_try='test -z "$ac_c_werror_flag"
14163 || test ! -s conftest.err'
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; } &&
14169 { ac_try='test -s conftest$ac_exeext'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 ac_cv_lib_svld_dlopen=yes
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 ac_cv_lib_svld_dlopen=no
14182 rm -f conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
14184 LIBS=$ac_check_lib_save_LIBS
14186 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14187 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14188 if test $ac_cv_lib_svld_dlopen = yes; then
14189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14191 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14192 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14193 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 ac_check_lib_save_LIBS=$LIBS
14198 cat >conftest.$ac_ext <<_ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14205 /* Override any gcc2 internal prototype to avoid an error. */
14209 /* We use char because int might match the return type of a gcc2
14210 builtin and then its argument prototype would still apply. */
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14222 (eval $ac_link) 2>conftest.er1
14224 grep -v '^ *+' conftest.er1 >conftest.err
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -z "$ac_c_werror_flag"
14230 || test ! -s conftest.err'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest$ac_exeext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_cv_lib_dld_dld_link=yes
14244 echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14247 ac_cv_lib_dld_dld_link=no
14249 rm -f conftest.err conftest.$ac_objext \
14250 conftest$ac_exeext conftest.$ac_ext
14251 LIBS=$ac_check_lib_save_LIBS
14253 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14254 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14255 if test $ac_cv_lib_dld_dld_link = yes; then
14256 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14277 if test "x$lt_cv_dlopen" != xno; then
14283 case $lt_cv_dlopen in
14285 save_CPPFLAGS="$CPPFLAGS"
14286 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14288 save_LDFLAGS="$LDFLAGS"
14289 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14292 LIBS="$lt_cv_dlopen_libs $LIBS"
14294 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14295 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14296 if test "${lt_cv_dlopen_self+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14299 if test "$cross_compiling" = yes; then :
14300 lt_cv_dlopen_self=cross
14302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14303 lt_status=$lt_dlunknown
14304 cat > conftest.$ac_ext <<EOF
14305 #line 14305 "configure"
14306 #include "confdefs.h"
14315 # define LT_DLGLOBAL RTLD_GLOBAL
14318 # define LT_DLGLOBAL DL_GLOBAL
14320 # define LT_DLGLOBAL 0
14324 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14325 find out it does not work in some platform. */
14326 #ifndef LT_DLLAZY_OR_NOW
14328 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14331 # define LT_DLLAZY_OR_NOW DL_LAZY
14334 # define LT_DLLAZY_OR_NOW RTLD_NOW
14337 # define LT_DLLAZY_OR_NOW DL_NOW
14339 # define LT_DLLAZY_OR_NOW 0
14347 extern "C" void exit (int);
14350 void fnord() { int i=42;}
14353 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14354 int status = $lt_dlunknown;
14358 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14359 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14360 /* dlclose (self); */
14366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14367 (eval $ac_link) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14371 (./conftest; exit; ) 2>/dev/null
14373 case x$lt_status in
14374 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14375 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14376 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14379 # compilation failed
14380 lt_cv_dlopen_self=no
14387 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14388 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14390 if test "x$lt_cv_dlopen_self" = xyes; then
14391 LDFLAGS="$LDFLAGS $link_static_flag"
14392 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14393 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14394 if test "${lt_cv_dlopen_self_static+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 if test "$cross_compiling" = yes; then :
14398 lt_cv_dlopen_self_static=cross
14400 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14401 lt_status=$lt_dlunknown
14402 cat > conftest.$ac_ext <<EOF
14403 #line 14403 "configure"
14404 #include "confdefs.h"
14413 # define LT_DLGLOBAL RTLD_GLOBAL
14416 # define LT_DLGLOBAL DL_GLOBAL
14418 # define LT_DLGLOBAL 0
14422 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14423 find out it does not work in some platform. */
14424 #ifndef LT_DLLAZY_OR_NOW
14426 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14429 # define LT_DLLAZY_OR_NOW DL_LAZY
14432 # define LT_DLLAZY_OR_NOW RTLD_NOW
14435 # define LT_DLLAZY_OR_NOW DL_NOW
14437 # define LT_DLLAZY_OR_NOW 0
14445 extern "C" void exit (int);
14448 void fnord() { int i=42;}
14451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14452 int status = $lt_dlunknown;
14456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14457 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14458 /* dlclose (self); */
14464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14465 (eval $ac_link) 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14469 (./conftest; exit; ) 2>/dev/null
14471 case x$lt_status in
14472 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14473 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14474 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14477 # compilation failed
14478 lt_cv_dlopen_self_static=no
14485 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14486 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14489 CPPFLAGS="$save_CPPFLAGS"
14490 LDFLAGS="$save_LDFLAGS"
14495 case $lt_cv_dlopen_self in
14496 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14497 *) enable_dlopen_self=unknown ;;
14500 case $lt_cv_dlopen_self_static in
14501 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14502 *) enable_dlopen_self_static=unknown ;;
14507 # Report which librarie types wil actually be built
14508 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14509 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14510 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14511 echo "${ECHO_T}$can_build_shared" >&6
14513 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14514 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14515 test "$can_build_shared" = "no" && enable_shared=no
14517 # On AIX, shared libraries and static libraries use the same namespace, and
14518 # are all built from PIC.
14521 test "$enable_shared" = yes && enable_static=no
14522 if test -n "$RANLIB"; then
14523 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14524 postinstall_cmds='$RANLIB $lib'
14529 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14530 test "$enable_shared" = yes && enable_static=no
14534 echo "$as_me:$LINENO: result: $enable_shared" >&5
14535 echo "${ECHO_T}$enable_shared" >&6
14537 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14538 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14539 # Make sure either enable_shared or enable_static is yes.
14540 test "$enable_shared" = yes || enable_static=yes
14541 echo "$as_me:$LINENO: result: $enable_static" >&5
14542 echo "${ECHO_T}$enable_static" >&6
14544 # The else clause should only fire when bootstrapping the
14545 # libtool distribution, otherwise you forgot to ship ltmain.sh
14546 # with your package, and you will get complaints that there are
14547 # no rules to generate ltmain.sh.
14548 if test -f "$ltmain"; then
14549 # See if we are running on zsh, and set the options which allow our commands through
14550 # without removal of \ escapes.
14551 if test -n "${ZSH_VERSION+set}" ; then
14552 setopt NO_GLOB_SUBST
14554 # Now quote all the things that may contain metacharacters while being
14555 # careful not to overquote the AC_SUBSTed values. We take copies of the
14556 # variables and quote the copies for generation of the libtool script.
14557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14561 deplibs_check_method reload_flag reload_cmds need_locks \
14562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14563 lt_cv_sys_global_symbol_to_c_name_address \
14564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14565 old_postinstall_cmds old_postuninstall_cmds \
14569 lt_prog_compiler_wl \
14570 lt_prog_compiler_pic \
14571 lt_prog_compiler_static \
14572 lt_prog_compiler_no_builtin_flag \
14573 export_dynamic_flag_spec \
14574 thread_safe_flag_spec \
14575 whole_archive_flag_spec \
14576 enable_shared_with_static_runtimes \
14578 old_archive_from_new_cmds \
14583 compiler_lib_search_path \
14585 archive_expsym_cmds \
14587 postuninstall_cmds \
14588 old_archive_from_expsyms_cmds \
14589 allow_undefined_flag \
14590 no_undefined_flag \
14591 export_symbols_cmds \
14592 hardcode_libdir_flag_spec \
14593 hardcode_libdir_flag_spec_ld \
14594 hardcode_libdir_separator \
14595 hardcode_automatic \
14597 module_expsym_cmds \
14598 lt_cv_prog_compiler_c_o \
14600 include_expsyms; do
14603 old_archive_cmds | \
14604 old_archive_from_new_cmds | \
14606 archive_expsym_cmds | \
14608 module_expsym_cmds | \
14609 old_archive_from_expsyms_cmds | \
14610 export_symbols_cmds | \
14611 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14612 postinstall_cmds | postuninstall_cmds | \
14613 old_postinstall_cmds | old_postuninstall_cmds | \
14614 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14615 # Double-quote double-evaled strings.
14616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14625 *'\$0 --fallback-echo"')
14626 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14630 cfgfile="${ofile}T"
14631 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14633 { echo "$as_me:$LINENO: creating $ofile" >&5
14634 echo "$as_me: creating $ofile" >&6;}
14636 cat <<__EOF__ >> "$cfgfile"
14639 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14640 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14641 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14643 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14644 # Free Software Foundation, Inc.
14646 # This file is part of GNU Libtool:
14647 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14649 # This program is free software; you can redistribute it and/or modify
14650 # it under the terms of the GNU General Public License as published by
14651 # the Free Software Foundation; either version 2 of the License, or
14652 # (at your option) any later version.
14654 # This program is distributed in the hope that it will be useful, but
14655 # WITHOUT ANY WARRANTY; without even the implied warranty of
14656 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14657 # General Public License for more details.
14659 # You should have received a copy of the GNU General Public License
14660 # along with this program; if not, write to the Free Software
14661 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14663 # As a special exception to the GNU General Public License, if you
14664 # distribute this file as part of a program that contains a
14665 # configuration script generated by Autoconf, you may include it under
14666 # the same distribution terms that you use for the rest of that program.
14668 # A sed program that does not truncate output.
14671 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14672 Xsed="$SED -e s/^X//"
14674 # The HP-UX ksh and POSIX shell print the target directory to stdout
14675 # if CDPATH is set.
14676 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14678 # The names of the tagged configurations supported by this script.
14681 # ### BEGIN LIBTOOL CONFIG
14683 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14685 # Shell to use when invoking shell scripts.
14688 # Whether or not to build shared libraries.
14689 build_libtool_libs=$enable_shared
14691 # Whether or not to build static libraries.
14692 build_old_libs=$enable_static
14694 # Whether or not to add -lc for building shared libraries.
14695 build_libtool_need_lc=$archive_cmds_need_lc
14697 # Whether or not to disallow shared libs when runtime libs are static
14698 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14700 # Whether or not to optimize for fast installation.
14701 fast_install=$enable_fast_install
14704 host_alias=$host_alias
14707 # An echo program that does not interpret backslashes.
14712 AR_FLAGS=$lt_AR_FLAGS
14717 # A language-specific compiler.
14720 # Is the compiler the GNU C compiler?
14726 # The linker used to build libraries.
14729 # Whether we need hard or soft links.
14732 # A BSD-compatible nm program.
14735 # A symbol stripping program
14738 # Used to examine libraries when file_magic_cmd begins "file"
14739 MAGIC_CMD=$MAGIC_CMD
14741 # Used on cygwin: DLL creation program.
14744 # Used on cygwin: object dumper.
14747 # Used on cygwin: assembler.
14750 # The name of the directory that contains temporary libtool files.
14753 # How to create reloadable object files.
14754 reload_flag=$lt_reload_flag
14755 reload_cmds=$lt_reload_cmds
14757 # How to pass a linker flag through the compiler.
14758 wl=$lt_lt_prog_compiler_wl
14760 # Object file suffix (normally "o").
14761 objext="$ac_objext"
14763 # Old archive suffix (normally "a").
14766 # Shared library suffix (normally ".so").
14767 shrext_cmds='$shrext_cmds'
14769 # Executable file suffix (normally "").
14772 # Additional compiler flags for building library objects.
14773 pic_flag=$lt_lt_prog_compiler_pic
14776 # What is the maximum length of a command?
14777 max_cmd_len=$lt_cv_sys_max_cmd_len
14779 # Does compiler simultaneously support -c and -o options?
14780 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14782 # Must we lock files when doing compilation ?
14783 need_locks=$lt_need_locks
14785 # Do we need the lib prefix for modules?
14786 need_lib_prefix=$need_lib_prefix
14788 # Do we need a version for libraries?
14789 need_version=$need_version
14791 # Whether dlopen is supported.
14792 dlopen_support=$enable_dlopen
14794 # Whether dlopen of programs is supported.
14795 dlopen_self=$enable_dlopen_self
14797 # Whether dlopen of statically linked programs is supported.
14798 dlopen_self_static=$enable_dlopen_self_static
14800 # Compiler flag to prevent dynamic linking.
14801 link_static_flag=$lt_lt_prog_compiler_static
14803 # Compiler flag to turn off builtin functions.
14804 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14806 # Compiler flag to allow reflexive dlopens.
14807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14809 # Compiler flag to generate shared objects directly from archives.
14810 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14812 # Compiler flag to generate thread-safe objects.
14813 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14815 # Library versioning type.
14816 version_type=$version_type
14818 # Format of library name prefix.
14819 libname_spec=$lt_libname_spec
14821 # List of archive names. First name is the real one, the rest are links.
14822 # The last name is the one that the linker finds with -lNAME.
14823 library_names_spec=$lt_library_names_spec
14825 # The coded name of the library, if different from the real name.
14826 soname_spec=$lt_soname_spec
14828 # Commands used to build and install an old-style archive.
14830 old_archive_cmds=$lt_old_archive_cmds
14831 old_postinstall_cmds=$lt_old_postinstall_cmds
14832 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14834 # Create an old-style archive from a shared archive.
14835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14837 # Create a temporary old-style archive to link instead of a shared archive.
14838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14840 # Commands used to build and install a shared archive.
14841 archive_cmds=$lt_archive_cmds
14842 archive_expsym_cmds=$lt_archive_expsym_cmds
14843 postinstall_cmds=$lt_postinstall_cmds
14844 postuninstall_cmds=$lt_postuninstall_cmds
14846 # Commands used to build a loadable module (assumed same as above if empty)
14847 module_cmds=$lt_module_cmds
14848 module_expsym_cmds=$lt_module_expsym_cmds
14850 # Commands to strip libraries.
14851 old_striplib=$lt_old_striplib
14852 striplib=$lt_striplib
14854 # Dependencies to place before the objects being linked to create a
14856 predep_objects=$lt_predep_objects
14858 # Dependencies to place after the objects being linked to create a
14860 postdep_objects=$lt_postdep_objects
14862 # Dependencies to place before the objects being linked to create a
14864 predeps=$lt_predeps
14866 # Dependencies to place after the objects being linked to create a
14868 postdeps=$lt_postdeps
14870 # The library search path used internally by the compiler when linking
14871 # a shared library.
14872 compiler_lib_search_path=$lt_compiler_lib_search_path
14874 # Method to check whether dependent libraries are shared objects.
14875 deplibs_check_method=$lt_deplibs_check_method
14877 # Command to use when deplibs_check_method == file_magic.
14878 file_magic_cmd=$lt_file_magic_cmd
14880 # Flag that allows shared libraries with undefined symbols to be built.
14881 allow_undefined_flag=$lt_allow_undefined_flag
14883 # Flag that forces no undefined symbols.
14884 no_undefined_flag=$lt_no_undefined_flag
14886 # Commands used to finish a libtool library installation in a directory.
14887 finish_cmds=$lt_finish_cmds
14889 # Same as above, but a single script fragment to be evaled but not shown.
14890 finish_eval=$lt_finish_eval
14892 # Take the output of nm and produce a listing of raw symbols and C names.
14893 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14895 # Transform the output of nm in a proper C declaration
14896 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14898 # Transform the output of nm in a C name address pair
14899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14901 # This is the shared library runtime path variable.
14902 runpath_var=$runpath_var
14904 # This is the shared library path variable.
14905 shlibpath_var=$shlibpath_var
14907 # Is shlibpath searched before the hard-coded library search path?
14908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14910 # How to hardcode a shared library path into an executable.
14911 hardcode_action=$hardcode_action
14913 # Whether we should hardcode library paths into libraries.
14914 hardcode_into_libs=$hardcode_into_libs
14916 # Flag to hardcode \$libdir into a binary during linking.
14917 # This must work even if \$libdir does not exist.
14918 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14920 # If ld is used when linking, flag to hardcode \$libdir into
14921 # a binary during linking. This must work even if \$libdir does
14923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14925 # Whether we need a single -rpath flag with a separated argument.
14926 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14928 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14929 # resulting binary.
14930 hardcode_direct=$hardcode_direct
14932 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14933 # resulting binary.
14934 hardcode_minus_L=$hardcode_minus_L
14936 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14937 # the resulting binary.
14938 hardcode_shlibpath_var=$hardcode_shlibpath_var
14940 # Set to yes if building a shared library automatically hardcodes DIR into the library
14941 # and all subsequent libraries and executables linked against it.
14942 hardcode_automatic=$hardcode_automatic
14944 # Variables whose values should be saved in libtool wrapper scripts and
14945 # restored at relink time.
14946 variables_saved_for_relink="$variables_saved_for_relink"
14948 # Whether libtool must link a program against all its dependency libraries.
14949 link_all_deplibs=$link_all_deplibs
14951 # Compile-time system search path for libraries
14952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14954 # Run-time system search path for libraries
14955 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14957 # Fix the shell variable \$srcfile for the compiler.
14958 fix_srcfile_path="$fix_srcfile_path"
14960 # Set to yes if exported symbols are required.
14961 always_export_symbols=$always_export_symbols
14963 # The commands to list exported symbols.
14964 export_symbols_cmds=$lt_export_symbols_cmds
14966 # The commands to extract the exported symbol list from a shared archive.
14967 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14969 # Symbols that should not be listed in the preloaded symbols.
14970 exclude_expsyms=$lt_exclude_expsyms
14972 # Symbols that must always be exported.
14973 include_expsyms=$lt_include_expsyms
14975 # ### END LIBTOOL CONFIG
14982 cat <<\EOF >> "$cfgfile"
14984 # AIX sometimes has problems with the GCC collect2 program. For some
14985 # reason, if we set the COLLECT_NAMES environment variable, the problems
14986 # vanish in a puff of smoke.
14987 if test "X${COLLECT_NAMES+set}" != Xset; then
14989 export COLLECT_NAMES
14995 # We use sed instead of cat because bash on DJGPP gets confused if
14996 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14997 # text mode, it properly converts lines to CR/LF. This bash problem
14998 # is reportedly fixed, but why not run on old versions too?
14999 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15001 mv -f "$cfgfile" "$ofile" || \
15002 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15006 # If there is no Makefile yet, we rely on a make rule to execute
15007 # `config.status --recheck' to rerun these tests and create the
15008 # libtool script then.
15009 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15010 if test -f "$ltmain_in"; then
15011 test -f Makefile && make "$ltmain"
15017 ac_cpp='$CPP $CPPFLAGS'
15018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15025 # Check whether --with-tags or --without-tags was given.
15026 if test "${with_tags+set}" = set; then
15027 withval="$with_tags"
15028 tagnames="$withval"
15031 if test -f "$ltmain" && test -n "$tagnames"; then
15032 if test ! -f "${ofile}"; then
15033 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15034 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15037 if test -z "$LTCC"; then
15038 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15039 if test -z "$LTCC"; then
15040 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15041 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15044 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15048 # Extract list of available tagged configurations in $ofile.
15049 # Note that this assumes the entire list is on one line.
15050 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15052 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15053 for tagname in $tagnames; do
15055 # Check whether tagname contains only valid characters
15056 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15058 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15059 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15060 { (exit 1); exit 1; }; }
15064 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15066 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15067 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15068 { (exit 1); exit 1; }; }
15071 # Update the list of available tags.
15072 if test -n "$tagname"; then
15073 echo appending configuration tag "$tagname" to $ofile
15077 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15078 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15079 (test "X$CXX" != "Xg++"))) ; then
15081 ac_cpp='$CXXCPP $CPPFLAGS'
15082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15089 archive_cmds_need_lc_CXX=no
15090 allow_undefined_flag_CXX=
15091 always_export_symbols_CXX=no
15092 archive_expsym_cmds_CXX=
15093 export_dynamic_flag_spec_CXX=
15094 hardcode_direct_CXX=no
15095 hardcode_libdir_flag_spec_CXX=
15096 hardcode_libdir_flag_spec_ld_CXX=
15097 hardcode_libdir_separator_CXX=
15098 hardcode_minus_L_CXX=no
15099 hardcode_automatic_CXX=no
15101 module_expsym_cmds_CXX=
15102 link_all_deplibs_CXX=unknown
15103 old_archive_cmds_CXX=$old_archive_cmds
15104 no_undefined_flag_CXX=
15105 whole_archive_flag_spec_CXX=
15106 enable_shared_with_static_runtimes_CXX=no
15108 # Dependencies to place before and after the object being linked:
15109 predep_objects_CXX=
15110 postdep_objects_CXX=
15113 compiler_lib_search_path_CXX=
15115 # Source file extension for C++ test sources.
15118 # Object file extension for compiled C++ test sources.
15122 # Code to be used in simple compile tests
15123 lt_simple_compile_test_code="int some_variable = 0;\n"
15125 # Code to be used in simple link tests
15126 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15130 # If no C compiler was specified, use CC.
15133 # Allow CC to be a program name with arguments.
15137 # Allow CC to be a program name with arguments.
15142 lt_save_with_gnu_ld=$with_gnu_ld
15143 lt_save_path_LD=$lt_cv_path_LD
15144 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15145 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15147 unset lt_cv_prog_gnu_ld
15149 if test -n "${lt_cv_path_LDCXX+set}"; then
15150 lt_cv_path_LD=$lt_cv_path_LDCXX
15152 unset lt_cv_path_LD
15154 test -z "${LDCXX+set}" || LD=$LDCXX
15158 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15160 # We don't want -fno-exception wen compiling C++ code, so set the
15161 # no_builtin_flag separately
15162 if test "$GXX" = yes; then
15163 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15165 lt_prog_compiler_no_builtin_flag_CXX=
15168 if test "$GXX" = yes; then
15169 # Set up default GNU C++ configuration
15172 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15173 if test "${with_gnu_ld+set}" = set; then
15174 withval="$with_gnu_ld"
15175 test "$withval" = no || with_gnu_ld=yes
15180 if test "$GCC" = yes; then
15181 # Check if gcc -print-prog-name=ld gives a path.
15182 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15183 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15186 # gcc leaves a trailing carriage return which upsets mingw
15187 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15189 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15192 # Accept absolute paths.
15194 re_direlt='/[^/][^/]*/\.\./'
15195 # Canonicalize the pathname of ld
15196 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15197 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15198 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15200 test -z "$LD" && LD="$ac_prog"
15203 # If it fails, then pretend we aren't using GCC.
15207 # If it is relative, then search for the first ld in PATH.
15208 with_gnu_ld=unknown
15211 elif test "$with_gnu_ld" = yes; then
15212 echo "$as_me:$LINENO: checking for GNU ld" >&5
15213 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15215 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15216 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15218 if test "${lt_cv_path_LD+set}" = set; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15221 if test -z "$LD"; then
15222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15223 for ac_dir in $PATH; do
15225 test -z "$ac_dir" && ac_dir=.
15226 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15227 lt_cv_path_LD="$ac_dir/$ac_prog"
15228 # Check to see if the program is GNU ld. I'd rather use --version,
15229 # but apparently some GNU ld's only accept -v.
15230 # Break only if it was the GNU/non-GNU ld that we prefer.
15231 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15232 *GNU* | *'with BFD'*)
15233 test "$with_gnu_ld" != no && break
15236 test "$with_gnu_ld" != yes && break
15243 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15247 LD="$lt_cv_path_LD"
15248 if test -n "$LD"; then
15249 echo "$as_me:$LINENO: result: $LD" >&5
15250 echo "${ECHO_T}$LD" >&6
15252 echo "$as_me:$LINENO: result: no" >&5
15253 echo "${ECHO_T}no" >&6
15255 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15256 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15257 { (exit 1); exit 1; }; }
15258 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15259 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15260 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15263 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15264 case `$LD -v 2>&1 </dev/null` in
15265 *GNU* | *'with BFD'*)
15266 lt_cv_prog_gnu_ld=yes
15269 lt_cv_prog_gnu_ld=no
15273 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15274 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15275 with_gnu_ld=$lt_cv_prog_gnu_ld
15279 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15280 # archiving commands below assume that GNU ld is being used.
15281 if test "$with_gnu_ld" = yes; then
15282 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283 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'
15285 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15288 # If archive_cmds runs LD, not CC, wlarc should be empty
15289 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15290 # investigate it a little bit more. (MM)
15293 # ancient GNU ld didn't support --whole-archive et. al.
15294 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15295 grep 'no-whole-archive' > /dev/null; then
15296 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15298 whole_archive_flag_spec_CXX=
15304 # A generic and very simple default shared library creation
15305 # command for GNU C++ for the case where it uses the native
15306 # linker, instead of GNU ld. If possible, this setting should
15307 # overridden to take advantage of the native linker features on
15308 # the platform it is being used on.
15309 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15312 # Commands to make compiler produce verbose output that lists
15313 # what "hidden" libraries, object files and flags are used when
15314 # linking a shared library.
15315 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15323 # PORTME: fill in a description of your system's C++ link characteristics
15324 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15325 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15329 # FIXME: insert proper C++ library support
15333 if test "$host_cpu" = ia64; then
15334 # On IA64, the linker does run time linking by default, so we don't
15335 # have to do anything special.
15336 aix_use_runtimelinking=no
15337 exp_sym_flag='-Bexport'
15340 aix_use_runtimelinking=no
15342 # Test if we are trying to use run time linking or normal
15343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15344 # need to do runtime linking.
15345 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15346 for ld_flag in $LDFLAGS; do
15349 aix_use_runtimelinking=yes
15356 exp_sym_flag='-bexport'
15357 no_entry_flag='-bnoentry'
15360 # When large executables or shared objects are built, AIX ld can
15361 # have problems creating the table of contents. If linking a library
15362 # or program results in "error TOC overflow" add -mminimal-toc to
15363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15366 archive_cmds_CXX=''
15367 hardcode_direct_CXX=yes
15368 hardcode_libdir_separator_CXX=':'
15369 link_all_deplibs_CXX=yes
15371 if test "$GXX" = yes; then
15372 case $host_os in aix4.012|aix4.012.*)
15373 # We only want to do this on AIX 4.2 and lower, the check
15374 # below for broken collect2 doesn't work under 4.3+
15375 collect2name=`${CC} -print-prog-name=collect2`
15376 if test -f "$collect2name" && \
15377 strings "$collect2name" | grep resolve_lib_name >/dev/null
15379 # We have reworked collect2
15380 hardcode_direct_CXX=yes
15382 # We have old collect2
15383 hardcode_direct_CXX=unsupported
15384 # It fails to find uninstalled libraries when the uninstalled
15385 # path is not listed in the libpath. Setting hardcode_minus_L
15386 # to unsupported forces relinking
15387 hardcode_minus_L_CXX=yes
15388 hardcode_libdir_flag_spec_CXX='-L$libdir'
15389 hardcode_libdir_separator_CXX=
15392 shared_flag='-shared'
15395 if test "$host_cpu" = ia64; then
15396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15397 # chokes on -Wl,-G. The following line is correct:
15400 if test "$aix_use_runtimelinking" = yes; then
15401 shared_flag='${wl}-G'
15403 shared_flag='${wl}-bM:SRE'
15408 # It seems that -bexpall does not export symbols beginning with
15409 # underscore (_), so it is better to generate a list of symbols to export.
15410 always_export_symbols_CXX=yes
15411 if test "$aix_use_runtimelinking" = yes; then
15412 # Warning - without using the other runtime loading flags (-brtl),
15413 # -berok will link without error, but may produce a broken library.
15414 allow_undefined_flag_CXX='-berok'
15415 # Determine the default libpath from the value encoded in an empty executable.
15416 cat >conftest.$ac_ext <<_ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15431 rm -f conftest.$ac_objext conftest$ac_exeext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433 (eval $ac_link) 2>conftest.er1
15435 grep -v '^ *+' conftest.er1 >conftest.err
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try='test -z "$ac_cxx_werror_flag"
15441 || test ! -s conftest.err'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; } &&
15447 { ac_try='test -s conftest$ac_exeext'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15454 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15456 # Check for a 64-bit object if we didn't find anything.
15457 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; }
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15464 rm -f conftest.err conftest.$ac_objext \
15465 conftest$ac_exeext conftest.$ac_ext
15466 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15468 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15470 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"
15472 if test "$host_cpu" = ia64; then
15473 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15474 allow_undefined_flag_CXX="-z nodefs"
15475 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"
15477 # Determine the default libpath from the value encoded in an empty executable.
15478 cat >conftest.$ac_ext <<_ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15495 (eval $ac_link) 2>conftest.er1
15497 grep -v '^ *+' conftest.er1 >conftest.err
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try='test -z "$ac_cxx_werror_flag"
15503 || test ! -s conftest.err'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15518 # Check for a 64-bit object if we didn't find anything.
15519 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; }
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15526 rm -f conftest.err conftest.$ac_objext \
15527 conftest$ac_exeext conftest.$ac_ext
15528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15530 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15531 # Warning - without using the other run time loading flags,
15532 # -berok will link without error, but may produce a broken library.
15533 no_undefined_flag_CXX=' ${wl}-bernotok'
15534 allow_undefined_flag_CXX=' ${wl}-berok'
15535 # -bexpall does not export symbols beginning with underscore (_)
15536 always_export_symbols_CXX=yes
15537 # Exported symbols can be pulled into shared objects from archives
15538 whole_archive_flag_spec_CXX=' '
15539 archive_cmds_need_lc_CXX=yes
15540 # This is similar to how AIX traditionally builds it's shared libraries.
15541 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'
15546 case $cc_basename in
15548 # FIXME: insert proper C++ library support
15555 cygwin* | mingw* | pw32*)
15556 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15557 # as there is no search path for DLLs.
15558 hardcode_libdir_flag_spec_CXX='-L$libdir'
15559 allow_undefined_flag_CXX=unsupported
15560 always_export_symbols_CXX=no
15561 enable_shared_with_static_runtimes_CXX=yes
15563 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15564 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'
15565 # If the export-symbols file already is a .def file (1st line
15566 # is EXPORTS), use it as is; otherwise, prepend...
15567 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15568 cp $export_symbols $output_objdir/$soname.def;
15570 echo EXPORTS > $output_objdir/$soname.def;
15571 cat $export_symbols >> $output_objdir/$soname.def;
15573 $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'
15578 darwin* | rhapsody*)
15580 rhapsody* | darwin1.[012])
15581 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15584 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15585 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15587 case ${MACOSX_DEPLOYMENT_TARGET} in
15589 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15592 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15598 archive_cmds_need_lc_CXX=no
15599 hardcode_direct_CXX=no
15600 hardcode_automatic_CXX=yes
15601 hardcode_shlibpath_var_CXX=unsupported
15602 whole_archive_flag_spec_CXX=''
15603 link_all_deplibs_CXX=yes
15605 if test "$GXX" = yes ; then
15606 lt_int_apple_cc_single_mod=no
15607 output_verbose_link_cmd='echo'
15608 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15609 lt_int_apple_cc_single_mod=yes
15611 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15612 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15614 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'
15616 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15617 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15618 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15619 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}'
15621 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}'
15623 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}'
15625 case "$cc_basename" in
15627 output_verbose_link_cmd='echo'
15628 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'
15629 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15630 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15631 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}'
15632 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}'
15642 case $cc_basename in
15644 # FIXME: insert proper C++ library support
15648 # Green Hills C++ Compiler
15649 # FIXME: insert proper C++ library support
15653 # FIXME: insert proper C++ library support
15659 # C++ shared libraries reported to be fairly broken before switch to ELF
15663 archive_cmds_need_lc_CXX=no
15665 freebsd* | kfreebsd*-gnu)
15666 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15673 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15674 hardcode_libdir_separator_CXX=:
15675 export_dynamic_flag_spec_CXX='${wl}-E'
15676 hardcode_direct_CXX=yes
15677 hardcode_minus_L_CXX=yes # Not in the search PATH,
15678 # but as the default
15679 # location of the library.
15681 case $cc_basename in
15683 # FIXME: insert proper C++ library support
15687 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'
15688 # Commands to make compiler produce verbose output that lists
15689 # what "hidden" libraries, object files and flags are used when
15690 # linking a shared library.
15692 # There doesn't appear to be a way to prevent this compiler from
15693 # explicitly linking system object files so we need to strip them
15694 # from the output so that they don't get included in the library
15696 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'
15699 if test "$GXX" = yes; then
15700 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'
15702 # FIXME: insert proper C++ library support
15709 if test $with_gnu_ld = no; then
15710 case "$host_cpu" in
15712 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15713 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15714 hardcode_libdir_separator_CXX=:
15717 hardcode_libdir_flag_spec_CXX='-L$libdir'
15720 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15721 hardcode_libdir_separator_CXX=:
15722 export_dynamic_flag_spec_CXX='${wl}-E'
15726 case "$host_cpu" in
15728 hardcode_direct_CXX=no
15729 hardcode_shlibpath_var_CXX=no
15732 hardcode_direct_CXX=no
15733 hardcode_shlibpath_var_CXX=no
15734 hardcode_minus_L_CXX=yes # Not in the search PATH,
15735 # but as the default
15736 # location of the library.
15739 hardcode_direct_CXX=yes
15740 hardcode_minus_L_CXX=yes # Not in the search PATH,
15741 # but as the default
15742 # location of the library.
15746 case $cc_basename in
15748 # FIXME: insert proper C++ library support
15752 case "$host_cpu" in
15754 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15760 # Commands to make compiler produce verbose output that lists
15761 # what "hidden" libraries, object files and flags are used when
15762 # linking a shared library.
15764 # There doesn't appear to be a way to prevent this compiler from
15765 # explicitly linking system object files so we need to strip them
15766 # from the output so that they don't get included in the library
15768 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'
15771 if test "$GXX" = yes; then
15772 if test $with_gnu_ld = no; then
15773 case "$host_cpu" in
15775 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15778 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'
15783 # FIXME: insert proper C++ library support
15790 case $cc_basename in
15793 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'
15795 # Archives containing C++ object files must be created using
15796 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15797 # necessary to make sure instantiated templates are included
15799 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15802 if test "$GXX" = yes; then
15803 if test "$with_gnu_ld" = no; then
15804 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'
15806 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'
15809 link_all_deplibs_CXX=yes
15812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15813 hardcode_libdir_separator_CXX=:
15816 case $cc_basename in
15818 # Kuck and Associates, Inc. (KAI) C++ Compiler
15820 # KCC will only create a shared library if the output file
15821 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15822 # to its proper name (with version) after linking.
15823 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'
15824 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'
15825 # Commands to make compiler produce verbose output that lists
15826 # what "hidden" libraries, object files and flags are used when
15827 # linking a shared library.
15829 # There doesn't appear to be a way to prevent this compiler from
15830 # explicitly linking system object files so we need to strip them
15831 # from the output so that they don't get included in the library
15833 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'
15835 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15836 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15838 # Archives containing C++ object files must be created using
15839 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15840 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15845 # version 8.0 and above of icpc choke on multiply defined symbols
15846 # if we add $predep_objects and $postdep_objects, however 7.1 and
15847 # earlier do not add the objects themselves.
15848 case `$CC -V 2>&1` in
15850 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15851 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'
15853 *) # Version 8.0 or newer
15854 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15855 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15858 archive_cmds_need_lc_CXX=no
15859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15860 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15861 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15865 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15866 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'
15868 runpath_var=LD_RUN_PATH
15869 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15870 hardcode_libdir_separator_CXX=:
15872 # Commands to make compiler produce verbose output that lists
15873 # what "hidden" libraries, object files and flags are used when
15874 # linking a shared library.
15876 # There doesn't appear to be a way to prevent this compiler from
15877 # explicitly linking system object files so we need to strip them
15878 # from the output so that they don't get included in the library
15880 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'
15885 # FIXME: insert proper C++ library support
15889 # FIXME: insert proper C++ library support
15893 case $cc_basename in
15895 # FIXME: insert proper C++ library support
15899 # FIXME: insert proper C++ library support
15905 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15906 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15908 hardcode_libdir_flag_spec_CXX='-R$libdir'
15909 hardcode_direct_CXX=yes
15910 hardcode_shlibpath_var_CXX=no
15912 # Workaround some broken pre-1.5 toolchains
15913 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15916 # C++ shared libraries are fairly broken
15920 hardcode_direct_CXX=yes
15921 hardcode_shlibpath_var_CXX=no
15922 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15923 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15925 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15926 export_dynamic_flag_spec_CXX='${wl}-E'
15927 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15929 output_verbose_link_cmd='echo'
15932 case $cc_basename in
15934 # Kuck and Associates, Inc. (KAI) C++ Compiler
15936 # KCC will only create a shared library if the output file
15937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15938 # to its proper name (with version) after linking.
15939 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'
15941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15942 hardcode_libdir_separator_CXX=:
15944 # Archives containing C++ object files must be created using
15945 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15946 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15950 # Rational C++ 2.4.1
15951 # FIXME: insert proper C++ library support
15955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15956 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'
15958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15959 hardcode_libdir_separator_CXX=:
15961 # Commands to make compiler produce verbose output that lists
15962 # what "hidden" libraries, object files and flags are used when
15963 # linking a shared library.
15965 # There doesn't appear to be a way to prevent this compiler from
15966 # explicitly linking system object files so we need to strip them
15967 # from the output so that they don't get included in the library
15969 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'
15972 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15973 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15974 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'
15976 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15977 hardcode_libdir_separator_CXX=:
15979 # Commands to make compiler produce verbose output that lists
15980 # what "hidden" libraries, object files and flags are used when
15981 # linking a shared library.
15982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15985 # FIXME: insert proper C++ library support
15992 case $cc_basename in
15994 # Kuck and Associates, Inc. (KAI) C++ Compiler
15996 # KCC will only create a shared library if the output file
15997 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15998 # to its proper name (with version) after linking.
15999 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'
16001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16002 hardcode_libdir_separator_CXX=:
16004 # Archives containing C++ object files must be created using
16005 # the KAI C++ compiler.
16006 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16009 # Rational C++ 2.4.1
16010 # FIXME: insert proper C++ library support
16014 allow_undefined_flag_CXX=' -expect_unresolved \*'
16015 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'
16016 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16017 echo "-hidden">> $lib.exp~
16018 $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~
16021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16022 hardcode_libdir_separator_CXX=:
16024 # Commands to make compiler produce verbose output that lists
16025 # what "hidden" libraries, object files and flags are used when
16026 # linking a shared library.
16028 # There doesn't appear to be a way to prevent this compiler from
16029 # explicitly linking system object files so we need to strip them
16030 # from the output so that they don't get included in the library
16032 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'
16035 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16036 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16037 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'
16039 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16040 hardcode_libdir_separator_CXX=:
16042 # Commands to make compiler produce verbose output that lists
16043 # what "hidden" libraries, object files and flags are used when
16044 # linking a shared library.
16045 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16048 # FIXME: insert proper C++ library support
16055 # FIXME: insert proper C++ library support
16059 archive_cmds_need_lc_CXX=no
16060 case $cc_basename in
16062 # FIXME: insert proper C++ library support
16066 # FIXME: insert proper C++ library support
16072 case $cc_basename in
16075 # FIXME: insert proper C++ library support
16080 # FIXME: insert proper C++ library support
16084 # FIXME: insert proper C++ library support
16090 case $cc_basename in
16092 # Sun C++ 4.2, 5.x and Centerline C++
16093 no_undefined_flag_CXX=' -zdefs'
16094 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16095 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16096 $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'
16098 hardcode_libdir_flag_spec_CXX='-R$libdir'
16099 hardcode_shlibpath_var_CXX=no
16101 solaris2.0-5 | solaris2.0-5.*) ;;
16103 # The C++ compiler is used as linker so we must use $wl
16104 # flag to pass the commands to the underlying system
16106 # Supported since Solaris 2.6 (maybe 2.5.1?)
16107 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16110 link_all_deplibs_CXX=yes
16112 # Commands to make compiler produce verbose output that lists
16113 # what "hidden" libraries, object files and flags are used when
16114 # linking a shared library.
16116 # There doesn't appear to be a way to prevent this compiler from
16117 # explicitly linking system object files so we need to strip them
16118 # from the output so that they don't get included in the library
16120 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'
16122 # Archives containing C++ object files must be created using
16123 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16124 # necessary to make sure instantiated templates are included
16126 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16129 # Green Hills C++ Compiler
16130 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16132 # The C++ compiler must be used to create the archive.
16133 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16136 # GNU C++ compiler with Solaris linker
16137 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16138 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16139 if $CC --version | grep -v '^2\.7' > /dev/null; then
16140 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16141 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16142 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16144 # Commands to make compiler produce verbose output that lists
16145 # what "hidden" libraries, object files and flags are used when
16146 # linking a shared library.
16147 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16149 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16151 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16152 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16153 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16155 # Commands to make compiler produce verbose output that lists
16156 # what "hidden" libraries, object files and flags are used when
16157 # linking a shared library.
16158 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16161 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16166 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16167 archive_cmds_need_lc_CXX=no
16170 case $cc_basename in
16172 # NonStop-UX NCC 3.20
16173 # FIXME: insert proper C++ library support
16177 # FIXME: insert proper C++ library support
16183 # FIXME: insert proper C++ library support
16187 # FIXME: insert proper C++ library support
16191 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16192 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16193 test "$ld_shlibs_CXX" = no && can_build_shared=no
16199 cat > conftest.$ac_ext <<EOF
16203 Foo (void) { a = 0; }
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; then
16214 # Parse the compiler output and extract the necessary
16215 # objects, libraries and library flags.
16217 # Sentinel used to keep track of whether or not we are before
16218 # the conftest object file.
16219 pre_test_object_deps_done=no
16221 # The `*' in the case matches for architectures that use `case' in
16222 # $output_verbose_cmd can trigger glob expansion during the loop
16223 # eval without this substitution.
16224 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16226 for p in `eval $output_verbose_link_cmd`; do
16230 # Some compilers place space between "-{L,R}" and the path.
16231 # Remove the space.
16232 if test $p = "-L" \
16233 || test $p = "-R"; then
16240 if test "$pre_test_object_deps_done" = no; then
16243 # Internal compiler library paths should come after those
16244 # provided the user. The postdeps already come after the
16245 # user supplied libs so there is no need to process them.
16246 if test -z "$compiler_lib_search_path_CXX"; then
16247 compiler_lib_search_path_CXX="${prev}${p}"
16249 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16252 # The "-l" case would never come before the object being
16253 # linked, so don't bother handling this case.
16256 if test -z "$postdeps_CXX"; then
16257 postdeps_CXX="${prev}${p}"
16259 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16265 # This assumes that the test object file only shows up
16266 # once in the compiler output.
16267 if test "$p" = "conftest.$objext"; then
16268 pre_test_object_deps_done=yes
16272 if test "$pre_test_object_deps_done" = no; then
16273 if test -z "$predep_objects_CXX"; then
16274 predep_objects_CXX="$p"
16276 predep_objects_CXX="$predep_objects_CXX $p"
16279 if test -z "$postdep_objects_CXX"; then
16280 postdep_objects_CXX="$p"
16282 postdep_objects_CXX="$postdep_objects_CXX $p"
16287 *) ;; # Ignore the rest.
16295 echo "libtool.m4: error: problem compiling CXX test program"
16298 $rm -f confest.$objext
16300 case " $postdeps_CXX " in
16301 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16304 lt_prog_compiler_wl_CXX=
16305 lt_prog_compiler_pic_CXX=
16306 lt_prog_compiler_static_CXX=
16308 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16309 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16311 # C++ specific cases for pic, static, wl, etc.
16312 if test "$GXX" = yes; then
16313 lt_prog_compiler_wl_CXX='-Wl,'
16314 lt_prog_compiler_static_CXX='-static'
16318 # All AIX code is PIC.
16319 if test "$host_cpu" = ia64; then
16320 # AIX 5 now supports IA64 processor
16321 lt_prog_compiler_static_CXX='-Bstatic'
16325 # FIXME: we need at least 68020 code to build shared libraries, but
16326 # adding the `-m68020' flag to GCC prevents building anything better,
16328 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16330 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16331 # PIC is the default for these OSes.
16333 mingw* | os2* | pw32*)
16334 # This hack is so that the source file can tell whether it is being
16335 # built for inclusion in a dll (and should export symbols for example).
16336 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16338 darwin* | rhapsody*)
16339 # PIC is the default on this platform
16340 # Common symbols not allowed in MH_DYLIB files
16341 lt_prog_compiler_pic_CXX='-fno-common'
16344 # DJGPP does not support shared libraries at all
16345 lt_prog_compiler_pic_CXX=
16348 if test -d /usr/nec; then
16349 lt_prog_compiler_pic_CXX=-Kconform_pic
16353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16354 # not for PA HP-UX.
16355 case "$host_cpu" in
16359 lt_prog_compiler_pic_CXX='-fPIC'
16364 lt_prog_compiler_pic_CXX='-fPIC'
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'
16375 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16379 case $cc_basename in
16381 # Green Hills C++ Compiler
16382 # _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"
16387 # PIC is the default on this platform
16388 # Common symbols not allowed in MH_DYLIB files
16389 case "$cc_basename" in
16391 lt_prog_compiler_pic_CXX='-qnocommon'
16392 lt_prog_compiler_wl_CXX='-Wl,'
16397 case $cc_basename in
16399 lt_prog_compiler_pic_CXX='-KPIC'
16402 # Green Hills C++ Compiler
16403 lt_prog_compiler_pic_CXX='-pic'
16409 freebsd* | kfreebsd*-gnu)
16410 # FreeBSD uses GNU C++
16412 hpux9* | hpux10* | hpux11*)
16413 case $cc_basename in
16415 lt_prog_compiler_wl_CXX='-Wl,'
16416 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16417 if test "$host_cpu" != ia64; then
16418 lt_prog_compiler_pic_CXX='+Z'
16422 lt_prog_compiler_wl_CXX='-Wl,'
16423 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16424 case "$host_cpu" in
16429 lt_prog_compiler_pic_CXX='+Z'
16437 irix5* | irix6* | nonstopux*)
16438 case $cc_basename in
16440 lt_prog_compiler_wl_CXX='-Wl,'
16441 lt_prog_compiler_static_CXX='-non_shared'
16442 # CC pic flag -KPIC is the default.
16449 case $cc_basename in
16452 lt_prog_compiler_wl_CXX='--backend -Wl,'
16453 lt_prog_compiler_pic_CXX='-fPIC'
16457 lt_prog_compiler_wl_CXX='-Wl,'
16458 lt_prog_compiler_pic_CXX='-KPIC'
16459 lt_prog_compiler_static_CXX='-static'
16463 # Make sure the PIC flag is empty. It appears that all Alpha
16464 # Linux and Compaq Tru64 Unix objects are PIC.
16465 lt_prog_compiler_pic_CXX=
16466 lt_prog_compiler_static_CXX='-non_shared'
16477 case $cc_basename in
16479 lt_prog_compiler_pic_CXX='-W c,exportall'
16487 osf3* | osf4* | osf5*)
16488 case $cc_basename in
16490 lt_prog_compiler_wl_CXX='--backend -Wl,'
16493 # Rational C++ 2.4.1
16494 lt_prog_compiler_pic_CXX='-pic'
16497 # Digital/Compaq C++
16498 lt_prog_compiler_wl_CXX='-Wl,'
16499 # Make sure the PIC flag is empty. It appears that all Alpha
16500 # Linux and Compaq Tru64 Unix objects are PIC.
16501 lt_prog_compiler_pic_CXX=
16502 lt_prog_compiler_static_CXX='-non_shared'
16511 case $cc_basename in
16513 lt_prog_compiler_pic_CXX='-fPIC'
16520 case $cc_basename in
16522 # Sun C++ 4.2, 5.x and Centerline C++
16523 lt_prog_compiler_pic_CXX='-KPIC'
16524 lt_prog_compiler_static_CXX='-Bstatic'
16525 lt_prog_compiler_wl_CXX='-Qoption ld '
16528 # Green Hills C++ Compiler
16529 lt_prog_compiler_pic_CXX='-PIC'
16536 case $cc_basename in
16539 lt_prog_compiler_pic_CXX='-pic'
16540 lt_prog_compiler_static_CXX='-Bstatic'
16544 lt_prog_compiler_pic_CXX='-pic'
16551 case $cc_basename in
16553 # NonStop-UX NCC 3.20
16554 lt_prog_compiler_pic_CXX='-KPIC'
16565 lt_prog_compiler_can_build_shared_CXX=no
16570 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16571 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16574 # Check to make sure the PIC flag actually works.
16576 if test -n "$lt_prog_compiler_pic_CXX"; then
16578 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16579 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16580 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16583 lt_prog_compiler_pic_works_CXX=no
16584 ac_outfile=conftest.$ac_objext
16585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16586 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16587 # Insert the option either (1) after the last *FLAGS variable, or
16588 # (2) before a word containing "conftest.", or (3) at the end.
16589 # Note that $ac_compile itself does not contain backslashes and begins
16590 # with a dollar sign (not a hyphen), so the echo should work correctly.
16591 # The option is referenced via a variable to avoid confusing sed.
16592 lt_compile=`echo "$ac_compile" | $SED \
16593 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16595 -e 's:$: $lt_compiler_flag:'`
16596 (eval echo "\"\$as_me:16596: $lt_compile\"" >&5)
16597 (eval "$lt_compile" 2>conftest.err)
16599 cat conftest.err >&5
16600 echo "$as_me:16600: \$? = $ac_status" >&5
16601 if (exit $ac_status) && test -s "$ac_outfile"; then
16602 # The compiler can only warn and ignore the option if not recognized
16603 # So say no if there are warnings
16604 if test ! -s conftest.err; then
16605 lt_prog_compiler_pic_works_CXX=yes
16611 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16612 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16614 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16615 case $lt_prog_compiler_pic_CXX in
16617 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16620 lt_prog_compiler_pic_CXX=
16621 lt_prog_compiler_can_build_shared_CXX=no
16626 # For platforms which do not support PIC, -DPIC is meaningless:
16628 lt_prog_compiler_pic_CXX=
16631 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16635 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16636 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16637 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 lt_cv_prog_compiler_c_o_CXX=no
16641 $rm -r conftest 2>/dev/null
16645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16647 lt_compiler_flag="-o out/conftest2.$ac_objext"
16648 # Insert the option either (1) after the last *FLAGS variable, or
16649 # (2) before a word containing "conftest.", or (3) at the end.
16650 # Note that $ac_compile itself does not contain backslashes and begins
16651 # with a dollar sign (not a hyphen), so the echo should work correctly.
16652 lt_compile=`echo "$ac_compile" | $SED \
16653 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16655 -e 's:$: $lt_compiler_flag:'`
16656 (eval echo "\"\$as_me:16656: $lt_compile\"" >&5)
16657 (eval "$lt_compile" 2>out/conftest.err)
16659 cat out/conftest.err >&5
16660 echo "$as_me:16660: \$? = $ac_status" >&5
16661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16663 # The compiler can only warn and ignore the option if not recognized
16664 # So say no if there are warnings
16665 if test ! -s out/conftest.err; then
16666 lt_cv_prog_compiler_c_o_CXX=yes
16671 # SGI C++ compiler will create directory out/ii_files/ for
16672 # template instantiation
16673 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16674 $rm out/* && rmdir out
16680 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16681 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16684 hard_links="nottested"
16685 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16686 # do not overwrite the value of need_locks provided by the user
16687 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16688 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16693 ln conftest.a conftest.b 2>&5 || hard_links=no
16694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16695 echo "$as_me:$LINENO: result: $hard_links" >&5
16696 echo "${ECHO_T}$hard_links" >&6
16697 if test "$hard_links" = no; then
16698 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16699 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16706 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16707 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16709 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16712 # If we're using GNU nm, then we don't want the "-C" option.
16713 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16714 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16715 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'
16717 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'
16721 export_symbols_cmds_CXX="$ltdll_cmds"
16724 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16727 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16731 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16732 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16733 test "$ld_shlibs_CXX" = no && can_build_shared=no
16735 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16736 if test "$GCC" = yes; then
16737 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16741 # Do we need to explicitly link libc?
16743 case "x$archive_cmds_need_lc_CXX" in
16745 # Assume -lc should be added
16746 archive_cmds_need_lc_CXX=yes
16748 if test "$enable_shared" = yes && test "$GCC" = yes; then
16749 case $archive_cmds_CXX in
16751 # FIXME: we may have to deal with multi-command sequences.
16754 # Test whether the compiler implicitly links with -lc since on some
16755 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16756 # to ld, don't add -lc before -lgcc.
16757 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16758 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16760 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16763 (eval $ac_compile) 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } 2>conftest.err; then
16769 libobjs=conftest.$ac_objext
16771 wl=$lt_prog_compiler_wl_CXX
16777 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16778 allow_undefined_flag_CXX=
16779 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16780 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }
16785 archive_cmds_need_lc_CXX=no
16787 archive_cmds_need_lc_CXX=yes
16789 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16791 cat conftest.err 1>&5
16794 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16795 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16802 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16803 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16804 library_names_spec=
16805 libname_spec='lib$name'
16809 postuninstall_cmds=
16813 shlibpath_overrides_runpath=unknown
16815 dynamic_linker="$host_os ld.so"
16816 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16817 if test "$GCC" = yes; then
16818 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16819 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16820 # if the path contains ";" then we assume it to be the separator
16821 # otherwise default to the standard path separator (i.e. ":") - it is
16822 # assumed that no part of a normal pathname contains ";" but that should
16823 # okay in the real world where ";" in dirpaths is itself problematic.
16824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16831 need_lib_prefix=unknown
16832 hardcode_into_libs=no
16834 # when you set need_version to no, make sure it does not cause -set_version
16835 # flags to be left without arguments
16836 need_version=unknown
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16842 shlibpath_var=LIBPATH
16844 # AIX 3 has no versioning support, so we append a major version to the name.
16845 soname_spec='${libname}${release}${shared_ext}$major'
16852 hardcode_into_libs=yes
16853 if test "$host_cpu" = ia64; then
16854 # AIX 5 supports IA64
16855 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16856 shlibpath_var=LD_LIBRARY_PATH
16858 # With GCC up to 2.95.x, collect2 would create an import file
16859 # for dependence libraries. The import file would start with
16860 # the line `#! .'. This would cause the generated library to
16861 # depend on `.', always an invalid library. This was fixed in
16862 # development snapshots of GCC prior to 3.0.
16864 aix4 | aix4.[01] | aix4.[01].*)
16865 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16867 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16870 can_build_shared=no
16874 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16875 # soname into executable. Probably we can add versioning support to
16876 # collect2, so additional links can be useful in future.
16877 if test "$aix_use_runtimelinking" = yes; then
16878 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16879 # instead of lib<name>.a to let people know that these are not
16880 # typical AIX shared libraries.
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883 # We preserve .a as extension for shared libraries through AIX4.2
16884 # and later when we are not doing run time linking.
16885 library_names_spec='${libname}${release}.a $libname.a'
16886 soname_spec='${libname}${release}${shared_ext}$major'
16888 shlibpath_var=LIBPATH
16893 library_names_spec='$libname.ixlibrary $libname.a'
16894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16895 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'
16899 library_names_spec='${libname}${shared_ext}'
16900 dynamic_linker="$host_os ld.so"
16901 shlibpath_var=LIBRARY_PATH
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16912 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16913 # the default ld.so.conf also contains /usr/contrib/lib and
16914 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16915 # libtool to hard-code these into programs
16918 cygwin* | mingw* | pw32*)
16919 version_type=windows
16924 case $GCC,$host_os in
16925 yes,cygwin* | yes,mingw* | yes,pw32*)
16926 library_names_spec='$libname.dll.a'
16927 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16928 postinstall_cmds='base_file=`basename \${file}`~
16929 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16930 dldir=$destdir/`dirname \$dlpath`~
16931 test -d \$dldir || mkdir -p \$dldir~
16932 $install_prog $dir/$dlname \$dldir/$dlname'
16933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16934 dlpath=$dir/\$dldll~
16936 shlibpath_overrides_runpath=yes
16940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16942 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16945 # MinGW DLLs use traditional 'lib' prefix
16946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16948 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16949 # It is most probably a Windows format PATH printed by
16950 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16951 # path with ; separators, and with drive letters. We can handle the
16952 # drive letters (cygwin fileutils understands them), so leave them,
16953 # especially as we might pass files found there to a mingw objdump,
16954 # which wouldn't understand a cygwinified path. Ahh.
16955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16961 # pw32 DLLs use 'pw' prefix rather than 'lib'
16962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16968 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16971 dynamic_linker='Win32 ld.exe'
16972 # FIXME: first we should search . and the directory the executable is in
16976 darwin* | rhapsody*)
16977 dynamic_linker="$host_os dyld"
16978 version_type=darwin
16981 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16982 soname_spec='${libname}${release}${major}$shared_ext'
16983 shlibpath_overrides_runpath=yes
16984 shlibpath_var=DYLD_LIBRARY_PATH
16985 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16986 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16987 if test "$GCC" = yes; then
16988 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"`
16990 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17000 soname_spec='${libname}${release}${shared_ext}$major'
17001 shlibpath_var=LD_LIBRARY_PATH
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17013 soname_spec='${libname}${release}${shared_ext}$major'
17014 shlibpath_var=LD_LIBRARY_PATH
17015 shlibpath_overrides_runpath=no
17016 hardcode_into_libs=yes
17017 dynamic_linker='GNU ld.so'
17021 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17022 version_type=freebsd-$objformat
17023 case $version_type in
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17034 shlibpath_var=LD_LIBRARY_PATH
17037 shlibpath_overrides_runpath=yes
17039 freebsd3.01* | freebsdelf3.01*)
17040 shlibpath_overrides_runpath=yes
17041 hardcode_into_libs=yes
17044 shlibpath_overrides_runpath=no
17045 hardcode_into_libs=yes
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 shlibpath_var=LD_LIBRARY_PATH
17057 hardcode_into_libs=yes
17060 hpux9* | hpux10* | hpux11*)
17061 # Give a soname corresponding to the major version so that dld.sl refuses to
17062 # link against other versions.
17066 case "$host_cpu" in
17069 hardcode_into_libs=yes
17070 dynamic_linker="$host_os dld.so"
17071 shlibpath_var=LD_LIBRARY_PATH
17072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17074 soname_spec='${libname}${release}${shared_ext}$major'
17075 if test "X$HPUX_IA64_MODE" = X32; then
17076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17078 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17084 hardcode_into_libs=yes
17085 dynamic_linker="$host_os dld.sl"
17086 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089 soname_spec='${libname}${release}${shared_ext}$major'
17090 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17095 dynamic_linker="$host_os dld.sl"
17096 shlibpath_var=SHLIB_PATH
17097 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 soname_spec='${libname}${release}${shared_ext}$major'
17102 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17103 postinstall_cmds='chmod 555 $lib'
17106 irix5* | irix6* | nonstopux*)
17108 nonstopux*) version_type=nonstopux ;;
17110 if test "$lt_cv_prog_gnu_ld" = yes; then
17118 soname_spec='${libname}${release}${shared_ext}$major'
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17121 irix5* | nonstopux*)
17122 libsuff= shlibsuff=
17125 case $LD in # libtool.m4 will add one of these switches to LD
17126 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17127 libsuff= shlibsuff= libmagic=32-bit;;
17128 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17129 libsuff=32 shlibsuff=N32 libmagic=N32;;
17130 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17131 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17132 *) libsuff= shlibsuff= libmagic=never-match;;
17136 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17137 shlibpath_overrides_runpath=no
17138 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17139 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17140 hardcode_into_libs=yes
17143 # No shared lib support for Linux oldld, aout, or coff.
17144 linux*oldld* | linux*aout* | linux*coff*)
17148 # This must be Linux ELF.
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17156 shlibpath_var=LD_LIBRARY_PATH
17157 shlibpath_overrides_runpath=no
17158 # This implies no fast_install, which is unacceptable.
17159 # Some rework will be needed to allow for fast_install
17160 # before this can be enabled.
17161 hardcode_into_libs=yes
17163 # Append ld.so.conf contents to the search path
17164 if test -f /etc/ld.so.conf; then
17165 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17169 # We used to test for /lib/ld.so.1 and disable shared libraries on
17170 # powerpc, because MkLinux only supported shared libraries with the
17171 # GNU dynamic linker. Since this was broken with cross compilers,
17172 # most powerpc-linux boxes support dynamic linking these days and
17173 # people can always --disable-shared, the test was removed, and we
17174 # assume the GNU/Linux dynamic linker is in use.
17175 dynamic_linker='GNU/Linux ld.so'
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 shlibpath_overrides_runpath=no
17186 hardcode_into_libs=yes
17187 dynamic_linker='GNU ld.so'
17194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197 dynamic_linker='NetBSD (a.out) ld.so'
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 dynamic_linker='NetBSD ld.elf_so'
17203 shlibpath_var=LD_LIBRARY_PATH
17204 shlibpath_overrides_runpath=yes
17205 hardcode_into_libs=yes
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=yes
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=yes
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17231 shlibpath_var=LD_LIBRARY_PATH
17232 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17234 openbsd2.[89] | openbsd2.[89].*)
17235 shlibpath_overrides_runpath=no
17238 shlibpath_overrides_runpath=yes
17242 shlibpath_overrides_runpath=yes
17247 libname_spec='$name'
17250 library_names_spec='$libname${shared_ext} $libname.a'
17251 dynamic_linker='OS/2 ld.exe'
17252 shlibpath_var=LIBPATH
17255 osf3* | osf4* | osf5*)
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261 shlibpath_var=LD_LIBRARY_PATH
17262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 shlibpath_var=LD_LIBRARY_PATH
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 shlibpath_overrides_runpath=yes
17281 hardcode_into_libs=yes
17282 # ldd complains unless libraries are executable
17283 postinstall_cmds='chmod +x $lib'
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17289 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=yes
17292 if test "$with_gnu_ld" = yes; then
17298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 case $host_vendor in
17305 shlibpath_overrides_runpath=no
17307 export_dynamic_flag_spec='${wl}-Blargedynsym'
17308 runpath_var=LD_RUN_PATH
17316 shlibpath_overrides_runpath=no
17317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17323 if test -d /usr/nec ;then
17325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17326 soname_spec='$libname${shared_ext}.$major'
17327 shlibpath_var=LD_LIBRARY_PATH
17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334 soname_spec='${libname}${release}${shared_ext}$major'
17335 shlibpath_var=LD_LIBRARY_PATH
17342 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17343 echo "${ECHO_T}$dynamic_linker" >&6
17344 test "$dynamic_linker" = no && can_build_shared=no
17346 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17347 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17348 hardcode_action_CXX=
17349 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17350 test -n "$runpath_var_CXX" || \
17351 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17353 # We can hardcode non-existant directories.
17354 if test "$hardcode_direct_CXX" != no &&
17355 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17356 # have to relink, otherwise we might link with an installed library
17357 # when we should be linking with a yet-to-be-installed one
17358 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17359 test "$hardcode_minus_L_CXX" != no; then
17360 # Linking always hardcodes the temporary library directory.
17361 hardcode_action_CXX=relink
17363 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17364 hardcode_action_CXX=immediate
17367 # We cannot hardcode anything, or else we can only hardcode existing
17369 hardcode_action_CXX=unsupported
17371 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17372 echo "${ECHO_T}$hardcode_action_CXX" >&6
17374 if test "$hardcode_action_CXX" = relink; then
17375 # Fast installation is not supported
17376 enable_fast_install=no
17377 elif test "$shlibpath_overrides_runpath" = yes ||
17378 test "$enable_shared" = no; then
17379 # Fast installation is not necessary
17380 enable_fast_install=needless
17385 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17386 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17387 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17390 echo "$as_me:$LINENO: result: yes" >&5
17391 echo "${ECHO_T}yes" >&6
17393 # FIXME - insert some real tests, host_os isn't really good enough
17396 if test -n "$STRIP" ; then
17397 striplib="$STRIP -x"
17398 echo "$as_me:$LINENO: result: yes" >&5
17399 echo "${ECHO_T}yes" >&6
17401 echo "$as_me:$LINENO: result: no" >&5
17402 echo "${ECHO_T}no" >&6
17406 echo "$as_me:$LINENO: result: no" >&5
17407 echo "${ECHO_T}no" >&6
17412 if test "x$enable_dlopen" != xyes; then
17413 enable_dlopen=unknown
17414 enable_dlopen_self=unknown
17415 enable_dlopen_self_static=unknown
17422 lt_cv_dlopen="load_add_on"
17424 lt_cv_dlopen_self=yes
17428 lt_cv_dlopen="LoadLibrary"
17433 lt_cv_dlopen="dlopen"
17438 # if libdl is installed we need to link against it
17439 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17440 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17441 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17444 ac_check_lib_save_LIBS=$LIBS
17446 cat >conftest.$ac_ext <<_ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17453 /* Override any gcc2 internal prototype to avoid an error. */
17457 /* We use char because int might match the return type of a gcc2
17458 builtin and then its argument prototype would still apply. */
17468 rm -f conftest.$ac_objext conftest$ac_exeext
17469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470 (eval $ac_link) 2>conftest.er1
17472 grep -v '^ *+' conftest.er1 >conftest.err
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try='test -z "$ac_cxx_werror_flag"
17478 || test ! -s conftest.err'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest$ac_exeext'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 ac_cv_lib_dl_dlopen=yes
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17495 ac_cv_lib_dl_dlopen=no
17497 rm -f conftest.err conftest.$ac_objext \
17498 conftest$ac_exeext conftest.$ac_ext
17499 LIBS=$ac_check_lib_save_LIBS
17501 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17502 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17503 if test $ac_cv_lib_dl_dlopen = yes; then
17504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17507 lt_cv_dlopen="dyld"
17509 lt_cv_dlopen_self=yes
17516 echo "$as_me:$LINENO: checking for shl_load" >&5
17517 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17518 if test "${ac_cv_func_shl_load+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 cat >conftest.$ac_ext <<_ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17527 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17529 #define shl_load innocuous_shl_load
17531 /* System header to define __stub macros and hopefully few prototypes,
17532 which can conflict with char shl_load (); below.
17533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534 <limits.h> exists even on freestanding compilers. */
17537 # include <limits.h>
17539 # include <assert.h>
17544 /* Override any gcc2 internal prototype to avoid an error. */
17549 /* We use char because int might match the return type of a gcc2
17550 builtin and then its argument prototype would still apply. */
17552 /* The GNU C library defines this for functions which it implements
17553 to always fail with ENOSYS. Some functions are actually named
17554 something starting with __ and the normal name is an alias. */
17555 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17558 char (*f) () = shl_load;
17567 return f != shl_load;
17572 rm -f conftest.$ac_objext conftest$ac_exeext
17573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574 (eval $ac_link) 2>conftest.er1
17576 grep -v '^ *+' conftest.er1 >conftest.err
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
17581 { ac_try='test -z "$ac_cxx_werror_flag"
17582 || test ! -s conftest.err'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; } &&
17588 { ac_try='test -s conftest$ac_exeext'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17594 ac_cv_func_shl_load=yes
17596 echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17599 ac_cv_func_shl_load=no
17601 rm -f conftest.err conftest.$ac_objext \
17602 conftest$ac_exeext conftest.$ac_ext
17604 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17605 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17606 if test $ac_cv_func_shl_load = yes; then
17607 lt_cv_dlopen="shl_load"
17609 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17610 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17611 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 ac_check_lib_save_LIBS=$LIBS
17616 cat >conftest.$ac_ext <<_ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17623 /* Override any gcc2 internal prototype to avoid an error. */
17627 /* We use char because int might match the return type of a gcc2
17628 builtin and then its argument prototype would still apply. */
17638 rm -f conftest.$ac_objext conftest$ac_exeext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17640 (eval $ac_link) 2>conftest.er1
17642 grep -v '^ *+' conftest.er1 >conftest.err
17644 cat conftest.err >&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
17647 { ac_try='test -z "$ac_cxx_werror_flag"
17648 || test ! -s conftest.err'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; } &&
17654 { ac_try='test -s conftest$ac_exeext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 ac_cv_lib_dld_shl_load=yes
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 ac_cv_lib_dld_shl_load=no
17667 rm -f conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
17669 LIBS=$ac_check_lib_save_LIBS
17671 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17672 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17673 if test $ac_cv_lib_dld_shl_load = yes; then
17674 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17676 echo "$as_me:$LINENO: checking for dlopen" >&5
17677 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17678 if test "${ac_cv_func_dlopen+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17689 #define dlopen innocuous_dlopen
17691 /* System header to define __stub macros and hopefully few prototypes,
17692 which can conflict with char dlopen (); below.
17693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17694 <limits.h> exists even on freestanding compilers. */
17697 # include <limits.h>
17699 # include <assert.h>
17704 /* Override any gcc2 internal prototype to avoid an error. */
17709 /* We use char because int might match the return type of a gcc2
17710 builtin and then its argument prototype would still apply. */
17712 /* The GNU C library defines this for functions which it implements
17713 to always fail with ENOSYS. Some functions are actually named
17714 something starting with __ and the normal name is an alias. */
17715 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17718 char (*f) () = dlopen;
17727 return f != dlopen;
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734 (eval $ac_link) 2>conftest.er1
17736 grep -v '^ *+' conftest.er1 >conftest.err
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -z "$ac_cxx_werror_flag"
17742 || test ! -s conftest.err'
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest$ac_exeext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 ac_cv_func_dlopen=yes
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 ac_cv_func_dlopen=no
17761 rm -f conftest.err conftest.$ac_objext \
17762 conftest$ac_exeext conftest.$ac_ext
17764 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17765 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17766 if test $ac_cv_func_dlopen = yes; then
17767 lt_cv_dlopen="dlopen"
17769 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17774 ac_check_lib_save_LIBS=$LIBS
17776 cat >conftest.$ac_ext <<_ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17783 /* Override any gcc2 internal prototype to avoid an error. */
17787 /* We use char because int might match the return type of a gcc2
17788 builtin and then its argument prototype would still apply. */
17798 rm -f conftest.$ac_objext conftest$ac_exeext
17799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17800 (eval $ac_link) 2>conftest.er1
17802 grep -v '^ *+' conftest.er1 >conftest.err
17804 cat conftest.err >&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
17807 { ac_try='test -z "$ac_cxx_werror_flag"
17808 || test ! -s conftest.err'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest$ac_exeext'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820 ac_cv_lib_dl_dlopen=yes
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17825 ac_cv_lib_dl_dlopen=no
17827 rm -f conftest.err conftest.$ac_objext \
17828 conftest$ac_exeext conftest.$ac_ext
17829 LIBS=$ac_check_lib_save_LIBS
17831 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17832 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17833 if test $ac_cv_lib_dl_dlopen = yes; then
17834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17836 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17837 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17838 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17841 ac_check_lib_save_LIBS=$LIBS
17842 LIBS="-lsvld $LIBS"
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17850 /* Override any gcc2 internal prototype to avoid an error. */
17854 /* We use char because int might match the return type of a gcc2
17855 builtin and then its argument prototype would still apply. */
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>conftest.er1
17869 grep -v '^ *+' conftest.er1 >conftest.err
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_cxx_werror_flag"
17875 || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 ac_cv_lib_svld_dlopen=yes
17889 echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17892 ac_cv_lib_svld_dlopen=no
17894 rm -f conftest.err conftest.$ac_objext \
17895 conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17898 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17899 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17900 if test $ac_cv_lib_svld_dlopen = yes; then
17901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17903 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17904 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17905 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 ac_check_lib_save_LIBS=$LIBS
17910 cat >conftest.$ac_ext <<_ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17917 /* Override any gcc2 internal prototype to avoid an error. */
17921 /* We use char because int might match the return type of a gcc2
17922 builtin and then its argument prototype would still apply. */
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17934 (eval $ac_link) 2>conftest.er1
17936 grep -v '^ *+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -z "$ac_cxx_werror_flag"
17942 || test ! -s conftest.err'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest$ac_exeext'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_cv_lib_dld_dld_link=yes
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_cv_lib_dld_dld_link=no
17961 rm -f conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17965 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17966 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17967 if test $ac_cv_lib_dld_dld_link = yes; then
17968 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17989 if test "x$lt_cv_dlopen" != xno; then
17995 case $lt_cv_dlopen in
17997 save_CPPFLAGS="$CPPFLAGS"
17998 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18000 save_LDFLAGS="$LDFLAGS"
18001 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18004 LIBS="$lt_cv_dlopen_libs $LIBS"
18006 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18007 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18008 if test "${lt_cv_dlopen_self+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 if test "$cross_compiling" = yes; then :
18012 lt_cv_dlopen_self=cross
18014 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18015 lt_status=$lt_dlunknown
18016 cat > conftest.$ac_ext <<EOF
18017 #line 18017 "configure"
18018 #include "confdefs.h"
18027 # define LT_DLGLOBAL RTLD_GLOBAL
18030 # define LT_DLGLOBAL DL_GLOBAL
18032 # define LT_DLGLOBAL 0
18036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18037 find out it does not work in some platform. */
18038 #ifndef LT_DLLAZY_OR_NOW
18040 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18043 # define LT_DLLAZY_OR_NOW DL_LAZY
18046 # define LT_DLLAZY_OR_NOW RTLD_NOW
18049 # define LT_DLLAZY_OR_NOW DL_NOW
18051 # define LT_DLLAZY_OR_NOW 0
18059 extern "C" void exit (int);
18062 void fnord() { int i=42;}
18065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18066 int status = $lt_dlunknown;
18070 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18071 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18072 /* dlclose (self); */
18078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18079 (eval $ac_link) 2>&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18083 (./conftest; exit; ) 2>/dev/null
18085 case x$lt_status in
18086 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18087 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18088 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18091 # compilation failed
18092 lt_cv_dlopen_self=no
18099 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18100 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18102 if test "x$lt_cv_dlopen_self" = xyes; then
18103 LDFLAGS="$LDFLAGS $link_static_flag"
18104 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18105 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18106 if test "${lt_cv_dlopen_self_static+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 if test "$cross_compiling" = yes; then :
18110 lt_cv_dlopen_self_static=cross
18112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18113 lt_status=$lt_dlunknown
18114 cat > conftest.$ac_ext <<EOF
18115 #line 18115 "configure"
18116 #include "confdefs.h"
18125 # define LT_DLGLOBAL RTLD_GLOBAL
18128 # define LT_DLGLOBAL DL_GLOBAL
18130 # define LT_DLGLOBAL 0
18134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18135 find out it does not work in some platform. */
18136 #ifndef LT_DLLAZY_OR_NOW
18138 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18141 # define LT_DLLAZY_OR_NOW DL_LAZY
18144 # define LT_DLLAZY_OR_NOW RTLD_NOW
18147 # define LT_DLLAZY_OR_NOW DL_NOW
18149 # define LT_DLLAZY_OR_NOW 0
18157 extern "C" void exit (int);
18160 void fnord() { int i=42;}
18163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18164 int status = $lt_dlunknown;
18168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18169 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18170 /* dlclose (self); */
18176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18177 (eval $ac_link) 2>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18181 (./conftest; exit; ) 2>/dev/null
18183 case x$lt_status in
18184 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18185 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18186 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18189 # compilation failed
18190 lt_cv_dlopen_self_static=no
18197 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18198 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18201 CPPFLAGS="$save_CPPFLAGS"
18202 LDFLAGS="$save_LDFLAGS"
18207 case $lt_cv_dlopen_self in
18208 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18209 *) enable_dlopen_self=unknown ;;
18212 case $lt_cv_dlopen_self_static in
18213 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18214 *) enable_dlopen_self_static=unknown ;;
18219 # The else clause should only fire when bootstrapping the
18220 # libtool distribution, otherwise you forgot to ship ltmain.sh
18221 # with your package, and you will get complaints that there are
18222 # no rules to generate ltmain.sh.
18223 if test -f "$ltmain"; then
18224 # See if we are running on zsh, and set the options which allow our commands through
18225 # without removal of \ escapes.
18226 if test -n "${ZSH_VERSION+set}" ; then
18227 setopt NO_GLOB_SUBST
18229 # Now quote all the things that may contain metacharacters while being
18230 # careful not to overquote the AC_SUBSTed values. We take copies of the
18231 # variables and quote the copies for generation of the libtool script.
18232 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18234 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18235 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18236 deplibs_check_method reload_flag reload_cmds need_locks \
18237 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18238 lt_cv_sys_global_symbol_to_c_name_address \
18239 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18240 old_postinstall_cmds old_postuninstall_cmds \
18244 lt_prog_compiler_wl_CXX \
18245 lt_prog_compiler_pic_CXX \
18246 lt_prog_compiler_static_CXX \
18247 lt_prog_compiler_no_builtin_flag_CXX \
18248 export_dynamic_flag_spec_CXX \
18249 thread_safe_flag_spec_CXX \
18250 whole_archive_flag_spec_CXX \
18251 enable_shared_with_static_runtimes_CXX \
18252 old_archive_cmds_CXX \
18253 old_archive_from_new_cmds_CXX \
18254 predep_objects_CXX \
18255 postdep_objects_CXX \
18258 compiler_lib_search_path_CXX \
18260 archive_expsym_cmds_CXX \
18261 postinstall_cmds_CXX \
18262 postuninstall_cmds_CXX \
18263 old_archive_from_expsyms_cmds_CXX \
18264 allow_undefined_flag_CXX \
18265 no_undefined_flag_CXX \
18266 export_symbols_cmds_CXX \
18267 hardcode_libdir_flag_spec_CXX \
18268 hardcode_libdir_flag_spec_ld_CXX \
18269 hardcode_libdir_separator_CXX \
18270 hardcode_automatic_CXX \
18272 module_expsym_cmds_CXX \
18273 lt_cv_prog_compiler_c_o_CXX \
18274 exclude_expsyms_CXX \
18275 include_expsyms_CXX; do
18278 old_archive_cmds_CXX | \
18279 old_archive_from_new_cmds_CXX | \
18280 archive_cmds_CXX | \
18281 archive_expsym_cmds_CXX | \
18282 module_cmds_CXX | \
18283 module_expsym_cmds_CXX | \
18284 old_archive_from_expsyms_cmds_CXX | \
18285 export_symbols_cmds_CXX | \
18286 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18287 postinstall_cmds | postuninstall_cmds | \
18288 old_postinstall_cmds | old_postuninstall_cmds | \
18289 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18290 # Double-quote double-evaled strings.
18291 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18294 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18300 *'\$0 --fallback-echo"')
18301 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18307 cat <<__EOF__ >> "$cfgfile"
18308 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18310 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18312 # Shell to use when invoking shell scripts.
18315 # Whether or not to build shared libraries.
18316 build_libtool_libs=$enable_shared
18318 # Whether or not to build static libraries.
18319 build_old_libs=$enable_static
18321 # Whether or not to add -lc for building shared libraries.
18322 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18324 # Whether or not to disallow shared libs when runtime libs are static
18325 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18327 # Whether or not to optimize for fast installation.
18328 fast_install=$enable_fast_install
18331 host_alias=$host_alias
18334 # An echo program that does not interpret backslashes.
18339 AR_FLAGS=$lt_AR_FLAGS
18344 # A language-specific compiler.
18345 CC=$lt_compiler_CXX
18347 # Is the compiler the GNU C compiler?
18353 # The linker used to build libraries.
18356 # Whether we need hard or soft links.
18359 # A BSD-compatible nm program.
18362 # A symbol stripping program
18365 # Used to examine libraries when file_magic_cmd begins "file"
18366 MAGIC_CMD=$MAGIC_CMD
18368 # Used on cygwin: DLL creation program.
18371 # Used on cygwin: object dumper.
18374 # Used on cygwin: assembler.
18377 # The name of the directory that contains temporary libtool files.
18380 # How to create reloadable object files.
18381 reload_flag=$lt_reload_flag
18382 reload_cmds=$lt_reload_cmds
18384 # How to pass a linker flag through the compiler.
18385 wl=$lt_lt_prog_compiler_wl_CXX
18387 # Object file suffix (normally "o").
18388 objext="$ac_objext"
18390 # Old archive suffix (normally "a").
18393 # Shared library suffix (normally ".so").
18394 shrext_cmds='$shrext_cmds'
18396 # Executable file suffix (normally "").
18399 # Additional compiler flags for building library objects.
18400 pic_flag=$lt_lt_prog_compiler_pic_CXX
18403 # What is the maximum length of a command?
18404 max_cmd_len=$lt_cv_sys_max_cmd_len
18406 # Does compiler simultaneously support -c and -o options?
18407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18409 # Must we lock files when doing compilation ?
18410 need_locks=$lt_need_locks
18412 # Do we need the lib prefix for modules?
18413 need_lib_prefix=$need_lib_prefix
18415 # Do we need a version for libraries?
18416 need_version=$need_version
18418 # Whether dlopen is supported.
18419 dlopen_support=$enable_dlopen
18421 # Whether dlopen of programs is supported.
18422 dlopen_self=$enable_dlopen_self
18424 # Whether dlopen of statically linked programs is supported.
18425 dlopen_self_static=$enable_dlopen_self_static
18427 # Compiler flag to prevent dynamic linking.
18428 link_static_flag=$lt_lt_prog_compiler_static_CXX
18430 # Compiler flag to turn off builtin functions.
18431 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18433 # Compiler flag to allow reflexive dlopens.
18434 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18436 # Compiler flag to generate shared objects directly from archives.
18437 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18439 # Compiler flag to generate thread-safe objects.
18440 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18442 # Library versioning type.
18443 version_type=$version_type
18445 # Format of library name prefix.
18446 libname_spec=$lt_libname_spec
18448 # List of archive names. First name is the real one, the rest are links.
18449 # The last name is the one that the linker finds with -lNAME.
18450 library_names_spec=$lt_library_names_spec
18452 # The coded name of the library, if different from the real name.
18453 soname_spec=$lt_soname_spec
18455 # Commands used to build and install an old-style archive.
18457 old_archive_cmds=$lt_old_archive_cmds_CXX
18458 old_postinstall_cmds=$lt_old_postinstall_cmds
18459 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18461 # Create an old-style archive from a shared archive.
18462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18464 # Create a temporary old-style archive to link instead of a shared archive.
18465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18467 # Commands used to build and install a shared archive.
18468 archive_cmds=$lt_archive_cmds_CXX
18469 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18470 postinstall_cmds=$lt_postinstall_cmds
18471 postuninstall_cmds=$lt_postuninstall_cmds
18473 # Commands used to build a loadable module (assumed same as above if empty)
18474 module_cmds=$lt_module_cmds_CXX
18475 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18477 # Commands to strip libraries.
18478 old_striplib=$lt_old_striplib
18479 striplib=$lt_striplib
18481 # Dependencies to place before the objects being linked to create a
18483 predep_objects=$lt_predep_objects_CXX
18485 # Dependencies to place after the objects being linked to create a
18487 postdep_objects=$lt_postdep_objects_CXX
18489 # Dependencies to place before the objects being linked to create a
18491 predeps=$lt_predeps_CXX
18493 # Dependencies to place after the objects being linked to create a
18495 postdeps=$lt_postdeps_CXX
18497 # The library search path used internally by the compiler when linking
18498 # a shared library.
18499 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18501 # Method to check whether dependent libraries are shared objects.
18502 deplibs_check_method=$lt_deplibs_check_method
18504 # Command to use when deplibs_check_method == file_magic.
18505 file_magic_cmd=$lt_file_magic_cmd
18507 # Flag that allows shared libraries with undefined symbols to be built.
18508 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18510 # Flag that forces no undefined symbols.
18511 no_undefined_flag=$lt_no_undefined_flag_CXX
18513 # Commands used to finish a libtool library installation in a directory.
18514 finish_cmds=$lt_finish_cmds
18516 # Same as above, but a single script fragment to be evaled but not shown.
18517 finish_eval=$lt_finish_eval
18519 # Take the output of nm and produce a listing of raw symbols and C names.
18520 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18522 # Transform the output of nm in a proper C declaration
18523 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18525 # Transform the output of nm in a C name address pair
18526 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18528 # This is the shared library runtime path variable.
18529 runpath_var=$runpath_var
18531 # This is the shared library path variable.
18532 shlibpath_var=$shlibpath_var
18534 # Is shlibpath searched before the hard-coded library search path?
18535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18537 # How to hardcode a shared library path into an executable.
18538 hardcode_action=$hardcode_action_CXX
18540 # Whether we should hardcode library paths into libraries.
18541 hardcode_into_libs=$hardcode_into_libs
18543 # Flag to hardcode \$libdir into a binary during linking.
18544 # This must work even if \$libdir does not exist.
18545 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18547 # If ld is used when linking, flag to hardcode \$libdir into
18548 # a binary during linking. This must work even if \$libdir does
18550 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18552 # Whether we need a single -rpath flag with a separated argument.
18553 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18555 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18556 # resulting binary.
18557 hardcode_direct=$hardcode_direct_CXX
18559 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18560 # resulting binary.
18561 hardcode_minus_L=$hardcode_minus_L_CXX
18563 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18564 # the resulting binary.
18565 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18567 # Set to yes if building a shared library automatically hardcodes DIR into the library
18568 # and all subsequent libraries and executables linked against it.
18569 hardcode_automatic=$hardcode_automatic_CXX
18571 # Variables whose values should be saved in libtool wrapper scripts and
18572 # restored at relink time.
18573 variables_saved_for_relink="$variables_saved_for_relink"
18575 # Whether libtool must link a program against all its dependency libraries.
18576 link_all_deplibs=$link_all_deplibs_CXX
18578 # Compile-time system search path for libraries
18579 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18581 # Run-time system search path for libraries
18582 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18584 # Fix the shell variable \$srcfile for the compiler.
18585 fix_srcfile_path="$fix_srcfile_path_CXX"
18587 # Set to yes if exported symbols are required.
18588 always_export_symbols=$always_export_symbols_CXX
18590 # The commands to list exported symbols.
18591 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18593 # The commands to extract the exported symbol list from a shared archive.
18594 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18596 # Symbols that should not be listed in the preloaded symbols.
18597 exclude_expsyms=$lt_exclude_expsyms_CXX
18599 # Symbols that must always be exported.
18600 include_expsyms=$lt_include_expsyms_CXX
18602 # ### END LIBTOOL TAG CONFIG: $tagname
18608 # If there is no Makefile yet, we rely on a make rule to execute
18609 # `config.status --recheck' to rerun these tests and create the
18610 # libtool script then.
18611 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18612 if test -f "$ltmain_in"; then
18613 test -f Makefile && make "$ltmain"
18619 ac_cpp='$CPP $CPPFLAGS'
18620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18628 with_gnu_ldcxx=$with_gnu_ld
18629 with_gnu_ld=$lt_save_with_gnu_ld
18630 lt_cv_path_LDCXX=$lt_cv_path_LD
18631 lt_cv_path_LD=$lt_save_path_LD
18632 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18633 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18641 if test -n "$F77" && test "X$F77" != "Xno"; then
18644 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18645 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18646 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18649 archive_cmds_need_lc_F77=no
18650 allow_undefined_flag_F77=
18651 always_export_symbols_F77=no
18652 archive_expsym_cmds_F77=
18653 export_dynamic_flag_spec_F77=
18654 hardcode_direct_F77=no
18655 hardcode_libdir_flag_spec_F77=
18656 hardcode_libdir_flag_spec_ld_F77=
18657 hardcode_libdir_separator_F77=
18658 hardcode_minus_L_F77=no
18659 hardcode_automatic_F77=no
18661 module_expsym_cmds_F77=
18662 link_all_deplibs_F77=unknown
18663 old_archive_cmds_F77=$old_archive_cmds
18664 no_undefined_flag_F77=
18665 whole_archive_flag_spec_F77=
18666 enable_shared_with_static_runtimes_F77=no
18668 # Source file extension for f77 test sources.
18671 # Object file extension for compiled f77 test sources.
18675 # Code to be used in simple compile tests
18676 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18678 # Code to be used in simple link tests
18679 lt_simple_link_test_code=" program t\n end\n"
18681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18683 # If no C compiler was specified, use CC.
18686 # Allow CC to be a program name with arguments.
18690 # Allow CC to be a program name with arguments.
18695 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18697 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18698 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18699 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18700 echo "${ECHO_T}$can_build_shared" >&6
18702 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18703 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18704 test "$can_build_shared" = "no" && enable_shared=no
18706 # On AIX, shared libraries and static libraries use the same namespace, and
18707 # are all built from PIC.
18710 test "$enable_shared" = yes && enable_static=no
18711 if test -n "$RANLIB"; then
18712 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18713 postinstall_cmds='$RANLIB $lib'
18717 test "$enable_shared" = yes && enable_static=no
18720 echo "$as_me:$LINENO: result: $enable_shared" >&5
18721 echo "${ECHO_T}$enable_shared" >&6
18723 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18724 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18725 # Make sure either enable_shared or enable_static is yes.
18726 test "$enable_shared" = yes || enable_static=yes
18727 echo "$as_me:$LINENO: result: $enable_static" >&5
18728 echo "${ECHO_T}$enable_static" >&6
18730 test "$ld_shlibs_F77" = no && can_build_shared=no
18735 lt_prog_compiler_wl_F77=
18736 lt_prog_compiler_pic_F77=
18737 lt_prog_compiler_static_F77=
18739 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18740 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18742 if test "$GCC" = yes; then
18743 lt_prog_compiler_wl_F77='-Wl,'
18744 lt_prog_compiler_static_F77='-static'
18748 # All AIX code is PIC.
18749 if test "$host_cpu" = ia64; then
18750 # AIX 5 now supports IA64 processor
18751 lt_prog_compiler_static_F77='-Bstatic'
18756 # FIXME: we need at least 68020 code to build shared libraries, but
18757 # adding the `-m68020' flag to GCC prevents building anything better,
18759 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18762 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18763 # PIC is the default for these OSes.
18766 mingw* | pw32* | os2*)
18767 # This hack is so that the source file can tell whether it is being
18768 # built for inclusion in a dll (and should export symbols for example).
18769 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18772 darwin* | rhapsody*)
18773 # PIC is the default on this platform
18774 # Common symbols not allowed in MH_DYLIB files
18775 lt_prog_compiler_pic_F77='-fno-common'
18779 # Just because we use GCC doesn't mean we suddenly get shared libraries
18780 # on systems that don't support them.
18781 lt_prog_compiler_can_build_shared_F77=no
18786 if test -d /usr/nec; then
18787 lt_prog_compiler_pic_F77=-Kconform_pic
18792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18793 # not for PA HP-UX.
18794 case "$host_cpu" in
18799 lt_prog_compiler_pic_F77='-fPIC'
18805 lt_prog_compiler_pic_F77='-fPIC'
18809 # PORTME Check for flag to pass linker flags through the system compiler.
18812 lt_prog_compiler_wl_F77='-Wl,'
18813 if test "$host_cpu" = ia64; then
18814 # AIX 5 now supports IA64 processor
18815 lt_prog_compiler_static_F77='-Bstatic'
18817 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18821 # PIC is the default on this platform
18822 # Common symbols not allowed in MH_DYLIB files
18823 case "$cc_basename" in
18825 lt_prog_compiler_pic_F77='-qnocommon'
18826 lt_prog_compiler_wl_F77='-Wl,'
18831 mingw* | pw32* | os2*)
18832 # This hack is so that the source file can tell whether it is being
18833 # built for inclusion in a dll (and should export symbols for example).
18834 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18837 hpux9* | hpux10* | hpux11*)
18838 lt_prog_compiler_wl_F77='-Wl,'
18839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18840 # not for PA HP-UX.
18841 case "$host_cpu" in
18846 lt_prog_compiler_pic_F77='+Z'
18849 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18850 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18853 irix5* | irix6* | nonstopux*)
18854 lt_prog_compiler_wl_F77='-Wl,'
18855 # PIC (with -KPIC) is the default.
18856 lt_prog_compiler_static_F77='-non_shared'
18860 lt_prog_compiler_pic_F77='-KPIC'
18861 lt_prog_compiler_static_F77='-Bstatic'
18867 lt_prog_compiler_wl_F77='-Wl,'
18868 lt_prog_compiler_pic_F77='-KPIC'
18869 lt_prog_compiler_static_F77='-static'
18872 lt_prog_compiler_wl_F77='-Wl,'
18873 # All Alpha code is PIC.
18874 lt_prog_compiler_static_F77='-non_shared'
18879 osf3* | osf4* | osf5*)
18880 lt_prog_compiler_wl_F77='-Wl,'
18881 # All OSF/1 code is PIC.
18882 lt_prog_compiler_static_F77='-non_shared'
18886 lt_prog_compiler_pic_F77='-Kpic'
18887 lt_prog_compiler_static_F77='-dn'
18891 lt_prog_compiler_wl_F77='-Wl,'
18892 lt_prog_compiler_pic_F77='-KPIC'
18893 lt_prog_compiler_static_F77='-Bstatic'
18897 lt_prog_compiler_wl_F77='-Qoption ld '
18898 lt_prog_compiler_pic_F77='-PIC'
18899 lt_prog_compiler_static_F77='-Bstatic'
18902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18903 lt_prog_compiler_wl_F77='-Wl,'
18904 lt_prog_compiler_pic_F77='-KPIC'
18905 lt_prog_compiler_static_F77='-Bstatic'
18909 if test -d /usr/nec ;then
18910 lt_prog_compiler_pic_F77='-Kconform_pic'
18911 lt_prog_compiler_static_F77='-Bstatic'
18916 lt_prog_compiler_pic_F77='-pic'
18917 lt_prog_compiler_static_F77='-Bstatic'
18921 lt_prog_compiler_can_build_shared_F77=no
18926 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18927 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18930 # Check to make sure the PIC flag actually works.
18932 if test -n "$lt_prog_compiler_pic_F77"; then
18934 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18935 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18936 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18937 echo $ECHO_N "(cached) $ECHO_C" >&6
18939 lt_prog_compiler_pic_works_F77=no
18940 ac_outfile=conftest.$ac_objext
18941 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18942 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18943 # Insert the option either (1) after the last *FLAGS variable, or
18944 # (2) before a word containing "conftest.", or (3) at the end.
18945 # Note that $ac_compile itself does not contain backslashes and begins
18946 # with a dollar sign (not a hyphen), so the echo should work correctly.
18947 # The option is referenced via a variable to avoid confusing sed.
18948 lt_compile=`echo "$ac_compile" | $SED \
18949 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18951 -e 's:$: $lt_compiler_flag:'`
18952 (eval echo "\"\$as_me:18952: $lt_compile\"" >&5)
18953 (eval "$lt_compile" 2>conftest.err)
18955 cat conftest.err >&5
18956 echo "$as_me:18956: \$? = $ac_status" >&5
18957 if (exit $ac_status) && test -s "$ac_outfile"; then
18958 # The compiler can only warn and ignore the option if not recognized
18959 # So say no if there are warnings
18960 if test ! -s conftest.err; then
18961 lt_prog_compiler_pic_works_F77=yes
18967 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18968 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18970 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18971 case $lt_prog_compiler_pic_F77 in
18973 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18976 lt_prog_compiler_pic_F77=
18977 lt_prog_compiler_can_build_shared_F77=no
18982 # For platforms which do not support PIC, -DPIC is meaningless:
18984 lt_prog_compiler_pic_F77=
18987 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18991 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18992 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18993 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18996 lt_cv_prog_compiler_c_o_F77=no
18997 $rm -r conftest 2>/dev/null
19001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19003 lt_compiler_flag="-o out/conftest2.$ac_objext"
19004 # Insert the option either (1) after the last *FLAGS variable, or
19005 # (2) before a word containing "conftest.", or (3) at the end.
19006 # Note that $ac_compile itself does not contain backslashes and begins
19007 # with a dollar sign (not a hyphen), so the echo should work correctly.
19008 lt_compile=`echo "$ac_compile" | $SED \
19009 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19011 -e 's:$: $lt_compiler_flag:'`
19012 (eval echo "\"\$as_me:19012: $lt_compile\"" >&5)
19013 (eval "$lt_compile" 2>out/conftest.err)
19015 cat out/conftest.err >&5
19016 echo "$as_me:19016: \$? = $ac_status" >&5
19017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19019 # The compiler can only warn and ignore the option if not recognized
19020 # So say no if there are warnings
19021 if test ! -s out/conftest.err; then
19022 lt_cv_prog_compiler_c_o_F77=yes
19027 # SGI C++ compiler will create directory out/ii_files/ for
19028 # template instantiation
19029 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19030 $rm out/* && rmdir out
19036 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19037 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19040 hard_links="nottested"
19041 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19042 # do not overwrite the value of need_locks provided by the user
19043 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19044 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19047 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19049 ln conftest.a conftest.b 2>&5 || hard_links=no
19050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19051 echo "$as_me:$LINENO: result: $hard_links" >&5
19052 echo "${ECHO_T}$hard_links" >&6
19053 if test "$hard_links" = no; then
19054 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19055 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19062 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19063 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19066 allow_undefined_flag_F77=
19067 enable_shared_with_static_runtimes_F77=no
19069 archive_expsym_cmds_F77=
19070 old_archive_From_new_cmds_F77=
19071 old_archive_from_expsyms_cmds_F77=
19072 export_dynamic_flag_spec_F77=
19073 whole_archive_flag_spec_F77=
19074 thread_safe_flag_spec_F77=
19075 hardcode_libdir_flag_spec_F77=
19076 hardcode_libdir_flag_spec_ld_F77=
19077 hardcode_libdir_separator_F77=
19078 hardcode_direct_F77=no
19079 hardcode_minus_L_F77=no
19080 hardcode_shlibpath_var_F77=unsupported
19081 link_all_deplibs_F77=unknown
19082 hardcode_automatic_F77=no
19084 module_expsym_cmds_F77=
19085 always_export_symbols_F77=no
19086 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19087 # include_expsyms should be a list of space-separated symbols to be *always*
19088 # included in the symbol list
19089 include_expsyms_F77=
19090 # exclude_expsyms can be an extended regexp of symbols to exclude
19091 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19092 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19093 # as well as any symbol that contains `d'.
19094 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19095 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19096 # platforms (ab)use it in PIC code, but their linkers get confused if
19097 # the symbol is explicitly referenced. Since portable code cannot
19098 # rely on this symbol name, it's probably fine to never include it in
19099 # preloaded symbol tables.
19100 extract_expsyms_cmds=
19103 cygwin* | mingw* | pw32*)
19104 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19105 # When not using gcc, we currently assume that we are using
19106 # Microsoft Visual C++.
19107 if test "$GCC" != yes; then
19117 if test "$with_gnu_ld" = yes; then
19118 # If archive_cmds runs LD, not CC, wlarc should be empty
19121 # See if GNU ld supports shared libraries.
19123 aix3* | aix4* | aix5*)
19124 # On AIX/PPC, the GNU linker is very broken
19125 if test "$host_cpu" != ia64; then
19129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19130 *** to be unable to reliably create shared libraries on AIX.
19131 *** Therefore, libtool is disabling shared libraries support. If you
19132 *** really care for shared libraries, you may want to modify your PATH
19133 *** so that a non-GNU linker is found, and then restart.
19140 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)'
19141 hardcode_libdir_flag_spec_F77='-L$libdir'
19142 hardcode_minus_L_F77=yes
19144 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19145 # that the semantics of dynamic libraries on AmigaOS, at least up
19146 # to version 4, is to share data among multiple programs linked
19147 # with the same dynamic library. Since this doesn't match the
19148 # behavior of shared libraries on other platforms, we can't use
19154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19155 allow_undefined_flag_F77=unsupported
19156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19157 # support --undefined. This deserves some investigation. FIXME
19158 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164 cygwin* | mingw* | pw32*)
19165 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19166 # as there is no search path for DLLs.
19167 hardcode_libdir_flag_spec_F77='-L$libdir'
19168 allow_undefined_flag_F77=unsupported
19169 always_export_symbols_F77=no
19170 enable_shared_with_static_runtimes_F77=yes
19171 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19173 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19174 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19175 # If the export-symbols file already is a .def file (1st line
19176 # is EXPORTS), use it as is; otherwise, prepend...
19177 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19178 cp $export_symbols $output_objdir/$soname.def;
19180 echo EXPORTS > $output_objdir/$soname.def;
19181 cat $export_symbols >> $output_objdir/$soname.def;
19183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19191 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19194 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19195 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19200 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19204 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19205 *** create shared libraries on Solaris systems. Therefore, libtool
19206 *** is disabling shared libraries support. We urge you to upgrade GNU
19207 *** binutils to release 2.9.1 or newer. Another option is to modify
19208 *** your PATH or compiler configuration so that the native linker is
19209 *** used, and then restart.
19212 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19213 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19214 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19221 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19223 hardcode_direct_F77=yes
19224 hardcode_shlibpath_var_F77=no
19228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19229 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19230 archive_cmds_F77="$tmp_archive_cmds"
19231 supports_anon_versioning=no
19232 case `$LD -v 2>/dev/null` in
19233 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19234 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19235 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19236 *\ 2.11.*) ;; # other 2.11 versions
19237 *) supports_anon_versioning=yes ;;
19239 if test $supports_anon_versioning = yes; then
19240 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19242 $echo "local: *; };" >> $output_objdir/$libname.ver~
19243 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19245 archive_expsym_cmds_F77="$tmp_archive_cmds"
19253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19254 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19255 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19262 if test "$ld_shlibs_F77" = yes; then
19263 runpath_var=LD_RUN_PATH
19264 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19265 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19266 # ancient GNU ld didn't support --whole-archive et. al.
19267 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19268 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19270 whole_archive_flag_spec_F77=
19274 # PORTME fill in a description of your system's linker (not GNU ld)
19277 allow_undefined_flag_F77=unsupported
19278 always_export_symbols_F77=yes
19279 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'
19280 # Note: this linker hardcodes the directories in LIBPATH if there
19281 # are no directories specified by -L.
19282 hardcode_minus_L_F77=yes
19283 if test "$GCC" = yes && test -z "$link_static_flag"; then
19284 # Neither direct hardcoding nor static linking is supported with a
19286 hardcode_direct_F77=unsupported
19291 if test "$host_cpu" = ia64; then
19292 # On IA64, the linker does run time linking by default, so we don't
19293 # have to do anything special.
19294 aix_use_runtimelinking=no
19295 exp_sym_flag='-Bexport'
19298 # If we're using GNU nm, then we don't want the "-C" option.
19299 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19300 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19301 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'
19303 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'
19305 aix_use_runtimelinking=no
19307 # Test if we are trying to use run time linking or normal
19308 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19309 # need to do runtime linking.
19310 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19311 for ld_flag in $LDFLAGS; do
19312 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19313 aix_use_runtimelinking=yes
19319 exp_sym_flag='-bexport'
19320 no_entry_flag='-bnoentry'
19323 # When large executables or shared objects are built, AIX ld can
19324 # have problems creating the table of contents. If linking a library
19325 # or program results in "error TOC overflow" add -mminimal-toc to
19326 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19327 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19329 archive_cmds_F77=''
19330 hardcode_direct_F77=yes
19331 hardcode_libdir_separator_F77=':'
19332 link_all_deplibs_F77=yes
19334 if test "$GCC" = yes; then
19335 case $host_os in aix4.012|aix4.012.*)
19336 # We only want to do this on AIX 4.2 and lower, the check
19337 # below for broken collect2 doesn't work under 4.3+
19338 collect2name=`${CC} -print-prog-name=collect2`
19339 if test -f "$collect2name" && \
19340 strings "$collect2name" | grep resolve_lib_name >/dev/null
19342 # We have reworked collect2
19343 hardcode_direct_F77=yes
19345 # We have old collect2
19346 hardcode_direct_F77=unsupported
19347 # It fails to find uninstalled libraries when the uninstalled
19348 # path is not listed in the libpath. Setting hardcode_minus_L
19349 # to unsupported forces relinking
19350 hardcode_minus_L_F77=yes
19351 hardcode_libdir_flag_spec_F77='-L$libdir'
19352 hardcode_libdir_separator_F77=
19355 shared_flag='-shared'
19358 if test "$host_cpu" = ia64; then
19359 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19360 # chokes on -Wl,-G. The following line is correct:
19363 if test "$aix_use_runtimelinking" = yes; then
19364 shared_flag='${wl}-G'
19366 shared_flag='${wl}-bM:SRE'
19371 # It seems that -bexpall does not export symbols beginning with
19372 # underscore (_), so it is better to generate a list of symbols to export.
19373 always_export_symbols_F77=yes
19374 if test "$aix_use_runtimelinking" = yes; then
19375 # Warning - without using the other runtime loading flags (-brtl),
19376 # -berok will link without error, but may produce a broken library.
19377 allow_undefined_flag_F77='-berok'
19378 # Determine the default libpath from the value encoded in an empty executable.
19379 cat >conftest.$ac_ext <<_ACEOF
19384 rm -f conftest.$ac_objext conftest$ac_exeext
19385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19386 (eval $ac_link) 2>conftest.er1
19388 grep -v '^ *+' conftest.er1 >conftest.err
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } &&
19393 { ac_try='test -z "$ac_f77_werror_flag"
19394 || test ! -s conftest.err'
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; } &&
19400 { ac_try='test -s conftest$ac_exeext'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; }; then
19407 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19409 # Check for a 64-bit object if we didn't find anything.
19410 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; }
19413 echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19417 rm -f conftest.err conftest.$ac_objext \
19418 conftest$ac_exeext conftest.$ac_ext
19419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19421 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19422 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"
19424 if test "$host_cpu" = ia64; then
19425 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19426 allow_undefined_flag_F77="-z nodefs"
19427 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"
19429 # Determine the default libpath from the value encoded in an empty executable.
19430 cat >conftest.$ac_ext <<_ACEOF
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19437 (eval $ac_link) 2>conftest.er1
19439 grep -v '^ *+' conftest.er1 >conftest.err
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
19444 { ac_try='test -z "$ac_f77_werror_flag"
19445 || test ! -s conftest.err'
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447 (eval $ac_try) 2>&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; } &&
19451 { ac_try='test -s conftest$ac_exeext'
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; }; then
19458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19460 # Check for a 64-bit object if we didn't find anything.
19461 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; }
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19468 rm -f conftest.err conftest.$ac_objext \
19469 conftest$ac_exeext conftest.$ac_ext
19470 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19472 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19473 # Warning - without using the other run time loading flags,
19474 # -berok will link without error, but may produce a broken library.
19475 no_undefined_flag_F77=' ${wl}-bernotok'
19476 allow_undefined_flag_F77=' ${wl}-berok'
19477 # -bexpall does not export symbols beginning with underscore (_)
19478 always_export_symbols_F77=yes
19479 # Exported symbols can be pulled into shared objects from archives
19480 whole_archive_flag_spec_F77=' '
19481 archive_cmds_need_lc_F77=yes
19482 # This is similar to how AIX traditionally builds it's shared libraries.
19483 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'
19489 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)'
19490 hardcode_libdir_flag_spec_F77='-L$libdir'
19491 hardcode_minus_L_F77=yes
19492 # see comment about different semantics on the GNU ld section
19497 export_dynamic_flag_spec_F77=-rdynamic
19500 cygwin* | mingw* | pw32*)
19501 # When not using gcc, we currently assume that we are using
19502 # Microsoft Visual C++.
19503 # hardcode_libdir_flag_spec is actually meaningless, as there is
19504 # no search path for DLLs.
19505 hardcode_libdir_flag_spec_F77=' '
19506 allow_undefined_flag_F77=unsupported
19507 # Tell ltmain to make .lib files, not .a files.
19509 # Tell ltmain to make .dll files, not .so files.
19511 # FIXME: Setting linknames here is a bad hack.
19512 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19513 # The linker will automatically build a .lib file if we build a DLL.
19514 old_archive_From_new_cmds_F77='true'
19515 # FIXME: Should let the user specify the lib program.
19516 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19517 fix_srcfile_path='`cygpath -w "$srcfile"`'
19518 enable_shared_with_static_runtimes_F77=yes
19521 darwin* | rhapsody*)
19523 rhapsody* | darwin1.[012])
19524 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19527 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19528 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19530 case ${MACOSX_DEPLOYMENT_TARGET} in
19532 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19535 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19541 archive_cmds_need_lc_F77=no
19542 hardcode_direct_F77=no
19543 hardcode_automatic_F77=yes
19544 hardcode_shlibpath_var_F77=unsupported
19545 whole_archive_flag_spec_F77=''
19546 link_all_deplibs_F77=yes
19547 if test "$GCC" = yes ; then
19548 output_verbose_link_cmd='echo'
19549 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19550 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19551 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19552 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}'
19553 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}'
19555 case "$cc_basename" in
19557 output_verbose_link_cmd='echo'
19558 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19559 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19560 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19561 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}'
19562 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}'
19572 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19573 hardcode_libdir_flag_spec_F77='-L$libdir'
19574 hardcode_shlibpath_var_F77=no
19581 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19582 # support. Future versions do this automatically, but an explicit c++rt0.o
19583 # does not break anything, and helps significantly (at the cost of a little
19586 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19587 hardcode_libdir_flag_spec_F77='-R$libdir'
19588 hardcode_direct_F77=yes
19589 hardcode_shlibpath_var_F77=no
19592 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19595 hardcode_direct_F77=yes
19596 hardcode_minus_L_F77=yes
19597 hardcode_shlibpath_var_F77=no
19600 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19601 freebsd* | kfreebsd*-gnu)
19602 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19603 hardcode_libdir_flag_spec_F77='-R$libdir'
19604 hardcode_direct_F77=yes
19605 hardcode_shlibpath_var_F77=no
19609 if test "$GCC" = yes; then
19610 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'
19612 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'
19614 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19615 hardcode_libdir_separator_F77=:
19616 hardcode_direct_F77=yes
19618 # hardcode_minus_L: Not really in the search PATH,
19619 # but as the default location of the library.
19620 hardcode_minus_L_F77=yes
19621 export_dynamic_flag_spec_F77='${wl}-E'
19625 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19626 case "$host_cpu" in
19628 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19631 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19635 case "$host_cpu" in
19637 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19640 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19644 if test "$with_gnu_ld" = no; then
19645 case "$host_cpu" in
19647 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19648 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19649 hardcode_libdir_separator_F77=:
19650 hardcode_direct_F77=no
19651 hardcode_shlibpath_var_F77=no
19654 hardcode_libdir_flag_spec_F77='-L$libdir'
19655 hardcode_direct_F77=no
19656 hardcode_shlibpath_var_F77=no
19658 # hardcode_minus_L: Not really in the search PATH,
19659 # but as the default location of the library.
19660 hardcode_minus_L_F77=yes
19663 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19664 hardcode_libdir_separator_F77=:
19665 hardcode_direct_F77=yes
19666 export_dynamic_flag_spec_F77='${wl}-E'
19668 # hardcode_minus_L: Not really in the search PATH,
19669 # but as the default location of the library.
19670 hardcode_minus_L_F77=yes
19676 irix5* | irix6* | nonstopux*)
19677 if test "$GCC" = yes; then
19678 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'
19680 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'
19681 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19683 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19684 hardcode_libdir_separator_F77=:
19685 link_all_deplibs_F77=yes
19689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19690 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19692 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19694 hardcode_libdir_flag_spec_F77='-R$libdir'
19695 hardcode_direct_F77=yes
19696 hardcode_shlibpath_var_F77=no
19700 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19701 hardcode_direct_F77=yes
19702 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19703 hardcode_libdir_separator_F77=:
19704 hardcode_shlibpath_var_F77=no
19708 hardcode_direct_F77=yes
19709 hardcode_shlibpath_var_F77=no
19710 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19711 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19712 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19713 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19714 export_dynamic_flag_spec_F77='${wl}-E'
19717 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19718 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19719 hardcode_libdir_flag_spec_F77='-R$libdir'
19722 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19723 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19730 hardcode_libdir_flag_spec_F77='-L$libdir'
19731 hardcode_minus_L_F77=yes
19732 allow_undefined_flag_F77=unsupported
19733 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'
19734 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19738 if test "$GCC" = yes; then
19739 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19740 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'
19742 allow_undefined_flag_F77=' -expect_unresolved \*'
19743 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'
19745 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19746 hardcode_libdir_separator_F77=:
19749 osf4* | osf5*) # as osf3* with the addition of -msym flag
19750 if test "$GCC" = yes; then
19751 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19752 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'
19753 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19755 allow_undefined_flag_F77=' -expect_unresolved \*'
19756 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'
19757 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~
19758 $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'
19760 # Both c and cxx compiler support -rpath directly
19761 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19763 hardcode_libdir_separator_F77=:
19767 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19768 hardcode_shlibpath_var_F77=no
19769 export_dynamic_flag_spec_F77='${wl}-Bexport'
19770 runpath_var=LD_RUN_PATH
19771 hardcode_runpath_var=yes
19775 no_undefined_flag_F77=' -z text'
19776 if test "$GCC" = yes; then
19777 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19778 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19779 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19781 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19782 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19783 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19785 hardcode_libdir_flag_spec_F77='-R$libdir'
19786 hardcode_shlibpath_var_F77=no
19788 solaris2.[0-5] | solaris2.[0-5].*) ;;
19789 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19790 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19792 link_all_deplibs_F77=yes
19796 if test "x$host_vendor" = xsequent; then
19797 # Use $CC to link under sequent, because it throws in some extra .o
19798 # files that make .init and .fini sections work.
19799 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19801 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19803 hardcode_libdir_flag_spec_F77='-L$libdir'
19804 hardcode_direct_F77=yes
19805 hardcode_minus_L_F77=yes
19806 hardcode_shlibpath_var_F77=no
19810 case $host_vendor in
19812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19813 hardcode_direct_F77=yes # is this really true???
19816 ## LD is ld it makes a PLAMLIB
19817 ## CC just makes a GrossModule.
19818 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19819 reload_cmds_F77='$CC -r -o $output$reload_objs'
19820 hardcode_direct_F77=no
19823 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19824 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19827 runpath_var='LD_RUN_PATH'
19828 hardcode_shlibpath_var_F77=no
19832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19833 hardcode_shlibpath_var_F77=no
19834 export_dynamic_flag_spec_F77='-Bexport'
19838 if test -d /usr/nec; then
19839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19840 hardcode_shlibpath_var_F77=no
19841 runpath_var=LD_RUN_PATH
19842 hardcode_runpath_var=yes
19848 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19849 hardcode_direct_F77=yes
19850 hardcode_minus_L_F77=no
19851 hardcode_shlibpath_var_F77=no
19852 hardcode_runpath_var=yes
19853 runpath_var=LD_RUN_PATH
19856 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19857 no_undefined_flag_F77='${wl}-z ${wl}text'
19858 if test "$GCC" = yes; then
19859 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19861 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19863 runpath_var='LD_RUN_PATH'
19864 hardcode_shlibpath_var_F77=no
19868 no_undefined_flag_F77=' -z text'
19869 # $CC -shared without GNU ld will not create a library from C++
19870 # object files and a static libstdc++, better avoid it by now
19871 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19872 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19873 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19874 hardcode_libdir_flag_spec_F77=
19875 hardcode_shlibpath_var_F77=no
19876 runpath_var='LD_RUN_PATH'
19880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19881 hardcode_libdir_flag_spec_F77='-L$libdir'
19882 hardcode_shlibpath_var_F77=no
19891 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19892 echo "${ECHO_T}$ld_shlibs_F77" >&6
19893 test "$ld_shlibs_F77" = no && can_build_shared=no
19895 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19896 if test "$GCC" = yes; then
19897 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19901 # Do we need to explicitly link libc?
19903 case "x$archive_cmds_need_lc_F77" in
19905 # Assume -lc should be added
19906 archive_cmds_need_lc_F77=yes
19908 if test "$enable_shared" = yes && test "$GCC" = yes; then
19909 case $archive_cmds_F77 in
19911 # FIXME: we may have to deal with multi-command sequences.
19914 # Test whether the compiler implicitly links with -lc since on some
19915 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19916 # to ld, don't add -lc before -lgcc.
19917 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19918 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923 (eval $ac_compile) 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } 2>conftest.err; then
19929 libobjs=conftest.$ac_objext
19931 wl=$lt_prog_compiler_wl_F77
19937 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19938 allow_undefined_flag_F77=
19939 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19940 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }
19945 archive_cmds_need_lc_F77=no
19947 archive_cmds_need_lc_F77=yes
19949 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19951 cat conftest.err 1>&5
19954 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19955 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19962 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19963 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19964 library_names_spec=
19965 libname_spec='lib$name'
19969 postuninstall_cmds=
19973 shlibpath_overrides_runpath=unknown
19975 dynamic_linker="$host_os ld.so"
19976 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19977 if test "$GCC" = yes; then
19978 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19979 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19980 # if the path contains ";" then we assume it to be the separator
19981 # otherwise default to the standard path separator (i.e. ":") - it is
19982 # assumed that no part of a normal pathname contains ";" but that should
19983 # okay in the real world where ";" in dirpaths is itself problematic.
19984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19989 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19991 need_lib_prefix=unknown
19992 hardcode_into_libs=no
19994 # when you set need_version to no, make sure it does not cause -set_version
19995 # flags to be left without arguments
19996 need_version=unknown
20001 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20002 shlibpath_var=LIBPATH
20004 # AIX 3 has no versioning support, so we append a major version to the name.
20005 soname_spec='${libname}${release}${shared_ext}$major'
20012 hardcode_into_libs=yes
20013 if test "$host_cpu" = ia64; then
20014 # AIX 5 supports IA64
20015 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20016 shlibpath_var=LD_LIBRARY_PATH
20018 # With GCC up to 2.95.x, collect2 would create an import file
20019 # for dependence libraries. The import file would start with
20020 # the line `#! .'. This would cause the generated library to
20021 # depend on `.', always an invalid library. This was fixed in
20022 # development snapshots of GCC prior to 3.0.
20024 aix4 | aix4.[01] | aix4.[01].*)
20025 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20027 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20030 can_build_shared=no
20034 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20035 # soname into executable. Probably we can add versioning support to
20036 # collect2, so additional links can be useful in future.
20037 if test "$aix_use_runtimelinking" = yes; then
20038 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20039 # instead of lib<name>.a to let people know that these are not
20040 # typical AIX shared libraries.
20041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043 # We preserve .a as extension for shared libraries through AIX4.2
20044 # and later when we are not doing run time linking.
20045 library_names_spec='${libname}${release}.a $libname.a'
20046 soname_spec='${libname}${release}${shared_ext}$major'
20048 shlibpath_var=LIBPATH
20053 library_names_spec='$libname.ixlibrary $libname.a'
20054 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20055 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'
20059 library_names_spec='${libname}${shared_ext}'
20060 dynamic_linker="$host_os ld.so"
20061 shlibpath_var=LIBRARY_PATH
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20070 shlibpath_var=LD_LIBRARY_PATH
20071 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20072 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20073 # the default ld.so.conf also contains /usr/contrib/lib and
20074 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20075 # libtool to hard-code these into programs
20078 cygwin* | mingw* | pw32*)
20079 version_type=windows
20084 case $GCC,$host_os in
20085 yes,cygwin* | yes,mingw* | yes,pw32*)
20086 library_names_spec='$libname.dll.a'
20087 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20088 postinstall_cmds='base_file=`basename \${file}`~
20089 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20090 dldir=$destdir/`dirname \$dlpath`~
20091 test -d \$dldir || mkdir -p \$dldir~
20092 $install_prog $dir/$dlname \$dldir/$dlname'
20093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20094 dlpath=$dir/\$dldll~
20096 shlibpath_overrides_runpath=yes
20100 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20101 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20102 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20105 # MinGW DLLs use traditional 'lib' prefix
20106 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20107 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20108 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20109 # It is most probably a Windows format PATH printed by
20110 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20111 # path with ; separators, and with drive letters. We can handle the
20112 # drive letters (cygwin fileutils understands them), so leave them,
20113 # especially as we might pass files found there to a mingw objdump,
20114 # which wouldn't understand a cygwinified path. Ahh.
20115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20121 # pw32 DLLs use 'pw' prefix rather than 'lib'
20122 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20128 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20131 dynamic_linker='Win32 ld.exe'
20132 # FIXME: first we should search . and the directory the executable is in
20136 darwin* | rhapsody*)
20137 dynamic_linker="$host_os dyld"
20138 version_type=darwin
20141 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20142 soname_spec='${libname}${release}${major}$shared_ext'
20143 shlibpath_overrides_runpath=yes
20144 shlibpath_var=DYLD_LIBRARY_PATH
20145 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20146 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20147 if test "$GCC" = yes; then
20148 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"`
20150 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20152 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20161 shlibpath_var=LD_LIBRARY_PATH
20172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20173 soname_spec='${libname}${release}${shared_ext}$major'
20174 shlibpath_var=LD_LIBRARY_PATH
20175 shlibpath_overrides_runpath=no
20176 hardcode_into_libs=yes
20177 dynamic_linker='GNU ld.so'
20181 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20182 version_type=freebsd-$objformat
20183 case $version_type in
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20194 shlibpath_var=LD_LIBRARY_PATH
20197 shlibpath_overrides_runpath=yes
20199 freebsd3.01* | freebsdelf3.01*)
20200 shlibpath_overrides_runpath=yes
20201 hardcode_into_libs=yes
20204 shlibpath_overrides_runpath=no
20205 hardcode_into_libs=yes
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20215 soname_spec='${libname}${release}${shared_ext}$major'
20216 shlibpath_var=LD_LIBRARY_PATH
20217 hardcode_into_libs=yes
20220 hpux9* | hpux10* | hpux11*)
20221 # Give a soname corresponding to the major version so that dld.sl refuses to
20222 # link against other versions.
20226 case "$host_cpu" in
20229 hardcode_into_libs=yes
20230 dynamic_linker="$host_os dld.so"
20231 shlibpath_var=LD_LIBRARY_PATH
20232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 if test "X$HPUX_IA64_MODE" = X32; then
20236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20244 hardcode_into_libs=yes
20245 dynamic_linker="$host_os dld.sl"
20246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249 soname_spec='${libname}${release}${shared_ext}$major'
20250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20255 dynamic_linker="$host_os dld.sl"
20256 shlibpath_var=SHLIB_PATH
20257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20259 soname_spec='${libname}${release}${shared_ext}$major'
20262 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20263 postinstall_cmds='chmod 555 $lib'
20266 irix5* | irix6* | nonstopux*)
20268 nonstopux*) version_type=nonstopux ;;
20270 if test "$lt_cv_prog_gnu_ld" = yes; then
20278 soname_spec='${libname}${release}${shared_ext}$major'
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20281 irix5* | nonstopux*)
20282 libsuff= shlibsuff=
20285 case $LD in # libtool.m4 will add one of these switches to LD
20286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20287 libsuff= shlibsuff= libmagic=32-bit;;
20288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20289 libsuff=32 shlibsuff=N32 libmagic=N32;;
20290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20292 *) libsuff= shlibsuff= libmagic=never-match;;
20296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20297 shlibpath_overrides_runpath=no
20298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20300 hardcode_into_libs=yes
20303 # No shared lib support for Linux oldld, aout, or coff.
20304 linux*oldld* | linux*aout* | linux*coff*)
20308 # This must be Linux ELF.
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20314 soname_spec='${libname}${release}${shared_ext}$major'
20315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20316 shlibpath_var=LD_LIBRARY_PATH
20317 shlibpath_overrides_runpath=no
20318 # This implies no fast_install, which is unacceptable.
20319 # Some rework will be needed to allow for fast_install
20320 # before this can be enabled.
20321 hardcode_into_libs=yes
20323 # Append ld.so.conf contents to the search path
20324 if test -f /etc/ld.so.conf; then
20325 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20329 # We used to test for /lib/ld.so.1 and disable shared libraries on
20330 # powerpc, because MkLinux only supported shared libraries with the
20331 # GNU dynamic linker. Since this was broken with cross compilers,
20332 # most powerpc-linux boxes support dynamic linking these days and
20333 # people can always --disable-shared, the test was removed, and we
20334 # assume the GNU/Linux dynamic linker is in use.
20335 dynamic_linker='GNU/Linux ld.so'
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20343 soname_spec='${libname}${release}${shared_ext}$major'
20344 shlibpath_var=LD_LIBRARY_PATH
20345 shlibpath_overrides_runpath=no
20346 hardcode_into_libs=yes
20347 dynamic_linker='GNU ld.so'
20354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20357 dynamic_linker='NetBSD (a.out) ld.so'
20359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20360 soname_spec='${libname}${release}${shared_ext}$major'
20361 dynamic_linker='NetBSD ld.elf_so'
20363 shlibpath_var=LD_LIBRARY_PATH
20364 shlibpath_overrides_runpath=yes
20365 hardcode_into_libs=yes
20370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20371 shlibpath_var=LD_LIBRARY_PATH
20372 shlibpath_overrides_runpath=yes
20379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20380 soname_spec='${libname}${release}${shared_ext}$major'
20381 shlibpath_var=LD_LIBRARY_PATH
20382 shlibpath_overrides_runpath=yes
20389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20394 openbsd2.[89] | openbsd2.[89].*)
20395 shlibpath_overrides_runpath=no
20398 shlibpath_overrides_runpath=yes
20402 shlibpath_overrides_runpath=yes
20407 libname_spec='$name'
20410 library_names_spec='$libname${shared_ext} $libname.a'
20411 dynamic_linker='OS/2 ld.exe'
20412 shlibpath_var=LIBPATH
20415 osf3* | osf4* | osf5*)
20419 soname_spec='${libname}${release}${shared_ext}$major'
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20423 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20428 soname_spec='${libname}${release}${shared_ext}$major'
20429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430 shlibpath_var=LD_LIBRARY_PATH
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20438 soname_spec='${libname}${release}${shared_ext}$major'
20439 shlibpath_var=LD_LIBRARY_PATH
20440 shlibpath_overrides_runpath=yes
20441 hardcode_into_libs=yes
20442 # ldd complains unless libraries are executable
20443 postinstall_cmds='chmod +x $lib'
20448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath=yes
20452 if test "$with_gnu_ld" = yes; then
20458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20461 soname_spec='${libname}${release}${shared_ext}$major'
20462 shlibpath_var=LD_LIBRARY_PATH
20463 case $host_vendor in
20465 shlibpath_overrides_runpath=no
20467 export_dynamic_flag_spec='${wl}-Blargedynsym'
20468 runpath_var=LD_RUN_PATH
20476 shlibpath_overrides_runpath=no
20477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20483 if test -d /usr/nec ;then
20485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20486 soname_spec='$libname${shared_ext}.$major'
20487 shlibpath_var=LD_LIBRARY_PATH
20493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494 soname_spec='${libname}${release}${shared_ext}$major'
20495 shlibpath_var=LD_LIBRARY_PATH
20502 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20503 echo "${ECHO_T}$dynamic_linker" >&6
20504 test "$dynamic_linker" = no && can_build_shared=no
20506 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20507 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20508 hardcode_action_F77=
20509 if test -n "$hardcode_libdir_flag_spec_F77" || \
20510 test -n "$runpath_var_F77" || \
20511 test "X$hardcode_automatic_F77" = "Xyes" ; then
20513 # We can hardcode non-existant directories.
20514 if test "$hardcode_direct_F77" != no &&
20515 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20516 # have to relink, otherwise we might link with an installed library
20517 # when we should be linking with a yet-to-be-installed one
20518 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20519 test "$hardcode_minus_L_F77" != no; then
20520 # Linking always hardcodes the temporary library directory.
20521 hardcode_action_F77=relink
20523 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20524 hardcode_action_F77=immediate
20527 # We cannot hardcode anything, or else we can only hardcode existing
20529 hardcode_action_F77=unsupported
20531 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20532 echo "${ECHO_T}$hardcode_action_F77" >&6
20534 if test "$hardcode_action_F77" = relink; then
20535 # Fast installation is not supported
20536 enable_fast_install=no
20537 elif test "$shlibpath_overrides_runpath" = yes ||
20538 test "$enable_shared" = no; then
20539 # Fast installation is not necessary
20540 enable_fast_install=needless
20545 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20546 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20547 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20548 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20549 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20550 echo "$as_me:$LINENO: result: yes" >&5
20551 echo "${ECHO_T}yes" >&6
20553 # FIXME - insert some real tests, host_os isn't really good enough
20556 if test -n "$STRIP" ; then
20557 striplib="$STRIP -x"
20558 echo "$as_me:$LINENO: result: yes" >&5
20559 echo "${ECHO_T}yes" >&6
20561 echo "$as_me:$LINENO: result: no" >&5
20562 echo "${ECHO_T}no" >&6
20566 echo "$as_me:$LINENO: result: no" >&5
20567 echo "${ECHO_T}no" >&6
20574 # The else clause should only fire when bootstrapping the
20575 # libtool distribution, otherwise you forgot to ship ltmain.sh
20576 # with your package, and you will get complaints that there are
20577 # no rules to generate ltmain.sh.
20578 if test -f "$ltmain"; then
20579 # See if we are running on zsh, and set the options which allow our commands through
20580 # without removal of \ escapes.
20581 if test -n "${ZSH_VERSION+set}" ; then
20582 setopt NO_GLOB_SUBST
20584 # Now quote all the things that may contain metacharacters while being
20585 # careful not to overquote the AC_SUBSTed values. We take copies of the
20586 # variables and quote the copies for generation of the libtool script.
20587 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20589 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20590 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20591 deplibs_check_method reload_flag reload_cmds need_locks \
20592 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20593 lt_cv_sys_global_symbol_to_c_name_address \
20594 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20595 old_postinstall_cmds old_postuninstall_cmds \
20599 lt_prog_compiler_wl_F77 \
20600 lt_prog_compiler_pic_F77 \
20601 lt_prog_compiler_static_F77 \
20602 lt_prog_compiler_no_builtin_flag_F77 \
20603 export_dynamic_flag_spec_F77 \
20604 thread_safe_flag_spec_F77 \
20605 whole_archive_flag_spec_F77 \
20606 enable_shared_with_static_runtimes_F77 \
20607 old_archive_cmds_F77 \
20608 old_archive_from_new_cmds_F77 \
20609 predep_objects_F77 \
20610 postdep_objects_F77 \
20613 compiler_lib_search_path_F77 \
20615 archive_expsym_cmds_F77 \
20616 postinstall_cmds_F77 \
20617 postuninstall_cmds_F77 \
20618 old_archive_from_expsyms_cmds_F77 \
20619 allow_undefined_flag_F77 \
20620 no_undefined_flag_F77 \
20621 export_symbols_cmds_F77 \
20622 hardcode_libdir_flag_spec_F77 \
20623 hardcode_libdir_flag_spec_ld_F77 \
20624 hardcode_libdir_separator_F77 \
20625 hardcode_automatic_F77 \
20627 module_expsym_cmds_F77 \
20628 lt_cv_prog_compiler_c_o_F77 \
20629 exclude_expsyms_F77 \
20630 include_expsyms_F77; do
20633 old_archive_cmds_F77 | \
20634 old_archive_from_new_cmds_F77 | \
20635 archive_cmds_F77 | \
20636 archive_expsym_cmds_F77 | \
20637 module_cmds_F77 | \
20638 module_expsym_cmds_F77 | \
20639 old_archive_from_expsyms_cmds_F77 | \
20640 export_symbols_cmds_F77 | \
20641 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20642 postinstall_cmds | postuninstall_cmds | \
20643 old_postinstall_cmds | old_postuninstall_cmds | \
20644 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20645 # Double-quote double-evaled strings.
20646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20655 *'\$0 --fallback-echo"')
20656 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20662 cat <<__EOF__ >> "$cfgfile"
20663 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20665 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20667 # Shell to use when invoking shell scripts.
20670 # Whether or not to build shared libraries.
20671 build_libtool_libs=$enable_shared
20673 # Whether or not to build static libraries.
20674 build_old_libs=$enable_static
20676 # Whether or not to add -lc for building shared libraries.
20677 build_libtool_need_lc=$archive_cmds_need_lc_F77
20679 # Whether or not to disallow shared libs when runtime libs are static
20680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20682 # Whether or not to optimize for fast installation.
20683 fast_install=$enable_fast_install
20686 host_alias=$host_alias
20689 # An echo program that does not interpret backslashes.
20694 AR_FLAGS=$lt_AR_FLAGS
20699 # A language-specific compiler.
20700 CC=$lt_compiler_F77
20702 # Is the compiler the GNU C compiler?
20708 # The linker used to build libraries.
20711 # Whether we need hard or soft links.
20714 # A BSD-compatible nm program.
20717 # A symbol stripping program
20720 # Used to examine libraries when file_magic_cmd begins "file"
20721 MAGIC_CMD=$MAGIC_CMD
20723 # Used on cygwin: DLL creation program.
20726 # Used on cygwin: object dumper.
20729 # Used on cygwin: assembler.
20732 # The name of the directory that contains temporary libtool files.
20735 # How to create reloadable object files.
20736 reload_flag=$lt_reload_flag
20737 reload_cmds=$lt_reload_cmds
20739 # How to pass a linker flag through the compiler.
20740 wl=$lt_lt_prog_compiler_wl_F77
20742 # Object file suffix (normally "o").
20743 objext="$ac_objext"
20745 # Old archive suffix (normally "a").
20748 # Shared library suffix (normally ".so").
20749 shrext_cmds='$shrext_cmds'
20751 # Executable file suffix (normally "").
20754 # Additional compiler flags for building library objects.
20755 pic_flag=$lt_lt_prog_compiler_pic_F77
20758 # What is the maximum length of a command?
20759 max_cmd_len=$lt_cv_sys_max_cmd_len
20761 # Does compiler simultaneously support -c and -o options?
20762 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20764 # Must we lock files when doing compilation ?
20765 need_locks=$lt_need_locks
20767 # Do we need the lib prefix for modules?
20768 need_lib_prefix=$need_lib_prefix
20770 # Do we need a version for libraries?
20771 need_version=$need_version
20773 # Whether dlopen is supported.
20774 dlopen_support=$enable_dlopen
20776 # Whether dlopen of programs is supported.
20777 dlopen_self=$enable_dlopen_self
20779 # Whether dlopen of statically linked programs is supported.
20780 dlopen_self_static=$enable_dlopen_self_static
20782 # Compiler flag to prevent dynamic linking.
20783 link_static_flag=$lt_lt_prog_compiler_static_F77
20785 # Compiler flag to turn off builtin functions.
20786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20788 # Compiler flag to allow reflexive dlopens.
20789 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20791 # Compiler flag to generate shared objects directly from archives.
20792 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20794 # Compiler flag to generate thread-safe objects.
20795 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20797 # Library versioning type.
20798 version_type=$version_type
20800 # Format of library name prefix.
20801 libname_spec=$lt_libname_spec
20803 # List of archive names. First name is the real one, the rest are links.
20804 # The last name is the one that the linker finds with -lNAME.
20805 library_names_spec=$lt_library_names_spec
20807 # The coded name of the library, if different from the real name.
20808 soname_spec=$lt_soname_spec
20810 # Commands used to build and install an old-style archive.
20812 old_archive_cmds=$lt_old_archive_cmds_F77
20813 old_postinstall_cmds=$lt_old_postinstall_cmds
20814 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20816 # Create an old-style archive from a shared archive.
20817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20819 # Create a temporary old-style archive to link instead of a shared archive.
20820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20822 # Commands used to build and install a shared archive.
20823 archive_cmds=$lt_archive_cmds_F77
20824 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20825 postinstall_cmds=$lt_postinstall_cmds
20826 postuninstall_cmds=$lt_postuninstall_cmds
20828 # Commands used to build a loadable module (assumed same as above if empty)
20829 module_cmds=$lt_module_cmds_F77
20830 module_expsym_cmds=$lt_module_expsym_cmds_F77
20832 # Commands to strip libraries.
20833 old_striplib=$lt_old_striplib
20834 striplib=$lt_striplib
20836 # Dependencies to place before the objects being linked to create a
20838 predep_objects=$lt_predep_objects_F77
20840 # Dependencies to place after the objects being linked to create a
20842 postdep_objects=$lt_postdep_objects_F77
20844 # Dependencies to place before the objects being linked to create a
20846 predeps=$lt_predeps_F77
20848 # Dependencies to place after the objects being linked to create a
20850 postdeps=$lt_postdeps_F77
20852 # The library search path used internally by the compiler when linking
20853 # a shared library.
20854 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20856 # Method to check whether dependent libraries are shared objects.
20857 deplibs_check_method=$lt_deplibs_check_method
20859 # Command to use when deplibs_check_method == file_magic.
20860 file_magic_cmd=$lt_file_magic_cmd
20862 # Flag that allows shared libraries with undefined symbols to be built.
20863 allow_undefined_flag=$lt_allow_undefined_flag_F77
20865 # Flag that forces no undefined symbols.
20866 no_undefined_flag=$lt_no_undefined_flag_F77
20868 # Commands used to finish a libtool library installation in a directory.
20869 finish_cmds=$lt_finish_cmds
20871 # Same as above, but a single script fragment to be evaled but not shown.
20872 finish_eval=$lt_finish_eval
20874 # Take the output of nm and produce a listing of raw symbols and C names.
20875 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20877 # Transform the output of nm in a proper C declaration
20878 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20880 # Transform the output of nm in a C name address pair
20881 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20883 # This is the shared library runtime path variable.
20884 runpath_var=$runpath_var
20886 # This is the shared library path variable.
20887 shlibpath_var=$shlibpath_var
20889 # Is shlibpath searched before the hard-coded library search path?
20890 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20892 # How to hardcode a shared library path into an executable.
20893 hardcode_action=$hardcode_action_F77
20895 # Whether we should hardcode library paths into libraries.
20896 hardcode_into_libs=$hardcode_into_libs
20898 # Flag to hardcode \$libdir into a binary during linking.
20899 # This must work even if \$libdir does not exist.
20900 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20902 # If ld is used when linking, flag to hardcode \$libdir into
20903 # a binary during linking. This must work even if \$libdir does
20905 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20907 # Whether we need a single -rpath flag with a separated argument.
20908 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20910 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20911 # resulting binary.
20912 hardcode_direct=$hardcode_direct_F77
20914 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20915 # resulting binary.
20916 hardcode_minus_L=$hardcode_minus_L_F77
20918 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20919 # the resulting binary.
20920 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20922 # Set to yes if building a shared library automatically hardcodes DIR into the library
20923 # and all subsequent libraries and executables linked against it.
20924 hardcode_automatic=$hardcode_automatic_F77
20926 # Variables whose values should be saved in libtool wrapper scripts and
20927 # restored at relink time.
20928 variables_saved_for_relink="$variables_saved_for_relink"
20930 # Whether libtool must link a program against all its dependency libraries.
20931 link_all_deplibs=$link_all_deplibs_F77
20933 # Compile-time system search path for libraries
20934 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20936 # Run-time system search path for libraries
20937 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20939 # Fix the shell variable \$srcfile for the compiler.
20940 fix_srcfile_path="$fix_srcfile_path_F77"
20942 # Set to yes if exported symbols are required.
20943 always_export_symbols=$always_export_symbols_F77
20945 # The commands to list exported symbols.
20946 export_symbols_cmds=$lt_export_symbols_cmds_F77
20948 # The commands to extract the exported symbol list from a shared archive.
20949 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20951 # Symbols that should not be listed in the preloaded symbols.
20952 exclude_expsyms=$lt_exclude_expsyms_F77
20954 # Symbols that must always be exported.
20955 include_expsyms=$lt_include_expsyms_F77
20957 # ### END LIBTOOL TAG CONFIG: $tagname
20963 # If there is no Makefile yet, we rely on a make rule to execute
20964 # `config.status --recheck' to rerun these tests and create the
20965 # libtool script then.
20966 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20967 if test -f "$ltmain_in"; then
20968 test -f Makefile && make "$ltmain"
20974 ac_cpp='$CPP $CPPFLAGS'
20975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20987 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20989 ac_cpp='$CPP $CPPFLAGS'
20990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20995 # Source file extension for Java test sources.
20998 # Object file extension for compiled Java test sources.
21002 # Code to be used in simple compile tests
21003 lt_simple_compile_test_code="class foo {}\n"
21005 # Code to be used in simple link tests
21006 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21008 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21010 # If no C compiler was specified, use CC.
21013 # Allow CC to be a program name with arguments.
21017 # Allow CC to be a program name with arguments.
21023 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21024 archive_cmds_need_lc_GCJ=no
21027 lt_prog_compiler_no_builtin_flag_GCJ=
21029 if test "$GCC" = yes; then
21030 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21033 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21034 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21035 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21038 lt_cv_prog_compiler_rtti_exceptions=no
21039 ac_outfile=conftest.$ac_objext
21040 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21041 lt_compiler_flag="-fno-rtti -fno-exceptions"
21042 # Insert the option either (1) after the last *FLAGS variable, or
21043 # (2) before a word containing "conftest.", or (3) at the end.
21044 # Note that $ac_compile itself does not contain backslashes and begins
21045 # with a dollar sign (not a hyphen), so the echo should work correctly.
21046 # The option is referenced via a variable to avoid confusing sed.
21047 lt_compile=`echo "$ac_compile" | $SED \
21048 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21050 -e 's:$: $lt_compiler_flag:'`
21051 (eval echo "\"\$as_me:21051: $lt_compile\"" >&5)
21052 (eval "$lt_compile" 2>conftest.err)
21054 cat conftest.err >&5
21055 echo "$as_me:21055: \$? = $ac_status" >&5
21056 if (exit $ac_status) && test -s "$ac_outfile"; then
21057 # The compiler can only warn and ignore the option if not recognized
21058 # So say no if there are warnings
21059 if test ! -s conftest.err; then
21060 lt_cv_prog_compiler_rtti_exceptions=yes
21066 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21067 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21069 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21070 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21077 lt_prog_compiler_wl_GCJ=
21078 lt_prog_compiler_pic_GCJ=
21079 lt_prog_compiler_static_GCJ=
21081 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21082 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21084 if test "$GCC" = yes; then
21085 lt_prog_compiler_wl_GCJ='-Wl,'
21086 lt_prog_compiler_static_GCJ='-static'
21090 # All AIX code is PIC.
21091 if test "$host_cpu" = ia64; then
21092 # AIX 5 now supports IA64 processor
21093 lt_prog_compiler_static_GCJ='-Bstatic'
21098 # FIXME: we need at least 68020 code to build shared libraries, but
21099 # adding the `-m68020' flag to GCC prevents building anything better,
21101 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21104 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21105 # PIC is the default for these OSes.
21108 mingw* | pw32* | os2*)
21109 # This hack is so that the source file can tell whether it is being
21110 # built for inclusion in a dll (and should export symbols for example).
21111 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21114 darwin* | rhapsody*)
21115 # PIC is the default on this platform
21116 # Common symbols not allowed in MH_DYLIB files
21117 lt_prog_compiler_pic_GCJ='-fno-common'
21121 # Just because we use GCC doesn't mean we suddenly get shared libraries
21122 # on systems that don't support them.
21123 lt_prog_compiler_can_build_shared_GCJ=no
21128 if test -d /usr/nec; then
21129 lt_prog_compiler_pic_GCJ=-Kconform_pic
21134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21135 # not for PA HP-UX.
21136 case "$host_cpu" in
21141 lt_prog_compiler_pic_GCJ='-fPIC'
21147 lt_prog_compiler_pic_GCJ='-fPIC'
21151 # PORTME Check for flag to pass linker flags through the system compiler.
21154 lt_prog_compiler_wl_GCJ='-Wl,'
21155 if test "$host_cpu" = ia64; then
21156 # AIX 5 now supports IA64 processor
21157 lt_prog_compiler_static_GCJ='-Bstatic'
21159 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21163 # PIC is the default on this platform
21164 # Common symbols not allowed in MH_DYLIB files
21165 case "$cc_basename" in
21167 lt_prog_compiler_pic_GCJ='-qnocommon'
21168 lt_prog_compiler_wl_GCJ='-Wl,'
21173 mingw* | pw32* | os2*)
21174 # This hack is so that the source file can tell whether it is being
21175 # built for inclusion in a dll (and should export symbols for example).
21176 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21179 hpux9* | hpux10* | hpux11*)
21180 lt_prog_compiler_wl_GCJ='-Wl,'
21181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21182 # not for PA HP-UX.
21183 case "$host_cpu" in
21188 lt_prog_compiler_pic_GCJ='+Z'
21191 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21192 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21195 irix5* | irix6* | nonstopux*)
21196 lt_prog_compiler_wl_GCJ='-Wl,'
21197 # PIC (with -KPIC) is the default.
21198 lt_prog_compiler_static_GCJ='-non_shared'
21202 lt_prog_compiler_pic_GCJ='-KPIC'
21203 lt_prog_compiler_static_GCJ='-Bstatic'
21209 lt_prog_compiler_wl_GCJ='-Wl,'
21210 lt_prog_compiler_pic_GCJ='-KPIC'
21211 lt_prog_compiler_static_GCJ='-static'
21214 lt_prog_compiler_wl_GCJ='-Wl,'
21215 # All Alpha code is PIC.
21216 lt_prog_compiler_static_GCJ='-non_shared'
21221 osf3* | osf4* | osf5*)
21222 lt_prog_compiler_wl_GCJ='-Wl,'
21223 # All OSF/1 code is PIC.
21224 lt_prog_compiler_static_GCJ='-non_shared'
21228 lt_prog_compiler_pic_GCJ='-Kpic'
21229 lt_prog_compiler_static_GCJ='-dn'
21233 lt_prog_compiler_wl_GCJ='-Wl,'
21234 lt_prog_compiler_pic_GCJ='-KPIC'
21235 lt_prog_compiler_static_GCJ='-Bstatic'
21239 lt_prog_compiler_wl_GCJ='-Qoption ld '
21240 lt_prog_compiler_pic_GCJ='-PIC'
21241 lt_prog_compiler_static_GCJ='-Bstatic'
21244 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21245 lt_prog_compiler_wl_GCJ='-Wl,'
21246 lt_prog_compiler_pic_GCJ='-KPIC'
21247 lt_prog_compiler_static_GCJ='-Bstatic'
21251 if test -d /usr/nec ;then
21252 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21253 lt_prog_compiler_static_GCJ='-Bstatic'
21258 lt_prog_compiler_pic_GCJ='-pic'
21259 lt_prog_compiler_static_GCJ='-Bstatic'
21263 lt_prog_compiler_can_build_shared_GCJ=no
21268 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21269 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21272 # Check to make sure the PIC flag actually works.
21274 if test -n "$lt_prog_compiler_pic_GCJ"; then
21276 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21277 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21278 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21281 lt_prog_compiler_pic_works_GCJ=no
21282 ac_outfile=conftest.$ac_objext
21283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21284 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21285 # Insert the option either (1) after the last *FLAGS variable, or
21286 # (2) before a word containing "conftest.", or (3) at the end.
21287 # Note that $ac_compile itself does not contain backslashes and begins
21288 # with a dollar sign (not a hyphen), so the echo should work correctly.
21289 # The option is referenced via a variable to avoid confusing sed.
21290 lt_compile=`echo "$ac_compile" | $SED \
21291 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21293 -e 's:$: $lt_compiler_flag:'`
21294 (eval echo "\"\$as_me:21294: $lt_compile\"" >&5)
21295 (eval "$lt_compile" 2>conftest.err)
21297 cat conftest.err >&5
21298 echo "$as_me:21298: \$? = $ac_status" >&5
21299 if (exit $ac_status) && test -s "$ac_outfile"; then
21300 # The compiler can only warn and ignore the option if not recognized
21301 # So say no if there are warnings
21302 if test ! -s conftest.err; then
21303 lt_prog_compiler_pic_works_GCJ=yes
21309 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21310 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21312 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21313 case $lt_prog_compiler_pic_GCJ in
21315 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21318 lt_prog_compiler_pic_GCJ=
21319 lt_prog_compiler_can_build_shared_GCJ=no
21324 # For platforms which do not support PIC, -DPIC is meaningless:
21326 lt_prog_compiler_pic_GCJ=
21329 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21333 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21334 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21335 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21338 lt_cv_prog_compiler_c_o_GCJ=no
21339 $rm -r conftest 2>/dev/null
21343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21345 lt_compiler_flag="-o out/conftest2.$ac_objext"
21346 # Insert the option either (1) after the last *FLAGS variable, or
21347 # (2) before a word containing "conftest.", or (3) at the end.
21348 # Note that $ac_compile itself does not contain backslashes and begins
21349 # with a dollar sign (not a hyphen), so the echo should work correctly.
21350 lt_compile=`echo "$ac_compile" | $SED \
21351 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21353 -e 's:$: $lt_compiler_flag:'`
21354 (eval echo "\"\$as_me:21354: $lt_compile\"" >&5)
21355 (eval "$lt_compile" 2>out/conftest.err)
21357 cat out/conftest.err >&5
21358 echo "$as_me:21358: \$? = $ac_status" >&5
21359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21361 # The compiler can only warn and ignore the option if not recognized
21362 # So say no if there are warnings
21363 if test ! -s out/conftest.err; then
21364 lt_cv_prog_compiler_c_o_GCJ=yes
21369 # SGI C++ compiler will create directory out/ii_files/ for
21370 # template instantiation
21371 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21372 $rm out/* && rmdir out
21378 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21379 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21382 hard_links="nottested"
21383 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21384 # do not overwrite the value of need_locks provided by the user
21385 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21386 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21391 ln conftest.a conftest.b 2>&5 || hard_links=no
21392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21393 echo "$as_me:$LINENO: result: $hard_links" >&5
21394 echo "${ECHO_T}$hard_links" >&6
21395 if test "$hard_links" = no; then
21396 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21397 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21404 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21405 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21408 allow_undefined_flag_GCJ=
21409 enable_shared_with_static_runtimes_GCJ=no
21411 archive_expsym_cmds_GCJ=
21412 old_archive_From_new_cmds_GCJ=
21413 old_archive_from_expsyms_cmds_GCJ=
21414 export_dynamic_flag_spec_GCJ=
21415 whole_archive_flag_spec_GCJ=
21416 thread_safe_flag_spec_GCJ=
21417 hardcode_libdir_flag_spec_GCJ=
21418 hardcode_libdir_flag_spec_ld_GCJ=
21419 hardcode_libdir_separator_GCJ=
21420 hardcode_direct_GCJ=no
21421 hardcode_minus_L_GCJ=no
21422 hardcode_shlibpath_var_GCJ=unsupported
21423 link_all_deplibs_GCJ=unknown
21424 hardcode_automatic_GCJ=no
21426 module_expsym_cmds_GCJ=
21427 always_export_symbols_GCJ=no
21428 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21429 # include_expsyms should be a list of space-separated symbols to be *always*
21430 # included in the symbol list
21431 include_expsyms_GCJ=
21432 # exclude_expsyms can be an extended regexp of symbols to exclude
21433 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21434 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21435 # as well as any symbol that contains `d'.
21436 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21437 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21438 # platforms (ab)use it in PIC code, but their linkers get confused if
21439 # the symbol is explicitly referenced. Since portable code cannot
21440 # rely on this symbol name, it's probably fine to never include it in
21441 # preloaded symbol tables.
21442 extract_expsyms_cmds=
21445 cygwin* | mingw* | pw32*)
21446 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21447 # When not using gcc, we currently assume that we are using
21448 # Microsoft Visual C++.
21449 if test "$GCC" != yes; then
21459 if test "$with_gnu_ld" = yes; then
21460 # If archive_cmds runs LD, not CC, wlarc should be empty
21463 # See if GNU ld supports shared libraries.
21465 aix3* | aix4* | aix5*)
21466 # On AIX/PPC, the GNU linker is very broken
21467 if test "$host_cpu" != ia64; then
21471 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21472 *** to be unable to reliably create shared libraries on AIX.
21473 *** Therefore, libtool is disabling shared libraries support. If you
21474 *** really care for shared libraries, you may want to modify your PATH
21475 *** so that a non-GNU linker is found, and then restart.
21482 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)'
21483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21484 hardcode_minus_L_GCJ=yes
21486 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21487 # that the semantics of dynamic libraries on AmigaOS, at least up
21488 # to version 4, is to share data among multiple programs linked
21489 # with the same dynamic library. Since this doesn't match the
21490 # behavior of shared libraries on other platforms, we can't use
21496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21497 allow_undefined_flag_GCJ=unsupported
21498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21499 # support --undefined. This deserves some investigation. FIXME
21500 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21506 cygwin* | mingw* | pw32*)
21507 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21508 # as there is no search path for DLLs.
21509 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21510 allow_undefined_flag_GCJ=unsupported
21511 always_export_symbols_GCJ=no
21512 enable_shared_with_static_runtimes_GCJ=yes
21513 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21515 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21517 # If the export-symbols file already is a .def file (1st line
21518 # is EXPORTS), use it as is; otherwise, prepend...
21519 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21520 cp $export_symbols $output_objdir/$soname.def;
21522 echo EXPORTS > $output_objdir/$soname.def;
21523 cat $export_symbols >> $output_objdir/$soname.def;
21525 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21533 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21536 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21537 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21542 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21546 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21547 *** create shared libraries on Solaris systems. Therefore, libtool
21548 *** is disabling shared libraries support. We urge you to upgrade GNU
21549 *** binutils to release 2.9.1 or newer. Another option is to modify
21550 *** your PATH or compiler configuration so that the native linker is
21551 *** used, and then restart.
21554 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21555 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21556 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21563 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21565 hardcode_direct_GCJ=yes
21566 hardcode_shlibpath_var_GCJ=no
21570 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21571 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21572 archive_cmds_GCJ="$tmp_archive_cmds"
21573 supports_anon_versioning=no
21574 case `$LD -v 2>/dev/null` in
21575 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21576 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21577 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21578 *\ 2.11.*) ;; # other 2.11 versions
21579 *) supports_anon_versioning=yes ;;
21581 if test $supports_anon_versioning = yes; then
21582 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21584 $echo "local: *; };" >> $output_objdir/$libname.ver~
21585 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21587 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21596 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21597 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21604 if test "$ld_shlibs_GCJ" = yes; then
21605 runpath_var=LD_RUN_PATH
21606 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21607 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21608 # ancient GNU ld didn't support --whole-archive et. al.
21609 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21610 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21612 whole_archive_flag_spec_GCJ=
21616 # PORTME fill in a description of your system's linker (not GNU ld)
21619 allow_undefined_flag_GCJ=unsupported
21620 always_export_symbols_GCJ=yes
21621 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'
21622 # Note: this linker hardcodes the directories in LIBPATH if there
21623 # are no directories specified by -L.
21624 hardcode_minus_L_GCJ=yes
21625 if test "$GCC" = yes && test -z "$link_static_flag"; then
21626 # Neither direct hardcoding nor static linking is supported with a
21628 hardcode_direct_GCJ=unsupported
21633 if test "$host_cpu" = ia64; then
21634 # On IA64, the linker does run time linking by default, so we don't
21635 # have to do anything special.
21636 aix_use_runtimelinking=no
21637 exp_sym_flag='-Bexport'
21640 # If we're using GNU nm, then we don't want the "-C" option.
21641 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21642 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21643 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'
21645 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'
21647 aix_use_runtimelinking=no
21649 # Test if we are trying to use run time linking or normal
21650 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21651 # need to do runtime linking.
21652 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21653 for ld_flag in $LDFLAGS; do
21654 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21655 aix_use_runtimelinking=yes
21661 exp_sym_flag='-bexport'
21662 no_entry_flag='-bnoentry'
21665 # When large executables or shared objects are built, AIX ld can
21666 # have problems creating the table of contents. If linking a library
21667 # or program results in "error TOC overflow" add -mminimal-toc to
21668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21671 archive_cmds_GCJ=''
21672 hardcode_direct_GCJ=yes
21673 hardcode_libdir_separator_GCJ=':'
21674 link_all_deplibs_GCJ=yes
21676 if test "$GCC" = yes; then
21677 case $host_os in aix4.012|aix4.012.*)
21678 # We only want to do this on AIX 4.2 and lower, the check
21679 # below for broken collect2 doesn't work under 4.3+
21680 collect2name=`${CC} -print-prog-name=collect2`
21681 if test -f "$collect2name" && \
21682 strings "$collect2name" | grep resolve_lib_name >/dev/null
21684 # We have reworked collect2
21685 hardcode_direct_GCJ=yes
21687 # We have old collect2
21688 hardcode_direct_GCJ=unsupported
21689 # It fails to find uninstalled libraries when the uninstalled
21690 # path is not listed in the libpath. Setting hardcode_minus_L
21691 # to unsupported forces relinking
21692 hardcode_minus_L_GCJ=yes
21693 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21694 hardcode_libdir_separator_GCJ=
21697 shared_flag='-shared'
21700 if test "$host_cpu" = ia64; then
21701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21702 # chokes on -Wl,-G. The following line is correct:
21705 if test "$aix_use_runtimelinking" = yes; then
21706 shared_flag='${wl}-G'
21708 shared_flag='${wl}-bM:SRE'
21713 # It seems that -bexpall does not export symbols beginning with
21714 # underscore (_), so it is better to generate a list of symbols to export.
21715 always_export_symbols_GCJ=yes
21716 if test "$aix_use_runtimelinking" = yes; then
21717 # Warning - without using the other runtime loading flags (-brtl),
21718 # -berok will link without error, but may produce a broken library.
21719 allow_undefined_flag_GCJ='-berok'
21720 # Determine the default libpath from the value encoded in an empty executable.
21721 cat >conftest.$ac_ext <<_ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21736 rm -f conftest.$ac_objext conftest$ac_exeext
21737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21738 (eval $ac_link) 2>conftest.er1
21740 grep -v '^ *+' conftest.er1 >conftest.err
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } &&
21745 { ac_try='test -z "$ac_c_werror_flag"
21746 || test ! -s conftest.err'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; } &&
21752 { ac_try='test -s conftest$ac_exeext'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }; then
21759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21761 # Check for a 64-bit object if we didn't find anything.
21762 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; }
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21769 rm -f conftest.err conftest.$ac_objext \
21770 conftest$ac_exeext conftest.$ac_ext
21771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21773 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21774 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"
21776 if test "$host_cpu" = ia64; then
21777 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21778 allow_undefined_flag_GCJ="-z nodefs"
21779 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"
21781 # Determine the default libpath from the value encoded in an empty executable.
21782 cat >conftest.$ac_ext <<_ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21799 (eval $ac_link) 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } &&
21806 { ac_try='test -z "$ac_c_werror_flag"
21807 || test ! -s conftest.err'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; } &&
21813 { ac_try='test -s conftest$ac_exeext'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
21820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21822 # Check for a 64-bit object if we didn't find anything.
21823 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; }
21826 echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21830 rm -f conftest.err conftest.$ac_objext \
21831 conftest$ac_exeext conftest.$ac_ext
21832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21834 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21835 # Warning - without using the other run time loading flags,
21836 # -berok will link without error, but may produce a broken library.
21837 no_undefined_flag_GCJ=' ${wl}-bernotok'
21838 allow_undefined_flag_GCJ=' ${wl}-berok'
21839 # -bexpall does not export symbols beginning with underscore (_)
21840 always_export_symbols_GCJ=yes
21841 # Exported symbols can be pulled into shared objects from archives
21842 whole_archive_flag_spec_GCJ=' '
21843 archive_cmds_need_lc_GCJ=yes
21844 # This is similar to how AIX traditionally builds it's shared libraries.
21845 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'
21851 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)'
21852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21853 hardcode_minus_L_GCJ=yes
21854 # see comment about different semantics on the GNU ld section
21859 export_dynamic_flag_spec_GCJ=-rdynamic
21862 cygwin* | mingw* | pw32*)
21863 # When not using gcc, we currently assume that we are using
21864 # Microsoft Visual C++.
21865 # hardcode_libdir_flag_spec is actually meaningless, as there is
21866 # no search path for DLLs.
21867 hardcode_libdir_flag_spec_GCJ=' '
21868 allow_undefined_flag_GCJ=unsupported
21869 # Tell ltmain to make .lib files, not .a files.
21871 # Tell ltmain to make .dll files, not .so files.
21873 # FIXME: Setting linknames here is a bad hack.
21874 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21875 # The linker will automatically build a .lib file if we build a DLL.
21876 old_archive_From_new_cmds_GCJ='true'
21877 # FIXME: Should let the user specify the lib program.
21878 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21879 fix_srcfile_path='`cygpath -w "$srcfile"`'
21880 enable_shared_with_static_runtimes_GCJ=yes
21883 darwin* | rhapsody*)
21885 rhapsody* | darwin1.[012])
21886 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21889 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21890 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21892 case ${MACOSX_DEPLOYMENT_TARGET} in
21894 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21897 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21903 archive_cmds_need_lc_GCJ=no
21904 hardcode_direct_GCJ=no
21905 hardcode_automatic_GCJ=yes
21906 hardcode_shlibpath_var_GCJ=unsupported
21907 whole_archive_flag_spec_GCJ=''
21908 link_all_deplibs_GCJ=yes
21909 if test "$GCC" = yes ; then
21910 output_verbose_link_cmd='echo'
21911 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21912 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21913 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21914 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}'
21915 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}'
21917 case "$cc_basename" in
21919 output_verbose_link_cmd='echo'
21920 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21921 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21922 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21923 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}'
21924 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}'
21934 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21935 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21936 hardcode_shlibpath_var_GCJ=no
21943 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21944 # support. Future versions do this automatically, but an explicit c++rt0.o
21945 # does not break anything, and helps significantly (at the cost of a little
21948 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21949 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21950 hardcode_direct_GCJ=yes
21951 hardcode_shlibpath_var_GCJ=no
21954 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21956 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21957 hardcode_direct_GCJ=yes
21958 hardcode_minus_L_GCJ=yes
21959 hardcode_shlibpath_var_GCJ=no
21962 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21963 freebsd* | kfreebsd*-gnu)
21964 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21965 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21966 hardcode_direct_GCJ=yes
21967 hardcode_shlibpath_var_GCJ=no
21971 if test "$GCC" = yes; then
21972 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'
21974 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'
21976 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21977 hardcode_libdir_separator_GCJ=:
21978 hardcode_direct_GCJ=yes
21980 # hardcode_minus_L: Not really in the search PATH,
21981 # but as the default location of the library.
21982 hardcode_minus_L_GCJ=yes
21983 export_dynamic_flag_spec_GCJ='${wl}-E'
21987 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21988 case "$host_cpu" in
21990 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21993 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21997 case "$host_cpu" in
21999 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22002 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22006 if test "$with_gnu_ld" = no; then
22007 case "$host_cpu" in
22009 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22010 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22011 hardcode_libdir_separator_GCJ=:
22012 hardcode_direct_GCJ=no
22013 hardcode_shlibpath_var_GCJ=no
22016 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22017 hardcode_direct_GCJ=no
22018 hardcode_shlibpath_var_GCJ=no
22020 # hardcode_minus_L: Not really in the search PATH,
22021 # but as the default location of the library.
22022 hardcode_minus_L_GCJ=yes
22025 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22026 hardcode_libdir_separator_GCJ=:
22027 hardcode_direct_GCJ=yes
22028 export_dynamic_flag_spec_GCJ='${wl}-E'
22030 # hardcode_minus_L: Not really in the search PATH,
22031 # but as the default location of the library.
22032 hardcode_minus_L_GCJ=yes
22038 irix5* | irix6* | nonstopux*)
22039 if test "$GCC" = yes; then
22040 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'
22042 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'
22043 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22045 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22046 hardcode_libdir_separator_GCJ=:
22047 link_all_deplibs_GCJ=yes
22051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22052 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22054 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22056 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22057 hardcode_direct_GCJ=yes
22058 hardcode_shlibpath_var_GCJ=no
22062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22063 hardcode_direct_GCJ=yes
22064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22065 hardcode_libdir_separator_GCJ=:
22066 hardcode_shlibpath_var_GCJ=no
22070 hardcode_direct_GCJ=yes
22071 hardcode_shlibpath_var_GCJ=no
22072 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22073 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22074 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22076 export_dynamic_flag_spec_GCJ='${wl}-E'
22079 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22080 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22081 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22084 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22085 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22093 hardcode_minus_L_GCJ=yes
22094 allow_undefined_flag_GCJ=unsupported
22095 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'
22096 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22100 if test "$GCC" = yes; then
22101 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22102 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'
22104 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22105 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'
22107 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22108 hardcode_libdir_separator_GCJ=:
22111 osf4* | osf5*) # as osf3* with the addition of -msym flag
22112 if test "$GCC" = yes; then
22113 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22114 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'
22115 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22117 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22118 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'
22119 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~
22120 $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'
22122 # Both c and cxx compiler support -rpath directly
22123 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22125 hardcode_libdir_separator_GCJ=:
22129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22130 hardcode_shlibpath_var_GCJ=no
22131 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22132 runpath_var=LD_RUN_PATH
22133 hardcode_runpath_var=yes
22137 no_undefined_flag_GCJ=' -z text'
22138 if test "$GCC" = yes; then
22139 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22140 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22141 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22143 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22144 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22147 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22148 hardcode_shlibpath_var_GCJ=no
22150 solaris2.[0-5] | solaris2.[0-5].*) ;;
22151 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22152 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22154 link_all_deplibs_GCJ=yes
22158 if test "x$host_vendor" = xsequent; then
22159 # Use $CC to link under sequent, because it throws in some extra .o
22160 # files that make .init and .fini sections work.
22161 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22163 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22165 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22166 hardcode_direct_GCJ=yes
22167 hardcode_minus_L_GCJ=yes
22168 hardcode_shlibpath_var_GCJ=no
22172 case $host_vendor in
22174 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22175 hardcode_direct_GCJ=yes # is this really true???
22178 ## LD is ld it makes a PLAMLIB
22179 ## CC just makes a GrossModule.
22180 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22181 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22182 hardcode_direct_GCJ=no
22185 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22186 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22189 runpath_var='LD_RUN_PATH'
22190 hardcode_shlibpath_var_GCJ=no
22194 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22195 hardcode_shlibpath_var_GCJ=no
22196 export_dynamic_flag_spec_GCJ='-Bexport'
22200 if test -d /usr/nec; then
22201 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22202 hardcode_shlibpath_var_GCJ=no
22203 runpath_var=LD_RUN_PATH
22204 hardcode_runpath_var=yes
22210 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22211 hardcode_direct_GCJ=yes
22212 hardcode_minus_L_GCJ=no
22213 hardcode_shlibpath_var_GCJ=no
22214 hardcode_runpath_var=yes
22215 runpath_var=LD_RUN_PATH
22218 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22219 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22220 if test "$GCC" = yes; then
22221 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22223 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22225 runpath_var='LD_RUN_PATH'
22226 hardcode_shlibpath_var_GCJ=no
22230 no_undefined_flag_GCJ=' -z text'
22231 # $CC -shared without GNU ld will not create a library from C++
22232 # object files and a static libstdc++, better avoid it by now
22233 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22234 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22235 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22236 hardcode_libdir_flag_spec_GCJ=
22237 hardcode_shlibpath_var_GCJ=no
22238 runpath_var='LD_RUN_PATH'
22242 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22243 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22244 hardcode_shlibpath_var_GCJ=no
22253 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22254 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22255 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22257 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22258 if test "$GCC" = yes; then
22259 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22263 # Do we need to explicitly link libc?
22265 case "x$archive_cmds_need_lc_GCJ" in
22267 # Assume -lc should be added
22268 archive_cmds_need_lc_GCJ=yes
22270 if test "$enable_shared" = yes && test "$GCC" = yes; then
22271 case $archive_cmds_GCJ in
22273 # FIXME: we may have to deal with multi-command sequences.
22276 # Test whether the compiler implicitly links with -lc since on some
22277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22278 # to ld, don't add -lc before -lgcc.
22279 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22280 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22285 (eval $ac_compile) 2>&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } 2>conftest.err; then
22291 libobjs=conftest.$ac_objext
22293 wl=$lt_prog_compiler_wl_GCJ
22299 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22300 allow_undefined_flag_GCJ=
22301 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22302 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }
22307 archive_cmds_need_lc_GCJ=no
22309 archive_cmds_need_lc_GCJ=yes
22311 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22313 cat conftest.err 1>&5
22316 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22317 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22324 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22325 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22326 library_names_spec=
22327 libname_spec='lib$name'
22331 postuninstall_cmds=
22335 shlibpath_overrides_runpath=unknown
22337 dynamic_linker="$host_os ld.so"
22338 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22339 if test "$GCC" = yes; then
22340 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22341 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22342 # if the path contains ";" then we assume it to be the separator
22343 # otherwise default to the standard path separator (i.e. ":") - it is
22344 # assumed that no part of a normal pathname contains ";" but that should
22345 # okay in the real world where ";" in dirpaths is itself problematic.
22346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22353 need_lib_prefix=unknown
22354 hardcode_into_libs=no
22356 # when you set need_version to no, make sure it does not cause -set_version
22357 # flags to be left without arguments
22358 need_version=unknown
22363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22364 shlibpath_var=LIBPATH
22366 # AIX 3 has no versioning support, so we append a major version to the name.
22367 soname_spec='${libname}${release}${shared_ext}$major'
22374 hardcode_into_libs=yes
22375 if test "$host_cpu" = ia64; then
22376 # AIX 5 supports IA64
22377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22378 shlibpath_var=LD_LIBRARY_PATH
22380 # With GCC up to 2.95.x, collect2 would create an import file
22381 # for dependence libraries. The import file would start with
22382 # the line `#! .'. This would cause the generated library to
22383 # depend on `.', always an invalid library. This was fixed in
22384 # development snapshots of GCC prior to 3.0.
22386 aix4 | aix4.[01] | aix4.[01].*)
22387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22389 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22392 can_build_shared=no
22396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22397 # soname into executable. Probably we can add versioning support to
22398 # collect2, so additional links can be useful in future.
22399 if test "$aix_use_runtimelinking" = yes; then
22400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22401 # instead of lib<name>.a to let people know that these are not
22402 # typical AIX shared libraries.
22403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22405 # We preserve .a as extension for shared libraries through AIX4.2
22406 # and later when we are not doing run time linking.
22407 library_names_spec='${libname}${release}.a $libname.a'
22408 soname_spec='${libname}${release}${shared_ext}$major'
22410 shlibpath_var=LIBPATH
22415 library_names_spec='$libname.ixlibrary $libname.a'
22416 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22417 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'
22421 library_names_spec='${libname}${shared_ext}'
22422 dynamic_linker="$host_os ld.so"
22423 shlibpath_var=LIBRARY_PATH
22429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22430 soname_spec='${libname}${release}${shared_ext}$major'
22431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22432 shlibpath_var=LD_LIBRARY_PATH
22433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22435 # the default ld.so.conf also contains /usr/contrib/lib and
22436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22437 # libtool to hard-code these into programs
22440 cygwin* | mingw* | pw32*)
22441 version_type=windows
22446 case $GCC,$host_os in
22447 yes,cygwin* | yes,mingw* | yes,pw32*)
22448 library_names_spec='$libname.dll.a'
22449 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22450 postinstall_cmds='base_file=`basename \${file}`~
22451 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22452 dldir=$destdir/`dirname \$dlpath`~
22453 test -d \$dldir || mkdir -p \$dldir~
22454 $install_prog $dir/$dlname \$dldir/$dlname'
22455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22456 dlpath=$dir/\$dldll~
22458 shlibpath_overrides_runpath=yes
22462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22463 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22464 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22467 # MinGW DLLs use traditional 'lib' prefix
22468 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22469 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22470 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22471 # It is most probably a Windows format PATH printed by
22472 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22473 # path with ; separators, and with drive letters. We can handle the
22474 # drive letters (cygwin fileutils understands them), so leave them,
22475 # especially as we might pass files found there to a mingw objdump,
22476 # which wouldn't understand a cygwinified path. Ahh.
22477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22483 # pw32 DLLs use 'pw' prefix rather than 'lib'
22484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22493 dynamic_linker='Win32 ld.exe'
22494 # FIXME: first we should search . and the directory the executable is in
22498 darwin* | rhapsody*)
22499 dynamic_linker="$host_os dyld"
22500 version_type=darwin
22503 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22504 soname_spec='${libname}${release}${major}$shared_ext'
22505 shlibpath_overrides_runpath=yes
22506 shlibpath_var=DYLD_LIBRARY_PATH
22507 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22508 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22509 if test "$GCC" = yes; then
22510 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"`
22512 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22514 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22522 soname_spec='${libname}${release}${shared_ext}$major'
22523 shlibpath_var=LD_LIBRARY_PATH
22534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22535 soname_spec='${libname}${release}${shared_ext}$major'
22536 shlibpath_var=LD_LIBRARY_PATH
22537 shlibpath_overrides_runpath=no
22538 hardcode_into_libs=yes
22539 dynamic_linker='GNU ld.so'
22543 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22544 version_type=freebsd-$objformat
22545 case $version_type in
22547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22556 shlibpath_var=LD_LIBRARY_PATH
22559 shlibpath_overrides_runpath=yes
22561 freebsd3.01* | freebsdelf3.01*)
22562 shlibpath_overrides_runpath=yes
22563 hardcode_into_libs=yes
22566 shlibpath_overrides_runpath=no
22567 hardcode_into_libs=yes
22576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22577 soname_spec='${libname}${release}${shared_ext}$major'
22578 shlibpath_var=LD_LIBRARY_PATH
22579 hardcode_into_libs=yes
22582 hpux9* | hpux10* | hpux11*)
22583 # Give a soname corresponding to the major version so that dld.sl refuses to
22584 # link against other versions.
22588 case "$host_cpu" in
22591 hardcode_into_libs=yes
22592 dynamic_linker="$host_os dld.so"
22593 shlibpath_var=LD_LIBRARY_PATH
22594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22596 soname_spec='${libname}${release}${shared_ext}$major'
22597 if test "X$HPUX_IA64_MODE" = X32; then
22598 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22600 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22602 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22606 hardcode_into_libs=yes
22607 dynamic_linker="$host_os dld.sl"
22608 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611 soname_spec='${libname}${release}${shared_ext}$major'
22612 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22617 dynamic_linker="$host_os dld.sl"
22618 shlibpath_var=SHLIB_PATH
22619 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621 soname_spec='${libname}${release}${shared_ext}$major'
22624 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22625 postinstall_cmds='chmod 555 $lib'
22628 irix5* | irix6* | nonstopux*)
22630 nonstopux*) version_type=nonstopux ;;
22632 if test "$lt_cv_prog_gnu_ld" = yes; then
22640 soname_spec='${libname}${release}${shared_ext}$major'
22641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22643 irix5* | nonstopux*)
22644 libsuff= shlibsuff=
22647 case $LD in # libtool.m4 will add one of these switches to LD
22648 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22649 libsuff= shlibsuff= libmagic=32-bit;;
22650 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22651 libsuff=32 shlibsuff=N32 libmagic=N32;;
22652 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22653 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22654 *) libsuff= shlibsuff= libmagic=never-match;;
22658 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22659 shlibpath_overrides_runpath=no
22660 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22661 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22662 hardcode_into_libs=yes
22665 # No shared lib support for Linux oldld, aout, or coff.
22666 linux*oldld* | linux*aout* | linux*coff*)
22670 # This must be Linux ELF.
22675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22676 soname_spec='${libname}${release}${shared_ext}$major'
22677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22678 shlibpath_var=LD_LIBRARY_PATH
22679 shlibpath_overrides_runpath=no
22680 # This implies no fast_install, which is unacceptable.
22681 # Some rework will be needed to allow for fast_install
22682 # before this can be enabled.
22683 hardcode_into_libs=yes
22685 # Append ld.so.conf contents to the search path
22686 if test -f /etc/ld.so.conf; then
22687 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22691 # We used to test for /lib/ld.so.1 and disable shared libraries on
22692 # powerpc, because MkLinux only supported shared libraries with the
22693 # GNU dynamic linker. Since this was broken with cross compilers,
22694 # most powerpc-linux boxes support dynamic linking these days and
22695 # people can always --disable-shared, the test was removed, and we
22696 # assume the GNU/Linux dynamic linker is in use.
22697 dynamic_linker='GNU/Linux ld.so'
22704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22705 soname_spec='${libname}${release}${shared_ext}$major'
22706 shlibpath_var=LD_LIBRARY_PATH
22707 shlibpath_overrides_runpath=no
22708 hardcode_into_libs=yes
22709 dynamic_linker='GNU ld.so'
22716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22719 dynamic_linker='NetBSD (a.out) ld.so'
22721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22722 soname_spec='${libname}${release}${shared_ext}$major'
22723 dynamic_linker='NetBSD ld.elf_so'
22725 shlibpath_var=LD_LIBRARY_PATH
22726 shlibpath_overrides_runpath=yes
22727 hardcode_into_libs=yes
22732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733 shlibpath_var=LD_LIBRARY_PATH
22734 shlibpath_overrides_runpath=yes
22741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22742 soname_spec='${libname}${release}${shared_ext}$major'
22743 shlibpath_var=LD_LIBRARY_PATH
22744 shlibpath_overrides_runpath=yes
22751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22753 shlibpath_var=LD_LIBRARY_PATH
22754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22756 openbsd2.[89] | openbsd2.[89].*)
22757 shlibpath_overrides_runpath=no
22760 shlibpath_overrides_runpath=yes
22764 shlibpath_overrides_runpath=yes
22769 libname_spec='$name'
22772 library_names_spec='$libname${shared_ext} $libname.a'
22773 dynamic_linker='OS/2 ld.exe'
22774 shlibpath_var=LIBPATH
22777 osf3* | osf4* | osf5*)
22781 soname_spec='${libname}${release}${shared_ext}$major'
22782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783 shlibpath_var=LD_LIBRARY_PATH
22784 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22785 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22790 soname_spec='${libname}${release}${shared_ext}$major'
22791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792 shlibpath_var=LD_LIBRARY_PATH
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22800 soname_spec='${libname}${release}${shared_ext}$major'
22801 shlibpath_var=LD_LIBRARY_PATH
22802 shlibpath_overrides_runpath=yes
22803 hardcode_into_libs=yes
22804 # ldd complains unless libraries are executable
22805 postinstall_cmds='chmod +x $lib'
22810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22811 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22812 shlibpath_var=LD_LIBRARY_PATH
22813 shlibpath_overrides_runpath=yes
22814 if test "$with_gnu_ld" = yes; then
22820 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22823 soname_spec='${libname}${release}${shared_ext}$major'
22824 shlibpath_var=LD_LIBRARY_PATH
22825 case $host_vendor in
22827 shlibpath_overrides_runpath=no
22829 export_dynamic_flag_spec='${wl}-Blargedynsym'
22830 runpath_var=LD_RUN_PATH
22838 shlibpath_overrides_runpath=no
22839 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22845 if test -d /usr/nec ;then
22847 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22848 soname_spec='$libname${shared_ext}.$major'
22849 shlibpath_var=LD_LIBRARY_PATH
22855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22856 soname_spec='${libname}${release}${shared_ext}$major'
22857 shlibpath_var=LD_LIBRARY_PATH
22864 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22865 echo "${ECHO_T}$dynamic_linker" >&6
22866 test "$dynamic_linker" = no && can_build_shared=no
22868 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22869 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22870 hardcode_action_GCJ=
22871 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22872 test -n "$runpath_var_GCJ" || \
22873 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22875 # We can hardcode non-existant directories.
22876 if test "$hardcode_direct_GCJ" != no &&
22877 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22878 # have to relink, otherwise we might link with an installed library
22879 # when we should be linking with a yet-to-be-installed one
22880 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22881 test "$hardcode_minus_L_GCJ" != no; then
22882 # Linking always hardcodes the temporary library directory.
22883 hardcode_action_GCJ=relink
22885 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22886 hardcode_action_GCJ=immediate
22889 # We cannot hardcode anything, or else we can only hardcode existing
22891 hardcode_action_GCJ=unsupported
22893 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22894 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22896 if test "$hardcode_action_GCJ" = relink; then
22897 # Fast installation is not supported
22898 enable_fast_install=no
22899 elif test "$shlibpath_overrides_runpath" = yes ||
22900 test "$enable_shared" = no; then
22901 # Fast installation is not necessary
22902 enable_fast_install=needless
22907 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22908 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22909 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22910 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22911 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22912 echo "$as_me:$LINENO: result: yes" >&5
22913 echo "${ECHO_T}yes" >&6
22915 # FIXME - insert some real tests, host_os isn't really good enough
22918 if test -n "$STRIP" ; then
22919 striplib="$STRIP -x"
22920 echo "$as_me:$LINENO: result: yes" >&5
22921 echo "${ECHO_T}yes" >&6
22923 echo "$as_me:$LINENO: result: no" >&5
22924 echo "${ECHO_T}no" >&6
22928 echo "$as_me:$LINENO: result: no" >&5
22929 echo "${ECHO_T}no" >&6
22934 if test "x$enable_dlopen" != xyes; then
22935 enable_dlopen=unknown
22936 enable_dlopen_self=unknown
22937 enable_dlopen_self_static=unknown
22944 lt_cv_dlopen="load_add_on"
22946 lt_cv_dlopen_self=yes
22950 lt_cv_dlopen="LoadLibrary"
22955 lt_cv_dlopen="dlopen"
22960 # if libdl is installed we need to link against it
22961 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22962 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22966 ac_check_lib_save_LIBS=$LIBS
22968 cat >conftest.$ac_ext <<_ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h. */
22975 /* Override any gcc2 internal prototype to avoid an error. */
22979 /* We use char because int might match the return type of a gcc2
22980 builtin and then its argument prototype would still apply. */
22990 rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22992 (eval $ac_link) 2>conftest.er1
22994 grep -v '^ *+' conftest.er1 >conftest.err
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } &&
22999 { ac_try='test -z "$ac_c_werror_flag"
23000 || test ! -s conftest.err'
23001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002 (eval $ac_try) 2>&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); }; } &&
23006 { ac_try='test -s conftest$ac_exeext'
23007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008 (eval $ac_try) 2>&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); }; }; then
23012 ac_cv_lib_dl_dlopen=yes
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23017 ac_cv_lib_dl_dlopen=no
23019 rm -f conftest.err conftest.$ac_objext \
23020 conftest$ac_exeext conftest.$ac_ext
23021 LIBS=$ac_check_lib_save_LIBS
23023 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23024 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23025 if test $ac_cv_lib_dl_dlopen = yes; then
23026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23029 lt_cv_dlopen="dyld"
23031 lt_cv_dlopen_self=yes
23038 echo "$as_me:$LINENO: checking for shl_load" >&5
23039 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23040 if test "${ac_cv_func_shl_load+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23043 cat >conftest.$ac_ext <<_ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23049 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23051 #define shl_load innocuous_shl_load
23053 /* System header to define __stub macros and hopefully few prototypes,
23054 which can conflict with char shl_load (); below.
23055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23056 <limits.h> exists even on freestanding compilers. */
23059 # include <limits.h>
23061 # include <assert.h>
23066 /* Override any gcc2 internal prototype to avoid an error. */
23071 /* We use char because int might match the return type of a gcc2
23072 builtin and then its argument prototype would still apply. */
23074 /* The GNU C library defines this for functions which it implements
23075 to always fail with ENOSYS. Some functions are actually named
23076 something starting with __ and the normal name is an alias. */
23077 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23080 char (*f) () = shl_load;
23089 return f != shl_load;
23094 rm -f conftest.$ac_objext conftest$ac_exeext
23095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23096 (eval $ac_link) 2>conftest.er1
23098 grep -v '^ *+' conftest.er1 >conftest.err
23100 cat conftest.err >&5
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); } &&
23103 { ac_try='test -z "$ac_c_werror_flag"
23104 || test ! -s conftest.err'
23105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106 (eval $ac_try) 2>&5
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); }; } &&
23110 { ac_try='test -s conftest$ac_exeext'
23111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23112 (eval $ac_try) 2>&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); }; }; then
23116 ac_cv_func_shl_load=yes
23118 echo "$as_me: failed program was:" >&5
23119 sed 's/^/| /' conftest.$ac_ext >&5
23121 ac_cv_func_shl_load=no
23123 rm -f conftest.err conftest.$ac_objext \
23124 conftest$ac_exeext conftest.$ac_ext
23126 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23127 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23128 if test $ac_cv_func_shl_load = yes; then
23129 lt_cv_dlopen="shl_load"
23131 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23132 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23133 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23134 echo $ECHO_N "(cached) $ECHO_C" >&6
23136 ac_check_lib_save_LIBS=$LIBS
23138 cat >conftest.$ac_ext <<_ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h. */
23145 /* Override any gcc2 internal prototype to avoid an error. */
23149 /* We use char because int might match the return type of a gcc2
23150 builtin and then its argument prototype would still apply. */
23160 rm -f conftest.$ac_objext conftest$ac_exeext
23161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23162 (eval $ac_link) 2>conftest.er1
23164 grep -v '^ *+' conftest.er1 >conftest.err
23166 cat conftest.err >&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
23169 { ac_try='test -z "$ac_c_werror_flag"
23170 || test ! -s conftest.err'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; } &&
23176 { ac_try='test -s conftest$ac_exeext'
23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; }; then
23182 ac_cv_lib_dld_shl_load=yes
23184 echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23187 ac_cv_lib_dld_shl_load=no
23189 rm -f conftest.err conftest.$ac_objext \
23190 conftest$ac_exeext conftest.$ac_ext
23191 LIBS=$ac_check_lib_save_LIBS
23193 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23194 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23195 if test $ac_cv_lib_dld_shl_load = yes; then
23196 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23198 echo "$as_me:$LINENO: checking for dlopen" >&5
23199 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23200 if test "${ac_cv_func_dlopen+set}" = set; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23203 cat >conftest.$ac_ext <<_ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23209 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23211 #define dlopen innocuous_dlopen
23213 /* System header to define __stub macros and hopefully few prototypes,
23214 which can conflict with char dlopen (); below.
23215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23216 <limits.h> exists even on freestanding compilers. */
23219 # include <limits.h>
23221 # include <assert.h>
23226 /* Override any gcc2 internal prototype to avoid an error. */
23231 /* We use char because int might match the return type of a gcc2
23232 builtin and then its argument prototype would still apply. */
23234 /* The GNU C library defines this for functions which it implements
23235 to always fail with ENOSYS. Some functions are actually named
23236 something starting with __ and the normal name is an alias. */
23237 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23240 char (*f) () = dlopen;
23249 return f != dlopen;
23254 rm -f conftest.$ac_objext conftest$ac_exeext
23255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23256 (eval $ac_link) 2>conftest.er1
23258 grep -v '^ *+' conftest.er1 >conftest.err
23260 cat conftest.err >&5
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } &&
23263 { ac_try='test -z "$ac_c_werror_flag"
23264 || test ! -s conftest.err'
23265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266 (eval $ac_try) 2>&5
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); }; } &&
23270 { ac_try='test -s conftest$ac_exeext'
23271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272 (eval $ac_try) 2>&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); }; }; then
23276 ac_cv_func_dlopen=yes
23278 echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 ac_cv_func_dlopen=no
23283 rm -f conftest.err conftest.$ac_objext \
23284 conftest$ac_exeext conftest.$ac_ext
23286 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23287 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23288 if test $ac_cv_func_dlopen = yes; then
23289 lt_cv_dlopen="dlopen"
23291 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23292 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23293 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23296 ac_check_lib_save_LIBS=$LIBS
23298 cat >conftest.$ac_ext <<_ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23305 /* Override any gcc2 internal prototype to avoid an error. */
23309 /* We use char because int might match the return type of a gcc2
23310 builtin and then its argument prototype would still apply. */
23320 rm -f conftest.$ac_objext conftest$ac_exeext
23321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23322 (eval $ac_link) 2>conftest.er1
23324 grep -v '^ *+' conftest.er1 >conftest.err
23326 cat conftest.err >&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } &&
23329 { ac_try='test -z "$ac_c_werror_flag"
23330 || test ! -s conftest.err'
23331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332 (eval $ac_try) 2>&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); }; } &&
23336 { ac_try='test -s conftest$ac_exeext'
23337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; }; then
23342 ac_cv_lib_dl_dlopen=yes
23344 echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23347 ac_cv_lib_dl_dlopen=no
23349 rm -f conftest.err conftest.$ac_objext \
23350 conftest$ac_exeext conftest.$ac_ext
23351 LIBS=$ac_check_lib_save_LIBS
23353 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23354 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23355 if test $ac_cv_lib_dl_dlopen = yes; then
23356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23358 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23359 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23360 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23361 echo $ECHO_N "(cached) $ECHO_C" >&6
23363 ac_check_lib_save_LIBS=$LIBS
23364 LIBS="-lsvld $LIBS"
23365 cat >conftest.$ac_ext <<_ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h. */
23372 /* Override any gcc2 internal prototype to avoid an error. */
23376 /* We use char because int might match the return type of a gcc2
23377 builtin and then its argument prototype would still apply. */
23387 rm -f conftest.$ac_objext conftest$ac_exeext
23388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23389 (eval $ac_link) 2>conftest.er1
23391 grep -v '^ *+' conftest.er1 >conftest.err
23393 cat conftest.err >&5
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } &&
23396 { ac_try='test -z "$ac_c_werror_flag"
23397 || test ! -s conftest.err'
23398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399 (eval $ac_try) 2>&5
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); }; } &&
23403 { ac_try='test -s conftest$ac_exeext'
23404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405 (eval $ac_try) 2>&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; }; then
23409 ac_cv_lib_svld_dlopen=yes
23411 echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23414 ac_cv_lib_svld_dlopen=no
23416 rm -f conftest.err conftest.$ac_objext \
23417 conftest$ac_exeext conftest.$ac_ext
23418 LIBS=$ac_check_lib_save_LIBS
23420 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23421 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23422 if test $ac_cv_lib_svld_dlopen = yes; then
23423 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23425 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23426 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23427 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23428 echo $ECHO_N "(cached) $ECHO_C" >&6
23430 ac_check_lib_save_LIBS=$LIBS
23432 cat >conftest.$ac_ext <<_ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h. */
23439 /* Override any gcc2 internal prototype to avoid an error. */
23443 /* We use char because int might match the return type of a gcc2
23444 builtin and then its argument prototype would still apply. */
23454 rm -f conftest.$ac_objext conftest$ac_exeext
23455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23456 (eval $ac_link) 2>conftest.er1
23458 grep -v '^ *+' conftest.er1 >conftest.err
23460 cat conftest.err >&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } &&
23463 { ac_try='test -z "$ac_c_werror_flag"
23464 || test ! -s conftest.err'
23465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466 (eval $ac_try) 2>&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); }; } &&
23470 { ac_try='test -s conftest$ac_exeext'
23471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472 (eval $ac_try) 2>&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; }; then
23476 ac_cv_lib_dld_dld_link=yes
23478 echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23481 ac_cv_lib_dld_dld_link=no
23483 rm -f conftest.err conftest.$ac_objext \
23484 conftest$ac_exeext conftest.$ac_ext
23485 LIBS=$ac_check_lib_save_LIBS
23487 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23488 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23489 if test $ac_cv_lib_dld_dld_link = yes; then
23490 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23511 if test "x$lt_cv_dlopen" != xno; then
23517 case $lt_cv_dlopen in
23519 save_CPPFLAGS="$CPPFLAGS"
23520 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23522 save_LDFLAGS="$LDFLAGS"
23523 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23526 LIBS="$lt_cv_dlopen_libs $LIBS"
23528 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23529 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23530 if test "${lt_cv_dlopen_self+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 if test "$cross_compiling" = yes; then :
23534 lt_cv_dlopen_self=cross
23536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23537 lt_status=$lt_dlunknown
23538 cat > conftest.$ac_ext <<EOF
23539 #line 23539 "configure"
23540 #include "confdefs.h"
23549 # define LT_DLGLOBAL RTLD_GLOBAL
23552 # define LT_DLGLOBAL DL_GLOBAL
23554 # define LT_DLGLOBAL 0
23558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23559 find out it does not work in some platform. */
23560 #ifndef LT_DLLAZY_OR_NOW
23562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23565 # define LT_DLLAZY_OR_NOW DL_LAZY
23568 # define LT_DLLAZY_OR_NOW RTLD_NOW
23571 # define LT_DLLAZY_OR_NOW DL_NOW
23573 # define LT_DLLAZY_OR_NOW 0
23581 extern "C" void exit (int);
23584 void fnord() { int i=42;}
23587 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23588 int status = $lt_dlunknown;
23592 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23593 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23594 /* dlclose (self); */
23600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23601 (eval $ac_link) 2>&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23605 (./conftest; exit; ) 2>/dev/null
23607 case x$lt_status in
23608 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23609 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23610 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23613 # compilation failed
23614 lt_cv_dlopen_self=no
23621 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23622 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23624 if test "x$lt_cv_dlopen_self" = xyes; then
23625 LDFLAGS="$LDFLAGS $link_static_flag"
23626 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23627 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23628 if test "${lt_cv_dlopen_self_static+set}" = set; then
23629 echo $ECHO_N "(cached) $ECHO_C" >&6
23631 if test "$cross_compiling" = yes; then :
23632 lt_cv_dlopen_self_static=cross
23634 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23635 lt_status=$lt_dlunknown
23636 cat > conftest.$ac_ext <<EOF
23637 #line 23637 "configure"
23638 #include "confdefs.h"
23647 # define LT_DLGLOBAL RTLD_GLOBAL
23650 # define LT_DLGLOBAL DL_GLOBAL
23652 # define LT_DLGLOBAL 0
23656 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23657 find out it does not work in some platform. */
23658 #ifndef LT_DLLAZY_OR_NOW
23660 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23663 # define LT_DLLAZY_OR_NOW DL_LAZY
23666 # define LT_DLLAZY_OR_NOW RTLD_NOW
23669 # define LT_DLLAZY_OR_NOW DL_NOW
23671 # define LT_DLLAZY_OR_NOW 0
23679 extern "C" void exit (int);
23682 void fnord() { int i=42;}
23685 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23686 int status = $lt_dlunknown;
23690 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23691 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23692 /* dlclose (self); */
23698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23699 (eval $ac_link) 2>&5
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23703 (./conftest; exit; ) 2>/dev/null
23705 case x$lt_status in
23706 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23707 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23708 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23711 # compilation failed
23712 lt_cv_dlopen_self_static=no
23719 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23720 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23723 CPPFLAGS="$save_CPPFLAGS"
23724 LDFLAGS="$save_LDFLAGS"
23729 case $lt_cv_dlopen_self in
23730 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23731 *) enable_dlopen_self=unknown ;;
23734 case $lt_cv_dlopen_self_static in
23735 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23736 *) enable_dlopen_self_static=unknown ;;
23741 # The else clause should only fire when bootstrapping the
23742 # libtool distribution, otherwise you forgot to ship ltmain.sh
23743 # with your package, and you will get complaints that there are
23744 # no rules to generate ltmain.sh.
23745 if test -f "$ltmain"; then
23746 # See if we are running on zsh, and set the options which allow our commands through
23747 # without removal of \ escapes.
23748 if test -n "${ZSH_VERSION+set}" ; then
23749 setopt NO_GLOB_SUBST
23751 # Now quote all the things that may contain metacharacters while being
23752 # careful not to overquote the AC_SUBSTed values. We take copies of the
23753 # variables and quote the copies for generation of the libtool script.
23754 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23756 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23757 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23758 deplibs_check_method reload_flag reload_cmds need_locks \
23759 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23760 lt_cv_sys_global_symbol_to_c_name_address \
23761 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23762 old_postinstall_cmds old_postuninstall_cmds \
23766 lt_prog_compiler_wl_GCJ \
23767 lt_prog_compiler_pic_GCJ \
23768 lt_prog_compiler_static_GCJ \
23769 lt_prog_compiler_no_builtin_flag_GCJ \
23770 export_dynamic_flag_spec_GCJ \
23771 thread_safe_flag_spec_GCJ \
23772 whole_archive_flag_spec_GCJ \
23773 enable_shared_with_static_runtimes_GCJ \
23774 old_archive_cmds_GCJ \
23775 old_archive_from_new_cmds_GCJ \
23776 predep_objects_GCJ \
23777 postdep_objects_GCJ \
23780 compiler_lib_search_path_GCJ \
23782 archive_expsym_cmds_GCJ \
23783 postinstall_cmds_GCJ \
23784 postuninstall_cmds_GCJ \
23785 old_archive_from_expsyms_cmds_GCJ \
23786 allow_undefined_flag_GCJ \
23787 no_undefined_flag_GCJ \
23788 export_symbols_cmds_GCJ \
23789 hardcode_libdir_flag_spec_GCJ \
23790 hardcode_libdir_flag_spec_ld_GCJ \
23791 hardcode_libdir_separator_GCJ \
23792 hardcode_automatic_GCJ \
23794 module_expsym_cmds_GCJ \
23795 lt_cv_prog_compiler_c_o_GCJ \
23796 exclude_expsyms_GCJ \
23797 include_expsyms_GCJ; do
23800 old_archive_cmds_GCJ | \
23801 old_archive_from_new_cmds_GCJ | \
23802 archive_cmds_GCJ | \
23803 archive_expsym_cmds_GCJ | \
23804 module_cmds_GCJ | \
23805 module_expsym_cmds_GCJ | \
23806 old_archive_from_expsyms_cmds_GCJ | \
23807 export_symbols_cmds_GCJ | \
23808 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23809 postinstall_cmds | postuninstall_cmds | \
23810 old_postinstall_cmds | old_postuninstall_cmds | \
23811 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23812 # Double-quote double-evaled strings.
23813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23816 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23822 *'\$0 --fallback-echo"')
23823 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23829 cat <<__EOF__ >> "$cfgfile"
23830 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23832 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23834 # Shell to use when invoking shell scripts.
23837 # Whether or not to build shared libraries.
23838 build_libtool_libs=$enable_shared
23840 # Whether or not to build static libraries.
23841 build_old_libs=$enable_static
23843 # Whether or not to add -lc for building shared libraries.
23844 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23846 # Whether or not to disallow shared libs when runtime libs are static
23847 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23849 # Whether or not to optimize for fast installation.
23850 fast_install=$enable_fast_install
23853 host_alias=$host_alias
23856 # An echo program that does not interpret backslashes.
23861 AR_FLAGS=$lt_AR_FLAGS
23866 # A language-specific compiler.
23867 CC=$lt_compiler_GCJ
23869 # Is the compiler the GNU C compiler?
23875 # The linker used to build libraries.
23878 # Whether we need hard or soft links.
23881 # A BSD-compatible nm program.
23884 # A symbol stripping program
23887 # Used to examine libraries when file_magic_cmd begins "file"
23888 MAGIC_CMD=$MAGIC_CMD
23890 # Used on cygwin: DLL creation program.
23893 # Used on cygwin: object dumper.
23896 # Used on cygwin: assembler.
23899 # The name of the directory that contains temporary libtool files.
23902 # How to create reloadable object files.
23903 reload_flag=$lt_reload_flag
23904 reload_cmds=$lt_reload_cmds
23906 # How to pass a linker flag through the compiler.
23907 wl=$lt_lt_prog_compiler_wl_GCJ
23909 # Object file suffix (normally "o").
23910 objext="$ac_objext"
23912 # Old archive suffix (normally "a").
23915 # Shared library suffix (normally ".so").
23916 shrext_cmds='$shrext_cmds'
23918 # Executable file suffix (normally "").
23921 # Additional compiler flags for building library objects.
23922 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23925 # What is the maximum length of a command?
23926 max_cmd_len=$lt_cv_sys_max_cmd_len
23928 # Does compiler simultaneously support -c and -o options?
23929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23931 # Must we lock files when doing compilation ?
23932 need_locks=$lt_need_locks
23934 # Do we need the lib prefix for modules?
23935 need_lib_prefix=$need_lib_prefix
23937 # Do we need a version for libraries?
23938 need_version=$need_version
23940 # Whether dlopen is supported.
23941 dlopen_support=$enable_dlopen
23943 # Whether dlopen of programs is supported.
23944 dlopen_self=$enable_dlopen_self
23946 # Whether dlopen of statically linked programs is supported.
23947 dlopen_self_static=$enable_dlopen_self_static
23949 # Compiler flag to prevent dynamic linking.
23950 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23952 # Compiler flag to turn off builtin functions.
23953 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23955 # Compiler flag to allow reflexive dlopens.
23956 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23958 # Compiler flag to generate shared objects directly from archives.
23959 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23961 # Compiler flag to generate thread-safe objects.
23962 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23964 # Library versioning type.
23965 version_type=$version_type
23967 # Format of library name prefix.
23968 libname_spec=$lt_libname_spec
23970 # List of archive names. First name is the real one, the rest are links.
23971 # The last name is the one that the linker finds with -lNAME.
23972 library_names_spec=$lt_library_names_spec
23974 # The coded name of the library, if different from the real name.
23975 soname_spec=$lt_soname_spec
23977 # Commands used to build and install an old-style archive.
23979 old_archive_cmds=$lt_old_archive_cmds_GCJ
23980 old_postinstall_cmds=$lt_old_postinstall_cmds
23981 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23983 # Create an old-style archive from a shared archive.
23984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23986 # Create a temporary old-style archive to link instead of a shared archive.
23987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23989 # Commands used to build and install a shared archive.
23990 archive_cmds=$lt_archive_cmds_GCJ
23991 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23992 postinstall_cmds=$lt_postinstall_cmds
23993 postuninstall_cmds=$lt_postuninstall_cmds
23995 # Commands used to build a loadable module (assumed same as above if empty)
23996 module_cmds=$lt_module_cmds_GCJ
23997 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23999 # Commands to strip libraries.
24000 old_striplib=$lt_old_striplib
24001 striplib=$lt_striplib
24003 # Dependencies to place before the objects being linked to create a
24005 predep_objects=$lt_predep_objects_GCJ
24007 # Dependencies to place after the objects being linked to create a
24009 postdep_objects=$lt_postdep_objects_GCJ
24011 # Dependencies to place before the objects being linked to create a
24013 predeps=$lt_predeps_GCJ
24015 # Dependencies to place after the objects being linked to create a
24017 postdeps=$lt_postdeps_GCJ
24019 # The library search path used internally by the compiler when linking
24020 # a shared library.
24021 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24023 # Method to check whether dependent libraries are shared objects.
24024 deplibs_check_method=$lt_deplibs_check_method
24026 # Command to use when deplibs_check_method == file_magic.
24027 file_magic_cmd=$lt_file_magic_cmd
24029 # Flag that allows shared libraries with undefined symbols to be built.
24030 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24032 # Flag that forces no undefined symbols.
24033 no_undefined_flag=$lt_no_undefined_flag_GCJ
24035 # Commands used to finish a libtool library installation in a directory.
24036 finish_cmds=$lt_finish_cmds
24038 # Same as above, but a single script fragment to be evaled but not shown.
24039 finish_eval=$lt_finish_eval
24041 # Take the output of nm and produce a listing of raw symbols and C names.
24042 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24044 # Transform the output of nm in a proper C declaration
24045 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24047 # Transform the output of nm in a C name address pair
24048 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24050 # This is the shared library runtime path variable.
24051 runpath_var=$runpath_var
24053 # This is the shared library path variable.
24054 shlibpath_var=$shlibpath_var
24056 # Is shlibpath searched before the hard-coded library search path?
24057 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24059 # How to hardcode a shared library path into an executable.
24060 hardcode_action=$hardcode_action_GCJ
24062 # Whether we should hardcode library paths into libraries.
24063 hardcode_into_libs=$hardcode_into_libs
24065 # Flag to hardcode \$libdir into a binary during linking.
24066 # This must work even if \$libdir does not exist.
24067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24069 # If ld is used when linking, flag to hardcode \$libdir into
24070 # a binary during linking. This must work even if \$libdir does
24072 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24074 # Whether we need a single -rpath flag with a separated argument.
24075 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24077 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24078 # resulting binary.
24079 hardcode_direct=$hardcode_direct_GCJ
24081 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24082 # resulting binary.
24083 hardcode_minus_L=$hardcode_minus_L_GCJ
24085 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24086 # the resulting binary.
24087 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24089 # Set to yes if building a shared library automatically hardcodes DIR into the library
24090 # and all subsequent libraries and executables linked against it.
24091 hardcode_automatic=$hardcode_automatic_GCJ
24093 # Variables whose values should be saved in libtool wrapper scripts and
24094 # restored at relink time.
24095 variables_saved_for_relink="$variables_saved_for_relink"
24097 # Whether libtool must link a program against all its dependency libraries.
24098 link_all_deplibs=$link_all_deplibs_GCJ
24100 # Compile-time system search path for libraries
24101 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24103 # Run-time system search path for libraries
24104 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24106 # Fix the shell variable \$srcfile for the compiler.
24107 fix_srcfile_path="$fix_srcfile_path_GCJ"
24109 # Set to yes if exported symbols are required.
24110 always_export_symbols=$always_export_symbols_GCJ
24112 # The commands to list exported symbols.
24113 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24115 # The commands to extract the exported symbol list from a shared archive.
24116 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24118 # Symbols that should not be listed in the preloaded symbols.
24119 exclude_expsyms=$lt_exclude_expsyms_GCJ
24121 # Symbols that must always be exported.
24122 include_expsyms=$lt_include_expsyms_GCJ
24124 # ### END LIBTOOL TAG CONFIG: $tagname
24130 # If there is no Makefile yet, we rely on a make rule to execute
24131 # `config.status --recheck' to rerun these tests and create the
24132 # libtool script then.
24133 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24134 if test -f "$ltmain_in"; then
24135 test -f Makefile && make "$ltmain"
24141 ac_cpp='$CPP $CPPFLAGS'
24142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24155 ac_cpp='$CPP $CPPFLAGS'
24156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24161 # Source file extension for RC test sources.
24164 # Object file extension for compiled RC test sources.
24168 # Code to be used in simple compile tests
24169 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24171 # Code to be used in simple link tests
24172 lt_simple_link_test_code="$lt_simple_compile_test_code"
24174 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24176 # If no C compiler was specified, use CC.
24179 # Allow CC to be a program name with arguments.
24183 # Allow CC to be a program name with arguments.
24188 lt_cv_prog_compiler_c_o_RC=yes
24190 # The else clause should only fire when bootstrapping the
24191 # libtool distribution, otherwise you forgot to ship ltmain.sh
24192 # with your package, and you will get complaints that there are
24193 # no rules to generate ltmain.sh.
24194 if test -f "$ltmain"; then
24195 # See if we are running on zsh, and set the options which allow our commands through
24196 # without removal of \ escapes.
24197 if test -n "${ZSH_VERSION+set}" ; then
24198 setopt NO_GLOB_SUBST
24200 # Now quote all the things that may contain metacharacters while being
24201 # careful not to overquote the AC_SUBSTed values. We take copies of the
24202 # variables and quote the copies for generation of the libtool script.
24203 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24205 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24206 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24207 deplibs_check_method reload_flag reload_cmds need_locks \
24208 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24209 lt_cv_sys_global_symbol_to_c_name_address \
24210 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24211 old_postinstall_cmds old_postuninstall_cmds \
24215 lt_prog_compiler_wl_RC \
24216 lt_prog_compiler_pic_RC \
24217 lt_prog_compiler_static_RC \
24218 lt_prog_compiler_no_builtin_flag_RC \
24219 export_dynamic_flag_spec_RC \
24220 thread_safe_flag_spec_RC \
24221 whole_archive_flag_spec_RC \
24222 enable_shared_with_static_runtimes_RC \
24223 old_archive_cmds_RC \
24224 old_archive_from_new_cmds_RC \
24225 predep_objects_RC \
24226 postdep_objects_RC \
24229 compiler_lib_search_path_RC \
24231 archive_expsym_cmds_RC \
24232 postinstall_cmds_RC \
24233 postuninstall_cmds_RC \
24234 old_archive_from_expsyms_cmds_RC \
24235 allow_undefined_flag_RC \
24236 no_undefined_flag_RC \
24237 export_symbols_cmds_RC \
24238 hardcode_libdir_flag_spec_RC \
24239 hardcode_libdir_flag_spec_ld_RC \
24240 hardcode_libdir_separator_RC \
24241 hardcode_automatic_RC \
24243 module_expsym_cmds_RC \
24244 lt_cv_prog_compiler_c_o_RC \
24245 exclude_expsyms_RC \
24246 include_expsyms_RC; do
24249 old_archive_cmds_RC | \
24250 old_archive_from_new_cmds_RC | \
24251 archive_cmds_RC | \
24252 archive_expsym_cmds_RC | \
24254 module_expsym_cmds_RC | \
24255 old_archive_from_expsyms_cmds_RC | \
24256 export_symbols_cmds_RC | \
24257 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24258 postinstall_cmds | postuninstall_cmds | \
24259 old_postinstall_cmds | old_postuninstall_cmds | \
24260 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24261 # Double-quote double-evaled strings.
24262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24271 *'\$0 --fallback-echo"')
24272 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24278 cat <<__EOF__ >> "$cfgfile"
24279 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24281 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24283 # Shell to use when invoking shell scripts.
24286 # Whether or not to build shared libraries.
24287 build_libtool_libs=$enable_shared
24289 # Whether or not to build static libraries.
24290 build_old_libs=$enable_static
24292 # Whether or not to add -lc for building shared libraries.
24293 build_libtool_need_lc=$archive_cmds_need_lc_RC
24295 # Whether or not to disallow shared libs when runtime libs are static
24296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24298 # Whether or not to optimize for fast installation.
24299 fast_install=$enable_fast_install
24302 host_alias=$host_alias
24305 # An echo program that does not interpret backslashes.
24310 AR_FLAGS=$lt_AR_FLAGS
24315 # A language-specific compiler.
24318 # Is the compiler the GNU C compiler?
24324 # The linker used to build libraries.
24327 # Whether we need hard or soft links.
24330 # A BSD-compatible nm program.
24333 # A symbol stripping program
24336 # Used to examine libraries when file_magic_cmd begins "file"
24337 MAGIC_CMD=$MAGIC_CMD
24339 # Used on cygwin: DLL creation program.
24342 # Used on cygwin: object dumper.
24345 # Used on cygwin: assembler.
24348 # The name of the directory that contains temporary libtool files.
24351 # How to create reloadable object files.
24352 reload_flag=$lt_reload_flag
24353 reload_cmds=$lt_reload_cmds
24355 # How to pass a linker flag through the compiler.
24356 wl=$lt_lt_prog_compiler_wl_RC
24358 # Object file suffix (normally "o").
24359 objext="$ac_objext"
24361 # Old archive suffix (normally "a").
24364 # Shared library suffix (normally ".so").
24365 shrext_cmds='$shrext_cmds'
24367 # Executable file suffix (normally "").
24370 # Additional compiler flags for building library objects.
24371 pic_flag=$lt_lt_prog_compiler_pic_RC
24374 # What is the maximum length of a command?
24375 max_cmd_len=$lt_cv_sys_max_cmd_len
24377 # Does compiler simultaneously support -c and -o options?
24378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24380 # Must we lock files when doing compilation ?
24381 need_locks=$lt_need_locks
24383 # Do we need the lib prefix for modules?
24384 need_lib_prefix=$need_lib_prefix
24386 # Do we need a version for libraries?
24387 need_version=$need_version
24389 # Whether dlopen is supported.
24390 dlopen_support=$enable_dlopen
24392 # Whether dlopen of programs is supported.
24393 dlopen_self=$enable_dlopen_self
24395 # Whether dlopen of statically linked programs is supported.
24396 dlopen_self_static=$enable_dlopen_self_static
24398 # Compiler flag to prevent dynamic linking.
24399 link_static_flag=$lt_lt_prog_compiler_static_RC
24401 # Compiler flag to turn off builtin functions.
24402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24404 # Compiler flag to allow reflexive dlopens.
24405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24407 # Compiler flag to generate shared objects directly from archives.
24408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24410 # Compiler flag to generate thread-safe objects.
24411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24413 # Library versioning type.
24414 version_type=$version_type
24416 # Format of library name prefix.
24417 libname_spec=$lt_libname_spec
24419 # List of archive names. First name is the real one, the rest are links.
24420 # The last name is the one that the linker finds with -lNAME.
24421 library_names_spec=$lt_library_names_spec
24423 # The coded name of the library, if different from the real name.
24424 soname_spec=$lt_soname_spec
24426 # Commands used to build and install an old-style archive.
24428 old_archive_cmds=$lt_old_archive_cmds_RC
24429 old_postinstall_cmds=$lt_old_postinstall_cmds
24430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24432 # Create an old-style archive from a shared archive.
24433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24435 # Create a temporary old-style archive to link instead of a shared archive.
24436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24438 # Commands used to build and install a shared archive.
24439 archive_cmds=$lt_archive_cmds_RC
24440 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24441 postinstall_cmds=$lt_postinstall_cmds
24442 postuninstall_cmds=$lt_postuninstall_cmds
24444 # Commands used to build a loadable module (assumed same as above if empty)
24445 module_cmds=$lt_module_cmds_RC
24446 module_expsym_cmds=$lt_module_expsym_cmds_RC
24448 # Commands to strip libraries.
24449 old_striplib=$lt_old_striplib
24450 striplib=$lt_striplib
24452 # Dependencies to place before the objects being linked to create a
24454 predep_objects=$lt_predep_objects_RC
24456 # Dependencies to place after the objects being linked to create a
24458 postdep_objects=$lt_postdep_objects_RC
24460 # Dependencies to place before the objects being linked to create a
24462 predeps=$lt_predeps_RC
24464 # Dependencies to place after the objects being linked to create a
24466 postdeps=$lt_postdeps_RC
24468 # The library search path used internally by the compiler when linking
24469 # a shared library.
24470 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24472 # Method to check whether dependent libraries are shared objects.
24473 deplibs_check_method=$lt_deplibs_check_method
24475 # Command to use when deplibs_check_method == file_magic.
24476 file_magic_cmd=$lt_file_magic_cmd
24478 # Flag that allows shared libraries with undefined symbols to be built.
24479 allow_undefined_flag=$lt_allow_undefined_flag_RC
24481 # Flag that forces no undefined symbols.
24482 no_undefined_flag=$lt_no_undefined_flag_RC
24484 # Commands used to finish a libtool library installation in a directory.
24485 finish_cmds=$lt_finish_cmds
24487 # Same as above, but a single script fragment to be evaled but not shown.
24488 finish_eval=$lt_finish_eval
24490 # Take the output of nm and produce a listing of raw symbols and C names.
24491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24493 # Transform the output of nm in a proper C declaration
24494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24496 # Transform the output of nm in a C name address pair
24497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24499 # This is the shared library runtime path variable.
24500 runpath_var=$runpath_var
24502 # This is the shared library path variable.
24503 shlibpath_var=$shlibpath_var
24505 # Is shlibpath searched before the hard-coded library search path?
24506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24508 # How to hardcode a shared library path into an executable.
24509 hardcode_action=$hardcode_action_RC
24511 # Whether we should hardcode library paths into libraries.
24512 hardcode_into_libs=$hardcode_into_libs
24514 # Flag to hardcode \$libdir into a binary during linking.
24515 # This must work even if \$libdir does not exist.
24516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24518 # If ld is used when linking, flag to hardcode \$libdir into
24519 # a binary during linking. This must work even if \$libdir does
24521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24523 # Whether we need a single -rpath flag with a separated argument.
24524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24527 # resulting binary.
24528 hardcode_direct=$hardcode_direct_RC
24530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24531 # resulting binary.
24532 hardcode_minus_L=$hardcode_minus_L_RC
24534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24535 # the resulting binary.
24536 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24538 # Set to yes if building a shared library automatically hardcodes DIR into the library
24539 # and all subsequent libraries and executables linked against it.
24540 hardcode_automatic=$hardcode_automatic_RC
24542 # Variables whose values should be saved in libtool wrapper scripts and
24543 # restored at relink time.
24544 variables_saved_for_relink="$variables_saved_for_relink"
24546 # Whether libtool must link a program against all its dependency libraries.
24547 link_all_deplibs=$link_all_deplibs_RC
24549 # Compile-time system search path for libraries
24550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24552 # Run-time system search path for libraries
24553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24555 # Fix the shell variable \$srcfile for the compiler.
24556 fix_srcfile_path="$fix_srcfile_path_RC"
24558 # Set to yes if exported symbols are required.
24559 always_export_symbols=$always_export_symbols_RC
24561 # The commands to list exported symbols.
24562 export_symbols_cmds=$lt_export_symbols_cmds_RC
24564 # The commands to extract the exported symbol list from a shared archive.
24565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24567 # Symbols that should not be listed in the preloaded symbols.
24568 exclude_expsyms=$lt_exclude_expsyms_RC
24570 # Symbols that must always be exported.
24571 include_expsyms=$lt_include_expsyms_RC
24573 # ### END LIBTOOL TAG CONFIG: $tagname
24579 # If there is no Makefile yet, we rely on a make rule to execute
24580 # `config.status --recheck' to rerun these tests and create the
24581 # libtool script then.
24582 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24583 if test -f "$ltmain_in"; then
24584 test -f Makefile && make "$ltmain"
24590 ac_cpp='$CPP $CPPFLAGS'
24591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24600 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24601 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24602 { (exit 1); exit 1; }; }
24606 # Append the new tag name to the list of available tags.
24607 if test -n "$tagname" ; then
24608 available_tags="$available_tags $tagname"
24614 # Now substitute the updated list of available tags.
24615 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24616 mv "${ofile}T" "$ofile"
24620 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24621 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24622 { (exit 1); exit 1; }; }
24628 # This can be used to rebuild libtool when needed
24629 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24631 # Always use our own libtool.
24632 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24634 # Prevent multiple expansion
24656 if test "$lt_cv_dlopen_self" = "yes" ; then
24658 cat >>confdefs.h <<\_ACEOF
24659 #define CAN_DLOPEN_SELF 1
24664 etags_version=`$ETAGS --version 2>&1`
24665 case "$etags_version" in
24666 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24667 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24668 *) ETAGSFLAGS="" ;;
24670 ETAGSFLAGS=$ETAGSFLAGS
24673 if test "$WITH_LLVMGCCDIR" = "default" ; then
24674 LLVMGCC="llvm-gcc${EXEEXT}"
24675 LLVMGXX="llvm-g++${EXEEXT}"
24676 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24677 set dummy $LLVMGCC; ac_word=$2
24678 echo "$as_me:$LINENO: checking for $ac_word" >&5
24679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24680 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24681 echo $ECHO_N "(cached) $ECHO_C" >&6
24685 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24689 for as_dir in $PATH
24692 test -z "$as_dir" && as_dir=.
24693 for ac_exec_ext in '' $ac_executable_extensions; do
24694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24695 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24705 LLVMGCC=$ac_cv_path_LLVMGCC
24707 if test -n "$LLVMGCC"; then
24708 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24709 echo "${ECHO_T}$LLVMGCC" >&6
24711 echo "$as_me:$LINENO: result: no" >&5
24712 echo "${ECHO_T}no" >&6
24715 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24716 set dummy $LLVMGXX; ac_word=$2
24717 echo "$as_me:$LINENO: checking for $ac_word" >&5
24718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24719 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24724 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24728 for as_dir in $PATH
24731 test -z "$as_dir" && as_dir=.
24732 for ac_exec_ext in '' $ac_executable_extensions; do
24733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24734 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24744 LLVMGXX=$ac_cv_path_LLVMGXX
24746 if test -n "$LLVMGXX"; then
24747 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24748 echo "${ECHO_T}$LLVMGXX" >&6
24750 echo "$as_me:$LINENO: result: no" >&5
24751 echo "${ECHO_T}no" >&6
24755 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24756 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24763 echo "$as_me:$LINENO: checking tool compatibility" >&5
24764 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24777 if test "$GCC" != "yes" && test "$ICC" != "yes"
24779 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24780 echo "$as_me: error: gcc|icc required but not found" >&2;}
24781 { (exit 1); exit 1; }; }
24784 if test "$GXX" != "yes" && test "$IXX" != "yes"
24786 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24787 echo "$as_me: error: g++|icc required but not found" >&2;}
24788 { (exit 1); exit 1; }; }
24791 if test "$GCC" = "yes"
24793 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24794 if test "$gccmajor" -lt "3"
24796 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24797 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24798 { (exit 1); exit 1; }; }
24802 if test -z "$llvm_cv_gnu_make_command"
24804 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24805 echo "$as_me: error: GNU Make required but not found" >&2;}
24806 { (exit 1); exit 1; }; }
24809 echo "$as_me:$LINENO: result: ok" >&5
24810 echo "${ECHO_T}ok" >&6
24814 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24815 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24816 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24817 echo $ECHO_N "(cached) $ECHO_C" >&6
24819 ac_check_lib_save_LIBS=$LIBS
24821 cat >conftest.$ac_ext <<_ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h. */
24828 /* Override any gcc2 internal prototype to avoid an error. */
24832 /* We use char because int might match the return type of a gcc2
24833 builtin and then its argument prototype would still apply. */
24843 rm -f conftest.$ac_objext conftest$ac_exeext
24844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24845 (eval $ac_link) 2>conftest.er1
24847 grep -v '^ *+' conftest.er1 >conftest.err
24849 cat conftest.err >&5
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } &&
24852 { ac_try='test -z "$ac_c_werror_flag"
24853 || test ! -s conftest.err'
24854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855 (eval $ac_try) 2>&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); }; } &&
24859 { ac_try='test -s conftest$ac_exeext'
24860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24861 (eval $ac_try) 2>&5
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; }; then
24865 ac_cv_lib_elf_elf_begin=yes
24867 echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24870 ac_cv_lib_elf_elf_begin=no
24872 rm -f conftest.err conftest.$ac_objext \
24873 conftest$ac_exeext conftest.$ac_ext
24874 LIBS=$ac_check_lib_save_LIBS
24876 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24877 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24878 if test $ac_cv_lib_elf_elf_begin = yes; then
24879 cat >>confdefs.h <<_ACEOF
24880 #define HAVE_LIBELF 1
24889 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24890 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24891 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24894 ac_func_search_save_LIBS=$LIBS
24895 ac_cv_search_lt_dlopen=no
24896 cat >conftest.$ac_ext <<_ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h. */
24903 /* Override any gcc2 internal prototype to avoid an error. */
24907 /* We use char because int might match the return type of a gcc2
24908 builtin and then its argument prototype would still apply. */
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920 (eval $ac_link) 2>conftest.er1
24922 grep -v '^ *+' conftest.er1 >conftest.err
24924 cat conftest.err >&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } &&
24927 { ac_try='test -z "$ac_c_werror_flag"
24928 || test ! -s conftest.err'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; } &&
24934 { ac_try='test -s conftest$ac_exeext'
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; }; then
24940 ac_cv_search_lt_dlopen="none required"
24942 echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24946 rm -f conftest.err conftest.$ac_objext \
24947 conftest$ac_exeext conftest.$ac_ext
24948 if test "$ac_cv_search_lt_dlopen" = no; then
24949 for ac_lib in ltdl; do
24950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24951 cat >conftest.$ac_ext <<_ACEOF
24954 cat confdefs.h >>conftest.$ac_ext
24955 cat >>conftest.$ac_ext <<_ACEOF
24956 /* end confdefs.h. */
24958 /* Override any gcc2 internal prototype to avoid an error. */
24962 /* We use char because int might match the return type of a gcc2
24963 builtin and then its argument prototype would still apply. */
24973 rm -f conftest.$ac_objext conftest$ac_exeext
24974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24975 (eval $ac_link) 2>conftest.er1
24977 grep -v '^ *+' conftest.er1 >conftest.err
24979 cat conftest.err >&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } &&
24982 { ac_try='test -z "$ac_c_werror_flag"
24983 || test ! -s conftest.err'
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; } &&
24989 { ac_try='test -s conftest$ac_exeext'
24990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991 (eval $ac_try) 2>&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; }; then
24995 ac_cv_search_lt_dlopen="-l$ac_lib"
24998 echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25002 rm -f conftest.err conftest.$ac_objext \
25003 conftest$ac_exeext conftest.$ac_ext
25006 LIBS=$ac_func_search_save_LIBS
25008 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25009 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25010 if test "$ac_cv_search_lt_dlopen" != no; then
25011 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25013 cat >>confdefs.h <<\_ACEOF
25014 #define HAVE_LT_DLOPEN 1
25018 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25019 not be available" >&5
25020 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25021 not be available" >&2;}
25025 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25026 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25027 if test "${ac_cv_search_dlopen+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25030 ac_func_search_save_LIBS=$LIBS
25031 ac_cv_search_dlopen=no
25032 cat >conftest.$ac_ext <<_ACEOF
25035 cat confdefs.h >>conftest.$ac_ext
25036 cat >>conftest.$ac_ext <<_ACEOF
25037 /* end confdefs.h. */
25039 /* Override any gcc2 internal prototype to avoid an error. */
25043 /* We use char because int might match the return type of a gcc2
25044 builtin and then its argument prototype would still apply. */
25054 rm -f conftest.$ac_objext conftest$ac_exeext
25055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25056 (eval $ac_link) 2>conftest.er1
25058 grep -v '^ *+' conftest.er1 >conftest.err
25060 cat conftest.err >&5
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } &&
25063 { ac_try='test -z "$ac_c_werror_flag"
25064 || test ! -s conftest.err'
25065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066 (eval $ac_try) 2>&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); }; } &&
25070 { ac_try='test -s conftest$ac_exeext'
25071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072 (eval $ac_try) 2>&5
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); }; }; then
25076 ac_cv_search_dlopen="none required"
25078 echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25082 rm -f conftest.err conftest.$ac_objext \
25083 conftest$ac_exeext conftest.$ac_ext
25084 if test "$ac_cv_search_dlopen" = no; then
25085 for ac_lib in dl; do
25086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25087 cat >conftest.$ac_ext <<_ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h. */
25094 /* Override any gcc2 internal prototype to avoid an error. */
25098 /* We use char because int might match the return type of a gcc2
25099 builtin and then its argument prototype would still apply. */
25109 rm -f conftest.$ac_objext conftest$ac_exeext
25110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25111 (eval $ac_link) 2>conftest.er1
25113 grep -v '^ *+' conftest.er1 >conftest.err
25115 cat conftest.err >&5
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); } &&
25118 { ac_try='test -z "$ac_c_werror_flag"
25119 || test ! -s conftest.err'
25120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121 (eval $ac_try) 2>&5
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); }; } &&
25125 { ac_try='test -s conftest$ac_exeext'
25126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25127 (eval $ac_try) 2>&5
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); }; }; then
25131 ac_cv_search_dlopen="-l$ac_lib"
25134 echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25138 rm -f conftest.err conftest.$ac_objext \
25139 conftest$ac_exeext conftest.$ac_ext
25142 LIBS=$ac_func_search_save_LIBS
25144 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25145 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25146 if test "$ac_cv_search_dlopen" != no; then
25147 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25149 cat >>confdefs.h <<\_ACEOF
25150 #define HAVE_DLOPEN 1
25154 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25155 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25159 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25160 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25161 if test "${ac_cv_search_mallinfo+set}" = set; then
25162 echo $ECHO_N "(cached) $ECHO_C" >&6
25164 ac_func_search_save_LIBS=$LIBS
25165 ac_cv_search_mallinfo=no
25166 cat >conftest.$ac_ext <<_ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25173 /* Override any gcc2 internal prototype to avoid an error. */
25177 /* We use char because int might match the return type of a gcc2
25178 builtin and then its argument prototype would still apply. */
25188 rm -f conftest.$ac_objext conftest$ac_exeext
25189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25190 (eval $ac_link) 2>conftest.er1
25192 grep -v '^ *+' conftest.er1 >conftest.err
25194 cat conftest.err >&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } &&
25197 { ac_try='test -z "$ac_c_werror_flag"
25198 || test ! -s conftest.err'
25199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200 (eval $ac_try) 2>&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }; } &&
25204 { ac_try='test -s conftest$ac_exeext'
25205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; }; then
25210 ac_cv_search_mallinfo="none required"
25212 echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25216 rm -f conftest.err conftest.$ac_objext \
25217 conftest$ac_exeext conftest.$ac_ext
25218 if test "$ac_cv_search_mallinfo" = no; then
25219 for ac_lib in malloc; do
25220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25221 cat >conftest.$ac_ext <<_ACEOF
25224 cat confdefs.h >>conftest.$ac_ext
25225 cat >>conftest.$ac_ext <<_ACEOF
25226 /* end confdefs.h. */
25228 /* Override any gcc2 internal prototype to avoid an error. */
25232 /* We use char because int might match the return type of a gcc2
25233 builtin and then its argument prototype would still apply. */
25243 rm -f conftest.$ac_objext conftest$ac_exeext
25244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25245 (eval $ac_link) 2>conftest.er1
25247 grep -v '^ *+' conftest.er1 >conftest.err
25249 cat conftest.err >&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } &&
25252 { ac_try='test -z "$ac_c_werror_flag"
25253 || test ! -s conftest.err'
25254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255 (eval $ac_try) 2>&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; } &&
25259 { ac_try='test -s conftest$ac_exeext'
25260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261 (eval $ac_try) 2>&5
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); }; }; then
25265 ac_cv_search_mallinfo="-l$ac_lib"
25268 echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25272 rm -f conftest.err conftest.$ac_objext \
25273 conftest$ac_exeext conftest.$ac_ext
25276 LIBS=$ac_func_search_save_LIBS
25278 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25279 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25280 if test "$ac_cv_search_mallinfo" != no; then
25281 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25283 cat >>confdefs.h <<\_ACEOF
25284 #define HAVE_MALLINFO 1
25291 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25292 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25293 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25294 echo $ECHO_N "(cached) $ECHO_C" >&6
25296 ac_check_lib_save_LIBS=$LIBS
25297 LIBS="-lpthread $LIBS"
25298 cat >conftest.$ac_ext <<_ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25305 /* Override any gcc2 internal prototype to avoid an error. */
25309 /* We use char because int might match the return type of a gcc2
25310 builtin and then its argument prototype would still apply. */
25311 char pthread_mutex_init ();
25315 pthread_mutex_init ();
25320 rm -f conftest.$ac_objext conftest$ac_exeext
25321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25322 (eval $ac_link) 2>conftest.er1
25324 grep -v '^ *+' conftest.er1 >conftest.err
25326 cat conftest.err >&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } &&
25329 { ac_try='test -z "$ac_c_werror_flag"
25330 || test ! -s conftest.err'
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; } &&
25336 { ac_try='test -s conftest$ac_exeext'
25337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; }; then
25342 ac_cv_lib_pthread_pthread_mutex_init=yes
25344 echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25347 ac_cv_lib_pthread_pthread_mutex_init=no
25349 rm -f conftest.err conftest.$ac_objext \
25350 conftest$ac_exeext conftest.$ac_ext
25351 LIBS=$ac_check_lib_save_LIBS
25353 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25354 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25355 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25356 cat >>confdefs.h <<_ACEOF
25357 #define HAVE_LIBPTHREAD 1
25360 LIBS="-lpthread $LIBS"
25364 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25365 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25366 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25367 echo $ECHO_N "(cached) $ECHO_C" >&6
25369 ac_func_search_save_LIBS=$LIBS
25370 ac_cv_search_pthread_mutex_lock=no
25371 cat >conftest.$ac_ext <<_ACEOF
25374 cat confdefs.h >>conftest.$ac_ext
25375 cat >>conftest.$ac_ext <<_ACEOF
25376 /* end confdefs.h. */
25378 /* Override any gcc2 internal prototype to avoid an error. */
25382 /* We use char because int might match the return type of a gcc2
25383 builtin and then its argument prototype would still apply. */
25384 char pthread_mutex_lock ();
25388 pthread_mutex_lock ();
25393 rm -f conftest.$ac_objext conftest$ac_exeext
25394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25395 (eval $ac_link) 2>conftest.er1
25397 grep -v '^ *+' conftest.er1 >conftest.err
25399 cat conftest.err >&5
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); } &&
25402 { ac_try='test -z "$ac_c_werror_flag"
25403 || test ! -s conftest.err'
25404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405 (eval $ac_try) 2>&5
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); }; } &&
25409 { ac_try='test -s conftest$ac_exeext'
25410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411 (eval $ac_try) 2>&5
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); }; }; then
25415 ac_cv_search_pthread_mutex_lock="none required"
25417 echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25421 rm -f conftest.err conftest.$ac_objext \
25422 conftest$ac_exeext conftest.$ac_ext
25423 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25424 for ac_lib in pthread; do
25425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25426 cat >conftest.$ac_ext <<_ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h. */
25433 /* Override any gcc2 internal prototype to avoid an error. */
25437 /* We use char because int might match the return type of a gcc2
25438 builtin and then its argument prototype would still apply. */
25439 char pthread_mutex_lock ();
25443 pthread_mutex_lock ();
25448 rm -f conftest.$ac_objext conftest$ac_exeext
25449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25450 (eval $ac_link) 2>conftest.er1
25452 grep -v '^ *+' conftest.er1 >conftest.err
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } &&
25457 { ac_try='test -z "$ac_c_werror_flag"
25458 || test ! -s conftest.err'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; } &&
25464 { ac_try='test -s conftest$ac_exeext'
25465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; }; then
25470 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25477 rm -f conftest.err conftest.$ac_objext \
25478 conftest$ac_exeext conftest.$ac_ext
25481 LIBS=$ac_func_search_save_LIBS
25483 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25484 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25485 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25486 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25488 cat >>confdefs.h <<\_ACEOF
25489 #define HAVE_PTHREAD_MUTEX_LOCK 1
25501 ac_header_dirent=no
25502 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25503 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25504 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25505 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25507 echo $ECHO_N "(cached) $ECHO_C" >&6
25509 cat >conftest.$ac_ext <<_ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25515 #include <sys/types.h>
25527 rm -f conftest.$ac_objext
25528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25529 (eval $ac_compile) 2>conftest.er1
25531 grep -v '^ *+' conftest.er1 >conftest.err
25533 cat conftest.err >&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); } &&
25536 { ac_try='test -z "$ac_c_werror_flag"
25537 || test ! -s conftest.err'
25538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; } &&
25543 { ac_try='test -s conftest.$ac_objext'
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; }; then
25549 eval "$as_ac_Header=yes"
25551 echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25554 eval "$as_ac_Header=no"
25556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25561 cat >>confdefs.h <<_ACEOF
25562 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25565 ac_header_dirent=$ac_hdr; break
25569 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25570 if test $ac_header_dirent = dirent.h; then
25571 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25572 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25573 if test "${ac_cv_search_opendir+set}" = set; then
25574 echo $ECHO_N "(cached) $ECHO_C" >&6
25576 ac_func_search_save_LIBS=$LIBS
25577 ac_cv_search_opendir=no
25578 cat >conftest.$ac_ext <<_ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h. */
25585 /* Override any gcc2 internal prototype to avoid an error. */
25589 /* We use char because int might match the return type of a gcc2
25590 builtin and then its argument prototype would still apply. */
25600 rm -f conftest.$ac_objext conftest$ac_exeext
25601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25602 (eval $ac_link) 2>conftest.er1
25604 grep -v '^ *+' conftest.er1 >conftest.err
25606 cat conftest.err >&5
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); } &&
25609 { ac_try='test -z "$ac_c_werror_flag"
25610 || test ! -s conftest.err'
25611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612 (eval $ac_try) 2>&5
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); }; } &&
25616 { ac_try='test -s conftest$ac_exeext'
25617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25618 (eval $ac_try) 2>&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); }; }; then
25622 ac_cv_search_opendir="none required"
25624 echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25628 rm -f conftest.err conftest.$ac_objext \
25629 conftest$ac_exeext conftest.$ac_ext
25630 if test "$ac_cv_search_opendir" = no; then
25631 for ac_lib in dir; do
25632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25633 cat >conftest.$ac_ext <<_ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h. */
25640 /* Override any gcc2 internal prototype to avoid an error. */
25644 /* We use char because int might match the return type of a gcc2
25645 builtin and then its argument prototype would still apply. */
25655 rm -f conftest.$ac_objext conftest$ac_exeext
25656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25657 (eval $ac_link) 2>conftest.er1
25659 grep -v '^ *+' conftest.er1 >conftest.err
25661 cat conftest.err >&5
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); } &&
25664 { ac_try='test -z "$ac_c_werror_flag"
25665 || test ! -s conftest.err'
25666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25667 (eval $ac_try) 2>&5
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); }; } &&
25671 { ac_try='test -s conftest$ac_exeext'
25672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25673 (eval $ac_try) 2>&5
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); }; }; then
25677 ac_cv_search_opendir="-l$ac_lib"
25680 echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25684 rm -f conftest.err conftest.$ac_objext \
25685 conftest$ac_exeext conftest.$ac_ext
25688 LIBS=$ac_func_search_save_LIBS
25690 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25691 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25692 if test "$ac_cv_search_opendir" != no; then
25693 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25698 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25699 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25700 if test "${ac_cv_search_opendir+set}" = set; then
25701 echo $ECHO_N "(cached) $ECHO_C" >&6
25703 ac_func_search_save_LIBS=$LIBS
25704 ac_cv_search_opendir=no
25705 cat >conftest.$ac_ext <<_ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h. */
25712 /* Override any gcc2 internal prototype to avoid an error. */
25716 /* We use char because int might match the return type of a gcc2
25717 builtin and then its argument prototype would still apply. */
25727 rm -f conftest.$ac_objext conftest$ac_exeext
25728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25729 (eval $ac_link) 2>conftest.er1
25731 grep -v '^ *+' conftest.er1 >conftest.err
25733 cat conftest.err >&5
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } &&
25736 { ac_try='test -z "$ac_c_werror_flag"
25737 || test ! -s conftest.err'
25738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739 (eval $ac_try) 2>&5
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }; } &&
25743 { ac_try='test -s conftest$ac_exeext'
25744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745 (eval $ac_try) 2>&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; }; then
25749 ac_cv_search_opendir="none required"
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25755 rm -f conftest.err conftest.$ac_objext \
25756 conftest$ac_exeext conftest.$ac_ext
25757 if test "$ac_cv_search_opendir" = no; then
25758 for ac_lib in x; do
25759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25760 cat >conftest.$ac_ext <<_ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h. */
25767 /* Override any gcc2 internal prototype to avoid an error. */
25771 /* We use char because int might match the return type of a gcc2
25772 builtin and then its argument prototype would still apply. */
25782 rm -f conftest.$ac_objext conftest$ac_exeext
25783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25784 (eval $ac_link) 2>conftest.er1
25786 grep -v '^ *+' conftest.er1 >conftest.err
25788 cat conftest.err >&5
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); } &&
25791 { ac_try='test -z "$ac_c_werror_flag"
25792 || test ! -s conftest.err'
25793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794 (eval $ac_try) 2>&5
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); }; } &&
25798 { ac_try='test -s conftest$ac_exeext'
25799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800 (eval $ac_try) 2>&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; }; then
25804 ac_cv_search_opendir="-l$ac_lib"
25807 echo "$as_me: failed program was:" >&5
25808 sed 's/^/| /' conftest.$ac_ext >&5
25811 rm -f conftest.err conftest.$ac_objext \
25812 conftest$ac_exeext conftest.$ac_ext
25815 LIBS=$ac_func_search_save_LIBS
25817 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25818 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25819 if test "$ac_cv_search_opendir" != no; then
25820 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25826 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25827 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25828 if test "${ac_cv_header_mmap_anon+set}" = set; then
25829 echo $ECHO_N "(cached) $ECHO_C" >&6
25832 ac_cpp='$CPP $CPPFLAGS'
25833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25837 cat >conftest.$ac_ext <<_ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h. */
25843 #include <sys/mman.h>
25844 #include <unistd.h>
25849 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25854 rm -f conftest.$ac_objext
25855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25856 (eval $ac_compile) 2>conftest.er1
25858 grep -v '^ *+' conftest.er1 >conftest.err
25860 cat conftest.err >&5
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); } &&
25863 { ac_try='test -z "$ac_c_werror_flag"
25864 || test ! -s conftest.err'
25865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866 (eval $ac_try) 2>&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); }; } &&
25870 { ac_try='test -s conftest.$ac_objext'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; }; then
25876 ac_cv_header_mmap_anon=yes
25878 echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25881 ac_cv_header_mmap_anon=no
25883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25885 ac_cpp='$CPP $CPPFLAGS'
25886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25892 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25893 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25894 if test "$ac_cv_header_mmap_anon" = yes; then
25896 cat >>confdefs.h <<\_ACEOF
25897 #define HAVE_MMAP_ANONYMOUS 1
25902 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25903 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25904 if test "${ac_cv_header_stat_broken+set}" = set; then
25905 echo $ECHO_N "(cached) $ECHO_C" >&6
25907 cat >conftest.$ac_ext <<_ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25913 #include <sys/types.h>
25914 #include <sys/stat.h>
25916 #if defined(S_ISBLK) && defined(S_IFDIR)
25917 # if S_ISBLK (S_IFDIR)
25922 #if defined(S_ISBLK) && defined(S_IFCHR)
25923 # if S_ISBLK (S_IFCHR)
25928 #if defined(S_ISLNK) && defined(S_IFREG)
25929 # if S_ISLNK (S_IFREG)
25934 #if defined(S_ISSOCK) && defined(S_IFREG)
25935 # if S_ISSOCK (S_IFREG)
25941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25942 $EGREP "You lose" >/dev/null 2>&1; then
25943 ac_cv_header_stat_broken=yes
25945 ac_cv_header_stat_broken=no
25950 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25951 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25952 if test $ac_cv_header_stat_broken = yes; then
25954 cat >>confdefs.h <<\_ACEOF
25955 #define STAT_MACROS_BROKEN 1
25960 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25961 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25962 if test "${ac_cv_header_stdc+set}" = set; then
25963 echo $ECHO_N "(cached) $ECHO_C" >&6
25965 cat >conftest.$ac_ext <<_ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h. */
25971 #include <stdlib.h>
25972 #include <stdarg.h>
25973 #include <string.h>
25984 rm -f conftest.$ac_objext
25985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25986 (eval $ac_compile) 2>conftest.er1
25988 grep -v '^ *+' conftest.er1 >conftest.err
25990 cat conftest.err >&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } &&
25993 { ac_try='test -z "$ac_c_werror_flag"
25994 || test ! -s conftest.err'
25995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25996 (eval $ac_try) 2>&5
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); }; } &&
26000 { ac_try='test -s conftest.$ac_objext'
26001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26002 (eval $ac_try) 2>&5
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); }; }; then
26006 ac_cv_header_stdc=yes
26008 echo "$as_me: failed program was:" >&5
26009 sed 's/^/| /' conftest.$ac_ext >&5
26011 ac_cv_header_stdc=no
26013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26015 if test $ac_cv_header_stdc = yes; then
26016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
26026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26027 $EGREP "memchr" >/dev/null 2>&1; then
26030 ac_cv_header_stdc=no
26036 if test $ac_cv_header_stdc = yes; then
26037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26038 cat >conftest.$ac_ext <<_ACEOF
26041 cat confdefs.h >>conftest.$ac_ext
26042 cat >>conftest.$ac_ext <<_ACEOF
26043 /* end confdefs.h. */
26044 #include <stdlib.h>
26047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26048 $EGREP "free" >/dev/null 2>&1; then
26051 ac_cv_header_stdc=no
26057 if test $ac_cv_header_stdc = yes; then
26058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26059 if test "$cross_compiling" = yes; then
26062 cat >conftest.$ac_ext <<_ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h. */
26069 #if ((' ' & 0x0FF) == 0x020)
26070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26073 # define ISLOWER(c) \
26074 (('a' <= (c) && (c) <= 'i') \
26075 || ('j' <= (c) && (c) <= 'r') \
26076 || ('s' <= (c) && (c) <= 'z'))
26077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26085 for (i = 0; i < 256; i++)
26086 if (XOR (islower (i), ISLOWER (i))
26087 || toupper (i) != TOUPPER (i))
26092 rm -f conftest$ac_exeext
26093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26094 (eval $ac_link) 2>&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; }; then
26105 echo "$as_me: program exited with status $ac_status" >&5
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26109 ( exit $ac_status )
26110 ac_cv_header_stdc=no
26112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26116 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26117 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26118 if test $ac_cv_header_stdc = yes; then
26120 cat >>confdefs.h <<\_ACEOF
26121 #define STDC_HEADERS 1
26126 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26127 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26128 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26129 echo $ECHO_N "(cached) $ECHO_C" >&6
26131 cat >conftest.$ac_ext <<_ACEOF
26134 cat confdefs.h >>conftest.$ac_ext
26135 cat >>conftest.$ac_ext <<_ACEOF
26136 /* end confdefs.h. */
26137 #include <sys/types.h>
26138 #include <sys/wait.h>
26139 #ifndef WEXITSTATUS
26140 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26143 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26151 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26156 rm -f conftest.$ac_objext
26157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26158 (eval $ac_compile) 2>conftest.er1
26160 grep -v '^ *+' conftest.er1 >conftest.err
26162 cat conftest.err >&5
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); } &&
26165 { ac_try='test -z "$ac_c_werror_flag"
26166 || test ! -s conftest.err'
26167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168 (eval $ac_try) 2>&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; } &&
26172 { ac_try='test -s conftest.$ac_objext'
26173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174 (eval $ac_try) 2>&5
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); }; }; then
26178 ac_cv_header_sys_wait_h=yes
26180 echo "$as_me: failed program was:" >&5
26181 sed 's/^/| /' conftest.$ac_ext >&5
26183 ac_cv_header_sys_wait_h=no
26185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26187 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26188 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26189 if test $ac_cv_header_sys_wait_h = yes; then
26191 cat >>confdefs.h <<\_ACEOF
26192 #define HAVE_SYS_WAIT_H 1
26197 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26198 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26199 if test "${ac_cv_header_time+set}" = set; then
26200 echo $ECHO_N "(cached) $ECHO_C" >&6
26202 cat >conftest.$ac_ext <<_ACEOF
26205 cat confdefs.h >>conftest.$ac_ext
26206 cat >>conftest.$ac_ext <<_ACEOF
26207 /* end confdefs.h. */
26208 #include <sys/types.h>
26209 #include <sys/time.h>
26215 if ((struct tm *) 0)
26221 rm -f conftest.$ac_objext
26222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26223 (eval $ac_compile) 2>conftest.er1
26225 grep -v '^ *+' conftest.er1 >conftest.err
26227 cat conftest.err >&5
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); } &&
26230 { ac_try='test -z "$ac_c_werror_flag"
26231 || test ! -s conftest.err'
26232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26233 (eval $ac_try) 2>&5
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); }; } &&
26237 { ac_try='test -s conftest.$ac_objext'
26238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239 (eval $ac_try) 2>&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); }; }; then
26243 ac_cv_header_time=yes
26245 echo "$as_me: failed program was:" >&5
26246 sed 's/^/| /' conftest.$ac_ext >&5
26248 ac_cv_header_time=no
26250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26252 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26253 echo "${ECHO_T}$ac_cv_header_time" >&6
26254 if test $ac_cv_header_time = yes; then
26256 cat >>confdefs.h <<\_ACEOF
26257 #define TIME_WITH_SYS_TIME 1
26269 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26273 echo "$as_me:$LINENO: checking for $ac_header" >&5
26274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26276 echo $ECHO_N "(cached) $ECHO_C" >&6
26278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26281 # Is the header compilable?
26282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26284 cat >conftest.$ac_ext <<_ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h. */
26290 $ac_includes_default
26291 #include <$ac_header>
26293 rm -f conftest.$ac_objext
26294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26295 (eval $ac_compile) 2>conftest.er1
26297 grep -v '^ *+' conftest.er1 >conftest.err
26299 cat conftest.err >&5
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); } &&
26302 { ac_try='test -z "$ac_c_werror_flag"
26303 || test ! -s conftest.err'
26304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26305 (eval $ac_try) 2>&5
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); }; } &&
26309 { ac_try='test -s conftest.$ac_objext'
26310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26311 (eval $ac_try) 2>&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); }; }; then
26315 ac_header_compiler=yes
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26320 ac_header_compiler=no
26322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26324 echo "${ECHO_T}$ac_header_compiler" >&6
26326 # Is the header present?
26327 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26329 cat >conftest.$ac_ext <<_ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h. */
26335 #include <$ac_header>
26337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26340 grep -v '^ *+' conftest.er1 >conftest.err
26342 cat conftest.err >&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } >/dev/null; then
26345 if test -s conftest.err; then
26346 ac_cpp_err=$ac_c_preproc_warn_flag
26347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26354 if test -z "$ac_cpp_err"; then
26355 ac_header_preproc=yes
26357 echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26360 ac_header_preproc=no
26362 rm -f conftest.err conftest.$ac_ext
26363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26364 echo "${ECHO_T}$ac_header_preproc" >&6
26366 # So? What about this header?
26367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26373 ac_header_preproc=yes
26376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26390 ## ----------------------------------- ##
26391 ## Report this to llvmbugs@cs.uiuc.edu ##
26392 ## ----------------------------------- ##
26395 sed "s/^/$as_me: WARNING: /" >&2
26398 echo "$as_me:$LINENO: checking for $ac_header" >&5
26399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26401 echo $ECHO_N "(cached) $ECHO_C" >&6
26403 eval "$as_ac_Header=\$ac_header_preproc"
26405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26410 cat >>confdefs.h <<_ACEOF
26411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26424 for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26428 echo "$as_me:$LINENO: checking for $ac_header" >&5
26429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26431 echo $ECHO_N "(cached) $ECHO_C" >&6
26433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26436 # Is the header compilable?
26437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26439 cat >conftest.$ac_ext <<_ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h. */
26445 $ac_includes_default
26446 #include <$ac_header>
26448 rm -f conftest.$ac_objext
26449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26450 (eval $ac_compile) 2>conftest.er1
26452 grep -v '^ *+' conftest.er1 >conftest.err
26454 cat conftest.err >&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } &&
26457 { ac_try='test -z "$ac_c_werror_flag"
26458 || test ! -s conftest.err'
26459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460 (eval $ac_try) 2>&5
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); }; } &&
26464 { ac_try='test -s conftest.$ac_objext'
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; }; then
26470 ac_header_compiler=yes
26472 echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.$ac_ext >&5
26475 ac_header_compiler=no
26477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26479 echo "${ECHO_T}$ac_header_compiler" >&6
26481 # Is the header present?
26482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26484 cat >conftest.$ac_ext <<_ACEOF
26487 cat confdefs.h >>conftest.$ac_ext
26488 cat >>conftest.$ac_ext <<_ACEOF
26489 /* end confdefs.h. */
26490 #include <$ac_header>
26492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26495 grep -v '^ *+' conftest.er1 >conftest.err
26497 cat conftest.err >&5
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); } >/dev/null; then
26500 if test -s conftest.err; then
26501 ac_cpp_err=$ac_c_preproc_warn_flag
26502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26509 if test -z "$ac_cpp_err"; then
26510 ac_header_preproc=yes
26512 echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26515 ac_header_preproc=no
26517 rm -f conftest.err conftest.$ac_ext
26518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26519 echo "${ECHO_T}$ac_header_preproc" >&6
26521 # So? What about this header?
26522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26528 ac_header_preproc=yes
26531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26545 ## ----------------------------------- ##
26546 ## Report this to llvmbugs@cs.uiuc.edu ##
26547 ## ----------------------------------- ##
26550 sed "s/^/$as_me: WARNING: /" >&2
26553 echo "$as_me:$LINENO: checking for $ac_header" >&5
26554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
26558 eval "$as_ac_Header=\$ac_header_preproc"
26560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26565 cat >>confdefs.h <<_ACEOF
26566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26574 for ac_header in windows.h
26576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26578 echo "$as_me:$LINENO: checking for $ac_header" >&5
26579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26581 echo $ECHO_N "(cached) $ECHO_C" >&6
26583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26586 # Is the header compilable?
26587 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26589 cat >conftest.$ac_ext <<_ACEOF
26592 cat confdefs.h >>conftest.$ac_ext
26593 cat >>conftest.$ac_ext <<_ACEOF
26594 /* end confdefs.h. */
26595 $ac_includes_default
26596 #include <$ac_header>
26598 rm -f conftest.$ac_objext
26599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26600 (eval $ac_compile) 2>conftest.er1
26602 grep -v '^ *+' conftest.er1 >conftest.err
26604 cat conftest.err >&5
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } &&
26607 { ac_try='test -z "$ac_c_werror_flag"
26608 || test ! -s conftest.err'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; } &&
26614 { ac_try='test -s conftest.$ac_objext'
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; }; then
26620 ac_header_compiler=yes
26622 echo "$as_me: failed program was:" >&5
26623 sed 's/^/| /' conftest.$ac_ext >&5
26625 ac_header_compiler=no
26627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26629 echo "${ECHO_T}$ac_header_compiler" >&6
26631 # Is the header present?
26632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26634 cat >conftest.$ac_ext <<_ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26640 #include <$ac_header>
26642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26645 grep -v '^ *+' conftest.er1 >conftest.err
26647 cat conftest.err >&5
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); } >/dev/null; then
26650 if test -s conftest.err; then
26651 ac_cpp_err=$ac_c_preproc_warn_flag
26652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26659 if test -z "$ac_cpp_err"; then
26660 ac_header_preproc=yes
26662 echo "$as_me: failed program was:" >&5
26663 sed 's/^/| /' conftest.$ac_ext >&5
26665 ac_header_preproc=no
26667 rm -f conftest.err conftest.$ac_ext
26668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26669 echo "${ECHO_T}$ac_header_preproc" >&6
26671 # So? What about this header?
26672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26678 ac_header_preproc=yes
26681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26684 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26688 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26695 ## ----------------------------------- ##
26696 ## Report this to llvmbugs@cs.uiuc.edu ##
26697 ## ----------------------------------- ##
26700 sed "s/^/$as_me: WARNING: /" >&2
26703 echo "$as_me:$LINENO: checking for $ac_header" >&5
26704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26706 echo $ECHO_N "(cached) $ECHO_C" >&6
26708 eval "$as_ac_Header=\$ac_header_preproc"
26710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26715 cat >>confdefs.h <<_ACEOF
26716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26728 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26732 echo "$as_me:$LINENO: checking for $ac_header" >&5
26733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26735 echo $ECHO_N "(cached) $ECHO_C" >&6
26737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26740 # Is the header compilable?
26741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26743 cat >conftest.$ac_ext <<_ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26749 $ac_includes_default
26750 #include <$ac_header>
26752 rm -f conftest.$ac_objext
26753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26754 (eval $ac_compile) 2>conftest.er1
26756 grep -v '^ *+' conftest.er1 >conftest.err
26758 cat conftest.err >&5
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } &&
26761 { ac_try='test -z "$ac_c_werror_flag"
26762 || test ! -s conftest.err'
26763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764 (eval $ac_try) 2>&5
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); }; } &&
26768 { ac_try='test -s conftest.$ac_objext'
26769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770 (eval $ac_try) 2>&5
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); }; }; then
26774 ac_header_compiler=yes
26776 echo "$as_me: failed program was:" >&5
26777 sed 's/^/| /' conftest.$ac_ext >&5
26779 ac_header_compiler=no
26781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26783 echo "${ECHO_T}$ac_header_compiler" >&6
26785 # Is the header present?
26786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26788 cat >conftest.$ac_ext <<_ACEOF
26791 cat confdefs.h >>conftest.$ac_ext
26792 cat >>conftest.$ac_ext <<_ACEOF
26793 /* end confdefs.h. */
26794 #include <$ac_header>
26796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26799 grep -v '^ *+' conftest.er1 >conftest.err
26801 cat conftest.err >&5
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } >/dev/null; then
26804 if test -s conftest.err; then
26805 ac_cpp_err=$ac_c_preproc_warn_flag
26806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26813 if test -z "$ac_cpp_err"; then
26814 ac_header_preproc=yes
26816 echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26819 ac_header_preproc=no
26821 rm -f conftest.err conftest.$ac_ext
26822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26823 echo "${ECHO_T}$ac_header_preproc" >&6
26825 # So? What about this header?
26826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26832 ac_header_preproc=yes
26835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26849 ## ----------------------------------- ##
26850 ## Report this to llvmbugs@cs.uiuc.edu ##
26851 ## ----------------------------------- ##
26854 sed "s/^/$as_me: WARNING: /" >&2
26857 echo "$as_me:$LINENO: checking for $ac_header" >&5
26858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26860 echo $ECHO_N "(cached) $ECHO_C" >&6
26862 eval "$as_ac_Header=\$ac_header_preproc"
26864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26869 cat >>confdefs.h <<_ACEOF
26870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26879 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26883 echo "$as_me:$LINENO: checking for $ac_header" >&5
26884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26886 echo $ECHO_N "(cached) $ECHO_C" >&6
26888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26891 # Is the header compilable?
26892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26894 cat >conftest.$ac_ext <<_ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h. */
26900 $ac_includes_default
26901 #include <$ac_header>
26903 rm -f conftest.$ac_objext
26904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26905 (eval $ac_compile) 2>conftest.er1
26907 grep -v '^ *+' conftest.er1 >conftest.err
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } &&
26912 { ac_try='test -z "$ac_c_werror_flag"
26913 || test ! -s conftest.err'
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; } &&
26919 { ac_try='test -s conftest.$ac_objext'
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; }; then
26925 ac_header_compiler=yes
26927 echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.$ac_ext >&5
26930 ac_header_compiler=no
26932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26934 echo "${ECHO_T}$ac_header_compiler" >&6
26936 # Is the header present?
26937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26939 cat >conftest.$ac_ext <<_ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h. */
26945 #include <$ac_header>
26947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26950 grep -v '^ *+' conftest.er1 >conftest.err
26952 cat conftest.err >&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } >/dev/null; then
26955 if test -s conftest.err; then
26956 ac_cpp_err=$ac_c_preproc_warn_flag
26957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26964 if test -z "$ac_cpp_err"; then
26965 ac_header_preproc=yes
26967 echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26970 ac_header_preproc=no
26972 rm -f conftest.err conftest.$ac_ext
26973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26974 echo "${ECHO_T}$ac_header_preproc" >&6
26976 # So? What about this header?
26977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26983 ac_header_preproc=yes
26986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26993 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27000 ## ----------------------------------- ##
27001 ## Report this to llvmbugs@cs.uiuc.edu ##
27002 ## ----------------------------------- ##
27005 sed "s/^/$as_me: WARNING: /" >&2
27008 echo "$as_me:$LINENO: checking for $ac_header" >&5
27009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27011 echo $ECHO_N "(cached) $ECHO_C" >&6
27013 eval "$as_ac_Header=\$ac_header_preproc"
27015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27020 cat >>confdefs.h <<_ACEOF
27021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27030 echo "$as_me:$LINENO: checking for pid_t" >&5
27031 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27032 if test "${ac_cv_type_pid_t+set}" = set; then
27033 echo $ECHO_N "(cached) $ECHO_C" >&6
27035 cat >conftest.$ac_ext <<_ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h. */
27041 $ac_includes_default
27047 if (sizeof (pid_t))
27053 rm -f conftest.$ac_objext
27054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27055 (eval $ac_compile) 2>conftest.er1
27057 grep -v '^ *+' conftest.er1 >conftest.err
27059 cat conftest.err >&5
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); } &&
27062 { ac_try='test -z "$ac_c_werror_flag"
27063 || test ! -s conftest.err'
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; } &&
27069 { ac_try='test -s conftest.$ac_objext'
27070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071 (eval $ac_try) 2>&5
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); }; }; then
27075 ac_cv_type_pid_t=yes
27077 echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27080 ac_cv_type_pid_t=no
27082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27084 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27085 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27086 if test $ac_cv_type_pid_t = yes; then
27090 cat >>confdefs.h <<_ACEOF
27096 echo "$as_me:$LINENO: checking for size_t" >&5
27097 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27098 if test "${ac_cv_type_size_t+set}" = set; then
27099 echo $ECHO_N "(cached) $ECHO_C" >&6
27101 cat >conftest.$ac_ext <<_ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h. */
27107 $ac_includes_default
27113 if (sizeof (size_t))
27119 rm -f conftest.$ac_objext
27120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27121 (eval $ac_compile) 2>conftest.er1
27123 grep -v '^ *+' conftest.er1 >conftest.err
27125 cat conftest.err >&5
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); } &&
27128 { ac_try='test -z "$ac_c_werror_flag"
27129 || test ! -s conftest.err'
27130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131 (eval $ac_try) 2>&5
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; } &&
27135 { ac_try='test -s conftest.$ac_objext'
27136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137 (eval $ac_try) 2>&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; }; then
27141 ac_cv_type_size_t=yes
27143 echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27146 ac_cv_type_size_t=no
27148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27150 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27151 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27152 if test $ac_cv_type_size_t = yes; then
27156 cat >>confdefs.h <<_ACEOF
27157 #define size_t unsigned
27162 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27163 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27164 if test "${ac_cv_type_signal+set}" = set; then
27165 echo $ECHO_N "(cached) $ECHO_C" >&6
27167 cat >conftest.$ac_ext <<_ACEOF
27170 cat confdefs.h >>conftest.$ac_ext
27171 cat >>conftest.$ac_ext <<_ACEOF
27172 /* end confdefs.h. */
27173 #include <sys/types.h>
27174 #include <signal.h>
27179 extern "C" void (*signal (int, void (*)(int)))(int);
27181 void (*signal ()) ();
27192 rm -f conftest.$ac_objext
27193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27194 (eval $ac_compile) 2>conftest.er1
27196 grep -v '^ *+' conftest.er1 >conftest.err
27198 cat conftest.err >&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } &&
27201 { ac_try='test -z "$ac_c_werror_flag"
27202 || test ! -s conftest.err'
27203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27204 (eval $ac_try) 2>&5
27206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207 (exit $ac_status); }; } &&
27208 { ac_try='test -s conftest.$ac_objext'
27209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210 (eval $ac_try) 2>&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); }; }; then
27214 ac_cv_type_signal=void
27216 echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27219 ac_cv_type_signal=int
27221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27223 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27224 echo "${ECHO_T}$ac_cv_type_signal" >&6
27226 cat >>confdefs.h <<_ACEOF
27227 #define RETSIGTYPE $ac_cv_type_signal
27231 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27232 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27233 if test "${ac_cv_struct_tm+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27236 cat >conftest.$ac_ext <<_ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h. */
27242 #include <sys/types.h>
27248 struct tm *tp; tp->tm_sec;
27253 rm -f conftest.$ac_objext
27254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27255 (eval $ac_compile) 2>conftest.er1
27257 grep -v '^ *+' conftest.er1 >conftest.err
27259 cat conftest.err >&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); } &&
27262 { ac_try='test -z "$ac_c_werror_flag"
27263 || test ! -s conftest.err'
27264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265 (eval $ac_try) 2>&5
27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); }; } &&
27269 { ac_try='test -s conftest.$ac_objext'
27270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27271 (eval $ac_try) 2>&5
27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274 (exit $ac_status); }; }; then
27275 ac_cv_struct_tm=time.h
27277 echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27280 ac_cv_struct_tm=sys/time.h
27282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27284 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27285 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27286 if test $ac_cv_struct_tm = sys/time.h; then
27288 cat >>confdefs.h <<\_ACEOF
27289 #define TM_IN_SYS_TIME 1
27294 echo "$as_me:$LINENO: checking for int64_t" >&5
27295 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27296 if test "${ac_cv_type_int64_t+set}" = set; then
27297 echo $ECHO_N "(cached) $ECHO_C" >&6
27299 cat >conftest.$ac_ext <<_ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h. */
27305 $ac_includes_default
27311 if (sizeof (int64_t))
27317 rm -f conftest.$ac_objext
27318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27319 (eval $ac_compile) 2>conftest.er1
27321 grep -v '^ *+' conftest.er1 >conftest.err
27323 cat conftest.err >&5
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); } &&
27326 { ac_try='test -z "$ac_c_werror_flag"
27327 || test ! -s conftest.err'
27328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329 (eval $ac_try) 2>&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; } &&
27333 { ac_try='test -s conftest.$ac_objext'
27334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335 (eval $ac_try) 2>&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
27339 ac_cv_type_int64_t=yes
27341 echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27344 ac_cv_type_int64_t=no
27346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27348 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27349 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27350 if test $ac_cv_type_int64_t = yes; then
27352 cat >>confdefs.h <<_ACEOF
27353 #define HAVE_INT64_T 1
27358 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27359 echo "$as_me: error: Type int64_t required but not found" >&2;}
27360 { (exit 1); exit 1; }; }
27363 echo "$as_me:$LINENO: checking for uint64_t" >&5
27364 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27365 if test "${ac_cv_type_uint64_t+set}" = set; then
27366 echo $ECHO_N "(cached) $ECHO_C" >&6
27368 cat >conftest.$ac_ext <<_ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h. */
27374 $ac_includes_default
27378 if ((uint64_t *) 0)
27380 if (sizeof (uint64_t))
27386 rm -f conftest.$ac_objext
27387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27388 (eval $ac_compile) 2>conftest.er1
27390 grep -v '^ *+' conftest.er1 >conftest.err
27392 cat conftest.err >&5
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); } &&
27395 { ac_try='test -z "$ac_c_werror_flag"
27396 || test ! -s conftest.err'
27397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27398 (eval $ac_try) 2>&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); }; } &&
27402 { ac_try='test -s conftest.$ac_objext'
27403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27404 (eval $ac_try) 2>&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; }; then
27408 ac_cv_type_uint64_t=yes
27410 echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27413 ac_cv_type_uint64_t=no
27415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27417 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27418 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27419 if test $ac_cv_type_uint64_t = yes; then
27421 cat >>confdefs.h <<_ACEOF
27422 #define HAVE_UINT64_T 1
27427 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27428 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27429 if test "${ac_cv_type_u_int64_t+set}" = set; then
27430 echo $ECHO_N "(cached) $ECHO_C" >&6
27432 cat >conftest.$ac_ext <<_ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h. */
27438 $ac_includes_default
27442 if ((u_int64_t *) 0)
27444 if (sizeof (u_int64_t))
27450 rm -f conftest.$ac_objext
27451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27452 (eval $ac_compile) 2>conftest.er1
27454 grep -v '^ *+' conftest.er1 >conftest.err
27456 cat conftest.err >&5
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } &&
27459 { ac_try='test -z "$ac_c_werror_flag"
27460 || test ! -s conftest.err'
27461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462 (eval $ac_try) 2>&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); }; } &&
27466 { ac_try='test -s conftest.$ac_objext'
27467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; }; then
27472 ac_cv_type_u_int64_t=yes
27474 echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27477 ac_cv_type_u_int64_t=no
27479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27481 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27482 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27483 if test $ac_cv_type_u_int64_t = yes; then
27485 cat >>confdefs.h <<_ACEOF
27486 #define HAVE_U_INT64_T 1
27491 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27492 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27493 { (exit 1); exit 1; }; }
27505 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27508 echo "$as_me:$LINENO: checking for $ac_func" >&5
27509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27510 if eval "test \"\${$as_ac_var+set}\" = set"; then
27511 echo $ECHO_N "(cached) $ECHO_C" >&6
27513 cat >conftest.$ac_ext <<_ACEOF
27516 cat confdefs.h >>conftest.$ac_ext
27517 cat >>conftest.$ac_ext <<_ACEOF
27518 /* end confdefs.h. */
27519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27521 #define $ac_func innocuous_$ac_func
27523 /* System header to define __stub macros and hopefully few prototypes,
27524 which can conflict with char $ac_func (); below.
27525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27526 <limits.h> exists even on freestanding compilers. */
27529 # include <limits.h>
27531 # include <assert.h>
27536 /* Override any gcc2 internal prototype to avoid an error. */
27541 /* We use char because int might match the return type of a gcc2
27542 builtin and then its argument prototype would still apply. */
27544 /* The GNU C library defines this for functions which it implements
27545 to always fail with ENOSYS. Some functions are actually named
27546 something starting with __ and the normal name is an alias. */
27547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27550 char (*f) () = $ac_func;
27559 return f != $ac_func;
27564 rm -f conftest.$ac_objext conftest$ac_exeext
27565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27566 (eval $ac_link) 2>conftest.er1
27568 grep -v '^ *+' conftest.er1 >conftest.err
27570 cat conftest.err >&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); } &&
27573 { ac_try='test -z "$ac_c_werror_flag"
27574 || test ! -s conftest.err'
27575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576 (eval $ac_try) 2>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
27581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582 (eval $ac_try) 2>&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
27586 eval "$as_ac_var=yes"
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27591 eval "$as_ac_var=no"
27593 rm -f conftest.err conftest.$ac_objext \
27594 conftest$ac_exeext conftest.$ac_ext
27596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27598 if test `eval echo '${'$as_ac_var'}'` = yes; then
27599 cat >>confdefs.h <<_ACEOF
27600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27610 for ac_func in isatty mkdtemp mkstemp mktemp
27612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27613 echo "$as_me:$LINENO: checking for $ac_func" >&5
27614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27615 if eval "test \"\${$as_ac_var+set}\" = set"; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27618 cat >conftest.$ac_ext <<_ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27626 #define $ac_func innocuous_$ac_func
27628 /* System header to define __stub macros and hopefully few prototypes,
27629 which can conflict with char $ac_func (); below.
27630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27631 <limits.h> exists even on freestanding compilers. */
27634 # include <limits.h>
27636 # include <assert.h>
27641 /* Override any gcc2 internal prototype to avoid an error. */
27646 /* We use char because int might match the return type of a gcc2
27647 builtin and then its argument prototype would still apply. */
27649 /* The GNU C library defines this for functions which it implements
27650 to always fail with ENOSYS. Some functions are actually named
27651 something starting with __ and the normal name is an alias. */
27652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27655 char (*f) () = $ac_func;
27664 return f != $ac_func;
27669 rm -f conftest.$ac_objext conftest$ac_exeext
27670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27671 (eval $ac_link) 2>conftest.er1
27673 grep -v '^ *+' conftest.er1 >conftest.err
27675 cat conftest.err >&5
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); } &&
27678 { ac_try='test -z "$ac_c_werror_flag"
27679 || test ! -s conftest.err'
27680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27681 (eval $ac_try) 2>&5
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); }; } &&
27685 { ac_try='test -s conftest$ac_exeext'
27686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27687 (eval $ac_try) 2>&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; }; then
27691 eval "$as_ac_var=yes"
27693 echo "$as_me: failed program was:" >&5
27694 sed 's/^/| /' conftest.$ac_ext >&5
27696 eval "$as_ac_var=no"
27698 rm -f conftest.err conftest.$ac_objext \
27699 conftest$ac_exeext conftest.$ac_ext
27701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27703 if test `eval echo '${'$as_ac_var'}'` = yes; then
27704 cat >>confdefs.h <<_ACEOF
27705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27717 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27720 echo "$as_me:$LINENO: checking for $ac_func" >&5
27721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27722 if eval "test \"\${$as_ac_var+set}\" = set"; then
27723 echo $ECHO_N "(cached) $ECHO_C" >&6
27725 cat >conftest.$ac_ext <<_ACEOF
27728 cat confdefs.h >>conftest.$ac_ext
27729 cat >>conftest.$ac_ext <<_ACEOF
27730 /* end confdefs.h. */
27731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27733 #define $ac_func innocuous_$ac_func
27735 /* System header to define __stub macros and hopefully few prototypes,
27736 which can conflict with char $ac_func (); below.
27737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27738 <limits.h> exists even on freestanding compilers. */
27741 # include <limits.h>
27743 # include <assert.h>
27748 /* Override any gcc2 internal prototype to avoid an error. */
27753 /* We use char because int might match the return type of a gcc2
27754 builtin and then its argument prototype would still apply. */
27756 /* The GNU C library defines this for functions which it implements
27757 to always fail with ENOSYS. Some functions are actually named
27758 something starting with __ and the normal name is an alias. */
27759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27762 char (*f) () = $ac_func;
27771 return f != $ac_func;
27776 rm -f conftest.$ac_objext conftest$ac_exeext
27777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27778 (eval $ac_link) 2>conftest.er1
27780 grep -v '^ *+' conftest.er1 >conftest.err
27782 cat conftest.err >&5
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); } &&
27785 { ac_try='test -z "$ac_c_werror_flag"
27786 || test ! -s conftest.err'
27787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788 (eval $ac_try) 2>&5
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; } &&
27792 { ac_try='test -s conftest$ac_exeext'
27793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27794 (eval $ac_try) 2>&5
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); }; }; then
27798 eval "$as_ac_var=yes"
27800 echo "$as_me: failed program was:" >&5
27801 sed 's/^/| /' conftest.$ac_ext >&5
27803 eval "$as_ac_var=no"
27805 rm -f conftest.err conftest.$ac_objext \
27806 conftest$ac_exeext conftest.$ac_ext
27808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27810 if test `eval echo '${'$as_ac_var'}'` = yes; then
27811 cat >>confdefs.h <<_ACEOF
27812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27821 for ac_func in strtoll strtoq sysconf
27823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27824 echo "$as_me:$LINENO: checking for $ac_func" >&5
27825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27826 if eval "test \"\${$as_ac_var+set}\" = set"; then
27827 echo $ECHO_N "(cached) $ECHO_C" >&6
27829 cat >conftest.$ac_ext <<_ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h. */
27835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27837 #define $ac_func innocuous_$ac_func
27839 /* System header to define __stub macros and hopefully few prototypes,
27840 which can conflict with char $ac_func (); below.
27841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27842 <limits.h> exists even on freestanding compilers. */
27845 # include <limits.h>
27847 # include <assert.h>
27852 /* Override any gcc2 internal prototype to avoid an error. */
27857 /* We use char because int might match the return type of a gcc2
27858 builtin and then its argument prototype would still apply. */
27860 /* The GNU C library defines this for functions which it implements
27861 to always fail with ENOSYS. Some functions are actually named
27862 something starting with __ and the normal name is an alias. */
27863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27866 char (*f) () = $ac_func;
27875 return f != $ac_func;
27880 rm -f conftest.$ac_objext conftest$ac_exeext
27881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27882 (eval $ac_link) 2>conftest.er1
27884 grep -v '^ *+' conftest.er1 >conftest.err
27886 cat conftest.err >&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); } &&
27889 { ac_try='test -z "$ac_c_werror_flag"
27890 || test ! -s conftest.err'
27891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27892 (eval $ac_try) 2>&5
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); }; } &&
27896 { ac_try='test -s conftest$ac_exeext'
27897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898 (eval $ac_try) 2>&5
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; }; then
27902 eval "$as_ac_var=yes"
27904 echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27907 eval "$as_ac_var=no"
27909 rm -f conftest.err conftest.$ac_objext \
27910 conftest$ac_exeext conftest.$ac_ext
27912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27914 if test `eval echo '${'$as_ac_var'}'` = yes; then
27915 cat >>confdefs.h <<_ACEOF
27916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27922 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27923 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27924 if test "${llvm_cv_c_printf_a+set}" = set; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27928 ac_cpp='$CPP $CPPFLAGS'
27929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27933 if test "$cross_compiling" = yes; then
27934 llvmac_cv_c_printf_a=no
27936 cat >conftest.$ac_ext <<_ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h. */
27945 #include <stdlib.h>
27951 volatile double A, B;
27955 sprintf(Buffer, "%a", A);
27959 if (A != 0x1.999999999999ap-4)
27966 rm -f conftest$ac_exeext
27967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27968 (eval $ac_link) 2>&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27973 (eval $ac_try) 2>&5
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); }; }; then
27977 llvm_cv_c_printf_a=yes
27979 echo "$as_me: program exited with status $ac_status" >&5
27980 echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27983 ( exit $ac_status )
27984 llvmac_cv_c_printf_a=no
27986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27989 ac_cpp='$CPP $CPPFLAGS'
27990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27995 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27996 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27997 if test "$llvm_cv_c_printf_a" = "yes"; then
27999 cat >>confdefs.h <<\_ACEOF
28000 #define HAVE_PRINTF_A 1
28005 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28006 # for constant arguments. Useless!
28007 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28008 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28009 if test "${ac_cv_working_alloca_h+set}" = set; then
28010 echo $ECHO_N "(cached) $ECHO_C" >&6
28012 cat >conftest.$ac_ext <<_ACEOF
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h. */
28018 #include <alloca.h>
28022 char *p = (char *) alloca (2 * sizeof (int));
28027 rm -f conftest.$ac_objext conftest$ac_exeext
28028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28029 (eval $ac_link) 2>conftest.er1
28031 grep -v '^ *+' conftest.er1 >conftest.err
28033 cat conftest.err >&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); } &&
28036 { ac_try='test -z "$ac_c_werror_flag"
28037 || test ! -s conftest.err'
28038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039 (eval $ac_try) 2>&5
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; } &&
28043 { ac_try='test -s conftest$ac_exeext'
28044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28045 (eval $ac_try) 2>&5
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); }; }; then
28049 ac_cv_working_alloca_h=yes
28051 echo "$as_me: failed program was:" >&5
28052 sed 's/^/| /' conftest.$ac_ext >&5
28054 ac_cv_working_alloca_h=no
28056 rm -f conftest.err conftest.$ac_objext \
28057 conftest$ac_exeext conftest.$ac_ext
28059 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28060 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28061 if test $ac_cv_working_alloca_h = yes; then
28063 cat >>confdefs.h <<\_ACEOF
28064 #define HAVE_ALLOCA_H 1
28069 echo "$as_me:$LINENO: checking for alloca" >&5
28070 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28071 if test "${ac_cv_func_alloca_works+set}" = set; then
28072 echo $ECHO_N "(cached) $ECHO_C" >&6
28074 cat >conftest.$ac_ext <<_ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h. */
28081 # define alloca __builtin_alloca
28084 # include <malloc.h>
28085 # define alloca _alloca
28088 # include <alloca.h>
28093 # ifndef alloca /* predefined by HP cc +Olibcalls */
28104 char *p = (char *) alloca (1);
28109 rm -f conftest.$ac_objext conftest$ac_exeext
28110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28111 (eval $ac_link) 2>conftest.er1
28113 grep -v '^ *+' conftest.er1 >conftest.err
28115 cat conftest.err >&5
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); } &&
28118 { ac_try='test -z "$ac_c_werror_flag"
28119 || test ! -s conftest.err'
28120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121 (eval $ac_try) 2>&5
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; } &&
28125 { ac_try='test -s conftest$ac_exeext'
28126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28127 (eval $ac_try) 2>&5
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); }; }; then
28131 ac_cv_func_alloca_works=yes
28133 echo "$as_me: failed program was:" >&5
28134 sed 's/^/| /' conftest.$ac_ext >&5
28136 ac_cv_func_alloca_works=no
28138 rm -f conftest.err conftest.$ac_objext \
28139 conftest$ac_exeext conftest.$ac_ext
28141 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28142 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28144 if test $ac_cv_func_alloca_works = yes; then
28146 cat >>confdefs.h <<\_ACEOF
28147 #define HAVE_ALLOCA 1
28151 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28152 # that cause trouble. Some versions do not even contain alloca or
28153 # contain a buggy version. If you still want to use their alloca,
28154 # use ar to extract alloca.o from them instead of compiling alloca.c.
28156 ALLOCA=alloca.$ac_objext
28158 cat >>confdefs.h <<\_ACEOF
28163 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28164 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28165 if test "${ac_cv_os_cray+set}" = set; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28168 cat >conftest.$ac_ext <<_ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h. */
28174 #if defined(CRAY) && ! defined(CRAY2)
28181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28182 $EGREP "webecray" >/dev/null 2>&1; then
28190 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28191 echo "${ECHO_T}$ac_cv_os_cray" >&6
28192 if test $ac_cv_os_cray = yes; then
28193 for ac_func in _getb67 GETB67 getb67; do
28194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28195 echo "$as_me:$LINENO: checking for $ac_func" >&5
28196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28197 if eval "test \"\${$as_ac_var+set}\" = set"; then
28198 echo $ECHO_N "(cached) $ECHO_C" >&6
28200 cat >conftest.$ac_ext <<_ACEOF
28203 cat confdefs.h >>conftest.$ac_ext
28204 cat >>conftest.$ac_ext <<_ACEOF
28205 /* end confdefs.h. */
28206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28208 #define $ac_func innocuous_$ac_func
28210 /* System header to define __stub macros and hopefully few prototypes,
28211 which can conflict with char $ac_func (); below.
28212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28213 <limits.h> exists even on freestanding compilers. */
28216 # include <limits.h>
28218 # include <assert.h>
28223 /* Override any gcc2 internal prototype to avoid an error. */
28228 /* We use char because int might match the return type of a gcc2
28229 builtin and then its argument prototype would still apply. */
28231 /* The GNU C library defines this for functions which it implements
28232 to always fail with ENOSYS. Some functions are actually named
28233 something starting with __ and the normal name is an alias. */
28234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28237 char (*f) () = $ac_func;
28246 return f != $ac_func;
28251 rm -f conftest.$ac_objext conftest$ac_exeext
28252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28253 (eval $ac_link) 2>conftest.er1
28255 grep -v '^ *+' conftest.er1 >conftest.err
28257 cat conftest.err >&5
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); } &&
28260 { ac_try='test -z "$ac_c_werror_flag"
28261 || test ! -s conftest.err'
28262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263 (eval $ac_try) 2>&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; } &&
28267 { ac_try='test -s conftest$ac_exeext'
28268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28269 (eval $ac_try) 2>&5
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); }; }; then
28273 eval "$as_ac_var=yes"
28275 echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28278 eval "$as_ac_var=no"
28280 rm -f conftest.err conftest.$ac_objext \
28281 conftest$ac_exeext conftest.$ac_ext
28283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28285 if test `eval echo '${'$as_ac_var'}'` = yes; then
28287 cat >>confdefs.h <<_ACEOF
28288 #define CRAY_STACKSEG_END $ac_func
28297 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28298 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28299 if test "${ac_cv_c_stack_direction+set}" = set; then
28300 echo $ECHO_N "(cached) $ECHO_C" >&6
28302 if test "$cross_compiling" = yes; then
28303 ac_cv_c_stack_direction=0
28305 cat >conftest.$ac_ext <<_ACEOF
28308 cat confdefs.h >>conftest.$ac_ext
28309 cat >>conftest.$ac_ext <<_ACEOF
28310 /* end confdefs.h. */
28312 find_stack_direction ()
28314 static char *addr = 0;
28319 return find_stack_direction ();
28322 return (&dummy > addr) ? 1 : -1;
28328 exit (find_stack_direction () < 0);
28331 rm -f conftest$ac_exeext
28332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28333 (eval $ac_link) 2>&5
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338 (eval $ac_try) 2>&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; }; then
28342 ac_cv_c_stack_direction=1
28344 echo "$as_me: program exited with status $ac_status" >&5
28345 echo "$as_me: failed program was:" >&5
28346 sed 's/^/| /' conftest.$ac_ext >&5
28348 ( exit $ac_status )
28349 ac_cv_c_stack_direction=-1
28351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28354 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28355 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28357 cat >>confdefs.h <<_ACEOF
28358 #define STACK_DIRECTION $ac_cv_c_stack_direction
28365 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28366 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28367 if test "${ac_cv_func_rand48+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28371 ac_cpp='$CXXCPP $CPPFLAGS'
28372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28376 cat >conftest.$ac_ext <<_ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h. */
28382 #include <stdlib.h>
28386 srand48(0);lrand48();drand48();
28391 rm -f conftest.$ac_objext
28392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28393 (eval $ac_compile) 2>conftest.er1
28395 grep -v '^ *+' conftest.er1 >conftest.err
28397 cat conftest.err >&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } &&
28400 { ac_try='test -z "$ac_cxx_werror_flag"
28401 || test ! -s conftest.err'
28402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403 (eval $ac_try) 2>&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; } &&
28407 { ac_try='test -s conftest.$ac_objext'
28408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409 (eval $ac_try) 2>&5
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; }; then
28413 ac_cv_func_rand48=yes
28415 echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28418 ac_cv_func_rand48=no
28420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28422 ac_cpp='$CPP $CPPFLAGS'
28423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28428 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28429 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28431 if test "$ac_cv_func_rand48" = "yes" ; then
28433 cat >>confdefs.h <<\_ACEOF
28434 #define HAVE_RAND48 1
28440 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28441 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28442 if test "${ac_cv_cxx_namespaces+set}" = set; then
28443 echo $ECHO_N "(cached) $ECHO_C" >&6
28446 ac_cpp='$CXXCPP $CPPFLAGS'
28447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28451 cat >conftest.$ac_ext <<_ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h. */
28457 namespace Outer { namespace Inner { int i = 0; }}
28461 using namespace Outer::Inner; return i;
28466 rm -f conftest.$ac_objext
28467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28468 (eval $ac_compile) 2>conftest.er1
28470 grep -v '^ *+' conftest.er1 >conftest.err
28472 cat conftest.err >&5
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); } &&
28475 { ac_try='test -z "$ac_cxx_werror_flag"
28476 || test ! -s conftest.err'
28477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28478 (eval $ac_try) 2>&5
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); }; } &&
28482 { ac_try='test -s conftest.$ac_objext'
28483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28484 (eval $ac_try) 2>&5
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); }; }; then
28488 ac_cv_cxx_namespaces=yes
28490 echo "$as_me: failed program was:" >&5
28491 sed 's/^/| /' conftest.$ac_ext >&5
28493 ac_cv_cxx_namespaces=no
28495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28497 ac_cpp='$CPP $CPPFLAGS'
28498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28504 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28505 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28506 if test "$ac_cv_cxx_namespaces" = yes; then
28508 cat >>confdefs.h <<\_ACEOF
28509 #define HAVE_NAMESPACES
28514 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28515 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28516 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28517 echo $ECHO_N "(cached) $ECHO_C" >&6
28521 ac_cpp='$CXXCPP $CPPFLAGS'
28522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28526 cat >conftest.$ac_ext <<_ACEOF
28529 cat confdefs.h >>conftest.$ac_ext
28530 cat >>conftest.$ac_ext <<_ACEOF
28531 /* end confdefs.h. */
28532 #include <ext/hash_map>
28533 #ifdef HAVE_NAMESPACES
28534 using namespace std;
28539 hash_map<int, int> t;
28544 rm -f conftest.$ac_objext
28545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28546 (eval $ac_compile) 2>conftest.er1
28548 grep -v '^ *+' conftest.er1 >conftest.err
28550 cat conftest.err >&5
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); } &&
28553 { ac_try='test -z "$ac_cxx_werror_flag"
28554 || test ! -s conftest.err'
28555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28556 (eval $ac_try) 2>&5
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; } &&
28560 { ac_try='test -s conftest.$ac_objext'
28561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28562 (eval $ac_try) 2>&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); }; }; then
28566 ac_cv_cxx_have_std_ext_hash_map=yes
28568 echo "$as_me: failed program was:" >&5
28569 sed 's/^/| /' conftest.$ac_ext >&5
28571 ac_cv_cxx_have_std_ext_hash_map=no
28573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28575 ac_cpp='$CPP $CPPFLAGS'
28576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28581 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28582 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28583 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28586 cat >>confdefs.h <<\_ACEOF
28587 #define HAVE_STD_EXT_HASH_MAP 1
28592 cat >>confdefs.h <<\_ACEOF
28593 #define HAVE_STD_EXT_HASH_MAP 0
28598 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28599 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28600 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28601 echo $ECHO_N "(cached) $ECHO_C" >&6
28605 ac_cpp='$CXXCPP $CPPFLAGS'
28606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28610 cat >conftest.$ac_ext <<_ACEOF
28613 cat confdefs.h >>conftest.$ac_ext
28614 cat >>conftest.$ac_ext <<_ACEOF
28615 /* end confdefs.h. */
28616 #include <ext/hash_map>
28617 #ifdef HAVE_NAMESPACES
28618 using namespace __gnu_cxx;
28623 hash_map<int,int> t;
28628 rm -f conftest.$ac_objext
28629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28630 (eval $ac_compile) 2>conftest.er1
28632 grep -v '^ *+' conftest.er1 >conftest.err
28634 cat conftest.err >&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } &&
28637 { ac_try='test -z "$ac_cxx_werror_flag"
28638 || test ! -s conftest.err'
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; } &&
28644 { ac_try='test -s conftest.$ac_objext'
28645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646 (eval $ac_try) 2>&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; }; then
28650 ac_cv_cxx_have_gnu_ext_hash_map=yes
28652 echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28655 ac_cv_cxx_have_gnu_ext_hash_map=no
28657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28659 ac_cpp='$CPP $CPPFLAGS'
28660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28665 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28666 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28667 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28670 cat >>confdefs.h <<\_ACEOF
28671 #define HAVE_GNU_EXT_HASH_MAP 1
28676 cat >>confdefs.h <<\_ACEOF
28677 #define HAVE_GNU_EXT_HASH_MAP 0
28682 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28683 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28684 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28685 echo $ECHO_N "(cached) $ECHO_C" >&6
28689 ac_cpp='$CXXCPP $CPPFLAGS'
28690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28694 cat >conftest.$ac_ext <<_ACEOF
28697 cat confdefs.h >>conftest.$ac_ext
28698 cat >>conftest.$ac_ext <<_ACEOF
28699 /* end confdefs.h. */
28700 #include <hash_map>
28704 hash_map<int,int> t;
28709 rm -f conftest.$ac_objext
28710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28711 (eval $ac_compile) 2>conftest.er1
28713 grep -v '^ *+' conftest.er1 >conftest.err
28715 cat conftest.err >&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } &&
28718 { ac_try='test -z "$ac_cxx_werror_flag"
28719 || test ! -s conftest.err'
28720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721 (eval $ac_try) 2>&5
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; } &&
28725 { ac_try='test -s conftest.$ac_objext'
28726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28727 (eval $ac_try) 2>&5
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); }; }; then
28731 ac_cv_cxx_have_global_hash_map=yes
28733 echo "$as_me: failed program was:" >&5
28734 sed 's/^/| /' conftest.$ac_ext >&5
28736 ac_cv_cxx_have_global_hash_map=no
28738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28740 ac_cpp='$CPP $CPPFLAGS'
28741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28746 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28747 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28748 if test "$ac_cv_cxx_have_global_hash_map" = yes
28751 cat >>confdefs.h <<\_ACEOF
28752 #define HAVE_GLOBAL_HASH_MAP 1
28757 cat >>confdefs.h <<\_ACEOF
28758 #define HAVE_GLOBAL_HASH_MAP 0
28763 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28764 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28765 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28766 echo $ECHO_N "(cached) $ECHO_C" >&6
28770 ac_cpp='$CXXCPP $CPPFLAGS'
28771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28775 cat >conftest.$ac_ext <<_ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h. */
28781 #include <ext/hash_set>
28782 #ifdef HAVE_NAMESPACES
28783 using namespace std;
28793 rm -f conftest.$ac_objext
28794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28795 (eval $ac_compile) 2>conftest.er1
28797 grep -v '^ *+' conftest.er1 >conftest.err
28799 cat conftest.err >&5
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); } &&
28802 { ac_try='test -z "$ac_cxx_werror_flag"
28803 || test ! -s conftest.err'
28804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805 (eval $ac_try) 2>&5
28807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); }; } &&
28809 { ac_try='test -s conftest.$ac_objext'
28810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811 (eval $ac_try) 2>&5
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); }; }; then
28815 ac_cv_cxx_have_std_ext_hash_set=yes
28817 echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28820 ac_cv_cxx_have_std_ext_hash_set=no
28822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28824 ac_cpp='$CPP $CPPFLAGS'
28825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28830 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28831 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28832 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28835 cat >>confdefs.h <<\_ACEOF
28836 #define HAVE_STD_EXT_HASH_SET 1
28841 cat >>confdefs.h <<\_ACEOF
28842 #define HAVE_STD_EXT_HASH_SET 0
28847 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28848 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28849 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28850 echo $ECHO_N "(cached) $ECHO_C" >&6
28854 ac_cpp='$CXXCPP $CPPFLAGS'
28855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28859 cat >conftest.$ac_ext <<_ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h. */
28865 #include <ext/hash_set>
28866 #ifdef HAVE_NAMESPACES
28867 using namespace __gnu_cxx;
28877 rm -f conftest.$ac_objext
28878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28879 (eval $ac_compile) 2>conftest.er1
28881 grep -v '^ *+' conftest.er1 >conftest.err
28883 cat conftest.err >&5
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); } &&
28886 { ac_try='test -z "$ac_cxx_werror_flag"
28887 || test ! -s conftest.err'
28888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889 (eval $ac_try) 2>&5
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); }; } &&
28893 { ac_try='test -s conftest.$ac_objext'
28894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895 (eval $ac_try) 2>&5
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); }; }; then
28899 ac_cv_cxx_have_gnu_ext_hash_set=yes
28901 echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28904 ac_cv_cxx_have_gnu_ext_hash_set=no
28906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28908 ac_cpp='$CPP $CPPFLAGS'
28909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28914 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28915 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28916 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28919 cat >>confdefs.h <<\_ACEOF
28920 #define HAVE_GNU_EXT_HASH_SET 1
28925 cat >>confdefs.h <<\_ACEOF
28926 #define HAVE_GNU_EXT_HASH_SET 0
28931 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28932 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28933 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28934 echo $ECHO_N "(cached) $ECHO_C" >&6
28938 ac_cpp='$CXXCPP $CPPFLAGS'
28939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28943 cat >conftest.$ac_ext <<_ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h. */
28949 #include <hash_set>
28953 hash_set<int> t; return 0;
28958 rm -f conftest.$ac_objext
28959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28960 (eval $ac_compile) 2>conftest.er1
28962 grep -v '^ *+' conftest.er1 >conftest.err
28964 cat conftest.err >&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); } &&
28967 { ac_try='test -z "$ac_cxx_werror_flag"
28968 || test ! -s conftest.err'
28969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970 (eval $ac_try) 2>&5
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); }; } &&
28974 { ac_try='test -s conftest.$ac_objext'
28975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28976 (eval $ac_try) 2>&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; }; then
28980 ac_cv_cxx_have_global_hash_set=yes
28982 echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28985 ac_cv_cxx_have_global_hash_set=no
28987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28989 ac_cpp='$CPP $CPPFLAGS'
28990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28995 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28996 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28997 if test "$ac_cv_cxx_have_global_hash_set" = yes
29000 cat >>confdefs.h <<\_ACEOF
29001 #define HAVE_GLOBAL_HASH_SET 1
29006 cat >>confdefs.h <<\_ACEOF
29007 #define HAVE_GLOBAL_HASH_SET 0
29012 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29013 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29014 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29015 echo $ECHO_N "(cached) $ECHO_C" >&6
29019 ac_cpp='$CXXCPP $CPPFLAGS'
29020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29024 cat >conftest.$ac_ext <<_ACEOF
29027 cat confdefs.h >>conftest.$ac_ext
29028 cat >>conftest.$ac_ext <<_ACEOF
29029 /* end confdefs.h. */
29030 #include <iterator>
29031 #ifdef HAVE_NAMESPACES
29032 using namespace std;
29037 iterator<int,int,int> t; return 0;
29042 rm -f conftest.$ac_objext
29043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29044 (eval $ac_compile) 2>conftest.er1
29046 grep -v '^ *+' conftest.er1 >conftest.err
29048 cat conftest.err >&5
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); } &&
29051 { ac_try='test -z "$ac_cxx_werror_flag"
29052 || test ! -s conftest.err'
29053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054 (eval $ac_try) 2>&5
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); }; } &&
29058 { ac_try='test -s conftest.$ac_objext'
29059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29060 (eval $ac_try) 2>&5
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); }; }; then
29064 ac_cv_cxx_have_std_iterator=yes
29066 echo "$as_me: failed program was:" >&5
29067 sed 's/^/| /' conftest.$ac_ext >&5
29069 ac_cv_cxx_have_std_iterator=no
29071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29073 ac_cpp='$CPP $CPPFLAGS'
29074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29080 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29081 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29082 if test "$ac_cv_cxx_have_std_iterator" = yes
29085 cat >>confdefs.h <<\_ACEOF
29086 #define HAVE_STD_ITERATOR 1
29091 cat >>confdefs.h <<\_ACEOF
29092 #define HAVE_STD_ITERATOR 0
29097 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29098 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29099 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29100 echo $ECHO_N "(cached) $ECHO_C" >&6
29104 ac_cpp='$CXXCPP $CPPFLAGS'
29105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29109 cat >conftest.$ac_ext <<_ACEOF
29112 cat confdefs.h >>conftest.$ac_ext
29113 cat >>conftest.$ac_ext <<_ACEOF
29114 /* end confdefs.h. */
29115 #include <iterator>
29116 #ifdef HAVE_NAMESPACES
29117 using namespace std;
29122 bidirectional_iterator<int,int> t; return 0;
29127 rm -f conftest.$ac_objext
29128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29129 (eval $ac_compile) 2>conftest.er1
29131 grep -v '^ *+' conftest.er1 >conftest.err
29133 cat conftest.err >&5
29134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135 (exit $ac_status); } &&
29136 { ac_try='test -z "$ac_cxx_werror_flag"
29137 || test ! -s conftest.err'
29138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29139 (eval $ac_try) 2>&5
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); }; } &&
29143 { ac_try='test -s conftest.$ac_objext'
29144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145 (eval $ac_try) 2>&5
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); }; }; then
29149 ac_cv_cxx_have_bi_iterator=yes
29151 echo "$as_me: failed program was:" >&5
29152 sed 's/^/| /' conftest.$ac_ext >&5
29154 ac_cv_cxx_have_bi_iterator=no
29156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29158 ac_cpp='$CPP $CPPFLAGS'
29159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29165 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29166 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29167 if test "$ac_cv_cxx_have_bi_iterator" = yes
29170 cat >>confdefs.h <<\_ACEOF
29171 #define HAVE_BI_ITERATOR 1
29176 cat >>confdefs.h <<\_ACEOF
29177 #define HAVE_BI_ITERATOR 0
29182 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29183 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29184 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29185 echo $ECHO_N "(cached) $ECHO_C" >&6
29189 ac_cpp='$CXXCPP $CPPFLAGS'
29190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29194 cat >conftest.$ac_ext <<_ACEOF
29197 cat confdefs.h >>conftest.$ac_ext
29198 cat >>conftest.$ac_ext <<_ACEOF
29199 /* end confdefs.h. */
29200 #include <iterator>
29201 #ifdef HAVE_NAMESPACES
29202 using namespace std;
29207 forward_iterator<int,int> t; return 0;
29212 rm -f conftest.$ac_objext
29213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29214 (eval $ac_compile) 2>conftest.er1
29216 grep -v '^ *+' conftest.er1 >conftest.err
29218 cat conftest.err >&5
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); } &&
29221 { ac_try='test -z "$ac_cxx_werror_flag"
29222 || test ! -s conftest.err'
29223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224 (eval $ac_try) 2>&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; } &&
29228 { ac_try='test -s conftest.$ac_objext'
29229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230 (eval $ac_try) 2>&5
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; }; then
29234 ac_cv_cxx_have_fwd_iterator=yes
29236 echo "$as_me: failed program was:" >&5
29237 sed 's/^/| /' conftest.$ac_ext >&5
29239 ac_cv_cxx_have_fwd_iterator=no
29241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29243 ac_cpp='$CPP $CPPFLAGS'
29244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29250 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29251 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29252 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29255 cat >>confdefs.h <<\_ACEOF
29256 #define HAVE_FWD_ITERATOR 1
29261 cat >>confdefs.h <<\_ACEOF
29262 #define HAVE_FWD_ITERATOR 0
29268 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29269 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29270 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29271 echo $ECHO_N "(cached) $ECHO_C" >&6
29274 ac_cpp='$CXXCPP $CPPFLAGS'
29275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29279 cat >conftest.$ac_ext <<_ACEOF
29282 cat confdefs.h >>conftest.$ac_ext
29283 cat >>conftest.$ac_ext <<_ACEOF
29284 /* end confdefs.h. */
29294 rm -f conftest.$ac_objext
29295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29296 (eval $ac_compile) 2>conftest.er1
29298 grep -v '^ *+' conftest.er1 >conftest.err
29300 cat conftest.err >&5
29301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302 (exit $ac_status); } &&
29303 { ac_try='test -z "$ac_cxx_werror_flag"
29304 || test ! -s conftest.err'
29305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29306 (eval $ac_try) 2>&5
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; } &&
29310 { ac_try='test -s conftest.$ac_objext'
29311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312 (eval $ac_try) 2>&5
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; }; then
29316 ac_cv_func_isnan_in_math_h=yes
29318 echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29321 ac_cv_func_isnan_in_math_h=no
29323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29325 ac_cpp='$CPP $CPPFLAGS'
29326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29331 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29332 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29335 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29337 cat >>confdefs.h <<\_ACEOF
29338 #define HAVE_ISNAN_IN_MATH_H 1
29343 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29344 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29345 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29346 echo $ECHO_N "(cached) $ECHO_C" >&6
29349 ac_cpp='$CXXCPP $CPPFLAGS'
29350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29354 cat >conftest.$ac_ext <<_ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h. */
29369 rm -f conftest.$ac_objext
29370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29371 (eval $ac_compile) 2>conftest.er1
29373 grep -v '^ *+' conftest.er1 >conftest.err
29375 cat conftest.err >&5
29376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); } &&
29378 { ac_try='test -z "$ac_cxx_werror_flag"
29379 || test ! -s conftest.err'
29380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381 (eval $ac_try) 2>&5
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; } &&
29385 { ac_try='test -s conftest.$ac_objext'
29386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; }; then
29391 ac_cv_func_isnan_in_cmath=yes
29393 echo "$as_me: failed program was:" >&5
29394 sed 's/^/| /' conftest.$ac_ext >&5
29396 ac_cv_func_isnan_in_cmath=no
29398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29400 ac_cpp='$CPP $CPPFLAGS'
29401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29406 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29407 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29409 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29411 cat >>confdefs.h <<\_ACEOF
29412 #define HAVE_ISNAN_IN_CMATH 1
29417 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29418 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29419 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29423 ac_cpp='$CXXCPP $CPPFLAGS'
29424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29428 cat >conftest.$ac_ext <<_ACEOF
29431 cat confdefs.h >>conftest.$ac_ext
29432 cat >>conftest.$ac_ext <<_ACEOF
29433 /* end confdefs.h. */
29438 float f; std::isnan(f);
29443 rm -f conftest.$ac_objext
29444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29445 (eval $ac_compile) 2>conftest.er1
29447 grep -v '^ *+' conftest.er1 >conftest.err
29449 cat conftest.err >&5
29450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); } &&
29452 { ac_try='test -z "$ac_cxx_werror_flag"
29453 || test ! -s conftest.err'
29454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455 (eval $ac_try) 2>&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); }; } &&
29459 { ac_try='test -s conftest.$ac_objext'
29460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461 (eval $ac_try) 2>&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); }; }; then
29465 ac_cv_func_std_isnan_in_cmath=yes
29467 echo "$as_me: failed program was:" >&5
29468 sed 's/^/| /' conftest.$ac_ext >&5
29470 ac_cv_func_std_isnan_in_cmath=no
29472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29474 ac_cpp='$CPP $CPPFLAGS'
29475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29480 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29481 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29483 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29485 cat >>confdefs.h <<\_ACEOF
29486 #define HAVE_STD_ISNAN_IN_CMATH 1
29492 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29493 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29494 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29495 echo $ECHO_N "(cached) $ECHO_C" >&6
29498 ac_cpp='$CXXCPP $CPPFLAGS'
29499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29503 cat >conftest.$ac_ext <<_ACEOF
29506 cat confdefs.h >>conftest.$ac_ext
29507 cat >>conftest.$ac_ext <<_ACEOF
29508 /* end confdefs.h. */
29518 rm -f conftest.$ac_objext
29519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29520 (eval $ac_compile) 2>conftest.er1
29522 grep -v '^ *+' conftest.er1 >conftest.err
29524 cat conftest.err >&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); } &&
29527 { ac_try='test -z "$ac_cxx_werror_flag"
29528 || test ! -s conftest.err'
29529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29530 (eval $ac_try) 2>&5
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); }; } &&
29534 { ac_try='test -s conftest.$ac_objext'
29535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536 (eval $ac_try) 2>&5
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); }; }; then
29540 ac_cv_func_isinf_in_math_h=yes
29542 echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29545 ac_cv_func_isinf_in_math_h=no
29547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29549 ac_cpp='$CPP $CPPFLAGS'
29550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29555 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29556 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29558 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29560 cat >>confdefs.h <<\_ACEOF
29561 #define HAVE_ISINF_IN_MATH_H 1
29566 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29567 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29568 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29569 echo $ECHO_N "(cached) $ECHO_C" >&6
29572 ac_cpp='$CXXCPP $CPPFLAGS'
29573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29577 cat >conftest.$ac_ext <<_ACEOF
29580 cat confdefs.h >>conftest.$ac_ext
29581 cat >>conftest.$ac_ext <<_ACEOF
29582 /* end confdefs.h. */
29592 rm -f conftest.$ac_objext
29593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29594 (eval $ac_compile) 2>conftest.er1
29596 grep -v '^ *+' conftest.er1 >conftest.err
29598 cat conftest.err >&5
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); } &&
29601 { ac_try='test -z "$ac_cxx_werror_flag"
29602 || test ! -s conftest.err'
29603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29604 (eval $ac_try) 2>&5
29606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607 (exit $ac_status); }; } &&
29608 { ac_try='test -s conftest.$ac_objext'
29609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29610 (eval $ac_try) 2>&5
29612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29613 (exit $ac_status); }; }; then
29614 ac_cv_func_isinf_in_cmath=yes
29616 echo "$as_me: failed program was:" >&5
29617 sed 's/^/| /' conftest.$ac_ext >&5
29619 ac_cv_func_isinf_in_cmath=no
29621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29623 ac_cpp='$CPP $CPPFLAGS'
29624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29629 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29630 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29632 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29634 cat >>confdefs.h <<\_ACEOF
29635 #define HAVE_ISINF_IN_CMATH 1
29640 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29641 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29642 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29643 echo $ECHO_N "(cached) $ECHO_C" >&6
29646 ac_cpp='$CXXCPP $CPPFLAGS'
29647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29651 cat >conftest.$ac_ext <<_ACEOF
29654 cat confdefs.h >>conftest.$ac_ext
29655 cat >>conftest.$ac_ext <<_ACEOF
29656 /* end confdefs.h. */
29661 float f; std::isinf(f)}
29666 rm -f conftest.$ac_objext
29667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29668 (eval $ac_compile) 2>conftest.er1
29670 grep -v '^ *+' conftest.er1 >conftest.err
29672 cat conftest.err >&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } &&
29675 { ac_try='test -z "$ac_cxx_werror_flag"
29676 || test ! -s conftest.err'
29677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29678 (eval $ac_try) 2>&5
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); }; } &&
29682 { ac_try='test -s conftest.$ac_objext'
29683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29684 (eval $ac_try) 2>&5
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); }; }; then
29688 ac_cv_func_std_isinf_in_cmath=yes
29690 echo "$as_me: failed program was:" >&5
29691 sed 's/^/| /' conftest.$ac_ext >&5
29693 ac_cv_func_std_isinf_in_cmath=no
29695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29697 ac_cpp='$CPP $CPPFLAGS'
29698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29703 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29704 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29706 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29708 cat >>confdefs.h <<\_ACEOF
29709 #define HAVE_STD_ISINF_IN_CMATH 1
29714 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29715 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29716 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29717 echo $ECHO_N "(cached) $ECHO_C" >&6
29720 ac_cpp='$CXXCPP $CPPFLAGS'
29721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29725 cat >conftest.$ac_ext <<_ACEOF
29728 cat confdefs.h >>conftest.$ac_ext
29729 cat >>conftest.$ac_ext <<_ACEOF
29730 /* end confdefs.h. */
29731 #include <ieeefp.h>
29735 float f; finite(f);
29740 rm -f conftest.$ac_objext
29741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29742 (eval $ac_compile) 2>conftest.er1
29744 grep -v '^ *+' conftest.er1 >conftest.err
29746 cat conftest.err >&5
29747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748 (exit $ac_status); } &&
29749 { ac_try='test -z "$ac_cxx_werror_flag"
29750 || test ! -s conftest.err'
29751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29752 (eval $ac_try) 2>&5
29754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755 (exit $ac_status); }; } &&
29756 { ac_try='test -s conftest.$ac_objext'
29757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29758 (eval $ac_try) 2>&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); }; }; then
29762 ac_cv_func_finite_in_ieeefp_h=yes
29764 echo "$as_me: failed program was:" >&5
29765 sed 's/^/| /' conftest.$ac_ext >&5
29767 ac_cv_func_finite_in_ieeefp_h=no
29769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29771 ac_cpp='$CPP $CPPFLAGS'
29772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29777 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29778 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29780 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29782 cat >>confdefs.h <<\_ACEOF
29783 #define HAVE_FINITE_IN_IEEEFP_H 1
29792 for ac_header in stdlib.h unistd.h
29794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29796 echo "$as_me:$LINENO: checking for $ac_header" >&5
29797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29804 # Is the header compilable?
29805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29807 cat >conftest.$ac_ext <<_ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h. */
29813 $ac_includes_default
29814 #include <$ac_header>
29816 rm -f conftest.$ac_objext
29817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29818 (eval $ac_compile) 2>conftest.er1
29820 grep -v '^ *+' conftest.er1 >conftest.err
29822 cat conftest.err >&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
29825 { ac_try='test -z "$ac_c_werror_flag"
29826 || test ! -s conftest.err'
29827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29828 (eval $ac_try) 2>&5
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; } &&
29832 { ac_try='test -s conftest.$ac_objext'
29833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29834 (eval $ac_try) 2>&5
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; }; then
29838 ac_header_compiler=yes
29840 echo "$as_me: failed program was:" >&5
29841 sed 's/^/| /' conftest.$ac_ext >&5
29843 ac_header_compiler=no
29845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29847 echo "${ECHO_T}$ac_header_compiler" >&6
29849 # Is the header present?
29850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29852 cat >conftest.$ac_ext <<_ACEOF
29855 cat confdefs.h >>conftest.$ac_ext
29856 cat >>conftest.$ac_ext <<_ACEOF
29857 /* end confdefs.h. */
29858 #include <$ac_header>
29860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29863 grep -v '^ *+' conftest.er1 >conftest.err
29865 cat conftest.err >&5
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); } >/dev/null; then
29868 if test -s conftest.err; then
29869 ac_cpp_err=$ac_c_preproc_warn_flag
29870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29877 if test -z "$ac_cpp_err"; then
29878 ac_header_preproc=yes
29880 echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29883 ac_header_preproc=no
29885 rm -f conftest.err conftest.$ac_ext
29886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29887 echo "${ECHO_T}$ac_header_preproc" >&6
29889 # So? What about this header?
29890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29896 ac_header_preproc=yes
29899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29913 ## ----------------------------------- ##
29914 ## Report this to llvmbugs@cs.uiuc.edu ##
29915 ## ----------------------------------- ##
29918 sed "s/^/$as_me: WARNING: /" >&2
29921 echo "$as_me:$LINENO: checking for $ac_header" >&5
29922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29926 eval "$as_ac_Header=\$ac_header_preproc"
29928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29933 cat >>confdefs.h <<_ACEOF
29934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29942 for ac_func in getpagesize
29944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29945 echo "$as_me:$LINENO: checking for $ac_func" >&5
29946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29947 if eval "test \"\${$as_ac_var+set}\" = set"; then
29948 echo $ECHO_N "(cached) $ECHO_C" >&6
29950 cat >conftest.$ac_ext <<_ACEOF
29953 cat confdefs.h >>conftest.$ac_ext
29954 cat >>conftest.$ac_ext <<_ACEOF
29955 /* end confdefs.h. */
29956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29958 #define $ac_func innocuous_$ac_func
29960 /* System header to define __stub macros and hopefully few prototypes,
29961 which can conflict with char $ac_func (); below.
29962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29963 <limits.h> exists even on freestanding compilers. */
29966 # include <limits.h>
29968 # include <assert.h>
29973 /* Override any gcc2 internal prototype to avoid an error. */
29978 /* We use char because int might match the return type of a gcc2
29979 builtin and then its argument prototype would still apply. */
29981 /* The GNU C library defines this for functions which it implements
29982 to always fail with ENOSYS. Some functions are actually named
29983 something starting with __ and the normal name is an alias. */
29984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29987 char (*f) () = $ac_func;
29996 return f != $ac_func;
30001 rm -f conftest.$ac_objext conftest$ac_exeext
30002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30003 (eval $ac_link) 2>conftest.er1
30005 grep -v '^ *+' conftest.er1 >conftest.err
30007 cat conftest.err >&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } &&
30010 { ac_try='test -z "$ac_c_werror_flag"
30011 || test ! -s conftest.err'
30012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013 (eval $ac_try) 2>&5
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); }; } &&
30017 { ac_try='test -s conftest$ac_exeext'
30018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019 (eval $ac_try) 2>&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); }; }; then
30023 eval "$as_ac_var=yes"
30025 echo "$as_me: failed program was:" >&5
30026 sed 's/^/| /' conftest.$ac_ext >&5
30028 eval "$as_ac_var=no"
30030 rm -f conftest.err conftest.$ac_objext \
30031 conftest$ac_exeext conftest.$ac_ext
30033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30035 if test `eval echo '${'$as_ac_var'}'` = yes; then
30036 cat >>confdefs.h <<_ACEOF
30037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30043 echo "$as_me:$LINENO: checking for working mmap" >&5
30044 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30045 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30046 echo $ECHO_N "(cached) $ECHO_C" >&6
30048 if test "$cross_compiling" = yes; then
30049 ac_cv_func_mmap_fixed_mapped=no
30051 cat >conftest.$ac_ext <<_ACEOF
30054 cat confdefs.h >>conftest.$ac_ext
30055 cat >>conftest.$ac_ext <<_ACEOF
30056 /* end confdefs.h. */
30057 $ac_includes_default
30058 /* malloc might have been renamed as rpl_malloc. */
30061 /* Thanks to Mike Haertel and Jim Avera for this test.
30062 Here is a matrix of mmap possibilities:
30063 mmap private not fixed
30064 mmap private fixed at somewhere currently unmapped
30065 mmap private fixed at somewhere already mapped
30066 mmap shared not fixed
30067 mmap shared fixed at somewhere currently unmapped
30068 mmap shared fixed at somewhere already mapped
30069 For private mappings, we should verify that changes cannot be read()
30070 back from the file, nor mmap's back from the file at a different
30071 address. (There have been systems where private was not correctly
30072 implemented like the infamous i386 svr4.0, and systems where the
30073 VM page cache was not coherent with the file system buffer cache
30074 like early versions of FreeBSD and possibly contemporary NetBSD.)
30075 For shared mappings, we should conversely verify that changes get
30076 propagated back to all the places they're supposed to be.
30078 Grep wants private fixed already mapped.
30079 The main things grep needs to know about mmap are:
30080 * does it exist and is it safe to write into the mmap'd area
30081 * how to use it (BSD variants) */
30084 #include <sys/mman.h>
30086 #if !STDC_HEADERS && !HAVE_STDLIB_H
30090 /* This mess was copied from the GNU getpagesize.h. */
30091 #if !HAVE_GETPAGESIZE
30092 /* Assume that all systems that can run configure have sys/param.h. */
30093 # if !HAVE_SYS_PARAM_H
30094 # define HAVE_SYS_PARAM_H 1
30097 # ifdef _SC_PAGESIZE
30098 # define getpagesize() sysconf(_SC_PAGESIZE)
30099 # else /* no _SC_PAGESIZE */
30100 # if HAVE_SYS_PARAM_H
30101 # include <sys/param.h>
30102 # ifdef EXEC_PAGESIZE
30103 # define getpagesize() EXEC_PAGESIZE
30104 # else /* no EXEC_PAGESIZE */
30106 # define getpagesize() NBPG * CLSIZE
30109 # endif /* no CLSIZE */
30110 # else /* no NBPG */
30112 # define getpagesize() NBPC
30113 # else /* no NBPC */
30115 # define getpagesize() PAGESIZE
30116 # endif /* PAGESIZE */
30117 # endif /* no NBPC */
30118 # endif /* no NBPG */
30119 # endif /* no EXEC_PAGESIZE */
30120 # else /* no HAVE_SYS_PARAM_H */
30121 # define getpagesize() 8192 /* punt totally */
30122 # endif /* no HAVE_SYS_PARAM_H */
30123 # endif /* no _SC_PAGESIZE */
30125 #endif /* no HAVE_GETPAGESIZE */
30130 char *data, *data2, *data3;
30134 pagesize = getpagesize ();
30136 /* First, make a file with some known garbage in it. */
30137 data = (char *) malloc (pagesize);
30140 for (i = 0; i < pagesize; ++i)
30141 *(data + i) = rand ();
30143 fd = creat ("conftest.mmap", 0600);
30146 if (write (fd, data, pagesize) != pagesize)
30150 /* Next, try to mmap the file at a fixed address which already has
30151 something else allocated at it. If we can, also make sure that
30152 we see the same garbage. */
30153 fd = open ("conftest.mmap", O_RDWR);
30156 data2 = (char *) malloc (2 * pagesize);
30159 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30160 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30161 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30163 for (i = 0; i < pagesize; ++i)
30164 if (*(data + i) != *(data2 + i))
30167 /* Finally, make sure that changes to the mapped area do not
30168 percolate back to the file as seen by read(). (This is a bug on
30169 some variants of i386 svr4.0.) */
30170 for (i = 0; i < pagesize; ++i)
30171 *(data2 + i) = *(data2 + i) + 1;
30172 data3 = (char *) malloc (pagesize);
30175 if (read (fd, data3, pagesize) != pagesize)
30177 for (i = 0; i < pagesize; ++i)
30178 if (*(data + i) != *(data3 + i))
30184 rm -f conftest$ac_exeext
30185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30186 (eval $ac_link) 2>&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191 (eval $ac_try) 2>&5
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; }; then
30195 ac_cv_func_mmap_fixed_mapped=yes
30197 echo "$as_me: program exited with status $ac_status" >&5
30198 echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30201 ( exit $ac_status )
30202 ac_cv_func_mmap_fixed_mapped=no
30204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30207 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30208 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30209 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30211 cat >>confdefs.h <<\_ACEOF
30212 #define HAVE_MMAP 1
30216 rm -f conftest.mmap
30218 echo "$as_me:$LINENO: checking for mmap of files" >&5
30219 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30220 if test "${ac_cv_func_mmap_file+set}" = set; then
30221 echo $ECHO_N "(cached) $ECHO_C" >&6
30224 ac_cpp='$CPP $CPPFLAGS'
30225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30229 if test "$cross_compiling" = yes; then
30230 ac_cv_func_mmap_file=no
30232 cat >conftest.$ac_ext <<_ACEOF
30236 cat confdefs.h >>conftest.$ac_ext
30237 cat >>conftest.$ac_ext <<_ACEOF
30238 /* end confdefs.h. */
30240 #include <sys/types.h>
30241 #include <sys/mman.h>
30249 fd = creat ("foo",0777);
30250 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30252 return (fd != (int) MAP_FAILED);
30257 rm -f conftest$ac_exeext
30258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30259 (eval $ac_link) 2>&5
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30264 (eval $ac_try) 2>&5
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; }; then
30268 ac_cv_func_mmap_file=yes
30270 echo "$as_me: program exited with status $ac_status" >&5
30271 echo "$as_me: failed program was:" >&5
30272 sed 's/^/| /' conftest.$ac_ext >&5
30274 ( exit $ac_status )
30275 ac_cv_func_mmap_file=no
30277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30280 ac_cpp='$CPP $CPPFLAGS'
30281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30287 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30288 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30289 if test "$ac_cv_func_mmap_file" = yes; then
30291 cat >>confdefs.h <<\_ACEOF
30292 #define HAVE_MMAP_FILE
30299 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30300 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30301 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30304 if test "$llvm_cv_os_type" = "Interix" ; then
30305 ac_cv_need_dev_zero_for_mmap=yes
30307 ac_cv_need_dev_zero_for_mmap=no
30311 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30312 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30313 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30315 cat >>confdefs.h <<\_ACEOF
30316 #define NEED_DEV_ZERO_FOR_MMAP 1
30320 echo "$as_me:$LINENO: checking for mprotect" >&5
30321 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30322 if test "${ac_cv_func_mprotect+set}" = set; then
30323 echo $ECHO_N "(cached) $ECHO_C" >&6
30325 cat >conftest.$ac_ext <<_ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h. */
30331 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30333 #define mprotect innocuous_mprotect
30335 /* System header to define __stub macros and hopefully few prototypes,
30336 which can conflict with char mprotect (); below.
30337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30338 <limits.h> exists even on freestanding compilers. */
30341 # include <limits.h>
30343 # include <assert.h>
30348 /* Override any gcc2 internal prototype to avoid an error. */
30353 /* We use char because int might match the return type of a gcc2
30354 builtin and then its argument prototype would still apply. */
30356 /* The GNU C library defines this for functions which it implements
30357 to always fail with ENOSYS. Some functions are actually named
30358 something starting with __ and the normal name is an alias. */
30359 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30362 char (*f) () = mprotect;
30371 return f != mprotect;
30376 rm -f conftest.$ac_objext conftest$ac_exeext
30377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30378 (eval $ac_link) 2>conftest.er1
30380 grep -v '^ *+' conftest.er1 >conftest.err
30382 cat conftest.err >&5
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); } &&
30385 { ac_try='test -z "$ac_c_werror_flag"
30386 || test ! -s conftest.err'
30387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388 (eval $ac_try) 2>&5
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; } &&
30392 { ac_try='test -s conftest$ac_exeext'
30393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394 (eval $ac_try) 2>&5
30396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); }; }; then
30398 ac_cv_func_mprotect=yes
30400 echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30403 ac_cv_func_mprotect=no
30405 rm -f conftest.err conftest.$ac_objext \
30406 conftest$ac_exeext conftest.$ac_ext
30408 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30409 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30410 if test $ac_cv_func_mprotect = yes; then
30413 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30414 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30415 { (exit 1); exit 1; }; }
30419 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30421 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30422 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30424 if test "$ac_cv_func_mmap_file" = "no"
30426 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30427 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30431 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30432 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30433 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30434 echo $ECHO_N "(cached) $ECHO_C" >&6
30436 llvm_cv_llvmgcc_sanity="no"
30437 if test -x "$LLVMGCC" ; then
30438 cp /dev/null conftest.c
30439 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30440 if test $? -eq 0 ; then
30441 llvm_cv_llvmgcc_sanity="yes"
30446 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30447 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30449 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30450 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30451 LLVMCC1=$llvmcc1path
30453 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30454 LLVMCC1PLUS=$llvmcc1pluspath
30456 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30457 LLVMGCCDIR=$llvmgccdir
30461 SHLIBEXT=$libltdl_cv_shlibext
30464 # Translate the various configuration directories and other basic
30465 # information into substitutions that will end up in Makefile.config.in
30466 # that these configured values can be used by the makefiles
30467 eval LLVM_PREFIX="${prefix}";
30468 eval LLVM_BINDIR="${prefix}/bin";
30469 eval LLVM_LIBDIR="${prefix}/lib";
30470 eval LLVM_DATADIR="${prefix}/share/llvm";
30471 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30472 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30473 eval LLVM_INCLUDEDIR="${prefix}/include";
30474 eval LLVM_INFODIR="${prefix}/info";
30475 eval LLVM_MANDIR="${prefix}/man";
30476 LLVM_CONFIGTIME=`date`
30488 # Place the various directores into the config.h file as #defines so that we
30489 # can know about the installation paths within LLVM.
30491 cat >>confdefs.h <<_ACEOF
30492 #define LLVM_PREFIX "$LLVM_PREFIX"
30496 cat >>confdefs.h <<_ACEOF
30497 #define LLVM_BINDIR "$LLVM_BINDIR"
30501 cat >>confdefs.h <<_ACEOF
30502 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30506 cat >>confdefs.h <<_ACEOF
30507 #define LLVM_DATADIR "$LLVM_DATADIR"
30511 cat >>confdefs.h <<_ACEOF
30512 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30516 cat >>confdefs.h <<_ACEOF
30517 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30521 cat >>confdefs.h <<_ACEOF
30522 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30526 cat >>confdefs.h <<_ACEOF
30527 #define LLVM_INFODIR "$LLVM_INFODIR"
30531 cat >>confdefs.h <<_ACEOF
30532 #define LLVM_MANDIR "$LLVM_MANDIR"
30536 cat >>confdefs.h <<_ACEOF
30537 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30542 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30544 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30546 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30548 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30550 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30553 ac_config_files="$ac_config_files Makefile.config"
30556 ac_config_files="$ac_config_files docs/doxygen.cfg"
30559 ac_config_commands="$ac_config_commands setup"
30561 ac_config_commands="$ac_config_commands Makefile"
30564 ac_config_commands="$ac_config_commands Makefile.common"
30567 ac_config_commands="$ac_config_commands examples/Makefile"
30570 ac_config_commands="$ac_config_commands lib/Makefile"
30573 ac_config_commands="$ac_config_commands runtime/Makefile"
30576 ac_config_commands="$ac_config_commands test/Makefile"
30579 ac_config_commands="$ac_config_commands test/Makefile.tests"
30582 ac_config_commands="$ac_config_commands tools/Makefile"
30585 ac_config_commands="$ac_config_commands utils/Makefile"
30588 ac_config_commands="$ac_config_commands projects/Makefile"
30592 cat >confcache <<\_ACEOF
30593 # This file is a shell script that caches the results of configure
30594 # tests run on this system so they can be shared between configure
30595 # scripts and configure runs, see configure's option --config-cache.
30596 # It is not useful on other systems. If it contains results you don't
30597 # want to keep, you may remove or edit it.
30599 # config.status only pays attention to the cache file if you give it
30600 # the --recheck option to rerun configure.
30602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30604 # following values.
30608 # The following way of writing the cache mishandles newlines in values,
30609 # but we know of no workaround that is simple, portable, and efficient.
30610 # So, don't put newlines in cache variables' values.
30611 # Ultrix sh set writes to stderr and can't be redirected directly,
30612 # and sets the high bit in the cache file unless we assign to the vars.
30615 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30617 # `set' does not quote correctly, so add quotes (double-quote
30618 # substitution turns \\\\ into \\, and sed turns \\ into \).
30621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30624 # `set' quotes correctly as required by POSIX, so do not add quotes.
30626 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30633 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30635 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30637 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30638 if test -w $cache_file; then
30639 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30640 cat confcache >$cache_file
30642 echo "not updating unwritable cache $cache_file"
30647 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30648 # Let make expand exec_prefix.
30649 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30651 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30652 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30653 # trailing colons and then remove the whole line if VPATH becomes empty
30654 # (actually we leave an empty line to preserve line numbers).
30655 if test "x$srcdir" = x.; then
30656 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30657 s/:*\$(srcdir):*/:/;
30658 s/:*\${srcdir}:*/:/;
30660 s/^\([^=]*=[ ]*\):*/\1/;
30666 DEFS=-DHAVE_CONFIG_H
30670 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30671 # 1. Remove the extension, and $U if already installed.
30672 ac_i=`echo "$ac_i" |
30673 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30675 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30676 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30678 LIBOBJS=$ac_libobjs
30680 LTLIBOBJS=$ac_ltlibobjs
30683 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30684 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30685 Usually this means the macro was only invoked conditionally." >&5
30686 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30687 Usually this means the macro was only invoked conditionally." >&2;}
30688 { (exit 1); exit 1; }; }
30690 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30691 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30692 Usually this means the macro was only invoked conditionally." >&5
30693 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30694 Usually this means the macro was only invoked conditionally." >&2;}
30695 { (exit 1); exit 1; }; }
30698 : ${CONFIG_STATUS=./config.status}
30699 ac_clean_files_save=$ac_clean_files
30700 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30701 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30702 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30703 cat >$CONFIG_STATUS <<_ACEOF
30705 # Generated by $as_me.
30706 # Run this file to recreate the current configuration.
30707 # Compiler output produced by configure, useful for debugging
30708 # configure, is in config.log if it exists.
30711 ac_cs_recheck=false
30713 SHELL=\${CONFIG_SHELL-$SHELL}
30716 cat >>$CONFIG_STATUS <<\_ACEOF
30717 ## --------------------- ##
30718 ## M4sh Initialization. ##
30719 ## --------------------- ##
30721 # Be Bourne compatible
30722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30725 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30726 # is contrary to our usage. Disable this feature.
30727 alias -g '${1+"$@"}'='"$@"'
30728 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30731 DUALCASE=1; export DUALCASE # for MKS sh
30733 # Support unset when possible.
30734 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30741 # Work around bugs in pre-3.0 UWIN ksh.
30742 $as_unset ENV MAIL MAILPATH
30749 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30750 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30751 LC_TELEPHONE LC_TIME
30753 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30754 eval $as_var=C; export $as_var
30760 # Required to use basename.
30761 if expr a : '\(a\)' >/dev/null 2>&1; then
30767 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30768 as_basename=basename
30774 # Name of the executable.
30775 as_me=`$as_basename "$0" ||
30776 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30777 X"$0" : 'X\(//\)$' \| \
30778 X"$0" : 'X\(/\)$' \| \
30779 . : '\(.\)' 2>/dev/null ||
30781 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30782 /^X\/\(\/\/\)$/{ s//\1/; q; }
30783 /^X\/\(\/\).*/{ s//\1/; q; }
30787 # PATH needs CR, and LINENO needs CR and PATH.
30788 # Avoid depending upon Character Ranges.
30789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30792 as_cr_digits='0123456789'
30793 as_cr_alnum=$as_cr_Letters$as_cr_digits
30795 # The user is always right.
30796 if test "${PATH_SEPARATOR+set}" != set; then
30797 echo "#! /bin/sh" >conf$$.sh
30798 echo "exit 0" >>conf$$.sh
30800 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30809 as_lineno_1=$LINENO
30810 as_lineno_2=$LINENO
30811 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30812 test "x$as_lineno_1" != "x$as_lineno_2" &&
30813 test "x$as_lineno_3" = "x$as_lineno_2" || {
30814 # Find who we are. Look in the path if we contain no path at all
30817 *[\\/]* ) as_myself=$0 ;;
30818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30819 for as_dir in $PATH
30822 test -z "$as_dir" && as_dir=.
30823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30828 # We did not find ourselves, most probably we were run as `sh COMMAND'
30829 # in which case we are not to be found in the path.
30830 if test "x$as_myself" = x; then
30833 if test ! -f "$as_myself"; then
30834 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30835 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30836 { (exit 1); exit 1; }; }
30838 case $CONFIG_SHELL in
30840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30841 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30844 test -z "$as_dir" && as_dir=.
30845 for as_base in sh bash ksh sh5; do
30848 if ("$as_dir/$as_base" -c '
30849 as_lineno_1=$LINENO
30850 as_lineno_2=$LINENO
30851 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30852 test "x$as_lineno_1" != "x$as_lineno_2" &&
30853 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30854 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30855 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30856 CONFIG_SHELL=$as_dir/$as_base
30857 export CONFIG_SHELL
30858 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30866 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30867 # uniformly replaced by the line number. The first 'sed' inserts a
30868 # line-number line before each line; the second 'sed' does the real
30869 # work. The second script uses 'N' to pair each line-number line
30870 # with the numbered line, and appends trailing '-' during
30871 # substitution so that $LINENO is not a special case at line end.
30872 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30873 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30874 sed '=' <$as_myself |
30879 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30882 s,^['$as_cr_digits']*\n,,
30883 ' >$as_me.lineno &&
30884 chmod +x $as_me.lineno ||
30885 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30886 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30887 { (exit 1); exit 1; }; }
30889 # Don't try to exec as it changes $[0], causing all sort of problems
30890 # (the dirname of $[0] is not the place where we might find the
30891 # original and so on. Autoconf is especially sensible to this).
30893 # Exit status is that of the last command.
30898 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30899 *c*,-n*) ECHO_N= ECHO_C='
30901 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30902 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30905 if expr a : '\(a\)' >/dev/null 2>&1; then
30911 rm -f conf$$ conf$$.exe conf$$.file
30913 if ln -s conf$$.file conf$$ 2>/dev/null; then
30914 # We could just check for DJGPP; but this test a) works b) is more generic
30915 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30916 if test -f conf$$.exe; then
30917 # Don't use ln at all; we don't have any links
30922 elif ln conf$$.file conf$$ 2>/dev/null; then
30927 rm -f conf$$ conf$$.exe conf$$.file
30929 if mkdir -p . 2>/dev/null; then
30932 test -d ./-p && rmdir ./-p
30936 as_executable_p="test -f"
30938 # Sed expression to map a string onto a valid CPP name.
30939 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30941 # Sed expression to map a string onto a valid variable name.
30942 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30946 # We need space, tab and new line, in precisely that order.
30956 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30957 # report actual input values of CONFIG_FILES etc. instead of their
30958 # values after options handling. Logging --version etc. is OK.
30962 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30963 ## Running $as_me. ##
30968 This file was extended by llvm $as_me 1.6cvs, which was
30969 generated by GNU Autoconf 2.59. Invocation command line was
30971 CONFIG_FILES = $CONFIG_FILES
30972 CONFIG_HEADERS = $CONFIG_HEADERS
30973 CONFIG_LINKS = $CONFIG_LINKS
30974 CONFIG_COMMANDS = $CONFIG_COMMANDS
30978 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30982 # Files that config.status was made for.
30983 if test -n "$ac_config_files"; then
30984 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30987 if test -n "$ac_config_headers"; then
30988 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30991 if test -n "$ac_config_links"; then
30992 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30995 if test -n "$ac_config_commands"; then
30996 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30999 cat >>$CONFIG_STATUS <<\_ACEOF
31002 \`$as_me' instantiates files from templates according to the
31003 current configuration.
31005 Usage: $0 [OPTIONS] [FILE]...
31007 -h, --help print this help, then exit
31008 -V, --version print version number, then exit
31009 -q, --quiet do not print progress messages
31010 -d, --debug don't remove temporary files
31011 --recheck update $as_me by reconfiguring in the same conditions
31012 --file=FILE[:TEMPLATE]
31013 instantiate the configuration file FILE
31014 --header=FILE[:TEMPLATE]
31015 instantiate the configuration header FILE
31017 Configuration files:
31020 Configuration headers:
31023 Configuration commands:
31026 Report bugs to <bug-autoconf@gnu.org>."
31029 cat >>$CONFIG_STATUS <<_ACEOF
31031 llvm config.status 1.6cvs
31032 configured by $0, generated by GNU Autoconf 2.59,
31033 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31035 Copyright (C) 2003 Free Software Foundation, Inc.
31036 This config.status script is free software; the Free Software Foundation
31037 gives unlimited permission to copy, distribute and modify it."
31042 cat >>$CONFIG_STATUS <<\_ACEOF
31043 # If no file are specified by the user, then we need to provide default
31044 # value. By we need to know if files were specified by the user.
31050 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31051 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31059 *) # This is not an option, so the user has probably given explicit
31062 ac_need_defaults=false;;
31066 # Handling of the options.
31068 cat >>$CONFIG_STATUS <<\_ACEOF
31069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31071 --version | --vers* | -V )
31072 echo "$ac_cs_version"; exit 0 ;;
31074 # Conflict between --help and --header
31075 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31076 Try \`$0 --help' for more information." >&5
31077 echo "$as_me: error: ambiguous option: $1
31078 Try \`$0 --help' for more information." >&2;}
31079 { (exit 1); exit 1; }; };;
31080 --help | --hel | -h )
31081 echo "$ac_cs_usage"; exit 0 ;;
31082 --debug | --d* | -d )
31084 --file | --fil | --fi | --f )
31086 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31087 ac_need_defaults=false;;
31088 --header | --heade | --head | --hea )
31090 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31091 ac_need_defaults=false;;
31092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31093 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31096 # This is an error.
31097 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31098 Try \`$0 --help' for more information." >&5
31099 echo "$as_me: error: unrecognized option: $1
31100 Try \`$0 --help' for more information." >&2;}
31101 { (exit 1); exit 1; }; } ;;
31103 *) ac_config_targets="$ac_config_targets $1" ;;
31109 ac_configure_extra_args=
31111 if $ac_cs_silent; then
31113 ac_configure_extra_args="$ac_configure_extra_args --silent"
31117 cat >>$CONFIG_STATUS <<_ACEOF
31118 if \$ac_cs_recheck; then
31119 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31120 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31125 cat >>$CONFIG_STATUS <<_ACEOF
31127 # INIT-COMMANDS section.
31130 llvm_src="${srcdir}"
31136 cat >>$CONFIG_STATUS <<\_ACEOF
31137 for ac_config_target in $ac_config_targets
31139 case "$ac_config_target" in
31140 # Handling of arguments.
31141 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31142 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31143 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31144 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31145 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31146 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31147 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31148 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31149 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31150 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31151 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31152 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31153 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31154 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31155 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31156 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31157 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31158 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31159 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31160 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31161 { (exit 1); exit 1; }; };;
31165 # If the user did not use the arguments to specify the items to instantiate,
31166 # then the envvar interface is used. Set only those that are not.
31167 # We use the long form for the default assignment because of an extremely
31168 # bizarre bug on SunOS 4.1.3.
31169 if $ac_need_defaults; then
31170 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31171 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31172 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31175 # Have a temporary directory for convenience. Make it in the build tree
31176 # simply because there is no reason to put it here, and in addition,
31177 # creating and moving files from /tmp can sometimes cause problems.
31178 # Create a temporary directory, and hook for its removal unless debugging.
31181 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31182 trap '{ (exit 1); exit 1; }' 1 2 13 15
31185 # Create a (secure) tmp directory for tmp files.
31188 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31189 test -n "$tmp" && test -d "$tmp"
31192 tmp=./confstat$$-$RANDOM
31193 (umask 077 && mkdir $tmp)
31196 echo "$me: cannot create a temporary directory in ." >&2
31197 { (exit 1); exit 1; }
31202 cat >>$CONFIG_STATUS <<_ACEOF
31205 # CONFIG_FILES section.
31208 # No need to generate the scripts if there are no CONFIG_FILES.
31209 # This happens for instance when ./config.status config.h
31210 if test -n "\$CONFIG_FILES"; then
31211 # Protect against being on the right side of a sed subst in config.status.
31212 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31213 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31214 s,@SHELL@,$SHELL,;t t
31215 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31216 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31217 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31218 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31219 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31220 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31221 s,@exec_prefix@,$exec_prefix,;t t
31222 s,@prefix@,$prefix,;t t
31223 s,@program_transform_name@,$program_transform_name,;t t
31224 s,@bindir@,$bindir,;t t
31225 s,@sbindir@,$sbindir,;t t
31226 s,@libexecdir@,$libexecdir,;t t
31227 s,@datadir@,$datadir,;t t
31228 s,@sysconfdir@,$sysconfdir,;t t
31229 s,@sharedstatedir@,$sharedstatedir,;t t
31230 s,@localstatedir@,$localstatedir,;t t
31231 s,@libdir@,$libdir,;t t
31232 s,@includedir@,$includedir,;t t
31233 s,@oldincludedir@,$oldincludedir,;t t
31234 s,@infodir@,$infodir,;t t
31235 s,@mandir@,$mandir,;t t
31236 s,@build_alias@,$build_alias,;t t
31237 s,@host_alias@,$host_alias,;t t
31238 s,@target_alias@,$target_alias,;t t
31239 s,@DEFS@,$DEFS,;t t
31240 s,@ECHO_C@,$ECHO_C,;t t
31241 s,@ECHO_N@,$ECHO_N,;t t
31242 s,@ECHO_T@,$ECHO_T,;t t
31243 s,@LIBS@,$LIBS,;t t
31244 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31245 s,@subdirs@,$subdirs,;t t
31246 s,@build@,$build,;t t
31247 s,@build_cpu@,$build_cpu,;t t
31248 s,@build_vendor@,$build_vendor,;t t
31249 s,@build_os@,$build_os,;t t
31250 s,@host@,$host,;t t
31251 s,@host_cpu@,$host_cpu,;t t
31252 s,@host_vendor@,$host_vendor,;t t
31253 s,@host_os@,$host_os,;t t
31254 s,@target@,$target,;t t
31255 s,@target_cpu@,$target_cpu,;t t
31256 s,@target_vendor@,$target_vendor,;t t
31257 s,@target_os@,$target_os,;t t
31259 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31260 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31261 s,@ARCH@,$ARCH,;t t
31262 s,@ENDIAN@,$ENDIAN,;t t
31264 s,@CFLAGS@,$CFLAGS,;t t
31265 s,@LDFLAGS@,$LDFLAGS,;t t
31266 s,@CPPFLAGS@,$CPPFLAGS,;t t
31267 s,@ac_ct_CC@,$ac_ct_CC,;t t
31268 s,@EXEEXT@,$EXEEXT,;t t
31269 s,@OBJEXT@,$OBJEXT,;t t
31270 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31272 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31273 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31276 s,@CXXFLAGS@,$CXXFLAGS,;t t
31277 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31279 s,@LEXLIB@,$LEXLIB,;t t
31280 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31281 s,@FLEX@,$FLEX,;t t
31282 s,@YACC@,$YACC,;t t
31283 s,@BISON@,$BISON,;t t
31284 s,@ifGNUmake@,$ifGNUmake,;t t
31285 s,@LN_S@,$LN_S,;t t
31288 s,@DATE@,$DATE,;t t
31289 s,@FIND@,$FIND,;t t
31290 s,@GREP@,$GREP,;t t
31291 s,@MKDIR@,$MKDIR,;t t
31293 s,@RANLIB@,$RANLIB,;t t
31294 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31298 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31299 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31300 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31301 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31302 s,@BZIP2@,$BZIP2,;t t
31304 s,@DOXYGEN@,$DOXYGEN,;t t
31305 s,@ETAGS@,$ETAGS,;t t
31306 s,@GROFF@,$GROFF,;t t
31307 s,@GZIP@,$GZIP,;t t
31308 s,@POD2HTML@,$POD2HTML,;t t
31309 s,@POD2MAN@,$POD2MAN,;t t
31310 s,@RUNTEST@,$RUNTEST,;t t
31311 s,@TCLSH@,$TCLSH,;t t
31313 s,@EGREP@,$EGREP,;t t
31314 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31315 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31316 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31317 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31318 s,@LIBADD_DL@,$LIBADD_DL,;t t
31319 s,@ECHO@,$ECHO,;t t
31321 s,@ac_ct_AR@,$ac_ct_AR,;t t
31322 s,@STRIP@,$STRIP,;t t
31323 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31324 s,@CXXCPP@,$CXXCPP,;t t
31326 s,@FFLAGS@,$FFLAGS,;t t
31327 s,@ac_ct_F77@,$ac_ct_F77,;t t
31328 s,@LIBTOOL@,$LIBTOOL,;t t
31329 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31330 s,@LLVMGCC@,$LLVMGCC,;t t
31331 s,@LLVMGXX@,$LLVMGXX,;t t
31332 s,@ALLOCA@,$ALLOCA,;t t
31333 s,@MMAP_FILE@,$MMAP_FILE,;t t
31334 s,@LLVMCC1@,$LLVMCC1,;t t
31335 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31336 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31337 s,@SHLIBEXT@,$SHLIBEXT,;t t
31338 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31339 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31340 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31341 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31342 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31343 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31344 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31345 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31346 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31347 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31348 s,@LIBOBJS@,$LIBOBJS,;t t
31349 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31354 cat >>$CONFIG_STATUS <<\_ACEOF
31355 # Split the substitutions into bite-sized pieces for seds with
31356 # small command number limits, like on Digital OSF/1 and HP-UX.
31357 ac_max_sed_lines=48
31358 ac_sed_frag=1 # Number of current file.
31359 ac_beg=1 # First line for current file.
31360 ac_end=$ac_max_sed_lines # Line after last line for current file.
31363 while $ac_more_lines; do
31364 if test $ac_beg -gt 1; then
31365 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31367 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31369 if test ! -s $tmp/subs.frag; then
31370 ac_more_lines=false
31372 # The purpose of the label and of the branching condition is to
31373 # speed up the sed processing (if there are no `@' at all, there
31374 # is no need to browse any of the substitutions).
31375 # These are the two extra sed commands mentioned above.
31377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31378 if test -z "$ac_sed_cmds"; then
31379 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31381 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31383 ac_sed_frag=`expr $ac_sed_frag + 1`
31385 ac_end=`expr $ac_end + $ac_max_sed_lines`
31388 if test -z "$ac_sed_cmds"; then
31391 fi # test -n "$CONFIG_FILES"
31394 cat >>$CONFIG_STATUS <<\_ACEOF
31395 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31398 - | *:- | *:-:* ) # input from stdin
31400 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31402 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31404 * ) ac_file_in=$ac_file.in ;;
31407 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31408 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31409 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31410 X"$ac_file" : 'X\(//\)[^/]' \| \
31411 X"$ac_file" : 'X\(//\)$' \| \
31412 X"$ac_file" : 'X\(/\)' \| \
31413 . : '\(.\)' 2>/dev/null ||
31415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31417 /^X\(\/\/\)$/{ s//\1/; q; }
31418 /^X\(\/\).*/{ s//\1/; q; }
31420 { if $as_mkdir_p; then
31425 while test ! -d "$as_dir"; do
31426 as_dirs="$as_dir $as_dirs"
31427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31429 X"$as_dir" : 'X\(//\)[^/]' \| \
31430 X"$as_dir" : 'X\(//\)$' \| \
31431 X"$as_dir" : 'X\(/\)' \| \
31432 . : '\(.\)' 2>/dev/null ||
31434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31436 /^X\(\/\/\)$/{ s//\1/; q; }
31437 /^X\(\/\).*/{ s//\1/; q; }
31440 test ! -n "$as_dirs" || mkdir $as_dirs
31441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31442 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31443 { (exit 1); exit 1; }; }; }
31447 if test "$ac_dir" != .; then
31448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31449 # A "../" for each directory in $ac_dir_suffix.
31450 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31452 ac_dir_suffix= ac_top_builddir=
31456 .) # No --srcdir option. We are building in place.
31458 if test -z "$ac_top_builddir"; then
31461 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31463 [\\/]* | ?:[\\/]* ) # Absolute path.
31464 ac_srcdir=$srcdir$ac_dir_suffix;
31465 ac_top_srcdir=$srcdir ;;
31466 *) # Relative path.
31467 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31468 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31471 # Do not use `cd foo && pwd` to compute absolute paths, because
31472 # the directories may not exist.
31474 .) ac_abs_builddir="$ac_dir";;
31477 .) ac_abs_builddir=`pwd`;;
31478 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31479 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31482 case $ac_abs_builddir in
31483 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31485 case ${ac_top_builddir}. in
31486 .) ac_abs_top_builddir=$ac_abs_builddir;;
31487 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31488 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31491 case $ac_abs_builddir in
31492 .) ac_abs_srcdir=$ac_srcdir;;
31495 .) ac_abs_srcdir=$ac_abs_builddir;;
31496 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31497 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31500 case $ac_abs_builddir in
31501 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31503 case $ac_top_srcdir in
31504 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31505 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31506 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31513 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31516 if test x"$ac_file" != x-; then
31517 { echo "$as_me:$LINENO: creating $ac_file" >&5
31518 echo "$as_me: creating $ac_file" >&6;}
31521 # Let's still pretend it is `configure' which instantiates (i.e., don't
31522 # use $as_me), people would be surprised to read:
31523 # /* config.h. Generated by config.status. */
31524 if test x"$ac_file" = x-; then
31527 configure_input="$ac_file. "
31529 configure_input=$configure_input"Generated from `echo $ac_file_in |
31530 sed 's,.*/,,'` by configure."
31532 # First look for the input files in the build tree, otherwise in the
31534 ac_file_inputs=`IFS=:
31535 for f in $ac_file_in; do
31537 -) echo $tmp/stdin ;;
31539 # Absolute (can't be DOS-style, as IFS=:)
31540 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31541 echo "$as_me: error: cannot find input file: $f" >&2;}
31542 { (exit 1); exit 1; }; }
31545 if test -f "$f"; then
31548 elif test -f "$srcdir/$f"; then
31553 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31554 echo "$as_me: error: cannot find input file: $f" >&2;}
31555 { (exit 1); exit 1; }; }
31558 done` || { (exit 1); exit 1; }
31560 cat >>$CONFIG_STATUS <<_ACEOF
31564 cat >>$CONFIG_STATUS <<\_ACEOF
31566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31567 s,@configure_input@,$configure_input,;t t
31568 s,@srcdir@,$ac_srcdir,;t t
31569 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31570 s,@top_srcdir@,$ac_top_srcdir,;t t
31571 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31572 s,@builddir@,$ac_builddir,;t t
31573 s,@abs_builddir@,$ac_abs_builddir,;t t
31574 s,@top_builddir@,$ac_top_builddir,;t t
31575 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31576 s,@INSTALL@,$ac_INSTALL,;t t
31577 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31579 if test x"$ac_file" != x-; then
31580 mv $tmp/out $ac_file
31588 cat >>$CONFIG_STATUS <<\_ACEOF
31591 # CONFIG_HEADER section.
31594 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31595 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31597 # ac_d sets the value in "#define NAME VALUE" lines.
31598 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31599 ac_dB='[ ].*$,\1#\2'
31602 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31603 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31604 ac_uB='$,\1#\2define\3'
31608 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31611 - | *:- | *:-:* ) # input from stdin
31613 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31615 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31617 * ) ac_file_in=$ac_file.in ;;
31620 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31621 echo "$as_me: creating $ac_file" >&6;}
31623 # First look for the input files in the build tree, otherwise in the
31625 ac_file_inputs=`IFS=:
31626 for f in $ac_file_in; do
31628 -) echo $tmp/stdin ;;
31630 # Absolute (can't be DOS-style, as IFS=:)
31631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31632 echo "$as_me: error: cannot find input file: $f" >&2;}
31633 { (exit 1); exit 1; }; }
31634 # Do quote $f, to prevent DOS paths from being IFS'd.
31637 if test -f "$f"; then
31640 elif test -f "$srcdir/$f"; then
31645 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31646 echo "$as_me: error: cannot find input file: $f" >&2;}
31647 { (exit 1); exit 1; }; }
31650 done` || { (exit 1); exit 1; }
31651 # Remove the trailing spaces.
31652 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31656 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31657 # `conftest.undefs', that substitutes the proper values into
31658 # config.h.in to produce config.h. The first handles `#define'
31659 # templates, and the second `#undef' templates.
31660 # And first: Protect against being on the right side of a sed subst in
31661 # config.status. Protect against being in an unquoted here document
31662 # in config.status.
31663 rm -f conftest.defines conftest.undefs
31664 # Using a here document instead of a string reduces the quoting nightmare.
31665 # Putting comments in sed scripts is not portable.
31667 # `end' is used to avoid that the second main sed command (meant for
31668 # 0-ary CPP macros) applies to n-ary macro definitions.
31669 # See the Autoconf documentation for `clear'.
31670 cat >confdef2sed.sed <<\_ACEOF
31675 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31677 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31680 # If some macros were called several times there might be several times
31681 # the same #defines, which is useless. Nevertheless, we may not want to
31682 # sort them, since we want the *last* AC-DEFINE to be honored.
31683 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31684 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31685 rm -f confdef2sed.sed
31687 # This sed command replaces #undef with comments. This is necessary, for
31688 # example, in the case of _POSIX_SOURCE, which is predefined and required
31689 # on some systems where configure will not decide to define it.
31690 cat >>conftest.undefs <<\_ACEOF
31691 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31694 # Break up conftest.defines because some shells have a limit on the size
31695 # of here documents, and old seds have small limits too (100 cmds).
31696 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31697 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31698 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31699 echo ' :' >>$CONFIG_STATUS
31700 rm -f conftest.tail
31701 while grep . conftest.defines >/dev/null
31703 # Write a limited-size here document to $tmp/defines.sed.
31704 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31705 # Speed up: don't consider the non `#define' lines.
31706 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31707 # Work around the forget-to-reset-the-flag bug.
31708 echo 't clr' >>$CONFIG_STATUS
31709 echo ': clr' >>$CONFIG_STATUS
31710 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31712 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31714 mv $tmp/out $tmp/in
31716 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31717 rm -f conftest.defines
31718 mv conftest.tail conftest.defines
31720 rm -f conftest.defines
31721 echo ' fi # grep' >>$CONFIG_STATUS
31722 echo >>$CONFIG_STATUS
31724 # Break up conftest.undefs because some shells have a limit on the size
31725 # of here documents, and old seds have small limits too (100 cmds).
31726 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31727 rm -f conftest.tail
31728 while grep . conftest.undefs >/dev/null
31730 # Write a limited-size here document to $tmp/undefs.sed.
31731 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31732 # Speed up: don't consider the non `#undef'
31733 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31734 # Work around the forget-to-reset-the-flag bug.
31735 echo 't clr' >>$CONFIG_STATUS
31736 echo ': clr' >>$CONFIG_STATUS
31737 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31739 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31741 mv $tmp/out $tmp/in
31743 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31744 rm -f conftest.undefs
31745 mv conftest.tail conftest.undefs
31747 rm -f conftest.undefs
31749 cat >>$CONFIG_STATUS <<\_ACEOF
31750 # Let's still pretend it is `configure' which instantiates (i.e., don't
31751 # use $as_me), people would be surprised to read:
31752 # /* config.h. Generated by config.status. */
31753 if test x"$ac_file" = x-; then
31754 echo "/* Generated by configure. */" >$tmp/config.h
31756 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31758 cat $tmp/in >>$tmp/config.h
31760 if test x"$ac_file" != x-; then
31761 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31762 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31763 echo "$as_me: $ac_file is unchanged" >&6;}
31765 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31767 X"$ac_file" : 'X\(//\)[^/]' \| \
31768 X"$ac_file" : 'X\(//\)$' \| \
31769 X"$ac_file" : 'X\(/\)' \| \
31770 . : '\(.\)' 2>/dev/null ||
31772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31774 /^X\(\/\/\)$/{ s//\1/; q; }
31775 /^X\(\/\).*/{ s//\1/; q; }
31777 { if $as_mkdir_p; then
31782 while test ! -d "$as_dir"; do
31783 as_dirs="$as_dir $as_dirs"
31784 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31786 X"$as_dir" : 'X\(//\)[^/]' \| \
31787 X"$as_dir" : 'X\(//\)$' \| \
31788 X"$as_dir" : 'X\(/\)' \| \
31789 . : '\(.\)' 2>/dev/null ||
31791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31793 /^X\(\/\/\)$/{ s//\1/; q; }
31794 /^X\(\/\).*/{ s//\1/; q; }
31797 test ! -n "$as_dirs" || mkdir $as_dirs
31798 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31799 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31800 { (exit 1); exit 1; }; }; }
31803 mv $tmp/config.h $ac_file
31807 rm -f $tmp/config.h
31811 cat >>$CONFIG_STATUS <<\_ACEOF
31814 # CONFIG_COMMANDS section.
31816 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31817 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31818 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31819 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31820 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31821 X"$ac_dest" : 'X\(//\)[^/]' \| \
31822 X"$ac_dest" : 'X\(//\)$' \| \
31823 X"$ac_dest" : 'X\(/\)' \| \
31824 . : '\(.\)' 2>/dev/null ||
31826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31828 /^X\(\/\/\)$/{ s//\1/; q; }
31829 /^X\(\/\).*/{ s//\1/; q; }
31831 { if $as_mkdir_p; then
31836 while test ! -d "$as_dir"; do
31837 as_dirs="$as_dir $as_dirs"
31838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31840 X"$as_dir" : 'X\(//\)[^/]' \| \
31841 X"$as_dir" : 'X\(//\)$' \| \
31842 X"$as_dir" : 'X\(/\)' \| \
31843 . : '\(.\)' 2>/dev/null ||
31845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31847 /^X\(\/\/\)$/{ s//\1/; q; }
31848 /^X\(\/\).*/{ s//\1/; q; }
31851 test ! -n "$as_dirs" || mkdir $as_dirs
31852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31854 { (exit 1); exit 1; }; }; }
31858 if test "$ac_dir" != .; then
31859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31860 # A "../" for each directory in $ac_dir_suffix.
31861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31863 ac_dir_suffix= ac_top_builddir=
31867 .) # No --srcdir option. We are building in place.
31869 if test -z "$ac_top_builddir"; then
31872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31874 [\\/]* | ?:[\\/]* ) # Absolute path.
31875 ac_srcdir=$srcdir$ac_dir_suffix;
31876 ac_top_srcdir=$srcdir ;;
31877 *) # Relative path.
31878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31882 # Do not use `cd foo && pwd` to compute absolute paths, because
31883 # the directories may not exist.
31885 .) ac_abs_builddir="$ac_dir";;
31888 .) ac_abs_builddir=`pwd`;;
31889 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31890 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31893 case $ac_abs_builddir in
31894 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31896 case ${ac_top_builddir}. in
31897 .) ac_abs_top_builddir=$ac_abs_builddir;;
31898 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31899 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31902 case $ac_abs_builddir in
31903 .) ac_abs_srcdir=$ac_srcdir;;
31906 .) ac_abs_srcdir=$ac_abs_builddir;;
31907 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31908 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31911 case $ac_abs_builddir in
31912 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31914 case $ac_top_srcdir in
31915 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31916 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31917 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31922 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31923 echo "$as_me: executing $ac_dest commands" >&6;}
31925 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31926 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31927 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31928 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31929 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31930 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31931 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31932 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31933 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31934 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31935 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31936 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31937 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31938 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31939 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31940 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31941 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31942 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31943 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31944 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31949 cat >>$CONFIG_STATUS <<\_ACEOF
31951 { (exit 0); exit 0; }
31953 chmod +x $CONFIG_STATUS
31954 ac_clean_files=$ac_clean_files_save
31957 # configure is writing to config.log, and then calls config.status.
31958 # config.status does its own redirection, appending to config.log.
31959 # Unfortunately, on DOS this fails, as config.log is still kept open
31960 # by configure, so config.status won't be able to write to it; its
31961 # output is simply discarded. So we exec the FD to /dev/null,
31962 # effectively closing config.log, so it can be properly (re)opened and
31963 # appended to by config.status. When coming back to configure, we
31964 # need to make the FD available again.
31965 if test "$no_create" != yes; then
31967 ac_config_status_args=
31968 test "$silent" = yes &&
31969 ac_config_status_args="$ac_config_status_args --quiet"
31971 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31973 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31974 # would make configure fail if this is the last instruction.
31975 $ac_cs_success || { (exit 1); exit 1; }
31979 # CONFIG_SUBDIRS section.
31981 if test "$no_recursion" != yes; then
31983 # Remove --cache-file and --srcdir arguments so they do not pile up.
31984 ac_sub_configure_args=
31986 for ac_arg in $ac_configure_args; do
31987 if test -n "$ac_prev"; then
31992 -cache-file | --cache-file | --cache-fil | --cache-fi \
31993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31994 ac_prev=cache_file ;;
31995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31999 --config-cache | -C)
32001 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32003 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32009 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32013 # Always prepend --prefix to ensure using the same prefix
32014 # in subdir configurations.
32015 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32018 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32020 # Do not complain, so a configure script can configure whichever
32021 # parts of a large source tree are present.
32022 test -d $srcdir/$ac_dir || continue
32024 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32025 echo "$as_me: configuring in $ac_dir" >&6;}
32026 { if $as_mkdir_p; then
32031 while test ! -d "$as_dir"; do
32032 as_dirs="$as_dir $as_dirs"
32033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32035 X"$as_dir" : 'X\(//\)[^/]' \| \
32036 X"$as_dir" : 'X\(//\)$' \| \
32037 X"$as_dir" : 'X\(/\)' \| \
32038 . : '\(.\)' 2>/dev/null ||
32040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32042 /^X\(\/\/\)$/{ s//\1/; q; }
32043 /^X\(\/\).*/{ s//\1/; q; }
32046 test ! -n "$as_dirs" || mkdir $as_dirs
32047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32049 { (exit 1); exit 1; }; }; }
32053 if test "$ac_dir" != .; then
32054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32055 # A "../" for each directory in $ac_dir_suffix.
32056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32058 ac_dir_suffix= ac_top_builddir=
32062 .) # No --srcdir option. We are building in place.
32064 if test -z "$ac_top_builddir"; then
32067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32069 [\\/]* | ?:[\\/]* ) # Absolute path.
32070 ac_srcdir=$srcdir$ac_dir_suffix;
32071 ac_top_srcdir=$srcdir ;;
32072 *) # Relative path.
32073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32077 # Do not use `cd foo && pwd` to compute absolute paths, because
32078 # the directories may not exist.
32080 .) ac_abs_builddir="$ac_dir";;
32083 .) ac_abs_builddir=`pwd`;;
32084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32088 case $ac_abs_builddir in
32089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32091 case ${ac_top_builddir}. in
32092 .) ac_abs_top_builddir=$ac_abs_builddir;;
32093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32097 case $ac_abs_builddir in
32098 .) ac_abs_srcdir=$ac_srcdir;;
32101 .) ac_abs_srcdir=$ac_abs_builddir;;
32102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32106 case $ac_abs_builddir in
32107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32109 case $ac_top_srcdir in
32110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32119 # Check for guested configure; otherwise get Cygnus style configure.
32120 if test -f $ac_srcdir/configure.gnu; then
32121 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32122 elif test -f $ac_srcdir/configure; then
32123 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32124 elif test -f $ac_srcdir/configure.in; then
32125 ac_sub_configure=$ac_configure
32127 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32128 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32132 # The recursion is here.
32133 if test -n "$ac_sub_configure"; then
32134 # Make the cache file name correct relative to the subdirectory.
32135 case $cache_file in
32136 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32137 *) # Relative path.
32138 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32141 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32142 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32143 # The eval makes quoting arguments work.
32144 eval $ac_sub_configure $ac_sub_configure_args \
32145 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32146 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32147 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32148 { (exit 1); exit 1; }; }
32156 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32157 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32158 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32159 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32160 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32161 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32162 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32163 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32164 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32165 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32166 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}