2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.4.
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.4'
429 PACKAGE_STRING='llvm 1.4'
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/Java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
446 # include <sys/types.h>
449 # include <sys/stat.h>
460 # if !STDC_HEADERS && HAVE_MEMORY_H
466 # include <strings.h>
469 # include <inttypes.h>
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
482 # Initialize some variables set by options.
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
494 program_transform_name=s,x,x,
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532 # Accept the important Cygnus configure options, so we can diagnose typos.
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
554 cache_file=config.cache ;;
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 datadir=$ac_optarg ;;
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "enable_$ac_feature='$ac_optarg'" ;;
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
597 -help | --help | --hel | --he | -h)
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
621 -libdir | --libdir | --libdi | --libd)
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 # Obsolete; use --without-fp.
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 sbindir=$ac_optarg ;;
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 sharedstatedir=$ac_optarg ;;
725 -site | --site | --sit)
727 -site=* | --site=* | --sit=*)
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
750 -version | --version | --versio | --versi | --vers | -V)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
764 eval "with_$ac_package='$ac_optarg'" ;;
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
776 # Obsolete; use --with-x.
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838 localstatedir libdir includedir oldincludedir infodir mandir
840 eval ac_val=$`echo $ac_var`
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869 test "$silent" = yes && exec 6>/dev/null
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
962 # Report the --help message.
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
970 Usage: $0 [OPTION]... [VAR=VALUE]...
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
975 Defaults for the options are specified in brackets.
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1002 For better control, use the options below.
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1028 if test -n "$ac_init_help"; then
1029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.4:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038 --enable-jit Enable Just In Time Compiling (default is YES)
1039 --enable-doxygen Build doxygen documentation (default is NO)
1040 --enable-ltdl-install install libltdl
1041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
1047 --disable-libtool-lock avoid locking (might break parallel builds)
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1054 --with-tclinclude directory where tcl headers are
1055 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 --with-pic try to use only PIC/non-PIC objects [default=use
1059 include additional configurations [automatic]
1061 Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1078 Report bugs to <llvmbugs@cs.uiuc.edu>.
1082 if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1089 if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 ac_dir_suffix= ac_top_builddir=
1098 .) # No --srcdir option. We are building in place.
1100 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1116 .) ac_abs_builddir="$ac_dir";;
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
1161 test -f $ac_srcdir/configure.in; then
1163 $ac_configure --help
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1175 generated by GNU Autoconf 2.59
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1190 It was created by llvm $as_me 1.4, which was
1191 generated by GNU Autoconf 2.59. Invocation command line was
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_must_keep_next=false
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
1268 ac_must_keep_next=false # Got value, back to normal.
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279 -* ) ac_must_keep_next=true ;;
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log. We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1308 # The following way of writing the cache mishandles newlines in values,
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1331 for ac_var in $ac_subst_vars
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1338 if test -n "$ac_subst_files"; then
1345 for ac_var in $ac_subst_files
1347 eval ac_val=$`echo $ac_var`
1348 echo "$ac_var='"'"'$ac_val'"'"'"
1353 if test -s confdefs.h; then
1360 sed "/^$/d" confdefs.h | sort
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1367 rm -f core *.core &&
1368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371 for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 # Predefined preprocessor variables.
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417 for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1426 if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1443 # Check that the precious variables saved in the cache have kept the same
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
1464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1467 echo "$as_me: former value: $ac_old_val" >&2;}
1468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1469 echo "$as_me: current value: $ac_new_val" >&2;}
1470 ac_cache_corrupted=:
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486 if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1536 for ac_dir in autoconf $srcdir/autoconf; do
1537 if test -f $ac_dir/install-sh; then
1539 ac_install_sh="$ac_aux_dir/install-sh -c"
1541 elif test -f $ac_dir/install.sh; then
1543 ac_install_sh="$ac_aux_dir/install.sh -c"
1545 elif test -f $ac_dir/shtool; then
1547 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 if test -z "$ac_aux_dir"; then
1552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1554 { (exit 1); exit 1; }; }
1556 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561 if test ${srcdir} != "." ; then
1562 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1564 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565 { (exit 1); exit 1; }; }
1569 for i in `ls ${srcdir}/projects`
1571 if test -d ${srcdir}/projects/${i} ; then
1576 subdirs="$subdirs projects/sample"
1580 subdirs="$subdirs projects/Stacker"
1584 subdirs="$subdirs projects/llvm-test"
1588 subdirs="$subdirs projects/llvm-reopt"
1592 subdirs="$subdirs projects/llvm-gcc"
1596 subdirs="$subdirs projects/Java"
1600 subdirs="$subdirs projects/llvm-tv"
1604 subdirs="$subdirs projects/llvm-fefw"
1608 subdirs="$subdirs projects/poolalloc"
1611 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1619 # Make sure we can run config.sub.
1620 $ac_config_sub sun4 >/dev/null 2>&1 ||
1621 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623 { (exit 1); exit 1; }; }
1625 echo "$as_me:$LINENO: checking build system type" >&5
1626 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627 if test "${ac_cv_build+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 ac_cv_build_alias=$build_alias
1631 test -z "$ac_cv_build_alias" &&
1632 ac_cv_build_alias=`$ac_config_guess`
1633 test -z "$ac_cv_build_alias" &&
1634 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636 { (exit 1); exit 1; }; }
1637 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1643 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644 echo "${ECHO_T}$ac_cv_build" >&6
1646 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651 echo "$as_me:$LINENO: checking host system type" >&5
1652 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653 if test "${ac_cv_host+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 ac_cv_host_alias=$host_alias
1657 test -z "$ac_cv_host_alias" &&
1658 ac_cv_host_alias=$ac_cv_build_alias
1659 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662 { (exit 1); exit 1; }; }
1665 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666 echo "${ECHO_T}$ac_cv_host" >&6
1668 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673 echo "$as_me:$LINENO: checking target system type" >&5
1674 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675 if test "${ac_cv_target+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 ac_cv_target_alias=$target_alias
1679 test "x$ac_cv_target_alias" = "x" &&
1680 ac_cv_target_alias=$ac_cv_host_alias
1681 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684 { (exit 1); exit 1; }; }
1687 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688 echo "${ECHO_T}$ac_cv_target" >&6
1689 target=$ac_cv_target
1690 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1695 # The aliases save the names the user supplied, while $host etc.
1696 # will get canonicalized.
1697 test -n "$target_alias" &&
1698 test "$program_prefix$program_suffix$program_transform_name" = \
1700 program_prefix=${target_alias}-
1702 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704 if test "${llvm_cv_os_type+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 llvm_cv_os_type="AIX"
1710 llvm_cv_platform_type="Unix" ;;
1712 llvm_cv_os_type="Cygwin"
1713 llvm_cv_platform_type="Unix" ;;
1715 llvm_cv_os_type="Darwin"
1716 llvm_cv_platform_type="Unix" ;;
1718 llvm_cv_os_type="FreeBSD"
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
1762 cat >>confdefs.h <<\_ACEOF
1763 #define LLVM_ON_WIN32 1
1770 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1775 echo "$as_me:$LINENO: checking target architecture" >&5
1776 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1777 if test "${llvm_cv_target_arch+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 i?86-*) llvm_cv_target_arch="x86" ;;
1782 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1783 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1784 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1785 *) llvm_cv_target_arch="Unknown" ;;
1788 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1789 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1791 if test "$llvm_cv_target_arch" = "Unknown" ; then
1792 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1793 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1796 ARCH=$llvm_cv_target_arch
1800 ac_cpp='$CPP $CPPFLAGS'
1801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1804 if test -n "$ac_tool_prefix"; then
1805 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1806 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 if test -n "$CC"; then
1833 echo "$as_me:$LINENO: result: $CC" >&5
1834 echo "${ECHO_T}$CC" >&6
1836 echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1841 if test -z "$ac_cv_prog_CC"; then
1843 # Extract the first word of "gcc", so it can be a program name with args.
1844 set dummy gcc; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 if test -n "$ac_ct_CC"; then
1851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_ac_ct_CC="gcc"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1870 if test -n "$ac_ct_CC"; then
1871 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1872 echo "${ECHO_T}$ac_ct_CC" >&6
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1883 if test -z "$CC"; then
1884 if test -n "$ac_tool_prefix"; then
1885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1886 set dummy ${ac_tool_prefix}cc; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$CC"; then
1893 ac_cv_prog_CC="$CC" # Let the user override the test.
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_CC="${ac_tool_prefix}cc"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 if test -n "$CC"; then
1913 echo "$as_me:$LINENO: result: $CC" >&5
1914 echo "${ECHO_T}$CC" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1921 if test -z "$ac_cv_prog_CC"; then
1923 # Extract the first word of "cc", so it can be a program name with args.
1924 set dummy cc; ac_word=$2
1925 echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 if test -n "$ac_ct_CC"; then
1931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940 ac_cv_prog_ac_ct_CC="cc"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1950 if test -n "$ac_ct_CC"; then
1951 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1952 echo "${ECHO_T}$ac_ct_CC" >&6
1954 echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1964 if test -z "$CC"; then
1965 # Extract the first word of "cc", so it can be a program name with args.
1966 set dummy cc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1984 ac_prog_rejected=yes
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 if test $ac_prog_rejected = yes; then
1995 # We found a bogon in the path, so make sure we never use it.
1996 set dummy $ac_cv_prog_CC
1998 if test $# != 0; then
1999 # We chose a different compiler from the bogus one.
2000 # However, it has the same basename, so the bogon will be chosen
2001 # first if we set CC to just the basename; use the full file name.
2003 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2009 if test -n "$CC"; then
2010 echo "$as_me:$LINENO: result: $CC" >&5
2011 echo "${ECHO_T}$CC" >&6
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2018 if test -z "$CC"; then
2019 if test -n "$ac_tool_prefix"; then
2022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2024 echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026 if test "${ac_cv_prog_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 if test -n "$CC"; then
2030 ac_cv_prog_CC="$CC" # Let the user override the test.
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 if test -n "$CC"; then
2050 echo "$as_me:$LINENO: result: $CC" >&5
2051 echo "${ECHO_T}$CC" >&6
2053 echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6
2057 test -n "$CC" && break
2060 if test -z "$CC"; then
2064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2065 set dummy $ac_prog; ac_word=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 if test -n "$ac_ct_CC"; then
2072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081 ac_cv_prog_ac_ct_CC="$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091 if test -n "$ac_ct_CC"; then
2092 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2093 echo "${ECHO_T}$ac_ct_CC" >&6
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2099 test -n "$ac_ct_CC" && break
2108 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&5
2110 echo "$as_me: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2114 # Provide some information about the compiler.
2115 echo "$as_me:$LINENO:" \
2116 "checking for C compiler version" >&5
2117 ac_compiler=`set X $ac_compile; echo $2`
2118 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2119 (eval $ac_compiler --version </dev/null >&5) 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2124 (eval $ac_compiler -v </dev/null >&5) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2129 (eval $ac_compiler -V </dev/null >&5) 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2134 cat >conftest.$ac_ext <<_ACEOF
2137 cat confdefs.h >>conftest.$ac_ext
2138 cat >>conftest.$ac_ext <<_ACEOF
2139 /* end confdefs.h. */
2149 ac_clean_files_save=$ac_clean_files
2150 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2151 # Try to create an executable without -o first, disregard a.out.
2152 # It will help us diagnose broken compilers, and finding out an intuition
2154 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2155 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2156 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2157 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2158 (eval $ac_link_default) 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
2162 # Find the output, starting from the most likely. This scheme is
2163 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2166 # Be careful to initialize this variable, since it used to be cached.
2167 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2169 # b.out is created by i960 compilers.
2170 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2172 test -f "$ac_file" || continue
2174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2177 # This is the source file.
2180 # We found the default executable, but exeext='' is most
2184 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185 # FIXME: I believe we export ac_cv_exeext for Libtool,
2186 # but it would be cool to find out if it's true. Does anybody
2187 # maintain Libtool? --akim.
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2198 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&2;}
2202 { (exit 77); exit 77; }; }
2205 ac_exeext=$ac_cv_exeext
2206 echo "$as_me:$LINENO: result: $ac_file" >&5
2207 echo "${ECHO_T}$ac_file" >&6
2209 # Check the compiler produces executables we can run. If not, either
2210 # the compiler is broken, or we cross compile.
2211 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2213 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214 # If not cross compiling, check that we can run a simple program.
2215 if test "$cross_compiling" != yes; then
2216 if { ac_try='./$ac_file'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2224 if test "$cross_compiling" = maybe; then
2227 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: cannot run C compiled programs.
2231 If you meant to cross compile, use \`--host'.
2232 See \`config.log' for more details." >&2;}
2233 { (exit 1); exit 1; }; }
2237 echo "$as_me:$LINENO: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6
2240 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2241 ac_clean_files=$ac_clean_files_save
2242 # Check the compiler produces executables we can run. If not, either
2243 # the compiler is broken, or we cross compile.
2244 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2245 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2246 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2247 echo "${ECHO_T}$cross_compiling" >&6
2249 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2250 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2252 (eval $ac_link) 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
2256 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
2260 for ac_file in conftest.exe conftest conftest.*; do
2261 test -f "$ac_file" || continue
2263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2271 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2278 rm -f conftest$ac_cv_exeext
2279 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2280 echo "${ECHO_T}$ac_cv_exeext" >&6
2282 rm -f conftest.$ac_ext
2283 EXEEXT=$ac_cv_exeext
2285 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2286 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2287 if test "${ac_cv_objext+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 cat >conftest.$ac_ext <<_ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2305 rm -f conftest.o conftest.obj
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; then
2311 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2331 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332 echo "${ECHO_T}$ac_cv_objext" >&6
2333 OBJEXT=$ac_cv_objext
2335 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 cat >conftest.$ac_ext <<_ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>conftest.er1
2362 grep -v '^ *+' conftest.er1 >conftest.err
2364 cat conftest.err >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
2367 { ac_try='test -z "$ac_c_werror_flag"
2368 || test ! -s conftest.err'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; } &&
2374 { ac_try='test -s conftest.$ac_objext'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; }; then
2382 echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2388 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2391 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2392 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2393 GCC=`test $ac_compiler_gnu = yes && echo yes`
2394 ac_test_CFLAGS=${CFLAGS+set}
2395 ac_save_CFLAGS=$CFLAGS
2397 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2398 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2399 if test "${ac_cv_prog_cc_g+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 cat >conftest.$ac_ext <<_ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h. */
2417 rm -f conftest.$ac_objext
2418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419 (eval $ac_compile) 2>conftest.er1
2421 grep -v '^ *+' conftest.er1 >conftest.err
2423 cat conftest.err >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } &&
2426 { ac_try='test -z "$ac_c_werror_flag"
2427 || test ! -s conftest.err'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2449 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2450 if test "$ac_test_CFLAGS" = set; then
2451 CFLAGS=$ac_save_CFLAGS
2452 elif test $ac_cv_prog_cc_g = yes; then
2453 if test "$GCC" = yes; then
2459 if test "$GCC" = yes; then
2465 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2466 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2467 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 ac_cv_prog_cc_stdc=no
2472 cat >conftest.$ac_ext <<_ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2480 #include <sys/types.h>
2481 #include <sys/stat.h>
2482 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2483 struct buf { int x; };
2484 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2485 static char *e (p, i)
2491 static char *f (char * (*g) (char **, int), char **p, ...)
2496 s = g (p, va_arg (v,int));
2501 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2502 function prototypes and stuff, but not '\xHH' hex character constants.
2503 These don't provoke an error unfortunately, instead are silently treated
2504 as 'x'. The following induces an error, until -std1 is added to get
2505 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2506 array size at least. It's necessary to write '\x00'==0 to get something
2507 that's true only with -std1. */
2508 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2510 int test (int i, double x);
2511 struct s1 {int (*f) (int a);};
2512 struct s2 {int (*f) (double a);};
2513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2519 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2524 # Don't try gcc -ansi; that turns off useful extensions and
2525 # breaks some systems' header files.
2526 # AIX -qlanglvl=ansi
2527 # Ultrix and OSF/1 -std1
2528 # HP-UX 10.20 and later -Ae
2529 # HP-UX older versions -Aa -D_HPUX_SOURCE
2530 # SVR4 -Xc -D__EXTENSIONS__
2531 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2533 CC="$ac_save_CC $ac_arg"
2534 rm -f conftest.$ac_objext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536 (eval $ac_compile) 2>conftest.er1
2538 grep -v '^ *+' conftest.er1 >conftest.err
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -z "$ac_c_werror_flag"
2544 || test ! -s conftest.err'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2556 ac_cv_prog_cc_stdc=$ac_arg
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2563 rm -f conftest.err conftest.$ac_objext
2565 rm -f conftest.$ac_ext conftest.$ac_objext
2570 case "x$ac_cv_prog_cc_stdc" in
2572 echo "$as_me:$LINENO: result: none needed" >&5
2573 echo "${ECHO_T}none needed" >&6 ;;
2575 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2576 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2577 CC="$CC $ac_cv_prog_cc_stdc" ;;
2580 # Some people use a C++ compiler to compile C. Since we use `exit',
2581 # in C++ we need to declare it. In case someone uses the same compiler
2582 # for both compiling C and C++ we need to have the C++ compiler decide
2583 # the declaration of exit, since it's the most demanding environment.
2584 cat >conftest.$ac_ext <<_ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_c_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 for ac_declaration in \
2613 'extern "C" void std::exit (int) throw (); using std::exit;' \
2614 'extern "C" void std::exit (int); using std::exit;' \
2615 'extern "C" void exit (int) throw ();' \
2616 'extern "C" void exit (int);' \
2619 cat >conftest.$ac_ext <<_ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2635 rm -f conftest.$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>conftest.er1
2639 grep -v '^ *+' conftest.er1 >conftest.err
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -z "$ac_c_werror_flag"
2645 || test ! -s conftest.err'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2665 cat >conftest.$ac_ext <<_ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>conftest.er1
2684 grep -v '^ *+' conftest.er1 >conftest.err
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2711 if test -n "$ac_declaration"; then
2712 echo '#ifdef __cplusplus' >>confdefs.h
2713 echo $ac_declaration >>confdefs.h
2714 echo '#endif' >>confdefs.h
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2731 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2732 if test "${ac_cv_c_bigendian+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 # See if sys/param.h defines the BYTE_ORDER macro.
2736 cat >conftest.$ac_ext <<_ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2742 #include <sys/types.h>
2743 #include <sys/param.h>
2748 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2760 grep -v '^ *+' conftest.er1 >conftest.err
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 # It does; now see whether it defined to BIG_ENDIAN or not.
2779 cat >conftest.$ac_ext <<_ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2785 #include <sys/types.h>
2786 #include <sys/param.h>
2791 #if BYTE_ORDER != BIG_ENDIAN
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>conftest.er1
2803 grep -v '^ *+' conftest.er1 >conftest.err
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -z "$ac_c_werror_flag"
2809 || test ! -s conftest.err'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 ac_cv_c_bigendian=yes
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 ac_cv_c_bigendian=no
2828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 # It does not; compile a test program.
2834 if test "$cross_compiling" = yes; then
2835 # try to guess the endianness by grepping values into an object file
2836 ac_cv_c_bigendian=unknown
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2843 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2844 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2845 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2846 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2847 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2848 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2852 _ascii (); _ebcdic ();
2857 rm -f conftest.$ac_objext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>conftest.er1
2861 grep -v '^ *+' conftest.er1 >conftest.err
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try='test -z "$ac_c_werror_flag"
2867 || test ! -s conftest.err'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; } &&
2873 { ac_try='test -s conftest.$ac_objext'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2879 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2880 ac_cv_c_bigendian=yes
2882 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2883 if test "$ac_cv_c_bigendian" = unknown; then
2884 ac_cv_c_bigendian=no
2886 # finding both strings is unlikely to happen, but who knows?
2887 ac_cv_c_bigendian=unknown
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2897 cat >conftest.$ac_ext <<_ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2906 /* Are we little or big endian? From Harbison&Steele. */
2910 char c[sizeof (long)];
2913 exit (u.c[sizeof (long) - 1] == 1);
2916 rm -f conftest$ac_exeext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2918 (eval $ac_link) 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 ac_cv_c_bigendian=no
2929 echo "$as_me: program exited with status $ac_status" >&5
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2934 ac_cv_c_bigendian=yes
2936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2941 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2942 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2943 case $ac_cv_c_bigendian in
2951 { { echo "$as_me:$LINENO: error: unknown endianness
2952 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2953 echo "$as_me: error: unknown endianness
2954 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2955 { (exit 1); exit 1; }; } ;;
2960 # Check whether --enable-optimized or --disable-optimized was given.
2961 if test "${enable_optimized+set}" = set; then
2962 enableval="$enable_optimized"
2967 if test ${enableval} = "no" ; then
2971 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2975 # Check whether --enable-jit or --disable-jit was given.
2976 if test "${enable_jit+set}" = set; then
2977 enableval="$enable_jit"
2982 if test ${enableval} = "no"
2987 case "$llvm_cv_target_arch" in
2988 x86) JIT=TARGET_HAS_JIT=1
2990 Sparc) JIT=TARGET_HAS_JIT=1
2992 PowerPC) JIT=TARGET_HAS_JIT=1
3001 # Check whether --enable-doxygen or --disable-doxygen was given.
3002 if test "${enable_doxygen+set}" = set; then
3003 enableval="$enable_doxygen"
3008 case "$enableval" in
3009 yes) ENABLE_DOXYGEN=1
3011 no) ENABLE_DOXYGEN=0
3013 default) ENABLE_DOXYGEN=0
3015 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3016 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3017 { (exit 1); exit 1; }; } ;;
3021 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3022 if test "${with_llvmgccdir+set}" = set; then
3023 withval="$with_llvmgccdir"
3029 default) WITH_LLVMGCCDIR=default ;;
3030 /*) WITH_LLVMGCCDIR=$withval ;;
3031 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3032 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3033 { (exit 1); exit 1; }; } ;;
3038 ac_cpp='$CPP $CPPFLAGS'
3039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3043 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3044 # On Suns, sometimes $CPP names a directory.
3045 if test -n "$CPP" && test -d "$CPP"; then
3048 if test -z "$CPP"; then
3049 if test "${ac_cv_prog_CPP+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 # Double quotes because CPP needs to be expanded
3053 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3056 for ac_c_preproc_warn_flag in '' yes
3058 # Use a header file that comes with gcc, so configuring glibc
3059 # with a fresh cross-compiler works.
3060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061 # <limits.h> exists even on freestanding compilers.
3062 # On the NeXT, cc -E runs the code through the compiler's parser,
3063 # not just through cpp. "Syntax error" is here to catch this case.
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3071 # include <limits.h>
3073 # include <assert.h>
3077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3080 grep -v '^ *+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } >/dev/null; then
3085 if test -s conftest.err; then
3086 ac_cpp_err=$ac_c_preproc_warn_flag
3087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3094 if test -z "$ac_cpp_err"; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 # Broken: fails on valid input.
3103 rm -f conftest.err conftest.$ac_ext
3105 # OK, works on sane cases. Now check whether non-existent headers
3106 # can be detected and how.
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113 #include <ac_nonexistent.h>
3115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3118 grep -v '^ *+' conftest.er1 >conftest.err
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } >/dev/null; then
3123 if test -s conftest.err; then
3124 ac_cpp_err=$ac_c_preproc_warn_flag
3125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3132 if test -z "$ac_cpp_err"; then
3133 # Broken: success on invalid input.
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 # Passes both tests.
3143 rm -f conftest.err conftest.$ac_ext
3146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147 rm -f conftest.err conftest.$ac_ext
3148 if $ac_preproc_ok; then
3160 echo "$as_me:$LINENO: result: $CPP" >&5
3161 echo "${ECHO_T}$CPP" >&6
3163 for ac_c_preproc_warn_flag in '' yes
3165 # Use a header file that comes with gcc, so configuring glibc
3166 # with a fresh cross-compiler works.
3167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3168 # <limits.h> exists even on freestanding compilers.
3169 # On the NeXT, cc -E runs the code through the compiler's parser,
3170 # not just through cpp. "Syntax error" is here to catch this case.
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3178 # include <limits.h>
3180 # include <assert.h>
3184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3187 grep -v '^ *+' conftest.er1 >conftest.err
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } >/dev/null; then
3192 if test -s conftest.err; then
3193 ac_cpp_err=$ac_c_preproc_warn_flag
3194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3201 if test -z "$ac_cpp_err"; then
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 # Broken: fails on valid input.
3210 rm -f conftest.err conftest.$ac_ext
3212 # OK, works on sane cases. Now check whether non-existent headers
3213 # can be detected and how.
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3220 #include <ac_nonexistent.h>
3222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } >/dev/null; then
3230 if test -s conftest.err; then
3231 ac_cpp_err=$ac_c_preproc_warn_flag
3232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3239 if test -z "$ac_cpp_err"; then
3240 # Broken: success on invalid input.
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 # Passes both tests.
3250 rm -f conftest.err conftest.$ac_ext
3253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3254 rm -f conftest.err conftest.$ac_ext
3255 if $ac_preproc_ok; then
3258 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3259 See \`config.log' for more details." >&5
3260 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3261 See \`config.log' for more details." >&2;}
3262 { (exit 1); exit 1; }; }
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 if test -n "$ac_tool_prefix"; then
3279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281 echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283 if test "${ac_cv_prog_CC+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 if test -n "$CC"; then
3307 echo "$as_me:$LINENO: result: $CC" >&5
3308 echo "${ECHO_T}$CC" >&6
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3314 test -n "$CC" && break
3317 if test -z "$CC"; then
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 if test -n "$ac_ct_CC"; then
3329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_prog_ac_ct_CC="$ac_prog"
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348 if test -n "$ac_ct_CC"; then
3349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3350 echo "${ECHO_T}$ac_ct_CC" >&6
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3356 test -n "$ac_ct_CC" && break
3363 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3364 See \`config.log' for more details." >&5
3365 echo "$as_me: error: no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details." >&2;}
3367 { (exit 1); exit 1; }; }
3369 # Provide some information about the compiler.
3370 echo "$as_me:$LINENO:" \
3371 "checking for C compiler version" >&5
3372 ac_compiler=`set X $ac_compile; echo $2`
3373 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3374 (eval $ac_compiler --version </dev/null >&5) 2>&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }
3378 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3379 (eval $ac_compiler -v </dev/null >&5) 2>&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }
3383 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3384 (eval $ac_compiler -V </dev/null >&5) 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3389 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3390 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3391 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 cat >conftest.$ac_ext <<_ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try='test -z "$ac_c_werror_flag"
3422 || test ! -s conftest.err'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3445 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3446 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3447 GCC=`test $ac_compiler_gnu = yes && echo yes`
3448 ac_test_CFLAGS=${CFLAGS+set}
3449 ac_save_CFLAGS=$CFLAGS
3451 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3452 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3453 if test "${ac_cv_prog_cc_g+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 cat >conftest.$ac_ext <<_ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3471 rm -f conftest.$ac_objext
3472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3473 (eval $ac_compile) 2>conftest.er1
3475 grep -v '^ *+' conftest.er1 >conftest.err
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
3480 { ac_try='test -z "$ac_c_werror_flag"
3481 || test ! -s conftest.err'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; } &&
3487 { ac_try='test -s conftest.$ac_objext'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; }; then
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3502 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3503 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3504 if test "$ac_test_CFLAGS" = set; then
3505 CFLAGS=$ac_save_CFLAGS
3506 elif test $ac_cv_prog_cc_g = yes; then
3507 if test "$GCC" = yes; then
3513 if test "$GCC" = yes; then
3519 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3520 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3521 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 ac_cv_prog_cc_stdc=no
3526 cat >conftest.$ac_ext <<_ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3534 #include <sys/types.h>
3535 #include <sys/stat.h>
3536 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3537 struct buf { int x; };
3538 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3539 static char *e (p, i)
3545 static char *f (char * (*g) (char **, int), char **p, ...)
3550 s = g (p, va_arg (v,int));
3555 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3556 function prototypes and stuff, but not '\xHH' hex character constants.
3557 These don't provoke an error unfortunately, instead are silently treated
3558 as 'x'. The following induces an error, until -std1 is added to get
3559 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3560 array size at least. It's necessary to write '\x00'==0 to get something
3561 that's true only with -std1. */
3562 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3564 int test (int i, double x);
3565 struct s1 {int (*f) (int a);};
3566 struct s2 {int (*f) (double a);};
3567 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3573 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3578 # Don't try gcc -ansi; that turns off useful extensions and
3579 # breaks some systems' header files.
3580 # AIX -qlanglvl=ansi
3581 # Ultrix and OSF/1 -std1
3582 # HP-UX 10.20 and later -Ae
3583 # HP-UX older versions -Aa -D_HPUX_SOURCE
3584 # SVR4 -Xc -D__EXTENSIONS__
3585 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3587 CC="$ac_save_CC $ac_arg"
3588 rm -f conftest.$ac_objext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590 (eval $ac_compile) 2>conftest.er1
3592 grep -v '^ *+' conftest.er1 >conftest.err
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 { ac_try='test -z "$ac_c_werror_flag"
3598 || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 ac_cv_prog_cc_stdc=$ac_arg
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3617 rm -f conftest.err conftest.$ac_objext
3619 rm -f conftest.$ac_ext conftest.$ac_objext
3624 case "x$ac_cv_prog_cc_stdc" in
3626 echo "$as_me:$LINENO: result: none needed" >&5
3627 echo "${ECHO_T}none needed" >&6 ;;
3629 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3630 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3631 CC="$CC $ac_cv_prog_cc_stdc" ;;
3634 # Some people use a C++ compiler to compile C. Since we use `exit',
3635 # in C++ we need to declare it. In case someone uses the same compiler
3636 # for both compiling C and C++ we need to have the C++ compiler decide
3637 # the declaration of exit, since it's the most demanding environment.
3638 cat >conftest.$ac_ext <<_ACEOF
3643 rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3647 grep -v '^ *+' conftest.er1 >conftest.err
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 for ac_declaration in \
3667 'extern "C" void std::exit (int) throw (); using std::exit;' \
3668 'extern "C" void std::exit (int); using std::exit;' \
3669 'extern "C" void exit (int) throw ();' \
3670 'extern "C" void exit (int);' \
3673 cat >conftest.$ac_ext <<_ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3693 grep -v '^ *+' conftest.er1 >conftest.err
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3734 rm -f conftest.$ac_objext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736 (eval $ac_compile) 2>conftest.er1
3738 grep -v '^ *+' conftest.er1 >conftest.err
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try='test -z "$ac_c_werror_flag"
3744 || test ! -s conftest.err'
3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; } &&
3750 { ac_try='test -s conftest.$ac_objext'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; }; then
3758 echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 if test -n "$ac_declaration"; then
3766 echo '#ifdef __cplusplus' >>confdefs.h
3767 echo $ac_declaration >>confdefs.h
3768 echo '#endif' >>confdefs.h
3772 echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 ac_cpp='$CXXCPP $CPPFLAGS'
3785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3788 if test -n "$ac_tool_prefix"; then
3789 for ac_prog in $CCC g++
3791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3792 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3793 echo "$as_me:$LINENO: checking for $ac_word" >&5
3794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795 if test "${ac_cv_prog_CXX+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 if test -n "$CXX"; then
3799 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 if test -n "$CXX"; then
3819 echo "$as_me:$LINENO: result: $CXX" >&5
3820 echo "${ECHO_T}$CXX" >&6
3822 echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3826 test -n "$CXX" && break
3829 if test -z "$CXX"; then
3831 for ac_prog in $CCC g++
3833 # Extract the first word of "$ac_prog", so it can be a program name with args.
3834 set dummy $ac_prog; ac_word=$2
3835 echo "$as_me:$LINENO: checking for $ac_word" >&5
3836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3837 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 if test -n "$ac_ct_CXX"; then
3841 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_ac_ct_CXX="$ac_prog"
3851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3860 if test -n "$ac_ct_CXX"; then
3861 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3862 echo "${ECHO_T}$ac_ct_CXX" >&6
3864 echo "$as_me:$LINENO: result: no" >&5
3865 echo "${ECHO_T}no" >&6
3868 test -n "$ac_ct_CXX" && break
3870 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3876 # Provide some information about the compiler.
3877 echo "$as_me:$LINENO:" \
3878 "checking for C++ compiler version" >&5
3879 ac_compiler=`set X $ac_compile; echo $2`
3880 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3881 (eval $ac_compiler --version </dev/null >&5) 2>&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }
3885 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3886 (eval $ac_compiler -v </dev/null >&5) 2>&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }
3890 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3891 (eval $ac_compiler -V </dev/null >&5) 2>&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }
3896 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3897 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3898 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3919 rm -f conftest.$ac_objext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921 (eval $ac_compile) 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try='test -z "$ac_cxx_werror_flag"
3929 || test ! -s conftest.err'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; } &&
3935 { ac_try='test -s conftest.$ac_objext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3949 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3952 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3953 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3954 GXX=`test $ac_compiler_gnu = yes && echo yes`
3955 ac_test_CXXFLAGS=${CXXFLAGS+set}
3956 ac_save_CXXFLAGS=$CXXFLAGS
3958 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3959 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3960 if test "${ac_cv_prog_cxx_g+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3982 grep -v '^ *+' conftest.er1 >conftest.err
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_cxx_werror_flag"
3988 || test ! -s conftest.err'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 ac_cv_prog_cxx_g=yes
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4010 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4011 if test "$ac_test_CXXFLAGS" = set; then
4012 CXXFLAGS=$ac_save_CXXFLAGS
4013 elif test $ac_cv_prog_cxx_g = yes; then
4014 if test "$GXX" = yes; then
4020 if test "$GXX" = yes; then
4026 for ac_declaration in \
4028 'extern "C" void std::exit (int) throw (); using std::exit;' \
4029 'extern "C" void std::exit (int); using std::exit;' \
4030 'extern "C" void exit (int) throw ();' \
4031 'extern "C" void exit (int);' \
4034 cat >conftest.$ac_ext <<_ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4050 rm -f conftest.$ac_objext
4051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4052 (eval $ac_compile) 2>conftest.er1
4054 grep -v '^ *+' conftest.er1 >conftest.err
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } &&
4059 { ac_try='test -z "$ac_cxx_werror_flag"
4060 || test ! -s conftest.err'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; } &&
4066 { ac_try='test -s conftest.$ac_objext'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
4099 grep -v '^ *+' conftest.er1 >conftest.err
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_cxx_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126 if test -n "$ac_declaration"; then
4127 echo '#ifdef __cplusplus' >>confdefs.h
4128 echo $ac_declaration >>confdefs.h
4129 echo '#endif' >>confdefs.h
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138 echo "$as_me:$LINENO: checking " >&5
4139 echo $ECHO_N "checking ... $ECHO_C" >&6
4140 if test "${ac_cv_has_flex+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 for ac_prog in flex lex
4145 # Extract the first word of "$ac_prog", so it can be a program name with args.
4146 set dummy $ac_prog; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_prog_LEX+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 if test -n "$LEX"; then
4153 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_prog_LEX="$ac_prog"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 if test -n "$LEX"; then
4173 echo "$as_me:$LINENO: result: $LEX" >&5
4174 echo "${ECHO_T}$LEX" >&6
4176 echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4180 test -n "$LEX" && break
4182 test -n "$LEX" || LEX=":"
4184 if test -z "$LEXLIB"
4186 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4187 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4188 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 ac_check_lib_save_LIBS=$LIBS
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4200 /* Override any gcc2 internal prototype to avoid an error. */
4204 /* We use char because int might match the return type of a gcc2
4205 builtin and then its argument prototype would still apply. */
4215 rm -f conftest.$ac_objext conftest$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217 (eval $ac_link) 2>conftest.er1
4219 grep -v '^ *+' conftest.er1 >conftest.err
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag"
4225 || test ! -s conftest.err'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest$ac_exeext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 ac_cv_lib_fl_yywrap=yes
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 ac_cv_lib_fl_yywrap=no
4244 rm -f conftest.err conftest.$ac_objext \
4245 conftest$ac_exeext conftest.$ac_ext
4246 LIBS=$ac_check_lib_save_LIBS
4248 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4249 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4250 if test $ac_cv_lib_fl_yywrap = yes; then
4253 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4254 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4255 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 ac_check_lib_save_LIBS=$LIBS
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4267 /* Override any gcc2 internal prototype to avoid an error. */
4271 /* We use char because int might match the return type of a gcc2
4272 builtin and then its argument prototype would still apply. */
4282 rm -f conftest.$ac_objext conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest$ac_exeext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_lib_l_yywrap=yes
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 ac_cv_lib_l_yywrap=no
4311 rm -f conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
4313 LIBS=$ac_check_lib_save_LIBS
4315 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4316 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4317 if test $ac_cv_lib_l_yywrap = yes; then
4325 if test "x$LEX" != "x:"; then
4326 echo "$as_me:$LINENO: checking lex output file root" >&5
4327 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4328 if test "${ac_cv_prog_lex_root+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 # The minimal lex program is just a single line: %%. But some broken lexes
4332 # (Solaris, I think it was) want two %% lines, so accommodate them.
4333 cat >conftest.l <<_ACEOF
4337 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4338 (eval $LEX conftest.l) 2>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }
4342 if test -f lex.yy.c; then
4343 ac_cv_prog_lex_root=lex.yy
4344 elif test -f lexyy.c; then
4345 ac_cv_prog_lex_root=lexyy
4347 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4348 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4349 { (exit 1); exit 1; }; }
4352 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4353 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4355 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4357 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4358 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4359 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 # POSIX says lex can declare yytext either as a pointer or an array; the
4363 # default is implementation-dependent. Figure out which it is, since
4364 # not all implementations provide the %pointer and %array declarations.
4365 ac_cv_prog_lex_yytext_pointer=no
4366 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4368 LIBS="$LIBS $LEXLIB"
4369 cat >conftest.$ac_ext <<_ACEOF
4370 `cat $LEX_OUTPUT_ROOT.c`
4372 rm -f conftest.$ac_objext conftest$ac_exeext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374 (eval $ac_link) 2>conftest.er1
4376 grep -v '^ *+' conftest.er1 >conftest.err
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try='test -z "$ac_c_werror_flag"
4382 || test ! -s conftest.err'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try='test -s conftest$ac_exeext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_cv_prog_lex_yytext_pointer=yes
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4400 rm -f conftest.err conftest.$ac_objext \
4401 conftest$ac_exeext conftest.$ac_ext
4403 rm -f "${LEX_OUTPUT_ROOT}.c"
4406 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4407 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4408 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4410 cat >>confdefs.h <<\_ACEOF
4411 #define YYTEXT_POINTER 1
4419 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4420 echo "${ECHO_T}$ac_cv_has_flex" >&6
4421 if test "$LEX" != "flex"; then
4422 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4423 echo "$as_me: error: flex not found but required" >&2;}
4424 { (exit 1); exit 1; }; }
4430 echo "$as_me:$LINENO: checking " >&5
4431 echo $ECHO_N "checking ... $ECHO_C" >&6
4432 if test "${llvm_cv_has_bison+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 for ac_prog in 'bison -y' byacc
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441 if test "${ac_cv_prog_YACC+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 if test -n "$YACC"; then
4445 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_YACC="$ac_prog"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 YACC=$ac_cv_prog_YACC
4464 if test -n "$YACC"; then
4465 echo "$as_me:$LINENO: result: $YACC" >&5
4466 echo "${ECHO_T}$YACC" >&6
4468 echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4472 test -n "$YACC" && break
4474 test -n "$YACC" || YACC="yacc"
4477 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4478 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4479 if test "$YACC" != "bison -y"; then
4480 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4481 echo "$as_me: error: bison not found but required" >&2;}
4482 { (exit 1); exit 1; }; }
4488 echo "$as_me:$LINENO: checking for GNU make" >&5
4489 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4490 if test "${llvm_cv_gnu_make_command+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 llvm_cv_gnu_make_command=''
4494 for a in "$MAKE" make gmake gnumake ; do
4495 if test -z "$a" ; then continue ; fi ;
4496 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4498 llvm_cv_gnu_make_command=$a ;
4503 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4504 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4505 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4509 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4510 echo "${ECHO_T}\"Not found\"" >&6;
4514 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4515 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4517 if test "$LN_S" = "ln -s"; then
4518 echo "$as_me:$LINENO: result: yes" >&5
4519 echo "${ECHO_T}yes" >&6
4521 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4522 echo "${ECHO_T}no, using $LN_S" >&6
4525 # Extract the first word of "cmp", so it can be a program name with args.
4526 set dummy cmp; ac_word=$2
4527 echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4529 if test "${ac_cv_path_CMP+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4557 if test -n "$CMP"; then
4558 echo "$as_me:$LINENO: result: $CMP" >&5
4559 echo "${ECHO_T}$CMP" >&6
4561 echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6
4565 # Extract the first word of "cp", so it can be a program name with args.
4566 set dummy cp; ac_word=$2
4567 echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_path_CP+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4597 if test -n "$CP"; then
4598 echo "$as_me:$LINENO: result: $CP" >&5
4599 echo "${ECHO_T}$CP" >&6
4601 echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6
4605 # Extract the first word of "date", so it can be a program name with args.
4606 set dummy date; ac_word=$2
4607 echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4609 if test "${ac_cv_path_DATE+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4635 DATE=$ac_cv_path_DATE
4637 if test -n "$DATE"; then
4638 echo "$as_me:$LINENO: result: $DATE" >&5
4639 echo "${ECHO_T}$DATE" >&6
4641 echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6
4645 # Extract the first word of "find", so it can be a program name with args.
4646 set dummy find; ac_word=$2
4647 echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649 if test "${ac_cv_path_FIND+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4675 FIND=$ac_cv_path_FIND
4677 if test -n "$FIND"; then
4678 echo "$as_me:$LINENO: result: $FIND" >&5
4679 echo "${ECHO_T}$FIND" >&6
4681 echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4685 # Extract the first word of "grep", so it can be a program name with args.
4686 set dummy grep; ac_word=$2
4687 echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4689 if test "${ac_cv_path_GREP+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4715 GREP=$ac_cv_path_GREP
4717 if test -n "$GREP"; then
4718 echo "$as_me:$LINENO: result: $GREP" >&5
4719 echo "${ECHO_T}$GREP" >&6
4721 echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6
4725 # Extract the first word of "mkdir", so it can be a program name with args.
4726 set dummy mkdir; ac_word=$2
4727 echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729 if test "${ac_cv_path_MKDIR+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4755 MKDIR=$ac_cv_path_MKDIR
4757 if test -n "$MKDIR"; then
4758 echo "$as_me:$LINENO: result: $MKDIR" >&5
4759 echo "${ECHO_T}$MKDIR" >&6
4761 echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4765 # Extract the first word of "mv", so it can be a program name with args.
4766 set dummy mv; ac_word=$2
4767 echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4769 if test "${ac_cv_path_MV+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4797 if test -n "$MV"; then
4798 echo "$as_me:$LINENO: result: $MV" >&5
4799 echo "${ECHO_T}$MV" >&6
4801 echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6
4805 # Extract the first word of "pax", so it can be a program name with args.
4806 set dummy pax; ac_word=$2
4807 echo "$as_me:$LINENO: checking for $ac_word" >&5
4808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4809 if test "${ac_cv_path_PAX+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4837 if test -n "$PAX"; then
4838 echo "$as_me:$LINENO: result: $PAX" >&5
4839 echo "${ECHO_T}$PAX" >&6
4841 echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6
4845 if test -n "$ac_tool_prefix"; then
4846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_prog_RANLIB+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 if test -n "$RANLIB"; then
4854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 RANLIB=$ac_cv_prog_RANLIB
4873 if test -n "$RANLIB"; then
4874 echo "$as_me:$LINENO: result: $RANLIB" >&5
4875 echo "${ECHO_T}$RANLIB" >&6
4877 echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4882 if test -z "$ac_cv_prog_RANLIB"; then
4883 ac_ct_RANLIB=$RANLIB
4884 # Extract the first word of "ranlib", so it can be a program name with args.
4885 set dummy ranlib; ac_word=$2
4886 echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 if test -n "$ac_ct_RANLIB"; then
4892 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_ac_ct_RANLIB="ranlib"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4911 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4912 if test -n "$ac_ct_RANLIB"; then
4913 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4914 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4916 echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6
4920 RANLIB=$ac_ct_RANLIB
4922 RANLIB="$ac_cv_prog_RANLIB"
4925 # Extract the first word of "rm", so it can be a program name with args.
4926 set dummy rm; ac_word=$2
4927 echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4929 if test "${ac_cv_path_RM+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4957 if test -n "$RM"; then
4958 echo "$as_me:$LINENO: result: $RM" >&5
4959 echo "${ECHO_T}$RM" >&6
4961 echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4965 # Extract the first word of "sed", so it can be a program name with args.
4966 set dummy sed; ac_word=$2
4967 echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969 if test "${ac_cv_path_SED+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4997 if test -n "$SED"; then
4998 echo "$as_me:$LINENO: result: $SED" >&5
4999 echo "${ECHO_T}$SED" >&6
5001 echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6
5005 # Extract the first word of "tar", so it can be a program name with args.
5006 set dummy tar; ac_word=$2
5007 echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009 if test "${ac_cv_path_TAR+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5037 if test -n "$TAR"; then
5038 echo "$as_me:$LINENO: result: $TAR" >&5
5039 echo "${ECHO_T}$TAR" >&6
5041 echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6
5046 # Find a good install program. We prefer a C program (faster),
5047 # so one script is as good as another. But avoid the broken or
5048 # incompatible versions:
5049 # SysV /etc/install, /usr/sbin/install
5050 # SunOS /usr/etc/install
5051 # IRIX /sbin/install
5053 # AmigaOS /C/install, which installs bootblocks on floppy discs
5054 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5057 # OS/2's system install, which has a completely different semantic
5058 # ./install, which can be erroneously created by make from ./install.sh.
5059 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5060 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5061 if test -z "$INSTALL"; then
5062 if test "${ac_cv_path_install+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 test -z "$as_dir" && as_dir=.
5070 # Account for people who put trailing slashes in PATH elements.
5072 ./ | .// | /cC/* | \
5073 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5074 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5077 # OSF1 and SCO ODT 3.0 have their own names for install.
5078 # Don't use installbsd from OSF since it installs stuff as root
5080 for ac_prog in ginstall scoinst install; do
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5083 if test $ac_prog = install &&
5084 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5085 # AIX install. It has an incompatible calling convention.
5087 elif test $ac_prog = install &&
5088 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5089 # program-specific install script used by HP pwplus--don't use.
5092 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5104 if test "${ac_cv_path_install+set}" = set; then
5105 INSTALL=$ac_cv_path_install
5107 # As a last resort, use the slow shell script. We don't cache a
5108 # path for INSTALL within a source directory, because that will
5109 # break other packages using the cache if that directory is
5110 # removed, or if the path is relative.
5111 INSTALL=$ac_install_sh
5114 echo "$as_me:$LINENO: result: $INSTALL" >&5
5115 echo "${ECHO_T}$INSTALL" >&6
5117 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5118 # It thinks the first close brace ends the variable substitution.
5119 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5121 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5126 # Extract the first word of "bzip2", so it can be a program name with args.
5127 set dummy bzip2; ac_word=$2
5128 echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130 if test "${ac_cv_path_BZIP2+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5156 BZIP2=$ac_cv_path_BZIP2
5158 if test -n "$BZIP2"; then
5159 echo "$as_me:$LINENO: result: $BZIP2" >&5
5160 echo "${ECHO_T}$BZIP2" >&6
5162 echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5166 # Extract the first word of "dot", so it can be a program name with args.
5167 set dummy dot; ac_word=$2
5168 echo "$as_me:$LINENO: checking for $ac_word" >&5
5169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5170 if test "${ac_cv_path_DOT+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5198 if test -n "$DOT"; then
5199 echo "$as_me:$LINENO: result: $DOT" >&5
5200 echo "${ECHO_T}$DOT" >&6
5202 echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6
5206 # Extract the first word of "doxygen", so it can be a program name with args.
5207 set dummy doxygen; ac_word=$2
5208 echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5236 DOXYGEN=$ac_cv_path_DOXYGEN
5238 if test -n "$DOXYGEN"; then
5239 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5240 echo "${ECHO_T}$DOXYGEN" >&6
5242 echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5246 # Extract the first word of "etags", so it can be a program name with args.
5247 set dummy etags; ac_word=$2
5248 echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250 if test "${ac_cv_path_ETAGS+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5276 ETAGS=$ac_cv_path_ETAGS
5278 if test -n "$ETAGS"; then
5279 echo "$as_me:$LINENO: result: $ETAGS" >&5
5280 echo "${ECHO_T}$ETAGS" >&6
5282 echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5286 # Extract the first word of "groff", so it can be a program name with args.
5287 set dummy groff; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_path_GROFF+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5316 GROFF=$ac_cv_path_GROFF
5318 if test -n "$GROFF"; then
5319 echo "$as_me:$LINENO: result: $GROFF" >&5
5320 echo "${ECHO_T}$GROFF" >&6
5322 echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6
5326 # Extract the first word of "gzip", so it can be a program name with args.
5327 set dummy gzip; ac_word=$2
5328 echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330 if test "${ac_cv_path_GZIP+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5356 GZIP=$ac_cv_path_GZIP
5358 if test -n "$GZIP"; then
5359 echo "$as_me:$LINENO: result: $GZIP" >&5
5360 echo "${ECHO_T}$GZIP" >&6
5362 echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5366 # Extract the first word of "pod2html", so it can be a program name with args.
5367 set dummy pod2html; ac_word=$2
5368 echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370 if test "${ac_cv_path_POD2HTML+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5396 POD2HTML=$ac_cv_path_POD2HTML
5398 if test -n "$POD2HTML"; then
5399 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5400 echo "${ECHO_T}$POD2HTML" >&6
5402 echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6
5406 # Extract the first word of "pod2man", so it can be a program name with args.
5407 set dummy pod2man; ac_word=$2
5408 echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410 if test "${ac_cv_path_POD2MAN+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5436 POD2MAN=$ac_cv_path_POD2MAN
5438 if test -n "$POD2MAN"; then
5439 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5440 echo "${ECHO_T}$POD2MAN" >&6
5442 echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6
5446 # Extract the first word of "runtest", so it can be a program name with args.
5447 set dummy runtest; ac_word=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_path_RUNTEST+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5476 RUNTEST=$ac_cv_path_RUNTEST
5478 if test -n "$RUNTEST"; then
5479 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5480 echo "${ECHO_T}$RUNTEST" >&6
5482 echo "$as_me:$LINENO: result: no" >&5
5483 echo "${ECHO_T}no" >&6
5488 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5489 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5491 # Check whether --with-tclinclude or --without-tclinclude was given.
5492 if test "${with_tclinclude+set}" = set; then
5493 withval="$with_tclinclude"
5494 with_tclinclude=${withval}
5498 if test "${ac_cv_path_tclsh+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 if test x"${with_tclinclude}" != x ; then
5503 if test -f ${with_tclinclude}/tclsh ; then
5504 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5505 elif test -f ${with_tclinclude}/src/tclsh ; then
5506 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5508 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5509 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5510 { (exit 1); exit 1; }; }
5514 if test x"${ac_cv_path_tclsh}" = x ; then
5515 echo "$as_me:$LINENO: result: none" >&5
5516 echo "${ECHO_T}none" >&6
5517 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
5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5523 if test "${ac_cv_path_TCLSH+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 TCLSH=$ac_cv_path_TCLSH
5550 if test -n "$TCLSH"; then
5551 echo "$as_me:$LINENO: result: $TCLSH" >&5
5552 echo "${ECHO_T}$TCLSH" >&6
5554 echo "$as_me:$LINENO: result: no" >&5
5555 echo "${ECHO_T}no" >&6
5558 test -n "$TCLSH" && break
5561 if test x"${TCLSH}" = x ; then
5562 ac_cv_path_tclsh='';
5564 ac_cv_path_tclsh="${TCLSH}";
5567 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5568 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5569 TCLSH="${ac_cv_path_tclsh}"
5575 # Extract the first word of "zip", so it can be a program name with args.
5576 set dummy zip; ac_word=$2
5577 echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5579 if test "${ac_cv_path_ZIP+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5607 if test -n "$ZIP"; then
5608 echo "$as_me:$LINENO: result: $ZIP" >&5
5609 echo "${ECHO_T}$ZIP" >&6
5611 echo "$as_me:$LINENO: result: no" >&5
5612 echo "${ECHO_T}no" >&6
5616 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5617 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5618 if test "${llvm_cv_link_use_r+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5628 CFLAGS="$CFLAGS -Wl,-R."
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5639 int main() { return 0; }
5644 rm -f conftest.$ac_objext conftest$ac_exeext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5646 (eval $ac_link) 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -z "$ac_c_werror_flag"
5654 || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try='test -s conftest$ac_exeext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 llvm_cv_link_use_r=yes
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5671 llvm_cv_link_use_r=no
5673 rm -f conftest.err conftest.$ac_objext \
5674 conftest$ac_exeext conftest.$ac_ext
5677 ac_cpp='$CPP $CPPFLAGS'
5678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5685 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5686 if test "$llvm_cv_link_use_r" = yes ; then
5688 cat >>confdefs.h <<\_ACEOF
5689 #define HAVE_LINK_R 1
5697 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5698 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5699 if test "${ac_cv_c_const+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5712 /* FIXME: Include the comments suggested by Paul. */
5714 /* Ultrix mips cc rejects this. */
5715 typedef int charset[2];
5717 /* SunOS 4.1.1 cc rejects this. */
5718 char const *const *ccp;
5720 /* NEC SVR4.0.2 mips cc rejects this. */
5721 struct point {int x, y;};
5722 static struct point const zero = {0,0};
5723 /* AIX XL C 1.02.0.0 rejects this.
5724 It does not let you subtract one const X* pointer from another in
5725 an arm of an if-expression whose if-part is not a constant
5727 const char *g = "string";
5728 ccp = &g + (g ? g-g : 0);
5729 /* HPUX 7.0 cc rejects these. */
5732 ccp = (char const *const *) p;
5733 { /* SCO 3.2v4 cc rejects this. */
5735 char const *s = 0 ? (char *) 0 : (char const *) 0;
5739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5741 const int *foo = &x[0];
5744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5745 typedef const int *iptr;
5749 { /* AIX XL C 1.02.0.0 rejects this saying
5750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5751 struct s { int j; const int *ap[3]; };
5752 struct s *b; b->j = 5;
5754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5763 rm -f conftest.$ac_objext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765 (eval $ac_compile) 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag"
5773 || test ! -s conftest.err'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5794 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5795 echo "${ECHO_T}$ac_cv_c_const" >&6
5796 if test $ac_cv_c_const = no; then
5798 cat >>confdefs.h <<\_ACEOF
5805 echo "$as_me:$LINENO: checking for egrep" >&5
5806 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5807 if test "${ac_cv_prog_egrep+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5811 then ac_cv_prog_egrep='grep -E'
5812 else ac_cv_prog_egrep='egrep'
5815 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5816 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5817 EGREP=$ac_cv_prog_egrep
5820 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5822 if test "${ac_cv_header_stdc+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 cat >conftest.$ac_ext <<_ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5844 rm -f conftest.$ac_objext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5846 (eval $ac_compile) 2>conftest.er1
5848 grep -v '^ *+' conftest.er1 >conftest.err
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } &&
5853 { ac_try='test -z "$ac_c_werror_flag"
5854 || test ! -s conftest.err'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest.$ac_objext'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
5866 ac_cv_header_stdc=yes
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 ac_cv_header_stdc=no
5873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875 if test $ac_cv_header_stdc = yes; then
5876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5887 $EGREP "memchr" >/dev/null 2>&1; then
5890 ac_cv_header_stdc=no
5896 if test $ac_cv_header_stdc = yes; then
5897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5898 cat >conftest.$ac_ext <<_ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5908 $EGREP "free" >/dev/null 2>&1; then
5911 ac_cv_header_stdc=no
5917 if test $ac_cv_header_stdc = yes; then
5918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5919 if test "$cross_compiling" = yes; then
5922 cat >conftest.$ac_ext <<_ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5929 #if ((' ' & 0x0FF) == 0x020)
5930 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5931 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5933 # define ISLOWER(c) \
5934 (('a' <= (c) && (c) <= 'i') \
5935 || ('j' <= (c) && (c) <= 'r') \
5936 || ('s' <= (c) && (c) <= 'z'))
5937 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5940 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5945 for (i = 0; i < 256; i++)
5946 if (XOR (islower (i), ISLOWER (i))
5947 || toupper (i) != TOUPPER (i))
5952 rm -f conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5965 echo "$as_me: program exited with status $ac_status" >&5
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5970 ac_cv_header_stdc=no
5972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5976 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5977 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5978 if test $ac_cv_header_stdc = yes; then
5980 cat >>confdefs.h <<\_ACEOF
5981 #define STDC_HEADERS 1
5992 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5993 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5995 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 cat >conftest.$ac_ext <<_ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 #include <sys/types.h>
6017 rm -f conftest.$ac_objext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>conftest.er1
6021 grep -v '^ *+' conftest.er1 >conftest.err
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 eval "$as_ac_Header=yes"
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 eval "$as_ac_Header=no"
6046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6051 cat >>confdefs.h <<_ACEOF
6052 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6055 ac_header_dirent=$ac_hdr; break
6059 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6060 if test $ac_header_dirent = dirent.h; then
6061 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6062 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6063 if test "${ac_cv_search_opendir+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 ac_func_search_save_LIBS=$LIBS
6067 ac_cv_search_opendir=no
6068 cat >conftest.$ac_ext <<_ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6075 /* Override any gcc2 internal prototype to avoid an error. */
6079 /* We use char because int might match the return type of a gcc2
6080 builtin and then its argument prototype would still apply. */
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092 (eval $ac_link) 2>conftest.er1
6094 grep -v '^ *+' conftest.er1 >conftest.err
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try='test -z "$ac_c_werror_flag"
6100 || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest$ac_exeext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_cv_search_opendir="none required"
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6118 rm -f conftest.err conftest.$ac_objext \
6119 conftest$ac_exeext conftest.$ac_ext
6120 if test "$ac_cv_search_opendir" = no; then
6121 for ac_lib in dir; do
6122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6123 cat >conftest.$ac_ext <<_ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>conftest.er1
6149 grep -v '^ *+' conftest.er1 >conftest.err
6151 cat conftest.err >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try='test -z "$ac_c_werror_flag"
6155 || test ! -s conftest.err'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest$ac_exeext'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 ac_cv_search_opendir="-l$ac_lib"
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6174 rm -f conftest.err conftest.$ac_objext \
6175 conftest$ac_exeext conftest.$ac_ext
6178 LIBS=$ac_func_search_save_LIBS
6180 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6181 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6182 if test "$ac_cv_search_opendir" != no; then
6183 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6188 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6189 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6190 if test "${ac_cv_search_opendir+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 ac_func_search_save_LIBS=$LIBS
6194 ac_cv_search_opendir=no
6195 cat >conftest.$ac_ext <<_ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6202 /* Override any gcc2 internal prototype to avoid an error. */
6206 /* We use char because int might match the return type of a gcc2
6207 builtin and then its argument prototype would still apply. */
6217 rm -f conftest.$ac_objext conftest$ac_exeext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219 (eval $ac_link) 2>conftest.er1
6221 grep -v '^ *+' conftest.er1 >conftest.err
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -z "$ac_c_werror_flag"
6227 || test ! -s conftest.err'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest$ac_exeext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 ac_cv_search_opendir="none required"
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6245 rm -f conftest.err conftest.$ac_objext \
6246 conftest$ac_exeext conftest.$ac_ext
6247 if test "$ac_cv_search_opendir" = no; then
6249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6250 cat >conftest.$ac_ext <<_ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6257 /* Override any gcc2 internal prototype to avoid an error. */
6261 /* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6272 rm -f conftest.$ac_objext conftest$ac_exeext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>conftest.er1
6276 grep -v '^ *+' conftest.er1 >conftest.err
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest$ac_exeext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_search_opendir="-l$ac_lib"
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6301 rm -f conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6305 LIBS=$ac_func_search_save_LIBS
6307 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6308 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6309 if test "$ac_cv_search_opendir" != no; then
6310 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6316 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6326 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6327 inttypes.h stdint.h unistd.h
6329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330 echo "$as_me:$LINENO: checking for $ac_header" >&5
6331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6343 #include <$ac_header>
6345 rm -f conftest.$ac_objext
6346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347 (eval $ac_compile) 2>conftest.er1
6349 grep -v '^ *+' conftest.er1 >conftest.err
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_c_werror_flag"
6355 || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 eval "$as_ac_Header=yes"
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 eval "$as_ac_Header=no"
6374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6379 cat >>confdefs.h <<_ACEOF
6380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6389 for ac_header in dlfcn.h
6391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6393 echo "$as_me:$LINENO: checking for $ac_header" >&5
6394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6401 # Is the header compilable?
6402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6404 cat >conftest.$ac_ext <<_ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 $ac_includes_default
6411 #include <$ac_header>
6413 rm -f conftest.$ac_objext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6415 (eval $ac_compile) 2>conftest.er1
6417 grep -v '^ *+' conftest.er1 >conftest.err
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -z "$ac_c_werror_flag"
6423 || test ! -s conftest.err'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; } &&
6429 { ac_try='test -s conftest.$ac_objext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 ac_header_compiler=yes
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 ac_header_compiler=no
6442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6444 echo "${ECHO_T}$ac_header_compiler" >&6
6446 # Is the header present?
6447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6449 cat >conftest.$ac_ext <<_ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <$ac_header>
6457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6460 grep -v '^ *+' conftest.er1 >conftest.err
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } >/dev/null; then
6465 if test -s conftest.err; then
6466 ac_cpp_err=$ac_c_preproc_warn_flag
6467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6474 if test -z "$ac_cpp_err"; then
6475 ac_header_preproc=yes
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6480 ac_header_preproc=no
6482 rm -f conftest.err conftest.$ac_ext
6483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6484 echo "${ECHO_T}$ac_header_preproc" >&6
6486 # So? What about this header?
6487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6493 ac_header_preproc=yes
6496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6510 ## ----------------------------------- ##
6511 ## Report this to llvmbugs@cs.uiuc.edu ##
6512 ## ----------------------------------- ##
6515 sed "s/^/$as_me: WARNING: /" >&2
6518 echo "$as_me:$LINENO: checking for $ac_header" >&5
6519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 eval "$as_ac_Header=\$ac_header_preproc"
6525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6530 cat >>confdefs.h <<_ACEOF
6531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6538 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6539 if test "${enable_ltdl_install+set}" = set; then
6540 enableval="$enable_ltdl_install"
6546 if test x"${enable_ltdl_install-no}" != xno; then
6548 INSTALL_LTDL_FALSE='#'
6550 INSTALL_LTDL_TRUE='#'
6556 if test x"${enable_ltdl_convenience-no}" != xno; then
6557 CONVENIENCE_LTDL_TRUE=
6558 CONVENIENCE_LTDL_FALSE='#'
6560 CONVENIENCE_LTDL_TRUE='#'
6561 CONVENIENCE_LTDL_FALSE=
6565 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6566 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6568 libname_spec='lib$name'
6576 shlibpath_overrides_runpath=unknown
6578 dynamic_linker="$host_os ld.so"
6579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6580 if test "$GCC" = yes; then
6581 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6582 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6583 # if the path contains ";" then we assume it to be the separator
6584 # otherwise default to the standard path separator (i.e. ":") - it is
6585 # assumed that no part of a normal pathname contains ";" but that should
6586 # okay in the real world where ";" in dirpaths is itself problematic.
6587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6594 need_lib_prefix=unknown
6595 hardcode_into_libs=no
6597 # when you set need_version to no, make sure it does not cause -set_version
6598 # flags to be left without arguments
6599 need_version=unknown
6604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6605 shlibpath_var=LIBPATH
6607 # AIX 3 has no versioning support, so we append a major version to the name.
6608 soname_spec='${libname}${release}${shared_ext}$major'
6615 hardcode_into_libs=yes
6616 if test "$host_cpu" = ia64; then
6617 # AIX 5 supports IA64
6618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6619 shlibpath_var=LD_LIBRARY_PATH
6621 # With GCC up to 2.95.x, collect2 would create an import file
6622 # for dependence libraries. The import file would start with
6623 # the line `#! .'. This would cause the generated library to
6624 # depend on `.', always an invalid library. This was fixed in
6625 # development snapshots of GCC prior to 3.0.
6627 aix4 | aix4.[01] | aix4.[01].*)
6628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6630 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6638 # soname into executable. Probably we can add versioning support to
6639 # collect2, so additional links can be useful in future.
6640 if test "$aix_use_runtimelinking" = yes; then
6641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6642 # instead of lib<name>.a to let people know that these are not
6643 # typical AIX shared libraries.
6644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6646 # We preserve .a as extension for shared libraries through AIX4.2
6647 # and later when we are not doing run time linking.
6648 library_names_spec='${libname}${release}.a $libname.a'
6649 soname_spec='${libname}${release}${shared_ext}$major'
6651 shlibpath_var=LIBPATH
6656 library_names_spec='$libname.ixlibrary $libname.a'
6657 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6658 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'
6662 library_names_spec='${libname}${shared_ext}'
6663 dynamic_linker="$host_os ld.so"
6664 shlibpath_var=LIBRARY_PATH
6670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6671 soname_spec='${libname}${release}${shared_ext}$major'
6672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6673 shlibpath_var=LD_LIBRARY_PATH
6674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6676 # the default ld.so.conf also contains /usr/contrib/lib and
6677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6678 # libtool to hard-code these into programs
6681 cygwin* | mingw* | pw32*)
6682 version_type=windows
6687 case $GCC,$host_os in
6688 yes,cygwin* | yes,mingw* | yes,pw32*)
6689 library_names_spec='$libname.dll.a'
6690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6691 postinstall_cmds='base_file=`basename \${file}`~
6692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6693 dldir=$destdir/`dirname \$dlpath`~
6694 test -d \$dldir || mkdir -p \$dldir~
6695 $install_prog $dir/$dlname \$dldir/$dlname'
6696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6697 dlpath=$dir/\$dldll~
6699 shlibpath_overrides_runpath=yes
6703 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6704 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6705 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6708 # MinGW DLLs use traditional 'lib' prefix
6709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6710 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6711 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6712 # It is most probably a Windows format PATH printed by
6713 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6714 # path with ; separators, and with drive letters. We can handle the
6715 # drive letters (cygwin fileutils understands them), so leave them,
6716 # especially as we might pass files found there to a mingw objdump,
6717 # which wouldn't understand a cygwinified path. Ahh.
6718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6724 # pw32 DLLs use 'pw' prefix rather than 'lib'
6725 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6731 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6734 dynamic_linker='Win32 ld.exe'
6735 # FIXME: first we should search . and the directory the executable is in
6739 darwin* | rhapsody*)
6740 dynamic_linker="$host_os dyld"
6744 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6745 soname_spec='${libname}${release}${major}$shared_ext'
6746 shlibpath_overrides_runpath=yes
6747 shlibpath_var=DYLD_LIBRARY_PATH
6748 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6749 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6750 if test "$GCC" = yes; then
6751 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"`
6753 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6763 soname_spec='${libname}${release}${shared_ext}$major'
6764 shlibpath_var=LD_LIBRARY_PATH
6775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6776 soname_spec='${libname}${release}${shared_ext}$major'
6777 shlibpath_var=LD_LIBRARY_PATH
6778 shlibpath_overrides_runpath=no
6779 hardcode_into_libs=yes
6780 dynamic_linker='GNU ld.so'
6784 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6785 version_type=freebsd-$objformat
6786 case $version_type in
6788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6797 shlibpath_var=LD_LIBRARY_PATH
6800 shlibpath_overrides_runpath=yes
6802 freebsd3.01* | freebsdelf3.01*)
6803 shlibpath_overrides_runpath=yes
6804 hardcode_into_libs=yes
6807 shlibpath_overrides_runpath=no
6808 hardcode_into_libs=yes
6817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6818 soname_spec='${libname}${release}${shared_ext}$major'
6819 shlibpath_var=LD_LIBRARY_PATH
6820 hardcode_into_libs=yes
6823 hpux9* | hpux10* | hpux11*)
6824 # Give a soname corresponding to the major version so that dld.sl refuses to
6825 # link against other versions.
6832 hardcode_into_libs=yes
6833 dynamic_linker="$host_os dld.so"
6834 shlibpath_var=LD_LIBRARY_PATH
6835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6837 soname_spec='${libname}${release}${shared_ext}$major'
6838 if test "X$HPUX_IA64_MODE" = X32; then
6839 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6841 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6847 hardcode_into_libs=yes
6848 dynamic_linker="$host_os dld.sl"
6849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6852 soname_spec='${libname}${release}${shared_ext}$major'
6853 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6858 dynamic_linker="$host_os dld.sl"
6859 shlibpath_var=SHLIB_PATH
6860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6862 soname_spec='${libname}${release}${shared_ext}$major'
6865 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6866 postinstall_cmds='chmod 555 $lib'
6869 irix5* | irix6* | nonstopux*)
6871 nonstopux*) version_type=nonstopux ;;
6873 if test "$lt_cv_prog_gnu_ld" = yes; then
6881 soname_spec='${libname}${release}${shared_ext}$major'
6882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6884 irix5* | nonstopux*)
6888 case $LD in # libtool.m4 will add one of these switches to LD
6889 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6890 libsuff= shlibsuff= libmagic=32-bit;;
6891 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6892 libsuff=32 shlibsuff=N32 libmagic=N32;;
6893 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6894 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6895 *) libsuff= shlibsuff= libmagic=never-match;;
6899 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6900 shlibpath_overrides_runpath=no
6901 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6902 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6903 hardcode_into_libs=yes
6906 # No shared lib support for Linux oldld, aout, or coff.
6907 linux*oldld* | linux*aout* | linux*coff*)
6911 # This must be Linux ELF.
6916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6917 soname_spec='${libname}${release}${shared_ext}$major'
6918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6919 shlibpath_var=LD_LIBRARY_PATH
6920 shlibpath_overrides_runpath=no
6921 # This implies no fast_install, which is unacceptable.
6922 # Some rework will be needed to allow for fast_install
6923 # before this can be enabled.
6924 hardcode_into_libs=yes
6926 # Append ld.so.conf contents to the search path
6927 if test -f /etc/ld.so.conf; then
6928 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6929 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6932 # We used to test for /lib/ld.so.1 and disable shared libraries on
6933 # powerpc, because MkLinux only supported shared libraries with the
6934 # GNU dynamic linker. Since this was broken with cross compilers,
6935 # most powerpc-linux boxes support dynamic linking these days and
6936 # people can always --disable-shared, the test was removed, and we
6937 # assume the GNU/Linux dynamic linker is in use.
6938 dynamic_linker='GNU/Linux ld.so'
6945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6946 soname_spec='${libname}${release}${shared_ext}$major'
6947 shlibpath_var=LD_LIBRARY_PATH
6948 shlibpath_overrides_runpath=no
6949 hardcode_into_libs=yes
6950 dynamic_linker='GNU ld.so'
6957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6960 dynamic_linker='NetBSD (a.out) ld.so'
6962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6963 soname_spec='${libname}${release}${shared_ext}$major'
6964 dynamic_linker='NetBSD ld.elf_so'
6966 shlibpath_var=LD_LIBRARY_PATH
6967 shlibpath_overrides_runpath=yes
6968 hardcode_into_libs=yes
6973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6974 shlibpath_var=LD_LIBRARY_PATH
6975 shlibpath_overrides_runpath=yes
6982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983 soname_spec='${libname}${release}${shared_ext}$major'
6984 shlibpath_var=LD_LIBRARY_PATH
6985 shlibpath_overrides_runpath=yes
6992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6994 shlibpath_var=LD_LIBRARY_PATH
6995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6997 openbsd2.[89] | openbsd2.[89].*)
6998 shlibpath_overrides_runpath=no
7001 shlibpath_overrides_runpath=yes
7005 shlibpath_overrides_runpath=yes
7010 libname_spec='$name'
7013 library_names_spec='$libname${shared_ext} $libname.a'
7014 dynamic_linker='OS/2 ld.exe'
7015 shlibpath_var=LIBPATH
7018 osf3* | osf4* | osf5*)
7022 soname_spec='${libname}${release}${shared_ext}$major'
7023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7024 shlibpath_var=LD_LIBRARY_PATH
7025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7026 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7031 soname_spec='${libname}${release}${shared_ext}$major'
7032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033 shlibpath_var=LD_LIBRARY_PATH
7040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7041 soname_spec='${libname}${release}${shared_ext}$major'
7042 shlibpath_var=LD_LIBRARY_PATH
7043 shlibpath_overrides_runpath=yes
7044 hardcode_into_libs=yes
7045 # ldd complains unless libraries are executable
7046 postinstall_cmds='chmod +x $lib'
7051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7053 shlibpath_var=LD_LIBRARY_PATH
7054 shlibpath_overrides_runpath=yes
7055 if test "$with_gnu_ld" = yes; then
7061 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7064 soname_spec='${libname}${release}${shared_ext}$major'
7065 shlibpath_var=LD_LIBRARY_PATH
7066 case $host_vendor in
7068 shlibpath_overrides_runpath=no
7070 export_dynamic_flag_spec='${wl}-Blargedynsym'
7071 runpath_var=LD_RUN_PATH
7079 shlibpath_overrides_runpath=no
7080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7086 if test -d /usr/nec ;then
7088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7089 soname_spec='$libname${shared_ext}.$major'
7090 shlibpath_var=LD_LIBRARY_PATH
7096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7097 soname_spec='${libname}${release}${shared_ext}$major'
7098 shlibpath_var=LD_LIBRARY_PATH
7105 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7106 echo "${ECHO_T}$dynamic_linker" >&6
7107 test "$dynamic_linker" = no && can_build_shared=no
7110 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7111 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7112 if test "${libltdl_cv_shlibext+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 eval libltdl_cv_shlibext=$shrext_cmds
7120 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7121 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7122 if test -n "$libltdl_cv_shlibext"; then
7124 cat >>confdefs.h <<_ACEOF
7125 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7131 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7132 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7133 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 libltdl_cv_shlibpath_var="$shlibpath_var"
7138 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7139 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7140 if test -n "$libltdl_cv_shlibpath_var"; then
7142 cat >>confdefs.h <<_ACEOF
7143 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7149 echo "$as_me:$LINENO: checking for the default library search path" >&5
7150 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7151 if test "${libltdl_cv_sys_search_path+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7156 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7157 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7158 if test -n "$libltdl_cv_sys_search_path"; then
7160 for dir in $libltdl_cv_sys_search_path; do
7161 if test -z "$sys_search_path"; then
7162 sys_search_path="$dir"
7164 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7168 cat >>confdefs.h <<_ACEOF
7169 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7174 echo "$as_me:$LINENO: checking for objdir" >&5
7175 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7176 if test "${libltdl_cv_objdir+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 libltdl_cv_objdir="$objdir"
7180 if test -n "$objdir"; then
7183 rm -f .libs 2>/dev/null
7184 mkdir .libs 2>/dev/null
7185 if test -d .libs; then
7186 libltdl_cv_objdir=.libs
7188 # MS-DOS does not allow filenames that begin with a dot.
7189 libltdl_cv_objdir=_libs
7191 rmdir .libs 2>/dev/null
7195 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7196 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7198 cat >>confdefs.h <<_ACEOF
7199 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7203 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7204 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7205 if test "${lt_cv_path_NM+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 if test -n "$NM"; then
7209 # Let the user override the test.
7212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7213 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7215 test -z "$ac_dir" && ac_dir=.
7216 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7217 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7218 # Check to see if the nm accepts a BSD-compat flag.
7219 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7220 # nm: unknown option "B" ignored
7221 # Tru64's nm complains that /dev/null is an invalid object file
7222 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7223 */dev/null* | *'Invalid file or object type'*)
7224 lt_cv_path_NM="$tmp_nm -B"
7228 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7230 lt_cv_path_NM="$tmp_nm -p"
7234 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7235 continue # so that we can try to find one that supports BSD flags
7242 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7245 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7246 echo "${ECHO_T}$lt_cv_path_NM" >&6
7253 # Check for command to grab the raw symbol name followed by C symbol from nm.
7254 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7255 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7256 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 # These are sane defaults that work on at least a few old systems.
7261 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7263 # Character class describing NM global symbol codes.
7264 symcode='[BCDEGRST]'
7266 # Regexp to match symbols that can be accessed directly from C.
7267 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7269 # Transform the above into a raw symbol and a C symbol.
7270 symxfrm='\1 \2\3 \3'
7272 # Transform an extracted symbol line into a proper C declaration
7273 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7275 # Transform an extracted symbol line into symbol name and symbol address
7276 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'"
7278 # Define system-specific variables.
7283 cygwin* | mingw* | pw32*)
7284 symcode='[ABCDGISTW]'
7286 hpux*) # Its linker distinguishes data from code symbols
7287 if test "$host_cpu" = ia64; then
7288 symcode='[ABCDEGRST]'
7290 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7291 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'"
7294 if test "$host_cpu" = ia64; then
7295 symcode='[ABCDGIRSTW]'
7296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7297 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'"
7301 symcode='[BCDEGRST]'
7304 symcode='[BCDEGQRST]'
7314 # Handle CRLF in mingw tool chain
7318 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7322 # If we're using GNU nm, then use its standard symbol codes.
7323 case `$NM -V 2>&1` in
7324 *GNU* | *'with BFD'*)
7325 symcode='[ABCDGIRSTW]' ;;
7328 # Try without a prefix undercore, then with it.
7329 for ac_symprfx in "" "_"; do
7331 # Write the raw and C identifiers.
7332 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7334 # Check to see that the pipe works correctly.
7338 cat > conftest.$ac_ext <<EOF
7343 void nm_test_func(){}
7347 int main(){nm_test_var='a';nm_test_func();return(0);}
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; then
7355 # Now try to grab the symbols.
7357 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7358 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && test -s "$nlist"; then
7362 # Try sorting and uniquifying the output.
7363 if sort "$nlist" | uniq > "$nlist"T; then
7364 mv -f "$nlist"T "$nlist"
7369 # Make sure that we snagged all the symbols we need.
7370 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7371 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7372 cat <<EOF > conftest.$ac_ext
7378 # Now generate the symbol file.
7379 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7381 cat <<EOF >> conftest.$ac_ext
7382 #if defined (__STDC__) && __STDC__
7383 # define lt_ptr_t void *
7385 # define lt_ptr_t char *
7389 /* The mapping between symbol names and symbols. */
7394 lt_preloaded_symbols[] =
7397 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7398 cat <<\EOF >> conftest.$ac_ext
7406 # Now try linking the two files.
7407 mv conftest.$ac_objext conftstm.$ac_objext
7408 lt_save_LIBS="$LIBS"
7409 lt_save_CFLAGS="$CFLAGS"
7410 LIBS="conftstm.$ac_objext"
7411 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413 (eval $ac_link) 2>&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7419 LIBS="$lt_save_LIBS"
7420 CFLAGS="$lt_save_CFLAGS"
7422 echo "cannot find nm_test_func in $nlist" >&5
7425 echo "cannot find nm_test_var in $nlist" >&5
7428 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7431 echo "$progname: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7434 rm -f conftest* conftst*
7436 # Do not use the global_symbol_pipe unless it works.
7437 if test "$pipe_works" = yes; then
7440 lt_cv_sys_global_symbol_pipe=
7446 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7447 lt_cv_sys_global_symbol_to_cdecl=
7449 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7450 echo "$as_me:$LINENO: result: failed" >&5
7451 echo "${ECHO_T}failed" >&6
7453 echo "$as_me:$LINENO: result: ok" >&5
7454 echo "${ECHO_T}ok" >&6
7458 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7459 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7460 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7464 libltdl_cv_preloaded_symbols=yes
7466 libltdl_cv_preloaded_symbols=no
7470 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7471 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7472 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7474 cat >>confdefs.h <<\_ACEOF
7475 #define HAVE_PRELOADED_SYMBOLS 1
7483 ac_cpp='$CPP $CPPFLAGS'
7484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489 echo "$as_me:$LINENO: checking for shl_load" >&5
7490 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7491 if test "${ac_cv_func_shl_load+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 cat >conftest.$ac_ext <<_ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7500 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7502 #define shl_load innocuous_shl_load
7504 /* System header to define __stub macros and hopefully few prototypes,
7505 which can conflict with char shl_load (); below.
7506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7507 <limits.h> exists even on freestanding compilers. */
7510 # include <limits.h>
7512 # include <assert.h>
7517 /* Override any gcc2 internal prototype to avoid an error. */
7522 /* We use char because int might match the return type of a gcc2
7523 builtin and then its argument prototype would still apply. */
7525 /* The GNU C library defines this for functions which it implements
7526 to always fail with ENOSYS. Some functions are actually named
7527 something starting with __ and the normal name is an alias. */
7528 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7531 char (*f) () = shl_load;
7540 return f != shl_load;
7545 rm -f conftest.$ac_objext conftest$ac_exeext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7547 (eval $ac_link) 2>conftest.er1
7549 grep -v '^ *+' conftest.er1 >conftest.err
7551 cat conftest.err >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -z "$ac_c_werror_flag"
7555 || test ! -s conftest.err'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; } &&
7561 { ac_try='test -s conftest$ac_exeext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 ac_cv_func_shl_load=yes
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7572 ac_cv_func_shl_load=no
7574 rm -f conftest.err conftest.$ac_objext \
7575 conftest$ac_exeext conftest.$ac_ext
7577 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7578 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7579 if test $ac_cv_func_shl_load = yes; then
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_SHL_LOAD 1
7586 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7587 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7588 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_check_lib_save_LIBS=$LIBS
7593 cat >conftest.$ac_ext <<_ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7600 /* Override any gcc2 internal prototype to avoid an error. */
7604 /* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */
7615 rm -f conftest.$ac_objext conftest$ac_exeext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617 (eval $ac_link) 2>conftest.er1
7619 grep -v '^ *+' conftest.er1 >conftest.err
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
7624 { ac_try='test -z "$ac_c_werror_flag"
7625 || test ! -s conftest.err'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; } &&
7631 { ac_try='test -s conftest$ac_exeext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_cv_lib_dld_shl_load=yes
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 ac_cv_lib_dld_shl_load=no
7644 rm -f conftest.err conftest.$ac_objext \
7645 conftest$ac_exeext conftest.$ac_ext
7646 LIBS=$ac_check_lib_save_LIBS
7648 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7649 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7650 if test $ac_cv_lib_dld_shl_load = yes; then
7652 cat >>confdefs.h <<\_ACEOF
7653 #define HAVE_SHL_LOAD 1
7656 LIBADD_DL="$LIBADD_DL -ldld"
7658 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7659 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 ac_check_lib_save_LIBS=$LIBS
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7672 /* Override any gcc2 internal prototype to avoid an error. */
7676 /* We use char because int might match the return type of a gcc2
7677 builtin and then its argument prototype would still apply. */
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag"
7697 || test ! -s conftest.err'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 ac_cv_lib_dl_dlopen=yes
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 ac_cv_lib_dl_dlopen=no
7716 rm -f conftest.err conftest.$ac_objext \
7717 conftest$ac_exeext conftest.$ac_ext
7718 LIBS=$ac_check_lib_save_LIBS
7720 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7721 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7722 if test $ac_cv_lib_dl_dlopen = yes; then
7724 cat >>confdefs.h <<\_ACEOF
7725 #define HAVE_LIBDL 1
7728 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7748 rm -f conftest.$ac_objext conftest$ac_exeext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750 (eval $ac_link) 2>conftest.er1
7752 grep -v '^ *+' conftest.er1 >conftest.err
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest$ac_exeext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7771 cat >>confdefs.h <<\_ACEOF
7772 #define HAVE_LIBDL 1
7774 libltdl_cv_func_dlopen="yes"
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7780 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7781 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 ac_check_lib_save_LIBS=$LIBS
7786 cat >conftest.$ac_ext <<_ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h. */
7793 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7808 rm -f conftest.$ac_objext conftest$ac_exeext
7809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810 (eval $ac_link) 2>conftest.er1
7812 grep -v '^ *+' conftest.er1 >conftest.err
7814 cat conftest.err >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } &&
7817 { ac_try='test -z "$ac_c_werror_flag"
7818 || test ! -s conftest.err'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; } &&
7824 { ac_try='test -s conftest$ac_exeext'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7830 ac_cv_lib_svld_dlopen=yes
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7835 ac_cv_lib_svld_dlopen=no
7837 rm -f conftest.err conftest.$ac_objext \
7838 conftest$ac_exeext conftest.$ac_ext
7839 LIBS=$ac_check_lib_save_LIBS
7841 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7842 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7843 if test $ac_cv_lib_svld_dlopen = yes; then
7845 cat >>confdefs.h <<\_ACEOF
7846 #define HAVE_LIBDL 1
7849 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7851 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7852 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7853 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 ac_check_lib_save_LIBS=$LIBS
7858 cat >conftest.$ac_ext <<_ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7865 /* Override any gcc2 internal prototype to avoid an error. */
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>conftest.er1
7884 grep -v '^ *+' conftest.er1 >conftest.err
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest$ac_exeext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_lib_dld_dld_link=yes
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ac_cv_lib_dld_dld_link=no
7909 rm -f conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911 LIBS=$ac_check_lib_save_LIBS
7913 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7914 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7915 if test $ac_cv_lib_dld_dld_link = yes; then
7917 cat >>confdefs.h <<\_ACEOF
7921 LIBADD_DL="$LIBADD_DL -ldld"
7923 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7924 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7925 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7936 #define _dyld_func_lookup innocuous__dyld_func_lookup
7938 /* System header to define __stub macros and hopefully few prototypes,
7939 which can conflict with char _dyld_func_lookup (); below.
7940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7941 <limits.h> exists even on freestanding compilers. */
7944 # include <limits.h>
7946 # include <assert.h>
7949 #undef _dyld_func_lookup
7951 /* Override any gcc2 internal prototype to avoid an error. */
7956 /* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7958 char _dyld_func_lookup ();
7959 /* The GNU C library defines this for functions which it implements
7960 to always fail with ENOSYS. Some functions are actually named
7961 something starting with __ and the normal name is an alias. */
7962 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7965 char (*f) () = _dyld_func_lookup;
7974 return f != _dyld_func_lookup;
7979 rm -f conftest.$ac_objext conftest$ac_exeext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag"
7989 || test ! -s conftest.err'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try='test -s conftest$ac_exeext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 ac_cv_func__dyld_func_lookup=yes
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8006 ac_cv_func__dyld_func_lookup=no
8008 rm -f conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8011 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8012 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8013 if test $ac_cv_func__dyld_func_lookup = yes; then
8015 cat >>confdefs.h <<\_ACEOF
8029 rm -f conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext conftest.$ac_ext
8041 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8043 lt_save_LIBS="$LIBS"
8044 LIBS="$LIBS $LIBADD_DL"
8046 for ac_func in dlerror
8048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8049 echo "$as_me:$LINENO: checking for $ac_func" >&5
8050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8051 if eval "test \"\${$as_ac_var+set}\" = set"; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8062 #define $ac_func innocuous_$ac_func
8064 /* System header to define __stub macros and hopefully few prototypes,
8065 which can conflict with char $ac_func (); below.
8066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8067 <limits.h> exists even on freestanding compilers. */
8070 # include <limits.h>
8072 # include <assert.h>
8077 /* Override any gcc2 internal prototype to avoid an error. */
8082 /* We use char because int might match the return type of a gcc2
8083 builtin and then its argument prototype would still apply. */
8085 /* The GNU C library defines this for functions which it implements
8086 to always fail with ENOSYS. Some functions are actually named
8087 something starting with __ and the normal name is an alias. */
8088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8091 char (*f) () = $ac_func;
8100 return f != $ac_func;
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>conftest.er1
8109 grep -v '^ *+' conftest.er1 >conftest.err
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag"
8115 || test ! -s conftest.err'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest$ac_exeext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 eval "$as_ac_var=yes"
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8132 eval "$as_ac_var=no"
8134 rm -f conftest.err conftest.$ac_objext \
8135 conftest$ac_exeext conftest.$ac_ext
8137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8139 if test `eval echo '${'$as_ac_var'}'` = yes; then
8140 cat >>confdefs.h <<_ACEOF
8141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8147 LIBS="$lt_save_LIBS"
8150 ac_cpp='$CPP $CPPFLAGS'
8151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8158 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8159 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 ac_cv_sys_symbol_underscore=no
8163 cat > conftest.$ac_ext <<EOF
8164 void nm_test_func(){}
8165 int main(){nm_test_func;return 0;}
8167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168 (eval $ac_compile) 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; then
8172 # Now try to grab the symbols.
8173 ac_nlist=conftest.nm
8174 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8175 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && test -s "$ac_nlist"; then
8179 # See whether the symbols have a leading underscore.
8180 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8181 ac_cv_sys_symbol_underscore=yes
8183 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8186 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8190 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8193 echo "configure: failed program was:" >&5
8199 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8200 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8203 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8204 if test x"$libltdl_cv_func_dlopen" = xyes ||
8205 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8206 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8207 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8208 if test "${libltdl_cv_need_uscore+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 libltdl_cv_need_uscore=unknown
8213 LIBS="$LIBS $LIBADD_DL"
8214 if test "$cross_compiling" = yes; then :
8215 libltdl_cv_need_uscore=cross
8217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8218 lt_status=$lt_dlunknown
8219 cat > conftest.$ac_ext <<EOF
8220 #line 8220 "configure"
8221 #include "confdefs.h"
8230 # define LT_DLGLOBAL RTLD_GLOBAL
8233 # define LT_DLGLOBAL DL_GLOBAL
8235 # define LT_DLGLOBAL 0
8239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8240 find out it does not work in some platform. */
8241 #ifndef LT_DLLAZY_OR_NOW
8243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8246 # define LT_DLLAZY_OR_NOW DL_LAZY
8249 # define LT_DLLAZY_OR_NOW RTLD_NOW
8252 # define LT_DLLAZY_OR_NOW DL_NOW
8254 # define LT_DLLAZY_OR_NOW 0
8262 extern "C" void exit (int);
8265 void fnord() { int i=42;}
8268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8269 int status = $lt_dlunknown;
8273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8274 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8275 /* dlclose (self); */
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8286 (./conftest; exit; ) 2>/dev/null
8289 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8290 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8294 # compilation failed
8303 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8304 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8308 if test x"$libltdl_cv_need_uscore" = xyes; then
8310 cat >>confdefs.h <<\_ACEOF
8311 #define NEED_USCORE 1
8317 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8318 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8319 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 # PORTME does your system automatically load deplibs for dlopen?
8323 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8324 # For now, we just catch OSes we know something about -- in the
8325 # future, we'll try test this programmatically.
8326 libltdl_cv_sys_dlopen_deplibs=unknown
8328 aix3*|aix4.1.*|aix4.2.*)
8329 # Unknown whether this is true for these versions of AIX, but
8330 # we want this `case' here to explicitly catch those versions.
8331 libltdl_cv_sys_dlopen_deplibs=unknown
8334 libltdl_cv_sys_dlopen_deplibs=yes
8337 # Assuming the user has installed a libdl from somewhere, this is true
8338 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8339 libltdl_cv_sys_dlopen_deplibs=yes
8341 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8342 # GNU and its variants, using gnu ld.so (Glibc)
8343 libltdl_cv_sys_dlopen_deplibs=yes
8346 libltdl_cv_sys_dlopen_deplibs=yes
8348 irix[12345]*|irix6.[01]*)
8349 # Catch all versions of IRIX before 6.2, and indicate that we don't
8350 # know how it worked for any of those versions.
8351 libltdl_cv_sys_dlopen_deplibs=unknown
8354 # The case above catches anything before 6.2, and it's known that
8355 # at 6.2 and later dlopen does load deplibs.
8356 libltdl_cv_sys_dlopen_deplibs=yes
8359 libltdl_cv_sys_dlopen_deplibs=yes
8362 libltdl_cv_sys_dlopen_deplibs=yes
8365 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8366 # it did *not* use an RPATH in a shared library to find objects the
8367 # library depends on, so we explictly say `no'.
8368 libltdl_cv_sys_dlopen_deplibs=no
8370 osf5.0|osf5.0a|osf5.1)
8371 # dlopen *does* load deplibs and with the right loader patch applied
8372 # it even uses RPATH in a shared library to search for shared objects
8373 # that the library depends on, but there's no easy way to know if that
8374 # patch is installed. Since this is the case, all we can really
8375 # say is unknown -- it depends on the patch being installed. If
8376 # it is, this changes to `yes'. Without it, it would be `no'.
8377 libltdl_cv_sys_dlopen_deplibs=unknown
8380 # the two cases above should catch all versions of osf <= 5.1. Read
8381 # the comments above for what we know about them.
8382 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8383 # is used to find them so we can finally say `yes'.
8384 libltdl_cv_sys_dlopen_deplibs=yes
8387 libltdl_cv_sys_dlopen_deplibs=yes
8392 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8393 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8394 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8396 cat >>confdefs.h <<\_ACEOF
8397 #define LTDL_DLOPEN_DEPLIBS 1
8403 for ac_header in argz.h
8405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8407 echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8415 # Is the header compilable?
8416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8418 cat >conftest.$ac_ext <<_ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8424 $ac_includes_default
8425 #include <$ac_header>
8427 rm -f conftest.$ac_objext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8429 (eval $ac_compile) 2>conftest.er1
8431 grep -v '^ *+' conftest.er1 >conftest.err
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest.$ac_objext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_header_compiler=yes
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_header_compiler=no
8456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8458 echo "${ECHO_T}$ac_header_compiler" >&6
8460 # Is the header present?
8461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 #include <$ac_header>
8471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8474 grep -v '^ *+' conftest.er1 >conftest.err
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } >/dev/null; then
8479 if test -s conftest.err; then
8480 ac_cpp_err=$ac_c_preproc_warn_flag
8481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8488 if test -z "$ac_cpp_err"; then
8489 ac_header_preproc=yes
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 ac_header_preproc=no
8496 rm -f conftest.err conftest.$ac_ext
8497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8498 echo "${ECHO_T}$ac_header_preproc" >&6
8500 # So? What about this header?
8501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8507 ac_header_preproc=yes
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8524 ## ----------------------------------- ##
8525 ## Report this to llvmbugs@cs.uiuc.edu ##
8526 ## ----------------------------------- ##
8529 sed "s/^/$as_me: WARNING: /" >&2
8532 echo "$as_me:$LINENO: checking for $ac_header" >&5
8533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 eval "$as_ac_Header=\$ac_header_preproc"
8539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8544 cat >>confdefs.h <<_ACEOF
8545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8553 echo "$as_me:$LINENO: checking for error_t" >&5
8554 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8555 if test "${ac_cv_type_error_t+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8573 if (sizeof (error_t))
8579 rm -f conftest.$ac_objext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8581 (eval $ac_compile) 2>conftest.er1
8583 grep -v '^ *+' conftest.er1 >conftest.err
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag"
8589 || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest.$ac_objext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_type_error_t=yes
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 ac_cv_type_error_t=no
8608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8610 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8611 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8612 if test $ac_cv_type_error_t = yes; then
8614 cat >>confdefs.h <<_ACEOF
8615 #define HAVE_ERROR_T 1
8621 cat >>confdefs.h <<\_ACEOF
8633 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8636 echo "$as_me:$LINENO: checking for $ac_func" >&5
8637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8638 if eval "test \"\${$as_ac_var+set}\" = set"; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 cat >conftest.$ac_ext <<_ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8649 #define $ac_func innocuous_$ac_func
8651 /* System header to define __stub macros and hopefully few prototypes,
8652 which can conflict with char $ac_func (); below.
8653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654 <limits.h> exists even on freestanding compilers. */
8657 # include <limits.h>
8659 # include <assert.h>
8664 /* Override any gcc2 internal prototype to avoid an error. */
8669 /* We use char because int might match the return type of a gcc2
8670 builtin and then its argument prototype would still apply. */
8672 /* The GNU C library defines this for functions which it implements
8673 to always fail with ENOSYS. Some functions are actually named
8674 something starting with __ and the normal name is an alias. */
8675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8678 char (*f) () = $ac_func;
8687 return f != $ac_func;
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694 (eval $ac_link) 2>conftest.er1
8696 grep -v '^ *+' conftest.er1 >conftest.err
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } &&
8701 { ac_try='test -z "$ac_c_werror_flag"
8702 || test ! -s conftest.err'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest$ac_exeext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 eval "$as_ac_var=yes"
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 eval "$as_ac_var=no"
8721 rm -f conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8726 if test `eval echo '${'$as_ac_var'}'` = yes; then
8727 cat >>confdefs.h <<_ACEOF
8728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8761 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8766 echo "$as_me:$LINENO: checking for $ac_header" >&5
8767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8774 # Is the header compilable?
8775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8777 cat >conftest.$ac_ext <<_ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 $ac_includes_default
8784 #include <$ac_header>
8786 rm -f conftest.$ac_objext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788 (eval $ac_compile) 2>conftest.er1
8790 grep -v '^ *+' conftest.er1 >conftest.err
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } &&
8795 { ac_try='test -z "$ac_c_werror_flag"
8796 || test ! -s conftest.err'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest.$ac_objext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_header_compiler=yes
8810 echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8813 ac_header_compiler=no
8815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8817 echo "${ECHO_T}$ac_header_compiler" >&6
8819 # Is the header present?
8820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 #include <$ac_header>
8830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } >/dev/null; then
8838 if test -s conftest.err; then
8839 ac_cpp_err=$ac_c_preproc_warn_flag
8840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8847 if test -z "$ac_cpp_err"; then
8848 ac_header_preproc=yes
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 ac_header_preproc=no
8855 rm -f conftest.err conftest.$ac_ext
8856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8857 echo "${ECHO_T}$ac_header_preproc" >&6
8859 # So? What about this header?
8860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8866 ac_header_preproc=yes
8869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8883 ## ----------------------------------- ##
8884 ## Report this to llvmbugs@cs.uiuc.edu ##
8885 ## ----------------------------------- ##
8888 sed "s/^/$as_me: WARNING: /" >&2
8891 echo "$as_me:$LINENO: checking for $ac_header" >&5
8892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 eval "$as_ac_Header=\$ac_header_preproc"
8898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8903 cat >>confdefs.h <<_ACEOF
8904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8915 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8919 echo "$as_me:$LINENO: checking for $ac_header" >&5
8920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8927 # Is the header compilable?
8928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8930 cat >conftest.$ac_ext <<_ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8936 $ac_includes_default
8937 #include <$ac_header>
8939 rm -f conftest.$ac_objext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>conftest.er1
8943 grep -v '^ *+' conftest.er1 >conftest.err
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try='test -z "$ac_c_werror_flag"
8949 || test ! -s conftest.err'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; } &&
8955 { ac_try='test -s conftest.$ac_objext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 ac_header_compiler=yes
8963 echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8966 ac_header_compiler=no
8968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8970 echo "${ECHO_T}$ac_header_compiler" >&6
8972 # Is the header present?
8973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8975 cat >conftest.$ac_ext <<_ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h. */
8981 #include <$ac_header>
8983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8986 grep -v '^ *+' conftest.er1 >conftest.err
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } >/dev/null; then
8991 if test -s conftest.err; then
8992 ac_cpp_err=$ac_c_preproc_warn_flag
8993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9000 if test -z "$ac_cpp_err"; then
9001 ac_header_preproc=yes
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 ac_header_preproc=no
9008 rm -f conftest.err conftest.$ac_ext
9009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9010 echo "${ECHO_T}$ac_header_preproc" >&6
9012 # So? What about this header?
9013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9019 ac_header_preproc=yes
9022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9036 ## ----------------------------------- ##
9037 ## Report this to llvmbugs@cs.uiuc.edu ##
9038 ## ----------------------------------- ##
9041 sed "s/^/$as_me: WARNING: /" >&2
9044 echo "$as_me:$LINENO: checking for $ac_header" >&5
9045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 eval "$as_ac_Header=\$ac_header_preproc"
9051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9056 cat >>confdefs.h <<_ACEOF
9057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9066 for ac_header in string.h strings.h
9068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9070 echo "$as_me:$LINENO: checking for $ac_header" >&5
9071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9078 # Is the header compilable?
9079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9081 cat >conftest.$ac_ext <<_ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9087 $ac_includes_default
9088 #include <$ac_header>
9090 rm -f conftest.$ac_objext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092 (eval $ac_compile) 2>conftest.er1
9094 grep -v '^ *+' conftest.er1 >conftest.err
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -z "$ac_c_werror_flag"
9100 || test ! -s conftest.err'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; } &&
9106 { ac_try='test -s conftest.$ac_objext'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_header_compiler=yes
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9117 ac_header_compiler=no
9119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9121 echo "${ECHO_T}$ac_header_compiler" >&6
9123 # Is the header present?
9124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 #include <$ac_header>
9134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9137 grep -v '^ *+' conftest.er1 >conftest.err
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } >/dev/null; then
9142 if test -s conftest.err; then
9143 ac_cpp_err=$ac_c_preproc_warn_flag
9144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9151 if test -z "$ac_cpp_err"; then
9152 ac_header_preproc=yes
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9157 ac_header_preproc=no
9159 rm -f conftest.err conftest.$ac_ext
9160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9161 echo "${ECHO_T}$ac_header_preproc" >&6
9163 # So? What about this header?
9164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9170 ac_header_preproc=yes
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9187 ## ----------------------------------- ##
9188 ## Report this to llvmbugs@cs.uiuc.edu ##
9189 ## ----------------------------------- ##
9192 sed "s/^/$as_me: WARNING: /" >&2
9195 echo "$as_me:$LINENO: checking for $ac_header" >&5
9196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 eval "$as_ac_Header=\$ac_header_preproc"
9202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9207 cat >>confdefs.h <<_ACEOF
9208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9218 for ac_func in strchr index
9220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9221 echo "$as_me:$LINENO: checking for $ac_func" >&5
9222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9223 if eval "test \"\${$as_ac_var+set}\" = set"; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 cat >conftest.$ac_ext <<_ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9234 #define $ac_func innocuous_$ac_func
9236 /* System header to define __stub macros and hopefully few prototypes,
9237 which can conflict with char $ac_func (); below.
9238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9239 <limits.h> exists even on freestanding compilers. */
9242 # include <limits.h>
9244 # include <assert.h>
9249 /* Override any gcc2 internal prototype to avoid an error. */
9254 /* We use char because int might match the return type of a gcc2
9255 builtin and then its argument prototype would still apply. */
9257 /* The GNU C library defines this for functions which it implements
9258 to always fail with ENOSYS. Some functions are actually named
9259 something starting with __ and the normal name is an alias. */
9260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9263 char (*f) () = $ac_func;
9272 return f != $ac_func;
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9279 (eval $ac_link) 2>conftest.er1
9281 grep -v '^ *+' conftest.er1 >conftest.err
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -z "$ac_c_werror_flag"
9287 || test ! -s conftest.err'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; } &&
9293 { ac_try='test -s conftest$ac_exeext'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 eval "$as_ac_var=yes"
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9304 eval "$as_ac_var=no"
9306 rm -f conftest.err conftest.$ac_objext \
9307 conftest$ac_exeext conftest.$ac_ext
9309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9311 if test `eval echo '${'$as_ac_var'}'` = yes; then
9312 cat >>confdefs.h <<_ACEOF
9313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9321 for ac_func in strrchr rindex
9323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9324 echo "$as_me:$LINENO: checking for $ac_func" >&5
9325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9326 if eval "test \"\${$as_ac_var+set}\" = set"; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 cat >conftest.$ac_ext <<_ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9337 #define $ac_func innocuous_$ac_func
9339 /* System header to define __stub macros and hopefully few prototypes,
9340 which can conflict with char $ac_func (); below.
9341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9342 <limits.h> exists even on freestanding compilers. */
9345 # include <limits.h>
9347 # include <assert.h>
9352 /* Override any gcc2 internal prototype to avoid an error. */
9357 /* We use char because int might match the return type of a gcc2
9358 builtin and then its argument prototype would still apply. */
9360 /* The GNU C library defines this for functions which it implements
9361 to always fail with ENOSYS. Some functions are actually named
9362 something starting with __ and the normal name is an alias. */
9363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9366 char (*f) () = $ac_func;
9375 return f != $ac_func;
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>conftest.er1
9384 grep -v '^ *+' conftest.er1 >conftest.err
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -z "$ac_c_werror_flag"
9390 || test ! -s conftest.err'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 eval "$as_ac_var=yes"
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 eval "$as_ac_var=no"
9409 rm -f conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9414 if test `eval echo '${'$as_ac_var'}'` = yes; then
9415 cat >>confdefs.h <<_ACEOF
9416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9424 for ac_func in memcpy bcopy
9426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9427 echo "$as_me:$LINENO: checking for $ac_func" >&5
9428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9429 if eval "test \"\${$as_ac_var+set}\" = set"; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 cat >conftest.$ac_ext <<_ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9440 #define $ac_func innocuous_$ac_func
9442 /* System header to define __stub macros and hopefully few prototypes,
9443 which can conflict with char $ac_func (); below.
9444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9445 <limits.h> exists even on freestanding compilers. */
9448 # include <limits.h>
9450 # include <assert.h>
9455 /* Override any gcc2 internal prototype to avoid an error. */
9460 /* We use char because int might match the return type of a gcc2
9461 builtin and then its argument prototype would still apply. */
9463 /* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
9466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9469 char (*f) () = $ac_func;
9478 return f != $ac_func;
9483 rm -f conftest.$ac_objext conftest$ac_exeext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485 (eval $ac_link) 2>conftest.er1
9487 grep -v '^ *+' conftest.er1 >conftest.err
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -z "$ac_c_werror_flag"
9493 || test ! -s conftest.err'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try='test -s conftest$ac_exeext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 eval "$as_ac_var=yes"
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9510 eval "$as_ac_var=no"
9512 rm -f conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9517 if test `eval echo '${'$as_ac_var'}'` = yes; then
9518 cat >>confdefs.h <<_ACEOF
9519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9527 for ac_func in memmove strcmp
9529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9530 echo "$as_me:$LINENO: checking for $ac_func" >&5
9531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9532 if eval "test \"\${$as_ac_var+set}\" = set"; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 cat >conftest.$ac_ext <<_ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9543 #define $ac_func innocuous_$ac_func
9545 /* System header to define __stub macros and hopefully few prototypes,
9546 which can conflict with char $ac_func (); below.
9547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9548 <limits.h> exists even on freestanding compilers. */
9551 # include <limits.h>
9553 # include <assert.h>
9558 /* Override any gcc2 internal prototype to avoid an error. */
9563 /* We use char because int might match the return type of a gcc2
9564 builtin and then its argument prototype would still apply. */
9566 /* The GNU C library defines this for functions which it implements
9567 to always fail with ENOSYS. Some functions are actually named
9568 something starting with __ and the normal name is an alias. */
9569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9572 char (*f) () = $ac_func;
9581 return f != $ac_func;
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9588 (eval $ac_link) 2>conftest.er1
9590 grep -v '^ *+' conftest.er1 >conftest.err
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
9595 { ac_try='test -z "$ac_c_werror_flag"
9596 || test ! -s conftest.err'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; } &&
9602 { ac_try='test -s conftest$ac_exeext'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; }; then
9608 eval "$as_ac_var=yes"
9610 echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9613 eval "$as_ac_var=no"
9615 rm -f conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9620 if test `eval echo '${'$as_ac_var'}'` = yes; then
9621 cat >>confdefs.h <<_ACEOF
9622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9631 for ac_func in closedir opendir readdir
9633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9634 echo "$as_me:$LINENO: checking for $ac_func" >&5
9635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9636 if eval "test \"\${$as_ac_var+set}\" = set"; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 cat >conftest.$ac_ext <<_ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9647 #define $ac_func innocuous_$ac_func
9649 /* System header to define __stub macros and hopefully few prototypes,
9650 which can conflict with char $ac_func (); below.
9651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9652 <limits.h> exists even on freestanding compilers. */
9655 # include <limits.h>
9657 # include <assert.h>
9662 /* Override any gcc2 internal prototype to avoid an error. */
9667 /* We use char because int might match the return type of a gcc2
9668 builtin and then its argument prototype would still apply. */
9670 /* The GNU C library defines this for functions which it implements
9671 to always fail with ENOSYS. Some functions are actually named
9672 something starting with __ and the normal name is an alias. */
9673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9676 char (*f) () = $ac_func;
9685 return f != $ac_func;
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692 (eval $ac_link) 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try='test -z "$ac_c_werror_flag"
9700 || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest$ac_exeext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 eval "$as_ac_var=yes"
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 eval "$as_ac_var=no"
9719 rm -f conftest.err conftest.$ac_objext \
9720 conftest$ac_exeext conftest.$ac_ext
9722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9724 if test `eval echo '${'$as_ac_var'}'` = yes; then
9725 cat >>confdefs.h <<_ACEOF
9726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9733 # Check whether --enable-shared or --disable-shared was given.
9734 if test "${enable_shared+set}" = set; then
9735 enableval="$enable_shared"
9736 p=${PACKAGE-default}
9738 yes) enable_shared=yes ;;
9739 no) enable_shared=no ;;
9742 # Look at the argument we got. We use all the common list separators.
9743 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9744 for pkg in $enableval; do
9746 if test "X$pkg" = "X$p"; then
9757 # Check whether --enable-static or --disable-static was given.
9758 if test "${enable_static+set}" = set; then
9759 enableval="$enable_static"
9760 p=${PACKAGE-default}
9762 yes) enable_static=yes ;;
9763 no) enable_static=no ;;
9766 # Look at the argument we got. We use all the common list separators.
9767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9768 for pkg in $enableval; do
9770 if test "X$pkg" = "X$p"; then
9781 # Check whether --enable-fast-install or --disable-fast-install was given.
9782 if test "${enable_fast_install+set}" = set; then
9783 enableval="$enable_fast_install"
9784 p=${PACKAGE-default}
9786 yes) enable_fast_install=yes ;;
9787 no) enable_fast_install=no ;;
9789 enable_fast_install=no
9790 # Look at the argument we got. We use all the common list separators.
9791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9792 for pkg in $enableval; do
9794 if test "X$pkg" = "X$p"; then
9795 enable_fast_install=yes
9802 enable_fast_install=yes
9805 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9806 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9807 if test "${lt_cv_path_SED+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 # Loop through the user's path and test for sed and gsed.
9811 # Then use that list of sed's as ones to test for truncation.
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816 test -z "$as_dir" && as_dir=.
9817 for lt_ac_prog in sed gsed; do
9818 for ac_exec_ext in '' $ac_executable_extensions; do
9819 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9820 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9827 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9828 # along with /bin/sed that truncates output.
9829 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9830 test ! -f $lt_ac_sed && break
9831 cat /dev/null > conftest.in
9833 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9834 # Check for GNU sed and select it if it is found.
9835 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9836 lt_cv_path_SED=$lt_ac_sed
9840 cat conftest.in conftest.in >conftest.tmp
9841 mv conftest.tmp conftest.in
9842 cp conftest.in conftest.nl
9844 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9845 cmp -s conftest.out conftest.nl || break
9846 # 10000 chars as input seems more than enough
9847 test $lt_ac_count -gt 10 && break
9848 lt_ac_count=`expr $lt_ac_count + 1`
9849 if test $lt_ac_count -gt $lt_ac_max; then
9850 lt_ac_max=$lt_ac_count
9851 lt_cv_path_SED=$lt_ac_sed
9859 echo "$as_me:$LINENO: result: $SED" >&5
9860 echo "${ECHO_T}$SED" >&6
9863 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9864 if test "${with_gnu_ld+set}" = set; then
9865 withval="$with_gnu_ld"
9866 test "$withval" = no || with_gnu_ld=yes
9871 if test "$GCC" = yes; then
9872 # Check if gcc -print-prog-name=ld gives a path.
9873 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9874 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9877 # gcc leaves a trailing carriage return which upsets mingw
9878 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9880 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9883 # Accept absolute paths.
9885 re_direlt='/[^/][^/]*/\.\./'
9886 # Canonicalize the pathname of ld
9887 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9888 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9889 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9891 test -z "$LD" && LD="$ac_prog"
9894 # If it fails, then pretend we aren't using GCC.
9898 # If it is relative, then search for the first ld in PATH.
9902 elif test "$with_gnu_ld" = yes; then
9903 echo "$as_me:$LINENO: checking for GNU ld" >&5
9904 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9906 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9907 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9909 if test "${lt_cv_path_LD+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 if test -z "$LD"; then
9913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9914 for ac_dir in $PATH; do
9916 test -z "$ac_dir" && ac_dir=.
9917 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9918 lt_cv_path_LD="$ac_dir/$ac_prog"
9919 # Check to see if the program is GNU ld. I'd rather use --version,
9920 # but apparently some GNU ld's only accept -v.
9921 # Break only if it was the GNU/non-GNU ld that we prefer.
9922 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9923 *GNU* | *'with BFD'*)
9924 test "$with_gnu_ld" != no && break
9927 test "$with_gnu_ld" != yes && break
9934 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9939 if test -n "$LD"; then
9940 echo "$as_me:$LINENO: result: $LD" >&5
9941 echo "${ECHO_T}$LD" >&6
9943 echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6
9946 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9947 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9948 { (exit 1); exit 1; }; }
9949 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9950 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9951 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9955 case `$LD -v 2>&1 </dev/null` in
9956 *GNU* | *'with BFD'*)
9957 lt_cv_prog_gnu_ld=yes
9960 lt_cv_prog_gnu_ld=no
9964 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9965 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9966 with_gnu_ld=$lt_cv_prog_gnu_ld
9969 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9970 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9971 if test "${lt_cv_ld_reload_flag+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 lt_cv_ld_reload_flag='-r'
9976 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9977 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9978 reload_flag=$lt_cv_ld_reload_flag
9979 case $reload_flag in
9981 *) reload_flag=" $reload_flag" ;;
9983 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9986 if test "$GCC" = yes; then
9987 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9989 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9994 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9995 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9996 if test "${lt_cv_deplibs_check_method+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 lt_cv_file_magic_cmd='$MAGIC_CMD'
10000 lt_cv_file_magic_test_file=
10001 lt_cv_deplibs_check_method='unknown'
10002 # Need to set the preceding variable on all platforms that support
10003 # interlibrary dependencies.
10004 # 'none' -- dependencies not supported.
10005 # `unknown' -- same as none, but documents that we really don't know.
10006 # 'pass_all' -- all dependencies passed with no checks.
10007 # 'test_compile' -- check by making test program.
10008 # 'file_magic [[regex]]' -- check by looking for files in library path
10009 # which responds to the $file_magic_cmd with a given extended regex.
10010 # If you have `file' or equivalent on your system and you're not sure
10011 # whether `pass_all' will *always* work, you probably want this one.
10015 lt_cv_deplibs_check_method=pass_all
10019 lt_cv_deplibs_check_method=pass_all
10023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10024 lt_cv_file_magic_cmd='/usr/bin/file -L'
10025 lt_cv_file_magic_test_file=/shlib/libc.so
10029 # func_win32_libid is a shell function defined in ltmain.sh
10030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10031 lt_cv_file_magic_cmd='func_win32_libid'
10035 # Base MSYS/MinGW do not provide the 'file' command needed by
10036 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10037 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10038 lt_cv_file_magic_cmd='$OBJDUMP -f'
10041 darwin* | rhapsody*)
10042 lt_cv_deplibs_check_method=pass_all
10045 freebsd* | kfreebsd*-gnu)
10046 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10049 # Not sure whether the presence of OpenBSD here was a mistake.
10050 # Let's accept both of them until this is cleared up.
10051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10052 lt_cv_file_magic_cmd=/usr/bin/file
10053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10057 lt_cv_deplibs_check_method=pass_all
10062 lt_cv_deplibs_check_method=pass_all
10065 hpux10.20* | hpux11*)
10066 lt_cv_file_magic_cmd=/usr/bin/file
10067 case "$host_cpu" in
10069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10073 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]'
10074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10083 irix5* | irix6* | nonstopux*)
10085 *-32|*"-32 ") libmagic=32-bit;;
10086 *-n32|*"-n32 ") libmagic=N32;;
10087 *-64|*"-64 ") libmagic=64-bit;;
10088 *) libmagic=never-match;;
10090 lt_cv_deplibs_check_method=pass_all
10093 # This must be Linux ELF.
10095 lt_cv_deplibs_check_method=pass_all
10099 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10108 lt_cv_file_magic_cmd=/usr/bin/file
10109 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10113 lt_cv_deplibs_check_method=unknown
10117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10124 osf3* | osf4* | osf5*)
10125 lt_cv_deplibs_check_method=pass_all
10129 lt_cv_deplibs_check_method=pass_all
10133 lt_cv_deplibs_check_method=pass_all
10136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10137 case $host_vendor in
10139 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]'
10140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10143 lt_cv_deplibs_check_method=pass_all
10146 lt_cv_file_magic_cmd='/bin/file'
10147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10150 lt_cv_file_magic_cmd='/bin/file'
10151 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10152 lt_cv_file_magic_test_file=/lib/libc.so
10155 lt_cv_deplibs_check_method=pass_all
10160 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10161 lt_cv_deplibs_check_method=pass_all
10166 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10167 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10168 file_magic_cmd=$lt_cv_file_magic_cmd
10169 deplibs_check_method=$lt_cv_deplibs_check_method
10170 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10174 # If no C compiler was specified, use CC.
10177 # Allow CC to be a program name with arguments.
10180 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10181 if test "${enable_libtool_lock+set}" = set; then
10182 enableval="$enable_libtool_lock"
10185 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10187 # Some flags need to be propagated to the compiler or linker for good
10191 # Find out which ABI we are using.
10192 echo 'int i;' > conftest.$ac_ext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; then
10198 case `/usr/bin/file conftest.$ac_objext` in
10200 HPUX_IA64_MODE="32"
10203 HPUX_IA64_MODE="64"
10210 # Find out which ABI we are using.
10211 echo '#line 10211 "configure"' > conftest.$ac_ext
10212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10213 (eval $ac_compile) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; then
10217 if test "$lt_cv_prog_gnu_ld" = yes; then
10218 case `/usr/bin/file conftest.$ac_objext` in
10220 LD="${LD-ld} -melf32bsmip"
10223 LD="${LD-ld} -melf32bmipn32"
10226 LD="${LD-ld} -melf64bmip"
10230 case `/usr/bin/file conftest.$ac_objext` in
10246 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10247 # Find out which ABI we are using.
10248 echo 'int i;' > conftest.$ac_ext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250 (eval $ac_compile) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; then
10254 case "`/usr/bin/file conftest.o`" in
10258 LD="${LD-ld} -m elf_i386"
10260 ppc64-*linux*|powerpc64-*linux*)
10261 LD="${LD-ld} -m elf32ppclinux"
10264 LD="${LD-ld} -m elf_s390"
10267 LD="${LD-ld} -m elf32_sparc"
10274 LD="${LD-ld} -m elf_x86_64"
10276 ppc*-*linux*|powerpc*-*linux*)
10277 LD="${LD-ld} -m elf64ppc"
10280 LD="${LD-ld} -m elf64_s390"
10283 LD="${LD-ld} -m elf64_sparc"
10293 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10294 SAVE_CFLAGS="$CFLAGS"
10295 CFLAGS="$CFLAGS -belf"
10296 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10297 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10298 if test "${lt_cv_cc_needs_belf+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 ac_cpp='$CPP $CPPFLAGS'
10303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10307 cat >conftest.$ac_ext <<_ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317 (eval $ac_link) 2>conftest.er1
10319 grep -v '^ *+' conftest.er1 >conftest.err
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_c_werror_flag"
10325 || test ! -s conftest.err'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; } &&
10331 { ac_try='test -s conftest$ac_exeext'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }; then
10337 lt_cv_cc_needs_belf=yes
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10342 lt_cv_cc_needs_belf=no
10344 rm -f conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10347 ac_cpp='$CPP $CPPFLAGS'
10348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10353 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10354 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10355 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10356 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10357 CFLAGS="$SAVE_CFLAGS"
10363 need_locks="$enable_libtool_lock"
10368 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10369 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10370 (test "X$CXX" != "Xg++"))) ; then
10372 ac_cpp='$CXXCPP $CPPFLAGS'
10373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10376 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10377 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10378 if test -z "$CXXCPP"; then
10379 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 # Double quotes because CXXCPP needs to be expanded
10383 for CXXCPP in "$CXX -E" "/lib/cpp"
10385 ac_preproc_ok=false
10386 for ac_cxx_preproc_warn_flag in '' yes
10388 # Use a header file that comes with gcc, so configuring glibc
10389 # with a fresh cross-compiler works.
10390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10391 # <limits.h> exists even on freestanding compilers.
10392 # On the NeXT, cc -E runs the code through the compiler's parser,
10393 # not just through cpp. "Syntax error" is here to catch this case.
10394 cat >conftest.$ac_ext <<_ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10401 # include <limits.h>
10403 # include <assert.h>
10407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10410 grep -v '^ *+' conftest.er1 >conftest.err
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } >/dev/null; then
10415 if test -s conftest.err; then
10416 ac_cpp_err=$ac_cxx_preproc_warn_flag
10417 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10424 if test -z "$ac_cpp_err"; then
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 # Broken: fails on valid input.
10433 rm -f conftest.err conftest.$ac_ext
10435 # OK, works on sane cases. Now check whether non-existent headers
10436 # can be detected and how.
10437 cat >conftest.$ac_ext <<_ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10443 #include <ac_nonexistent.h>
10445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10448 grep -v '^ *+' conftest.er1 >conftest.err
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } >/dev/null; then
10453 if test -s conftest.err; then
10454 ac_cpp_err=$ac_cxx_preproc_warn_flag
10455 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10462 if test -z "$ac_cpp_err"; then
10463 # Broken: success on invalid input.
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 # Passes both tests.
10473 rm -f conftest.err conftest.$ac_ext
10476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10477 rm -f conftest.err conftest.$ac_ext
10478 if $ac_preproc_ok; then
10483 ac_cv_prog_CXXCPP=$CXXCPP
10486 CXXCPP=$ac_cv_prog_CXXCPP
10488 ac_cv_prog_CXXCPP=$CXXCPP
10490 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10491 echo "${ECHO_T}$CXXCPP" >&6
10492 ac_preproc_ok=false
10493 for ac_cxx_preproc_warn_flag in '' yes
10495 # Use a header file that comes with gcc, so configuring glibc
10496 # with a fresh cross-compiler works.
10497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498 # <limits.h> exists even on freestanding compilers.
10499 # On the NeXT, cc -E runs the code through the compiler's parser,
10500 # not just through cpp. "Syntax error" is here to catch this case.
10501 cat >conftest.$ac_ext <<_ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10508 # include <limits.h>
10510 # include <assert.h>
10514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10517 grep -v '^ *+' conftest.er1 >conftest.err
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } >/dev/null; then
10522 if test -s conftest.err; then
10523 ac_cpp_err=$ac_cxx_preproc_warn_flag
10524 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10531 if test -z "$ac_cpp_err"; then
10534 echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10537 # Broken: fails on valid input.
10540 rm -f conftest.err conftest.$ac_ext
10542 # OK, works on sane cases. Now check whether non-existent headers
10543 # can be detected and how.
10544 cat >conftest.$ac_ext <<_ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550 #include <ac_nonexistent.h>
10552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10555 grep -v '^ *+' conftest.er1 >conftest.err
10557 cat conftest.err >&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } >/dev/null; then
10560 if test -s conftest.err; then
10561 ac_cpp_err=$ac_cxx_preproc_warn_flag
10562 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10569 if test -z "$ac_cpp_err"; then
10570 # Broken: success on invalid input.
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 # Passes both tests.
10580 rm -f conftest.err conftest.$ac_ext
10583 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10584 rm -f conftest.err conftest.$ac_ext
10585 if $ac_preproc_ok; then
10588 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10589 See \`config.log' for more details." >&5
10590 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10591 See \`config.log' for more details." >&2;}
10592 { (exit 1); exit 1; }; }
10596 ac_cpp='$CXXCPP $CPPFLAGS'
10597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10605 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10606 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10607 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10608 if test -n "$ac_tool_prefix"; then
10609 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10613 echo "$as_me:$LINENO: checking for $ac_word" >&5
10614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10615 if test "${ac_cv_prog_F77+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 if test -n "$F77"; then
10619 ac_cv_prog_F77="$F77" # Let the user override the test.
10621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622 for as_dir in $PATH
10625 test -z "$as_dir" && as_dir=.
10626 for ac_exec_ext in '' $ac_executable_extensions; do
10627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10628 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10637 F77=$ac_cv_prog_F77
10638 if test -n "$F77"; then
10639 echo "$as_me:$LINENO: result: $F77" >&5
10640 echo "${ECHO_T}$F77" >&6
10642 echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6
10646 test -n "$F77" && break
10649 if test -z "$F77"; then
10651 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10653 # Extract the first word of "$ac_prog", so it can be a program name with args.
10654 set dummy $ac_prog; ac_word=$2
10655 echo "$as_me:$LINENO: checking for $ac_word" >&5
10656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10657 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 if test -n "$ac_ct_F77"; then
10661 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10670 ac_cv_prog_ac_ct_F77="$ac_prog"
10671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10680 if test -n "$ac_ct_F77"; then
10681 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10682 echo "${ECHO_T}$ac_ct_F77" >&6
10684 echo "$as_me:$LINENO: result: no" >&5
10685 echo "${ECHO_T}no" >&6
10688 test -n "$ac_ct_F77" && break
10695 # Provide some information about the compiler.
10696 echo "$as_me:10696:" \
10697 "checking for Fortran 77 compiler version" >&5
10698 ac_compiler=`set X $ac_compile; echo $2`
10699 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10700 (eval $ac_compiler --version </dev/null >&5) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }
10704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10705 (eval $ac_compiler -v </dev/null >&5) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }
10709 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10710 (eval $ac_compiler -V </dev/null >&5) 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }
10716 # If we don't use `.F' as extension, the preprocessor is not run on the
10717 # input file. (Note that this only needs to work for GNU compilers.)
10718 ac_save_ext=$ac_ext
10720 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10721 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10722 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10733 rm -f conftest.$ac_objext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10735 (eval $ac_compile) 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
10742 { ac_try='test -z "$ac_f77_werror_flag"
10743 || test ! -s conftest.err'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; } &&
10749 { ac_try='test -s conftest.$ac_objext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 ac_compiler_gnu=yes
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10763 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10766 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10767 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10768 ac_ext=$ac_save_ext
10769 ac_test_FFLAGS=${FFLAGS+set}
10770 ac_save_FFLAGS=$FFLAGS
10772 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10773 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10774 if test "${ac_cv_prog_f77_g+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 cat >conftest.$ac_ext <<_ACEOF
10783 rm -f conftest.$ac_objext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10785 (eval $ac_compile) 2>conftest.er1
10787 grep -v '^ *+' conftest.er1 >conftest.err
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
10792 { ac_try='test -z "$ac_f77_werror_flag"
10793 || test ! -s conftest.err'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try='test -s conftest.$ac_objext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_cv_prog_f77_g=yes
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10810 ac_cv_prog_f77_g=no
10812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10815 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10816 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10817 if test "$ac_test_FFLAGS" = set; then
10818 FFLAGS=$ac_save_FFLAGS
10819 elif test $ac_cv_prog_f77_g = yes; then
10820 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10826 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10833 G77=`test $ac_compiler_gnu = yes && echo yes`
10835 ac_cpp='$CPP $CPPFLAGS'
10836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10842 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10844 # find the maximum length of command line arguments
10845 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10846 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10847 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 # On DJGPP, this test can blow up pretty badly due to problems in libc
10856 # (any single argument exceeding 2000 bytes causes a buffer overrun
10857 # during glob expansion). Even if it were fixed, the result of this
10858 # check would be larger than it should be.
10859 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10863 # Under GNU Hurd, this test is not required because there is
10864 # no limit to the length of command line arguments.
10865 # Libtool will interpret -1 as no limit whatsoever
10866 lt_cv_sys_max_cmd_len=-1;
10870 # On Win9x/ME, this test blows up -- it succeeds, but takes
10871 # about 5 minutes as the teststring grows exponentially.
10872 # Worse, since 9x/ME are not pre-emptively multitasking,
10873 # you end up with a "frozen" computer, even though with patience
10874 # the test eventually succeeds (with a max line length of 256k).
10875 # Instead, let's just punt: use the minimum linelength reported by
10876 # all of the supported platforms: 8192 (on NT/2K/XP).
10877 lt_cv_sys_max_cmd_len=8192;
10881 # On AmigaOS with pdksh, this test takes hours, literally.
10882 # So we just punt and use a minimum line length of 8192.
10883 lt_cv_sys_max_cmd_len=8192;
10886 netbsd* | freebsd* | openbsd* | darwin* )
10887 # This has been around since 386BSD, at least. Likely further.
10888 if test -x /sbin/sysctl; then
10889 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10890 elif test -x /usr/sbin/sysctl; then
10891 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10893 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10895 # And add a safety zone
10896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10900 # If test is not a shell built-in, we'll probably end up computing a
10901 # maximum length that is only half of the actual maximum length, but
10903 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10904 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10905 = "XX$teststring") >/dev/null 2>&1 &&
10906 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10907 lt_cv_sys_max_cmd_len=$new_result &&
10908 test $i != 17 # 1/2 MB should be enough
10911 teststring=$teststring$teststring
10914 # Add a significant safety factor because C++ compilers can tack on massive
10915 # amounts of additional arguments before passing them to the linker.
10916 # It appears as though 1/2 is a usable value.
10917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10923 if test -n $lt_cv_sys_max_cmd_len ; then
10924 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10925 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10927 echo "$as_me:$LINENO: result: none" >&5
10928 echo "${ECHO_T}none" >&6
10934 # Check for command to grab the raw symbol name followed by C symbol from nm.
10935 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10936 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10937 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 # These are sane defaults that work on at least a few old systems.
10942 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10944 # Character class describing NM global symbol codes.
10945 symcode='[BCDEGRST]'
10947 # Regexp to match symbols that can be accessed directly from C.
10948 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10950 # Transform the above into a raw symbol and a C symbol.
10951 symxfrm='\1 \2\3 \3'
10953 # Transform an extracted symbol line into a proper C declaration
10954 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10956 # Transform an extracted symbol line into symbol name and symbol address
10957 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'"
10959 # Define system-specific variables.
10964 cygwin* | mingw* | pw32*)
10965 symcode='[ABCDGISTW]'
10967 hpux*) # Its linker distinguishes data from code symbols
10968 if test "$host_cpu" = ia64; then
10969 symcode='[ABCDEGRST]'
10971 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10972 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'"
10975 if test "$host_cpu" = ia64; then
10976 symcode='[ABCDGIRSTW]'
10977 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10978 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'"
10981 irix* | nonstopux*)
10982 symcode='[BCDEGRST]'
10985 symcode='[BCDEGQRST]'
10995 # Handle CRLF in mingw tool chain
10999 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11003 # If we're using GNU nm, then use its standard symbol codes.
11004 case `$NM -V 2>&1` in
11005 *GNU* | *'with BFD'*)
11006 symcode='[ABCDGIRSTW]' ;;
11009 # Try without a prefix undercore, then with it.
11010 for ac_symprfx in "" "_"; do
11012 # Write the raw and C identifiers.
11013 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11015 # Check to see that the pipe works correctly.
11019 cat > conftest.$ac_ext <<EOF
11024 void nm_test_func(){}
11028 int main(){nm_test_var='a';nm_test_func();return(0);}
11031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11032 (eval $ac_compile) 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; then
11036 # Now try to grab the symbols.
11038 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11039 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && test -s "$nlist"; then
11043 # Try sorting and uniquifying the output.
11044 if sort "$nlist" | uniq > "$nlist"T; then
11045 mv -f "$nlist"T "$nlist"
11050 # Make sure that we snagged all the symbols we need.
11051 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11052 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11053 cat <<EOF > conftest.$ac_ext
11059 # Now generate the symbol file.
11060 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11062 cat <<EOF >> conftest.$ac_ext
11063 #if defined (__STDC__) && __STDC__
11064 # define lt_ptr_t void *
11066 # define lt_ptr_t char *
11070 /* The mapping between symbol names and symbols. */
11075 lt_preloaded_symbols[] =
11078 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11079 cat <<\EOF >> conftest.$ac_ext
11087 # Now try linking the two files.
11088 mv conftest.$ac_objext conftstm.$ac_objext
11089 lt_save_LIBS="$LIBS"
11090 lt_save_CFLAGS="$CFLAGS"
11091 LIBS="conftstm.$ac_objext"
11092 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094 (eval $ac_link) 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11100 LIBS="$lt_save_LIBS"
11101 CFLAGS="$lt_save_CFLAGS"
11103 echo "cannot find nm_test_func in $nlist" >&5
11106 echo "cannot find nm_test_var in $nlist" >&5
11109 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11112 echo "$progname: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11115 rm -f conftest* conftst*
11117 # Do not use the global_symbol_pipe unless it works.
11118 if test "$pipe_works" = yes; then
11121 lt_cv_sys_global_symbol_pipe=
11127 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11128 lt_cv_sys_global_symbol_to_cdecl=
11130 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11131 echo "$as_me:$LINENO: result: failed" >&5
11132 echo "${ECHO_T}failed" >&6
11134 echo "$as_me:$LINENO: result: ok" >&5
11135 echo "${ECHO_T}ok" >&6
11138 echo "$as_me:$LINENO: checking for objdir" >&5
11139 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11140 if test "${lt_cv_objdir+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 rm -f .libs 2>/dev/null
11144 mkdir .libs 2>/dev/null
11145 if test -d .libs; then
11148 # MS-DOS does not allow filenames that begin with a dot.
11151 rmdir .libs 2>/dev/null
11153 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11154 echo "${ECHO_T}$lt_cv_objdir" >&6
11155 objdir=$lt_cv_objdir
11163 # AIX sometimes has problems with the GCC collect2 program. For some
11164 # reason, if we set the COLLECT_NAMES environment variable, the problems
11165 # vanish in a puff of smoke.
11166 if test "X${COLLECT_NAMES+set}" != Xset; then
11168 export COLLECT_NAMES
11173 # Sed substitution that helps us do robust quoting. It backslashifies
11174 # metacharacters that are still active within double-quoted strings.
11175 Xsed='sed -e s/^X//'
11176 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11178 # Same as above, but do not quote variable references.
11179 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11181 # Sed substitution to delay expansion of an escaped shell variable in a
11182 # double_quote_subst'ed string.
11183 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11185 # Sed substitution to avoid accidental globbing in evaled expressions
11186 no_glob_subst='s/\*/\\\*/g'
11191 # Global variables:
11192 default_ofile=mklib
11193 can_build_shared=yes
11195 # All known linkers require a `.a' archive for static linking (except M$VC,
11196 # which needs '.lib').
11198 ltmain="$ac_aux_dir/ltmain.sh"
11199 ofile="$default_ofile"
11200 with_gnu_ld="$lt_cv_prog_gnu_ld"
11202 if test -n "$ac_tool_prefix"; then
11203 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11204 set dummy ${ac_tool_prefix}ar; ac_word=$2
11205 echo "$as_me:$LINENO: checking for $ac_word" >&5
11206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11207 if test "${ac_cv_prog_AR+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 if test -n "$AR"; then
11211 ac_cv_prog_AR="$AR" # Let the user override the test.
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in $PATH
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11220 ac_cv_prog_AR="${ac_tool_prefix}ar"
11221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 if test -n "$AR"; then
11231 echo "$as_me:$LINENO: result: $AR" >&5
11232 echo "${ECHO_T}$AR" >&6
11234 echo "$as_me:$LINENO: result: no" >&5
11235 echo "${ECHO_T}no" >&6
11239 if test -z "$ac_cv_prog_AR"; then
11241 # Extract the first word of "ar", so it can be a program name with args.
11242 set dummy ar; ac_word=$2
11243 echo "$as_me:$LINENO: checking for $ac_word" >&5
11244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11245 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 if test -n "$ac_ct_AR"; then
11249 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11258 ac_cv_prog_ac_ct_AR="ar"
11259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11268 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11269 if test -n "$ac_ct_AR"; then
11270 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11271 echo "${ECHO_T}$ac_ct_AR" >&6
11273 echo "$as_me:$LINENO: result: no" >&5
11274 echo "${ECHO_T}no" >&6
11279 AR="$ac_cv_prog_AR"
11282 if test -n "$ac_tool_prefix"; then
11283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11285 echo "$as_me:$LINENO: checking for $ac_word" >&5
11286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11287 if test "${ac_cv_prog_RANLIB+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 if test -n "$RANLIB"; then
11291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $PATH
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11309 RANLIB=$ac_cv_prog_RANLIB
11310 if test -n "$RANLIB"; then
11311 echo "$as_me:$LINENO: result: $RANLIB" >&5
11312 echo "${ECHO_T}$RANLIB" >&6
11314 echo "$as_me:$LINENO: result: no" >&5
11315 echo "${ECHO_T}no" >&6
11319 if test -z "$ac_cv_prog_RANLIB"; then
11320 ac_ct_RANLIB=$RANLIB
11321 # Extract the first word of "ranlib", so it can be a program name with args.
11322 set dummy ranlib; ac_word=$2
11323 echo "$as_me:$LINENO: checking for $ac_word" >&5
11324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11325 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 if test -n "$ac_ct_RANLIB"; then
11329 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332 for as_dir in $PATH
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11338 ac_cv_prog_ac_ct_RANLIB="ranlib"
11339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11348 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11349 if test -n "$ac_ct_RANLIB"; then
11350 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11351 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11353 echo "$as_me:$LINENO: result: no" >&5
11354 echo "${ECHO_T}no" >&6
11357 RANLIB=$ac_ct_RANLIB
11359 RANLIB="$ac_cv_prog_RANLIB"
11362 if test -n "$ac_tool_prefix"; then
11363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11364 set dummy ${ac_tool_prefix}strip; ac_word=$2
11365 echo "$as_me:$LINENO: checking for $ac_word" >&5
11366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367 if test "${ac_cv_prog_STRIP+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 if test -n "$STRIP"; then
11371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11389 STRIP=$ac_cv_prog_STRIP
11390 if test -n "$STRIP"; then
11391 echo "$as_me:$LINENO: result: $STRIP" >&5
11392 echo "${ECHO_T}$STRIP" >&6
11394 echo "$as_me:$LINENO: result: no" >&5
11395 echo "${ECHO_T}no" >&6
11399 if test -z "$ac_cv_prog_STRIP"; then
11401 # Extract the first word of "strip", so it can be a program name with args.
11402 set dummy strip; ac_word=$2
11403 echo "$as_me:$LINENO: checking for $ac_word" >&5
11404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11405 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 if test -n "$ac_ct_STRIP"; then
11409 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418 ac_cv_prog_ac_ct_STRIP="strip"
11419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11425 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11428 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11429 if test -n "$ac_ct_STRIP"; then
11430 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11431 echo "${ECHO_T}$ac_ct_STRIP" >&6
11433 echo "$as_me:$LINENO: result: no" >&5
11434 echo "${ECHO_T}no" >&6
11439 STRIP="$ac_cv_prog_STRIP"
11444 old_CFLAGS="$CFLAGS"
11446 # Set sane defaults for various variables
11447 test -z "$AR" && AR=ar
11448 test -z "$AR_FLAGS" && AR_FLAGS=cru
11449 test -z "$AS" && AS=as
11450 test -z "$CC" && CC=cc
11451 test -z "$LTCC" && LTCC=$CC
11452 test -z "$DLLTOOL" && DLLTOOL=dlltool
11453 test -z "$LD" && LD=ld
11454 test -z "$LN_S" && LN_S="ln -s"
11455 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11456 test -z "$NM" && NM=nm
11457 test -z "$SED" && SED=sed
11458 test -z "$OBJDUMP" && OBJDUMP=objdump
11459 test -z "$RANLIB" && RANLIB=:
11460 test -z "$STRIP" && STRIP=:
11461 test -z "$ac_objext" && ac_objext=o
11463 # Determine commands to create old-style static archives.
11464 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11465 old_postinstall_cmds='chmod 644 $oldlib'
11466 old_postuninstall_cmds=
11468 if test -n "$RANLIB"; then
11471 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11474 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11477 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11480 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11482 # Only perform the check for file, if the check method requires it
11483 case $deplibs_check_method in
11485 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11486 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11487 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11496 lt_save_MAGIC_CMD="$MAGIC_CMD"
11497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11498 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11499 for ac_dir in $ac_dummy; do
11501 test -z "$ac_dir" && ac_dir=.
11502 if test -f $ac_dir/${ac_tool_prefix}file; then
11503 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11504 if test -n "$file_magic_test_file"; then
11505 case $deplibs_check_method in
11507 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11510 $EGREP "$file_magic_regex" > /dev/null; then
11515 *** Warning: the command libtool uses to detect shared libraries,
11516 *** $file_magic_cmd, produces output that libtool cannot recognize.
11517 *** The result is that libtool may fail to recognize shared libraries
11518 *** as such. This will affect the creation of libtool libraries that
11519 *** depend on shared libraries, but programs linked with such libtool
11520 *** libraries will work regardless of this problem. Nevertheless, you
11521 *** may want to report the problem to your system manager and/or to
11522 *** bug-libtool@gnu.org
11532 MAGIC_CMD="$lt_save_MAGIC_CMD"
11537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11538 if test -n "$MAGIC_CMD"; then
11539 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11540 echo "${ECHO_T}$MAGIC_CMD" >&6
11542 echo "$as_me:$LINENO: result: no" >&5
11543 echo "${ECHO_T}no" >&6
11546 if test -z "$lt_cv_path_MAGIC_CMD"; then
11547 if test -n "$ac_tool_prefix"; then
11548 echo "$as_me:$LINENO: checking for file" >&5
11549 echo $ECHO_N "checking for file... $ECHO_C" >&6
11550 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11558 lt_save_MAGIC_CMD="$MAGIC_CMD"
11559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11560 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11561 for ac_dir in $ac_dummy; do
11563 test -z "$ac_dir" && ac_dir=.
11564 if test -f $ac_dir/file; then
11565 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11566 if test -n "$file_magic_test_file"; then
11567 case $deplibs_check_method in
11569 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11571 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11572 $EGREP "$file_magic_regex" > /dev/null; then
11577 *** Warning: the command libtool uses to detect shared libraries,
11578 *** $file_magic_cmd, produces output that libtool cannot recognize.
11579 *** The result is that libtool may fail to recognize shared libraries
11580 *** as such. This will affect the creation of libtool libraries that
11581 *** depend on shared libraries, but programs linked with such libtool
11582 *** libraries will work regardless of this problem. Nevertheless, you
11583 *** may want to report the problem to your system manager and/or to
11584 *** bug-libtool@gnu.org
11594 MAGIC_CMD="$lt_save_MAGIC_CMD"
11599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11600 if test -n "$MAGIC_CMD"; then
11601 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11602 echo "${ECHO_T}$MAGIC_CMD" >&6
11604 echo "$as_me:$LINENO: result: no" >&5
11605 echo "${ECHO_T}no" >&6
11618 enable_win32_dll=no
11620 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11621 if test "${enable_libtool_lock+set}" = set; then
11622 enableval="$enable_libtool_lock"
11625 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11628 # Check whether --with-pic or --without-pic was given.
11629 if test "${with_pic+set}" = set; then
11630 withval="$with_pic"
11631 pic_mode="$withval"
11635 test -z "$pic_mode" && pic_mode=default
11637 # Use C for the default configuration in the libtool script
11641 ac_cpp='$CPP $CPPFLAGS'
11642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11647 # Source file extension for C test sources.
11650 # Object file extension for compiled C test sources.
11654 # Code to be used in simple compile tests
11655 lt_simple_compile_test_code="int some_variable = 0;\n"
11657 # Code to be used in simple link tests
11658 lt_simple_link_test_code='int main(){return(0);}\n'
11661 # If no C compiler was specified, use CC.
11664 # Allow CC to be a program name with arguments.
11669 # Check for any special shared library compilation flags.
11672 if test "$GCC" = no; then
11675 lt_prog_cc_shlib='-belf'
11679 if test -n "$lt_prog_cc_shlib"; then
11680 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11681 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11682 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11684 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11685 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11686 lt_cv_prog_cc_can_build_shared=no
11692 # Check to make sure the static flag actually works.
11694 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11695 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11696 if test "${lt_prog_compiler_static_works+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 lt_prog_compiler_static_works=no
11700 save_LDFLAGS="$LDFLAGS"
11701 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11702 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11703 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11704 # The compiler can only warn and ignore the option if not recognized
11705 # So say no if there are warnings
11706 if test -s conftest.err; then
11707 # Append any errors to the config.log.
11708 cat conftest.err 1>&5
11710 lt_prog_compiler_static_works=yes
11714 LDFLAGS="$save_LDFLAGS"
11717 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11718 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11720 if test x"$lt_prog_compiler_static_works" = xyes; then
11723 lt_prog_compiler_static=
11729 lt_prog_compiler_no_builtin_flag=
11731 if test "$GCC" = yes; then
11732 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11735 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11736 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11737 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 lt_cv_prog_compiler_rtti_exceptions=no
11741 ac_outfile=conftest.$ac_objext
11742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11743 lt_compiler_flag="-fno-rtti -fno-exceptions"
11744 # Insert the option either (1) after the last *FLAGS variable, or
11745 # (2) before a word containing "conftest.", or (3) at the end.
11746 # Note that $ac_compile itself does not contain backslashes and begins
11747 # with a dollar sign (not a hyphen), so the echo should work correctly.
11748 # The option is referenced via a variable to avoid confusing sed.
11749 lt_compile=`echo "$ac_compile" | $SED \
11750 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11752 -e 's:$: $lt_compiler_flag:'`
11753 (eval echo "\"\$as_me:11753: $lt_compile\"" >&5)
11754 (eval "$lt_compile" 2>conftest.err)
11756 cat conftest.err >&5
11757 echo "$as_me:11757: \$? = $ac_status" >&5
11758 if (exit $ac_status) && test -s "$ac_outfile"; then
11759 # The compiler can only warn and ignore the option if not recognized
11760 # So say no if there are warnings
11761 if test ! -s conftest.err; then
11762 lt_cv_prog_compiler_rtti_exceptions=yes
11768 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11769 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11771 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11772 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11779 lt_prog_compiler_wl=
11780 lt_prog_compiler_pic=
11781 lt_prog_compiler_static=
11783 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11784 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11786 if test "$GCC" = yes; then
11787 lt_prog_compiler_wl='-Wl,'
11788 lt_prog_compiler_static='-static'
11792 # All AIX code is PIC.
11793 if test "$host_cpu" = ia64; then
11794 # AIX 5 now supports IA64 processor
11795 lt_prog_compiler_static='-Bstatic'
11800 # FIXME: we need at least 68020 code to build shared libraries, but
11801 # adding the `-m68020' flag to GCC prevents building anything better,
11803 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11806 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11807 # PIC is the default for these OSes.
11810 mingw* | pw32* | os2*)
11811 # This hack is so that the source file can tell whether it is being
11812 # built for inclusion in a dll (and should export symbols for example).
11813 lt_prog_compiler_pic='-DDLL_EXPORT'
11816 darwin* | rhapsody*)
11817 # PIC is the default on this platform
11818 # Common symbols not allowed in MH_DYLIB files
11819 lt_prog_compiler_pic='-fno-common'
11823 # Just because we use GCC doesn't mean we suddenly get shared libraries
11824 # on systems that don't support them.
11825 lt_prog_compiler_can_build_shared=no
11830 if test -d /usr/nec; then
11831 lt_prog_compiler_pic=-Kconform_pic
11836 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11837 # not for PA HP-UX.
11838 case "$host_cpu" in
11843 lt_prog_compiler_pic='-fPIC'
11849 lt_prog_compiler_pic='-fPIC'
11853 # PORTME Check for flag to pass linker flags through the system compiler.
11856 lt_prog_compiler_wl='-Wl,'
11857 if test "$host_cpu" = ia64; then
11858 # AIX 5 now supports IA64 processor
11859 lt_prog_compiler_static='-Bstatic'
11861 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11865 # PIC is the default on this platform
11866 # Common symbols not allowed in MH_DYLIB files
11867 case "$cc_basename" in
11869 lt_prog_compiler_pic='-qnocommon'
11870 lt_prog_compiler_wl='-Wl,'
11875 mingw* | pw32* | os2*)
11876 # This hack is so that the source file can tell whether it is being
11877 # built for inclusion in a dll (and should export symbols for example).
11878 lt_prog_compiler_pic='-DDLL_EXPORT'
11881 hpux9* | hpux10* | hpux11*)
11882 lt_prog_compiler_wl='-Wl,'
11883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11884 # not for PA HP-UX.
11885 case "$host_cpu" in
11890 lt_prog_compiler_pic='+Z'
11893 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11894 lt_prog_compiler_static='${wl}-a ${wl}archive'
11897 irix5* | irix6* | nonstopux*)
11898 lt_prog_compiler_wl='-Wl,'
11899 # PIC (with -KPIC) is the default.
11900 lt_prog_compiler_static='-non_shared'
11904 lt_prog_compiler_pic='-KPIC'
11905 lt_prog_compiler_static='-Bstatic'
11911 lt_prog_compiler_wl='-Wl,'
11912 lt_prog_compiler_pic='-KPIC'
11913 lt_prog_compiler_static='-static'
11916 lt_prog_compiler_wl='-Wl,'
11917 # All Alpha code is PIC.
11918 lt_prog_compiler_static='-non_shared'
11923 osf3* | osf4* | osf5*)
11924 lt_prog_compiler_wl='-Wl,'
11925 # All OSF/1 code is PIC.
11926 lt_prog_compiler_static='-non_shared'
11930 lt_prog_compiler_pic='-Kpic'
11931 lt_prog_compiler_static='-dn'
11935 lt_prog_compiler_wl='-Wl,'
11936 lt_prog_compiler_pic='-KPIC'
11937 lt_prog_compiler_static='-Bstatic'
11941 lt_prog_compiler_wl='-Qoption ld '
11942 lt_prog_compiler_pic='-PIC'
11943 lt_prog_compiler_static='-Bstatic'
11946 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11947 lt_prog_compiler_wl='-Wl,'
11948 lt_prog_compiler_pic='-KPIC'
11949 lt_prog_compiler_static='-Bstatic'
11953 if test -d /usr/nec ;then
11954 lt_prog_compiler_pic='-Kconform_pic'
11955 lt_prog_compiler_static='-Bstatic'
11960 lt_prog_compiler_pic='-pic'
11961 lt_prog_compiler_static='-Bstatic'
11965 lt_prog_compiler_can_build_shared=no
11970 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11971 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11974 # Check to make sure the PIC flag actually works.
11976 if test -n "$lt_prog_compiler_pic"; then
11978 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11979 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11980 if test "${lt_prog_compiler_pic_works+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 lt_prog_compiler_pic_works=no
11984 ac_outfile=conftest.$ac_objext
11985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11986 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11987 # Insert the option either (1) after the last *FLAGS variable, or
11988 # (2) before a word containing "conftest.", or (3) at the end.
11989 # Note that $ac_compile itself does not contain backslashes and begins
11990 # with a dollar sign (not a hyphen), so the echo should work correctly.
11991 # The option is referenced via a variable to avoid confusing sed.
11992 lt_compile=`echo "$ac_compile" | $SED \
11993 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11995 -e 's:$: $lt_compiler_flag:'`
11996 (eval echo "\"\$as_me:11996: $lt_compile\"" >&5)
11997 (eval "$lt_compile" 2>conftest.err)
11999 cat conftest.err >&5
12000 echo "$as_me:12000: \$? = $ac_status" >&5
12001 if (exit $ac_status) && test -s "$ac_outfile"; then
12002 # The compiler can only warn and ignore the option if not recognized
12003 # So say no if there are warnings
12004 if test ! -s conftest.err; then
12005 lt_prog_compiler_pic_works=yes
12011 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12012 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12014 if test x"$lt_prog_compiler_pic_works" = xyes; then
12015 case $lt_prog_compiler_pic in
12017 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12020 lt_prog_compiler_pic=
12021 lt_prog_compiler_can_build_shared=no
12026 # For platforms which do not support PIC, -DPIC is meaningless:
12028 lt_prog_compiler_pic=
12031 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12035 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12036 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12037 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 lt_cv_prog_compiler_c_o=no
12041 $rm -r conftest 2>/dev/null
12045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12047 lt_compiler_flag="-o out/conftest2.$ac_objext"
12048 # Insert the option either (1) after the last *FLAGS variable, or
12049 # (2) before a word containing "conftest.", or (3) at the end.
12050 # Note that $ac_compile itself does not contain backslashes and begins
12051 # with a dollar sign (not a hyphen), so the echo should work correctly.
12052 lt_compile=`echo "$ac_compile" | $SED \
12053 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12055 -e 's:$: $lt_compiler_flag:'`
12056 (eval echo "\"\$as_me:12056: $lt_compile\"" >&5)
12057 (eval "$lt_compile" 2>out/conftest.err)
12059 cat out/conftest.err >&5
12060 echo "$as_me:12060: \$? = $ac_status" >&5
12061 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12063 # The compiler can only warn and ignore the option if not recognized
12064 # So say no if there are warnings
12065 if test ! -s out/conftest.err; then
12066 lt_cv_prog_compiler_c_o=yes
12071 # SGI C++ compiler will create directory out/ii_files/ for
12072 # template instantiation
12073 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12074 $rm out/* && rmdir out
12080 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12081 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12084 hard_links="nottested"
12085 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12086 # do not overwrite the value of need_locks provided by the user
12087 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12088 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12093 ln conftest.a conftest.b 2>&5 || hard_links=no
12094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12095 echo "$as_me:$LINENO: result: $hard_links" >&5
12096 echo "${ECHO_T}$hard_links" >&6
12097 if test "$hard_links" = no; then
12098 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12099 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12106 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12107 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12110 allow_undefined_flag=
12111 enable_shared_with_static_runtimes=no
12113 archive_expsym_cmds=
12114 old_archive_From_new_cmds=
12115 old_archive_from_expsyms_cmds=
12116 export_dynamic_flag_spec=
12117 whole_archive_flag_spec=
12118 thread_safe_flag_spec=
12119 hardcode_libdir_flag_spec=
12120 hardcode_libdir_flag_spec_ld=
12121 hardcode_libdir_separator=
12123 hardcode_minus_L=no
12124 hardcode_shlibpath_var=unsupported
12125 link_all_deplibs=unknown
12126 hardcode_automatic=no
12128 module_expsym_cmds=
12129 always_export_symbols=no
12130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12131 # include_expsyms should be a list of space-separated symbols to be *always*
12132 # included in the symbol list
12134 # exclude_expsyms can be an extended regexp of symbols to exclude
12135 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12136 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12137 # as well as any symbol that contains `d'.
12138 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12139 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12140 # platforms (ab)use it in PIC code, but their linkers get confused if
12141 # the symbol is explicitly referenced. Since portable code cannot
12142 # rely on this symbol name, it's probably fine to never include it in
12143 # preloaded symbol tables.
12144 extract_expsyms_cmds=
12147 cygwin* | mingw* | pw32*)
12148 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12149 # When not using gcc, we currently assume that we are using
12150 # Microsoft Visual C++.
12151 if test "$GCC" != yes; then
12161 if test "$with_gnu_ld" = yes; then
12162 # If archive_cmds runs LD, not CC, wlarc should be empty
12165 # See if GNU ld supports shared libraries.
12167 aix3* | aix4* | aix5*)
12168 # On AIX/PPC, the GNU linker is very broken
12169 if test "$host_cpu" != ia64; then
12173 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12174 *** to be unable to reliably create shared libraries on AIX.
12175 *** Therefore, libtool is disabling shared libraries support. If you
12176 *** really care for shared libraries, you may want to modify your PATH
12177 *** so that a non-GNU linker is found, and then restart.
12184 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)'
12185 hardcode_libdir_flag_spec='-L$libdir'
12186 hardcode_minus_L=yes
12188 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12189 # that the semantics of dynamic libraries on AmigaOS, at least up
12190 # to version 4, is to share data among multiple programs linked
12191 # with the same dynamic library. Since this doesn't match the
12192 # behavior of shared libraries on other platforms, we can't use
12198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12199 allow_undefined_flag=unsupported
12200 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12201 # support --undefined. This deserves some investigation. FIXME
12202 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12208 cygwin* | mingw* | pw32*)
12209 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12210 # as there is no search path for DLLs.
12211 hardcode_libdir_flag_spec='-L$libdir'
12212 allow_undefined_flag=unsupported
12213 always_export_symbols=no
12214 enable_shared_with_static_runtimes=yes
12215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12217 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12219 # If the export-symbols file already is a .def file (1st line
12220 # is EXPORTS), use it as is; otherwise, prepend...
12221 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12222 cp $export_symbols $output_objdir/$soname.def;
12224 echo EXPORTS > $output_objdir/$soname.def;
12225 cat $export_symbols >> $output_objdir/$soname.def;
12227 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12235 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12244 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12249 *** create shared libraries on Solaris systems. Therefore, libtool
12250 *** is disabling shared libraries support. We urge you to upgrade GNU
12251 *** binutils to release 2.9.1 or newer. Another option is to modify
12252 *** your PATH or compiler configuration so that the native linker is
12253 *** used, and then restart.
12256 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12265 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12267 hardcode_direct=yes
12268 hardcode_shlibpath_var=no
12272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12273 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12274 archive_cmds="$tmp_archive_cmds"
12275 supports_anon_versioning=no
12276 case `$LD -v 2>/dev/null` in
12277 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12278 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12279 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12280 *\ 2.11.*) ;; # other 2.11 versions
12281 *) supports_anon_versioning=yes ;;
12283 if test $supports_anon_versioning = yes; then
12284 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12285 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12286 $echo "local: *; };" >> $output_objdir/$libname.ver~
12287 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12289 archive_expsym_cmds="$tmp_archive_cmds"
12297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12306 if test "$ld_shlibs" = yes; then
12307 runpath_var=LD_RUN_PATH
12308 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12309 export_dynamic_flag_spec='${wl}--export-dynamic'
12310 # ancient GNU ld didn't support --whole-archive et. al.
12311 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12312 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12314 whole_archive_flag_spec=
12318 # PORTME fill in a description of your system's linker (not GNU ld)
12321 allow_undefined_flag=unsupported
12322 always_export_symbols=yes
12323 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'
12324 # Note: this linker hardcodes the directories in LIBPATH if there
12325 # are no directories specified by -L.
12326 hardcode_minus_L=yes
12327 if test "$GCC" = yes && test -z "$link_static_flag"; then
12328 # Neither direct hardcoding nor static linking is supported with a
12330 hardcode_direct=unsupported
12335 if test "$host_cpu" = ia64; then
12336 # On IA64, the linker does run time linking by default, so we don't
12337 # have to do anything special.
12338 aix_use_runtimelinking=no
12339 exp_sym_flag='-Bexport'
12342 # If we're using GNU nm, then we don't want the "-C" option.
12343 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12344 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12345 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'
12347 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'
12349 aix_use_runtimelinking=no
12351 # Test if we are trying to use run time linking or normal
12352 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12353 # need to do runtime linking.
12354 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12355 for ld_flag in $LDFLAGS; do
12356 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12357 aix_use_runtimelinking=yes
12363 exp_sym_flag='-bexport'
12364 no_entry_flag='-bnoentry'
12367 # When large executables or shared objects are built, AIX ld can
12368 # have problems creating the table of contents. If linking a library
12369 # or program results in "error TOC overflow" add -mminimal-toc to
12370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12374 hardcode_direct=yes
12375 hardcode_libdir_separator=':'
12376 link_all_deplibs=yes
12378 if test "$GCC" = yes; then
12379 case $host_os in aix4.012|aix4.012.*)
12380 # We only want to do this on AIX 4.2 and lower, the check
12381 # below for broken collect2 doesn't work under 4.3+
12382 collect2name=`${CC} -print-prog-name=collect2`
12383 if test -f "$collect2name" && \
12384 strings "$collect2name" | grep resolve_lib_name >/dev/null
12386 # We have reworked collect2
12387 hardcode_direct=yes
12389 # We have old collect2
12390 hardcode_direct=unsupported
12391 # It fails to find uninstalled libraries when the uninstalled
12392 # path is not listed in the libpath. Setting hardcode_minus_L
12393 # to unsupported forces relinking
12394 hardcode_minus_L=yes
12395 hardcode_libdir_flag_spec='-L$libdir'
12396 hardcode_libdir_separator=
12399 shared_flag='-shared'
12402 if test "$host_cpu" = ia64; then
12403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12404 # chokes on -Wl,-G. The following line is correct:
12407 if test "$aix_use_runtimelinking" = yes; then
12408 shared_flag='${wl}-G'
12410 shared_flag='${wl}-bM:SRE'
12415 # It seems that -bexpall does not export symbols beginning with
12416 # underscore (_), so it is better to generate a list of symbols to export.
12417 always_export_symbols=yes
12418 if test "$aix_use_runtimelinking" = yes; then
12419 # Warning - without using the other runtime loading flags (-brtl),
12420 # -berok will link without error, but may produce a broken library.
12421 allow_undefined_flag='-berok'
12422 # Determine the default libpath from the value encoded in an empty executable.
12423 cat >conftest.$ac_ext <<_ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12440 (eval $ac_link) 2>conftest.er1
12442 grep -v '^ *+' conftest.er1 >conftest.err
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag"
12448 || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest$ac_exeext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12463 # Check for a 64-bit object if we didn't find anything.
12464 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; }
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12471 rm -f conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
12473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12475 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12476 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"
12478 if test "$host_cpu" = ia64; then
12479 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12480 allow_undefined_flag="-z nodefs"
12481 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"
12483 # Determine the default libpath from the value encoded in an empty executable.
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12499 rm -f conftest.$ac_objext conftest$ac_exeext
12500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12501 (eval $ac_link) 2>conftest.er1
12503 grep -v '^ *+' conftest.er1 >conftest.err
12505 cat conftest.err >&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
12508 { ac_try='test -z "$ac_c_werror_flag"
12509 || test ! -s conftest.err'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest$ac_exeext'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12524 # Check for a 64-bit object if we didn't find anything.
12525 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; }
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12532 rm -f conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
12534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12536 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12537 # Warning - without using the other run time loading flags,
12538 # -berok will link without error, but may produce a broken library.
12539 no_undefined_flag=' ${wl}-bernotok'
12540 allow_undefined_flag=' ${wl}-berok'
12541 # -bexpall does not export symbols beginning with underscore (_)
12542 always_export_symbols=yes
12543 # Exported symbols can be pulled into shared objects from archives
12544 whole_archive_flag_spec=' '
12545 archive_cmds_need_lc=yes
12546 # This is similar to how AIX traditionally builds it's shared libraries.
12547 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'
12553 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)'
12554 hardcode_libdir_flag_spec='-L$libdir'
12555 hardcode_minus_L=yes
12556 # see comment about different semantics on the GNU ld section
12561 export_dynamic_flag_spec=-rdynamic
12564 cygwin* | mingw* | pw32*)
12565 # When not using gcc, we currently assume that we are using
12566 # Microsoft Visual C++.
12567 # hardcode_libdir_flag_spec is actually meaningless, as there is
12568 # no search path for DLLs.
12569 hardcode_libdir_flag_spec=' '
12570 allow_undefined_flag=unsupported
12571 # Tell ltmain to make .lib files, not .a files.
12573 # Tell ltmain to make .dll files, not .so files.
12575 # FIXME: Setting linknames here is a bad hack.
12576 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12577 # The linker will automatically build a .lib file if we build a DLL.
12578 old_archive_From_new_cmds='true'
12579 # FIXME: Should let the user specify the lib program.
12580 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12581 fix_srcfile_path='`cygpath -w "$srcfile"`'
12582 enable_shared_with_static_runtimes=yes
12585 darwin* | rhapsody*)
12587 rhapsody* | darwin1.[012])
12588 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12591 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12592 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12594 case ${MACOSX_DEPLOYMENT_TARGET} in
12596 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12599 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12605 archive_cmds_need_lc=no
12607 hardcode_automatic=yes
12608 hardcode_shlibpath_var=unsupported
12609 whole_archive_flag_spec=''
12610 link_all_deplibs=yes
12611 if test "$GCC" = yes ; then
12612 output_verbose_link_cmd='echo'
12613 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12614 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12616 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}'
12617 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}'
12619 case "$cc_basename" in
12621 output_verbose_link_cmd='echo'
12622 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12623 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12624 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12625 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}'
12626 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}'
12636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12637 hardcode_libdir_flag_spec='-L$libdir'
12638 hardcode_shlibpath_var=no
12645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12646 # support. Future versions do this automatically, but an explicit c++rt0.o
12647 # does not break anything, and helps significantly (at the cost of a little
12650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12651 hardcode_libdir_flag_spec='-R$libdir'
12652 hardcode_direct=yes
12653 hardcode_shlibpath_var=no
12656 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12659 hardcode_direct=yes
12660 hardcode_minus_L=yes
12661 hardcode_shlibpath_var=no
12664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12665 freebsd* | kfreebsd*-gnu)
12666 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12667 hardcode_libdir_flag_spec='-R$libdir'
12668 hardcode_direct=yes
12669 hardcode_shlibpath_var=no
12673 if test "$GCC" = yes; then
12674 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'
12676 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'
12678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12679 hardcode_libdir_separator=:
12680 hardcode_direct=yes
12682 # hardcode_minus_L: Not really in the search PATH,
12683 # but as the default location of the library.
12684 hardcode_minus_L=yes
12685 export_dynamic_flag_spec='${wl}-E'
12689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12690 case "$host_cpu" in
12692 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12699 case "$host_cpu" in
12701 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12704 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12708 if test "$with_gnu_ld" = no; then
12709 case "$host_cpu" in
12711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12712 hardcode_libdir_flag_spec_ld='+b $libdir'
12713 hardcode_libdir_separator=:
12715 hardcode_shlibpath_var=no
12718 hardcode_libdir_flag_spec='-L$libdir'
12720 hardcode_shlibpath_var=no
12722 # hardcode_minus_L: Not really in the search PATH,
12723 # but as the default location of the library.
12724 hardcode_minus_L=yes
12727 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12728 hardcode_libdir_separator=:
12729 hardcode_direct=yes
12730 export_dynamic_flag_spec='${wl}-E'
12732 # hardcode_minus_L: Not really in the search PATH,
12733 # but as the default location of the library.
12734 hardcode_minus_L=yes
12740 irix5* | irix6* | nonstopux*)
12741 if test "$GCC" = yes; then
12742 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'
12744 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'
12745 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12748 hardcode_libdir_separator=:
12749 link_all_deplibs=yes
12753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12756 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12758 hardcode_libdir_flag_spec='-R$libdir'
12759 hardcode_direct=yes
12760 hardcode_shlibpath_var=no
12764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12765 hardcode_direct=yes
12766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12767 hardcode_libdir_separator=:
12768 hardcode_shlibpath_var=no
12772 hardcode_direct=yes
12773 hardcode_shlibpath_var=no
12774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12776 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12778 export_dynamic_flag_spec='${wl}-E'
12781 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12783 hardcode_libdir_flag_spec='-R$libdir'
12786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12794 hardcode_libdir_flag_spec='-L$libdir'
12795 hardcode_minus_L=yes
12796 allow_undefined_flag=unsupported
12797 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'
12798 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12802 if test "$GCC" = yes; then
12803 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12804 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'
12806 allow_undefined_flag=' -expect_unresolved \*'
12807 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'
12809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12810 hardcode_libdir_separator=:
12813 osf4* | osf5*) # as osf3* with the addition of -msym flag
12814 if test "$GCC" = yes; then
12815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12816 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'
12817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12819 allow_undefined_flag=' -expect_unresolved \*'
12820 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'
12821 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12822 $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'
12824 # Both c and cxx compiler support -rpath directly
12825 hardcode_libdir_flag_spec='-rpath $libdir'
12827 hardcode_libdir_separator=:
12831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12832 hardcode_shlibpath_var=no
12833 export_dynamic_flag_spec='${wl}-Bexport'
12834 runpath_var=LD_RUN_PATH
12835 hardcode_runpath_var=yes
12839 no_undefined_flag=' -z text'
12840 if test "$GCC" = yes; then
12841 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12842 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12843 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12845 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12846 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12847 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12849 hardcode_libdir_flag_spec='-R$libdir'
12850 hardcode_shlibpath_var=no
12852 solaris2.[0-5] | solaris2.[0-5].*) ;;
12853 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12854 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12856 link_all_deplibs=yes
12860 if test "x$host_vendor" = xsequent; then
12861 # Use $CC to link under sequent, because it throws in some extra .o
12862 # files that make .init and .fini sections work.
12863 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12865 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12867 hardcode_libdir_flag_spec='-L$libdir'
12868 hardcode_direct=yes
12869 hardcode_minus_L=yes
12870 hardcode_shlibpath_var=no
12874 case $host_vendor in
12876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12877 hardcode_direct=yes # is this really true???
12880 ## LD is ld it makes a PLAMLIB
12881 ## CC just makes a GrossModule.
12882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12883 reload_cmds='$CC -r -o $output$reload_objs'
12887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12888 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12891 runpath_var='LD_RUN_PATH'
12892 hardcode_shlibpath_var=no
12896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897 hardcode_shlibpath_var=no
12898 export_dynamic_flag_spec='-Bexport'
12902 if test -d /usr/nec; then
12903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12904 hardcode_shlibpath_var=no
12905 runpath_var=LD_RUN_PATH
12906 hardcode_runpath_var=yes
12912 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12913 hardcode_direct=yes
12914 hardcode_minus_L=no
12915 hardcode_shlibpath_var=no
12916 hardcode_runpath_var=yes
12917 runpath_var=LD_RUN_PATH
12920 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12921 no_undefined_flag='${wl}-z ${wl}text'
12922 if test "$GCC" = yes; then
12923 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12925 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12927 runpath_var='LD_RUN_PATH'
12928 hardcode_shlibpath_var=no
12932 no_undefined_flag=' -z text'
12933 # $CC -shared without GNU ld will not create a library from C++
12934 # object files and a static libstdc++, better avoid it by now
12935 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12936 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12937 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12938 hardcode_libdir_flag_spec=
12939 hardcode_shlibpath_var=no
12940 runpath_var='LD_RUN_PATH'
12944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12945 hardcode_libdir_flag_spec='-L$libdir'
12946 hardcode_shlibpath_var=no
12955 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12956 echo "${ECHO_T}$ld_shlibs" >&6
12957 test "$ld_shlibs" = no && can_build_shared=no
12959 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12960 if test "$GCC" = yes; then
12961 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12965 # Do we need to explicitly link libc?
12967 case "x$archive_cmds_need_lc" in
12969 # Assume -lc should be added
12970 archive_cmds_need_lc=yes
12972 if test "$enable_shared" = yes && test "$GCC" = yes; then
12973 case $archive_cmds in
12975 # FIXME: we may have to deal with multi-command sequences.
12978 # Test whether the compiler implicitly links with -lc since on some
12979 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12980 # to ld, don't add -lc before -lgcc.
12981 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12982 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } 2>conftest.err; then
12993 libobjs=conftest.$ac_objext
12995 wl=$lt_prog_compiler_wl
13001 lt_save_allow_undefined_flag=$allow_undefined_flag
13002 allow_undefined_flag=
13003 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13004 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }
13009 archive_cmds_need_lc=no
13011 archive_cmds_need_lc=yes
13013 allow_undefined_flag=$lt_save_allow_undefined_flag
13015 cat conftest.err 1>&5
13018 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13019 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13026 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13028 library_names_spec=
13029 libname_spec='lib$name'
13033 postuninstall_cmds=
13037 shlibpath_overrides_runpath=unknown
13039 dynamic_linker="$host_os ld.so"
13040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13041 if test "$GCC" = yes; then
13042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13043 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13044 # if the path contains ";" then we assume it to be the separator
13045 # otherwise default to the standard path separator (i.e. ":") - it is
13046 # assumed that no part of a normal pathname contains ";" but that should
13047 # okay in the real world where ";" in dirpaths is itself problematic.
13048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13055 need_lib_prefix=unknown
13056 hardcode_into_libs=no
13058 # when you set need_version to no, make sure it does not cause -set_version
13059 # flags to be left without arguments
13060 need_version=unknown
13065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13066 shlibpath_var=LIBPATH
13068 # AIX 3 has no versioning support, so we append a major version to the name.
13069 soname_spec='${libname}${release}${shared_ext}$major'
13076 hardcode_into_libs=yes
13077 if test "$host_cpu" = ia64; then
13078 # AIX 5 supports IA64
13079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13080 shlibpath_var=LD_LIBRARY_PATH
13082 # With GCC up to 2.95.x, collect2 would create an import file
13083 # for dependence libraries. The import file would start with
13084 # the line `#! .'. This would cause the generated library to
13085 # depend on `.', always an invalid library. This was fixed in
13086 # development snapshots of GCC prior to 3.0.
13088 aix4 | aix4.[01] | aix4.[01].*)
13089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13091 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13094 can_build_shared=no
13098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13099 # soname into executable. Probably we can add versioning support to
13100 # collect2, so additional links can be useful in future.
13101 if test "$aix_use_runtimelinking" = yes; then
13102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13103 # instead of lib<name>.a to let people know that these are not
13104 # typical AIX shared libraries.
13105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13107 # We preserve .a as extension for shared libraries through AIX4.2
13108 # and later when we are not doing run time linking.
13109 library_names_spec='${libname}${release}.a $libname.a'
13110 soname_spec='${libname}${release}${shared_ext}$major'
13112 shlibpath_var=LIBPATH
13117 library_names_spec='$libname.ixlibrary $libname.a'
13118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13119 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'
13123 library_names_spec='${libname}${shared_ext}'
13124 dynamic_linker="$host_os ld.so"
13125 shlibpath_var=LIBRARY_PATH
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 soname_spec='${libname}${release}${shared_ext}$major'
13133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13134 shlibpath_var=LD_LIBRARY_PATH
13135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13137 # the default ld.so.conf also contains /usr/contrib/lib and
13138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13139 # libtool to hard-code these into programs
13142 cygwin* | mingw* | pw32*)
13143 version_type=windows
13148 case $GCC,$host_os in
13149 yes,cygwin* | yes,mingw* | yes,pw32*)
13150 library_names_spec='$libname.dll.a'
13151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13152 postinstall_cmds='base_file=`basename \${file}`~
13153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13154 dldir=$destdir/`dirname \$dlpath`~
13155 test -d \$dldir || mkdir -p \$dldir~
13156 $install_prog $dir/$dlname \$dldir/$dlname'
13157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13158 dlpath=$dir/\$dldll~
13160 shlibpath_overrides_runpath=yes
13164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13166 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13169 # MinGW DLLs use traditional 'lib' prefix
13170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13171 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13172 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13173 # It is most probably a Windows format PATH printed by
13174 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13175 # path with ; separators, and with drive letters. We can handle the
13176 # drive letters (cygwin fileutils understands them), so leave them,
13177 # especially as we might pass files found there to a mingw objdump,
13178 # which wouldn't understand a cygwinified path. Ahh.
13179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13185 # pw32 DLLs use 'pw' prefix rather than 'lib'
13186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13195 dynamic_linker='Win32 ld.exe'
13196 # FIXME: first we should search . and the directory the executable is in
13200 darwin* | rhapsody*)
13201 dynamic_linker="$host_os dyld"
13202 version_type=darwin
13205 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13206 soname_spec='${libname}${release}${major}$shared_ext'
13207 shlibpath_overrides_runpath=yes
13208 shlibpath_var=DYLD_LIBRARY_PATH
13209 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13210 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13211 if test "$GCC" = yes; then
13212 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"`
13214 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13216 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13224 soname_spec='${libname}${release}${shared_ext}$major'
13225 shlibpath_var=LD_LIBRARY_PATH
13236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13237 soname_spec='${libname}${release}${shared_ext}$major'
13238 shlibpath_var=LD_LIBRARY_PATH
13239 shlibpath_overrides_runpath=no
13240 hardcode_into_libs=yes
13241 dynamic_linker='GNU ld.so'
13245 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13246 version_type=freebsd-$objformat
13247 case $version_type in
13249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13258 shlibpath_var=LD_LIBRARY_PATH
13261 shlibpath_overrides_runpath=yes
13263 freebsd3.01* | freebsdelf3.01*)
13264 shlibpath_overrides_runpath=yes
13265 hardcode_into_libs=yes
13268 shlibpath_overrides_runpath=no
13269 hardcode_into_libs=yes
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 shlibpath_var=LD_LIBRARY_PATH
13281 hardcode_into_libs=yes
13284 hpux9* | hpux10* | hpux11*)
13285 # Give a soname corresponding to the major version so that dld.sl refuses to
13286 # link against other versions.
13290 case "$host_cpu" in
13293 hardcode_into_libs=yes
13294 dynamic_linker="$host_os dld.so"
13295 shlibpath_var=LD_LIBRARY_PATH
13296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298 soname_spec='${libname}${release}${shared_ext}$major'
13299 if test "X$HPUX_IA64_MODE" = X32; then
13300 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13302 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13308 hardcode_into_libs=yes
13309 dynamic_linker="$host_os dld.sl"
13310 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313 soname_spec='${libname}${release}${shared_ext}$major'
13314 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13319 dynamic_linker="$host_os dld.sl"
13320 shlibpath_var=SHLIB_PATH
13321 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13323 soname_spec='${libname}${release}${shared_ext}$major'
13326 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13327 postinstall_cmds='chmod 555 $lib'
13330 irix5* | irix6* | nonstopux*)
13332 nonstopux*) version_type=nonstopux ;;
13334 if test "$lt_cv_prog_gnu_ld" = yes; then
13342 soname_spec='${libname}${release}${shared_ext}$major'
13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13345 irix5* | nonstopux*)
13346 libsuff= shlibsuff=
13349 case $LD in # libtool.m4 will add one of these switches to LD
13350 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13351 libsuff= shlibsuff= libmagic=32-bit;;
13352 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13353 libsuff=32 shlibsuff=N32 libmagic=N32;;
13354 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13355 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13356 *) libsuff= shlibsuff= libmagic=never-match;;
13360 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13361 shlibpath_overrides_runpath=no
13362 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13363 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13364 hardcode_into_libs=yes
13367 # No shared lib support for Linux oldld, aout, or coff.
13368 linux*oldld* | linux*aout* | linux*coff*)
13372 # This must be Linux ELF.
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378 soname_spec='${libname}${release}${shared_ext}$major'
13379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13380 shlibpath_var=LD_LIBRARY_PATH
13381 shlibpath_overrides_runpath=no
13382 # This implies no fast_install, which is unacceptable.
13383 # Some rework will be needed to allow for fast_install
13384 # before this can be enabled.
13385 hardcode_into_libs=yes
13387 # Append ld.so.conf contents to the search path
13388 if test -f /etc/ld.so.conf; then
13389 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13390 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13393 # We used to test for /lib/ld.so.1 and disable shared libraries on
13394 # powerpc, because MkLinux only supported shared libraries with the
13395 # GNU dynamic linker. Since this was broken with cross compilers,
13396 # most powerpc-linux boxes support dynamic linking these days and
13397 # people can always --disable-shared, the test was removed, and we
13398 # assume the GNU/Linux dynamic linker is in use.
13399 dynamic_linker='GNU/Linux ld.so'
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13407 soname_spec='${libname}${release}${shared_ext}$major'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=no
13410 hardcode_into_libs=yes
13411 dynamic_linker='GNU ld.so'
13418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13421 dynamic_linker='NetBSD (a.out) ld.so'
13423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13424 soname_spec='${libname}${release}${shared_ext}$major'
13425 dynamic_linker='NetBSD ld.elf_so'
13427 shlibpath_var=LD_LIBRARY_PATH
13428 shlibpath_overrides_runpath=yes
13429 hardcode_into_libs=yes
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435 shlibpath_var=LD_LIBRARY_PATH
13436 shlibpath_overrides_runpath=yes
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 soname_spec='${libname}${release}${shared_ext}$major'
13445 shlibpath_var=LD_LIBRARY_PATH
13446 shlibpath_overrides_runpath=yes
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13455 shlibpath_var=LD_LIBRARY_PATH
13456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13458 openbsd2.[89] | openbsd2.[89].*)
13459 shlibpath_overrides_runpath=no
13462 shlibpath_overrides_runpath=yes
13466 shlibpath_overrides_runpath=yes
13471 libname_spec='$name'
13474 library_names_spec='$libname${shared_ext} $libname.a'
13475 dynamic_linker='OS/2 ld.exe'
13476 shlibpath_var=LIBPATH
13479 osf3* | osf4* | osf5*)
13483 soname_spec='${libname}${release}${shared_ext}$major'
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485 shlibpath_var=LD_LIBRARY_PATH
13486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13492 soname_spec='${libname}${release}${shared_ext}$major'
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 shlibpath_var=LD_LIBRARY_PATH
13501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502 soname_spec='${libname}${release}${shared_ext}$major'
13503 shlibpath_var=LD_LIBRARY_PATH
13504 shlibpath_overrides_runpath=yes
13505 hardcode_into_libs=yes
13506 # ldd complains unless libraries are executable
13507 postinstall_cmds='chmod +x $lib'
13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13514 shlibpath_var=LD_LIBRARY_PATH
13515 shlibpath_overrides_runpath=yes
13516 if test "$with_gnu_ld" = yes; then
13522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13525 soname_spec='${libname}${release}${shared_ext}$major'
13526 shlibpath_var=LD_LIBRARY_PATH
13527 case $host_vendor in
13529 shlibpath_overrides_runpath=no
13531 export_dynamic_flag_spec='${wl}-Blargedynsym'
13532 runpath_var=LD_RUN_PATH
13540 shlibpath_overrides_runpath=no
13541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13547 if test -d /usr/nec ;then
13549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13550 soname_spec='$libname${shared_ext}.$major'
13551 shlibpath_var=LD_LIBRARY_PATH
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558 soname_spec='${libname}${release}${shared_ext}$major'
13559 shlibpath_var=LD_LIBRARY_PATH
13566 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13567 echo "${ECHO_T}$dynamic_linker" >&6
13568 test "$dynamic_linker" = no && can_build_shared=no
13570 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13573 if test -n "$hardcode_libdir_flag_spec" || \
13574 test -n "$runpath_var" || \
13575 test "X$hardcode_automatic" = "Xyes" ; then
13577 # We can hardcode non-existant directories.
13578 if test "$hardcode_direct" != no &&
13579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13580 # have to relink, otherwise we might link with an installed library
13581 # when we should be linking with a yet-to-be-installed one
13582 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13583 test "$hardcode_minus_L" != no; then
13584 # Linking always hardcodes the temporary library directory.
13585 hardcode_action=relink
13587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13588 hardcode_action=immediate
13591 # We cannot hardcode anything, or else we can only hardcode existing
13593 hardcode_action=unsupported
13595 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13596 echo "${ECHO_T}$hardcode_action" >&6
13598 if test "$hardcode_action" = relink; then
13599 # Fast installation is not supported
13600 enable_fast_install=no
13601 elif test "$shlibpath_overrides_runpath" = yes ||
13602 test "$enable_shared" = no; then
13603 # Fast installation is not necessary
13604 enable_fast_install=needless
13609 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13612 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13613 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13614 echo "$as_me:$LINENO: result: yes" >&5
13615 echo "${ECHO_T}yes" >&6
13617 # FIXME - insert some real tests, host_os isn't really good enough
13620 if test -n "$STRIP" ; then
13621 striplib="$STRIP -x"
13622 echo "$as_me:$LINENO: result: yes" >&5
13623 echo "${ECHO_T}yes" >&6
13625 echo "$as_me:$LINENO: result: no" >&5
13626 echo "${ECHO_T}no" >&6
13630 echo "$as_me:$LINENO: result: no" >&5
13631 echo "${ECHO_T}no" >&6
13636 if test "x$enable_dlopen" != xyes; then
13637 enable_dlopen=unknown
13638 enable_dlopen_self=unknown
13639 enable_dlopen_self_static=unknown
13646 lt_cv_dlopen="load_add_on"
13648 lt_cv_dlopen_self=yes
13652 lt_cv_dlopen="LoadLibrary"
13657 lt_cv_dlopen="dlopen"
13662 # if libdl is installed we need to link against it
13663 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 ac_check_lib_save_LIBS=$LIBS
13670 cat >conftest.$ac_ext <<_ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13677 /* Override any gcc2 internal prototype to avoid an error. */
13681 /* We use char because int might match the return type of a gcc2
13682 builtin and then its argument prototype would still apply. */
13692 rm -f conftest.$ac_objext conftest$ac_exeext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694 (eval $ac_link) 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag"
13702 || test ! -s conftest.err'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest$ac_exeext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_lib_dl_dlopen=yes
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 ac_cv_lib_dl_dlopen=no
13721 rm -f conftest.err conftest.$ac_objext \
13722 conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13725 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13726 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13727 if test $ac_cv_lib_dl_dlopen = yes; then
13728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13731 lt_cv_dlopen="dyld"
13733 lt_cv_dlopen_self=yes
13740 echo "$as_me:$LINENO: checking for shl_load" >&5
13741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13742 if test "${ac_cv_func_shl_load+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 cat >conftest.$ac_ext <<_ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13753 #define shl_load innocuous_shl_load
13755 /* System header to define __stub macros and hopefully few prototypes,
13756 which can conflict with char shl_load (); below.
13757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13758 <limits.h> exists even on freestanding compilers. */
13761 # include <limits.h>
13763 # include <assert.h>
13768 /* Override any gcc2 internal prototype to avoid an error. */
13773 /* We use char because int might match the return type of a gcc2
13774 builtin and then its argument prototype would still apply. */
13776 /* The GNU C library defines this for functions which it implements
13777 to always fail with ENOSYS. Some functions are actually named
13778 something starting with __ and the normal name is an alias. */
13779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13782 char (*f) () = shl_load;
13791 return f != shl_load;
13796 rm -f conftest.$ac_objext conftest$ac_exeext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13798 (eval $ac_link) 2>conftest.er1
13800 grep -v '^ *+' conftest.er1 >conftest.err
13802 cat conftest.err >&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
13805 { ac_try='test -z "$ac_c_werror_flag"
13806 || test ! -s conftest.err'
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } &&
13812 { ac_try='test -s conftest$ac_exeext'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 ac_cv_func_shl_load=yes
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_cv_func_shl_load=no
13825 rm -f conftest.err conftest.$ac_objext \
13826 conftest$ac_exeext conftest.$ac_ext
13828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13830 if test $ac_cv_func_shl_load = yes; then
13831 lt_cv_dlopen="shl_load"
13833 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13834 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13835 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 ac_check_lib_save_LIBS=$LIBS
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13847 /* Override any gcc2 internal prototype to avoid an error. */
13851 /* We use char because int might match the return type of a gcc2
13852 builtin and then its argument prototype would still apply. */
13862 rm -f conftest.$ac_objext conftest$ac_exeext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13864 (eval $ac_link) 2>conftest.er1
13866 grep -v '^ *+' conftest.er1 >conftest.err
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
13871 { ac_try='test -z "$ac_c_werror_flag"
13872 || test ! -s conftest.err'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest$ac_exeext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_cv_lib_dld_shl_load=yes
13886 echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13889 ac_cv_lib_dld_shl_load=no
13891 rm -f conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13893 LIBS=$ac_check_lib_save_LIBS
13895 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13896 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13897 if test $ac_cv_lib_dld_shl_load = yes; then
13898 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13900 echo "$as_me:$LINENO: checking for dlopen" >&5
13901 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13902 if test "${ac_cv_func_dlopen+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13913 #define dlopen innocuous_dlopen
13915 /* System header to define __stub macros and hopefully few prototypes,
13916 which can conflict with char dlopen (); below.
13917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13918 <limits.h> exists even on freestanding compilers. */
13921 # include <limits.h>
13923 # include <assert.h>
13928 /* Override any gcc2 internal prototype to avoid an error. */
13933 /* We use char because int might match the return type of a gcc2
13934 builtin and then its argument prototype would still apply. */
13936 /* The GNU C library defines this for functions which it implements
13937 to always fail with ENOSYS. Some functions are actually named
13938 something starting with __ and the normal name is an alias. */
13939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13942 char (*f) () = dlopen;
13951 return f != dlopen;
13956 rm -f conftest.$ac_objext conftest$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>conftest.er1
13960 grep -v '^ *+' conftest.er1 >conftest.err
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest$ac_exeext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_cv_func_dlopen=yes
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 ac_cv_func_dlopen=no
13985 rm -f conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13988 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13989 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13990 if test $ac_cv_func_dlopen = yes; then
13991 lt_cv_dlopen="dlopen"
13993 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 ac_check_lib_save_LIBS=$LIBS
14000 cat >conftest.$ac_ext <<_ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14007 /* Override any gcc2 internal prototype to avoid an error. */
14011 /* We use char because int might match the return type of a gcc2
14012 builtin and then its argument prototype would still apply. */
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024 (eval $ac_link) 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag"
14032 || test ! -s conftest.err'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest$ac_exeext'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_cv_lib_dl_dlopen=yes
14046 echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14049 ac_cv_lib_dl_dlopen=no
14051 rm -f conftest.err conftest.$ac_objext \
14052 conftest$ac_exeext conftest.$ac_ext
14053 LIBS=$ac_check_lib_save_LIBS
14055 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14056 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14057 if test $ac_cv_lib_dl_dlopen = yes; then
14058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14060 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14061 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14062 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 ac_check_lib_save_LIBS=$LIBS
14066 LIBS="-lsvld $LIBS"
14067 cat >conftest.$ac_ext <<_ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14074 /* Override any gcc2 internal prototype to avoid an error. */
14078 /* We use char because int might match the return type of a gcc2
14079 builtin and then its argument prototype would still apply. */
14089 rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091 (eval $ac_link) 2>conftest.er1
14093 grep -v '^ *+' conftest.er1 >conftest.err
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -z "$ac_c_werror_flag"
14099 || test ! -s conftest.err'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest$ac_exeext'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
14111 ac_cv_lib_svld_dlopen=yes
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_cv_lib_svld_dlopen=no
14118 rm -f conftest.err conftest.$ac_objext \
14119 conftest$ac_exeext conftest.$ac_ext
14120 LIBS=$ac_check_lib_save_LIBS
14122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14124 if test $ac_cv_lib_svld_dlopen = yes; then
14125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14127 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 ac_check_lib_save_LIBS=$LIBS
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14141 /* Override any gcc2 internal prototype to avoid an error. */
14145 /* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14156 rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14158 (eval $ac_link) 2>conftest.er1
14160 grep -v '^ *+' conftest.er1 >conftest.err
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag"
14166 || test ! -s conftest.err'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest$ac_exeext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_cv_lib_dld_dld_link=yes
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14183 ac_cv_lib_dld_dld_link=no
14185 rm -f conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14187 LIBS=$ac_check_lib_save_LIBS
14189 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14190 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14191 if test $ac_cv_lib_dld_dld_link = yes; then
14192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14213 if test "x$lt_cv_dlopen" != xno; then
14219 case $lt_cv_dlopen in
14221 save_CPPFLAGS="$CPPFLAGS"
14222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14224 save_LDFLAGS="$LDFLAGS"
14225 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14228 LIBS="$lt_cv_dlopen_libs $LIBS"
14230 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14231 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14232 if test "${lt_cv_dlopen_self+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 if test "$cross_compiling" = yes; then :
14236 lt_cv_dlopen_self=cross
14238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14239 lt_status=$lt_dlunknown
14240 cat > conftest.$ac_ext <<EOF
14241 #line 14241 "configure"
14242 #include "confdefs.h"
14251 # define LT_DLGLOBAL RTLD_GLOBAL
14254 # define LT_DLGLOBAL DL_GLOBAL
14256 # define LT_DLGLOBAL 0
14260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14261 find out it does not work in some platform. */
14262 #ifndef LT_DLLAZY_OR_NOW
14264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14267 # define LT_DLLAZY_OR_NOW DL_LAZY
14270 # define LT_DLLAZY_OR_NOW RTLD_NOW
14273 # define LT_DLLAZY_OR_NOW DL_NOW
14275 # define LT_DLLAZY_OR_NOW 0
14283 extern "C" void exit (int);
14286 void fnord() { int i=42;}
14289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14290 int status = $lt_dlunknown;
14294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14295 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14296 /* dlclose (self); */
14302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14303 (eval $ac_link) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14307 (./conftest; exit; ) 2>/dev/null
14309 case x$lt_status in
14310 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14311 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14312 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14315 # compilation failed
14316 lt_cv_dlopen_self=no
14323 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14324 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14326 if test "x$lt_cv_dlopen_self" = xyes; then
14327 LDFLAGS="$LDFLAGS $link_static_flag"
14328 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14329 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14330 if test "${lt_cv_dlopen_self_static+set}" = set; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 if test "$cross_compiling" = yes; then :
14334 lt_cv_dlopen_self_static=cross
14336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14337 lt_status=$lt_dlunknown
14338 cat > conftest.$ac_ext <<EOF
14339 #line 14339 "configure"
14340 #include "confdefs.h"
14349 # define LT_DLGLOBAL RTLD_GLOBAL
14352 # define LT_DLGLOBAL DL_GLOBAL
14354 # define LT_DLGLOBAL 0
14358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14359 find out it does not work in some platform. */
14360 #ifndef LT_DLLAZY_OR_NOW
14362 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14365 # define LT_DLLAZY_OR_NOW DL_LAZY
14368 # define LT_DLLAZY_OR_NOW RTLD_NOW
14371 # define LT_DLLAZY_OR_NOW DL_NOW
14373 # define LT_DLLAZY_OR_NOW 0
14381 extern "C" void exit (int);
14384 void fnord() { int i=42;}
14387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14388 int status = $lt_dlunknown;
14392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14393 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14394 /* dlclose (self); */
14400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14401 (eval $ac_link) 2>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14405 (./conftest; exit; ) 2>/dev/null
14407 case x$lt_status in
14408 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14409 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14410 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14413 # compilation failed
14414 lt_cv_dlopen_self_static=no
14421 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14422 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14425 CPPFLAGS="$save_CPPFLAGS"
14426 LDFLAGS="$save_LDFLAGS"
14431 case $lt_cv_dlopen_self in
14432 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14433 *) enable_dlopen_self=unknown ;;
14436 case $lt_cv_dlopen_self_static in
14437 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14438 *) enable_dlopen_self_static=unknown ;;
14443 # Report which librarie types wil actually be built
14444 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14445 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14446 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14447 echo "${ECHO_T}$can_build_shared" >&6
14449 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14450 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14451 test "$can_build_shared" = "no" && enable_shared=no
14453 # On AIX, shared libraries and static libraries use the same namespace, and
14454 # are all built from PIC.
14457 test "$enable_shared" = yes && enable_static=no
14458 if test -n "$RANLIB"; then
14459 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14460 postinstall_cmds='$RANLIB $lib'
14465 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14466 test "$enable_shared" = yes && enable_static=no
14470 echo "$as_me:$LINENO: result: $enable_shared" >&5
14471 echo "${ECHO_T}$enable_shared" >&6
14473 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14475 # Make sure either enable_shared or enable_static is yes.
14476 test "$enable_shared" = yes || enable_static=yes
14477 echo "$as_me:$LINENO: result: $enable_static" >&5
14478 echo "${ECHO_T}$enable_static" >&6
14480 # The else clause should only fire when bootstrapping the
14481 # libtool distribution, otherwise you forgot to ship ltmain.sh
14482 # with your package, and you will get complaints that there are
14483 # no rules to generate ltmain.sh.
14484 if test -f "$ltmain"; then
14485 # See if we are running on zsh, and set the options which allow our commands through
14486 # without removal of \ escapes.
14487 if test -n "${ZSH_VERSION+set}" ; then
14488 setopt NO_GLOB_SUBST
14490 # Now quote all the things that may contain metacharacters while being
14491 # careful not to overquote the AC_SUBSTed values. We take copies of the
14492 # variables and quote the copies for generation of the libtool script.
14493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14497 deplibs_check_method reload_flag reload_cmds need_locks \
14498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14499 lt_cv_sys_global_symbol_to_c_name_address \
14500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14501 old_postinstall_cmds old_postuninstall_cmds \
14505 lt_prog_compiler_wl \
14506 lt_prog_compiler_pic \
14507 lt_prog_compiler_static \
14508 lt_prog_compiler_no_builtin_flag \
14509 export_dynamic_flag_spec \
14510 thread_safe_flag_spec \
14511 whole_archive_flag_spec \
14512 enable_shared_with_static_runtimes \
14514 old_archive_from_new_cmds \
14519 compiler_lib_search_path \
14521 archive_expsym_cmds \
14523 postuninstall_cmds \
14524 old_archive_from_expsyms_cmds \
14525 allow_undefined_flag \
14526 no_undefined_flag \
14527 export_symbols_cmds \
14528 hardcode_libdir_flag_spec \
14529 hardcode_libdir_flag_spec_ld \
14530 hardcode_libdir_separator \
14531 hardcode_automatic \
14533 module_expsym_cmds \
14534 lt_cv_prog_compiler_c_o \
14536 include_expsyms; do
14539 old_archive_cmds | \
14540 old_archive_from_new_cmds | \
14542 archive_expsym_cmds | \
14544 module_expsym_cmds | \
14545 old_archive_from_expsyms_cmds | \
14546 export_symbols_cmds | \
14547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14548 postinstall_cmds | postuninstall_cmds | \
14549 old_postinstall_cmds | old_postuninstall_cmds | \
14550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14551 # Double-quote double-evaled strings.
14552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14561 *'\$0 --fallback-echo"')
14562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14566 cfgfile="${ofile}T"
14567 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14569 { echo "$as_me:$LINENO: creating $ofile" >&5
14570 echo "$as_me: creating $ofile" >&6;}
14572 cat <<__EOF__ >> "$cfgfile"
14575 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14580 # Free Software Foundation, Inc.
14582 # This file is part of GNU Libtool:
14583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14585 # This program is free software; you can redistribute it and/or modify
14586 # it under the terms of the GNU General Public License as published by
14587 # the Free Software Foundation; either version 2 of the License, or
14588 # (at your option) any later version.
14590 # This program is distributed in the hope that it will be useful, but
14591 # WITHOUT ANY WARRANTY; without even the implied warranty of
14592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14593 # General Public License for more details.
14595 # You should have received a copy of the GNU General Public License
14596 # along with this program; if not, write to the Free Software
14597 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14599 # As a special exception to the GNU General Public License, if you
14600 # distribute this file as part of a program that contains a
14601 # configuration script generated by Autoconf, you may include it under
14602 # the same distribution terms that you use for the rest of that program.
14604 # A sed program that does not truncate output.
14607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14608 Xsed="$SED -e s/^X//"
14610 # The HP-UX ksh and POSIX shell print the target directory to stdout
14611 # if CDPATH is set.
14612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14614 # The names of the tagged configurations supported by this script.
14617 # ### BEGIN LIBTOOL CONFIG
14619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14621 # Shell to use when invoking shell scripts.
14624 # Whether or not to build shared libraries.
14625 build_libtool_libs=$enable_shared
14627 # Whether or not to build static libraries.
14628 build_old_libs=$enable_static
14630 # Whether or not to add -lc for building shared libraries.
14631 build_libtool_need_lc=$archive_cmds_need_lc
14633 # Whether or not to disallow shared libs when runtime libs are static
14634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14636 # Whether or not to optimize for fast installation.
14637 fast_install=$enable_fast_install
14640 host_alias=$host_alias
14643 # An echo program that does not interpret backslashes.
14648 AR_FLAGS=$lt_AR_FLAGS
14653 # A language-specific compiler.
14656 # Is the compiler the GNU C compiler?
14662 # The linker used to build libraries.
14665 # Whether we need hard or soft links.
14668 # A BSD-compatible nm program.
14671 # A symbol stripping program
14674 # Used to examine libraries when file_magic_cmd begins "file"
14675 MAGIC_CMD=$MAGIC_CMD
14677 # Used on cygwin: DLL creation program.
14680 # Used on cygwin: object dumper.
14683 # Used on cygwin: assembler.
14686 # The name of the directory that contains temporary libtool files.
14689 # How to create reloadable object files.
14690 reload_flag=$lt_reload_flag
14691 reload_cmds=$lt_reload_cmds
14693 # How to pass a linker flag through the compiler.
14694 wl=$lt_lt_prog_compiler_wl
14696 # Object file suffix (normally "o").
14697 objext="$ac_objext"
14699 # Old archive suffix (normally "a").
14702 # Shared library suffix (normally ".so").
14703 shrext_cmds='$shrext_cmds'
14705 # Executable file suffix (normally "").
14708 # Additional compiler flags for building library objects.
14709 pic_flag=$lt_lt_prog_compiler_pic
14712 # What is the maximum length of a command?
14713 max_cmd_len=$lt_cv_sys_max_cmd_len
14715 # Does compiler simultaneously support -c and -o options?
14716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14718 # Must we lock files when doing compilation ?
14719 need_locks=$lt_need_locks
14721 # Do we need the lib prefix for modules?
14722 need_lib_prefix=$need_lib_prefix
14724 # Do we need a version for libraries?
14725 need_version=$need_version
14727 # Whether dlopen is supported.
14728 dlopen_support=$enable_dlopen
14730 # Whether dlopen of programs is supported.
14731 dlopen_self=$enable_dlopen_self
14733 # Whether dlopen of statically linked programs is supported.
14734 dlopen_self_static=$enable_dlopen_self_static
14736 # Compiler flag to prevent dynamic linking.
14737 link_static_flag=$lt_lt_prog_compiler_static
14739 # Compiler flag to turn off builtin functions.
14740 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14742 # Compiler flag to allow reflexive dlopens.
14743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14745 # Compiler flag to generate shared objects directly from archives.
14746 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14748 # Compiler flag to generate thread-safe objects.
14749 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14751 # Library versioning type.
14752 version_type=$version_type
14754 # Format of library name prefix.
14755 libname_spec=$lt_libname_spec
14757 # List of archive names. First name is the real one, the rest are links.
14758 # The last name is the one that the linker finds with -lNAME.
14759 library_names_spec=$lt_library_names_spec
14761 # The coded name of the library, if different from the real name.
14762 soname_spec=$lt_soname_spec
14764 # Commands used to build and install an old-style archive.
14766 old_archive_cmds=$lt_old_archive_cmds
14767 old_postinstall_cmds=$lt_old_postinstall_cmds
14768 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14770 # Create an old-style archive from a shared archive.
14771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14773 # Create a temporary old-style archive to link instead of a shared archive.
14774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14776 # Commands used to build and install a shared archive.
14777 archive_cmds=$lt_archive_cmds
14778 archive_expsym_cmds=$lt_archive_expsym_cmds
14779 postinstall_cmds=$lt_postinstall_cmds
14780 postuninstall_cmds=$lt_postuninstall_cmds
14782 # Commands used to build a loadable module (assumed same as above if empty)
14783 module_cmds=$lt_module_cmds
14784 module_expsym_cmds=$lt_module_expsym_cmds
14786 # Commands to strip libraries.
14787 old_striplib=$lt_old_striplib
14788 striplib=$lt_striplib
14790 # Dependencies to place before the objects being linked to create a
14792 predep_objects=$lt_predep_objects
14794 # Dependencies to place after the objects being linked to create a
14796 postdep_objects=$lt_postdep_objects
14798 # Dependencies to place before the objects being linked to create a
14800 predeps=$lt_predeps
14802 # Dependencies to place after the objects being linked to create a
14804 postdeps=$lt_postdeps
14806 # The library search path used internally by the compiler when linking
14807 # a shared library.
14808 compiler_lib_search_path=$lt_compiler_lib_search_path
14810 # Method to check whether dependent libraries are shared objects.
14811 deplibs_check_method=$lt_deplibs_check_method
14813 # Command to use when deplibs_check_method == file_magic.
14814 file_magic_cmd=$lt_file_magic_cmd
14816 # Flag that allows shared libraries with undefined symbols to be built.
14817 allow_undefined_flag=$lt_allow_undefined_flag
14819 # Flag that forces no undefined symbols.
14820 no_undefined_flag=$lt_no_undefined_flag
14822 # Commands used to finish a libtool library installation in a directory.
14823 finish_cmds=$lt_finish_cmds
14825 # Same as above, but a single script fragment to be evaled but not shown.
14826 finish_eval=$lt_finish_eval
14828 # Take the output of nm and produce a listing of raw symbols and C names.
14829 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14831 # Transform the output of nm in a proper C declaration
14832 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14834 # Transform the output of nm in a C name address pair
14835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14837 # This is the shared library runtime path variable.
14838 runpath_var=$runpath_var
14840 # This is the shared library path variable.
14841 shlibpath_var=$shlibpath_var
14843 # Is shlibpath searched before the hard-coded library search path?
14844 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14846 # How to hardcode a shared library path into an executable.
14847 hardcode_action=$hardcode_action
14849 # Whether we should hardcode library paths into libraries.
14850 hardcode_into_libs=$hardcode_into_libs
14852 # Flag to hardcode \$libdir into a binary during linking.
14853 # This must work even if \$libdir does not exist.
14854 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14856 # If ld is used when linking, flag to hardcode \$libdir into
14857 # a binary during linking. This must work even if \$libdir does
14859 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14861 # Whether we need a single -rpath flag with a separated argument.
14862 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14864 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14865 # resulting binary.
14866 hardcode_direct=$hardcode_direct
14868 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14869 # resulting binary.
14870 hardcode_minus_L=$hardcode_minus_L
14872 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14873 # the resulting binary.
14874 hardcode_shlibpath_var=$hardcode_shlibpath_var
14876 # Set to yes if building a shared library automatically hardcodes DIR into the library
14877 # and all subsequent libraries and executables linked against it.
14878 hardcode_automatic=$hardcode_automatic
14880 # Variables whose values should be saved in libtool wrapper scripts and
14881 # restored at relink time.
14882 variables_saved_for_relink="$variables_saved_for_relink"
14884 # Whether libtool must link a program against all its dependency libraries.
14885 link_all_deplibs=$link_all_deplibs
14887 # Compile-time system search path for libraries
14888 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14890 # Run-time system search path for libraries
14891 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14893 # Fix the shell variable \$srcfile for the compiler.
14894 fix_srcfile_path="$fix_srcfile_path"
14896 # Set to yes if exported symbols are required.
14897 always_export_symbols=$always_export_symbols
14899 # The commands to list exported symbols.
14900 export_symbols_cmds=$lt_export_symbols_cmds
14902 # The commands to extract the exported symbol list from a shared archive.
14903 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14905 # Symbols that should not be listed in the preloaded symbols.
14906 exclude_expsyms=$lt_exclude_expsyms
14908 # Symbols that must always be exported.
14909 include_expsyms=$lt_include_expsyms
14911 # ### END LIBTOOL CONFIG
14918 cat <<\EOF >> "$cfgfile"
14920 # AIX sometimes has problems with the GCC collect2 program. For some
14921 # reason, if we set the COLLECT_NAMES environment variable, the problems
14922 # vanish in a puff of smoke.
14923 if test "X${COLLECT_NAMES+set}" != Xset; then
14925 export COLLECT_NAMES
14931 # We use sed instead of cat because bash on DJGPP gets confused if
14932 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14933 # text mode, it properly converts lines to CR/LF. This bash problem
14934 # is reportedly fixed, but why not run on old versions too?
14935 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14937 mv -f "$cfgfile" "$ofile" || \
14938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14942 # If there is no Makefile yet, we rely on a make rule to execute
14943 # `config.status --recheck' to rerun these tests and create the
14944 # libtool script then.
14945 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14946 if test -f "$ltmain_in"; then
14947 test -f Makefile && make "$ltmain"
14953 ac_cpp='$CPP $CPPFLAGS'
14954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14961 # Check whether --with-tags or --without-tags was given.
14962 if test "${with_tags+set}" = set; then
14963 withval="$with_tags"
14964 tagnames="$withval"
14967 if test -f "$ltmain" && test -n "$tagnames"; then
14968 if test ! -f "${ofile}"; then
14969 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14970 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14973 if test -z "$LTCC"; then
14974 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14975 if test -z "$LTCC"; then
14976 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14977 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14980 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14984 # Extract list of available tagged configurations in $ofile.
14985 # Note that this assumes the entire list is on one line.
14986 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14989 for tagname in $tagnames; do
14991 # Check whether tagname contains only valid characters
14992 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14994 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14995 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14996 { (exit 1); exit 1; }; }
15000 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15002 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15003 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15004 { (exit 1); exit 1; }; }
15007 # Update the list of available tags.
15008 if test -n "$tagname"; then
15009 echo appending configuration tag "$tagname" to $ofile
15013 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15014 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15015 (test "X$CXX" != "Xg++"))) ; then
15017 ac_cpp='$CXXCPP $CPPFLAGS'
15018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15025 archive_cmds_need_lc_CXX=no
15026 allow_undefined_flag_CXX=
15027 always_export_symbols_CXX=no
15028 archive_expsym_cmds_CXX=
15029 export_dynamic_flag_spec_CXX=
15030 hardcode_direct_CXX=no
15031 hardcode_libdir_flag_spec_CXX=
15032 hardcode_libdir_flag_spec_ld_CXX=
15033 hardcode_libdir_separator_CXX=
15034 hardcode_minus_L_CXX=no
15035 hardcode_automatic_CXX=no
15037 module_expsym_cmds_CXX=
15038 link_all_deplibs_CXX=unknown
15039 old_archive_cmds_CXX=$old_archive_cmds
15040 no_undefined_flag_CXX=
15041 whole_archive_flag_spec_CXX=
15042 enable_shared_with_static_runtimes_CXX=no
15044 # Dependencies to place before and after the object being linked:
15045 predep_objects_CXX=
15046 postdep_objects_CXX=
15049 compiler_lib_search_path_CXX=
15051 # Source file extension for C++ test sources.
15054 # Object file extension for compiled C++ test sources.
15058 # Code to be used in simple compile tests
15059 lt_simple_compile_test_code="int some_variable = 0;\n"
15061 # Code to be used in simple link tests
15062 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15066 # If no C compiler was specified, use CC.
15069 # Allow CC to be a program name with arguments.
15073 # Allow CC to be a program name with arguments.
15078 lt_save_with_gnu_ld=$with_gnu_ld
15079 lt_save_path_LD=$lt_cv_path_LD
15080 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15081 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15083 unset lt_cv_prog_gnu_ld
15085 if test -n "${lt_cv_path_LDCXX+set}"; then
15086 lt_cv_path_LD=$lt_cv_path_LDCXX
15088 unset lt_cv_path_LD
15090 test -z "${LDCXX+set}" || LD=$LDCXX
15094 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15096 # We don't want -fno-exception wen compiling C++ code, so set the
15097 # no_builtin_flag separately
15098 if test "$GXX" = yes; then
15099 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15101 lt_prog_compiler_no_builtin_flag_CXX=
15104 if test "$GXX" = yes; then
15105 # Set up default GNU C++ configuration
15108 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15109 if test "${with_gnu_ld+set}" = set; then
15110 withval="$with_gnu_ld"
15111 test "$withval" = no || with_gnu_ld=yes
15116 if test "$GCC" = yes; then
15117 # Check if gcc -print-prog-name=ld gives a path.
15118 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15119 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15122 # gcc leaves a trailing carriage return which upsets mingw
15123 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15125 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15128 # Accept absolute paths.
15130 re_direlt='/[^/][^/]*/\.\./'
15131 # Canonicalize the pathname of ld
15132 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15133 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15134 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15136 test -z "$LD" && LD="$ac_prog"
15139 # If it fails, then pretend we aren't using GCC.
15143 # If it is relative, then search for the first ld in PATH.
15144 with_gnu_ld=unknown
15147 elif test "$with_gnu_ld" = yes; then
15148 echo "$as_me:$LINENO: checking for GNU ld" >&5
15149 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15151 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15152 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15154 if test "${lt_cv_path_LD+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 if test -z "$LD"; then
15158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15159 for ac_dir in $PATH; do
15161 test -z "$ac_dir" && ac_dir=.
15162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15163 lt_cv_path_LD="$ac_dir/$ac_prog"
15164 # Check to see if the program is GNU ld. I'd rather use --version,
15165 # but apparently some GNU ld's only accept -v.
15166 # Break only if it was the GNU/non-GNU ld that we prefer.
15167 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15168 *GNU* | *'with BFD'*)
15169 test "$with_gnu_ld" != no && break
15172 test "$with_gnu_ld" != yes && break
15179 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15183 LD="$lt_cv_path_LD"
15184 if test -n "$LD"; then
15185 echo "$as_me:$LINENO: result: $LD" >&5
15186 echo "${ECHO_T}$LD" >&6
15188 echo "$as_me:$LINENO: result: no" >&5
15189 echo "${ECHO_T}no" >&6
15191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15193 { (exit 1); exit 1; }; }
15194 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15200 case `$LD -v 2>&1 </dev/null` in
15201 *GNU* | *'with BFD'*)
15202 lt_cv_prog_gnu_ld=yes
15205 lt_cv_prog_gnu_ld=no
15209 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15211 with_gnu_ld=$lt_cv_prog_gnu_ld
15215 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15216 # archiving commands below assume that GNU ld is being used.
15217 if test "$with_gnu_ld" = yes; then
15218 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15219 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'
15221 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15224 # If archive_cmds runs LD, not CC, wlarc should be empty
15225 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15226 # investigate it a little bit more. (MM)
15229 # ancient GNU ld didn't support --whole-archive et. al.
15230 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15231 grep 'no-whole-archive' > /dev/null; then
15232 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15234 whole_archive_flag_spec_CXX=
15240 # A generic and very simple default shared library creation
15241 # command for GNU C++ for the case where it uses the native
15242 # linker, instead of GNU ld. If possible, this setting should
15243 # overridden to take advantage of the native linker features on
15244 # the platform it is being used on.
15245 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15248 # Commands to make compiler produce verbose output that lists
15249 # what "hidden" libraries, object files and flags are used when
15250 # linking a shared library.
15251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15259 # PORTME: fill in a description of your system's C++ link characteristics
15260 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15261 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15265 # FIXME: insert proper C++ library support
15269 if test "$host_cpu" = ia64; then
15270 # On IA64, the linker does run time linking by default, so we don't
15271 # have to do anything special.
15272 aix_use_runtimelinking=no
15273 exp_sym_flag='-Bexport'
15276 aix_use_runtimelinking=no
15278 # Test if we are trying to use run time linking or normal
15279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15280 # need to do runtime linking.
15281 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15282 for ld_flag in $LDFLAGS; do
15285 aix_use_runtimelinking=yes
15292 exp_sym_flag='-bexport'
15293 no_entry_flag='-bnoentry'
15296 # When large executables or shared objects are built, AIX ld can
15297 # have problems creating the table of contents. If linking a library
15298 # or program results in "error TOC overflow" add -mminimal-toc to
15299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15302 archive_cmds_CXX=''
15303 hardcode_direct_CXX=yes
15304 hardcode_libdir_separator_CXX=':'
15305 link_all_deplibs_CXX=yes
15307 if test "$GXX" = yes; then
15308 case $host_os in aix4.012|aix4.012.*)
15309 # We only want to do this on AIX 4.2 and lower, the check
15310 # below for broken collect2 doesn't work under 4.3+
15311 collect2name=`${CC} -print-prog-name=collect2`
15312 if test -f "$collect2name" && \
15313 strings "$collect2name" | grep resolve_lib_name >/dev/null
15315 # We have reworked collect2
15316 hardcode_direct_CXX=yes
15318 # We have old collect2
15319 hardcode_direct_CXX=unsupported
15320 # It fails to find uninstalled libraries when the uninstalled
15321 # path is not listed in the libpath. Setting hardcode_minus_L
15322 # to unsupported forces relinking
15323 hardcode_minus_L_CXX=yes
15324 hardcode_libdir_flag_spec_CXX='-L$libdir'
15325 hardcode_libdir_separator_CXX=
15328 shared_flag='-shared'
15331 if test "$host_cpu" = ia64; then
15332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15333 # chokes on -Wl,-G. The following line is correct:
15336 if test "$aix_use_runtimelinking" = yes; then
15337 shared_flag='${wl}-G'
15339 shared_flag='${wl}-bM:SRE'
15344 # It seems that -bexpall does not export symbols beginning with
15345 # underscore (_), so it is better to generate a list of symbols to export.
15346 always_export_symbols_CXX=yes
15347 if test "$aix_use_runtimelinking" = yes; then
15348 # Warning - without using the other runtime loading flags (-brtl),
15349 # -berok will link without error, but may produce a broken library.
15350 allow_undefined_flag_CXX='-berok'
15351 # Determine the default libpath from the value encoded in an empty executable.
15352 cat >conftest.$ac_ext <<_ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15367 rm -f conftest.$ac_objext conftest$ac_exeext
15368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15369 (eval $ac_link) 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
15376 { ac_try='test -z "$ac_cxx_werror_flag"
15377 || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest$ac_exeext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15392 # Check for a 64-bit object if we didn't find anything.
15393 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; }
15396 echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15400 rm -f conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15404 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15406 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"
15408 if test "$host_cpu" = ia64; then
15409 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15410 allow_undefined_flag_CXX="-z nodefs"
15411 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"
15413 # Determine the default libpath from the value encoded in an empty executable.
15414 cat >conftest.$ac_ext <<_ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431 (eval $ac_link) 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -z "$ac_cxx_werror_flag"
15439 || test ! -s conftest.err'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; } &&
15445 { ac_try='test -s conftest$ac_exeext'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15454 # Check for a 64-bit object if we didn't find anything.
15455 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; }
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15462 rm -f conftest.err conftest.$ac_objext \
15463 conftest$ac_exeext conftest.$ac_ext
15464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15466 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15467 # Warning - without using the other run time loading flags,
15468 # -berok will link without error, but may produce a broken library.
15469 no_undefined_flag_CXX=' ${wl}-bernotok'
15470 allow_undefined_flag_CXX=' ${wl}-berok'
15471 # -bexpall does not export symbols beginning with underscore (_)
15472 always_export_symbols_CXX=yes
15473 # Exported symbols can be pulled into shared objects from archives
15474 whole_archive_flag_spec_CXX=' '
15475 archive_cmds_need_lc_CXX=yes
15476 # This is similar to how AIX traditionally builds it's shared libraries.
15477 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'
15482 case $cc_basename in
15484 # FIXME: insert proper C++ library support
15491 cygwin* | mingw* | pw32*)
15492 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15493 # as there is no search path for DLLs.
15494 hardcode_libdir_flag_spec_CXX='-L$libdir'
15495 allow_undefined_flag_CXX=unsupported
15496 always_export_symbols_CXX=no
15497 enable_shared_with_static_runtimes_CXX=yes
15499 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15500 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'
15501 # If the export-symbols file already is a .def file (1st line
15502 # is EXPORTS), use it as is; otherwise, prepend...
15503 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15504 cp $export_symbols $output_objdir/$soname.def;
15506 echo EXPORTS > $output_objdir/$soname.def;
15507 cat $export_symbols >> $output_objdir/$soname.def;
15509 $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'
15514 darwin* | rhapsody*)
15516 rhapsody* | darwin1.[012])
15517 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15520 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15521 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15523 case ${MACOSX_DEPLOYMENT_TARGET} in
15525 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15528 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15534 archive_cmds_need_lc_CXX=no
15535 hardcode_direct_CXX=no
15536 hardcode_automatic_CXX=yes
15537 hardcode_shlibpath_var_CXX=unsupported
15538 whole_archive_flag_spec_CXX=''
15539 link_all_deplibs_CXX=yes
15541 if test "$GXX" = yes ; then
15542 lt_int_apple_cc_single_mod=no
15543 output_verbose_link_cmd='echo'
15544 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15545 lt_int_apple_cc_single_mod=yes
15547 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15548 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15550 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'
15552 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15554 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15555 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}'
15557 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}'
15559 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}'
15561 case "$cc_basename" in
15563 output_verbose_link_cmd='echo'
15564 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'
15565 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15566 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15567 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}'
15568 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}'
15578 case $cc_basename in
15580 # FIXME: insert proper C++ library support
15584 # Green Hills C++ Compiler
15585 # FIXME: insert proper C++ library support
15589 # FIXME: insert proper C++ library support
15595 # C++ shared libraries reported to be fairly broken before switch to ELF
15599 archive_cmds_need_lc_CXX=no
15601 freebsd* | kfreebsd*-gnu)
15602 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15609 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15610 hardcode_libdir_separator_CXX=:
15611 export_dynamic_flag_spec_CXX='${wl}-E'
15612 hardcode_direct_CXX=yes
15613 hardcode_minus_L_CXX=yes # Not in the search PATH,
15614 # but as the default
15615 # location of the library.
15617 case $cc_basename in
15619 # FIXME: insert proper C++ library support
15623 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'
15624 # Commands to make compiler produce verbose output that lists
15625 # what "hidden" libraries, object files and flags are used when
15626 # linking a shared library.
15628 # There doesn't appear to be a way to prevent this compiler from
15629 # explicitly linking system object files so we need to strip them
15630 # from the output so that they don't get included in the library
15632 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'
15635 if test "$GXX" = yes; then
15636 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'
15638 # FIXME: insert proper C++ library support
15645 if test $with_gnu_ld = no; then
15646 case "$host_cpu" in
15648 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15649 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15650 hardcode_libdir_separator_CXX=:
15653 hardcode_libdir_flag_spec_CXX='-L$libdir'
15656 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15657 hardcode_libdir_separator_CXX=:
15658 export_dynamic_flag_spec_CXX='${wl}-E'
15662 case "$host_cpu" in
15664 hardcode_direct_CXX=no
15665 hardcode_shlibpath_var_CXX=no
15668 hardcode_direct_CXX=no
15669 hardcode_shlibpath_var_CXX=no
15670 hardcode_minus_L_CXX=yes # Not in the search PATH,
15671 # but as the default
15672 # location of the library.
15675 hardcode_direct_CXX=yes
15676 hardcode_minus_L_CXX=yes # Not in the search PATH,
15677 # but as the default
15678 # location of the library.
15682 case $cc_basename in
15684 # FIXME: insert proper C++ library support
15688 case "$host_cpu" in
15690 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15693 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15696 # Commands to make compiler produce verbose output that lists
15697 # what "hidden" libraries, object files and flags are used when
15698 # linking a shared library.
15700 # There doesn't appear to be a way to prevent this compiler from
15701 # explicitly linking system object files so we need to strip them
15702 # from the output so that they don't get included in the library
15704 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'
15707 if test "$GXX" = yes; then
15708 if test $with_gnu_ld = no; then
15709 case "$host_cpu" in
15711 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15714 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'
15719 # FIXME: insert proper C++ library support
15726 case $cc_basename in
15729 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'
15731 # Archives containing C++ object files must be created using
15732 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15733 # necessary to make sure instantiated templates are included
15735 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15738 if test "$GXX" = yes; then
15739 if test "$with_gnu_ld" = no; then
15740 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'
15742 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'
15745 link_all_deplibs_CXX=yes
15748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15749 hardcode_libdir_separator_CXX=:
15752 case $cc_basename in
15754 # Kuck and Associates, Inc. (KAI) C++ Compiler
15756 # KCC will only create a shared library if the output file
15757 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15758 # to its proper name (with version) after linking.
15759 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'
15760 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'
15761 # Commands to make compiler produce verbose output that lists
15762 # what "hidden" libraries, object files and flags are used when
15763 # linking a shared library.
15765 # There doesn't appear to be a way to prevent this compiler from
15766 # explicitly linking system object files so we need to strip them
15767 # from the output so that they don't get included in the library
15769 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'
15771 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15774 # Archives containing C++ object files must be created using
15775 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15776 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15781 # version 8.0 and above of icpc choke on multiply defined symbols
15782 # if we add $predep_objects and $postdep_objects, however 7.1 and
15783 # earlier do not add the objects themselves.
15784 case `$CC -V 2>&1` in
15786 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15787 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'
15789 *) # Version 8.0 or newer
15790 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15791 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15794 archive_cmds_need_lc_CXX=no
15795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15797 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15802 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'
15804 runpath_var=LD_RUN_PATH
15805 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15806 hardcode_libdir_separator_CXX=:
15808 # Commands to make compiler produce verbose output that lists
15809 # what "hidden" libraries, object files and flags are used when
15810 # linking a shared library.
15812 # There doesn't appear to be a way to prevent this compiler from
15813 # explicitly linking system object files so we need to strip them
15814 # from the output so that they don't get included in the library
15816 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'
15821 # FIXME: insert proper C++ library support
15825 # FIXME: insert proper C++ library support
15829 case $cc_basename in
15831 # FIXME: insert proper C++ library support
15835 # FIXME: insert proper C++ library support
15841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15842 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15844 hardcode_libdir_flag_spec_CXX='-R$libdir'
15845 hardcode_direct_CXX=yes
15846 hardcode_shlibpath_var_CXX=no
15848 # Workaround some broken pre-1.5 toolchains
15849 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15852 # C++ shared libraries are fairly broken
15856 hardcode_direct_CXX=yes
15857 hardcode_shlibpath_var_CXX=no
15858 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15861 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15862 export_dynamic_flag_spec_CXX='${wl}-E'
15863 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15865 output_verbose_link_cmd='echo'
15868 case $cc_basename in
15870 # Kuck and Associates, Inc. (KAI) C++ Compiler
15872 # KCC will only create a shared library if the output file
15873 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15874 # to its proper name (with version) after linking.
15875 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15877 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15878 hardcode_libdir_separator_CXX=:
15880 # Archives containing C++ object files must be created using
15881 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15882 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15886 # Rational C++ 2.4.1
15887 # FIXME: insert proper C++ library support
15891 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15892 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'
15894 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15895 hardcode_libdir_separator_CXX=:
15897 # Commands to make compiler produce verbose output that lists
15898 # what "hidden" libraries, object files and flags are used when
15899 # linking a shared library.
15901 # There doesn't appear to be a way to prevent this compiler from
15902 # explicitly linking system object files so we need to strip them
15903 # from the output so that they don't get included in the library
15905 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'
15908 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15909 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15910 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'
15912 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15913 hardcode_libdir_separator_CXX=:
15915 # Commands to make compiler produce verbose output that lists
15916 # what "hidden" libraries, object files and flags are used when
15917 # linking a shared library.
15918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15921 # FIXME: insert proper C++ library support
15928 case $cc_basename in
15930 # Kuck and Associates, Inc. (KAI) C++ Compiler
15932 # KCC will only create a shared library if the output file
15933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15934 # to its proper name (with version) after linking.
15935 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'
15937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15938 hardcode_libdir_separator_CXX=:
15940 # Archives containing C++ object files must be created using
15941 # the KAI C++ compiler.
15942 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15945 # Rational C++ 2.4.1
15946 # FIXME: insert proper C++ library support
15950 allow_undefined_flag_CXX=' -expect_unresolved \*'
15951 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'
15952 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15953 echo "-hidden">> $lib.exp~
15954 $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~
15957 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15958 hardcode_libdir_separator_CXX=:
15960 # Commands to make compiler produce verbose output that lists
15961 # what "hidden" libraries, object files and flags are used when
15962 # linking a shared library.
15964 # There doesn't appear to be a way to prevent this compiler from
15965 # explicitly linking system object files so we need to strip them
15966 # from the output so that they don't get included in the library
15968 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'
15971 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15972 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15973 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'
15975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15976 hardcode_libdir_separator_CXX=:
15978 # Commands to make compiler produce verbose output that lists
15979 # what "hidden" libraries, object files and flags are used when
15980 # linking a shared library.
15981 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15984 # FIXME: insert proper C++ library support
15991 # FIXME: insert proper C++ library support
15995 archive_cmds_need_lc_CXX=no
15996 case $cc_basename in
15998 # FIXME: insert proper C++ library support
16002 # FIXME: insert proper C++ library support
16008 case $cc_basename in
16011 # FIXME: insert proper C++ library support
16016 # FIXME: insert proper C++ library support
16020 # FIXME: insert proper C++ library support
16026 case $cc_basename in
16028 # Sun C++ 4.2, 5.x and Centerline C++
16029 no_undefined_flag_CXX=' -zdefs'
16030 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16031 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16032 $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'
16034 hardcode_libdir_flag_spec_CXX='-R$libdir'
16035 hardcode_shlibpath_var_CXX=no
16037 solaris2.0-5 | solaris2.0-5.*) ;;
16039 # The C++ compiler is used as linker so we must use $wl
16040 # flag to pass the commands to the underlying system
16042 # Supported since Solaris 2.6 (maybe 2.5.1?)
16043 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16046 link_all_deplibs_CXX=yes
16048 # Commands to make compiler produce verbose output that lists
16049 # what "hidden" libraries, object files and flags are used when
16050 # linking a shared library.
16052 # There doesn't appear to be a way to prevent this compiler from
16053 # explicitly linking system object files so we need to strip them
16054 # from the output so that they don't get included in the library
16056 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'
16058 # Archives containing C++ object files must be created using
16059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16060 # necessary to make sure instantiated templates are included
16062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16065 # Green Hills C++ Compiler
16066 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16068 # The C++ compiler must be used to create the archive.
16069 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16072 # GNU C++ compiler with Solaris linker
16073 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16074 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16075 if $CC --version | grep -v '^2\.7' > /dev/null; then
16076 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16077 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16078 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16080 # Commands to make compiler produce verbose output that lists
16081 # what "hidden" libraries, object files and flags are used when
16082 # linking a shared library.
16083 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16085 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16087 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16088 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16089 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16091 # Commands to make compiler produce verbose output that lists
16092 # what "hidden" libraries, object files and flags are used when
16093 # linking a shared library.
16094 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16097 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16102 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16103 archive_cmds_need_lc_CXX=no
16106 case $cc_basename in
16108 # NonStop-UX NCC 3.20
16109 # FIXME: insert proper C++ library support
16113 # FIXME: insert proper C++ library support
16119 # FIXME: insert proper C++ library support
16123 # FIXME: insert proper C++ library support
16127 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16128 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16129 test "$ld_shlibs_CXX" = no && can_build_shared=no
16135 cat > conftest.$ac_ext <<EOF
16139 Foo (void) { a = 0; }
16145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16146 (eval $ac_compile) 2>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; then
16150 # Parse the compiler output and extract the necessary
16151 # objects, libraries and library flags.
16153 # Sentinel used to keep track of whether or not we are before
16154 # the conftest object file.
16155 pre_test_object_deps_done=no
16157 # The `*' in the case matches for architectures that use `case' in
16158 # $output_verbose_cmd can trigger glob expansion during the loop
16159 # eval without this substitution.
16160 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16162 for p in `eval $output_verbose_link_cmd`; do
16166 # Some compilers place space between "-{L,R}" and the path.
16167 # Remove the space.
16168 if test $p = "-L" \
16169 || test $p = "-R"; then
16176 if test "$pre_test_object_deps_done" = no; then
16179 # Internal compiler library paths should come after those
16180 # provided the user. The postdeps already come after the
16181 # user supplied libs so there is no need to process them.
16182 if test -z "$compiler_lib_search_path_CXX"; then
16183 compiler_lib_search_path_CXX="${prev}${p}"
16185 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16188 # The "-l" case would never come before the object being
16189 # linked, so don't bother handling this case.
16192 if test -z "$postdeps_CXX"; then
16193 postdeps_CXX="${prev}${p}"
16195 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16201 # This assumes that the test object file only shows up
16202 # once in the compiler output.
16203 if test "$p" = "conftest.$objext"; then
16204 pre_test_object_deps_done=yes
16208 if test "$pre_test_object_deps_done" = no; then
16209 if test -z "$predep_objects_CXX"; then
16210 predep_objects_CXX="$p"
16212 predep_objects_CXX="$predep_objects_CXX $p"
16215 if test -z "$postdep_objects_CXX"; then
16216 postdep_objects_CXX="$p"
16218 postdep_objects_CXX="$postdep_objects_CXX $p"
16223 *) ;; # Ignore the rest.
16231 echo "libtool.m4: error: problem compiling CXX test program"
16234 $rm -f confest.$objext
16236 case " $postdeps_CXX " in
16237 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16240 lt_prog_compiler_wl_CXX=
16241 lt_prog_compiler_pic_CXX=
16242 lt_prog_compiler_static_CXX=
16244 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16245 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16247 # C++ specific cases for pic, static, wl, etc.
16248 if test "$GXX" = yes; then
16249 lt_prog_compiler_wl_CXX='-Wl,'
16250 lt_prog_compiler_static_CXX='-static'
16254 # All AIX code is PIC.
16255 if test "$host_cpu" = ia64; then
16256 # AIX 5 now supports IA64 processor
16257 lt_prog_compiler_static_CXX='-Bstatic'
16261 # FIXME: we need at least 68020 code to build shared libraries, but
16262 # adding the `-m68020' flag to GCC prevents building anything better,
16264 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16266 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16267 # PIC is the default for these OSes.
16269 mingw* | os2* | pw32*)
16270 # This hack is so that the source file can tell whether it is being
16271 # built for inclusion in a dll (and should export symbols for example).
16272 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16274 darwin* | rhapsody*)
16275 # PIC is the default on this platform
16276 # Common symbols not allowed in MH_DYLIB files
16277 lt_prog_compiler_pic_CXX='-fno-common'
16280 # DJGPP does not support shared libraries at all
16281 lt_prog_compiler_pic_CXX=
16284 if test -d /usr/nec; then
16285 lt_prog_compiler_pic_CXX=-Kconform_pic
16289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16290 # not for PA HP-UX.
16291 case "$host_cpu" in
16295 lt_prog_compiler_pic_CXX='-fPIC'
16300 lt_prog_compiler_pic_CXX='-fPIC'
16306 # All AIX code is PIC.
16307 if test "$host_cpu" = ia64; then
16308 # AIX 5 now supports IA64 processor
16309 lt_prog_compiler_static_CXX='-Bstatic'
16311 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16315 case $cc_basename in
16317 # Green Hills C++ Compiler
16318 # _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"
16323 # PIC is the default on this platform
16324 # Common symbols not allowed in MH_DYLIB files
16325 case "$cc_basename" in
16327 lt_prog_compiler_pic_CXX='-qnocommon'
16328 lt_prog_compiler_wl_CXX='-Wl,'
16333 case $cc_basename in
16335 lt_prog_compiler_pic_CXX='-KPIC'
16338 # Green Hills C++ Compiler
16339 lt_prog_compiler_pic_CXX='-pic'
16345 freebsd* | kfreebsd*-gnu)
16346 # FreeBSD uses GNU C++
16348 hpux9* | hpux10* | hpux11*)
16349 case $cc_basename in
16351 lt_prog_compiler_wl_CXX='-Wl,'
16352 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16353 if test "$host_cpu" != ia64; then
16354 lt_prog_compiler_pic_CXX='+Z'
16358 lt_prog_compiler_wl_CXX='-Wl,'
16359 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16360 case "$host_cpu" in
16365 lt_prog_compiler_pic_CXX='+Z'
16373 irix5* | irix6* | nonstopux*)
16374 case $cc_basename in
16376 lt_prog_compiler_wl_CXX='-Wl,'
16377 lt_prog_compiler_static_CXX='-non_shared'
16378 # CC pic flag -KPIC is the default.
16385 case $cc_basename in
16388 lt_prog_compiler_wl_CXX='--backend -Wl,'
16389 lt_prog_compiler_pic_CXX='-fPIC'
16393 lt_prog_compiler_wl_CXX='-Wl,'
16394 lt_prog_compiler_pic_CXX='-KPIC'
16395 lt_prog_compiler_static_CXX='-static'
16399 # Make sure the PIC flag is empty. It appears that all Alpha
16400 # Linux and Compaq Tru64 Unix objects are PIC.
16401 lt_prog_compiler_pic_CXX=
16402 lt_prog_compiler_static_CXX='-non_shared'
16413 case $cc_basename in
16415 lt_prog_compiler_pic_CXX='-W c,exportall'
16423 osf3* | osf4* | osf5*)
16424 case $cc_basename in
16426 lt_prog_compiler_wl_CXX='--backend -Wl,'
16429 # Rational C++ 2.4.1
16430 lt_prog_compiler_pic_CXX='-pic'
16433 # Digital/Compaq C++
16434 lt_prog_compiler_wl_CXX='-Wl,'
16435 # Make sure the PIC flag is empty. It appears that all Alpha
16436 # Linux and Compaq Tru64 Unix objects are PIC.
16437 lt_prog_compiler_pic_CXX=
16438 lt_prog_compiler_static_CXX='-non_shared'
16447 case $cc_basename in
16449 lt_prog_compiler_pic_CXX='-fPIC'
16456 case $cc_basename in
16458 # Sun C++ 4.2, 5.x and Centerline C++
16459 lt_prog_compiler_pic_CXX='-KPIC'
16460 lt_prog_compiler_static_CXX='-Bstatic'
16461 lt_prog_compiler_wl_CXX='-Qoption ld '
16464 # Green Hills C++ Compiler
16465 lt_prog_compiler_pic_CXX='-PIC'
16472 case $cc_basename in
16475 lt_prog_compiler_pic_CXX='-pic'
16476 lt_prog_compiler_static_CXX='-Bstatic'
16480 lt_prog_compiler_pic_CXX='-pic'
16487 case $cc_basename in
16489 # NonStop-UX NCC 3.20
16490 lt_prog_compiler_pic_CXX='-KPIC'
16501 lt_prog_compiler_can_build_shared_CXX=no
16506 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16507 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16510 # Check to make sure the PIC flag actually works.
16512 if test -n "$lt_prog_compiler_pic_CXX"; then
16514 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16515 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16516 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16519 lt_prog_compiler_pic_works_CXX=no
16520 ac_outfile=conftest.$ac_objext
16521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16522 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16523 # Insert the option either (1) after the last *FLAGS variable, or
16524 # (2) before a word containing "conftest.", or (3) at the end.
16525 # Note that $ac_compile itself does not contain backslashes and begins
16526 # with a dollar sign (not a hyphen), so the echo should work correctly.
16527 # The option is referenced via a variable to avoid confusing sed.
16528 lt_compile=`echo "$ac_compile" | $SED \
16529 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16531 -e 's:$: $lt_compiler_flag:'`
16532 (eval echo "\"\$as_me:16532: $lt_compile\"" >&5)
16533 (eval "$lt_compile" 2>conftest.err)
16535 cat conftest.err >&5
16536 echo "$as_me:16536: \$? = $ac_status" >&5
16537 if (exit $ac_status) && test -s "$ac_outfile"; then
16538 # The compiler can only warn and ignore the option if not recognized
16539 # So say no if there are warnings
16540 if test ! -s conftest.err; then
16541 lt_prog_compiler_pic_works_CXX=yes
16547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16548 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16550 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16551 case $lt_prog_compiler_pic_CXX in
16553 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16556 lt_prog_compiler_pic_CXX=
16557 lt_prog_compiler_can_build_shared_CXX=no
16562 # For platforms which do not support PIC, -DPIC is meaningless:
16564 lt_prog_compiler_pic_CXX=
16567 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16571 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16572 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16573 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16576 lt_cv_prog_compiler_c_o_CXX=no
16577 $rm -r conftest 2>/dev/null
16581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16583 lt_compiler_flag="-o out/conftest2.$ac_objext"
16584 # Insert the option either (1) after the last *FLAGS variable, or
16585 # (2) before a word containing "conftest.", or (3) at the end.
16586 # Note that $ac_compile itself does not contain backslashes and begins
16587 # with a dollar sign (not a hyphen), so the echo should work correctly.
16588 lt_compile=`echo "$ac_compile" | $SED \
16589 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16591 -e 's:$: $lt_compiler_flag:'`
16592 (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
16593 (eval "$lt_compile" 2>out/conftest.err)
16595 cat out/conftest.err >&5
16596 echo "$as_me:16596: \$? = $ac_status" >&5
16597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16599 # The compiler can only warn and ignore the option if not recognized
16600 # So say no if there are warnings
16601 if test ! -s out/conftest.err; then
16602 lt_cv_prog_compiler_c_o_CXX=yes
16607 # SGI C++ compiler will create directory out/ii_files/ for
16608 # template instantiation
16609 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16610 $rm out/* && rmdir out
16616 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16617 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16620 hard_links="nottested"
16621 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16622 # do not overwrite the value of need_locks provided by the user
16623 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16624 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16629 ln conftest.a conftest.b 2>&5 || hard_links=no
16630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16631 echo "$as_me:$LINENO: result: $hard_links" >&5
16632 echo "${ECHO_T}$hard_links" >&6
16633 if test "$hard_links" = no; then
16634 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16635 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16642 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16643 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16645 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16648 # If we're using GNU nm, then we don't want the "-C" option.
16649 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16650 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16651 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'
16653 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'
16657 export_symbols_cmds_CXX="$ltdll_cmds"
16660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16667 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16668 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16669 test "$ld_shlibs_CXX" = no && can_build_shared=no
16671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16672 if test "$GCC" = yes; then
16673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16677 # Do we need to explicitly link libc?
16679 case "x$archive_cmds_need_lc_CXX" in
16681 # Assume -lc should be added
16682 archive_cmds_need_lc_CXX=yes
16684 if test "$enable_shared" = yes && test "$GCC" = yes; then
16685 case $archive_cmds_CXX in
16687 # FIXME: we may have to deal with multi-command sequences.
16690 # Test whether the compiler implicitly links with -lc since on some
16691 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16692 # to ld, don't add -lc before -lgcc.
16693 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16694 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16696 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699 (eval $ac_compile) 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } 2>conftest.err; then
16705 libobjs=conftest.$ac_objext
16707 wl=$lt_prog_compiler_wl_CXX
16713 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16714 allow_undefined_flag_CXX=
16715 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16716 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }
16721 archive_cmds_need_lc_CXX=no
16723 archive_cmds_need_lc_CXX=yes
16725 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16727 cat conftest.err 1>&5
16730 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16731 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16738 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16739 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16740 library_names_spec=
16741 libname_spec='lib$name'
16745 postuninstall_cmds=
16749 shlibpath_overrides_runpath=unknown
16751 dynamic_linker="$host_os ld.so"
16752 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16753 if test "$GCC" = yes; then
16754 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16755 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16756 # if the path contains ";" then we assume it to be the separator
16757 # otherwise default to the standard path separator (i.e. ":") - it is
16758 # assumed that no part of a normal pathname contains ";" but that should
16759 # okay in the real world where ";" in dirpaths is itself problematic.
16760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16765 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16767 need_lib_prefix=unknown
16768 hardcode_into_libs=no
16770 # when you set need_version to no, make sure it does not cause -set_version
16771 # flags to be left without arguments
16772 need_version=unknown
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16778 shlibpath_var=LIBPATH
16780 # AIX 3 has no versioning support, so we append a major version to the name.
16781 soname_spec='${libname}${release}${shared_ext}$major'
16788 hardcode_into_libs=yes
16789 if test "$host_cpu" = ia64; then
16790 # AIX 5 supports IA64
16791 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16792 shlibpath_var=LD_LIBRARY_PATH
16794 # With GCC up to 2.95.x, collect2 would create an import file
16795 # for dependence libraries. The import file would start with
16796 # the line `#! .'. This would cause the generated library to
16797 # depend on `.', always an invalid library. This was fixed in
16798 # development snapshots of GCC prior to 3.0.
16800 aix4 | aix4.[01] | aix4.[01].*)
16801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16803 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16806 can_build_shared=no
16810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16811 # soname into executable. Probably we can add versioning support to
16812 # collect2, so additional links can be useful in future.
16813 if test "$aix_use_runtimelinking" = yes; then
16814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16815 # instead of lib<name>.a to let people know that these are not
16816 # typical AIX shared libraries.
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819 # We preserve .a as extension for shared libraries through AIX4.2
16820 # and later when we are not doing run time linking.
16821 library_names_spec='${libname}${release}.a $libname.a'
16822 soname_spec='${libname}${release}${shared_ext}$major'
16824 shlibpath_var=LIBPATH
16829 library_names_spec='$libname.ixlibrary $libname.a'
16830 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16831 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'
16835 library_names_spec='${libname}${shared_ext}'
16836 dynamic_linker="$host_os ld.so"
16837 shlibpath_var=LIBRARY_PATH
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 soname_spec='${libname}${release}${shared_ext}$major'
16845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16846 shlibpath_var=LD_LIBRARY_PATH
16847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16849 # the default ld.so.conf also contains /usr/contrib/lib and
16850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16851 # libtool to hard-code these into programs
16854 cygwin* | mingw* | pw32*)
16855 version_type=windows
16860 case $GCC,$host_os in
16861 yes,cygwin* | yes,mingw* | yes,pw32*)
16862 library_names_spec='$libname.dll.a'
16863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16864 postinstall_cmds='base_file=`basename \${file}`~
16865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16866 dldir=$destdir/`dirname \$dlpath`~
16867 test -d \$dldir || mkdir -p \$dldir~
16868 $install_prog $dir/$dlname \$dldir/$dlname'
16869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16870 dlpath=$dir/\$dldll~
16872 shlibpath_overrides_runpath=yes
16876 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16877 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16878 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16881 # MinGW DLLs use traditional 'lib' prefix
16882 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16883 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16884 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16885 # It is most probably a Windows format PATH printed by
16886 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16887 # path with ; separators, and with drive letters. We can handle the
16888 # drive letters (cygwin fileutils understands them), so leave them,
16889 # especially as we might pass files found there to a mingw objdump,
16890 # which wouldn't understand a cygwinified path. Ahh.
16891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16897 # pw32 DLLs use 'pw' prefix rather than 'lib'
16898 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16904 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16907 dynamic_linker='Win32 ld.exe'
16908 # FIXME: first we should search . and the directory the executable is in
16912 darwin* | rhapsody*)
16913 dynamic_linker="$host_os dyld"
16914 version_type=darwin
16917 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16918 soname_spec='${libname}${release}${major}$shared_ext'
16919 shlibpath_overrides_runpath=yes
16920 shlibpath_var=DYLD_LIBRARY_PATH
16921 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16922 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16923 if test "$GCC" = yes; then
16924 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"`
16926 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16928 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16936 soname_spec='${libname}${release}${shared_ext}$major'
16937 shlibpath_var=LD_LIBRARY_PATH
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16950 shlibpath_var=LD_LIBRARY_PATH
16951 shlibpath_overrides_runpath=no
16952 hardcode_into_libs=yes
16953 dynamic_linker='GNU ld.so'
16957 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16958 version_type=freebsd-$objformat
16959 case $version_type in
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16970 shlibpath_var=LD_LIBRARY_PATH
16973 shlibpath_overrides_runpath=yes
16975 freebsd3.01* | freebsdelf3.01*)
16976 shlibpath_overrides_runpath=yes
16977 hardcode_into_libs=yes
16980 shlibpath_overrides_runpath=no
16981 hardcode_into_libs=yes
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16991 soname_spec='${libname}${release}${shared_ext}$major'
16992 shlibpath_var=LD_LIBRARY_PATH
16993 hardcode_into_libs=yes
16996 hpux9* | hpux10* | hpux11*)
16997 # Give a soname corresponding to the major version so that dld.sl refuses to
16998 # link against other versions.
17002 case "$host_cpu" in
17005 hardcode_into_libs=yes
17006 dynamic_linker="$host_os dld.so"
17007 shlibpath_var=LD_LIBRARY_PATH
17008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 if test "X$HPUX_IA64_MODE" = X32; then
17012 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17014 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17020 hardcode_into_libs=yes
17021 dynamic_linker="$host_os dld.sl"
17022 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025 soname_spec='${libname}${release}${shared_ext}$major'
17026 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17031 dynamic_linker="$host_os dld.sl"
17032 shlibpath_var=SHLIB_PATH
17033 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035 soname_spec='${libname}${release}${shared_ext}$major'
17038 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17039 postinstall_cmds='chmod 555 $lib'
17042 irix5* | irix6* | nonstopux*)
17044 nonstopux*) version_type=nonstopux ;;
17046 if test "$lt_cv_prog_gnu_ld" = yes; then
17054 soname_spec='${libname}${release}${shared_ext}$major'
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17057 irix5* | nonstopux*)
17058 libsuff= shlibsuff=
17061 case $LD in # libtool.m4 will add one of these switches to LD
17062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17063 libsuff= shlibsuff= libmagic=32-bit;;
17064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17065 libsuff=32 shlibsuff=N32 libmagic=N32;;
17066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17068 *) libsuff= shlibsuff= libmagic=never-match;;
17072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17073 shlibpath_overrides_runpath=no
17074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17076 hardcode_into_libs=yes
17079 # No shared lib support for Linux oldld, aout, or coff.
17080 linux*oldld* | linux*aout* | linux*coff*)
17084 # This must be Linux ELF.
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17092 shlibpath_var=LD_LIBRARY_PATH
17093 shlibpath_overrides_runpath=no
17094 # This implies no fast_install, which is unacceptable.
17095 # Some rework will be needed to allow for fast_install
17096 # before this can be enabled.
17097 hardcode_into_libs=yes
17099 # Append ld.so.conf contents to the search path
17100 if test -f /etc/ld.so.conf; then
17101 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17102 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17105 # We used to test for /lib/ld.so.1 and disable shared libraries on
17106 # powerpc, because MkLinux only supported shared libraries with the
17107 # GNU dynamic linker. Since this was broken with cross compilers,
17108 # most powerpc-linux boxes support dynamic linking these days and
17109 # people can always --disable-shared, the test was removed, and we
17110 # assume the GNU/Linux dynamic linker is in use.
17111 dynamic_linker='GNU/Linux ld.so'
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 shlibpath_var=LD_LIBRARY_PATH
17121 shlibpath_overrides_runpath=no
17122 hardcode_into_libs=yes
17123 dynamic_linker='GNU ld.so'
17130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17133 dynamic_linker='NetBSD (a.out) ld.so'
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17136 soname_spec='${libname}${release}${shared_ext}$major'
17137 dynamic_linker='NetBSD ld.elf_so'
17139 shlibpath_var=LD_LIBRARY_PATH
17140 shlibpath_overrides_runpath=yes
17141 hardcode_into_libs=yes
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=yes
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=yes
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17170 openbsd2.[89] | openbsd2.[89].*)
17171 shlibpath_overrides_runpath=no
17174 shlibpath_overrides_runpath=yes
17178 shlibpath_overrides_runpath=yes
17183 libname_spec='$name'
17186 library_names_spec='$libname${shared_ext} $libname.a'
17187 dynamic_linker='OS/2 ld.exe'
17188 shlibpath_var=LIBPATH
17191 osf3* | osf4* | osf5*)
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197 shlibpath_var=LD_LIBRARY_PATH
17198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17204 soname_spec='${libname}${release}${shared_ext}$major'
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 shlibpath_var=LD_LIBRARY_PATH
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214 soname_spec='${libname}${release}${shared_ext}$major'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath=yes
17217 hardcode_into_libs=yes
17218 # ldd complains unless libraries are executable
17219 postinstall_cmds='chmod +x $lib'
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 shlibpath_overrides_runpath=yes
17228 if test "$with_gnu_ld" = yes; then
17234 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 case $host_vendor in
17241 shlibpath_overrides_runpath=no
17243 export_dynamic_flag_spec='${wl}-Blargedynsym'
17244 runpath_var=LD_RUN_PATH
17252 shlibpath_overrides_runpath=no
17253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17259 if test -d /usr/nec ;then
17261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17262 soname_spec='$libname${shared_ext}.$major'
17263 shlibpath_var=LD_LIBRARY_PATH
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 shlibpath_var=LD_LIBRARY_PATH
17278 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17279 echo "${ECHO_T}$dynamic_linker" >&6
17280 test "$dynamic_linker" = no && can_build_shared=no
17282 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17283 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17284 hardcode_action_CXX=
17285 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17286 test -n "$runpath_var_CXX" || \
17287 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17289 # We can hardcode non-existant directories.
17290 if test "$hardcode_direct_CXX" != no &&
17291 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17292 # have to relink, otherwise we might link with an installed library
17293 # when we should be linking with a yet-to-be-installed one
17294 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17295 test "$hardcode_minus_L_CXX" != no; then
17296 # Linking always hardcodes the temporary library directory.
17297 hardcode_action_CXX=relink
17299 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17300 hardcode_action_CXX=immediate
17303 # We cannot hardcode anything, or else we can only hardcode existing
17305 hardcode_action_CXX=unsupported
17307 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17308 echo "${ECHO_T}$hardcode_action_CXX" >&6
17310 if test "$hardcode_action_CXX" = relink; then
17311 # Fast installation is not supported
17312 enable_fast_install=no
17313 elif test "$shlibpath_overrides_runpath" = yes ||
17314 test "$enable_shared" = no; then
17315 # Fast installation is not necessary
17316 enable_fast_install=needless
17321 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17322 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17323 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17324 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17325 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17326 echo "$as_me:$LINENO: result: yes" >&5
17327 echo "${ECHO_T}yes" >&6
17329 # FIXME - insert some real tests, host_os isn't really good enough
17332 if test -n "$STRIP" ; then
17333 striplib="$STRIP -x"
17334 echo "$as_me:$LINENO: result: yes" >&5
17335 echo "${ECHO_T}yes" >&6
17337 echo "$as_me:$LINENO: result: no" >&5
17338 echo "${ECHO_T}no" >&6
17342 echo "$as_me:$LINENO: result: no" >&5
17343 echo "${ECHO_T}no" >&6
17348 if test "x$enable_dlopen" != xyes; then
17349 enable_dlopen=unknown
17350 enable_dlopen_self=unknown
17351 enable_dlopen_self_static=unknown
17358 lt_cv_dlopen="load_add_on"
17360 lt_cv_dlopen_self=yes
17364 lt_cv_dlopen="LoadLibrary"
17369 lt_cv_dlopen="dlopen"
17374 # if libdl is installed we need to link against it
17375 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17376 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17377 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 ac_check_lib_save_LIBS=$LIBS
17382 cat >conftest.$ac_ext <<_ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17389 /* Override any gcc2 internal prototype to avoid an error. */
17393 /* We use char because int might match the return type of a gcc2
17394 builtin and then its argument prototype would still apply. */
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17406 (eval $ac_link) 2>conftest.er1
17408 grep -v '^ *+' conftest.er1 >conftest.err
17410 cat conftest.err >&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
17413 { ac_try='test -z "$ac_cxx_werror_flag"
17414 || test ! -s conftest.err'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; } &&
17420 { ac_try='test -s conftest$ac_exeext'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_cv_lib_dl_dlopen=yes
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 ac_cv_lib_dl_dlopen=no
17433 rm -f conftest.err conftest.$ac_objext \
17434 conftest$ac_exeext conftest.$ac_ext
17435 LIBS=$ac_check_lib_save_LIBS
17437 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17438 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17439 if test $ac_cv_lib_dl_dlopen = yes; then
17440 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17443 lt_cv_dlopen="dyld"
17445 lt_cv_dlopen_self=yes
17452 echo "$as_me:$LINENO: checking for shl_load" >&5
17453 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17454 if test "${ac_cv_func_shl_load+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17457 cat >conftest.$ac_ext <<_ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17465 #define shl_load innocuous_shl_load
17467 /* System header to define __stub macros and hopefully few prototypes,
17468 which can conflict with char shl_load (); below.
17469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17470 <limits.h> exists even on freestanding compilers. */
17473 # include <limits.h>
17475 # include <assert.h>
17480 /* Override any gcc2 internal prototype to avoid an error. */
17485 /* We use char because int might match the return type of a gcc2
17486 builtin and then its argument prototype would still apply. */
17488 /* The GNU C library defines this for functions which it implements
17489 to always fail with ENOSYS. Some functions are actually named
17490 something starting with __ and the normal name is an alias. */
17491 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17494 char (*f) () = shl_load;
17503 return f != shl_load;
17508 rm -f conftest.$ac_objext conftest$ac_exeext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17510 (eval $ac_link) 2>conftest.er1
17512 grep -v '^ *+' conftest.er1 >conftest.err
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -z "$ac_cxx_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest$ac_exeext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 ac_cv_func_shl_load=yes
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 ac_cv_func_shl_load=no
17537 rm -f conftest.err conftest.$ac_objext \
17538 conftest$ac_exeext conftest.$ac_ext
17540 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17541 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17542 if test $ac_cv_func_shl_load = yes; then
17543 lt_cv_dlopen="shl_load"
17545 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17546 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17547 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 ac_check_lib_save_LIBS=$LIBS
17552 cat >conftest.$ac_ext <<_ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17559 /* Override any gcc2 internal prototype to avoid an error. */
17563 /* We use char because int might match the return type of a gcc2
17564 builtin and then its argument prototype would still apply. */
17574 rm -f conftest.$ac_objext conftest$ac_exeext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17576 (eval $ac_link) 2>conftest.er1
17578 grep -v '^ *+' conftest.er1 >conftest.err
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
17583 { ac_try='test -z "$ac_cxx_werror_flag"
17584 || test ! -s conftest.err'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest$ac_exeext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_cv_lib_dld_shl_load=yes
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ac_cv_lib_dld_shl_load=no
17603 rm -f conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17605 LIBS=$ac_check_lib_save_LIBS
17607 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17608 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17609 if test $ac_cv_lib_dld_shl_load = yes; then
17610 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17612 echo "$as_me:$LINENO: checking for dlopen" >&5
17613 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17614 if test "${ac_cv_func_dlopen+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 cat >conftest.$ac_ext <<_ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17623 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17625 #define dlopen innocuous_dlopen
17627 /* System header to define __stub macros and hopefully few prototypes,
17628 which can conflict with char dlopen (); below.
17629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630 <limits.h> exists even on freestanding compilers. */
17633 # include <limits.h>
17635 # include <assert.h>
17640 /* Override any gcc2 internal prototype to avoid an error. */
17645 /* We use char because int might match the return type of a gcc2
17646 builtin and then its argument prototype would still apply. */
17648 /* The GNU C library defines this for functions which it implements
17649 to always fail with ENOSYS. Some functions are actually named
17650 something starting with __ and the normal name is an alias. */
17651 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17654 char (*f) () = dlopen;
17663 return f != dlopen;
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670 (eval $ac_link) 2>conftest.er1
17672 grep -v '^ *+' conftest.er1 >conftest.err
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_cxx_werror_flag"
17678 || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest$ac_exeext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_func_dlopen=yes
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_func_dlopen=no
17697 rm -f conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
17700 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17701 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17702 if test $ac_cv_func_dlopen = yes; then
17703 lt_cv_dlopen="dlopen"
17705 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17706 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17707 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 ac_check_lib_save_LIBS=$LIBS
17712 cat >conftest.$ac_ext <<_ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h. */
17719 /* Override any gcc2 internal prototype to avoid an error. */
17723 /* We use char because int might match the return type of a gcc2
17724 builtin and then its argument prototype would still apply. */
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17736 (eval $ac_link) 2>conftest.er1
17738 grep -v '^ *+' conftest.er1 >conftest.err
17740 cat conftest.err >&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } &&
17743 { ac_try='test -z "$ac_cxx_werror_flag"
17744 || test ! -s conftest.err'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; } &&
17750 { ac_try='test -s conftest$ac_exeext'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; }; then
17756 ac_cv_lib_dl_dlopen=yes
17758 echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17761 ac_cv_lib_dl_dlopen=no
17763 rm -f conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
17765 LIBS=$ac_check_lib_save_LIBS
17767 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17768 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17769 if test $ac_cv_lib_dl_dlopen = yes; then
17770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17772 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17773 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17774 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 ac_check_lib_save_LIBS=$LIBS
17778 LIBS="-lsvld $LIBS"
17779 cat >conftest.$ac_ext <<_ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17786 /* Override any gcc2 internal prototype to avoid an error. */
17790 /* We use char because int might match the return type of a gcc2
17791 builtin and then its argument prototype would still apply. */
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803 (eval $ac_link) 2>conftest.er1
17805 grep -v '^ *+' conftest.er1 >conftest.err
17807 cat conftest.err >&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
17810 { ac_try='test -z "$ac_cxx_werror_flag"
17811 || test ! -s conftest.err'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest$ac_exeext'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 ac_cv_lib_svld_dlopen=yes
17825 echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17828 ac_cv_lib_svld_dlopen=no
17830 rm -f conftest.err conftest.$ac_objext \
17831 conftest$ac_exeext conftest.$ac_ext
17832 LIBS=$ac_check_lib_save_LIBS
17834 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17835 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17836 if test $ac_cv_lib_svld_dlopen = yes; then
17837 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17839 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17840 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17841 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17844 ac_check_lib_save_LIBS=$LIBS
17846 cat >conftest.$ac_ext <<_ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17853 /* Override any gcc2 internal prototype to avoid an error. */
17857 /* We use char because int might match the return type of a gcc2
17858 builtin and then its argument prototype would still apply. */
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870 (eval $ac_link) 2>conftest.er1
17872 grep -v '^ *+' conftest.er1 >conftest.err
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_cxx_werror_flag"
17878 || test ! -s conftest.err'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; } &&
17884 { ac_try='test -s conftest$ac_exeext'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17890 ac_cv_lib_dld_dld_link=yes
17892 echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17895 ac_cv_lib_dld_dld_link=no
17897 rm -f conftest.err conftest.$ac_objext \
17898 conftest$ac_exeext conftest.$ac_ext
17899 LIBS=$ac_check_lib_save_LIBS
17901 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17902 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17903 if test $ac_cv_lib_dld_dld_link = yes; then
17904 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17925 if test "x$lt_cv_dlopen" != xno; then
17931 case $lt_cv_dlopen in
17933 save_CPPFLAGS="$CPPFLAGS"
17934 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17936 save_LDFLAGS="$LDFLAGS"
17937 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17940 LIBS="$lt_cv_dlopen_libs $LIBS"
17942 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17943 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17944 if test "${lt_cv_dlopen_self+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17947 if test "$cross_compiling" = yes; then :
17948 lt_cv_dlopen_self=cross
17950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17951 lt_status=$lt_dlunknown
17952 cat > conftest.$ac_ext <<EOF
17953 #line 17953 "configure"
17954 #include "confdefs.h"
17963 # define LT_DLGLOBAL RTLD_GLOBAL
17966 # define LT_DLGLOBAL DL_GLOBAL
17968 # define LT_DLGLOBAL 0
17972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17973 find out it does not work in some platform. */
17974 #ifndef LT_DLLAZY_OR_NOW
17976 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17979 # define LT_DLLAZY_OR_NOW DL_LAZY
17982 # define LT_DLLAZY_OR_NOW RTLD_NOW
17985 # define LT_DLLAZY_OR_NOW DL_NOW
17987 # define LT_DLLAZY_OR_NOW 0
17995 extern "C" void exit (int);
17998 void fnord() { int i=42;}
18001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18002 int status = $lt_dlunknown;
18006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18007 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18008 /* dlclose (self); */
18014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18015 (eval $ac_link) 2>&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18019 (./conftest; exit; ) 2>/dev/null
18021 case x$lt_status in
18022 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18023 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18024 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18027 # compilation failed
18028 lt_cv_dlopen_self=no
18035 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18036 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18038 if test "x$lt_cv_dlopen_self" = xyes; then
18039 LDFLAGS="$LDFLAGS $link_static_flag"
18040 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18041 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18042 if test "${lt_cv_dlopen_self_static+set}" = set; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18045 if test "$cross_compiling" = yes; then :
18046 lt_cv_dlopen_self_static=cross
18048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18049 lt_status=$lt_dlunknown
18050 cat > conftest.$ac_ext <<EOF
18051 #line 18051 "configure"
18052 #include "confdefs.h"
18061 # define LT_DLGLOBAL RTLD_GLOBAL
18064 # define LT_DLGLOBAL DL_GLOBAL
18066 # define LT_DLGLOBAL 0
18070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18071 find out it does not work in some platform. */
18072 #ifndef LT_DLLAZY_OR_NOW
18074 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18077 # define LT_DLLAZY_OR_NOW DL_LAZY
18080 # define LT_DLLAZY_OR_NOW RTLD_NOW
18083 # define LT_DLLAZY_OR_NOW DL_NOW
18085 # define LT_DLLAZY_OR_NOW 0
18093 extern "C" void exit (int);
18096 void fnord() { int i=42;}
18099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18100 int status = $lt_dlunknown;
18104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18106 /* dlclose (self); */
18112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113 (eval $ac_link) 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18117 (./conftest; exit; ) 2>/dev/null
18119 case x$lt_status in
18120 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18121 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18122 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18125 # compilation failed
18126 lt_cv_dlopen_self_static=no
18133 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18134 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18137 CPPFLAGS="$save_CPPFLAGS"
18138 LDFLAGS="$save_LDFLAGS"
18143 case $lt_cv_dlopen_self in
18144 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18145 *) enable_dlopen_self=unknown ;;
18148 case $lt_cv_dlopen_self_static in
18149 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18150 *) enable_dlopen_self_static=unknown ;;
18155 # The else clause should only fire when bootstrapping the
18156 # libtool distribution, otherwise you forgot to ship ltmain.sh
18157 # with your package, and you will get complaints that there are
18158 # no rules to generate ltmain.sh.
18159 if test -f "$ltmain"; then
18160 # See if we are running on zsh, and set the options which allow our commands through
18161 # without removal of \ escapes.
18162 if test -n "${ZSH_VERSION+set}" ; then
18163 setopt NO_GLOB_SUBST
18165 # Now quote all the things that may contain metacharacters while being
18166 # careful not to overquote the AC_SUBSTed values. We take copies of the
18167 # variables and quote the copies for generation of the libtool script.
18168 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18170 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18171 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18172 deplibs_check_method reload_flag reload_cmds need_locks \
18173 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18174 lt_cv_sys_global_symbol_to_c_name_address \
18175 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18176 old_postinstall_cmds old_postuninstall_cmds \
18180 lt_prog_compiler_wl_CXX \
18181 lt_prog_compiler_pic_CXX \
18182 lt_prog_compiler_static_CXX \
18183 lt_prog_compiler_no_builtin_flag_CXX \
18184 export_dynamic_flag_spec_CXX \
18185 thread_safe_flag_spec_CXX \
18186 whole_archive_flag_spec_CXX \
18187 enable_shared_with_static_runtimes_CXX \
18188 old_archive_cmds_CXX \
18189 old_archive_from_new_cmds_CXX \
18190 predep_objects_CXX \
18191 postdep_objects_CXX \
18194 compiler_lib_search_path_CXX \
18196 archive_expsym_cmds_CXX \
18197 postinstall_cmds_CXX \
18198 postuninstall_cmds_CXX \
18199 old_archive_from_expsyms_cmds_CXX \
18200 allow_undefined_flag_CXX \
18201 no_undefined_flag_CXX \
18202 export_symbols_cmds_CXX \
18203 hardcode_libdir_flag_spec_CXX \
18204 hardcode_libdir_flag_spec_ld_CXX \
18205 hardcode_libdir_separator_CXX \
18206 hardcode_automatic_CXX \
18208 module_expsym_cmds_CXX \
18209 lt_cv_prog_compiler_c_o_CXX \
18210 exclude_expsyms_CXX \
18211 include_expsyms_CXX; do
18214 old_archive_cmds_CXX | \
18215 old_archive_from_new_cmds_CXX | \
18216 archive_cmds_CXX | \
18217 archive_expsym_cmds_CXX | \
18218 module_cmds_CXX | \
18219 module_expsym_cmds_CXX | \
18220 old_archive_from_expsyms_cmds_CXX | \
18221 export_symbols_cmds_CXX | \
18222 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18223 postinstall_cmds | postuninstall_cmds | \
18224 old_postinstall_cmds | old_postuninstall_cmds | \
18225 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18226 # Double-quote double-evaled strings.
18227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18236 *'\$0 --fallback-echo"')
18237 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18243 cat <<__EOF__ >> "$cfgfile"
18244 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18248 # Shell to use when invoking shell scripts.
18251 # Whether or not to build shared libraries.
18252 build_libtool_libs=$enable_shared
18254 # Whether or not to build static libraries.
18255 build_old_libs=$enable_static
18257 # Whether or not to add -lc for building shared libraries.
18258 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18260 # Whether or not to disallow shared libs when runtime libs are static
18261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18263 # Whether or not to optimize for fast installation.
18264 fast_install=$enable_fast_install
18267 host_alias=$host_alias
18270 # An echo program that does not interpret backslashes.
18275 AR_FLAGS=$lt_AR_FLAGS
18280 # A language-specific compiler.
18281 CC=$lt_compiler_CXX
18283 # Is the compiler the GNU C compiler?
18289 # The linker used to build libraries.
18292 # Whether we need hard or soft links.
18295 # A BSD-compatible nm program.
18298 # A symbol stripping program
18301 # Used to examine libraries when file_magic_cmd begins "file"
18302 MAGIC_CMD=$MAGIC_CMD
18304 # Used on cygwin: DLL creation program.
18307 # Used on cygwin: object dumper.
18310 # Used on cygwin: assembler.
18313 # The name of the directory that contains temporary libtool files.
18316 # How to create reloadable object files.
18317 reload_flag=$lt_reload_flag
18318 reload_cmds=$lt_reload_cmds
18320 # How to pass a linker flag through the compiler.
18321 wl=$lt_lt_prog_compiler_wl_CXX
18323 # Object file suffix (normally "o").
18324 objext="$ac_objext"
18326 # Old archive suffix (normally "a").
18329 # Shared library suffix (normally ".so").
18330 shrext_cmds='$shrext_cmds'
18332 # Executable file suffix (normally "").
18335 # Additional compiler flags for building library objects.
18336 pic_flag=$lt_lt_prog_compiler_pic_CXX
18339 # What is the maximum length of a command?
18340 max_cmd_len=$lt_cv_sys_max_cmd_len
18342 # Does compiler simultaneously support -c and -o options?
18343 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18345 # Must we lock files when doing compilation ?
18346 need_locks=$lt_need_locks
18348 # Do we need the lib prefix for modules?
18349 need_lib_prefix=$need_lib_prefix
18351 # Do we need a version for libraries?
18352 need_version=$need_version
18354 # Whether dlopen is supported.
18355 dlopen_support=$enable_dlopen
18357 # Whether dlopen of programs is supported.
18358 dlopen_self=$enable_dlopen_self
18360 # Whether dlopen of statically linked programs is supported.
18361 dlopen_self_static=$enable_dlopen_self_static
18363 # Compiler flag to prevent dynamic linking.
18364 link_static_flag=$lt_lt_prog_compiler_static_CXX
18366 # Compiler flag to turn off builtin functions.
18367 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18369 # Compiler flag to allow reflexive dlopens.
18370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18372 # Compiler flag to generate shared objects directly from archives.
18373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18375 # Compiler flag to generate thread-safe objects.
18376 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18378 # Library versioning type.
18379 version_type=$version_type
18381 # Format of library name prefix.
18382 libname_spec=$lt_libname_spec
18384 # List of archive names. First name is the real one, the rest are links.
18385 # The last name is the one that the linker finds with -lNAME.
18386 library_names_spec=$lt_library_names_spec
18388 # The coded name of the library, if different from the real name.
18389 soname_spec=$lt_soname_spec
18391 # Commands used to build and install an old-style archive.
18393 old_archive_cmds=$lt_old_archive_cmds_CXX
18394 old_postinstall_cmds=$lt_old_postinstall_cmds
18395 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18397 # Create an old-style archive from a shared archive.
18398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18400 # Create a temporary old-style archive to link instead of a shared archive.
18401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18403 # Commands used to build and install a shared archive.
18404 archive_cmds=$lt_archive_cmds_CXX
18405 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18406 postinstall_cmds=$lt_postinstall_cmds
18407 postuninstall_cmds=$lt_postuninstall_cmds
18409 # Commands used to build a loadable module (assumed same as above if empty)
18410 module_cmds=$lt_module_cmds_CXX
18411 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18413 # Commands to strip libraries.
18414 old_striplib=$lt_old_striplib
18415 striplib=$lt_striplib
18417 # Dependencies to place before the objects being linked to create a
18419 predep_objects=$lt_predep_objects_CXX
18421 # Dependencies to place after the objects being linked to create a
18423 postdep_objects=$lt_postdep_objects_CXX
18425 # Dependencies to place before the objects being linked to create a
18427 predeps=$lt_predeps_CXX
18429 # Dependencies to place after the objects being linked to create a
18431 postdeps=$lt_postdeps_CXX
18433 # The library search path used internally by the compiler when linking
18434 # a shared library.
18435 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18437 # Method to check whether dependent libraries are shared objects.
18438 deplibs_check_method=$lt_deplibs_check_method
18440 # Command to use when deplibs_check_method == file_magic.
18441 file_magic_cmd=$lt_file_magic_cmd
18443 # Flag that allows shared libraries with undefined symbols to be built.
18444 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18446 # Flag that forces no undefined symbols.
18447 no_undefined_flag=$lt_no_undefined_flag_CXX
18449 # Commands used to finish a libtool library installation in a directory.
18450 finish_cmds=$lt_finish_cmds
18452 # Same as above, but a single script fragment to be evaled but not shown.
18453 finish_eval=$lt_finish_eval
18455 # Take the output of nm and produce a listing of raw symbols and C names.
18456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18458 # Transform the output of nm in a proper C declaration
18459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18461 # Transform the output of nm in a C name address pair
18462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18464 # This is the shared library runtime path variable.
18465 runpath_var=$runpath_var
18467 # This is the shared library path variable.
18468 shlibpath_var=$shlibpath_var
18470 # Is shlibpath searched before the hard-coded library search path?
18471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18473 # How to hardcode a shared library path into an executable.
18474 hardcode_action=$hardcode_action_CXX
18476 # Whether we should hardcode library paths into libraries.
18477 hardcode_into_libs=$hardcode_into_libs
18479 # Flag to hardcode \$libdir into a binary during linking.
18480 # This must work even if \$libdir does not exist.
18481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18483 # If ld is used when linking, flag to hardcode \$libdir into
18484 # a binary during linking. This must work even if \$libdir does
18486 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18488 # Whether we need a single -rpath flag with a separated argument.
18489 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18491 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18492 # resulting binary.
18493 hardcode_direct=$hardcode_direct_CXX
18495 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18496 # resulting binary.
18497 hardcode_minus_L=$hardcode_minus_L_CXX
18499 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18500 # the resulting binary.
18501 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18503 # Set to yes if building a shared library automatically hardcodes DIR into the library
18504 # and all subsequent libraries and executables linked against it.
18505 hardcode_automatic=$hardcode_automatic_CXX
18507 # Variables whose values should be saved in libtool wrapper scripts and
18508 # restored at relink time.
18509 variables_saved_for_relink="$variables_saved_for_relink"
18511 # Whether libtool must link a program against all its dependency libraries.
18512 link_all_deplibs=$link_all_deplibs_CXX
18514 # Compile-time system search path for libraries
18515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18517 # Run-time system search path for libraries
18518 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18520 # Fix the shell variable \$srcfile for the compiler.
18521 fix_srcfile_path="$fix_srcfile_path_CXX"
18523 # Set to yes if exported symbols are required.
18524 always_export_symbols=$always_export_symbols_CXX
18526 # The commands to list exported symbols.
18527 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18529 # The commands to extract the exported symbol list from a shared archive.
18530 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18532 # Symbols that should not be listed in the preloaded symbols.
18533 exclude_expsyms=$lt_exclude_expsyms_CXX
18535 # Symbols that must always be exported.
18536 include_expsyms=$lt_include_expsyms_CXX
18538 # ### END LIBTOOL TAG CONFIG: $tagname
18544 # If there is no Makefile yet, we rely on a make rule to execute
18545 # `config.status --recheck' to rerun these tests and create the
18546 # libtool script then.
18547 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18548 if test -f "$ltmain_in"; then
18549 test -f Makefile && make "$ltmain"
18555 ac_cpp='$CPP $CPPFLAGS'
18556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18564 with_gnu_ldcxx=$with_gnu_ld
18565 with_gnu_ld=$lt_save_with_gnu_ld
18566 lt_cv_path_LDCXX=$lt_cv_path_LD
18567 lt_cv_path_LD=$lt_save_path_LD
18568 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18569 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18577 if test -n "$F77" && test "X$F77" != "Xno"; then
18580 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18581 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18582 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18585 archive_cmds_need_lc_F77=no
18586 allow_undefined_flag_F77=
18587 always_export_symbols_F77=no
18588 archive_expsym_cmds_F77=
18589 export_dynamic_flag_spec_F77=
18590 hardcode_direct_F77=no
18591 hardcode_libdir_flag_spec_F77=
18592 hardcode_libdir_flag_spec_ld_F77=
18593 hardcode_libdir_separator_F77=
18594 hardcode_minus_L_F77=no
18595 hardcode_automatic_F77=no
18597 module_expsym_cmds_F77=
18598 link_all_deplibs_F77=unknown
18599 old_archive_cmds_F77=$old_archive_cmds
18600 no_undefined_flag_F77=
18601 whole_archive_flag_spec_F77=
18602 enable_shared_with_static_runtimes_F77=no
18604 # Source file extension for f77 test sources.
18607 # Object file extension for compiled f77 test sources.
18611 # Code to be used in simple compile tests
18612 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18614 # Code to be used in simple link tests
18615 lt_simple_link_test_code=" program t\n end\n"
18617 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18619 # If no C compiler was specified, use CC.
18622 # Allow CC to be a program name with arguments.
18626 # Allow CC to be a program name with arguments.
18631 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18633 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18634 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18635 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18636 echo "${ECHO_T}$can_build_shared" >&6
18638 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18639 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18640 test "$can_build_shared" = "no" && enable_shared=no
18642 # On AIX, shared libraries and static libraries use the same namespace, and
18643 # are all built from PIC.
18646 test "$enable_shared" = yes && enable_static=no
18647 if test -n "$RANLIB"; then
18648 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18649 postinstall_cmds='$RANLIB $lib'
18653 test "$enable_shared" = yes && enable_static=no
18656 echo "$as_me:$LINENO: result: $enable_shared" >&5
18657 echo "${ECHO_T}$enable_shared" >&6
18659 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18660 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18661 # Make sure either enable_shared or enable_static is yes.
18662 test "$enable_shared" = yes || enable_static=yes
18663 echo "$as_me:$LINENO: result: $enable_static" >&5
18664 echo "${ECHO_T}$enable_static" >&6
18666 test "$ld_shlibs_F77" = no && can_build_shared=no
18671 lt_prog_compiler_wl_F77=
18672 lt_prog_compiler_pic_F77=
18673 lt_prog_compiler_static_F77=
18675 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18676 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18678 if test "$GCC" = yes; then
18679 lt_prog_compiler_wl_F77='-Wl,'
18680 lt_prog_compiler_static_F77='-static'
18684 # All AIX code is PIC.
18685 if test "$host_cpu" = ia64; then
18686 # AIX 5 now supports IA64 processor
18687 lt_prog_compiler_static_F77='-Bstatic'
18692 # FIXME: we need at least 68020 code to build shared libraries, but
18693 # adding the `-m68020' flag to GCC prevents building anything better,
18695 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18698 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18699 # PIC is the default for these OSes.
18702 mingw* | pw32* | os2*)
18703 # This hack is so that the source file can tell whether it is being
18704 # built for inclusion in a dll (and should export symbols for example).
18705 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18708 darwin* | rhapsody*)
18709 # PIC is the default on this platform
18710 # Common symbols not allowed in MH_DYLIB files
18711 lt_prog_compiler_pic_F77='-fno-common'
18715 # Just because we use GCC doesn't mean we suddenly get shared libraries
18716 # on systems that don't support them.
18717 lt_prog_compiler_can_build_shared_F77=no
18722 if test -d /usr/nec; then
18723 lt_prog_compiler_pic_F77=-Kconform_pic
18728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18729 # not for PA HP-UX.
18730 case "$host_cpu" in
18735 lt_prog_compiler_pic_F77='-fPIC'
18741 lt_prog_compiler_pic_F77='-fPIC'
18745 # PORTME Check for flag to pass linker flags through the system compiler.
18748 lt_prog_compiler_wl_F77='-Wl,'
18749 if test "$host_cpu" = ia64; then
18750 # AIX 5 now supports IA64 processor
18751 lt_prog_compiler_static_F77='-Bstatic'
18753 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18757 # PIC is the default on this platform
18758 # Common symbols not allowed in MH_DYLIB files
18759 case "$cc_basename" in
18761 lt_prog_compiler_pic_F77='-qnocommon'
18762 lt_prog_compiler_wl_F77='-Wl,'
18767 mingw* | pw32* | os2*)
18768 # This hack is so that the source file can tell whether it is being
18769 # built for inclusion in a dll (and should export symbols for example).
18770 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18773 hpux9* | hpux10* | hpux11*)
18774 lt_prog_compiler_wl_F77='-Wl,'
18775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18776 # not for PA HP-UX.
18777 case "$host_cpu" in
18782 lt_prog_compiler_pic_F77='+Z'
18785 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18786 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18789 irix5* | irix6* | nonstopux*)
18790 lt_prog_compiler_wl_F77='-Wl,'
18791 # PIC (with -KPIC) is the default.
18792 lt_prog_compiler_static_F77='-non_shared'
18796 lt_prog_compiler_pic_F77='-KPIC'
18797 lt_prog_compiler_static_F77='-Bstatic'
18803 lt_prog_compiler_wl_F77='-Wl,'
18804 lt_prog_compiler_pic_F77='-KPIC'
18805 lt_prog_compiler_static_F77='-static'
18808 lt_prog_compiler_wl_F77='-Wl,'
18809 # All Alpha code is PIC.
18810 lt_prog_compiler_static_F77='-non_shared'
18815 osf3* | osf4* | osf5*)
18816 lt_prog_compiler_wl_F77='-Wl,'
18817 # All OSF/1 code is PIC.
18818 lt_prog_compiler_static_F77='-non_shared'
18822 lt_prog_compiler_pic_F77='-Kpic'
18823 lt_prog_compiler_static_F77='-dn'
18827 lt_prog_compiler_wl_F77='-Wl,'
18828 lt_prog_compiler_pic_F77='-KPIC'
18829 lt_prog_compiler_static_F77='-Bstatic'
18833 lt_prog_compiler_wl_F77='-Qoption ld '
18834 lt_prog_compiler_pic_F77='-PIC'
18835 lt_prog_compiler_static_F77='-Bstatic'
18838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18839 lt_prog_compiler_wl_F77='-Wl,'
18840 lt_prog_compiler_pic_F77='-KPIC'
18841 lt_prog_compiler_static_F77='-Bstatic'
18845 if test -d /usr/nec ;then
18846 lt_prog_compiler_pic_F77='-Kconform_pic'
18847 lt_prog_compiler_static_F77='-Bstatic'
18852 lt_prog_compiler_pic_F77='-pic'
18853 lt_prog_compiler_static_F77='-Bstatic'
18857 lt_prog_compiler_can_build_shared_F77=no
18862 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18863 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18866 # Check to make sure the PIC flag actually works.
18868 if test -n "$lt_prog_compiler_pic_F77"; then
18870 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18871 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18872 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18873 echo $ECHO_N "(cached) $ECHO_C" >&6
18875 lt_prog_compiler_pic_works_F77=no
18876 ac_outfile=conftest.$ac_objext
18877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18878 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18879 # Insert the option either (1) after the last *FLAGS variable, or
18880 # (2) before a word containing "conftest.", or (3) at the end.
18881 # Note that $ac_compile itself does not contain backslashes and begins
18882 # with a dollar sign (not a hyphen), so the echo should work correctly.
18883 # The option is referenced via a variable to avoid confusing sed.
18884 lt_compile=`echo "$ac_compile" | $SED \
18885 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18887 -e 's:$: $lt_compiler_flag:'`
18888 (eval echo "\"\$as_me:18888: $lt_compile\"" >&5)
18889 (eval "$lt_compile" 2>conftest.err)
18891 cat conftest.err >&5
18892 echo "$as_me:18892: \$? = $ac_status" >&5
18893 if (exit $ac_status) && test -s "$ac_outfile"; then
18894 # The compiler can only warn and ignore the option if not recognized
18895 # So say no if there are warnings
18896 if test ! -s conftest.err; then
18897 lt_prog_compiler_pic_works_F77=yes
18903 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18904 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18906 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18907 case $lt_prog_compiler_pic_F77 in
18909 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18912 lt_prog_compiler_pic_F77=
18913 lt_prog_compiler_can_build_shared_F77=no
18918 # For platforms which do not support PIC, -DPIC is meaningless:
18920 lt_prog_compiler_pic_F77=
18923 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18927 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18928 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18929 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18932 lt_cv_prog_compiler_c_o_F77=no
18933 $rm -r conftest 2>/dev/null
18937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18939 lt_compiler_flag="-o out/conftest2.$ac_objext"
18940 # Insert the option either (1) after the last *FLAGS variable, or
18941 # (2) before a word containing "conftest.", or (3) at the end.
18942 # Note that $ac_compile itself does not contain backslashes and begins
18943 # with a dollar sign (not a hyphen), so the echo should work correctly.
18944 lt_compile=`echo "$ac_compile" | $SED \
18945 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18947 -e 's:$: $lt_compiler_flag:'`
18948 (eval echo "\"\$as_me:18948: $lt_compile\"" >&5)
18949 (eval "$lt_compile" 2>out/conftest.err)
18951 cat out/conftest.err >&5
18952 echo "$as_me:18952: \$? = $ac_status" >&5
18953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18955 # The compiler can only warn and ignore the option if not recognized
18956 # So say no if there are warnings
18957 if test ! -s out/conftest.err; then
18958 lt_cv_prog_compiler_c_o_F77=yes
18963 # SGI C++ compiler will create directory out/ii_files/ for
18964 # template instantiation
18965 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18966 $rm out/* && rmdir out
18972 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18973 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18976 hard_links="nottested"
18977 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18978 # do not overwrite the value of need_locks provided by the user
18979 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18980 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18985 ln conftest.a conftest.b 2>&5 || hard_links=no
18986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18987 echo "$as_me:$LINENO: result: $hard_links" >&5
18988 echo "${ECHO_T}$hard_links" >&6
18989 if test "$hard_links" = no; then
18990 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18991 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18998 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19002 allow_undefined_flag_F77=
19003 enable_shared_with_static_runtimes_F77=no
19005 archive_expsym_cmds_F77=
19006 old_archive_From_new_cmds_F77=
19007 old_archive_from_expsyms_cmds_F77=
19008 export_dynamic_flag_spec_F77=
19009 whole_archive_flag_spec_F77=
19010 thread_safe_flag_spec_F77=
19011 hardcode_libdir_flag_spec_F77=
19012 hardcode_libdir_flag_spec_ld_F77=
19013 hardcode_libdir_separator_F77=
19014 hardcode_direct_F77=no
19015 hardcode_minus_L_F77=no
19016 hardcode_shlibpath_var_F77=unsupported
19017 link_all_deplibs_F77=unknown
19018 hardcode_automatic_F77=no
19020 module_expsym_cmds_F77=
19021 always_export_symbols_F77=no
19022 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19023 # include_expsyms should be a list of space-separated symbols to be *always*
19024 # included in the symbol list
19025 include_expsyms_F77=
19026 # exclude_expsyms can be an extended regexp of symbols to exclude
19027 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19028 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19029 # as well as any symbol that contains `d'.
19030 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19032 # platforms (ab)use it in PIC code, but their linkers get confused if
19033 # the symbol is explicitly referenced. Since portable code cannot
19034 # rely on this symbol name, it's probably fine to never include it in
19035 # preloaded symbol tables.
19036 extract_expsyms_cmds=
19039 cygwin* | mingw* | pw32*)
19040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19041 # When not using gcc, we currently assume that we are using
19042 # Microsoft Visual C++.
19043 if test "$GCC" != yes; then
19053 if test "$with_gnu_ld" = yes; then
19054 # If archive_cmds runs LD, not CC, wlarc should be empty
19057 # See if GNU ld supports shared libraries.
19059 aix3* | aix4* | aix5*)
19060 # On AIX/PPC, the GNU linker is very broken
19061 if test "$host_cpu" != ia64; then
19065 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19066 *** to be unable to reliably create shared libraries on AIX.
19067 *** Therefore, libtool is disabling shared libraries support. If you
19068 *** really care for shared libraries, you may want to modify your PATH
19069 *** so that a non-GNU linker is found, and then restart.
19076 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)'
19077 hardcode_libdir_flag_spec_F77='-L$libdir'
19078 hardcode_minus_L_F77=yes
19080 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19081 # that the semantics of dynamic libraries on AmigaOS, at least up
19082 # to version 4, is to share data among multiple programs linked
19083 # with the same dynamic library. Since this doesn't match the
19084 # behavior of shared libraries on other platforms, we can't use
19090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19091 allow_undefined_flag_F77=unsupported
19092 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19093 # support --undefined. This deserves some investigation. FIXME
19094 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19100 cygwin* | mingw* | pw32*)
19101 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19102 # as there is no search path for DLLs.
19103 hardcode_libdir_flag_spec_F77='-L$libdir'
19104 allow_undefined_flag_F77=unsupported
19105 always_export_symbols_F77=no
19106 enable_shared_with_static_runtimes_F77=yes
19107 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19109 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19110 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19111 # If the export-symbols file already is a .def file (1st line
19112 # is EXPORTS), use it as is; otherwise, prepend...
19113 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19114 cp $export_symbols $output_objdir/$soname.def;
19116 echo EXPORTS > $output_objdir/$soname.def;
19117 cat $export_symbols >> $output_objdir/$soname.def;
19119 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19126 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19127 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19130 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19131 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19136 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19140 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19141 *** create shared libraries on Solaris systems. Therefore, libtool
19142 *** is disabling shared libraries support. We urge you to upgrade GNU
19143 *** binutils to release 2.9.1 or newer. Another option is to modify
19144 *** your PATH or compiler configuration so that the native linker is
19145 *** used, and then restart.
19148 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19149 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19150 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19157 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19159 hardcode_direct_F77=yes
19160 hardcode_shlibpath_var_F77=no
19164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19165 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19166 archive_cmds_F77="$tmp_archive_cmds"
19167 supports_anon_versioning=no
19168 case `$LD -v 2>/dev/null` in
19169 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19170 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19171 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19172 *\ 2.11.*) ;; # other 2.11 versions
19173 *) supports_anon_versioning=yes ;;
19175 if test $supports_anon_versioning = yes; then
19176 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19178 $echo "local: *; };" >> $output_objdir/$libname.ver~
19179 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19181 archive_expsym_cmds_F77="$tmp_archive_cmds"
19189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19190 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19191 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19198 if test "$ld_shlibs_F77" = yes; then
19199 runpath_var=LD_RUN_PATH
19200 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19201 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19202 # ancient GNU ld didn't support --whole-archive et. al.
19203 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19204 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19206 whole_archive_flag_spec_F77=
19210 # PORTME fill in a description of your system's linker (not GNU ld)
19213 allow_undefined_flag_F77=unsupported
19214 always_export_symbols_F77=yes
19215 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'
19216 # Note: this linker hardcodes the directories in LIBPATH if there
19217 # are no directories specified by -L.
19218 hardcode_minus_L_F77=yes
19219 if test "$GCC" = yes && test -z "$link_static_flag"; then
19220 # Neither direct hardcoding nor static linking is supported with a
19222 hardcode_direct_F77=unsupported
19227 if test "$host_cpu" = ia64; then
19228 # On IA64, the linker does run time linking by default, so we don't
19229 # have to do anything special.
19230 aix_use_runtimelinking=no
19231 exp_sym_flag='-Bexport'
19234 # If we're using GNU nm, then we don't want the "-C" option.
19235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19236 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19237 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'
19239 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'
19241 aix_use_runtimelinking=no
19243 # Test if we are trying to use run time linking or normal
19244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19245 # need to do runtime linking.
19246 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19247 for ld_flag in $LDFLAGS; do
19248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19249 aix_use_runtimelinking=yes
19255 exp_sym_flag='-bexport'
19256 no_entry_flag='-bnoentry'
19259 # When large executables or shared objects are built, AIX ld can
19260 # have problems creating the table of contents. If linking a library
19261 # or program results in "error TOC overflow" add -mminimal-toc to
19262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19265 archive_cmds_F77=''
19266 hardcode_direct_F77=yes
19267 hardcode_libdir_separator_F77=':'
19268 link_all_deplibs_F77=yes
19270 if test "$GCC" = yes; then
19271 case $host_os in aix4.012|aix4.012.*)
19272 # We only want to do this on AIX 4.2 and lower, the check
19273 # below for broken collect2 doesn't work under 4.3+
19274 collect2name=`${CC} -print-prog-name=collect2`
19275 if test -f "$collect2name" && \
19276 strings "$collect2name" | grep resolve_lib_name >/dev/null
19278 # We have reworked collect2
19279 hardcode_direct_F77=yes
19281 # We have old collect2
19282 hardcode_direct_F77=unsupported
19283 # It fails to find uninstalled libraries when the uninstalled
19284 # path is not listed in the libpath. Setting hardcode_minus_L
19285 # to unsupported forces relinking
19286 hardcode_minus_L_F77=yes
19287 hardcode_libdir_flag_spec_F77='-L$libdir'
19288 hardcode_libdir_separator_F77=
19291 shared_flag='-shared'
19294 if test "$host_cpu" = ia64; then
19295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19296 # chokes on -Wl,-G. The following line is correct:
19299 if test "$aix_use_runtimelinking" = yes; then
19300 shared_flag='${wl}-G'
19302 shared_flag='${wl}-bM:SRE'
19307 # It seems that -bexpall does not export symbols beginning with
19308 # underscore (_), so it is better to generate a list of symbols to export.
19309 always_export_symbols_F77=yes
19310 if test "$aix_use_runtimelinking" = yes; then
19311 # Warning - without using the other runtime loading flags (-brtl),
19312 # -berok will link without error, but may produce a broken library.
19313 allow_undefined_flag_F77='-berok'
19314 # Determine the default libpath from the value encoded in an empty executable.
19315 cat >conftest.$ac_ext <<_ACEOF
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19322 (eval $ac_link) 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -z "$ac_f77_werror_flag"
19330 || test ! -s conftest.err'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest$ac_exeext'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19345 # Check for a 64-bit object if we didn't find anything.
19346 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; }
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19353 rm -f conftest.err conftest.$ac_objext \
19354 conftest$ac_exeext conftest.$ac_ext
19355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19357 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19358 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"
19360 if test "$host_cpu" = ia64; then
19361 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19362 allow_undefined_flag_F77="-z nodefs"
19363 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"
19365 # Determine the default libpath from the value encoded in an empty executable.
19366 cat >conftest.$ac_ext <<_ACEOF
19371 rm -f conftest.$ac_objext conftest$ac_exeext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19373 (eval $ac_link) 2>conftest.er1
19375 grep -v '^ *+' conftest.er1 >conftest.err
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -z "$ac_f77_werror_flag"
19381 || test ! -s conftest.err'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest$ac_exeext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19396 # Check for a 64-bit object if we didn't find anything.
19397 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; }
19400 echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19404 rm -f conftest.err conftest.$ac_objext \
19405 conftest$ac_exeext conftest.$ac_ext
19406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19408 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19409 # Warning - without using the other run time loading flags,
19410 # -berok will link without error, but may produce a broken library.
19411 no_undefined_flag_F77=' ${wl}-bernotok'
19412 allow_undefined_flag_F77=' ${wl}-berok'
19413 # -bexpall does not export symbols beginning with underscore (_)
19414 always_export_symbols_F77=yes
19415 # Exported symbols can be pulled into shared objects from archives
19416 whole_archive_flag_spec_F77=' '
19417 archive_cmds_need_lc_F77=yes
19418 # This is similar to how AIX traditionally builds it's shared libraries.
19419 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'
19425 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)'
19426 hardcode_libdir_flag_spec_F77='-L$libdir'
19427 hardcode_minus_L_F77=yes
19428 # see comment about different semantics on the GNU ld section
19433 export_dynamic_flag_spec_F77=-rdynamic
19436 cygwin* | mingw* | pw32*)
19437 # When not using gcc, we currently assume that we are using
19438 # Microsoft Visual C++.
19439 # hardcode_libdir_flag_spec is actually meaningless, as there is
19440 # no search path for DLLs.
19441 hardcode_libdir_flag_spec_F77=' '
19442 allow_undefined_flag_F77=unsupported
19443 # Tell ltmain to make .lib files, not .a files.
19445 # Tell ltmain to make .dll files, not .so files.
19447 # FIXME: Setting linknames here is a bad hack.
19448 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19449 # The linker will automatically build a .lib file if we build a DLL.
19450 old_archive_From_new_cmds_F77='true'
19451 # FIXME: Should let the user specify the lib program.
19452 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19453 fix_srcfile_path='`cygpath -w "$srcfile"`'
19454 enable_shared_with_static_runtimes_F77=yes
19457 darwin* | rhapsody*)
19459 rhapsody* | darwin1.[012])
19460 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19463 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19464 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19466 case ${MACOSX_DEPLOYMENT_TARGET} in
19468 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19471 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19477 archive_cmds_need_lc_F77=no
19478 hardcode_direct_F77=no
19479 hardcode_automatic_F77=yes
19480 hardcode_shlibpath_var_F77=unsupported
19481 whole_archive_flag_spec_F77=''
19482 link_all_deplibs_F77=yes
19483 if test "$GCC" = yes ; then
19484 output_verbose_link_cmd='echo'
19485 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19486 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19487 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19488 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}'
19489 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}'
19491 case "$cc_basename" in
19493 output_verbose_link_cmd='echo'
19494 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19495 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19496 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19497 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}'
19498 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}'
19508 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19509 hardcode_libdir_flag_spec_F77='-L$libdir'
19510 hardcode_shlibpath_var_F77=no
19517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19518 # support. Future versions do this automatically, but an explicit c++rt0.o
19519 # does not break anything, and helps significantly (at the cost of a little
19522 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19523 hardcode_libdir_flag_spec_F77='-R$libdir'
19524 hardcode_direct_F77=yes
19525 hardcode_shlibpath_var_F77=no
19528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19530 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19531 hardcode_direct_F77=yes
19532 hardcode_minus_L_F77=yes
19533 hardcode_shlibpath_var_F77=no
19536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19537 freebsd* | kfreebsd*-gnu)
19538 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19539 hardcode_libdir_flag_spec_F77='-R$libdir'
19540 hardcode_direct_F77=yes
19541 hardcode_shlibpath_var_F77=no
19545 if test "$GCC" = yes; then
19546 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'
19548 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'
19550 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19551 hardcode_libdir_separator_F77=:
19552 hardcode_direct_F77=yes
19554 # hardcode_minus_L: Not really in the search PATH,
19555 # but as the default location of the library.
19556 hardcode_minus_L_F77=yes
19557 export_dynamic_flag_spec_F77='${wl}-E'
19561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19562 case "$host_cpu" in
19564 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19567 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19571 case "$host_cpu" in
19573 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19576 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19580 if test "$with_gnu_ld" = no; then
19581 case "$host_cpu" in
19583 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19584 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19585 hardcode_libdir_separator_F77=:
19586 hardcode_direct_F77=no
19587 hardcode_shlibpath_var_F77=no
19590 hardcode_libdir_flag_spec_F77='-L$libdir'
19591 hardcode_direct_F77=no
19592 hardcode_shlibpath_var_F77=no
19594 # hardcode_minus_L: Not really in the search PATH,
19595 # but as the default location of the library.
19596 hardcode_minus_L_F77=yes
19599 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19600 hardcode_libdir_separator_F77=:
19601 hardcode_direct_F77=yes
19602 export_dynamic_flag_spec_F77='${wl}-E'
19604 # hardcode_minus_L: Not really in the search PATH,
19605 # but as the default location of the library.
19606 hardcode_minus_L_F77=yes
19612 irix5* | irix6* | nonstopux*)
19613 if test "$GCC" = yes; then
19614 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'
19616 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'
19617 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19619 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19620 hardcode_libdir_separator_F77=:
19621 link_all_deplibs_F77=yes
19625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19626 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19628 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19630 hardcode_libdir_flag_spec_F77='-R$libdir'
19631 hardcode_direct_F77=yes
19632 hardcode_shlibpath_var_F77=no
19636 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19637 hardcode_direct_F77=yes
19638 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19639 hardcode_libdir_separator_F77=:
19640 hardcode_shlibpath_var_F77=no
19644 hardcode_direct_F77=yes
19645 hardcode_shlibpath_var_F77=no
19646 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19647 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19648 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19649 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19650 export_dynamic_flag_spec_F77='${wl}-E'
19653 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19654 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19655 hardcode_libdir_flag_spec_F77='-R$libdir'
19658 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19659 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19666 hardcode_libdir_flag_spec_F77='-L$libdir'
19667 hardcode_minus_L_F77=yes
19668 allow_undefined_flag_F77=unsupported
19669 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'
19670 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19674 if test "$GCC" = yes; then
19675 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19676 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'
19678 allow_undefined_flag_F77=' -expect_unresolved \*'
19679 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'
19681 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19682 hardcode_libdir_separator_F77=:
19685 osf4* | osf5*) # as osf3* with the addition of -msym flag
19686 if test "$GCC" = yes; then
19687 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19688 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'
19689 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19691 allow_undefined_flag_F77=' -expect_unresolved \*'
19692 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'
19693 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~
19694 $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'
19696 # Both c and cxx compiler support -rpath directly
19697 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19699 hardcode_libdir_separator_F77=:
19703 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19704 hardcode_shlibpath_var_F77=no
19705 export_dynamic_flag_spec_F77='${wl}-Bexport'
19706 runpath_var=LD_RUN_PATH
19707 hardcode_runpath_var=yes
19711 no_undefined_flag_F77=' -z text'
19712 if test "$GCC" = yes; then
19713 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19714 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19715 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19717 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19718 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19719 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19721 hardcode_libdir_flag_spec_F77='-R$libdir'
19722 hardcode_shlibpath_var_F77=no
19724 solaris2.[0-5] | solaris2.[0-5].*) ;;
19725 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19726 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19728 link_all_deplibs_F77=yes
19732 if test "x$host_vendor" = xsequent; then
19733 # Use $CC to link under sequent, because it throws in some extra .o
19734 # files that make .init and .fini sections work.
19735 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19737 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19739 hardcode_libdir_flag_spec_F77='-L$libdir'
19740 hardcode_direct_F77=yes
19741 hardcode_minus_L_F77=yes
19742 hardcode_shlibpath_var_F77=no
19746 case $host_vendor in
19748 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19749 hardcode_direct_F77=yes # is this really true???
19752 ## LD is ld it makes a PLAMLIB
19753 ## CC just makes a GrossModule.
19754 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19755 reload_cmds_F77='$CC -r -o $output$reload_objs'
19756 hardcode_direct_F77=no
19759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19760 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19763 runpath_var='LD_RUN_PATH'
19764 hardcode_shlibpath_var_F77=no
19768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769 hardcode_shlibpath_var_F77=no
19770 export_dynamic_flag_spec_F77='-Bexport'
19774 if test -d /usr/nec; then
19775 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19776 hardcode_shlibpath_var_F77=no
19777 runpath_var=LD_RUN_PATH
19778 hardcode_runpath_var=yes
19784 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19785 hardcode_direct_F77=yes
19786 hardcode_minus_L_F77=no
19787 hardcode_shlibpath_var_F77=no
19788 hardcode_runpath_var=yes
19789 runpath_var=LD_RUN_PATH
19792 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19793 no_undefined_flag_F77='${wl}-z ${wl}text'
19794 if test "$GCC" = yes; then
19795 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19797 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19799 runpath_var='LD_RUN_PATH'
19800 hardcode_shlibpath_var_F77=no
19804 no_undefined_flag_F77=' -z text'
19805 # $CC -shared without GNU ld will not create a library from C++
19806 # object files and a static libstdc++, better avoid it by now
19807 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19808 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19809 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19810 hardcode_libdir_flag_spec_F77=
19811 hardcode_shlibpath_var_F77=no
19812 runpath_var='LD_RUN_PATH'
19816 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19817 hardcode_libdir_flag_spec_F77='-L$libdir'
19818 hardcode_shlibpath_var_F77=no
19827 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19828 echo "${ECHO_T}$ld_shlibs_F77" >&6
19829 test "$ld_shlibs_F77" = no && can_build_shared=no
19831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19832 if test "$GCC" = yes; then
19833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19837 # Do we need to explicitly link libc?
19839 case "x$archive_cmds_need_lc_F77" in
19841 # Assume -lc should be added
19842 archive_cmds_need_lc_F77=yes
19844 if test "$enable_shared" = yes && test "$GCC" = yes; then
19845 case $archive_cmds_F77 in
19847 # FIXME: we may have to deal with multi-command sequences.
19850 # Test whether the compiler implicitly links with -lc since on some
19851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19852 # to ld, don't add -lc before -lgcc.
19853 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19854 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19859 (eval $ac_compile) 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } 2>conftest.err; then
19865 libobjs=conftest.$ac_objext
19867 wl=$lt_prog_compiler_wl_F77
19873 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19874 allow_undefined_flag_F77=
19875 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19876 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }
19881 archive_cmds_need_lc_F77=no
19883 archive_cmds_need_lc_F77=yes
19885 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19887 cat conftest.err 1>&5
19890 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19891 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19898 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19899 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19900 library_names_spec=
19901 libname_spec='lib$name'
19905 postuninstall_cmds=
19909 shlibpath_overrides_runpath=unknown
19911 dynamic_linker="$host_os ld.so"
19912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19913 if test "$GCC" = yes; then
19914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19915 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19916 # if the path contains ";" then we assume it to be the separator
19917 # otherwise default to the standard path separator (i.e. ":") - it is
19918 # assumed that no part of a normal pathname contains ";" but that should
19919 # okay in the real world where ";" in dirpaths is itself problematic.
19920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19927 need_lib_prefix=unknown
19928 hardcode_into_libs=no
19930 # when you set need_version to no, make sure it does not cause -set_version
19931 # flags to be left without arguments
19932 need_version=unknown
19937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19938 shlibpath_var=LIBPATH
19940 # AIX 3 has no versioning support, so we append a major version to the name.
19941 soname_spec='${libname}${release}${shared_ext}$major'
19948 hardcode_into_libs=yes
19949 if test "$host_cpu" = ia64; then
19950 # AIX 5 supports IA64
19951 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19952 shlibpath_var=LD_LIBRARY_PATH
19954 # With GCC up to 2.95.x, collect2 would create an import file
19955 # for dependence libraries. The import file would start with
19956 # the line `#! .'. This would cause the generated library to
19957 # depend on `.', always an invalid library. This was fixed in
19958 # development snapshots of GCC prior to 3.0.
19960 aix4 | aix4.[01] | aix4.[01].*)
19961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19963 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19966 can_build_shared=no
19970 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19971 # soname into executable. Probably we can add versioning support to
19972 # collect2, so additional links can be useful in future.
19973 if test "$aix_use_runtimelinking" = yes; then
19974 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19975 # instead of lib<name>.a to let people know that these are not
19976 # typical AIX shared libraries.
19977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19979 # We preserve .a as extension for shared libraries through AIX4.2
19980 # and later when we are not doing run time linking.
19981 library_names_spec='${libname}${release}.a $libname.a'
19982 soname_spec='${libname}${release}${shared_ext}$major'
19984 shlibpath_var=LIBPATH
19989 library_names_spec='$libname.ixlibrary $libname.a'
19990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19991 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'
19995 library_names_spec='${libname}${shared_ext}'
19996 dynamic_linker="$host_os ld.so"
19997 shlibpath_var=LIBRARY_PATH
20003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20004 soname_spec='${libname}${release}${shared_ext}$major'
20005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20006 shlibpath_var=LD_LIBRARY_PATH
20007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20009 # the default ld.so.conf also contains /usr/contrib/lib and
20010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20011 # libtool to hard-code these into programs
20014 cygwin* | mingw* | pw32*)
20015 version_type=windows
20020 case $GCC,$host_os in
20021 yes,cygwin* | yes,mingw* | yes,pw32*)
20022 library_names_spec='$libname.dll.a'
20023 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20024 postinstall_cmds='base_file=`basename \${file}`~
20025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20026 dldir=$destdir/`dirname \$dlpath`~
20027 test -d \$dldir || mkdir -p \$dldir~
20028 $install_prog $dir/$dlname \$dldir/$dlname'
20029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20030 dlpath=$dir/\$dldll~
20032 shlibpath_overrides_runpath=yes
20036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20041 # MinGW DLLs use traditional 'lib' prefix
20042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20045 # It is most probably a Windows format PATH printed by
20046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20047 # path with ; separators, and with drive letters. We can handle the
20048 # drive letters (cygwin fileutils understands them), so leave them,
20049 # especially as we might pass files found there to a mingw objdump,
20050 # which wouldn't understand a cygwinified path. Ahh.
20051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20057 # pw32 DLLs use 'pw' prefix rather than 'lib'
20058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20067 dynamic_linker='Win32 ld.exe'
20068 # FIXME: first we should search . and the directory the executable is in
20072 darwin* | rhapsody*)
20073 dynamic_linker="$host_os dyld"
20074 version_type=darwin
20077 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20078 soname_spec='${libname}${release}${major}$shared_ext'
20079 shlibpath_overrides_runpath=yes
20080 shlibpath_var=DYLD_LIBRARY_PATH
20081 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20082 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20083 if test "$GCC" = yes; then
20084 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"`
20086 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20096 soname_spec='${libname}${release}${shared_ext}$major'
20097 shlibpath_var=LD_LIBRARY_PATH
20108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20109 soname_spec='${libname}${release}${shared_ext}$major'
20110 shlibpath_var=LD_LIBRARY_PATH
20111 shlibpath_overrides_runpath=no
20112 hardcode_into_libs=yes
20113 dynamic_linker='GNU ld.so'
20117 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20118 version_type=freebsd-$objformat
20119 case $version_type in
20121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20130 shlibpath_var=LD_LIBRARY_PATH
20133 shlibpath_overrides_runpath=yes
20135 freebsd3.01* | freebsdelf3.01*)
20136 shlibpath_overrides_runpath=yes
20137 hardcode_into_libs=yes
20140 shlibpath_overrides_runpath=no
20141 hardcode_into_libs=yes
20150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20151 soname_spec='${libname}${release}${shared_ext}$major'
20152 shlibpath_var=LD_LIBRARY_PATH
20153 hardcode_into_libs=yes
20156 hpux9* | hpux10* | hpux11*)
20157 # Give a soname corresponding to the major version so that dld.sl refuses to
20158 # link against other versions.
20162 case "$host_cpu" in
20165 hardcode_into_libs=yes
20166 dynamic_linker="$host_os dld.so"
20167 shlibpath_var=LD_LIBRARY_PATH
20168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20170 soname_spec='${libname}${release}${shared_ext}$major'
20171 if test "X$HPUX_IA64_MODE" = X32; then
20172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20180 hardcode_into_libs=yes
20181 dynamic_linker="$host_os dld.sl"
20182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185 soname_spec='${libname}${release}${shared_ext}$major'
20186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20191 dynamic_linker="$host_os dld.sl"
20192 shlibpath_var=SHLIB_PATH
20193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 soname_spec='${libname}${release}${shared_ext}$major'
20198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20199 postinstall_cmds='chmod 555 $lib'
20202 irix5* | irix6* | nonstopux*)
20204 nonstopux*) version_type=nonstopux ;;
20206 if test "$lt_cv_prog_gnu_ld" = yes; then
20214 soname_spec='${libname}${release}${shared_ext}$major'
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20217 irix5* | nonstopux*)
20218 libsuff= shlibsuff=
20221 case $LD in # libtool.m4 will add one of these switches to LD
20222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20223 libsuff= shlibsuff= libmagic=32-bit;;
20224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20225 libsuff=32 shlibsuff=N32 libmagic=N32;;
20226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20228 *) libsuff= shlibsuff= libmagic=never-match;;
20232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20233 shlibpath_overrides_runpath=no
20234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20236 hardcode_into_libs=yes
20239 # No shared lib support for Linux oldld, aout, or coff.
20240 linux*oldld* | linux*aout* | linux*coff*)
20244 # This must be Linux ELF.
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20252 shlibpath_var=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath=no
20254 # This implies no fast_install, which is unacceptable.
20255 # Some rework will be needed to allow for fast_install
20256 # before this can be enabled.
20257 hardcode_into_libs=yes
20259 # Append ld.so.conf contents to the search path
20260 if test -f /etc/ld.so.conf; then
20261 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20265 # We used to test for /lib/ld.so.1 and disable shared libraries on
20266 # powerpc, because MkLinux only supported shared libraries with the
20267 # GNU dynamic linker. Since this was broken with cross compilers,
20268 # most powerpc-linux boxes support dynamic linking these days and
20269 # people can always --disable-shared, the test was removed, and we
20270 # assume the GNU/Linux dynamic linker is in use.
20271 dynamic_linker='GNU/Linux ld.so'
20278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20279 soname_spec='${libname}${release}${shared_ext}$major'
20280 shlibpath_var=LD_LIBRARY_PATH
20281 shlibpath_overrides_runpath=no
20282 hardcode_into_libs=yes
20283 dynamic_linker='GNU ld.so'
20290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20293 dynamic_linker='NetBSD (a.out) ld.so'
20295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20296 soname_spec='${libname}${release}${shared_ext}$major'
20297 dynamic_linker='NetBSD ld.elf_so'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 shlibpath_overrides_runpath=yes
20301 hardcode_into_libs=yes
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307 shlibpath_var=LD_LIBRARY_PATH
20308 shlibpath_overrides_runpath=yes
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316 soname_spec='${libname}${release}${shared_ext}$major'
20317 shlibpath_var=LD_LIBRARY_PATH
20318 shlibpath_overrides_runpath=yes
20325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20327 shlibpath_var=LD_LIBRARY_PATH
20328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20330 openbsd2.[89] | openbsd2.[89].*)
20331 shlibpath_overrides_runpath=no
20334 shlibpath_overrides_runpath=yes
20338 shlibpath_overrides_runpath=yes
20343 libname_spec='$name'
20346 library_names_spec='$libname${shared_ext} $libname.a'
20347 dynamic_linker='OS/2 ld.exe'
20348 shlibpath_var=LIBPATH
20351 osf3* | osf4* | osf5*)
20355 soname_spec='${libname}${release}${shared_ext}$major'
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20357 shlibpath_var=LD_LIBRARY_PATH
20358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20364 soname_spec='${libname}${release}${shared_ext}$major'
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366 shlibpath_var=LD_LIBRARY_PATH
20373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20374 soname_spec='${libname}${release}${shared_ext}$major'
20375 shlibpath_var=LD_LIBRARY_PATH
20376 shlibpath_overrides_runpath=yes
20377 hardcode_into_libs=yes
20378 # ldd complains unless libraries are executable
20379 postinstall_cmds='chmod +x $lib'
20384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20386 shlibpath_var=LD_LIBRARY_PATH
20387 shlibpath_overrides_runpath=yes
20388 if test "$with_gnu_ld" = yes; then
20394 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20397 soname_spec='${libname}${release}${shared_ext}$major'
20398 shlibpath_var=LD_LIBRARY_PATH
20399 case $host_vendor in
20401 shlibpath_overrides_runpath=no
20403 export_dynamic_flag_spec='${wl}-Blargedynsym'
20404 runpath_var=LD_RUN_PATH
20412 shlibpath_overrides_runpath=no
20413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20419 if test -d /usr/nec ;then
20421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20422 soname_spec='$libname${shared_ext}.$major'
20423 shlibpath_var=LD_LIBRARY_PATH
20429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 shlibpath_var=LD_LIBRARY_PATH
20438 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20439 echo "${ECHO_T}$dynamic_linker" >&6
20440 test "$dynamic_linker" = no && can_build_shared=no
20442 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20443 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20444 hardcode_action_F77=
20445 if test -n "$hardcode_libdir_flag_spec_F77" || \
20446 test -n "$runpath_var_F77" || \
20447 test "X$hardcode_automatic_F77" = "Xyes" ; then
20449 # We can hardcode non-existant directories.
20450 if test "$hardcode_direct_F77" != no &&
20451 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20452 # have to relink, otherwise we might link with an installed library
20453 # when we should be linking with a yet-to-be-installed one
20454 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20455 test "$hardcode_minus_L_F77" != no; then
20456 # Linking always hardcodes the temporary library directory.
20457 hardcode_action_F77=relink
20459 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20460 hardcode_action_F77=immediate
20463 # We cannot hardcode anything, or else we can only hardcode existing
20465 hardcode_action_F77=unsupported
20467 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20468 echo "${ECHO_T}$hardcode_action_F77" >&6
20470 if test "$hardcode_action_F77" = relink; then
20471 # Fast installation is not supported
20472 enable_fast_install=no
20473 elif test "$shlibpath_overrides_runpath" = yes ||
20474 test "$enable_shared" = no; then
20475 # Fast installation is not necessary
20476 enable_fast_install=needless
20481 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20482 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20483 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20484 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20485 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20486 echo "$as_me:$LINENO: result: yes" >&5
20487 echo "${ECHO_T}yes" >&6
20489 # FIXME - insert some real tests, host_os isn't really good enough
20492 if test -n "$STRIP" ; then
20493 striplib="$STRIP -x"
20494 echo "$as_me:$LINENO: result: yes" >&5
20495 echo "${ECHO_T}yes" >&6
20497 echo "$as_me:$LINENO: result: no" >&5
20498 echo "${ECHO_T}no" >&6
20502 echo "$as_me:$LINENO: result: no" >&5
20503 echo "${ECHO_T}no" >&6
20510 # The else clause should only fire when bootstrapping the
20511 # libtool distribution, otherwise you forgot to ship ltmain.sh
20512 # with your package, and you will get complaints that there are
20513 # no rules to generate ltmain.sh.
20514 if test -f "$ltmain"; then
20515 # See if we are running on zsh, and set the options which allow our commands through
20516 # without removal of \ escapes.
20517 if test -n "${ZSH_VERSION+set}" ; then
20518 setopt NO_GLOB_SUBST
20520 # Now quote all the things that may contain metacharacters while being
20521 # careful not to overquote the AC_SUBSTed values. We take copies of the
20522 # variables and quote the copies for generation of the libtool script.
20523 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20525 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20526 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20527 deplibs_check_method reload_flag reload_cmds need_locks \
20528 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20529 lt_cv_sys_global_symbol_to_c_name_address \
20530 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20531 old_postinstall_cmds old_postuninstall_cmds \
20535 lt_prog_compiler_wl_F77 \
20536 lt_prog_compiler_pic_F77 \
20537 lt_prog_compiler_static_F77 \
20538 lt_prog_compiler_no_builtin_flag_F77 \
20539 export_dynamic_flag_spec_F77 \
20540 thread_safe_flag_spec_F77 \
20541 whole_archive_flag_spec_F77 \
20542 enable_shared_with_static_runtimes_F77 \
20543 old_archive_cmds_F77 \
20544 old_archive_from_new_cmds_F77 \
20545 predep_objects_F77 \
20546 postdep_objects_F77 \
20549 compiler_lib_search_path_F77 \
20551 archive_expsym_cmds_F77 \
20552 postinstall_cmds_F77 \
20553 postuninstall_cmds_F77 \
20554 old_archive_from_expsyms_cmds_F77 \
20555 allow_undefined_flag_F77 \
20556 no_undefined_flag_F77 \
20557 export_symbols_cmds_F77 \
20558 hardcode_libdir_flag_spec_F77 \
20559 hardcode_libdir_flag_spec_ld_F77 \
20560 hardcode_libdir_separator_F77 \
20561 hardcode_automatic_F77 \
20563 module_expsym_cmds_F77 \
20564 lt_cv_prog_compiler_c_o_F77 \
20565 exclude_expsyms_F77 \
20566 include_expsyms_F77; do
20569 old_archive_cmds_F77 | \
20570 old_archive_from_new_cmds_F77 | \
20571 archive_cmds_F77 | \
20572 archive_expsym_cmds_F77 | \
20573 module_cmds_F77 | \
20574 module_expsym_cmds_F77 | \
20575 old_archive_from_expsyms_cmds_F77 | \
20576 export_symbols_cmds_F77 | \
20577 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20578 postinstall_cmds | postuninstall_cmds | \
20579 old_postinstall_cmds | old_postuninstall_cmds | \
20580 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20581 # Double-quote double-evaled strings.
20582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20585 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20591 *'\$0 --fallback-echo"')
20592 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20598 cat <<__EOF__ >> "$cfgfile"
20599 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20601 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20603 # Shell to use when invoking shell scripts.
20606 # Whether or not to build shared libraries.
20607 build_libtool_libs=$enable_shared
20609 # Whether or not to build static libraries.
20610 build_old_libs=$enable_static
20612 # Whether or not to add -lc for building shared libraries.
20613 build_libtool_need_lc=$archive_cmds_need_lc_F77
20615 # Whether or not to disallow shared libs when runtime libs are static
20616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20618 # Whether or not to optimize for fast installation.
20619 fast_install=$enable_fast_install
20622 host_alias=$host_alias
20625 # An echo program that does not interpret backslashes.
20630 AR_FLAGS=$lt_AR_FLAGS
20635 # A language-specific compiler.
20636 CC=$lt_compiler_F77
20638 # Is the compiler the GNU C compiler?
20644 # The linker used to build libraries.
20647 # Whether we need hard or soft links.
20650 # A BSD-compatible nm program.
20653 # A symbol stripping program
20656 # Used to examine libraries when file_magic_cmd begins "file"
20657 MAGIC_CMD=$MAGIC_CMD
20659 # Used on cygwin: DLL creation program.
20662 # Used on cygwin: object dumper.
20665 # Used on cygwin: assembler.
20668 # The name of the directory that contains temporary libtool files.
20671 # How to create reloadable object files.
20672 reload_flag=$lt_reload_flag
20673 reload_cmds=$lt_reload_cmds
20675 # How to pass a linker flag through the compiler.
20676 wl=$lt_lt_prog_compiler_wl_F77
20678 # Object file suffix (normally "o").
20679 objext="$ac_objext"
20681 # Old archive suffix (normally "a").
20684 # Shared library suffix (normally ".so").
20685 shrext_cmds='$shrext_cmds'
20687 # Executable file suffix (normally "").
20690 # Additional compiler flags for building library objects.
20691 pic_flag=$lt_lt_prog_compiler_pic_F77
20694 # What is the maximum length of a command?
20695 max_cmd_len=$lt_cv_sys_max_cmd_len
20697 # Does compiler simultaneously support -c and -o options?
20698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20700 # Must we lock files when doing compilation ?
20701 need_locks=$lt_need_locks
20703 # Do we need the lib prefix for modules?
20704 need_lib_prefix=$need_lib_prefix
20706 # Do we need a version for libraries?
20707 need_version=$need_version
20709 # Whether dlopen is supported.
20710 dlopen_support=$enable_dlopen
20712 # Whether dlopen of programs is supported.
20713 dlopen_self=$enable_dlopen_self
20715 # Whether dlopen of statically linked programs is supported.
20716 dlopen_self_static=$enable_dlopen_self_static
20718 # Compiler flag to prevent dynamic linking.
20719 link_static_flag=$lt_lt_prog_compiler_static_F77
20721 # Compiler flag to turn off builtin functions.
20722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20724 # Compiler flag to allow reflexive dlopens.
20725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20727 # Compiler flag to generate shared objects directly from archives.
20728 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20730 # Compiler flag to generate thread-safe objects.
20731 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20733 # Library versioning type.
20734 version_type=$version_type
20736 # Format of library name prefix.
20737 libname_spec=$lt_libname_spec
20739 # List of archive names. First name is the real one, the rest are links.
20740 # The last name is the one that the linker finds with -lNAME.
20741 library_names_spec=$lt_library_names_spec
20743 # The coded name of the library, if different from the real name.
20744 soname_spec=$lt_soname_spec
20746 # Commands used to build and install an old-style archive.
20748 old_archive_cmds=$lt_old_archive_cmds_F77
20749 old_postinstall_cmds=$lt_old_postinstall_cmds
20750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20752 # Create an old-style archive from a shared archive.
20753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20755 # Create a temporary old-style archive to link instead of a shared archive.
20756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20758 # Commands used to build and install a shared archive.
20759 archive_cmds=$lt_archive_cmds_F77
20760 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20761 postinstall_cmds=$lt_postinstall_cmds
20762 postuninstall_cmds=$lt_postuninstall_cmds
20764 # Commands used to build a loadable module (assumed same as above if empty)
20765 module_cmds=$lt_module_cmds_F77
20766 module_expsym_cmds=$lt_module_expsym_cmds_F77
20768 # Commands to strip libraries.
20769 old_striplib=$lt_old_striplib
20770 striplib=$lt_striplib
20772 # Dependencies to place before the objects being linked to create a
20774 predep_objects=$lt_predep_objects_F77
20776 # Dependencies to place after the objects being linked to create a
20778 postdep_objects=$lt_postdep_objects_F77
20780 # Dependencies to place before the objects being linked to create a
20782 predeps=$lt_predeps_F77
20784 # Dependencies to place after the objects being linked to create a
20786 postdeps=$lt_postdeps_F77
20788 # The library search path used internally by the compiler when linking
20789 # a shared library.
20790 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20792 # Method to check whether dependent libraries are shared objects.
20793 deplibs_check_method=$lt_deplibs_check_method
20795 # Command to use when deplibs_check_method == file_magic.
20796 file_magic_cmd=$lt_file_magic_cmd
20798 # Flag that allows shared libraries with undefined symbols to be built.
20799 allow_undefined_flag=$lt_allow_undefined_flag_F77
20801 # Flag that forces no undefined symbols.
20802 no_undefined_flag=$lt_no_undefined_flag_F77
20804 # Commands used to finish a libtool library installation in a directory.
20805 finish_cmds=$lt_finish_cmds
20807 # Same as above, but a single script fragment to be evaled but not shown.
20808 finish_eval=$lt_finish_eval
20810 # Take the output of nm and produce a listing of raw symbols and C names.
20811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20813 # Transform the output of nm in a proper C declaration
20814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20816 # Transform the output of nm in a C name address pair
20817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20819 # This is the shared library runtime path variable.
20820 runpath_var=$runpath_var
20822 # This is the shared library path variable.
20823 shlibpath_var=$shlibpath_var
20825 # Is shlibpath searched before the hard-coded library search path?
20826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20828 # How to hardcode a shared library path into an executable.
20829 hardcode_action=$hardcode_action_F77
20831 # Whether we should hardcode library paths into libraries.
20832 hardcode_into_libs=$hardcode_into_libs
20834 # Flag to hardcode \$libdir into a binary during linking.
20835 # This must work even if \$libdir does not exist.
20836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20838 # If ld is used when linking, flag to hardcode \$libdir into
20839 # a binary during linking. This must work even if \$libdir does
20841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20843 # Whether we need a single -rpath flag with a separated argument.
20844 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20846 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20847 # resulting binary.
20848 hardcode_direct=$hardcode_direct_F77
20850 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20851 # resulting binary.
20852 hardcode_minus_L=$hardcode_minus_L_F77
20854 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20855 # the resulting binary.
20856 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20858 # Set to yes if building a shared library automatically hardcodes DIR into the library
20859 # and all subsequent libraries and executables linked against it.
20860 hardcode_automatic=$hardcode_automatic_F77
20862 # Variables whose values should be saved in libtool wrapper scripts and
20863 # restored at relink time.
20864 variables_saved_for_relink="$variables_saved_for_relink"
20866 # Whether libtool must link a program against all its dependency libraries.
20867 link_all_deplibs=$link_all_deplibs_F77
20869 # Compile-time system search path for libraries
20870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20872 # Run-time system search path for libraries
20873 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20875 # Fix the shell variable \$srcfile for the compiler.
20876 fix_srcfile_path="$fix_srcfile_path_F77"
20878 # Set to yes if exported symbols are required.
20879 always_export_symbols=$always_export_symbols_F77
20881 # The commands to list exported symbols.
20882 export_symbols_cmds=$lt_export_symbols_cmds_F77
20884 # The commands to extract the exported symbol list from a shared archive.
20885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20887 # Symbols that should not be listed in the preloaded symbols.
20888 exclude_expsyms=$lt_exclude_expsyms_F77
20890 # Symbols that must always be exported.
20891 include_expsyms=$lt_include_expsyms_F77
20893 # ### END LIBTOOL TAG CONFIG: $tagname
20899 # If there is no Makefile yet, we rely on a make rule to execute
20900 # `config.status --recheck' to rerun these tests and create the
20901 # libtool script then.
20902 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20903 if test -f "$ltmain_in"; then
20904 test -f Makefile && make "$ltmain"
20910 ac_cpp='$CPP $CPPFLAGS'
20911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20923 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20925 ac_cpp='$CPP $CPPFLAGS'
20926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20931 # Source file extension for Java test sources.
20934 # Object file extension for compiled Java test sources.
20938 # Code to be used in simple compile tests
20939 lt_simple_compile_test_code="class foo {}\n"
20941 # Code to be used in simple link tests
20942 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20946 # If no C compiler was specified, use CC.
20949 # Allow CC to be a program name with arguments.
20953 # Allow CC to be a program name with arguments.
20959 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20960 archive_cmds_need_lc_GCJ=no
20963 lt_prog_compiler_no_builtin_flag_GCJ=
20965 if test "$GCC" = yes; then
20966 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20969 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20970 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20971 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20974 lt_cv_prog_compiler_rtti_exceptions=no
20975 ac_outfile=conftest.$ac_objext
20976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20977 lt_compiler_flag="-fno-rtti -fno-exceptions"
20978 # Insert the option either (1) after the last *FLAGS variable, or
20979 # (2) before a word containing "conftest.", or (3) at the end.
20980 # Note that $ac_compile itself does not contain backslashes and begins
20981 # with a dollar sign (not a hyphen), so the echo should work correctly.
20982 # The option is referenced via a variable to avoid confusing sed.
20983 lt_compile=`echo "$ac_compile" | $SED \
20984 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20986 -e 's:$: $lt_compiler_flag:'`
20987 (eval echo "\"\$as_me:20987: $lt_compile\"" >&5)
20988 (eval "$lt_compile" 2>conftest.err)
20990 cat conftest.err >&5
20991 echo "$as_me:20991: \$? = $ac_status" >&5
20992 if (exit $ac_status) && test -s "$ac_outfile"; then
20993 # The compiler can only warn and ignore the option if not recognized
20994 # So say no if there are warnings
20995 if test ! -s conftest.err; then
20996 lt_cv_prog_compiler_rtti_exceptions=yes
21002 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21003 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21005 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21006 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21013 lt_prog_compiler_wl_GCJ=
21014 lt_prog_compiler_pic_GCJ=
21015 lt_prog_compiler_static_GCJ=
21017 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21018 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21020 if test "$GCC" = yes; then
21021 lt_prog_compiler_wl_GCJ='-Wl,'
21022 lt_prog_compiler_static_GCJ='-static'
21026 # All AIX code is PIC.
21027 if test "$host_cpu" = ia64; then
21028 # AIX 5 now supports IA64 processor
21029 lt_prog_compiler_static_GCJ='-Bstatic'
21034 # FIXME: we need at least 68020 code to build shared libraries, but
21035 # adding the `-m68020' flag to GCC prevents building anything better,
21037 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21040 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21041 # PIC is the default for these OSes.
21044 mingw* | pw32* | os2*)
21045 # This hack is so that the source file can tell whether it is being
21046 # built for inclusion in a dll (and should export symbols for example).
21047 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21050 darwin* | rhapsody*)
21051 # PIC is the default on this platform
21052 # Common symbols not allowed in MH_DYLIB files
21053 lt_prog_compiler_pic_GCJ='-fno-common'
21057 # Just because we use GCC doesn't mean we suddenly get shared libraries
21058 # on systems that don't support them.
21059 lt_prog_compiler_can_build_shared_GCJ=no
21064 if test -d /usr/nec; then
21065 lt_prog_compiler_pic_GCJ=-Kconform_pic
21070 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21071 # not for PA HP-UX.
21072 case "$host_cpu" in
21077 lt_prog_compiler_pic_GCJ='-fPIC'
21083 lt_prog_compiler_pic_GCJ='-fPIC'
21087 # PORTME Check for flag to pass linker flags through the system compiler.
21090 lt_prog_compiler_wl_GCJ='-Wl,'
21091 if test "$host_cpu" = ia64; then
21092 # AIX 5 now supports IA64 processor
21093 lt_prog_compiler_static_GCJ='-Bstatic'
21095 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21099 # PIC is the default on this platform
21100 # Common symbols not allowed in MH_DYLIB files
21101 case "$cc_basename" in
21103 lt_prog_compiler_pic_GCJ='-qnocommon'
21104 lt_prog_compiler_wl_GCJ='-Wl,'
21109 mingw* | pw32* | os2*)
21110 # This hack is so that the source file can tell whether it is being
21111 # built for inclusion in a dll (and should export symbols for example).
21112 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21115 hpux9* | hpux10* | hpux11*)
21116 lt_prog_compiler_wl_GCJ='-Wl,'
21117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21118 # not for PA HP-UX.
21119 case "$host_cpu" in
21124 lt_prog_compiler_pic_GCJ='+Z'
21127 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21128 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21131 irix5* | irix6* | nonstopux*)
21132 lt_prog_compiler_wl_GCJ='-Wl,'
21133 # PIC (with -KPIC) is the default.
21134 lt_prog_compiler_static_GCJ='-non_shared'
21138 lt_prog_compiler_pic_GCJ='-KPIC'
21139 lt_prog_compiler_static_GCJ='-Bstatic'
21145 lt_prog_compiler_wl_GCJ='-Wl,'
21146 lt_prog_compiler_pic_GCJ='-KPIC'
21147 lt_prog_compiler_static_GCJ='-static'
21150 lt_prog_compiler_wl_GCJ='-Wl,'
21151 # All Alpha code is PIC.
21152 lt_prog_compiler_static_GCJ='-non_shared'
21157 osf3* | osf4* | osf5*)
21158 lt_prog_compiler_wl_GCJ='-Wl,'
21159 # All OSF/1 code is PIC.
21160 lt_prog_compiler_static_GCJ='-non_shared'
21164 lt_prog_compiler_pic_GCJ='-Kpic'
21165 lt_prog_compiler_static_GCJ='-dn'
21169 lt_prog_compiler_wl_GCJ='-Wl,'
21170 lt_prog_compiler_pic_GCJ='-KPIC'
21171 lt_prog_compiler_static_GCJ='-Bstatic'
21175 lt_prog_compiler_wl_GCJ='-Qoption ld '
21176 lt_prog_compiler_pic_GCJ='-PIC'
21177 lt_prog_compiler_static_GCJ='-Bstatic'
21180 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21181 lt_prog_compiler_wl_GCJ='-Wl,'
21182 lt_prog_compiler_pic_GCJ='-KPIC'
21183 lt_prog_compiler_static_GCJ='-Bstatic'
21187 if test -d /usr/nec ;then
21188 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21189 lt_prog_compiler_static_GCJ='-Bstatic'
21194 lt_prog_compiler_pic_GCJ='-pic'
21195 lt_prog_compiler_static_GCJ='-Bstatic'
21199 lt_prog_compiler_can_build_shared_GCJ=no
21204 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21205 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21208 # Check to make sure the PIC flag actually works.
21210 if test -n "$lt_prog_compiler_pic_GCJ"; then
21212 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21213 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21214 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 lt_prog_compiler_pic_works_GCJ=no
21218 ac_outfile=conftest.$ac_objext
21219 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21220 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21221 # Insert the option either (1) after the last *FLAGS variable, or
21222 # (2) before a word containing "conftest.", or (3) at the end.
21223 # Note that $ac_compile itself does not contain backslashes and begins
21224 # with a dollar sign (not a hyphen), so the echo should work correctly.
21225 # The option is referenced via a variable to avoid confusing sed.
21226 lt_compile=`echo "$ac_compile" | $SED \
21227 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21229 -e 's:$: $lt_compiler_flag:'`
21230 (eval echo "\"\$as_me:21230: $lt_compile\"" >&5)
21231 (eval "$lt_compile" 2>conftest.err)
21233 cat conftest.err >&5
21234 echo "$as_me:21234: \$? = $ac_status" >&5
21235 if (exit $ac_status) && test -s "$ac_outfile"; then
21236 # The compiler can only warn and ignore the option if not recognized
21237 # So say no if there are warnings
21238 if test ! -s conftest.err; then
21239 lt_prog_compiler_pic_works_GCJ=yes
21245 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21246 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21248 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21249 case $lt_prog_compiler_pic_GCJ in
21251 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21254 lt_prog_compiler_pic_GCJ=
21255 lt_prog_compiler_can_build_shared_GCJ=no
21260 # For platforms which do not support PIC, -DPIC is meaningless:
21262 lt_prog_compiler_pic_GCJ=
21265 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21269 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21270 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21271 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 lt_cv_prog_compiler_c_o_GCJ=no
21275 $rm -r conftest 2>/dev/null
21279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21281 lt_compiler_flag="-o out/conftest2.$ac_objext"
21282 # Insert the option either (1) after the last *FLAGS variable, or
21283 # (2) before a word containing "conftest.", or (3) at the end.
21284 # Note that $ac_compile itself does not contain backslashes and begins
21285 # with a dollar sign (not a hyphen), so the echo should work correctly.
21286 lt_compile=`echo "$ac_compile" | $SED \
21287 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21289 -e 's:$: $lt_compiler_flag:'`
21290 (eval echo "\"\$as_me:21290: $lt_compile\"" >&5)
21291 (eval "$lt_compile" 2>out/conftest.err)
21293 cat out/conftest.err >&5
21294 echo "$as_me:21294: \$? = $ac_status" >&5
21295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21297 # The compiler can only warn and ignore the option if not recognized
21298 # So say no if there are warnings
21299 if test ! -s out/conftest.err; then
21300 lt_cv_prog_compiler_c_o_GCJ=yes
21305 # SGI C++ compiler will create directory out/ii_files/ for
21306 # template instantiation
21307 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21308 $rm out/* && rmdir out
21314 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21315 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21318 hard_links="nottested"
21319 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21320 # do not overwrite the value of need_locks provided by the user
21321 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21322 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21327 ln conftest.a conftest.b 2>&5 || hard_links=no
21328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21329 echo "$as_me:$LINENO: result: $hard_links" >&5
21330 echo "${ECHO_T}$hard_links" >&6
21331 if test "$hard_links" = no; then
21332 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21333 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21340 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21341 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21344 allow_undefined_flag_GCJ=
21345 enable_shared_with_static_runtimes_GCJ=no
21347 archive_expsym_cmds_GCJ=
21348 old_archive_From_new_cmds_GCJ=
21349 old_archive_from_expsyms_cmds_GCJ=
21350 export_dynamic_flag_spec_GCJ=
21351 whole_archive_flag_spec_GCJ=
21352 thread_safe_flag_spec_GCJ=
21353 hardcode_libdir_flag_spec_GCJ=
21354 hardcode_libdir_flag_spec_ld_GCJ=
21355 hardcode_libdir_separator_GCJ=
21356 hardcode_direct_GCJ=no
21357 hardcode_minus_L_GCJ=no
21358 hardcode_shlibpath_var_GCJ=unsupported
21359 link_all_deplibs_GCJ=unknown
21360 hardcode_automatic_GCJ=no
21362 module_expsym_cmds_GCJ=
21363 always_export_symbols_GCJ=no
21364 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21365 # include_expsyms should be a list of space-separated symbols to be *always*
21366 # included in the symbol list
21367 include_expsyms_GCJ=
21368 # exclude_expsyms can be an extended regexp of symbols to exclude
21369 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21370 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21371 # as well as any symbol that contains `d'.
21372 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21373 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21374 # platforms (ab)use it in PIC code, but their linkers get confused if
21375 # the symbol is explicitly referenced. Since portable code cannot
21376 # rely on this symbol name, it's probably fine to never include it in
21377 # preloaded symbol tables.
21378 extract_expsyms_cmds=
21381 cygwin* | mingw* | pw32*)
21382 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21383 # When not using gcc, we currently assume that we are using
21384 # Microsoft Visual C++.
21385 if test "$GCC" != yes; then
21395 if test "$with_gnu_ld" = yes; then
21396 # If archive_cmds runs LD, not CC, wlarc should be empty
21399 # See if GNU ld supports shared libraries.
21401 aix3* | aix4* | aix5*)
21402 # On AIX/PPC, the GNU linker is very broken
21403 if test "$host_cpu" != ia64; then
21407 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21408 *** to be unable to reliably create shared libraries on AIX.
21409 *** Therefore, libtool is disabling shared libraries support. If you
21410 *** really care for shared libraries, you may want to modify your PATH
21411 *** so that a non-GNU linker is found, and then restart.
21418 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)'
21419 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21420 hardcode_minus_L_GCJ=yes
21422 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21423 # that the semantics of dynamic libraries on AmigaOS, at least up
21424 # to version 4, is to share data among multiple programs linked
21425 # with the same dynamic library. Since this doesn't match the
21426 # behavior of shared libraries on other platforms, we can't use
21432 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21433 allow_undefined_flag_GCJ=unsupported
21434 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21435 # support --undefined. This deserves some investigation. FIXME
21436 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21442 cygwin* | mingw* | pw32*)
21443 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21444 # as there is no search path for DLLs.
21445 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21446 allow_undefined_flag_GCJ=unsupported
21447 always_export_symbols_GCJ=no
21448 enable_shared_with_static_runtimes_GCJ=yes
21449 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21451 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21452 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21453 # If the export-symbols file already is a .def file (1st line
21454 # is EXPORTS), use it as is; otherwise, prepend...
21455 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21456 cp $export_symbols $output_objdir/$soname.def;
21458 echo EXPORTS > $output_objdir/$soname.def;
21459 cat $export_symbols >> $output_objdir/$soname.def;
21461 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21469 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21473 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21478 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21482 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21483 *** create shared libraries on Solaris systems. Therefore, libtool
21484 *** is disabling shared libraries support. We urge you to upgrade GNU
21485 *** binutils to release 2.9.1 or newer. Another option is to modify
21486 *** your PATH or compiler configuration so that the native linker is
21487 *** used, and then restart.
21490 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21491 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21492 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21499 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21501 hardcode_direct_GCJ=yes
21502 hardcode_shlibpath_var_GCJ=no
21506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21507 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21508 archive_cmds_GCJ="$tmp_archive_cmds"
21509 supports_anon_versioning=no
21510 case `$LD -v 2>/dev/null` in
21511 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21512 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21513 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21514 *\ 2.11.*) ;; # other 2.11 versions
21515 *) supports_anon_versioning=yes ;;
21517 if test $supports_anon_versioning = yes; then
21518 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21520 $echo "local: *; };" >> $output_objdir/$libname.ver~
21521 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21523 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21532 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21533 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21540 if test "$ld_shlibs_GCJ" = yes; then
21541 runpath_var=LD_RUN_PATH
21542 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21543 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21544 # ancient GNU ld didn't support --whole-archive et. al.
21545 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21546 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21548 whole_archive_flag_spec_GCJ=
21552 # PORTME fill in a description of your system's linker (not GNU ld)
21555 allow_undefined_flag_GCJ=unsupported
21556 always_export_symbols_GCJ=yes
21557 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'
21558 # Note: this linker hardcodes the directories in LIBPATH if there
21559 # are no directories specified by -L.
21560 hardcode_minus_L_GCJ=yes
21561 if test "$GCC" = yes && test -z "$link_static_flag"; then
21562 # Neither direct hardcoding nor static linking is supported with a
21564 hardcode_direct_GCJ=unsupported
21569 if test "$host_cpu" = ia64; then
21570 # On IA64, the linker does run time linking by default, so we don't
21571 # have to do anything special.
21572 aix_use_runtimelinking=no
21573 exp_sym_flag='-Bexport'
21576 # If we're using GNU nm, then we don't want the "-C" option.
21577 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21578 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21579 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'
21581 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'
21583 aix_use_runtimelinking=no
21585 # Test if we are trying to use run time linking or normal
21586 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21587 # need to do runtime linking.
21588 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21589 for ld_flag in $LDFLAGS; do
21590 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21591 aix_use_runtimelinking=yes
21597 exp_sym_flag='-bexport'
21598 no_entry_flag='-bnoentry'
21601 # When large executables or shared objects are built, AIX ld can
21602 # have problems creating the table of contents. If linking a library
21603 # or program results in "error TOC overflow" add -mminimal-toc to
21604 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21605 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21607 archive_cmds_GCJ=''
21608 hardcode_direct_GCJ=yes
21609 hardcode_libdir_separator_GCJ=':'
21610 link_all_deplibs_GCJ=yes
21612 if test "$GCC" = yes; then
21613 case $host_os in aix4.012|aix4.012.*)
21614 # We only want to do this on AIX 4.2 and lower, the check
21615 # below for broken collect2 doesn't work under 4.3+
21616 collect2name=`${CC} -print-prog-name=collect2`
21617 if test -f "$collect2name" && \
21618 strings "$collect2name" | grep resolve_lib_name >/dev/null
21620 # We have reworked collect2
21621 hardcode_direct_GCJ=yes
21623 # We have old collect2
21624 hardcode_direct_GCJ=unsupported
21625 # It fails to find uninstalled libraries when the uninstalled
21626 # path is not listed in the libpath. Setting hardcode_minus_L
21627 # to unsupported forces relinking
21628 hardcode_minus_L_GCJ=yes
21629 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21630 hardcode_libdir_separator_GCJ=
21633 shared_flag='-shared'
21636 if test "$host_cpu" = ia64; then
21637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21638 # chokes on -Wl,-G. The following line is correct:
21641 if test "$aix_use_runtimelinking" = yes; then
21642 shared_flag='${wl}-G'
21644 shared_flag='${wl}-bM:SRE'
21649 # It seems that -bexpall does not export symbols beginning with
21650 # underscore (_), so it is better to generate a list of symbols to export.
21651 always_export_symbols_GCJ=yes
21652 if test "$aix_use_runtimelinking" = yes; then
21653 # Warning - without using the other runtime loading flags (-brtl),
21654 # -berok will link without error, but may produce a broken library.
21655 allow_undefined_flag_GCJ='-berok'
21656 # Determine the default libpath from the value encoded in an empty executable.
21657 cat >conftest.$ac_ext <<_ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21672 rm -f conftest.$ac_objext conftest$ac_exeext
21673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21674 (eval $ac_link) 2>conftest.er1
21676 grep -v '^ *+' conftest.er1 >conftest.err
21678 cat conftest.err >&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } &&
21681 { ac_try='test -z "$ac_c_werror_flag"
21682 || test ! -s conftest.err'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; } &&
21688 { ac_try='test -s conftest$ac_exeext'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21695 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21697 # Check for a 64-bit object if we didn't find anything.
21698 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; }
21701 echo "$as_me: failed program was:" >&5
21702 sed 's/^/| /' conftest.$ac_ext >&5
21705 rm -f conftest.err conftest.$ac_objext \
21706 conftest$ac_exeext conftest.$ac_ext
21707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21709 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21710 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"
21712 if test "$host_cpu" = ia64; then
21713 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21714 allow_undefined_flag_GCJ="-z nodefs"
21715 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"
21717 # Determine the default libpath from the value encoded in an empty executable.
21718 cat >conftest.$ac_ext <<_ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h. */
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21735 (eval $ac_link) 2>conftest.er1
21737 grep -v '^ *+' conftest.er1 >conftest.err
21739 cat conftest.err >&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } &&
21742 { ac_try='test -z "$ac_c_werror_flag"
21743 || test ! -s conftest.err'
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; } &&
21749 { ac_try='test -s conftest$ac_exeext'
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21756 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21758 # Check for a 64-bit object if we didn't find anything.
21759 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; }
21762 echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21766 rm -f conftest.err conftest.$ac_objext \
21767 conftest$ac_exeext conftest.$ac_ext
21768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21770 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21771 # Warning - without using the other run time loading flags,
21772 # -berok will link without error, but may produce a broken library.
21773 no_undefined_flag_GCJ=' ${wl}-bernotok'
21774 allow_undefined_flag_GCJ=' ${wl}-berok'
21775 # -bexpall does not export symbols beginning with underscore (_)
21776 always_export_symbols_GCJ=yes
21777 # Exported symbols can be pulled into shared objects from archives
21778 whole_archive_flag_spec_GCJ=' '
21779 archive_cmds_need_lc_GCJ=yes
21780 # This is similar to how AIX traditionally builds it's shared libraries.
21781 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'
21787 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)'
21788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21789 hardcode_minus_L_GCJ=yes
21790 # see comment about different semantics on the GNU ld section
21795 export_dynamic_flag_spec_GCJ=-rdynamic
21798 cygwin* | mingw* | pw32*)
21799 # When not using gcc, we currently assume that we are using
21800 # Microsoft Visual C++.
21801 # hardcode_libdir_flag_spec is actually meaningless, as there is
21802 # no search path for DLLs.
21803 hardcode_libdir_flag_spec_GCJ=' '
21804 allow_undefined_flag_GCJ=unsupported
21805 # Tell ltmain to make .lib files, not .a files.
21807 # Tell ltmain to make .dll files, not .so files.
21809 # FIXME: Setting linknames here is a bad hack.
21810 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21811 # The linker will automatically build a .lib file if we build a DLL.
21812 old_archive_From_new_cmds_GCJ='true'
21813 # FIXME: Should let the user specify the lib program.
21814 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21815 fix_srcfile_path='`cygpath -w "$srcfile"`'
21816 enable_shared_with_static_runtimes_GCJ=yes
21819 darwin* | rhapsody*)
21821 rhapsody* | darwin1.[012])
21822 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21825 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21826 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21828 case ${MACOSX_DEPLOYMENT_TARGET} in
21830 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21833 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21839 archive_cmds_need_lc_GCJ=no
21840 hardcode_direct_GCJ=no
21841 hardcode_automatic_GCJ=yes
21842 hardcode_shlibpath_var_GCJ=unsupported
21843 whole_archive_flag_spec_GCJ=''
21844 link_all_deplibs_GCJ=yes
21845 if test "$GCC" = yes ; then
21846 output_verbose_link_cmd='echo'
21847 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21848 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21849 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21850 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}'
21851 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}'
21853 case "$cc_basename" in
21855 output_verbose_link_cmd='echo'
21856 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21857 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21858 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21859 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}'
21860 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}'
21870 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21871 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21872 hardcode_shlibpath_var_GCJ=no
21879 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21880 # support. Future versions do this automatically, but an explicit c++rt0.o
21881 # does not break anything, and helps significantly (at the cost of a little
21884 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21885 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21886 hardcode_direct_GCJ=yes
21887 hardcode_shlibpath_var_GCJ=no
21890 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21892 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21893 hardcode_direct_GCJ=yes
21894 hardcode_minus_L_GCJ=yes
21895 hardcode_shlibpath_var_GCJ=no
21898 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21899 freebsd* | kfreebsd*-gnu)
21900 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21901 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21902 hardcode_direct_GCJ=yes
21903 hardcode_shlibpath_var_GCJ=no
21907 if test "$GCC" = yes; then
21908 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'
21910 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'
21912 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21913 hardcode_libdir_separator_GCJ=:
21914 hardcode_direct_GCJ=yes
21916 # hardcode_minus_L: Not really in the search PATH,
21917 # but as the default location of the library.
21918 hardcode_minus_L_GCJ=yes
21919 export_dynamic_flag_spec_GCJ='${wl}-E'
21923 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21924 case "$host_cpu" in
21926 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21929 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21933 case "$host_cpu" in
21935 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21938 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21942 if test "$with_gnu_ld" = no; then
21943 case "$host_cpu" in
21945 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21946 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21947 hardcode_libdir_separator_GCJ=:
21948 hardcode_direct_GCJ=no
21949 hardcode_shlibpath_var_GCJ=no
21952 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21953 hardcode_direct_GCJ=no
21954 hardcode_shlibpath_var_GCJ=no
21956 # hardcode_minus_L: Not really in the search PATH,
21957 # but as the default location of the library.
21958 hardcode_minus_L_GCJ=yes
21961 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21962 hardcode_libdir_separator_GCJ=:
21963 hardcode_direct_GCJ=yes
21964 export_dynamic_flag_spec_GCJ='${wl}-E'
21966 # hardcode_minus_L: Not really in the search PATH,
21967 # but as the default location of the library.
21968 hardcode_minus_L_GCJ=yes
21974 irix5* | irix6* | nonstopux*)
21975 if test "$GCC" = yes; then
21976 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'
21978 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'
21979 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21982 hardcode_libdir_separator_GCJ=:
21983 link_all_deplibs_GCJ=yes
21987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21988 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21990 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21992 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21993 hardcode_direct_GCJ=yes
21994 hardcode_shlibpath_var_GCJ=no
21998 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21999 hardcode_direct_GCJ=yes
22000 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22001 hardcode_libdir_separator_GCJ=:
22002 hardcode_shlibpath_var_GCJ=no
22006 hardcode_direct_GCJ=yes
22007 hardcode_shlibpath_var_GCJ=no
22008 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22009 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22010 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22012 export_dynamic_flag_spec_GCJ='${wl}-E'
22015 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22016 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22020 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22028 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22029 hardcode_minus_L_GCJ=yes
22030 allow_undefined_flag_GCJ=unsupported
22031 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'
22032 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22036 if test "$GCC" = yes; then
22037 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22038 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'
22040 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22041 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'
22043 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22044 hardcode_libdir_separator_GCJ=:
22047 osf4* | osf5*) # as osf3* with the addition of -msym flag
22048 if test "$GCC" = yes; then
22049 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22050 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'
22051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22053 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22054 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'
22055 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~
22056 $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'
22058 # Both c and cxx compiler support -rpath directly
22059 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22061 hardcode_libdir_separator_GCJ=:
22065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22066 hardcode_shlibpath_var_GCJ=no
22067 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22068 runpath_var=LD_RUN_PATH
22069 hardcode_runpath_var=yes
22073 no_undefined_flag_GCJ=' -z text'
22074 if test "$GCC" = yes; then
22075 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22076 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22077 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22079 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22080 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22081 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22084 hardcode_shlibpath_var_GCJ=no
22086 solaris2.[0-5] | solaris2.[0-5].*) ;;
22087 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22088 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22090 link_all_deplibs_GCJ=yes
22094 if test "x$host_vendor" = xsequent; then
22095 # Use $CC to link under sequent, because it throws in some extra .o
22096 # files that make .init and .fini sections work.
22097 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22099 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22101 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22102 hardcode_direct_GCJ=yes
22103 hardcode_minus_L_GCJ=yes
22104 hardcode_shlibpath_var_GCJ=no
22108 case $host_vendor in
22110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22111 hardcode_direct_GCJ=yes # is this really true???
22114 ## LD is ld it makes a PLAMLIB
22115 ## CC just makes a GrossModule.
22116 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22117 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22118 hardcode_direct_GCJ=no
22121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22122 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22125 runpath_var='LD_RUN_PATH'
22126 hardcode_shlibpath_var_GCJ=no
22130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22131 hardcode_shlibpath_var_GCJ=no
22132 export_dynamic_flag_spec_GCJ='-Bexport'
22136 if test -d /usr/nec; then
22137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22138 hardcode_shlibpath_var_GCJ=no
22139 runpath_var=LD_RUN_PATH
22140 hardcode_runpath_var=yes
22146 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22147 hardcode_direct_GCJ=yes
22148 hardcode_minus_L_GCJ=no
22149 hardcode_shlibpath_var_GCJ=no
22150 hardcode_runpath_var=yes
22151 runpath_var=LD_RUN_PATH
22154 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22155 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22156 if test "$GCC" = yes; then
22157 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22159 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22161 runpath_var='LD_RUN_PATH'
22162 hardcode_shlibpath_var_GCJ=no
22166 no_undefined_flag_GCJ=' -z text'
22167 # $CC -shared without GNU ld will not create a library from C++
22168 # object files and a static libstdc++, better avoid it by now
22169 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22170 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22171 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22172 hardcode_libdir_flag_spec_GCJ=
22173 hardcode_shlibpath_var_GCJ=no
22174 runpath_var='LD_RUN_PATH'
22178 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22180 hardcode_shlibpath_var_GCJ=no
22189 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22190 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22191 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22194 if test "$GCC" = yes; then
22195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22199 # Do we need to explicitly link libc?
22201 case "x$archive_cmds_need_lc_GCJ" in
22203 # Assume -lc should be added
22204 archive_cmds_need_lc_GCJ=yes
22206 if test "$enable_shared" = yes && test "$GCC" = yes; then
22207 case $archive_cmds_GCJ in
22209 # FIXME: we may have to deal with multi-command sequences.
22212 # Test whether the compiler implicitly links with -lc since on some
22213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22214 # to ld, don't add -lc before -lgcc.
22215 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22221 (eval $ac_compile) 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } 2>conftest.err; then
22227 libobjs=conftest.$ac_objext
22229 wl=$lt_prog_compiler_wl_GCJ
22235 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22236 allow_undefined_flag_GCJ=
22237 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22238 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); }
22243 archive_cmds_need_lc_GCJ=no
22245 archive_cmds_need_lc_GCJ=yes
22247 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22249 cat conftest.err 1>&5
22252 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22253 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22260 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22261 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22262 library_names_spec=
22263 libname_spec='lib$name'
22267 postuninstall_cmds=
22271 shlibpath_overrides_runpath=unknown
22273 dynamic_linker="$host_os ld.so"
22274 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22275 if test "$GCC" = yes; then
22276 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22277 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22278 # if the path contains ";" then we assume it to be the separator
22279 # otherwise default to the standard path separator (i.e. ":") - it is
22280 # assumed that no part of a normal pathname contains ";" but that should
22281 # okay in the real world where ";" in dirpaths is itself problematic.
22282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22289 need_lib_prefix=unknown
22290 hardcode_into_libs=no
22292 # when you set need_version to no, make sure it does not cause -set_version
22293 # flags to be left without arguments
22294 need_version=unknown
22299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22300 shlibpath_var=LIBPATH
22302 # AIX 3 has no versioning support, so we append a major version to the name.
22303 soname_spec='${libname}${release}${shared_ext}$major'
22310 hardcode_into_libs=yes
22311 if test "$host_cpu" = ia64; then
22312 # AIX 5 supports IA64
22313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22314 shlibpath_var=LD_LIBRARY_PATH
22316 # With GCC up to 2.95.x, collect2 would create an import file
22317 # for dependence libraries. The import file would start with
22318 # the line `#! .'. This would cause the generated library to
22319 # depend on `.', always an invalid library. This was fixed in
22320 # development snapshots of GCC prior to 3.0.
22322 aix4 | aix4.[01] | aix4.[01].*)
22323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22325 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22328 can_build_shared=no
22332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22333 # soname into executable. Probably we can add versioning support to
22334 # collect2, so additional links can be useful in future.
22335 if test "$aix_use_runtimelinking" = yes; then
22336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22337 # instead of lib<name>.a to let people know that these are not
22338 # typical AIX shared libraries.
22339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22341 # We preserve .a as extension for shared libraries through AIX4.2
22342 # and later when we are not doing run time linking.
22343 library_names_spec='${libname}${release}.a $libname.a'
22344 soname_spec='${libname}${release}${shared_ext}$major'
22346 shlibpath_var=LIBPATH
22351 library_names_spec='$libname.ixlibrary $libname.a'
22352 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22353 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'
22357 library_names_spec='${libname}${shared_ext}'
22358 dynamic_linker="$host_os ld.so"
22359 shlibpath_var=LIBRARY_PATH
22365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22366 soname_spec='${libname}${release}${shared_ext}$major'
22367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22368 shlibpath_var=LD_LIBRARY_PATH
22369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22371 # the default ld.so.conf also contains /usr/contrib/lib and
22372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22373 # libtool to hard-code these into programs
22376 cygwin* | mingw* | pw32*)
22377 version_type=windows
22382 case $GCC,$host_os in
22383 yes,cygwin* | yes,mingw* | yes,pw32*)
22384 library_names_spec='$libname.dll.a'
22385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22386 postinstall_cmds='base_file=`basename \${file}`~
22387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22388 dldir=$destdir/`dirname \$dlpath`~
22389 test -d \$dldir || mkdir -p \$dldir~
22390 $install_prog $dir/$dlname \$dldir/$dlname'
22391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22392 dlpath=$dir/\$dldll~
22394 shlibpath_overrides_runpath=yes
22398 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22399 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22400 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22403 # MinGW DLLs use traditional 'lib' prefix
22404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22405 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22406 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22407 # It is most probably a Windows format PATH printed by
22408 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22409 # path with ; separators, and with drive letters. We can handle the
22410 # drive letters (cygwin fileutils understands them), so leave them,
22411 # especially as we might pass files found there to a mingw objdump,
22412 # which wouldn't understand a cygwinified path. Ahh.
22413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22419 # pw32 DLLs use 'pw' prefix rather than 'lib'
22420 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22426 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22429 dynamic_linker='Win32 ld.exe'
22430 # FIXME: first we should search . and the directory the executable is in
22434 darwin* | rhapsody*)
22435 dynamic_linker="$host_os dyld"
22436 version_type=darwin
22439 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22440 soname_spec='${libname}${release}${major}$shared_ext'
22441 shlibpath_overrides_runpath=yes
22442 shlibpath_var=DYLD_LIBRARY_PATH
22443 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22444 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22445 if test "$GCC" = yes; then
22446 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"`
22448 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22450 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22458 soname_spec='${libname}${release}${shared_ext}$major'
22459 shlibpath_var=LD_LIBRARY_PATH
22470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22471 soname_spec='${libname}${release}${shared_ext}$major'
22472 shlibpath_var=LD_LIBRARY_PATH
22473 shlibpath_overrides_runpath=no
22474 hardcode_into_libs=yes
22475 dynamic_linker='GNU ld.so'
22479 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22480 version_type=freebsd-$objformat
22481 case $version_type in
22483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22492 shlibpath_var=LD_LIBRARY_PATH
22495 shlibpath_overrides_runpath=yes
22497 freebsd3.01* | freebsdelf3.01*)
22498 shlibpath_overrides_runpath=yes
22499 hardcode_into_libs=yes
22502 shlibpath_overrides_runpath=no
22503 hardcode_into_libs=yes
22512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22513 soname_spec='${libname}${release}${shared_ext}$major'
22514 shlibpath_var=LD_LIBRARY_PATH
22515 hardcode_into_libs=yes
22518 hpux9* | hpux10* | hpux11*)
22519 # Give a soname corresponding to the major version so that dld.sl refuses to
22520 # link against other versions.
22524 case "$host_cpu" in
22527 hardcode_into_libs=yes
22528 dynamic_linker="$host_os dld.so"
22529 shlibpath_var=LD_LIBRARY_PATH
22530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22532 soname_spec='${libname}${release}${shared_ext}$major'
22533 if test "X$HPUX_IA64_MODE" = X32; then
22534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22536 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22542 hardcode_into_libs=yes
22543 dynamic_linker="$host_os dld.sl"
22544 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22547 soname_spec='${libname}${release}${shared_ext}$major'
22548 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22553 dynamic_linker="$host_os dld.sl"
22554 shlibpath_var=SHLIB_PATH
22555 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22557 soname_spec='${libname}${release}${shared_ext}$major'
22560 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22561 postinstall_cmds='chmod 555 $lib'
22564 irix5* | irix6* | nonstopux*)
22566 nonstopux*) version_type=nonstopux ;;
22568 if test "$lt_cv_prog_gnu_ld" = yes; then
22576 soname_spec='${libname}${release}${shared_ext}$major'
22577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22579 irix5* | nonstopux*)
22580 libsuff= shlibsuff=
22583 case $LD in # libtool.m4 will add one of these switches to LD
22584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22585 libsuff= shlibsuff= libmagic=32-bit;;
22586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22587 libsuff=32 shlibsuff=N32 libmagic=N32;;
22588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22590 *) libsuff= shlibsuff= libmagic=never-match;;
22594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22595 shlibpath_overrides_runpath=no
22596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22598 hardcode_into_libs=yes
22601 # No shared lib support for Linux oldld, aout, or coff.
22602 linux*oldld* | linux*aout* | linux*coff*)
22606 # This must be Linux ELF.
22611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612 soname_spec='${libname}${release}${shared_ext}$major'
22613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22614 shlibpath_var=LD_LIBRARY_PATH
22615 shlibpath_overrides_runpath=no
22616 # This implies no fast_install, which is unacceptable.
22617 # Some rework will be needed to allow for fast_install
22618 # before this can be enabled.
22619 hardcode_into_libs=yes
22621 # Append ld.so.conf contents to the search path
22622 if test -f /etc/ld.so.conf; then
22623 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22627 # We used to test for /lib/ld.so.1 and disable shared libraries on
22628 # powerpc, because MkLinux only supported shared libraries with the
22629 # GNU dynamic linker. Since this was broken with cross compilers,
22630 # most powerpc-linux boxes support dynamic linking these days and
22631 # people can always --disable-shared, the test was removed, and we
22632 # assume the GNU/Linux dynamic linker is in use.
22633 dynamic_linker='GNU/Linux ld.so'
22640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22641 soname_spec='${libname}${release}${shared_ext}$major'
22642 shlibpath_var=LD_LIBRARY_PATH
22643 shlibpath_overrides_runpath=no
22644 hardcode_into_libs=yes
22645 dynamic_linker='GNU ld.so'
22652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22655 dynamic_linker='NetBSD (a.out) ld.so'
22657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22658 soname_spec='${libname}${release}${shared_ext}$major'
22659 dynamic_linker='NetBSD ld.elf_so'
22661 shlibpath_var=LD_LIBRARY_PATH
22662 shlibpath_overrides_runpath=yes
22663 hardcode_into_libs=yes
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22669 shlibpath_var=LD_LIBRARY_PATH
22670 shlibpath_overrides_runpath=yes
22677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678 soname_spec='${libname}${release}${shared_ext}$major'
22679 shlibpath_var=LD_LIBRARY_PATH
22680 shlibpath_overrides_runpath=yes
22687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22689 shlibpath_var=LD_LIBRARY_PATH
22690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22692 openbsd2.[89] | openbsd2.[89].*)
22693 shlibpath_overrides_runpath=no
22696 shlibpath_overrides_runpath=yes
22700 shlibpath_overrides_runpath=yes
22705 libname_spec='$name'
22708 library_names_spec='$libname${shared_ext} $libname.a'
22709 dynamic_linker='OS/2 ld.exe'
22710 shlibpath_var=LIBPATH
22713 osf3* | osf4* | osf5*)
22717 soname_spec='${libname}${release}${shared_ext}$major'
22718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22719 shlibpath_var=LD_LIBRARY_PATH
22720 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22721 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22726 soname_spec='${libname}${release}${shared_ext}$major'
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 shlibpath_var=LD_LIBRARY_PATH
22735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22736 soname_spec='${libname}${release}${shared_ext}$major'
22737 shlibpath_var=LD_LIBRARY_PATH
22738 shlibpath_overrides_runpath=yes
22739 hardcode_into_libs=yes
22740 # ldd complains unless libraries are executable
22741 postinstall_cmds='chmod +x $lib'
22746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22747 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22748 shlibpath_var=LD_LIBRARY_PATH
22749 shlibpath_overrides_runpath=yes
22750 if test "$with_gnu_ld" = yes; then
22756 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22759 soname_spec='${libname}${release}${shared_ext}$major'
22760 shlibpath_var=LD_LIBRARY_PATH
22761 case $host_vendor in
22763 shlibpath_overrides_runpath=no
22765 export_dynamic_flag_spec='${wl}-Blargedynsym'
22766 runpath_var=LD_RUN_PATH
22774 shlibpath_overrides_runpath=no
22775 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22781 if test -d /usr/nec ;then
22783 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22784 soname_spec='$libname${shared_ext}.$major'
22785 shlibpath_var=LD_LIBRARY_PATH
22791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792 soname_spec='${libname}${release}${shared_ext}$major'
22793 shlibpath_var=LD_LIBRARY_PATH
22800 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22801 echo "${ECHO_T}$dynamic_linker" >&6
22802 test "$dynamic_linker" = no && can_build_shared=no
22804 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22805 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22806 hardcode_action_GCJ=
22807 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22808 test -n "$runpath_var_GCJ" || \
22809 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22811 # We can hardcode non-existant directories.
22812 if test "$hardcode_direct_GCJ" != no &&
22813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22814 # have to relink, otherwise we might link with an installed library
22815 # when we should be linking with a yet-to-be-installed one
22816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22817 test "$hardcode_minus_L_GCJ" != no; then
22818 # Linking always hardcodes the temporary library directory.
22819 hardcode_action_GCJ=relink
22821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22822 hardcode_action_GCJ=immediate
22825 # We cannot hardcode anything, or else we can only hardcode existing
22827 hardcode_action_GCJ=unsupported
22829 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22830 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22832 if test "$hardcode_action_GCJ" = relink; then
22833 # Fast installation is not supported
22834 enable_fast_install=no
22835 elif test "$shlibpath_overrides_runpath" = yes ||
22836 test "$enable_shared" = no; then
22837 # Fast installation is not necessary
22838 enable_fast_install=needless
22843 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22844 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22845 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22847 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22848 echo "$as_me:$LINENO: result: yes" >&5
22849 echo "${ECHO_T}yes" >&6
22851 # FIXME - insert some real tests, host_os isn't really good enough
22854 if test -n "$STRIP" ; then
22855 striplib="$STRIP -x"
22856 echo "$as_me:$LINENO: result: yes" >&5
22857 echo "${ECHO_T}yes" >&6
22859 echo "$as_me:$LINENO: result: no" >&5
22860 echo "${ECHO_T}no" >&6
22864 echo "$as_me:$LINENO: result: no" >&5
22865 echo "${ECHO_T}no" >&6
22870 if test "x$enable_dlopen" != xyes; then
22871 enable_dlopen=unknown
22872 enable_dlopen_self=unknown
22873 enable_dlopen_self_static=unknown
22880 lt_cv_dlopen="load_add_on"
22882 lt_cv_dlopen_self=yes
22886 lt_cv_dlopen="LoadLibrary"
22891 lt_cv_dlopen="dlopen"
22896 # if libdl is installed we need to link against it
22897 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22898 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22900 echo $ECHO_N "(cached) $ECHO_C" >&6
22902 ac_check_lib_save_LIBS=$LIBS
22904 cat >conftest.$ac_ext <<_ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22911 /* Override any gcc2 internal prototype to avoid an error. */
22915 /* We use char because int might match the return type of a gcc2
22916 builtin and then its argument prototype would still apply. */
22926 rm -f conftest.$ac_objext conftest$ac_exeext
22927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22928 (eval $ac_link) 2>conftest.er1
22930 grep -v '^ *+' conftest.er1 >conftest.err
22932 cat conftest.err >&5
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } &&
22935 { ac_try='test -z "$ac_c_werror_flag"
22936 || test ! -s conftest.err'
22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938 (eval $ac_try) 2>&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; } &&
22942 { ac_try='test -s conftest$ac_exeext'
22943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944 (eval $ac_try) 2>&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); }; }; then
22948 ac_cv_lib_dl_dlopen=yes
22950 echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22953 ac_cv_lib_dl_dlopen=no
22955 rm -f conftest.err conftest.$ac_objext \
22956 conftest$ac_exeext conftest.$ac_ext
22957 LIBS=$ac_check_lib_save_LIBS
22959 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22961 if test $ac_cv_lib_dl_dlopen = yes; then
22962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22965 lt_cv_dlopen="dyld"
22967 lt_cv_dlopen_self=yes
22974 echo "$as_me:$LINENO: checking for shl_load" >&5
22975 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22976 if test "${ac_cv_func_shl_load+set}" = set; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
22979 cat >conftest.$ac_ext <<_ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22985 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22987 #define shl_load innocuous_shl_load
22989 /* System header to define __stub macros and hopefully few prototypes,
22990 which can conflict with char shl_load (); below.
22991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22992 <limits.h> exists even on freestanding compilers. */
22995 # include <limits.h>
22997 # include <assert.h>
23002 /* Override any gcc2 internal prototype to avoid an error. */
23007 /* We use char because int might match the return type of a gcc2
23008 builtin and then its argument prototype would still apply. */
23010 /* The GNU C library defines this for functions which it implements
23011 to always fail with ENOSYS. Some functions are actually named
23012 something starting with __ and the normal name is an alias. */
23013 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23016 char (*f) () = shl_load;
23025 return f != shl_load;
23030 rm -f conftest.$ac_objext conftest$ac_exeext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23032 (eval $ac_link) 2>conftest.er1
23034 grep -v '^ *+' conftest.er1 >conftest.err
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } &&
23039 { ac_try='test -z "$ac_c_werror_flag"
23040 || test ! -s conftest.err'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest$ac_exeext'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 ac_cv_func_shl_load=yes
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 ac_cv_func_shl_load=no
23059 rm -f conftest.err conftest.$ac_objext \
23060 conftest$ac_exeext conftest.$ac_ext
23062 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23063 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23064 if test $ac_cv_func_shl_load = yes; then
23065 lt_cv_dlopen="shl_load"
23067 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23068 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23069 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23070 echo $ECHO_N "(cached) $ECHO_C" >&6
23072 ac_check_lib_save_LIBS=$LIBS
23074 cat >conftest.$ac_ext <<_ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h. */
23081 /* Override any gcc2 internal prototype to avoid an error. */
23085 /* We use char because int might match the return type of a gcc2
23086 builtin and then its argument prototype would still apply. */
23096 rm -f conftest.$ac_objext conftest$ac_exeext
23097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23098 (eval $ac_link) 2>conftest.er1
23100 grep -v '^ *+' conftest.er1 >conftest.err
23102 cat conftest.err >&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } &&
23105 { ac_try='test -z "$ac_c_werror_flag"
23106 || test ! -s conftest.err'
23107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108 (eval $ac_try) 2>&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); }; } &&
23112 { ac_try='test -s conftest$ac_exeext'
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 ac_cv_lib_dld_shl_load=yes
23120 echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23123 ac_cv_lib_dld_shl_load=no
23125 rm -f conftest.err conftest.$ac_objext \
23126 conftest$ac_exeext conftest.$ac_ext
23127 LIBS=$ac_check_lib_save_LIBS
23129 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23130 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23131 if test $ac_cv_lib_dld_shl_load = yes; then
23132 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23134 echo "$as_me:$LINENO: checking for dlopen" >&5
23135 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23136 if test "${ac_cv_func_dlopen+set}" = set; then
23137 echo $ECHO_N "(cached) $ECHO_C" >&6
23139 cat >conftest.$ac_ext <<_ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23145 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23147 #define dlopen innocuous_dlopen
23149 /* System header to define __stub macros and hopefully few prototypes,
23150 which can conflict with char dlopen (); below.
23151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23152 <limits.h> exists even on freestanding compilers. */
23155 # include <limits.h>
23157 # include <assert.h>
23162 /* Override any gcc2 internal prototype to avoid an error. */
23167 /* We use char because int might match the return type of a gcc2
23168 builtin and then its argument prototype would still apply. */
23170 /* The GNU C library defines this for functions which it implements
23171 to always fail with ENOSYS. Some functions are actually named
23172 something starting with __ and the normal name is an alias. */
23173 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23176 char (*f) () = dlopen;
23185 return f != dlopen;
23190 rm -f conftest.$ac_objext conftest$ac_exeext
23191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23192 (eval $ac_link) 2>conftest.er1
23194 grep -v '^ *+' conftest.er1 >conftest.err
23196 cat conftest.err >&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } &&
23199 { ac_try='test -z "$ac_c_werror_flag"
23200 || test ! -s conftest.err'
23201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202 (eval $ac_try) 2>&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); }; } &&
23206 { ac_try='test -s conftest$ac_exeext'
23207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208 (eval $ac_try) 2>&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); }; }; then
23212 ac_cv_func_dlopen=yes
23214 echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23217 ac_cv_func_dlopen=no
23219 rm -f conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
23222 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23223 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23224 if test $ac_cv_func_dlopen = yes; then
23225 lt_cv_dlopen="dlopen"
23227 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23228 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23229 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23232 ac_check_lib_save_LIBS=$LIBS
23234 cat >conftest.$ac_ext <<_ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23241 /* Override any gcc2 internal prototype to avoid an error. */
23245 /* We use char because int might match the return type of a gcc2
23246 builtin and then its argument prototype would still apply. */
23256 rm -f conftest.$ac_objext conftest$ac_exeext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23258 (eval $ac_link) 2>conftest.er1
23260 grep -v '^ *+' conftest.er1 >conftest.err
23262 cat conftest.err >&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } &&
23265 { ac_try='test -z "$ac_c_werror_flag"
23266 || test ! -s conftest.err'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; } &&
23272 { ac_try='test -s conftest$ac_exeext'
23273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; }; then
23278 ac_cv_lib_dl_dlopen=yes
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 ac_cv_lib_dl_dlopen=no
23285 rm -f conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
23287 LIBS=$ac_check_lib_save_LIBS
23289 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23290 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23291 if test $ac_cv_lib_dl_dlopen = yes; then
23292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23294 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23295 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23296 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23297 echo $ECHO_N "(cached) $ECHO_C" >&6
23299 ac_check_lib_save_LIBS=$LIBS
23300 LIBS="-lsvld $LIBS"
23301 cat >conftest.$ac_ext <<_ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23308 /* Override any gcc2 internal prototype to avoid an error. */
23312 /* We use char because int might match the return type of a gcc2
23313 builtin and then its argument prototype would still apply. */
23323 rm -f conftest.$ac_objext conftest$ac_exeext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23325 (eval $ac_link) 2>conftest.er1
23327 grep -v '^ *+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } &&
23332 { ac_try='test -z "$ac_c_werror_flag"
23333 || test ! -s conftest.err'
23334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335 (eval $ac_try) 2>&5
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; } &&
23339 { ac_try='test -s conftest$ac_exeext'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; }; then
23345 ac_cv_lib_svld_dlopen=yes
23347 echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23350 ac_cv_lib_svld_dlopen=no
23352 rm -f conftest.err conftest.$ac_objext \
23353 conftest$ac_exeext conftest.$ac_ext
23354 LIBS=$ac_check_lib_save_LIBS
23356 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23357 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23358 if test $ac_cv_lib_svld_dlopen = yes; then
23359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23361 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23362 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23363 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23364 echo $ECHO_N "(cached) $ECHO_C" >&6
23366 ac_check_lib_save_LIBS=$LIBS
23368 cat >conftest.$ac_ext <<_ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h. */
23375 /* Override any gcc2 internal prototype to avoid an error. */
23379 /* We use char because int might match the return type of a gcc2
23380 builtin and then its argument prototype would still apply. */
23390 rm -f conftest.$ac_objext conftest$ac_exeext
23391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23392 (eval $ac_link) 2>conftest.er1
23394 grep -v '^ *+' conftest.er1 >conftest.err
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } &&
23399 { ac_try='test -z "$ac_c_werror_flag"
23400 || test ! -s conftest.err'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; } &&
23406 { ac_try='test -s conftest$ac_exeext'
23407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408 (eval $ac_try) 2>&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); }; }; then
23412 ac_cv_lib_dld_dld_link=yes
23414 echo "$as_me: failed program was:" >&5
23415 sed 's/^/| /' conftest.$ac_ext >&5
23417 ac_cv_lib_dld_dld_link=no
23419 rm -f conftest.err conftest.$ac_objext \
23420 conftest$ac_exeext conftest.$ac_ext
23421 LIBS=$ac_check_lib_save_LIBS
23423 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23424 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23425 if test $ac_cv_lib_dld_dld_link = yes; then
23426 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23447 if test "x$lt_cv_dlopen" != xno; then
23453 case $lt_cv_dlopen in
23455 save_CPPFLAGS="$CPPFLAGS"
23456 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23458 save_LDFLAGS="$LDFLAGS"
23459 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23462 LIBS="$lt_cv_dlopen_libs $LIBS"
23464 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23465 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23466 if test "${lt_cv_dlopen_self+set}" = set; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23469 if test "$cross_compiling" = yes; then :
23470 lt_cv_dlopen_self=cross
23472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23473 lt_status=$lt_dlunknown
23474 cat > conftest.$ac_ext <<EOF
23475 #line 23475 "configure"
23476 #include "confdefs.h"
23485 # define LT_DLGLOBAL RTLD_GLOBAL
23488 # define LT_DLGLOBAL DL_GLOBAL
23490 # define LT_DLGLOBAL 0
23494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23495 find out it does not work in some platform. */
23496 #ifndef LT_DLLAZY_OR_NOW
23498 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23501 # define LT_DLLAZY_OR_NOW DL_LAZY
23504 # define LT_DLLAZY_OR_NOW RTLD_NOW
23507 # define LT_DLLAZY_OR_NOW DL_NOW
23509 # define LT_DLLAZY_OR_NOW 0
23517 extern "C" void exit (int);
23520 void fnord() { int i=42;}
23523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23524 int status = $lt_dlunknown;
23528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23529 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23530 /* dlclose (self); */
23536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23537 (eval $ac_link) 2>&5
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23541 (./conftest; exit; ) 2>/dev/null
23543 case x$lt_status in
23544 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23545 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23546 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23549 # compilation failed
23550 lt_cv_dlopen_self=no
23557 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23558 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23560 if test "x$lt_cv_dlopen_self" = xyes; then
23561 LDFLAGS="$LDFLAGS $link_static_flag"
23562 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23563 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23564 if test "${lt_cv_dlopen_self_static+set}" = set; then
23565 echo $ECHO_N "(cached) $ECHO_C" >&6
23567 if test "$cross_compiling" = yes; then :
23568 lt_cv_dlopen_self_static=cross
23570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23571 lt_status=$lt_dlunknown
23572 cat > conftest.$ac_ext <<EOF
23573 #line 23573 "configure"
23574 #include "confdefs.h"
23583 # define LT_DLGLOBAL RTLD_GLOBAL
23586 # define LT_DLGLOBAL DL_GLOBAL
23588 # define LT_DLGLOBAL 0
23592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23593 find out it does not work in some platform. */
23594 #ifndef LT_DLLAZY_OR_NOW
23596 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23599 # define LT_DLLAZY_OR_NOW DL_LAZY
23602 # define LT_DLLAZY_OR_NOW RTLD_NOW
23605 # define LT_DLLAZY_OR_NOW DL_NOW
23607 # define LT_DLLAZY_OR_NOW 0
23615 extern "C" void exit (int);
23618 void fnord() { int i=42;}
23621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23622 int status = $lt_dlunknown;
23626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23628 /* dlclose (self); */
23634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23635 (eval $ac_link) 2>&5
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23639 (./conftest; exit; ) 2>/dev/null
23641 case x$lt_status in
23642 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23643 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23644 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23647 # compilation failed
23648 lt_cv_dlopen_self_static=no
23655 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23656 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23659 CPPFLAGS="$save_CPPFLAGS"
23660 LDFLAGS="$save_LDFLAGS"
23665 case $lt_cv_dlopen_self in
23666 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23667 *) enable_dlopen_self=unknown ;;
23670 case $lt_cv_dlopen_self_static in
23671 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23672 *) enable_dlopen_self_static=unknown ;;
23677 # The else clause should only fire when bootstrapping the
23678 # libtool distribution, otherwise you forgot to ship ltmain.sh
23679 # with your package, and you will get complaints that there are
23680 # no rules to generate ltmain.sh.
23681 if test -f "$ltmain"; then
23682 # See if we are running on zsh, and set the options which allow our commands through
23683 # without removal of \ escapes.
23684 if test -n "${ZSH_VERSION+set}" ; then
23685 setopt NO_GLOB_SUBST
23687 # Now quote all the things that may contain metacharacters while being
23688 # careful not to overquote the AC_SUBSTed values. We take copies of the
23689 # variables and quote the copies for generation of the libtool script.
23690 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23692 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23693 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23694 deplibs_check_method reload_flag reload_cmds need_locks \
23695 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23696 lt_cv_sys_global_symbol_to_c_name_address \
23697 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23698 old_postinstall_cmds old_postuninstall_cmds \
23702 lt_prog_compiler_wl_GCJ \
23703 lt_prog_compiler_pic_GCJ \
23704 lt_prog_compiler_static_GCJ \
23705 lt_prog_compiler_no_builtin_flag_GCJ \
23706 export_dynamic_flag_spec_GCJ \
23707 thread_safe_flag_spec_GCJ \
23708 whole_archive_flag_spec_GCJ \
23709 enable_shared_with_static_runtimes_GCJ \
23710 old_archive_cmds_GCJ \
23711 old_archive_from_new_cmds_GCJ \
23712 predep_objects_GCJ \
23713 postdep_objects_GCJ \
23716 compiler_lib_search_path_GCJ \
23718 archive_expsym_cmds_GCJ \
23719 postinstall_cmds_GCJ \
23720 postuninstall_cmds_GCJ \
23721 old_archive_from_expsyms_cmds_GCJ \
23722 allow_undefined_flag_GCJ \
23723 no_undefined_flag_GCJ \
23724 export_symbols_cmds_GCJ \
23725 hardcode_libdir_flag_spec_GCJ \
23726 hardcode_libdir_flag_spec_ld_GCJ \
23727 hardcode_libdir_separator_GCJ \
23728 hardcode_automatic_GCJ \
23730 module_expsym_cmds_GCJ \
23731 lt_cv_prog_compiler_c_o_GCJ \
23732 exclude_expsyms_GCJ \
23733 include_expsyms_GCJ; do
23736 old_archive_cmds_GCJ | \
23737 old_archive_from_new_cmds_GCJ | \
23738 archive_cmds_GCJ | \
23739 archive_expsym_cmds_GCJ | \
23740 module_cmds_GCJ | \
23741 module_expsym_cmds_GCJ | \
23742 old_archive_from_expsyms_cmds_GCJ | \
23743 export_symbols_cmds_GCJ | \
23744 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23745 postinstall_cmds | postuninstall_cmds | \
23746 old_postinstall_cmds | old_postuninstall_cmds | \
23747 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23748 # Double-quote double-evaled strings.
23749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23758 *'\$0 --fallback-echo"')
23759 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23765 cat <<__EOF__ >> "$cfgfile"
23766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23770 # Shell to use when invoking shell scripts.
23773 # Whether or not to build shared libraries.
23774 build_libtool_libs=$enable_shared
23776 # Whether or not to build static libraries.
23777 build_old_libs=$enable_static
23779 # Whether or not to add -lc for building shared libraries.
23780 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23782 # Whether or not to disallow shared libs when runtime libs are static
23783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23785 # Whether or not to optimize for fast installation.
23786 fast_install=$enable_fast_install
23789 host_alias=$host_alias
23792 # An echo program that does not interpret backslashes.
23797 AR_FLAGS=$lt_AR_FLAGS
23802 # A language-specific compiler.
23803 CC=$lt_compiler_GCJ
23805 # Is the compiler the GNU C compiler?
23811 # The linker used to build libraries.
23814 # Whether we need hard or soft links.
23817 # A BSD-compatible nm program.
23820 # A symbol stripping program
23823 # Used to examine libraries when file_magic_cmd begins "file"
23824 MAGIC_CMD=$MAGIC_CMD
23826 # Used on cygwin: DLL creation program.
23829 # Used on cygwin: object dumper.
23832 # Used on cygwin: assembler.
23835 # The name of the directory that contains temporary libtool files.
23838 # How to create reloadable object files.
23839 reload_flag=$lt_reload_flag
23840 reload_cmds=$lt_reload_cmds
23842 # How to pass a linker flag through the compiler.
23843 wl=$lt_lt_prog_compiler_wl_GCJ
23845 # Object file suffix (normally "o").
23846 objext="$ac_objext"
23848 # Old archive suffix (normally "a").
23851 # Shared library suffix (normally ".so").
23852 shrext_cmds='$shrext_cmds'
23854 # Executable file suffix (normally "").
23857 # Additional compiler flags for building library objects.
23858 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23861 # What is the maximum length of a command?
23862 max_cmd_len=$lt_cv_sys_max_cmd_len
23864 # Does compiler simultaneously support -c and -o options?
23865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23867 # Must we lock files when doing compilation ?
23868 need_locks=$lt_need_locks
23870 # Do we need the lib prefix for modules?
23871 need_lib_prefix=$need_lib_prefix
23873 # Do we need a version for libraries?
23874 need_version=$need_version
23876 # Whether dlopen is supported.
23877 dlopen_support=$enable_dlopen
23879 # Whether dlopen of programs is supported.
23880 dlopen_self=$enable_dlopen_self
23882 # Whether dlopen of statically linked programs is supported.
23883 dlopen_self_static=$enable_dlopen_self_static
23885 # Compiler flag to prevent dynamic linking.
23886 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23888 # Compiler flag to turn off builtin functions.
23889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23891 # Compiler flag to allow reflexive dlopens.
23892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23894 # Compiler flag to generate shared objects directly from archives.
23895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23897 # Compiler flag to generate thread-safe objects.
23898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23900 # Library versioning type.
23901 version_type=$version_type
23903 # Format of library name prefix.
23904 libname_spec=$lt_libname_spec
23906 # List of archive names. First name is the real one, the rest are links.
23907 # The last name is the one that the linker finds with -lNAME.
23908 library_names_spec=$lt_library_names_spec
23910 # The coded name of the library, if different from the real name.
23911 soname_spec=$lt_soname_spec
23913 # Commands used to build and install an old-style archive.
23915 old_archive_cmds=$lt_old_archive_cmds_GCJ
23916 old_postinstall_cmds=$lt_old_postinstall_cmds
23917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23919 # Create an old-style archive from a shared archive.
23920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23922 # Create a temporary old-style archive to link instead of a shared archive.
23923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23925 # Commands used to build and install a shared archive.
23926 archive_cmds=$lt_archive_cmds_GCJ
23927 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23928 postinstall_cmds=$lt_postinstall_cmds
23929 postuninstall_cmds=$lt_postuninstall_cmds
23931 # Commands used to build a loadable module (assumed same as above if empty)
23932 module_cmds=$lt_module_cmds_GCJ
23933 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23935 # Commands to strip libraries.
23936 old_striplib=$lt_old_striplib
23937 striplib=$lt_striplib
23939 # Dependencies to place before the objects being linked to create a
23941 predep_objects=$lt_predep_objects_GCJ
23943 # Dependencies to place after the objects being linked to create a
23945 postdep_objects=$lt_postdep_objects_GCJ
23947 # Dependencies to place before the objects being linked to create a
23949 predeps=$lt_predeps_GCJ
23951 # Dependencies to place after the objects being linked to create a
23953 postdeps=$lt_postdeps_GCJ
23955 # The library search path used internally by the compiler when linking
23956 # a shared library.
23957 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23959 # Method to check whether dependent libraries are shared objects.
23960 deplibs_check_method=$lt_deplibs_check_method
23962 # Command to use when deplibs_check_method == file_magic.
23963 file_magic_cmd=$lt_file_magic_cmd
23965 # Flag that allows shared libraries with undefined symbols to be built.
23966 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23968 # Flag that forces no undefined symbols.
23969 no_undefined_flag=$lt_no_undefined_flag_GCJ
23971 # Commands used to finish a libtool library installation in a directory.
23972 finish_cmds=$lt_finish_cmds
23974 # Same as above, but a single script fragment to be evaled but not shown.
23975 finish_eval=$lt_finish_eval
23977 # Take the output of nm and produce a listing of raw symbols and C names.
23978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23980 # Transform the output of nm in a proper C declaration
23981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23983 # Transform the output of nm in a C name address pair
23984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23986 # This is the shared library runtime path variable.
23987 runpath_var=$runpath_var
23989 # This is the shared library path variable.
23990 shlibpath_var=$shlibpath_var
23992 # Is shlibpath searched before the hard-coded library search path?
23993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23995 # How to hardcode a shared library path into an executable.
23996 hardcode_action=$hardcode_action_GCJ
23998 # Whether we should hardcode library paths into libraries.
23999 hardcode_into_libs=$hardcode_into_libs
24001 # Flag to hardcode \$libdir into a binary during linking.
24002 # This must work even if \$libdir does not exist.
24003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24005 # If ld is used when linking, flag to hardcode \$libdir into
24006 # a binary during linking. This must work even if \$libdir does
24008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24010 # Whether we need a single -rpath flag with a separated argument.
24011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24014 # resulting binary.
24015 hardcode_direct=$hardcode_direct_GCJ
24017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24018 # resulting binary.
24019 hardcode_minus_L=$hardcode_minus_L_GCJ
24021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24022 # the resulting binary.
24023 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24025 # Set to yes if building a shared library automatically hardcodes DIR into the library
24026 # and all subsequent libraries and executables linked against it.
24027 hardcode_automatic=$hardcode_automatic_GCJ
24029 # Variables whose values should be saved in libtool wrapper scripts and
24030 # restored at relink time.
24031 variables_saved_for_relink="$variables_saved_for_relink"
24033 # Whether libtool must link a program against all its dependency libraries.
24034 link_all_deplibs=$link_all_deplibs_GCJ
24036 # Compile-time system search path for libraries
24037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24039 # Run-time system search path for libraries
24040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24042 # Fix the shell variable \$srcfile for the compiler.
24043 fix_srcfile_path="$fix_srcfile_path_GCJ"
24045 # Set to yes if exported symbols are required.
24046 always_export_symbols=$always_export_symbols_GCJ
24048 # The commands to list exported symbols.
24049 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24051 # The commands to extract the exported symbol list from a shared archive.
24052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24054 # Symbols that should not be listed in the preloaded symbols.
24055 exclude_expsyms=$lt_exclude_expsyms_GCJ
24057 # Symbols that must always be exported.
24058 include_expsyms=$lt_include_expsyms_GCJ
24060 # ### END LIBTOOL TAG CONFIG: $tagname
24066 # If there is no Makefile yet, we rely on a make rule to execute
24067 # `config.status --recheck' to rerun these tests and create the
24068 # libtool script then.
24069 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24070 if test -f "$ltmain_in"; then
24071 test -f Makefile && make "$ltmain"
24077 ac_cpp='$CPP $CPPFLAGS'
24078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24091 ac_cpp='$CPP $CPPFLAGS'
24092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24097 # Source file extension for RC test sources.
24100 # Object file extension for compiled RC test sources.
24104 # Code to be used in simple compile tests
24105 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24107 # Code to be used in simple link tests
24108 lt_simple_link_test_code="$lt_simple_compile_test_code"
24110 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24112 # If no C compiler was specified, use CC.
24115 # Allow CC to be a program name with arguments.
24119 # Allow CC to be a program name with arguments.
24124 lt_cv_prog_compiler_c_o_RC=yes
24126 # The else clause should only fire when bootstrapping the
24127 # libtool distribution, otherwise you forgot to ship ltmain.sh
24128 # with your package, and you will get complaints that there are
24129 # no rules to generate ltmain.sh.
24130 if test -f "$ltmain"; then
24131 # See if we are running on zsh, and set the options which allow our commands through
24132 # without removal of \ escapes.
24133 if test -n "${ZSH_VERSION+set}" ; then
24134 setopt NO_GLOB_SUBST
24136 # Now quote all the things that may contain metacharacters while being
24137 # careful not to overquote the AC_SUBSTed values. We take copies of the
24138 # variables and quote the copies for generation of the libtool script.
24139 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24141 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24142 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24143 deplibs_check_method reload_flag reload_cmds need_locks \
24144 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24145 lt_cv_sys_global_symbol_to_c_name_address \
24146 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24147 old_postinstall_cmds old_postuninstall_cmds \
24151 lt_prog_compiler_wl_RC \
24152 lt_prog_compiler_pic_RC \
24153 lt_prog_compiler_static_RC \
24154 lt_prog_compiler_no_builtin_flag_RC \
24155 export_dynamic_flag_spec_RC \
24156 thread_safe_flag_spec_RC \
24157 whole_archive_flag_spec_RC \
24158 enable_shared_with_static_runtimes_RC \
24159 old_archive_cmds_RC \
24160 old_archive_from_new_cmds_RC \
24161 predep_objects_RC \
24162 postdep_objects_RC \
24165 compiler_lib_search_path_RC \
24167 archive_expsym_cmds_RC \
24168 postinstall_cmds_RC \
24169 postuninstall_cmds_RC \
24170 old_archive_from_expsyms_cmds_RC \
24171 allow_undefined_flag_RC \
24172 no_undefined_flag_RC \
24173 export_symbols_cmds_RC \
24174 hardcode_libdir_flag_spec_RC \
24175 hardcode_libdir_flag_spec_ld_RC \
24176 hardcode_libdir_separator_RC \
24177 hardcode_automatic_RC \
24179 module_expsym_cmds_RC \
24180 lt_cv_prog_compiler_c_o_RC \
24181 exclude_expsyms_RC \
24182 include_expsyms_RC; do
24185 old_archive_cmds_RC | \
24186 old_archive_from_new_cmds_RC | \
24187 archive_cmds_RC | \
24188 archive_expsym_cmds_RC | \
24190 module_expsym_cmds_RC | \
24191 old_archive_from_expsyms_cmds_RC | \
24192 export_symbols_cmds_RC | \
24193 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24194 postinstall_cmds | postuninstall_cmds | \
24195 old_postinstall_cmds | old_postuninstall_cmds | \
24196 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24197 # Double-quote double-evaled strings.
24198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24207 *'\$0 --fallback-echo"')
24208 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24214 cat <<__EOF__ >> "$cfgfile"
24215 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24217 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24219 # Shell to use when invoking shell scripts.
24222 # Whether or not to build shared libraries.
24223 build_libtool_libs=$enable_shared
24225 # Whether or not to build static libraries.
24226 build_old_libs=$enable_static
24228 # Whether or not to add -lc for building shared libraries.
24229 build_libtool_need_lc=$archive_cmds_need_lc_RC
24231 # Whether or not to disallow shared libs when runtime libs are static
24232 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24234 # Whether or not to optimize for fast installation.
24235 fast_install=$enable_fast_install
24238 host_alias=$host_alias
24241 # An echo program that does not interpret backslashes.
24246 AR_FLAGS=$lt_AR_FLAGS
24251 # A language-specific compiler.
24254 # Is the compiler the GNU C compiler?
24260 # The linker used to build libraries.
24263 # Whether we need hard or soft links.
24266 # A BSD-compatible nm program.
24269 # A symbol stripping program
24272 # Used to examine libraries when file_magic_cmd begins "file"
24273 MAGIC_CMD=$MAGIC_CMD
24275 # Used on cygwin: DLL creation program.
24278 # Used on cygwin: object dumper.
24281 # Used on cygwin: assembler.
24284 # The name of the directory that contains temporary libtool files.
24287 # How to create reloadable object files.
24288 reload_flag=$lt_reload_flag
24289 reload_cmds=$lt_reload_cmds
24291 # How to pass a linker flag through the compiler.
24292 wl=$lt_lt_prog_compiler_wl_RC
24294 # Object file suffix (normally "o").
24295 objext="$ac_objext"
24297 # Old archive suffix (normally "a").
24300 # Shared library suffix (normally ".so").
24301 shrext_cmds='$shrext_cmds'
24303 # Executable file suffix (normally "").
24306 # Additional compiler flags for building library objects.
24307 pic_flag=$lt_lt_prog_compiler_pic_RC
24310 # What is the maximum length of a command?
24311 max_cmd_len=$lt_cv_sys_max_cmd_len
24313 # Does compiler simultaneously support -c and -o options?
24314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24316 # Must we lock files when doing compilation ?
24317 need_locks=$lt_need_locks
24319 # Do we need the lib prefix for modules?
24320 need_lib_prefix=$need_lib_prefix
24322 # Do we need a version for libraries?
24323 need_version=$need_version
24325 # Whether dlopen is supported.
24326 dlopen_support=$enable_dlopen
24328 # Whether dlopen of programs is supported.
24329 dlopen_self=$enable_dlopen_self
24331 # Whether dlopen of statically linked programs is supported.
24332 dlopen_self_static=$enable_dlopen_self_static
24334 # Compiler flag to prevent dynamic linking.
24335 link_static_flag=$lt_lt_prog_compiler_static_RC
24337 # Compiler flag to turn off builtin functions.
24338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24340 # Compiler flag to allow reflexive dlopens.
24341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24343 # Compiler flag to generate shared objects directly from archives.
24344 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24346 # Compiler flag to generate thread-safe objects.
24347 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24349 # Library versioning type.
24350 version_type=$version_type
24352 # Format of library name prefix.
24353 libname_spec=$lt_libname_spec
24355 # List of archive names. First name is the real one, the rest are links.
24356 # The last name is the one that the linker finds with -lNAME.
24357 library_names_spec=$lt_library_names_spec
24359 # The coded name of the library, if different from the real name.
24360 soname_spec=$lt_soname_spec
24362 # Commands used to build and install an old-style archive.
24364 old_archive_cmds=$lt_old_archive_cmds_RC
24365 old_postinstall_cmds=$lt_old_postinstall_cmds
24366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24368 # Create an old-style archive from a shared archive.
24369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24371 # Create a temporary old-style archive to link instead of a shared archive.
24372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24374 # Commands used to build and install a shared archive.
24375 archive_cmds=$lt_archive_cmds_RC
24376 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24377 postinstall_cmds=$lt_postinstall_cmds
24378 postuninstall_cmds=$lt_postuninstall_cmds
24380 # Commands used to build a loadable module (assumed same as above if empty)
24381 module_cmds=$lt_module_cmds_RC
24382 module_expsym_cmds=$lt_module_expsym_cmds_RC
24384 # Commands to strip libraries.
24385 old_striplib=$lt_old_striplib
24386 striplib=$lt_striplib
24388 # Dependencies to place before the objects being linked to create a
24390 predep_objects=$lt_predep_objects_RC
24392 # Dependencies to place after the objects being linked to create a
24394 postdep_objects=$lt_postdep_objects_RC
24396 # Dependencies to place before the objects being linked to create a
24398 predeps=$lt_predeps_RC
24400 # Dependencies to place after the objects being linked to create a
24402 postdeps=$lt_postdeps_RC
24404 # The library search path used internally by the compiler when linking
24405 # a shared library.
24406 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24408 # Method to check whether dependent libraries are shared objects.
24409 deplibs_check_method=$lt_deplibs_check_method
24411 # Command to use when deplibs_check_method == file_magic.
24412 file_magic_cmd=$lt_file_magic_cmd
24414 # Flag that allows shared libraries with undefined symbols to be built.
24415 allow_undefined_flag=$lt_allow_undefined_flag_RC
24417 # Flag that forces no undefined symbols.
24418 no_undefined_flag=$lt_no_undefined_flag_RC
24420 # Commands used to finish a libtool library installation in a directory.
24421 finish_cmds=$lt_finish_cmds
24423 # Same as above, but a single script fragment to be evaled but not shown.
24424 finish_eval=$lt_finish_eval
24426 # Take the output of nm and produce a listing of raw symbols and C names.
24427 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24429 # Transform the output of nm in a proper C declaration
24430 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24432 # Transform the output of nm in a C name address pair
24433 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24435 # This is the shared library runtime path variable.
24436 runpath_var=$runpath_var
24438 # This is the shared library path variable.
24439 shlibpath_var=$shlibpath_var
24441 # Is shlibpath searched before the hard-coded library search path?
24442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24444 # How to hardcode a shared library path into an executable.
24445 hardcode_action=$hardcode_action_RC
24447 # Whether we should hardcode library paths into libraries.
24448 hardcode_into_libs=$hardcode_into_libs
24450 # Flag to hardcode \$libdir into a binary during linking.
24451 # This must work even if \$libdir does not exist.
24452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24454 # If ld is used when linking, flag to hardcode \$libdir into
24455 # a binary during linking. This must work even if \$libdir does
24457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24459 # Whether we need a single -rpath flag with a separated argument.
24460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24462 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24463 # resulting binary.
24464 hardcode_direct=$hardcode_direct_RC
24466 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24467 # resulting binary.
24468 hardcode_minus_L=$hardcode_minus_L_RC
24470 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24471 # the resulting binary.
24472 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24474 # Set to yes if building a shared library automatically hardcodes DIR into the library
24475 # and all subsequent libraries and executables linked against it.
24476 hardcode_automatic=$hardcode_automatic_RC
24478 # Variables whose values should be saved in libtool wrapper scripts and
24479 # restored at relink time.
24480 variables_saved_for_relink="$variables_saved_for_relink"
24482 # Whether libtool must link a program against all its dependency libraries.
24483 link_all_deplibs=$link_all_deplibs_RC
24485 # Compile-time system search path for libraries
24486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24488 # Run-time system search path for libraries
24489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24491 # Fix the shell variable \$srcfile for the compiler.
24492 fix_srcfile_path="$fix_srcfile_path_RC"
24494 # Set to yes if exported symbols are required.
24495 always_export_symbols=$always_export_symbols_RC
24497 # The commands to list exported symbols.
24498 export_symbols_cmds=$lt_export_symbols_cmds_RC
24500 # The commands to extract the exported symbol list from a shared archive.
24501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24503 # Symbols that should not be listed in the preloaded symbols.
24504 exclude_expsyms=$lt_exclude_expsyms_RC
24506 # Symbols that must always be exported.
24507 include_expsyms=$lt_include_expsyms_RC
24509 # ### END LIBTOOL TAG CONFIG: $tagname
24515 # If there is no Makefile yet, we rely on a make rule to execute
24516 # `config.status --recheck' to rerun these tests and create the
24517 # libtool script then.
24518 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24519 if test -f "$ltmain_in"; then
24520 test -f Makefile && make "$ltmain"
24526 ac_cpp='$CPP $CPPFLAGS'
24527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24536 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24537 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24538 { (exit 1); exit 1; }; }
24542 # Append the new tag name to the list of available tags.
24543 if test -n "$tagname" ; then
24544 available_tags="$available_tags $tagname"
24550 # Now substitute the updated list of available tags.
24551 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24552 mv "${ofile}T" "$ofile"
24556 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24557 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24558 { (exit 1); exit 1; }; }
24564 # This can be used to rebuild libtool when needed
24565 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24567 # Always use our own libtool.
24568 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24570 # Prevent multiple expansion
24592 if test "$lt_cv_dlopen_self" = "yes" ; then
24594 cat >>confdefs.h <<\_ACEOF
24595 #define CAN_DLOPEN_SELF 1
24600 etags_version=`$ETAGS --version 2>&1`
24601 case "$etags_version" in
24602 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24603 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24604 *) ETAGSFLAGS="" ;;
24606 ETAGSFLAGS=$ETAGSFLAGS
24609 if test "$WITH_LLVMGCCDIR" = "default" ; then
24610 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24611 set dummy llvm-gcc; ac_word=$2
24612 echo "$as_me:$LINENO: checking for $ac_word" >&5
24613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24614 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24615 echo $ECHO_N "(cached) $ECHO_C" >&6
24619 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24623 for as_dir in $PATH
24626 test -z "$as_dir" && as_dir=.
24627 for ac_exec_ext in '' $ac_executable_extensions; do
24628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24629 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24636 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24640 LLVMGCC=$ac_cv_path_LLVMGCC
24642 if test -n "$LLVMGCC"; then
24643 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24644 echo "${ECHO_T}$LLVMGCC" >&6
24646 echo "$as_me:$LINENO: result: no" >&5
24647 echo "${ECHO_T}no" >&6
24650 # Extract the first word of "llvm-g++", so it can be a program name with args.
24651 set dummy llvm-g++; ac_word=$2
24652 echo "$as_me:$LINENO: checking for $ac_word" >&5
24653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24654 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24655 echo $ECHO_N "(cached) $ECHO_C" >&6
24659 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24663 for as_dir in $PATH
24666 test -z "$as_dir" && as_dir=.
24667 for ac_exec_ext in '' $ac_executable_extensions; do
24668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24669 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24676 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24680 LLVMGXX=$ac_cv_path_LLVMGXX
24682 if test -n "$LLVMGXX"; then
24683 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24684 echo "${ECHO_T}$LLVMGXX" >&6
24686 echo "$as_me:$LINENO: result: no" >&5
24687 echo "${ECHO_T}no" >&6
24691 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24692 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24699 echo "$as_me:$LINENO: checking tool compatibility" >&5
24700 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24713 if test "$GCC" != "yes" && test "$ICC" != "yes"
24715 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24716 echo "$as_me: error: gcc|icc required but not found" >&2;}
24717 { (exit 1); exit 1; }; }
24720 if test "$GXX" != "yes" && test "$IXX" != "yes"
24722 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24723 echo "$as_me: error: g++|icc required but not found" >&2;}
24724 { (exit 1); exit 1; }; }
24727 if test "$GCC" = "yes"
24729 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24730 if test "$gccmajor" -lt "3"
24732 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24733 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24734 { (exit 1); exit 1; }; }
24738 if test -z "$llvm_cv_gnu_make_command"
24740 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24741 echo "$as_me: error: GNU Make required but not found" >&2;}
24742 { (exit 1); exit 1; }; }
24745 echo "$as_me:$LINENO: result: ok" >&5
24746 echo "${ECHO_T}ok" >&6
24750 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24751 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24752 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24755 ac_check_lib_save_LIBS=$LIBS
24757 cat >conftest.$ac_ext <<_ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h. */
24764 /* Override any gcc2 internal prototype to avoid an error. */
24768 /* We use char because int might match the return type of a gcc2
24769 builtin and then its argument prototype would still apply. */
24779 rm -f conftest.$ac_objext conftest$ac_exeext
24780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24781 (eval $ac_link) 2>conftest.er1
24783 grep -v '^ *+' conftest.er1 >conftest.err
24785 cat conftest.err >&5
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } &&
24788 { ac_try='test -z "$ac_c_werror_flag"
24789 || test ! -s conftest.err'
24790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24791 (eval $ac_try) 2>&5
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; } &&
24795 { ac_try='test -s conftest$ac_exeext'
24796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24797 (eval $ac_try) 2>&5
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_cv_lib_elf_elf_begin=yes
24803 echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24806 ac_cv_lib_elf_elf_begin=no
24808 rm -f conftest.err conftest.$ac_objext \
24809 conftest$ac_exeext conftest.$ac_ext
24810 LIBS=$ac_check_lib_save_LIBS
24812 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24813 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24814 if test $ac_cv_lib_elf_elf_begin = yes; then
24815 cat >>confdefs.h <<_ACEOF
24816 #define HAVE_LIBELF 1
24824 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24825 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24826 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24827 echo $ECHO_N "(cached) $ECHO_C" >&6
24829 ac_func_search_save_LIBS=$LIBS
24830 ac_cv_search_lt_dlopen=no
24831 cat >conftest.$ac_ext <<_ACEOF
24834 cat confdefs.h >>conftest.$ac_ext
24835 cat >>conftest.$ac_ext <<_ACEOF
24836 /* end confdefs.h. */
24838 /* Override any gcc2 internal prototype to avoid an error. */
24842 /* We use char because int might match the return type of a gcc2
24843 builtin and then its argument prototype would still apply. */
24853 rm -f conftest.$ac_objext conftest$ac_exeext
24854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24855 (eval $ac_link) 2>conftest.er1
24857 grep -v '^ *+' conftest.er1 >conftest.err
24859 cat conftest.err >&5
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } &&
24862 { ac_try='test -z "$ac_c_werror_flag"
24863 || test ! -s conftest.err'
24864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865 (eval $ac_try) 2>&5
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); }; } &&
24869 { ac_try='test -s conftest$ac_exeext'
24870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871 (eval $ac_try) 2>&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24875 ac_cv_search_lt_dlopen="none required"
24877 echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24881 rm -f conftest.err conftest.$ac_objext \
24882 conftest$ac_exeext conftest.$ac_ext
24883 if test "$ac_cv_search_lt_dlopen" = no; then
24884 for ac_lib in ltdl; do
24885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24886 cat >conftest.$ac_ext <<_ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24893 /* Override any gcc2 internal prototype to avoid an error. */
24897 /* We use char because int might match the return type of a gcc2
24898 builtin and then its argument prototype would still apply. */
24908 rm -f conftest.$ac_objext conftest$ac_exeext
24909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24910 (eval $ac_link) 2>conftest.er1
24912 grep -v '^ *+' conftest.er1 >conftest.err
24914 cat conftest.err >&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } &&
24917 { ac_try='test -z "$ac_c_werror_flag"
24918 || test ! -s conftest.err'
24919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24920 (eval $ac_try) 2>&5
24922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923 (exit $ac_status); }; } &&
24924 { ac_try='test -s conftest$ac_exeext'
24925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24926 (eval $ac_try) 2>&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); }; }; then
24930 ac_cv_search_lt_dlopen="-l$ac_lib"
24933 echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24937 rm -f conftest.err conftest.$ac_objext \
24938 conftest$ac_exeext conftest.$ac_ext
24941 LIBS=$ac_func_search_save_LIBS
24943 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24944 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24945 if test "$ac_cv_search_lt_dlopen" != no; then
24946 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24948 cat >>confdefs.h <<\_ACEOF
24949 #define HAVE_LT_DLOPEN 1
24953 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24954 not be available" >&5
24955 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24956 not be available" >&2;}
24960 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24961 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24962 if test "${ac_cv_search_dlopen+set}" = set; then
24963 echo $ECHO_N "(cached) $ECHO_C" >&6
24965 ac_func_search_save_LIBS=$LIBS
24966 ac_cv_search_dlopen=no
24967 cat >conftest.$ac_ext <<_ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h. */
24974 /* Override any gcc2 internal prototype to avoid an error. */
24978 /* We use char because int might match the return type of a gcc2
24979 builtin and then its argument prototype would still apply. */
24989 rm -f conftest.$ac_objext conftest$ac_exeext
24990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24991 (eval $ac_link) 2>conftest.er1
24993 grep -v '^ *+' conftest.er1 >conftest.err
24995 cat conftest.err >&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); } &&
24998 { ac_try='test -z "$ac_c_werror_flag"
24999 || test ! -s conftest.err'
25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001 (eval $ac_try) 2>&5
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; } &&
25005 { ac_try='test -s conftest$ac_exeext'
25006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25007 (eval $ac_try) 2>&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); }; }; then
25011 ac_cv_search_dlopen="none required"
25013 echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25017 rm -f conftest.err conftest.$ac_objext \
25018 conftest$ac_exeext conftest.$ac_ext
25019 if test "$ac_cv_search_dlopen" = no; then
25020 for ac_lib in dl; do
25021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25022 cat >conftest.$ac_ext <<_ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25029 /* Override any gcc2 internal prototype to avoid an error. */
25033 /* We use char because int might match the return type of a gcc2
25034 builtin and then its argument prototype would still apply. */
25044 rm -f conftest.$ac_objext conftest$ac_exeext
25045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25046 (eval $ac_link) 2>conftest.er1
25048 grep -v '^ *+' conftest.er1 >conftest.err
25050 cat conftest.err >&5
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); } &&
25053 { ac_try='test -z "$ac_c_werror_flag"
25054 || test ! -s conftest.err'
25055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25056 (eval $ac_try) 2>&5
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); }; } &&
25060 { ac_try='test -s conftest$ac_exeext'
25061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25062 (eval $ac_try) 2>&5
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); }; }; then
25066 ac_cv_search_dlopen="-l$ac_lib"
25069 echo "$as_me: failed program was:" >&5
25070 sed 's/^/| /' conftest.$ac_ext >&5
25073 rm -f conftest.err conftest.$ac_objext \
25074 conftest$ac_exeext conftest.$ac_ext
25077 LIBS=$ac_func_search_save_LIBS
25079 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25080 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25081 if test "$ac_cv_search_dlopen" != no; then
25082 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25084 cat >>confdefs.h <<\_ACEOF
25085 #define HAVE_DLOPEN 1
25089 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25090 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25094 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25095 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25096 if test "${ac_cv_search_mallinfo+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 ac_func_search_save_LIBS=$LIBS
25100 ac_cv_search_mallinfo=no
25101 cat >conftest.$ac_ext <<_ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25108 /* Override any gcc2 internal prototype to avoid an error. */
25112 /* We use char because int might match the return type of a gcc2
25113 builtin and then its argument prototype would still apply. */
25123 rm -f conftest.$ac_objext conftest$ac_exeext
25124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25125 (eval $ac_link) 2>conftest.er1
25127 grep -v '^ *+' conftest.er1 >conftest.err
25129 cat conftest.err >&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } &&
25132 { ac_try='test -z "$ac_c_werror_flag"
25133 || test ! -s conftest.err'
25134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135 (eval $ac_try) 2>&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; } &&
25139 { ac_try='test -s conftest$ac_exeext'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; }; then
25145 ac_cv_search_mallinfo="none required"
25147 echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25151 rm -f conftest.err conftest.$ac_objext \
25152 conftest$ac_exeext conftest.$ac_ext
25153 if test "$ac_cv_search_mallinfo" = no; then
25154 for ac_lib in malloc; do
25155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25156 cat >conftest.$ac_ext <<_ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h. */
25163 /* Override any gcc2 internal prototype to avoid an error. */
25167 /* We use char because int might match the return type of a gcc2
25168 builtin and then its argument prototype would still apply. */
25178 rm -f conftest.$ac_objext conftest$ac_exeext
25179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25180 (eval $ac_link) 2>conftest.er1
25182 grep -v '^ *+' conftest.er1 >conftest.err
25184 cat conftest.err >&5
25185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); } &&
25187 { ac_try='test -z "$ac_c_werror_flag"
25188 || test ! -s conftest.err'
25189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25190 (eval $ac_try) 2>&5
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); }; } &&
25194 { ac_try='test -s conftest$ac_exeext'
25195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196 (eval $ac_try) 2>&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; }; then
25200 ac_cv_search_mallinfo="-l$ac_lib"
25203 echo "$as_me: failed program was:" >&5
25204 sed 's/^/| /' conftest.$ac_ext >&5
25207 rm -f conftest.err conftest.$ac_objext \
25208 conftest$ac_exeext conftest.$ac_ext
25211 LIBS=$ac_func_search_save_LIBS
25213 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25214 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25215 if test "$ac_cv_search_mallinfo" != no; then
25216 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25218 cat >>confdefs.h <<\_ACEOF
25219 #define HAVE_MALLINFO 1
25225 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25226 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25227 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25228 echo $ECHO_N "(cached) $ECHO_C" >&6
25230 ac_func_search_save_LIBS=$LIBS
25231 ac_cv_search_pthread_mutex_lock=no
25232 cat >conftest.$ac_ext <<_ACEOF
25235 cat confdefs.h >>conftest.$ac_ext
25236 cat >>conftest.$ac_ext <<_ACEOF
25237 /* end confdefs.h. */
25239 /* Override any gcc2 internal prototype to avoid an error. */
25243 /* We use char because int might match the return type of a gcc2
25244 builtin and then its argument prototype would still apply. */
25245 char pthread_mutex_lock ();
25249 pthread_mutex_lock ();
25254 rm -f conftest.$ac_objext conftest$ac_exeext
25255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25256 (eval $ac_link) 2>conftest.er1
25258 grep -v '^ *+' conftest.er1 >conftest.err
25260 cat conftest.err >&5
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); } &&
25263 { ac_try='test -z "$ac_c_werror_flag"
25264 || test ! -s conftest.err'
25265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25266 (eval $ac_try) 2>&5
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); }; } &&
25270 { ac_try='test -s conftest$ac_exeext'
25271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25272 (eval $ac_try) 2>&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }; }; then
25276 ac_cv_search_pthread_mutex_lock="none required"
25278 echo "$as_me: failed program was:" >&5
25279 sed 's/^/| /' conftest.$ac_ext >&5
25282 rm -f conftest.err conftest.$ac_objext \
25283 conftest$ac_exeext conftest.$ac_ext
25284 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25285 for ac_lib in pthread; do
25286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25287 cat >conftest.$ac_ext <<_ACEOF
25290 cat confdefs.h >>conftest.$ac_ext
25291 cat >>conftest.$ac_ext <<_ACEOF
25292 /* end confdefs.h. */
25294 /* Override any gcc2 internal prototype to avoid an error. */
25298 /* We use char because int might match the return type of a gcc2
25299 builtin and then its argument prototype would still apply. */
25300 char pthread_mutex_lock ();
25304 pthread_mutex_lock ();
25309 rm -f conftest.$ac_objext conftest$ac_exeext
25310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25311 (eval $ac_link) 2>conftest.er1
25313 grep -v '^ *+' conftest.er1 >conftest.err
25315 cat conftest.err >&5
25316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); } &&
25318 { ac_try='test -z "$ac_c_werror_flag"
25319 || test ! -s conftest.err'
25320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25321 (eval $ac_try) 2>&5
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); }; } &&
25325 { ac_try='test -s conftest$ac_exeext'
25326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327 (eval $ac_try) 2>&5
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); }; }; then
25331 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25334 echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25338 rm -f conftest.err conftest.$ac_objext \
25339 conftest$ac_exeext conftest.$ac_ext
25342 LIBS=$ac_func_search_save_LIBS
25344 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25345 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25346 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25347 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25349 cat >>confdefs.h <<\_ACEOF
25350 #define HAVE_PTHREAD_MUTEX_LOCK 1
25362 ac_header_dirent=no
25363 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25364 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25365 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25366 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25368 echo $ECHO_N "(cached) $ECHO_C" >&6
25370 cat >conftest.$ac_ext <<_ACEOF
25373 cat confdefs.h >>conftest.$ac_ext
25374 cat >>conftest.$ac_ext <<_ACEOF
25375 /* end confdefs.h. */
25376 #include <sys/types.h>
25388 rm -f conftest.$ac_objext
25389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25390 (eval $ac_compile) 2>conftest.er1
25392 grep -v '^ *+' conftest.er1 >conftest.err
25394 cat conftest.err >&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); } &&
25397 { ac_try='test -z "$ac_c_werror_flag"
25398 || test ! -s conftest.err'
25399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400 (eval $ac_try) 2>&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); }; } &&
25404 { ac_try='test -s conftest.$ac_objext'
25405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; }; then
25410 eval "$as_ac_Header=yes"
25412 echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25415 eval "$as_ac_Header=no"
25417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25422 cat >>confdefs.h <<_ACEOF
25423 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25426 ac_header_dirent=$ac_hdr; break
25430 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25431 if test $ac_header_dirent = dirent.h; then
25432 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25433 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25434 if test "${ac_cv_search_opendir+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
25437 ac_func_search_save_LIBS=$LIBS
25438 ac_cv_search_opendir=no
25439 cat >conftest.$ac_ext <<_ACEOF
25442 cat confdefs.h >>conftest.$ac_ext
25443 cat >>conftest.$ac_ext <<_ACEOF
25444 /* end confdefs.h. */
25446 /* Override any gcc2 internal prototype to avoid an error. */
25450 /* We use char because int might match the return type of a gcc2
25451 builtin and then its argument prototype would still apply. */
25461 rm -f conftest.$ac_objext conftest$ac_exeext
25462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25463 (eval $ac_link) 2>conftest.er1
25465 grep -v '^ *+' conftest.er1 >conftest.err
25467 cat conftest.err >&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } &&
25470 { ac_try='test -z "$ac_c_werror_flag"
25471 || test ! -s conftest.err'
25472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25473 (eval $ac_try) 2>&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); }; } &&
25477 { ac_try='test -s conftest$ac_exeext'
25478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479 (eval $ac_try) 2>&5
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); }; }; then
25483 ac_cv_search_opendir="none required"
25485 echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25489 rm -f conftest.err conftest.$ac_objext \
25490 conftest$ac_exeext conftest.$ac_ext
25491 if test "$ac_cv_search_opendir" = no; then
25492 for ac_lib in dir; do
25493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25494 cat >conftest.$ac_ext <<_ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h. */
25501 /* Override any gcc2 internal prototype to avoid an error. */
25505 /* We use char because int might match the return type of a gcc2
25506 builtin and then its argument prototype would still apply. */
25516 rm -f conftest.$ac_objext conftest$ac_exeext
25517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25518 (eval $ac_link) 2>conftest.er1
25520 grep -v '^ *+' conftest.er1 >conftest.err
25522 cat conftest.err >&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } &&
25525 { ac_try='test -z "$ac_c_werror_flag"
25526 || test ! -s conftest.err'
25527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25528 (eval $ac_try) 2>&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); }; } &&
25532 { ac_try='test -s conftest$ac_exeext'
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; }; then
25538 ac_cv_search_opendir="-l$ac_lib"
25541 echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25545 rm -f conftest.err conftest.$ac_objext \
25546 conftest$ac_exeext conftest.$ac_ext
25549 LIBS=$ac_func_search_save_LIBS
25551 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25552 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25553 if test "$ac_cv_search_opendir" != no; then
25554 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25559 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25560 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25561 if test "${ac_cv_search_opendir+set}" = set; then
25562 echo $ECHO_N "(cached) $ECHO_C" >&6
25564 ac_func_search_save_LIBS=$LIBS
25565 ac_cv_search_opendir=no
25566 cat >conftest.$ac_ext <<_ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h. */
25573 /* Override any gcc2 internal prototype to avoid an error. */
25577 /* We use char because int might match the return type of a gcc2
25578 builtin and then its argument prototype would still apply. */
25588 rm -f conftest.$ac_objext conftest$ac_exeext
25589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25590 (eval $ac_link) 2>conftest.er1
25592 grep -v '^ *+' conftest.er1 >conftest.err
25594 cat conftest.err >&5
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); } &&
25597 { ac_try='test -z "$ac_c_werror_flag"
25598 || test ! -s conftest.err'
25599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25600 (eval $ac_try) 2>&5
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; } &&
25604 { ac_try='test -s conftest$ac_exeext'
25605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606 (eval $ac_try) 2>&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; }; then
25610 ac_cv_search_opendir="none required"
25612 echo "$as_me: failed program was:" >&5
25613 sed 's/^/| /' conftest.$ac_ext >&5
25616 rm -f conftest.err conftest.$ac_objext \
25617 conftest$ac_exeext conftest.$ac_ext
25618 if test "$ac_cv_search_opendir" = no; then
25619 for ac_lib in x; do
25620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25621 cat >conftest.$ac_ext <<_ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h. */
25628 /* Override any gcc2 internal prototype to avoid an error. */
25632 /* We use char because int might match the return type of a gcc2
25633 builtin and then its argument prototype would still apply. */
25643 rm -f conftest.$ac_objext conftest$ac_exeext
25644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25645 (eval $ac_link) 2>conftest.er1
25647 grep -v '^ *+' conftest.er1 >conftest.err
25649 cat conftest.err >&5
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } &&
25652 { ac_try='test -z "$ac_c_werror_flag"
25653 || test ! -s conftest.err'
25654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25655 (eval $ac_try) 2>&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); }; } &&
25659 { ac_try='test -s conftest$ac_exeext'
25660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25661 (eval $ac_try) 2>&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); }; }; then
25665 ac_cv_search_opendir="-l$ac_lib"
25668 echo "$as_me: failed program was:" >&5
25669 sed 's/^/| /' conftest.$ac_ext >&5
25672 rm -f conftest.err conftest.$ac_objext \
25673 conftest$ac_exeext conftest.$ac_ext
25676 LIBS=$ac_func_search_save_LIBS
25678 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25679 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25680 if test "$ac_cv_search_opendir" != no; then
25681 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25687 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25688 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25689 if test "${ac_cv_header_mmap_anon+set}" = set; then
25690 echo $ECHO_N "(cached) $ECHO_C" >&6
25693 ac_cpp='$CPP $CPPFLAGS'
25694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25698 cat >conftest.$ac_ext <<_ACEOF
25701 cat confdefs.h >>conftest.$ac_ext
25702 cat >>conftest.$ac_ext <<_ACEOF
25703 /* end confdefs.h. */
25704 #include <sys/mman.h>
25705 #include <unistd.h>
25710 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25715 rm -f conftest.$ac_objext
25716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25717 (eval $ac_compile) 2>conftest.er1
25719 grep -v '^ *+' conftest.er1 >conftest.err
25721 cat conftest.err >&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); } &&
25724 { ac_try='test -z "$ac_c_werror_flag"
25725 || test ! -s conftest.err'
25726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727 (eval $ac_try) 2>&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); }; } &&
25731 { ac_try='test -s conftest.$ac_objext'
25732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25733 (eval $ac_try) 2>&5
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); }; }; then
25737 ac_cv_header_mmap_anon=yes
25739 echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25742 ac_cv_header_mmap_anon=no
25744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25746 ac_cpp='$CPP $CPPFLAGS'
25747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25753 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25754 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25755 if test "$ac_cv_header_mmap_anon" = yes; then
25757 cat >>confdefs.h <<\_ACEOF
25758 #define HAVE_MMAP_ANONYMOUS 1
25763 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25764 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25765 if test "${ac_cv_header_stat_broken+set}" = set; then
25766 echo $ECHO_N "(cached) $ECHO_C" >&6
25768 cat >conftest.$ac_ext <<_ACEOF
25771 cat confdefs.h >>conftest.$ac_ext
25772 cat >>conftest.$ac_ext <<_ACEOF
25773 /* end confdefs.h. */
25774 #include <sys/types.h>
25775 #include <sys/stat.h>
25777 #if defined(S_ISBLK) && defined(S_IFDIR)
25778 # if S_ISBLK (S_IFDIR)
25783 #if defined(S_ISBLK) && defined(S_IFCHR)
25784 # if S_ISBLK (S_IFCHR)
25789 #if defined(S_ISLNK) && defined(S_IFREG)
25790 # if S_ISLNK (S_IFREG)
25795 #if defined(S_ISSOCK) && defined(S_IFREG)
25796 # if S_ISSOCK (S_IFREG)
25802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25803 $EGREP "You lose" >/dev/null 2>&1; then
25804 ac_cv_header_stat_broken=yes
25806 ac_cv_header_stat_broken=no
25811 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25812 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25813 if test $ac_cv_header_stat_broken = yes; then
25815 cat >>confdefs.h <<\_ACEOF
25816 #define STAT_MACROS_BROKEN 1
25821 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25822 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25823 if test "${ac_cv_header_stdc+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25826 cat >conftest.$ac_ext <<_ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25832 #include <stdlib.h>
25833 #include <stdarg.h>
25834 #include <string.h>
25845 rm -f conftest.$ac_objext
25846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25847 (eval $ac_compile) 2>conftest.er1
25849 grep -v '^ *+' conftest.er1 >conftest.err
25851 cat conftest.err >&5
25852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); } &&
25854 { ac_try='test -z "$ac_c_werror_flag"
25855 || test ! -s conftest.err'
25856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25857 (eval $ac_try) 2>&5
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); }; } &&
25861 { ac_try='test -s conftest.$ac_objext'
25862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25863 (eval $ac_try) 2>&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); }; }; then
25867 ac_cv_header_stdc=yes
25869 echo "$as_me: failed program was:" >&5
25870 sed 's/^/| /' conftest.$ac_ext >&5
25872 ac_cv_header_stdc=no
25874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25876 if test $ac_cv_header_stdc = yes; then
25877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25878 cat >conftest.$ac_ext <<_ACEOF
25881 cat confdefs.h >>conftest.$ac_ext
25882 cat >>conftest.$ac_ext <<_ACEOF
25883 /* end confdefs.h. */
25884 #include <string.h>
25887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25888 $EGREP "memchr" >/dev/null 2>&1; then
25891 ac_cv_header_stdc=no
25897 if test $ac_cv_header_stdc = yes; then
25898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25899 cat >conftest.$ac_ext <<_ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h. */
25905 #include <stdlib.h>
25908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25909 $EGREP "free" >/dev/null 2>&1; then
25912 ac_cv_header_stdc=no
25918 if test $ac_cv_header_stdc = yes; then
25919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25920 if test "$cross_compiling" = yes; then
25923 cat >conftest.$ac_ext <<_ACEOF
25926 cat confdefs.h >>conftest.$ac_ext
25927 cat >>conftest.$ac_ext <<_ACEOF
25928 /* end confdefs.h. */
25930 #if ((' ' & 0x0FF) == 0x020)
25931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25934 # define ISLOWER(c) \
25935 (('a' <= (c) && (c) <= 'i') \
25936 || ('j' <= (c) && (c) <= 'r') \
25937 || ('s' <= (c) && (c) <= 'z'))
25938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25946 for (i = 0; i < 256; i++)
25947 if (XOR (islower (i), ISLOWER (i))
25948 || toupper (i) != TOUPPER (i))
25953 rm -f conftest$ac_exeext
25954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25955 (eval $ac_link) 2>&5
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960 (eval $ac_try) 2>&5
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); }; }; then
25966 echo "$as_me: program exited with status $ac_status" >&5
25967 echo "$as_me: failed program was:" >&5
25968 sed 's/^/| /' conftest.$ac_ext >&5
25970 ( exit $ac_status )
25971 ac_cv_header_stdc=no
25973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25977 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25978 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25979 if test $ac_cv_header_stdc = yes; then
25981 cat >>confdefs.h <<\_ACEOF
25982 #define STDC_HEADERS 1
25987 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25988 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25989 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25990 echo $ECHO_N "(cached) $ECHO_C" >&6
25992 cat >conftest.$ac_ext <<_ACEOF
25995 cat confdefs.h >>conftest.$ac_ext
25996 cat >>conftest.$ac_ext <<_ACEOF
25997 /* end confdefs.h. */
25998 #include <sys/types.h>
25999 #include <sys/wait.h>
26000 #ifndef WEXITSTATUS
26001 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26004 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26012 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26017 rm -f conftest.$ac_objext
26018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26019 (eval $ac_compile) 2>conftest.er1
26021 grep -v '^ *+' conftest.er1 >conftest.err
26023 cat conftest.err >&5
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); } &&
26026 { ac_try='test -z "$ac_c_werror_flag"
26027 || test ! -s conftest.err'
26028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029 (eval $ac_try) 2>&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); }; } &&
26033 { ac_try='test -s conftest.$ac_objext'
26034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; }; then
26039 ac_cv_header_sys_wait_h=yes
26041 echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26044 ac_cv_header_sys_wait_h=no
26046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26048 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26049 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26050 if test $ac_cv_header_sys_wait_h = yes; then
26052 cat >>confdefs.h <<\_ACEOF
26053 #define HAVE_SYS_WAIT_H 1
26058 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26059 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26060 if test "${ac_cv_header_time+set}" = set; then
26061 echo $ECHO_N "(cached) $ECHO_C" >&6
26063 cat >conftest.$ac_ext <<_ACEOF
26066 cat confdefs.h >>conftest.$ac_ext
26067 cat >>conftest.$ac_ext <<_ACEOF
26068 /* end confdefs.h. */
26069 #include <sys/types.h>
26070 #include <sys/time.h>
26076 if ((struct tm *) 0)
26082 rm -f conftest.$ac_objext
26083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26084 (eval $ac_compile) 2>conftest.er1
26086 grep -v '^ *+' conftest.er1 >conftest.err
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
26091 { ac_try='test -z "$ac_c_werror_flag"
26092 || test ! -s conftest.err'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest.$ac_objext'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; }; then
26104 ac_cv_header_time=yes
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26109 ac_cv_header_time=no
26111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26113 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26114 echo "${ECHO_T}$ac_cv_header_time" >&6
26115 if test $ac_cv_header_time = yes; then
26117 cat >>confdefs.h <<\_ACEOF
26118 #define TIME_WITH_SYS_TIME 1
26130 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26134 echo "$as_me:$LINENO: checking for $ac_header" >&5
26135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26137 echo $ECHO_N "(cached) $ECHO_C" >&6
26139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26142 # Is the header compilable?
26143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26145 cat >conftest.$ac_ext <<_ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h. */
26151 $ac_includes_default
26152 #include <$ac_header>
26154 rm -f conftest.$ac_objext
26155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26156 (eval $ac_compile) 2>conftest.er1
26158 grep -v '^ *+' conftest.er1 >conftest.err
26160 cat conftest.err >&5
26161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } &&
26163 { ac_try='test -z "$ac_c_werror_flag"
26164 || test ! -s conftest.err'
26165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166 (eval $ac_try) 2>&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); }; } &&
26170 { ac_try='test -s conftest.$ac_objext'
26171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172 (eval $ac_try) 2>&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; }; then
26176 ac_header_compiler=yes
26178 echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26181 ac_header_compiler=no
26183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26185 echo "${ECHO_T}$ac_header_compiler" >&6
26187 # Is the header present?
26188 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26190 cat >conftest.$ac_ext <<_ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26196 #include <$ac_header>
26198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26201 grep -v '^ *+' conftest.er1 >conftest.err
26203 cat conftest.err >&5
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); } >/dev/null; then
26206 if test -s conftest.err; then
26207 ac_cpp_err=$ac_c_preproc_warn_flag
26208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26215 if test -z "$ac_cpp_err"; then
26216 ac_header_preproc=yes
26218 echo "$as_me: failed program was:" >&5
26219 sed 's/^/| /' conftest.$ac_ext >&5
26221 ac_header_preproc=no
26223 rm -f conftest.err conftest.$ac_ext
26224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26225 echo "${ECHO_T}$ac_header_preproc" >&6
26227 # So? What about this header?
26228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26234 ac_header_preproc=yes
26237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26244 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26251 ## ----------------------------------- ##
26252 ## Report this to llvmbugs@cs.uiuc.edu ##
26253 ## ----------------------------------- ##
26256 sed "s/^/$as_me: WARNING: /" >&2
26259 echo "$as_me:$LINENO: checking for $ac_header" >&5
26260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26262 echo $ECHO_N "(cached) $ECHO_C" >&6
26264 eval "$as_ac_Header=\$ac_header_preproc"
26266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26271 cat >>confdefs.h <<_ACEOF
26272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26285 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26289 echo "$as_me:$LINENO: checking for $ac_header" >&5
26290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26292 echo $ECHO_N "(cached) $ECHO_C" >&6
26294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26297 # Is the header compilable?
26298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26300 cat >conftest.$ac_ext <<_ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h. */
26306 $ac_includes_default
26307 #include <$ac_header>
26309 rm -f conftest.$ac_objext
26310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26311 (eval $ac_compile) 2>conftest.er1
26313 grep -v '^ *+' conftest.er1 >conftest.err
26315 cat conftest.err >&5
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); } &&
26318 { ac_try='test -z "$ac_c_werror_flag"
26319 || test ! -s conftest.err'
26320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321 (eval $ac_try) 2>&5
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; } &&
26325 { ac_try='test -s conftest.$ac_objext'
26326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327 (eval $ac_try) 2>&5
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; }; then
26331 ac_header_compiler=yes
26333 echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26336 ac_header_compiler=no
26338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26340 echo "${ECHO_T}$ac_header_compiler" >&6
26342 # Is the header present?
26343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26345 cat >conftest.$ac_ext <<_ACEOF
26348 cat confdefs.h >>conftest.$ac_ext
26349 cat >>conftest.$ac_ext <<_ACEOF
26350 /* end confdefs.h. */
26351 #include <$ac_header>
26353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26356 grep -v '^ *+' conftest.er1 >conftest.err
26358 cat conftest.err >&5
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); } >/dev/null; then
26361 if test -s conftest.err; then
26362 ac_cpp_err=$ac_c_preproc_warn_flag
26363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26370 if test -z "$ac_cpp_err"; then
26371 ac_header_preproc=yes
26373 echo "$as_me: failed program was:" >&5
26374 sed 's/^/| /' conftest.$ac_ext >&5
26376 ac_header_preproc=no
26378 rm -f conftest.err conftest.$ac_ext
26379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26380 echo "${ECHO_T}$ac_header_preproc" >&6
26382 # So? What about this header?
26383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26389 ac_header_preproc=yes
26392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26406 ## ----------------------------------- ##
26407 ## Report this to llvmbugs@cs.uiuc.edu ##
26408 ## ----------------------------------- ##
26411 sed "s/^/$as_me: WARNING: /" >&2
26414 echo "$as_me:$LINENO: checking for $ac_header" >&5
26415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26417 echo $ECHO_N "(cached) $ECHO_C" >&6
26419 eval "$as_ac_Header=\$ac_header_preproc"
26421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26426 cat >>confdefs.h <<_ACEOF
26427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26439 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26443 echo "$as_me:$LINENO: checking for $ac_header" >&5
26444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26451 # Is the header compilable?
26452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26454 cat >conftest.$ac_ext <<_ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h. */
26460 $ac_includes_default
26461 #include <$ac_header>
26463 rm -f conftest.$ac_objext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26465 (eval $ac_compile) 2>conftest.er1
26467 grep -v '^ *+' conftest.er1 >conftest.err
26469 cat conftest.err >&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } &&
26472 { ac_try='test -z "$ac_c_werror_flag"
26473 || test ! -s conftest.err'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; } &&
26479 { ac_try='test -s conftest.$ac_objext'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; }; then
26485 ac_header_compiler=yes
26487 echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26490 ac_header_compiler=no
26492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26494 echo "${ECHO_T}$ac_header_compiler" >&6
26496 # Is the header present?
26497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26499 cat >conftest.$ac_ext <<_ACEOF
26502 cat confdefs.h >>conftest.$ac_ext
26503 cat >>conftest.$ac_ext <<_ACEOF
26504 /* end confdefs.h. */
26505 #include <$ac_header>
26507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26510 grep -v '^ *+' conftest.er1 >conftest.err
26512 cat conftest.err >&5
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); } >/dev/null; then
26515 if test -s conftest.err; then
26516 ac_cpp_err=$ac_c_preproc_warn_flag
26517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26524 if test -z "$ac_cpp_err"; then
26525 ac_header_preproc=yes
26527 echo "$as_me: failed program was:" >&5
26528 sed 's/^/| /' conftest.$ac_ext >&5
26530 ac_header_preproc=no
26532 rm -f conftest.err conftest.$ac_ext
26533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26534 echo "${ECHO_T}$ac_header_preproc" >&6
26536 # So? What about this header?
26537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26543 ac_header_preproc=yes
26546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26560 ## ----------------------------------- ##
26561 ## Report this to llvmbugs@cs.uiuc.edu ##
26562 ## ----------------------------------- ##
26565 sed "s/^/$as_me: WARNING: /" >&2
26568 echo "$as_me:$LINENO: checking for $ac_header" >&5
26569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26571 echo $ECHO_N "(cached) $ECHO_C" >&6
26573 eval "$as_ac_Header=\$ac_header_preproc"
26575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26580 cat >>confdefs.h <<_ACEOF
26581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26590 echo "$as_me:$LINENO: checking for pid_t" >&5
26591 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26592 if test "${ac_cv_type_pid_t+set}" = set; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26595 cat >conftest.$ac_ext <<_ACEOF
26598 cat confdefs.h >>conftest.$ac_ext
26599 cat >>conftest.$ac_ext <<_ACEOF
26600 /* end confdefs.h. */
26601 $ac_includes_default
26607 if (sizeof (pid_t))
26613 rm -f conftest.$ac_objext
26614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26615 (eval $ac_compile) 2>conftest.er1
26617 grep -v '^ *+' conftest.er1 >conftest.err
26619 cat conftest.err >&5
26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); } &&
26622 { ac_try='test -z "$ac_c_werror_flag"
26623 || test ! -s conftest.err'
26624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26625 (eval $ac_try) 2>&5
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); }; } &&
26629 { ac_try='test -s conftest.$ac_objext'
26630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26631 (eval $ac_try) 2>&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); }; }; then
26635 ac_cv_type_pid_t=yes
26637 echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26640 ac_cv_type_pid_t=no
26642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26644 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26645 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26646 if test $ac_cv_type_pid_t = yes; then
26650 cat >>confdefs.h <<_ACEOF
26656 echo "$as_me:$LINENO: checking for size_t" >&5
26657 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26658 if test "${ac_cv_type_size_t+set}" = set; then
26659 echo $ECHO_N "(cached) $ECHO_C" >&6
26661 cat >conftest.$ac_ext <<_ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h. */
26667 $ac_includes_default
26673 if (sizeof (size_t))
26679 rm -f conftest.$ac_objext
26680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26681 (eval $ac_compile) 2>conftest.er1
26683 grep -v '^ *+' conftest.er1 >conftest.err
26685 cat conftest.err >&5
26686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); } &&
26688 { ac_try='test -z "$ac_c_werror_flag"
26689 || test ! -s conftest.err'
26690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; } &&
26695 { ac_try='test -s conftest.$ac_objext'
26696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697 (eval $ac_try) 2>&5
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; }; then
26701 ac_cv_type_size_t=yes
26703 echo "$as_me: failed program was:" >&5
26704 sed 's/^/| /' conftest.$ac_ext >&5
26706 ac_cv_type_size_t=no
26708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26710 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26711 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26712 if test $ac_cv_type_size_t = yes; then
26716 cat >>confdefs.h <<_ACEOF
26717 #define size_t unsigned
26722 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26723 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26724 if test "${ac_cv_type_signal+set}" = set; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26727 cat >conftest.$ac_ext <<_ACEOF
26730 cat confdefs.h >>conftest.$ac_ext
26731 cat >>conftest.$ac_ext <<_ACEOF
26732 /* end confdefs.h. */
26733 #include <sys/types.h>
26734 #include <signal.h>
26739 extern "C" void (*signal (int, void (*)(int)))(int);
26741 void (*signal ()) ();
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_cv_type_signal=void
26776 echo "$as_me: failed program was:" >&5
26777 sed 's/^/| /' conftest.$ac_ext >&5
26779 ac_cv_type_signal=int
26781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26783 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26784 echo "${ECHO_T}$ac_cv_type_signal" >&6
26786 cat >>confdefs.h <<_ACEOF
26787 #define RETSIGTYPE $ac_cv_type_signal
26791 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26792 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26793 if test "${ac_cv_struct_tm+set}" = set; then
26794 echo $ECHO_N "(cached) $ECHO_C" >&6
26796 cat >conftest.$ac_ext <<_ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h. */
26802 #include <sys/types.h>
26808 struct tm *tp; tp->tm_sec;
26813 rm -f conftest.$ac_objext
26814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26815 (eval $ac_compile) 2>conftest.er1
26817 grep -v '^ *+' conftest.er1 >conftest.err
26819 cat conftest.err >&5
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); } &&
26822 { ac_try='test -z "$ac_c_werror_flag"
26823 || test ! -s conftest.err'
26824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26825 (eval $ac_try) 2>&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); }; } &&
26829 { ac_try='test -s conftest.$ac_objext'
26830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26831 (eval $ac_try) 2>&5
26833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); }; }; then
26835 ac_cv_struct_tm=time.h
26837 echo "$as_me: failed program was:" >&5
26838 sed 's/^/| /' conftest.$ac_ext >&5
26840 ac_cv_struct_tm=sys/time.h
26842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26844 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26845 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26846 if test $ac_cv_struct_tm = sys/time.h; then
26848 cat >>confdefs.h <<\_ACEOF
26849 #define TM_IN_SYS_TIME 1
26854 echo "$as_me:$LINENO: checking for int64_t" >&5
26855 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26856 if test "${ac_cv_type_int64_t+set}" = set; then
26857 echo $ECHO_N "(cached) $ECHO_C" >&6
26859 cat >conftest.$ac_ext <<_ACEOF
26862 cat confdefs.h >>conftest.$ac_ext
26863 cat >>conftest.$ac_ext <<_ACEOF
26864 /* end confdefs.h. */
26865 $ac_includes_default
26871 if (sizeof (int64_t))
26877 rm -f conftest.$ac_objext
26878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26879 (eval $ac_compile) 2>conftest.er1
26881 grep -v '^ *+' conftest.er1 >conftest.err
26883 cat conftest.err >&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } &&
26886 { ac_try='test -z "$ac_c_werror_flag"
26887 || test ! -s conftest.err'
26888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889 (eval $ac_try) 2>&5
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; } &&
26893 { ac_try='test -s conftest.$ac_objext'
26894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26895 (eval $ac_try) 2>&5
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); }; }; then
26899 ac_cv_type_int64_t=yes
26901 echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26904 ac_cv_type_int64_t=no
26906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26908 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26909 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26910 if test $ac_cv_type_int64_t = yes; then
26912 cat >>confdefs.h <<_ACEOF
26913 #define HAVE_INT64_T 1
26918 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26919 echo "$as_me: error: Type int64_t required but not found" >&2;}
26920 { (exit 1); exit 1; }; }
26923 echo "$as_me:$LINENO: checking for uint64_t" >&5
26924 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26925 if test "${ac_cv_type_uint64_t+set}" = set; then
26926 echo $ECHO_N "(cached) $ECHO_C" >&6
26928 cat >conftest.$ac_ext <<_ACEOF
26931 cat confdefs.h >>conftest.$ac_ext
26932 cat >>conftest.$ac_ext <<_ACEOF
26933 /* end confdefs.h. */
26934 $ac_includes_default
26938 if ((uint64_t *) 0)
26940 if (sizeof (uint64_t))
26946 rm -f conftest.$ac_objext
26947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26948 (eval $ac_compile) 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); } &&
26955 { ac_try='test -z "$ac_c_werror_flag"
26956 || test ! -s conftest.err'
26957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26958 (eval $ac_try) 2>&5
26960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); }; } &&
26962 { ac_try='test -s conftest.$ac_objext'
26963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26964 (eval $ac_try) 2>&5
26966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967 (exit $ac_status); }; }; then
26968 ac_cv_type_uint64_t=yes
26970 echo "$as_me: failed program was:" >&5
26971 sed 's/^/| /' conftest.$ac_ext >&5
26973 ac_cv_type_uint64_t=no
26975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26977 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26978 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26979 if test $ac_cv_type_uint64_t = yes; then
26981 cat >>confdefs.h <<_ACEOF
26982 #define HAVE_UINT64_T 1
26987 echo "$as_me:$LINENO: checking for u_int64_t" >&5
26988 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26989 if test "${ac_cv_type_u_int64_t+set}" = set; then
26990 echo $ECHO_N "(cached) $ECHO_C" >&6
26992 cat >conftest.$ac_ext <<_ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h. */
26998 $ac_includes_default
27002 if ((u_int64_t *) 0)
27004 if (sizeof (u_int64_t))
27010 rm -f conftest.$ac_objext
27011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27012 (eval $ac_compile) 2>conftest.er1
27014 grep -v '^ *+' conftest.er1 >conftest.err
27016 cat conftest.err >&5
27017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); } &&
27019 { ac_try='test -z "$ac_c_werror_flag"
27020 || test ! -s conftest.err'
27021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022 (eval $ac_try) 2>&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); }; } &&
27026 { ac_try='test -s conftest.$ac_objext'
27027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028 (eval $ac_try) 2>&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; }; then
27032 ac_cv_type_u_int64_t=yes
27034 echo "$as_me: failed program was:" >&5
27035 sed 's/^/| /' conftest.$ac_ext >&5
27037 ac_cv_type_u_int64_t=no
27039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27041 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27042 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27043 if test $ac_cv_type_u_int64_t = yes; then
27045 cat >>confdefs.h <<_ACEOF
27046 #define HAVE_U_INT64_T 1
27051 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27052 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27053 { (exit 1); exit 1; }; }
27066 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27069 echo "$as_me:$LINENO: checking for $ac_func" >&5
27070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27071 if eval "test \"\${$as_ac_var+set}\" = set"; then
27072 echo $ECHO_N "(cached) $ECHO_C" >&6
27074 cat >conftest.$ac_ext <<_ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h. */
27080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27082 #define $ac_func innocuous_$ac_func
27084 /* System header to define __stub macros and hopefully few prototypes,
27085 which can conflict with char $ac_func (); below.
27086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27087 <limits.h> exists even on freestanding compilers. */
27090 # include <limits.h>
27092 # include <assert.h>
27097 /* Override any gcc2 internal prototype to avoid an error. */
27102 /* We use char because int might match the return type of a gcc2
27103 builtin and then its argument prototype would still apply. */
27105 /* The GNU C library defines this for functions which it implements
27106 to always fail with ENOSYS. Some functions are actually named
27107 something starting with __ and the normal name is an alias. */
27108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27111 char (*f) () = $ac_func;
27120 return f != $ac_func;
27125 rm -f conftest.$ac_objext conftest$ac_exeext
27126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27127 (eval $ac_link) 2>conftest.er1
27129 grep -v '^ *+' conftest.er1 >conftest.err
27131 cat conftest.err >&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); } &&
27134 { ac_try='test -z "$ac_c_werror_flag"
27135 || test ! -s conftest.err'
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); }; } &&
27141 { ac_try='test -s conftest$ac_exeext'
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; }; then
27147 eval "$as_ac_var=yes"
27149 echo "$as_me: failed program was:" >&5
27150 sed 's/^/| /' conftest.$ac_ext >&5
27152 eval "$as_ac_var=no"
27154 rm -f conftest.err conftest.$ac_objext \
27155 conftest$ac_exeext conftest.$ac_ext
27157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27159 if test `eval echo '${'$as_ac_var'}'` = yes; then
27160 cat >>confdefs.h <<_ACEOF
27161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27170 for ac_func in mkdtemp mkstemp mktemp
27172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27173 echo "$as_me:$LINENO: checking for $ac_func" >&5
27174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27175 if eval "test \"\${$as_ac_var+set}\" = set"; then
27176 echo $ECHO_N "(cached) $ECHO_C" >&6
27178 cat >conftest.$ac_ext <<_ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h. */
27184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27186 #define $ac_func innocuous_$ac_func
27188 /* System header to define __stub macros and hopefully few prototypes,
27189 which can conflict with char $ac_func (); below.
27190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27191 <limits.h> exists even on freestanding compilers. */
27194 # include <limits.h>
27196 # include <assert.h>
27201 /* Override any gcc2 internal prototype to avoid an error. */
27206 /* We use char because int might match the return type of a gcc2
27207 builtin and then its argument prototype would still apply. */
27209 /* The GNU C library defines this for functions which it implements
27210 to always fail with ENOSYS. Some functions are actually named
27211 something starting with __ and the normal name is an alias. */
27212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27215 char (*f) () = $ac_func;
27224 return f != $ac_func;
27229 rm -f conftest.$ac_objext conftest$ac_exeext
27230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27231 (eval $ac_link) 2>conftest.er1
27233 grep -v '^ *+' conftest.er1 >conftest.err
27235 cat conftest.err >&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); } &&
27238 { ac_try='test -z "$ac_c_werror_flag"
27239 || test ! -s conftest.err'
27240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27241 (eval $ac_try) 2>&5
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); }; } &&
27245 { ac_try='test -s conftest$ac_exeext'
27246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27247 (eval $ac_try) 2>&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }; then
27251 eval "$as_ac_var=yes"
27253 echo "$as_me: failed program was:" >&5
27254 sed 's/^/| /' conftest.$ac_ext >&5
27256 eval "$as_ac_var=no"
27258 rm -f conftest.err conftest.$ac_objext \
27259 conftest$ac_exeext conftest.$ac_ext
27261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27263 if test `eval echo '${'$as_ac_var'}'` = yes; then
27264 cat >>confdefs.h <<_ACEOF
27265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27278 for ac_func in realpath setrlimit strdup strerror strerror_r strtoll strtoq
27280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27281 echo "$as_me:$LINENO: checking for $ac_func" >&5
27282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27283 if eval "test \"\${$as_ac_var+set}\" = set"; then
27284 echo $ECHO_N "(cached) $ECHO_C" >&6
27286 cat >conftest.$ac_ext <<_ACEOF
27289 cat confdefs.h >>conftest.$ac_ext
27290 cat >>conftest.$ac_ext <<_ACEOF
27291 /* end confdefs.h. */
27292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27294 #define $ac_func innocuous_$ac_func
27296 /* System header to define __stub macros and hopefully few prototypes,
27297 which can conflict with char $ac_func (); below.
27298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27299 <limits.h> exists even on freestanding compilers. */
27302 # include <limits.h>
27304 # include <assert.h>
27309 /* Override any gcc2 internal prototype to avoid an error. */
27314 /* We use char because int might match the return type of a gcc2
27315 builtin and then its argument prototype would still apply. */
27317 /* The GNU C library defines this for functions which it implements
27318 to always fail with ENOSYS. Some functions are actually named
27319 something starting with __ and the normal name is an alias. */
27320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27323 char (*f) () = $ac_func;
27332 return f != $ac_func;
27337 rm -f conftest.$ac_objext conftest$ac_exeext
27338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27339 (eval $ac_link) 2>conftest.er1
27341 grep -v '^ *+' conftest.er1 >conftest.err
27343 cat conftest.err >&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } &&
27346 { ac_try='test -z "$ac_c_werror_flag"
27347 || test ! -s conftest.err'
27348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349 (eval $ac_try) 2>&5
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); }; } &&
27353 { ac_try='test -s conftest$ac_exeext'
27354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27355 (eval $ac_try) 2>&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); }; }; then
27359 eval "$as_ac_var=yes"
27361 echo "$as_me: failed program was:" >&5
27362 sed 's/^/| /' conftest.$ac_ext >&5
27364 eval "$as_ac_var=no"
27366 rm -f conftest.err conftest.$ac_objext \
27367 conftest$ac_exeext conftest.$ac_ext
27369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27371 if test `eval echo '${'$as_ac_var'}'` = yes; then
27372 cat >>confdefs.h <<_ACEOF
27373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27380 for ac_func in sysconf
27382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27383 echo "$as_me:$LINENO: checking for $ac_func" >&5
27384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27385 if eval "test \"\${$as_ac_var+set}\" = set"; then
27386 echo $ECHO_N "(cached) $ECHO_C" >&6
27388 cat >conftest.$ac_ext <<_ACEOF
27391 cat confdefs.h >>conftest.$ac_ext
27392 cat >>conftest.$ac_ext <<_ACEOF
27393 /* end confdefs.h. */
27394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27396 #define $ac_func innocuous_$ac_func
27398 /* System header to define __stub macros and hopefully few prototypes,
27399 which can conflict with char $ac_func (); below.
27400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27401 <limits.h> exists even on freestanding compilers. */
27404 # include <limits.h>
27406 # include <assert.h>
27411 /* Override any gcc2 internal prototype to avoid an error. */
27416 /* We use char because int might match the return type of a gcc2
27417 builtin and then its argument prototype would still apply. */
27419 /* The GNU C library defines this for functions which it implements
27420 to always fail with ENOSYS. Some functions are actually named
27421 something starting with __ and the normal name is an alias. */
27422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27425 char (*f) () = $ac_func;
27434 return f != $ac_func;
27439 rm -f conftest.$ac_objext conftest$ac_exeext
27440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27441 (eval $ac_link) 2>conftest.er1
27443 grep -v '^ *+' conftest.er1 >conftest.err
27445 cat conftest.err >&5
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); } &&
27448 { ac_try='test -z "$ac_c_werror_flag"
27449 || test ! -s conftest.err'
27450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451 (eval $ac_try) 2>&5
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; } &&
27455 { ac_try='test -s conftest$ac_exeext'
27456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457 (eval $ac_try) 2>&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); }; }; then
27461 eval "$as_ac_var=yes"
27463 echo "$as_me: failed program was:" >&5
27464 sed 's/^/| /' conftest.$ac_ext >&5
27466 eval "$as_ac_var=no"
27468 rm -f conftest.err conftest.$ac_objext \
27469 conftest$ac_exeext conftest.$ac_ext
27471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27473 if test `eval echo '${'$as_ac_var'}'` = yes; then
27474 cat >>confdefs.h <<_ACEOF
27475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27481 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27482 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27483 if test "${llvm_cv_c_printf_a+set}" = set; then
27484 echo $ECHO_N "(cached) $ECHO_C" >&6
27487 ac_cpp='$CPP $CPPFLAGS'
27488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27492 if test "$cross_compiling" = yes; then
27493 llvmac_cv_c_printf_a=no
27495 cat >conftest.$ac_ext <<_ACEOF
27499 cat confdefs.h >>conftest.$ac_ext
27500 cat >>conftest.$ac_ext <<_ACEOF
27501 /* end confdefs.h. */
27504 #include <stdlib.h>
27510 volatile double A, B;
27514 sprintf(Buffer, "%a", A);
27518 if (A != 0x1.999999999999ap-4)
27525 rm -f conftest$ac_exeext
27526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27527 (eval $ac_link) 2>&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27532 (eval $ac_try) 2>&5
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); }; }; then
27536 llvm_cv_c_printf_a=yes
27538 echo "$as_me: program exited with status $ac_status" >&5
27539 echo "$as_me: failed program was:" >&5
27540 sed 's/^/| /' conftest.$ac_ext >&5
27542 ( exit $ac_status )
27543 llvmac_cv_c_printf_a=no
27545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27548 ac_cpp='$CPP $CPPFLAGS'
27549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27554 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27555 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27556 if test "$llvm_cv_c_printf_a" = "yes"; then
27558 cat >>confdefs.h <<\_ACEOF
27559 #define HAVE_PRINTF_A 1
27564 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27565 # for constant arguments. Useless!
27566 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27567 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27568 if test "${ac_cv_working_alloca_h+set}" = set; then
27569 echo $ECHO_N "(cached) $ECHO_C" >&6
27571 cat >conftest.$ac_ext <<_ACEOF
27574 cat confdefs.h >>conftest.$ac_ext
27575 cat >>conftest.$ac_ext <<_ACEOF
27576 /* end confdefs.h. */
27577 #include <alloca.h>
27581 char *p = (char *) alloca (2 * sizeof (int));
27586 rm -f conftest.$ac_objext conftest$ac_exeext
27587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27588 (eval $ac_link) 2>conftest.er1
27590 grep -v '^ *+' conftest.er1 >conftest.err
27592 cat conftest.err >&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); } &&
27595 { ac_try='test -z "$ac_c_werror_flag"
27596 || test ! -s conftest.err'
27597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27598 (eval $ac_try) 2>&5
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; } &&
27602 { ac_try='test -s conftest$ac_exeext'
27603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27604 (eval $ac_try) 2>&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); }; }; then
27608 ac_cv_working_alloca_h=yes
27610 echo "$as_me: failed program was:" >&5
27611 sed 's/^/| /' conftest.$ac_ext >&5
27613 ac_cv_working_alloca_h=no
27615 rm -f conftest.err conftest.$ac_objext \
27616 conftest$ac_exeext conftest.$ac_ext
27618 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27619 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27620 if test $ac_cv_working_alloca_h = yes; then
27622 cat >>confdefs.h <<\_ACEOF
27623 #define HAVE_ALLOCA_H 1
27628 echo "$as_me:$LINENO: checking for alloca" >&5
27629 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27630 if test "${ac_cv_func_alloca_works+set}" = set; then
27631 echo $ECHO_N "(cached) $ECHO_C" >&6
27633 cat >conftest.$ac_ext <<_ACEOF
27636 cat confdefs.h >>conftest.$ac_ext
27637 cat >>conftest.$ac_ext <<_ACEOF
27638 /* end confdefs.h. */
27640 # define alloca __builtin_alloca
27643 # include <malloc.h>
27644 # define alloca _alloca
27647 # include <alloca.h>
27652 # ifndef alloca /* predefined by HP cc +Olibcalls */
27663 char *p = (char *) alloca (1);
27668 rm -f conftest.$ac_objext conftest$ac_exeext
27669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27670 (eval $ac_link) 2>conftest.er1
27672 grep -v '^ *+' conftest.er1 >conftest.err
27674 cat conftest.err >&5
27675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676 (exit $ac_status); } &&
27677 { ac_try='test -z "$ac_c_werror_flag"
27678 || test ! -s conftest.err'
27679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27680 (eval $ac_try) 2>&5
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; } &&
27684 { ac_try='test -s conftest$ac_exeext'
27685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27686 (eval $ac_try) 2>&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); }; }; then
27690 ac_cv_func_alloca_works=yes
27692 echo "$as_me: failed program was:" >&5
27693 sed 's/^/| /' conftest.$ac_ext >&5
27695 ac_cv_func_alloca_works=no
27697 rm -f conftest.err conftest.$ac_objext \
27698 conftest$ac_exeext conftest.$ac_ext
27700 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27701 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27703 if test $ac_cv_func_alloca_works = yes; then
27705 cat >>confdefs.h <<\_ACEOF
27706 #define HAVE_ALLOCA 1
27710 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27711 # that cause trouble. Some versions do not even contain alloca or
27712 # contain a buggy version. If you still want to use their alloca,
27713 # use ar to extract alloca.o from them instead of compiling alloca.c.
27715 ALLOCA=alloca.$ac_objext
27717 cat >>confdefs.h <<\_ACEOF
27722 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27723 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27724 if test "${ac_cv_os_cray+set}" = set; then
27725 echo $ECHO_N "(cached) $ECHO_C" >&6
27727 cat >conftest.$ac_ext <<_ACEOF
27730 cat confdefs.h >>conftest.$ac_ext
27731 cat >>conftest.$ac_ext <<_ACEOF
27732 /* end confdefs.h. */
27733 #if defined(CRAY) && ! defined(CRAY2)
27740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27741 $EGREP "webecray" >/dev/null 2>&1; then
27749 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27750 echo "${ECHO_T}$ac_cv_os_cray" >&6
27751 if test $ac_cv_os_cray = yes; then
27752 for ac_func in _getb67 GETB67 getb67; do
27753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27754 echo "$as_me:$LINENO: checking for $ac_func" >&5
27755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27756 if eval "test \"\${$as_ac_var+set}\" = set"; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27759 cat >conftest.$ac_ext <<_ACEOF
27762 cat confdefs.h >>conftest.$ac_ext
27763 cat >>conftest.$ac_ext <<_ACEOF
27764 /* end confdefs.h. */
27765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27767 #define $ac_func innocuous_$ac_func
27769 /* System header to define __stub macros and hopefully few prototypes,
27770 which can conflict with char $ac_func (); below.
27771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27772 <limits.h> exists even on freestanding compilers. */
27775 # include <limits.h>
27777 # include <assert.h>
27782 /* Override any gcc2 internal prototype to avoid an error. */
27787 /* We use char because int might match the return type of a gcc2
27788 builtin and then its argument prototype would still apply. */
27790 /* The GNU C library defines this for functions which it implements
27791 to always fail with ENOSYS. Some functions are actually named
27792 something starting with __ and the normal name is an alias. */
27793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27796 char (*f) () = $ac_func;
27805 return f != $ac_func;
27810 rm -f conftest.$ac_objext conftest$ac_exeext
27811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27812 (eval $ac_link) 2>conftest.er1
27814 grep -v '^ *+' conftest.er1 >conftest.err
27816 cat conftest.err >&5
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); } &&
27819 { ac_try='test -z "$ac_c_werror_flag"
27820 || test ! -s conftest.err'
27821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; } &&
27826 { ac_try='test -s conftest$ac_exeext'
27827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27828 (eval $ac_try) 2>&5
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); }; }; then
27832 eval "$as_ac_var=yes"
27834 echo "$as_me: failed program was:" >&5
27835 sed 's/^/| /' conftest.$ac_ext >&5
27837 eval "$as_ac_var=no"
27839 rm -f conftest.err conftest.$ac_objext \
27840 conftest$ac_exeext conftest.$ac_ext
27842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27844 if test `eval echo '${'$as_ac_var'}'` = yes; then
27846 cat >>confdefs.h <<_ACEOF
27847 #define CRAY_STACKSEG_END $ac_func
27856 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27857 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27858 if test "${ac_cv_c_stack_direction+set}" = set; then
27859 echo $ECHO_N "(cached) $ECHO_C" >&6
27861 if test "$cross_compiling" = yes; then
27862 ac_cv_c_stack_direction=0
27864 cat >conftest.$ac_ext <<_ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h. */
27871 find_stack_direction ()
27873 static char *addr = 0;
27878 return find_stack_direction ();
27881 return (&dummy > addr) ? 1 : -1;
27887 exit (find_stack_direction () < 0);
27890 rm -f conftest$ac_exeext
27891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27892 (eval $ac_link) 2>&5
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27897 (eval $ac_try) 2>&5
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); }; }; then
27901 ac_cv_c_stack_direction=1
27903 echo "$as_me: program exited with status $ac_status" >&5
27904 echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27907 ( exit $ac_status )
27908 ac_cv_c_stack_direction=-1
27910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27913 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27914 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27916 cat >>confdefs.h <<_ACEOF
27917 #define STACK_DIRECTION $ac_cv_c_stack_direction
27924 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27925 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27926 if test "${ac_cv_func_rand48+set}" = set; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27930 ac_cpp='$CXXCPP $CPPFLAGS'
27931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27935 cat >conftest.$ac_ext <<_ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h. */
27941 #include <stdlib.h>
27945 srand48(0);lrand48();drand48();
27950 rm -f conftest.$ac_objext
27951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27952 (eval $ac_compile) 2>conftest.er1
27954 grep -v '^ *+' conftest.er1 >conftest.err
27956 cat conftest.err >&5
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); } &&
27959 { ac_try='test -z "$ac_cxx_werror_flag"
27960 || test ! -s conftest.err'
27961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27962 (eval $ac_try) 2>&5
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); }; } &&
27966 { ac_try='test -s conftest.$ac_objext'
27967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27968 (eval $ac_try) 2>&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); }; }; then
27972 ac_cv_func_rand48=yes
27974 echo "$as_me: failed program was:" >&5
27975 sed 's/^/| /' conftest.$ac_ext >&5
27977 ac_cv_func_rand48=no
27979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27981 ac_cpp='$CPP $CPPFLAGS'
27982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27987 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27988 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27990 if test "$ac_cv_func_rand48" = "yes" ; then
27992 cat >>confdefs.h <<\_ACEOF
27993 #define HAVE_RAND48 1
27999 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28000 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28001 if test "${ac_cv_cxx_namespaces+set}" = set; then
28002 echo $ECHO_N "(cached) $ECHO_C" >&6
28005 ac_cpp='$CXXCPP $CPPFLAGS'
28006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28010 cat >conftest.$ac_ext <<_ACEOF
28013 cat confdefs.h >>conftest.$ac_ext
28014 cat >>conftest.$ac_ext <<_ACEOF
28015 /* end confdefs.h. */
28016 namespace Outer { namespace Inner { int i = 0; }}
28020 using namespace Outer::Inner; return i;
28025 rm -f conftest.$ac_objext
28026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28027 (eval $ac_compile) 2>conftest.er1
28029 grep -v '^ *+' conftest.er1 >conftest.err
28031 cat conftest.err >&5
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); } &&
28034 { ac_try='test -z "$ac_cxx_werror_flag"
28035 || test ! -s conftest.err'
28036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28037 (eval $ac_try) 2>&5
28039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040 (exit $ac_status); }; } &&
28041 { ac_try='test -s conftest.$ac_objext'
28042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28043 (eval $ac_try) 2>&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); }; }; then
28047 ac_cv_cxx_namespaces=yes
28049 echo "$as_me: failed program was:" >&5
28050 sed 's/^/| /' conftest.$ac_ext >&5
28052 ac_cv_cxx_namespaces=no
28054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28056 ac_cpp='$CPP $CPPFLAGS'
28057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28063 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28064 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28065 if test "$ac_cv_cxx_namespaces" = yes; then
28067 cat >>confdefs.h <<\_ACEOF
28068 #define HAVE_NAMESPACES
28073 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28074 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28075 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28076 echo $ECHO_N "(cached) $ECHO_C" >&6
28080 ac_cpp='$CXXCPP $CPPFLAGS'
28081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28085 cat >conftest.$ac_ext <<_ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h. */
28091 #include <ext/hash_map>
28092 #ifdef HAVE_NAMESPACES
28093 using namespace std;
28098 hash_map<int, int> t;
28103 rm -f conftest.$ac_objext
28104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28105 (eval $ac_compile) 2>conftest.er1
28107 grep -v '^ *+' conftest.er1 >conftest.err
28109 cat conftest.err >&5
28110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); } &&
28112 { ac_try='test -z "$ac_cxx_werror_flag"
28113 || test ! -s conftest.err'
28114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115 (eval $ac_try) 2>&5
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); }; } &&
28119 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28125 ac_cv_cxx_have_std_ext_hash_map=yes
28127 echo "$as_me: failed program was:" >&5
28128 sed 's/^/| /' conftest.$ac_ext >&5
28130 ac_cv_cxx_have_std_ext_hash_map=no
28132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28134 ac_cpp='$CPP $CPPFLAGS'
28135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28140 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28141 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28142 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28145 cat >>confdefs.h <<\_ACEOF
28146 #define HAVE_STD_EXT_HASH_MAP 1
28151 cat >>confdefs.h <<\_ACEOF
28152 #define HAVE_STD_EXT_HASH_MAP 0
28157 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28158 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28159 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28164 ac_cpp='$CXXCPP $CPPFLAGS'
28165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28169 cat >conftest.$ac_ext <<_ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h. */
28175 #include <ext/hash_map>
28176 #ifdef HAVE_NAMESPACES
28177 using namespace __gnu_cxx;
28182 hash_map<int,int> t;
28187 rm -f conftest.$ac_objext
28188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28189 (eval $ac_compile) 2>conftest.er1
28191 grep -v '^ *+' conftest.er1 >conftest.err
28193 cat conftest.err >&5
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); } &&
28196 { ac_try='test -z "$ac_cxx_werror_flag"
28197 || test ! -s conftest.err'
28198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28199 (eval $ac_try) 2>&5
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; } &&
28203 { ac_try='test -s conftest.$ac_objext'
28204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28205 (eval $ac_try) 2>&5
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); }; }; then
28209 ac_cv_cxx_have_gnu_ext_hash_map=yes
28211 echo "$as_me: failed program was:" >&5
28212 sed 's/^/| /' conftest.$ac_ext >&5
28214 ac_cv_cxx_have_gnu_ext_hash_map=no
28216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28218 ac_cpp='$CPP $CPPFLAGS'
28219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28224 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28225 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28226 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28229 cat >>confdefs.h <<\_ACEOF
28230 #define HAVE_GNU_EXT_HASH_MAP 1
28235 cat >>confdefs.h <<\_ACEOF
28236 #define HAVE_GNU_EXT_HASH_MAP 0
28241 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28242 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28243 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28244 echo $ECHO_N "(cached) $ECHO_C" >&6
28248 ac_cpp='$CXXCPP $CPPFLAGS'
28249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28253 cat >conftest.$ac_ext <<_ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h. */
28259 #include <hash_map>
28263 hash_map<int,int> t;
28268 rm -f conftest.$ac_objext
28269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28270 (eval $ac_compile) 2>conftest.er1
28272 grep -v '^ *+' conftest.er1 >conftest.err
28274 cat conftest.err >&5
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); } &&
28277 { ac_try='test -z "$ac_cxx_werror_flag"
28278 || test ! -s conftest.err'
28279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280 (eval $ac_try) 2>&5
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); }; } &&
28284 { ac_try='test -s conftest.$ac_objext'
28285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286 (eval $ac_try) 2>&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; }; then
28290 ac_cv_cxx_have_global_hash_map=yes
28292 echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28295 ac_cv_cxx_have_global_hash_map=no
28297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28299 ac_cpp='$CPP $CPPFLAGS'
28300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28305 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28306 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28307 if test "$ac_cv_cxx_have_global_hash_map" = yes
28310 cat >>confdefs.h <<\_ACEOF
28311 #define HAVE_GLOBAL_HASH_MAP 1
28316 cat >>confdefs.h <<\_ACEOF
28317 #define HAVE_GLOBAL_HASH_MAP 0
28322 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28323 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28324 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28325 echo $ECHO_N "(cached) $ECHO_C" >&6
28329 ac_cpp='$CXXCPP $CPPFLAGS'
28330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28334 cat >conftest.$ac_ext <<_ACEOF
28337 cat confdefs.h >>conftest.$ac_ext
28338 cat >>conftest.$ac_ext <<_ACEOF
28339 /* end confdefs.h. */
28340 #include <ext/hash_set>
28341 #ifdef HAVE_NAMESPACES
28342 using namespace std;
28352 rm -f conftest.$ac_objext
28353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28354 (eval $ac_compile) 2>conftest.er1
28356 grep -v '^ *+' conftest.er1 >conftest.err
28358 cat conftest.err >&5
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } &&
28361 { ac_try='test -z "$ac_cxx_werror_flag"
28362 || test ! -s conftest.err'
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest.$ac_objext'
28369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; }; then
28374 ac_cv_cxx_have_std_ext_hash_set=yes
28376 echo "$as_me: failed program was:" >&5
28377 sed 's/^/| /' conftest.$ac_ext >&5
28379 ac_cv_cxx_have_std_ext_hash_set=no
28381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28383 ac_cpp='$CPP $CPPFLAGS'
28384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28389 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28390 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28391 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28394 cat >>confdefs.h <<\_ACEOF
28395 #define HAVE_STD_EXT_HASH_SET 1
28400 cat >>confdefs.h <<\_ACEOF
28401 #define HAVE_STD_EXT_HASH_SET 0
28406 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28407 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28408 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28409 echo $ECHO_N "(cached) $ECHO_C" >&6
28413 ac_cpp='$CXXCPP $CPPFLAGS'
28414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28418 cat >conftest.$ac_ext <<_ACEOF
28421 cat confdefs.h >>conftest.$ac_ext
28422 cat >>conftest.$ac_ext <<_ACEOF
28423 /* end confdefs.h. */
28424 #include <ext/hash_set>
28425 #ifdef HAVE_NAMESPACES
28426 using namespace __gnu_cxx;
28436 rm -f conftest.$ac_objext
28437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28438 (eval $ac_compile) 2>conftest.er1
28440 grep -v '^ *+' conftest.er1 >conftest.err
28442 cat conftest.err >&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); } &&
28445 { ac_try='test -z "$ac_cxx_werror_flag"
28446 || test ! -s conftest.err'
28447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448 (eval $ac_try) 2>&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); }; } &&
28452 { ac_try='test -s conftest.$ac_objext'
28453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454 (eval $ac_try) 2>&5
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; }; then
28458 ac_cv_cxx_have_gnu_ext_hash_set=yes
28460 echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28463 ac_cv_cxx_have_gnu_ext_hash_set=no
28465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28467 ac_cpp='$CPP $CPPFLAGS'
28468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28473 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28474 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28475 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28478 cat >>confdefs.h <<\_ACEOF
28479 #define HAVE_GNU_EXT_HASH_SET 1
28484 cat >>confdefs.h <<\_ACEOF
28485 #define HAVE_GNU_EXT_HASH_SET 0
28490 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28491 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28492 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28493 echo $ECHO_N "(cached) $ECHO_C" >&6
28497 ac_cpp='$CXXCPP $CPPFLAGS'
28498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28502 cat >conftest.$ac_ext <<_ACEOF
28505 cat confdefs.h >>conftest.$ac_ext
28506 cat >>conftest.$ac_ext <<_ACEOF
28507 /* end confdefs.h. */
28508 #include <hash_set>
28512 hash_set<int> t; return 0;
28517 rm -f conftest.$ac_objext
28518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28519 (eval $ac_compile) 2>conftest.er1
28521 grep -v '^ *+' conftest.er1 >conftest.err
28523 cat conftest.err >&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } &&
28526 { ac_try='test -z "$ac_cxx_werror_flag"
28527 || test ! -s conftest.err'
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; } &&
28533 { ac_try='test -s conftest.$ac_objext'
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; }; then
28539 ac_cv_cxx_have_global_hash_set=yes
28541 echo "$as_me: failed program was:" >&5
28542 sed 's/^/| /' conftest.$ac_ext >&5
28544 ac_cv_cxx_have_global_hash_set=no
28546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28548 ac_cpp='$CPP $CPPFLAGS'
28549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28554 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28555 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28556 if test "$ac_cv_cxx_have_global_hash_set" = yes
28559 cat >>confdefs.h <<\_ACEOF
28560 #define HAVE_GLOBAL_HASH_SET 1
28565 cat >>confdefs.h <<\_ACEOF
28566 #define HAVE_GLOBAL_HASH_SET 0
28571 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28572 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28573 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28574 echo $ECHO_N "(cached) $ECHO_C" >&6
28578 ac_cpp='$CXXCPP $CPPFLAGS'
28579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28583 cat >conftest.$ac_ext <<_ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h. */
28589 #include <iterator>
28590 #ifdef HAVE_NAMESPACES
28591 using namespace std;
28596 iterator<int,int,int> t; return 0;
28601 rm -f conftest.$ac_objext
28602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28603 (eval $ac_compile) 2>conftest.er1
28605 grep -v '^ *+' conftest.er1 >conftest.err
28607 cat conftest.err >&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } &&
28610 { ac_try='test -z "$ac_cxx_werror_flag"
28611 || test ! -s conftest.err'
28612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28613 (eval $ac_try) 2>&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); }; } &&
28617 { ac_try='test -s conftest.$ac_objext'
28618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28619 (eval $ac_try) 2>&5
28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); }; }; then
28623 ac_cv_cxx_have_std_iterator=yes
28625 echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28628 ac_cv_cxx_have_std_iterator=no
28630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28632 ac_cpp='$CPP $CPPFLAGS'
28633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28639 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28640 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28641 if test "$ac_cv_cxx_have_std_iterator" = yes
28644 cat >>confdefs.h <<\_ACEOF
28645 #define HAVE_STD_ITERATOR 1
28650 cat >>confdefs.h <<\_ACEOF
28651 #define HAVE_STD_ITERATOR 0
28656 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28657 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28658 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28659 echo $ECHO_N "(cached) $ECHO_C" >&6
28663 ac_cpp='$CXXCPP $CPPFLAGS'
28664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28668 cat >conftest.$ac_ext <<_ACEOF
28671 cat confdefs.h >>conftest.$ac_ext
28672 cat >>conftest.$ac_ext <<_ACEOF
28673 /* end confdefs.h. */
28674 #include <iterator>
28675 #ifdef HAVE_NAMESPACES
28676 using namespace std;
28681 bidirectional_iterator<int,int> t; return 0;
28686 rm -f conftest.$ac_objext
28687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28688 (eval $ac_compile) 2>conftest.er1
28690 grep -v '^ *+' conftest.er1 >conftest.err
28692 cat conftest.err >&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); } &&
28695 { ac_try='test -z "$ac_cxx_werror_flag"
28696 || test ! -s conftest.err'
28697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698 (eval $ac_try) 2>&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); }; } &&
28702 { ac_try='test -s conftest.$ac_objext'
28703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28704 (eval $ac_try) 2>&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); }; }; then
28708 ac_cv_cxx_have_bi_iterator=yes
28710 echo "$as_me: failed program was:" >&5
28711 sed 's/^/| /' conftest.$ac_ext >&5
28713 ac_cv_cxx_have_bi_iterator=no
28715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28717 ac_cpp='$CPP $CPPFLAGS'
28718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28724 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28725 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28726 if test "$ac_cv_cxx_have_bi_iterator" = yes
28729 cat >>confdefs.h <<\_ACEOF
28730 #define HAVE_BI_ITERATOR 1
28735 cat >>confdefs.h <<\_ACEOF
28736 #define HAVE_BI_ITERATOR 0
28741 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28742 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28743 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28744 echo $ECHO_N "(cached) $ECHO_C" >&6
28748 ac_cpp='$CXXCPP $CPPFLAGS'
28749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28753 cat >conftest.$ac_ext <<_ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h. */
28759 #include <iterator>
28760 #ifdef HAVE_NAMESPACES
28761 using namespace std;
28766 forward_iterator<int,int> t; return 0;
28771 rm -f conftest.$ac_objext
28772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28773 (eval $ac_compile) 2>conftest.er1
28775 grep -v '^ *+' conftest.er1 >conftest.err
28777 cat conftest.err >&5
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); } &&
28780 { ac_try='test -z "$ac_cxx_werror_flag"
28781 || test ! -s conftest.err'
28782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28783 (eval $ac_try) 2>&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); }; } &&
28787 { ac_try='test -s conftest.$ac_objext'
28788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28789 (eval $ac_try) 2>&5
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); }; }; then
28793 ac_cv_cxx_have_fwd_iterator=yes
28795 echo "$as_me: failed program was:" >&5
28796 sed 's/^/| /' conftest.$ac_ext >&5
28798 ac_cv_cxx_have_fwd_iterator=no
28800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28802 ac_cpp='$CPP $CPPFLAGS'
28803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28809 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28810 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28811 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28814 cat >>confdefs.h <<\_ACEOF
28815 #define HAVE_FWD_ITERATOR 1
28820 cat >>confdefs.h <<\_ACEOF
28821 #define HAVE_FWD_ITERATOR 0
28827 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28828 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28829 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28830 echo $ECHO_N "(cached) $ECHO_C" >&6
28833 ac_cpp='$CXXCPP $CPPFLAGS'
28834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28838 cat >conftest.$ac_ext <<_ACEOF
28841 cat confdefs.h >>conftest.$ac_ext
28842 cat >>conftest.$ac_ext <<_ACEOF
28843 /* end confdefs.h. */
28853 rm -f conftest.$ac_objext
28854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28855 (eval $ac_compile) 2>conftest.er1
28857 grep -v '^ *+' conftest.er1 >conftest.err
28859 cat conftest.err >&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); } &&
28862 { ac_try='test -z "$ac_cxx_werror_flag"
28863 || test ! -s conftest.err'
28864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865 (eval $ac_try) 2>&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; } &&
28869 { ac_try='test -s conftest.$ac_objext'
28870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28871 (eval $ac_try) 2>&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); }; }; then
28875 ac_cv_func_isnan_in_math_h=yes
28877 echo "$as_me: failed program was:" >&5
28878 sed 's/^/| /' conftest.$ac_ext >&5
28880 ac_cv_func_isnan_in_math_h=no
28882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28884 ac_cpp='$CPP $CPPFLAGS'
28885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28890 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28891 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28894 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28896 cat >>confdefs.h <<\_ACEOF
28897 #define HAVE_ISNAN_IN_MATH_H 1
28902 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28903 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28904 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28905 echo $ECHO_N "(cached) $ECHO_C" >&6
28908 ac_cpp='$CXXCPP $CPPFLAGS'
28909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28913 cat >conftest.$ac_ext <<_ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h. */
28928 rm -f conftest.$ac_objext
28929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28930 (eval $ac_compile) 2>conftest.er1
28932 grep -v '^ *+' conftest.er1 >conftest.err
28934 cat conftest.err >&5
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); } &&
28937 { ac_try='test -z "$ac_cxx_werror_flag"
28938 || test ! -s conftest.err'
28939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940 (eval $ac_try) 2>&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; } &&
28944 { ac_try='test -s conftest.$ac_objext'
28945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28946 (eval $ac_try) 2>&5
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); }; }; then
28950 ac_cv_func_isnan_in_cmath=yes
28952 echo "$as_me: failed program was:" >&5
28953 sed 's/^/| /' conftest.$ac_ext >&5
28955 ac_cv_func_isnan_in_cmath=no
28957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28959 ac_cpp='$CPP $CPPFLAGS'
28960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28965 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28966 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28968 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28970 cat >>confdefs.h <<\_ACEOF
28971 #define HAVE_ISNAN_IN_CMATH 1
28976 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28977 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28978 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28982 ac_cpp='$CXXCPP $CPPFLAGS'
28983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28987 cat >conftest.$ac_ext <<_ACEOF
28990 cat confdefs.h >>conftest.$ac_ext
28991 cat >>conftest.$ac_ext <<_ACEOF
28992 /* end confdefs.h. */
28997 float f; std::isnan(f);
29002 rm -f conftest.$ac_objext
29003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29004 (eval $ac_compile) 2>conftest.er1
29006 grep -v '^ *+' conftest.er1 >conftest.err
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } &&
29011 { ac_try='test -z "$ac_cxx_werror_flag"
29012 || test ! -s conftest.err'
29013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29014 (eval $ac_try) 2>&5
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); }; } &&
29018 { ac_try='test -s conftest.$ac_objext'
29019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020 (eval $ac_try) 2>&5
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; }; then
29024 ac_cv_func_std_isnan_in_cmath=yes
29026 echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29029 ac_cv_func_std_isnan_in_cmath=no
29031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29033 ac_cpp='$CPP $CPPFLAGS'
29034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29039 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29040 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29042 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29044 cat >>confdefs.h <<\_ACEOF
29045 #define HAVE_STD_ISNAN_IN_CMATH 1
29051 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29052 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29053 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29054 echo $ECHO_N "(cached) $ECHO_C" >&6
29057 ac_cpp='$CXXCPP $CPPFLAGS'
29058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29062 cat >conftest.$ac_ext <<_ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h. */
29077 rm -f conftest.$ac_objext
29078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29079 (eval $ac_compile) 2>conftest.er1
29081 grep -v '^ *+' conftest.er1 >conftest.err
29083 cat conftest.err >&5
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); } &&
29086 { ac_try='test -z "$ac_cxx_werror_flag"
29087 || test ! -s conftest.err'
29088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29089 (eval $ac_try) 2>&5
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); }; } &&
29093 { ac_try='test -s conftest.$ac_objext'
29094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29095 (eval $ac_try) 2>&5
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); }; }; then
29099 ac_cv_func_isinf_in_math_h=yes
29101 echo "$as_me: failed program was:" >&5
29102 sed 's/^/| /' conftest.$ac_ext >&5
29104 ac_cv_func_isinf_in_math_h=no
29106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29108 ac_cpp='$CPP $CPPFLAGS'
29109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29114 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29115 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29117 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29119 cat >>confdefs.h <<\_ACEOF
29120 #define HAVE_ISINF_IN_MATH_H 1
29125 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29126 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29127 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29128 echo $ECHO_N "(cached) $ECHO_C" >&6
29131 ac_cpp='$CXXCPP $CPPFLAGS'
29132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29136 cat >conftest.$ac_ext <<_ACEOF
29139 cat confdefs.h >>conftest.$ac_ext
29140 cat >>conftest.$ac_ext <<_ACEOF
29141 /* end confdefs.h. */
29151 rm -f conftest.$ac_objext
29152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29153 (eval $ac_compile) 2>conftest.er1
29155 grep -v '^ *+' conftest.er1 >conftest.err
29157 cat conftest.err >&5
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); } &&
29160 { ac_try='test -z "$ac_cxx_werror_flag"
29161 || test ! -s conftest.err'
29162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29163 (eval $ac_try) 2>&5
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); }; } &&
29167 { ac_try='test -s conftest.$ac_objext'
29168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29169 (eval $ac_try) 2>&5
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); }; }; then
29173 ac_cv_func_isinf_in_cmath=yes
29175 echo "$as_me: failed program was:" >&5
29176 sed 's/^/| /' conftest.$ac_ext >&5
29178 ac_cv_func_isinf_in_cmath=no
29180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29182 ac_cpp='$CPP $CPPFLAGS'
29183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29188 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29189 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29191 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29193 cat >>confdefs.h <<\_ACEOF
29194 #define HAVE_ISINF_IN_CMATH 1
29199 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29200 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29201 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29202 echo $ECHO_N "(cached) $ECHO_C" >&6
29205 ac_cpp='$CXXCPP $CPPFLAGS'
29206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29210 cat >conftest.$ac_ext <<_ACEOF
29213 cat confdefs.h >>conftest.$ac_ext
29214 cat >>conftest.$ac_ext <<_ACEOF
29215 /* end confdefs.h. */
29220 float f; std::isinf(f)}
29225 rm -f conftest.$ac_objext
29226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29227 (eval $ac_compile) 2>conftest.er1
29229 grep -v '^ *+' conftest.er1 >conftest.err
29231 cat conftest.err >&5
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); } &&
29234 { ac_try='test -z "$ac_cxx_werror_flag"
29235 || test ! -s conftest.err'
29236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237 (eval $ac_try) 2>&5
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; } &&
29241 { ac_try='test -s conftest.$ac_objext'
29242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29243 (eval $ac_try) 2>&5
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); }; }; then
29247 ac_cv_func_std_isinf_in_cmath=yes
29249 echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29252 ac_cv_func_std_isinf_in_cmath=no
29254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29256 ac_cpp='$CPP $CPPFLAGS'
29257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29262 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29263 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29265 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29267 cat >>confdefs.h <<\_ACEOF
29268 #define HAVE_STD_ISINF_IN_CMATH 1
29273 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29274 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29275 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29276 echo $ECHO_N "(cached) $ECHO_C" >&6
29279 ac_cpp='$CXXCPP $CPPFLAGS'
29280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29284 cat >conftest.$ac_ext <<_ACEOF
29287 cat confdefs.h >>conftest.$ac_ext
29288 cat >>conftest.$ac_ext <<_ACEOF
29289 /* end confdefs.h. */
29290 #include <ieeefp.h>
29294 float f; finite(f);
29299 rm -f conftest.$ac_objext
29300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29301 (eval $ac_compile) 2>conftest.er1
29303 grep -v '^ *+' conftest.er1 >conftest.err
29305 cat conftest.err >&5
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); } &&
29308 { ac_try='test -z "$ac_cxx_werror_flag"
29309 || test ! -s conftest.err'
29310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311 (eval $ac_try) 2>&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; } &&
29315 { ac_try='test -s conftest.$ac_objext'
29316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317 (eval $ac_try) 2>&5
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); }; }; then
29321 ac_cv_func_finite_in_ieeefp_h=yes
29323 echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29326 ac_cv_func_finite_in_ieeefp_h=no
29328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29330 ac_cpp='$CPP $CPPFLAGS'
29331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29336 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29337 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29339 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29341 cat >>confdefs.h <<\_ACEOF
29342 #define HAVE_FINITE_IN_IEEEFP_H 1
29351 for ac_header in stdlib.h unistd.h
29353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29355 echo "$as_me:$LINENO: checking for $ac_header" >&5
29356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29358 echo $ECHO_N "(cached) $ECHO_C" >&6
29360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29363 # Is the header compilable?
29364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29366 cat >conftest.$ac_ext <<_ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h. */
29372 $ac_includes_default
29373 #include <$ac_header>
29375 rm -f conftest.$ac_objext
29376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29377 (eval $ac_compile) 2>conftest.er1
29379 grep -v '^ *+' conftest.er1 >conftest.err
29381 cat conftest.err >&5
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); } &&
29384 { ac_try='test -z "$ac_c_werror_flag"
29385 || test ! -s conftest.err'
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); }; } &&
29391 { ac_try='test -s conftest.$ac_objext'
29392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29393 (eval $ac_try) 2>&5
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); }; }; then
29397 ac_header_compiler=yes
29399 echo "$as_me: failed program was:" >&5
29400 sed 's/^/| /' conftest.$ac_ext >&5
29402 ac_header_compiler=no
29404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29406 echo "${ECHO_T}$ac_header_compiler" >&6
29408 # Is the header present?
29409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29411 cat >conftest.$ac_ext <<_ACEOF
29414 cat confdefs.h >>conftest.$ac_ext
29415 cat >>conftest.$ac_ext <<_ACEOF
29416 /* end confdefs.h. */
29417 #include <$ac_header>
29419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29422 grep -v '^ *+' conftest.er1 >conftest.err
29424 cat conftest.err >&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } >/dev/null; then
29427 if test -s conftest.err; then
29428 ac_cpp_err=$ac_c_preproc_warn_flag
29429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29436 if test -z "$ac_cpp_err"; then
29437 ac_header_preproc=yes
29439 echo "$as_me: failed program was:" >&5
29440 sed 's/^/| /' conftest.$ac_ext >&5
29442 ac_header_preproc=no
29444 rm -f conftest.err conftest.$ac_ext
29445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29446 echo "${ECHO_T}$ac_header_preproc" >&6
29448 # So? What about this header?
29449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29455 ac_header_preproc=yes
29458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29472 ## ----------------------------------- ##
29473 ## Report this to llvmbugs@cs.uiuc.edu ##
29474 ## ----------------------------------- ##
29477 sed "s/^/$as_me: WARNING: /" >&2
29480 echo "$as_me:$LINENO: checking for $ac_header" >&5
29481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29483 echo $ECHO_N "(cached) $ECHO_C" >&6
29485 eval "$as_ac_Header=\$ac_header_preproc"
29487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29492 cat >>confdefs.h <<_ACEOF
29493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29501 for ac_func in getpagesize
29503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29504 echo "$as_me:$LINENO: checking for $ac_func" >&5
29505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29506 if eval "test \"\${$as_ac_var+set}\" = set"; then
29507 echo $ECHO_N "(cached) $ECHO_C" >&6
29509 cat >conftest.$ac_ext <<_ACEOF
29512 cat confdefs.h >>conftest.$ac_ext
29513 cat >>conftest.$ac_ext <<_ACEOF
29514 /* end confdefs.h. */
29515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29517 #define $ac_func innocuous_$ac_func
29519 /* System header to define __stub macros and hopefully few prototypes,
29520 which can conflict with char $ac_func (); below.
29521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29522 <limits.h> exists even on freestanding compilers. */
29525 # include <limits.h>
29527 # include <assert.h>
29532 /* Override any gcc2 internal prototype to avoid an error. */
29537 /* We use char because int might match the return type of a gcc2
29538 builtin and then its argument prototype would still apply. */
29540 /* The GNU C library defines this for functions which it implements
29541 to always fail with ENOSYS. Some functions are actually named
29542 something starting with __ and the normal name is an alias. */
29543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29546 char (*f) () = $ac_func;
29555 return f != $ac_func;
29560 rm -f conftest.$ac_objext conftest$ac_exeext
29561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29562 (eval $ac_link) 2>conftest.er1
29564 grep -v '^ *+' conftest.er1 >conftest.err
29566 cat conftest.err >&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } &&
29569 { ac_try='test -z "$ac_c_werror_flag"
29570 || test ! -s conftest.err'
29571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29572 (eval $ac_try) 2>&5
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; } &&
29576 { ac_try='test -s conftest$ac_exeext'
29577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578 (eval $ac_try) 2>&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; }; then
29582 eval "$as_ac_var=yes"
29584 echo "$as_me: failed program was:" >&5
29585 sed 's/^/| /' conftest.$ac_ext >&5
29587 eval "$as_ac_var=no"
29589 rm -f conftest.err conftest.$ac_objext \
29590 conftest$ac_exeext conftest.$ac_ext
29592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29594 if test `eval echo '${'$as_ac_var'}'` = yes; then
29595 cat >>confdefs.h <<_ACEOF
29596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29602 echo "$as_me:$LINENO: checking for working mmap" >&5
29603 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29604 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29605 echo $ECHO_N "(cached) $ECHO_C" >&6
29607 if test "$cross_compiling" = yes; then
29608 ac_cv_func_mmap_fixed_mapped=no
29610 cat >conftest.$ac_ext <<_ACEOF
29613 cat confdefs.h >>conftest.$ac_ext
29614 cat >>conftest.$ac_ext <<_ACEOF
29615 /* end confdefs.h. */
29616 $ac_includes_default
29617 /* malloc might have been renamed as rpl_malloc. */
29620 /* Thanks to Mike Haertel and Jim Avera for this test.
29621 Here is a matrix of mmap possibilities:
29622 mmap private not fixed
29623 mmap private fixed at somewhere currently unmapped
29624 mmap private fixed at somewhere already mapped
29625 mmap shared not fixed
29626 mmap shared fixed at somewhere currently unmapped
29627 mmap shared fixed at somewhere already mapped
29628 For private mappings, we should verify that changes cannot be read()
29629 back from the file, nor mmap's back from the file at a different
29630 address. (There have been systems where private was not correctly
29631 implemented like the infamous i386 svr4.0, and systems where the
29632 VM page cache was not coherent with the file system buffer cache
29633 like early versions of FreeBSD and possibly contemporary NetBSD.)
29634 For shared mappings, we should conversely verify that changes get
29635 propagated back to all the places they're supposed to be.
29637 Grep wants private fixed already mapped.
29638 The main things grep needs to know about mmap are:
29639 * does it exist and is it safe to write into the mmap'd area
29640 * how to use it (BSD variants) */
29643 #include <sys/mman.h>
29645 #if !STDC_HEADERS && !HAVE_STDLIB_H
29649 /* This mess was copied from the GNU getpagesize.h. */
29650 #if !HAVE_GETPAGESIZE
29651 /* Assume that all systems that can run configure have sys/param.h. */
29652 # if !HAVE_SYS_PARAM_H
29653 # define HAVE_SYS_PARAM_H 1
29656 # ifdef _SC_PAGESIZE
29657 # define getpagesize() sysconf(_SC_PAGESIZE)
29658 # else /* no _SC_PAGESIZE */
29659 # if HAVE_SYS_PARAM_H
29660 # include <sys/param.h>
29661 # ifdef EXEC_PAGESIZE
29662 # define getpagesize() EXEC_PAGESIZE
29663 # else /* no EXEC_PAGESIZE */
29665 # define getpagesize() NBPG * CLSIZE
29668 # endif /* no CLSIZE */
29669 # else /* no NBPG */
29671 # define getpagesize() NBPC
29672 # else /* no NBPC */
29674 # define getpagesize() PAGESIZE
29675 # endif /* PAGESIZE */
29676 # endif /* no NBPC */
29677 # endif /* no NBPG */
29678 # endif /* no EXEC_PAGESIZE */
29679 # else /* no HAVE_SYS_PARAM_H */
29680 # define getpagesize() 8192 /* punt totally */
29681 # endif /* no HAVE_SYS_PARAM_H */
29682 # endif /* no _SC_PAGESIZE */
29684 #endif /* no HAVE_GETPAGESIZE */
29689 char *data, *data2, *data3;
29693 pagesize = getpagesize ();
29695 /* First, make a file with some known garbage in it. */
29696 data = (char *) malloc (pagesize);
29699 for (i = 0; i < pagesize; ++i)
29700 *(data + i) = rand ();
29702 fd = creat ("conftest.mmap", 0600);
29705 if (write (fd, data, pagesize) != pagesize)
29709 /* Next, try to mmap the file at a fixed address which already has
29710 something else allocated at it. If we can, also make sure that
29711 we see the same garbage. */
29712 fd = open ("conftest.mmap", O_RDWR);
29715 data2 = (char *) malloc (2 * pagesize);
29718 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29719 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29720 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29722 for (i = 0; i < pagesize; ++i)
29723 if (*(data + i) != *(data2 + i))
29726 /* Finally, make sure that changes to the mapped area do not
29727 percolate back to the file as seen by read(). (This is a bug on
29728 some variants of i386 svr4.0.) */
29729 for (i = 0; i < pagesize; ++i)
29730 *(data2 + i) = *(data2 + i) + 1;
29731 data3 = (char *) malloc (pagesize);
29734 if (read (fd, data3, pagesize) != pagesize)
29736 for (i = 0; i < pagesize; ++i)
29737 if (*(data + i) != *(data3 + i))
29743 rm -f conftest$ac_exeext
29744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29745 (eval $ac_link) 2>&5
29747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750 (eval $ac_try) 2>&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; }; then
29754 ac_cv_func_mmap_fixed_mapped=yes
29756 echo "$as_me: program exited with status $ac_status" >&5
29757 echo "$as_me: failed program was:" >&5
29758 sed 's/^/| /' conftest.$ac_ext >&5
29760 ( exit $ac_status )
29761 ac_cv_func_mmap_fixed_mapped=no
29763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29766 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29767 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29768 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29770 cat >>confdefs.h <<\_ACEOF
29771 #define HAVE_MMAP 1
29775 rm -f conftest.mmap
29777 echo "$as_me:$LINENO: checking for mmap of files" >&5
29778 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29779 if test "${ac_cv_func_mmap_file+set}" = set; then
29780 echo $ECHO_N "(cached) $ECHO_C" >&6
29783 ac_cpp='$CPP $CPPFLAGS'
29784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29788 if test "$cross_compiling" = yes; then
29789 ac_cv_func_mmap_file=no
29791 cat >conftest.$ac_ext <<_ACEOF
29795 cat confdefs.h >>conftest.$ac_ext
29796 cat >>conftest.$ac_ext <<_ACEOF
29797 /* end confdefs.h. */
29799 #include <sys/types.h>
29800 #include <sys/mman.h>
29808 fd = creat ("foo",0777);
29809 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29811 return (fd != (int) MAP_FAILED);
29816 rm -f conftest$ac_exeext
29817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29818 (eval $ac_link) 2>&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; }; then
29827 ac_cv_func_mmap_file=yes
29829 echo "$as_me: program exited with status $ac_status" >&5
29830 echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29833 ( exit $ac_status )
29834 ac_cv_func_mmap_file=no
29836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29839 ac_cpp='$CPP $CPPFLAGS'
29840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29846 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29847 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29848 if test "$ac_cv_func_mmap_file" = yes; then
29850 cat >>confdefs.h <<\_ACEOF
29851 #define HAVE_MMAP_FILE
29858 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29859 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29860 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29861 echo $ECHO_N "(cached) $ECHO_C" >&6
29863 if test "$llvm_cv_os_type" = "Interix" ; then
29864 ac_cv_need_dev_zero_for_mmap=yes
29866 ac_cv_need_dev_zero_for_mmap=no
29870 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29871 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29872 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29874 cat >>confdefs.h <<\_ACEOF
29875 #define NEED_DEV_ZERO_FOR_MMAP 1
29879 echo "$as_me:$LINENO: checking for mprotect" >&5
29880 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29881 if test "${ac_cv_func_mprotect+set}" = set; then
29882 echo $ECHO_N "(cached) $ECHO_C" >&6
29884 cat >conftest.$ac_ext <<_ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h. */
29890 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29892 #define mprotect innocuous_mprotect
29894 /* System header to define __stub macros and hopefully few prototypes,
29895 which can conflict with char mprotect (); below.
29896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29897 <limits.h> exists even on freestanding compilers. */
29900 # include <limits.h>
29902 # include <assert.h>
29907 /* Override any gcc2 internal prototype to avoid an error. */
29912 /* We use char because int might match the return type of a gcc2
29913 builtin and then its argument prototype would still apply. */
29915 /* The GNU C library defines this for functions which it implements
29916 to always fail with ENOSYS. Some functions are actually named
29917 something starting with __ and the normal name is an alias. */
29918 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29921 char (*f) () = mprotect;
29930 return f != mprotect;
29935 rm -f conftest.$ac_objext conftest$ac_exeext
29936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29937 (eval $ac_link) 2>conftest.er1
29939 grep -v '^ *+' conftest.er1 >conftest.err
29941 cat conftest.err >&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } &&
29944 { ac_try='test -z "$ac_c_werror_flag"
29945 || test ! -s conftest.err'
29946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947 (eval $ac_try) 2>&5
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; } &&
29951 { ac_try='test -s conftest$ac_exeext'
29952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29953 (eval $ac_try) 2>&5
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; }; then
29957 ac_cv_func_mprotect=yes
29959 echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29962 ac_cv_func_mprotect=no
29964 rm -f conftest.err conftest.$ac_objext \
29965 conftest$ac_exeext conftest.$ac_ext
29967 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29968 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29969 if test $ac_cv_func_mprotect = yes; then
29972 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29973 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29974 { (exit 1); exit 1; }; }
29978 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29980 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
29981 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
29983 if test "$ac_cv_func_mmap_file" = "no"
29985 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29986 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29990 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29991 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29992 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29993 echo $ECHO_N "(cached) $ECHO_C" >&6
29995 llvm_cv_llvmgcc_sanity="no"
29996 if test -x "$LLVMGCC" ; then
29997 cp /dev/null conftest.c
29998 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29999 if test $? -eq 0 ; then
30000 llvm_cv_llvmgcc_sanity="yes"
30005 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30006 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30008 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30009 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30010 LLVMCC1=$llvmcc1path
30012 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30013 LLVMCC1PLUS=$llvmcc1pluspath
30015 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30016 LLVMGCCDIR=$llvmgccdir
30020 SHLIBEXT=$libltdl_cv_shlibext
30023 # Translate the various configuration directories and other basic
30024 # information into substitutions that will end up in Makefile.config.in
30025 # that these configured values can be used by the makefiles
30026 eval LLVM_PREFIX="${prefix}";
30027 eval LLVM_BINDIR="${prefix}/bin";
30028 eval LLVM_LIBDIR="${prefix}/lib";
30029 eval LLVM_DATADIR="${prefix}/share/llvm";
30030 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30031 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30032 eval LLVM_INCLUDEDIR="${prefix}/include";
30033 eval LLVM_INFODIR="${prefix}/info";
30034 eval LLVM_MANDIR="${prefix}/man";
30035 LLVM_CONFIGTIME=`date`
30047 # Place the various directores into the config.h file as #defines so that we
30048 # can know about the installation paths within LLVM.
30050 cat >>confdefs.h <<_ACEOF
30051 #define LLVM_PREFIX "$LLVM_PREFIX"
30055 cat >>confdefs.h <<_ACEOF
30056 #define LLVM_BINDIR "$LLVM_BINDIR"
30060 cat >>confdefs.h <<_ACEOF
30061 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30065 cat >>confdefs.h <<_ACEOF
30066 #define LLVM_DATADIR "$LLVM_DATADIR"
30070 cat >>confdefs.h <<_ACEOF
30071 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30075 cat >>confdefs.h <<_ACEOF
30076 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30080 cat >>confdefs.h <<_ACEOF
30081 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30085 cat >>confdefs.h <<_ACEOF
30086 #define LLVM_INFODIR "$LLVM_INFODIR"
30090 cat >>confdefs.h <<_ACEOF
30091 #define LLVM_MANDIR "$LLVM_MANDIR"
30095 cat >>confdefs.h <<_ACEOF
30096 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30101 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30104 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30106 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30108 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30110 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30112 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30115 ac_config_files="$ac_config_files Makefile.config"
30118 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30121 ac_config_files="$ac_config_files docs/doxygen.cfg"
30124 ac_config_commands="$ac_config_commands Makefile"
30127 ac_config_commands="$ac_config_commands Makefile.common"
30130 ac_config_commands="$ac_config_commands examples/Makefile"
30133 ac_config_commands="$ac_config_commands lib/Makefile"
30136 ac_config_commands="$ac_config_commands runtime/Makefile"
30139 ac_config_commands="$ac_config_commands test/Makefile"
30142 ac_config_commands="$ac_config_commands test/Makefile.tests"
30145 ac_config_commands="$ac_config_commands tools/Makefile"
30148 ac_config_commands="$ac_config_commands utils/Makefile"
30151 ac_config_commands="$ac_config_commands projects/Makefile"
30155 cat >confcache <<\_ACEOF
30156 # This file is a shell script that caches the results of configure
30157 # tests run on this system so they can be shared between configure
30158 # scripts and configure runs, see configure's option --config-cache.
30159 # It is not useful on other systems. If it contains results you don't
30160 # want to keep, you may remove or edit it.
30162 # config.status only pays attention to the cache file if you give it
30163 # the --recheck option to rerun configure.
30165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30167 # following values.
30171 # The following way of writing the cache mishandles newlines in values,
30172 # but we know of no workaround that is simple, portable, and efficient.
30173 # So, don't put newlines in cache variables' values.
30174 # Ultrix sh set writes to stderr and can't be redirected directly,
30175 # and sets the high bit in the cache file unless we assign to the vars.
30178 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30180 # `set' does not quote correctly, so add quotes (double-quote
30181 # substitution turns \\\\ into \\, and sed turns \\ into \).
30184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30187 # `set' quotes correctly as required by POSIX, so do not add quotes.
30189 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30198 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30200 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30201 if test -w $cache_file; then
30202 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30203 cat confcache >$cache_file
30205 echo "not updating unwritable cache $cache_file"
30210 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30211 # Let make expand exec_prefix.
30212 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30214 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30215 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30216 # trailing colons and then remove the whole line if VPATH becomes empty
30217 # (actually we leave an empty line to preserve line numbers).
30218 if test "x$srcdir" = x.; then
30219 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30220 s/:*\$(srcdir):*/:/;
30221 s/:*\${srcdir}:*/:/;
30223 s/^\([^=]*=[ ]*\):*/\1/;
30229 DEFS=-DHAVE_CONFIG_H
30233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30234 # 1. Remove the extension, and $U if already installed.
30235 ac_i=`echo "$ac_i" |
30236 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30238 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30239 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30241 LIBOBJS=$ac_libobjs
30243 LTLIBOBJS=$ac_ltlibobjs
30246 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30247 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30248 Usually this means the macro was only invoked conditionally." >&5
30249 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30250 Usually this means the macro was only invoked conditionally." >&2;}
30251 { (exit 1); exit 1; }; }
30253 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30254 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30255 Usually this means the macro was only invoked conditionally." >&5
30256 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30257 Usually this means the macro was only invoked conditionally." >&2;}
30258 { (exit 1); exit 1; }; }
30261 : ${CONFIG_STATUS=./config.status}
30262 ac_clean_files_save=$ac_clean_files
30263 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30264 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30265 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30266 cat >$CONFIG_STATUS <<_ACEOF
30268 # Generated by $as_me.
30269 # Run this file to recreate the current configuration.
30270 # Compiler output produced by configure, useful for debugging
30271 # configure, is in config.log if it exists.
30274 ac_cs_recheck=false
30276 SHELL=\${CONFIG_SHELL-$SHELL}
30279 cat >>$CONFIG_STATUS <<\_ACEOF
30280 ## --------------------- ##
30281 ## M4sh Initialization. ##
30282 ## --------------------- ##
30284 # Be Bourne compatible
30285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30288 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30289 # is contrary to our usage. Disable this feature.
30290 alias -g '${1+"$@"}'='"$@"'
30291 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30294 DUALCASE=1; export DUALCASE # for MKS sh
30296 # Support unset when possible.
30297 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30304 # Work around bugs in pre-3.0 UWIN ksh.
30305 $as_unset ENV MAIL MAILPATH
30312 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30313 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30314 LC_TELEPHONE LC_TIME
30316 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30317 eval $as_var=C; export $as_var
30323 # Required to use basename.
30324 if expr a : '\(a\)' >/dev/null 2>&1; then
30330 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30331 as_basename=basename
30337 # Name of the executable.
30338 as_me=`$as_basename "$0" ||
30339 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30340 X"$0" : 'X\(//\)$' \| \
30341 X"$0" : 'X\(/\)$' \| \
30342 . : '\(.\)' 2>/dev/null ||
30344 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30345 /^X\/\(\/\/\)$/{ s//\1/; q; }
30346 /^X\/\(\/\).*/{ s//\1/; q; }
30350 # PATH needs CR, and LINENO needs CR and PATH.
30351 # Avoid depending upon Character Ranges.
30352 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30353 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30354 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30355 as_cr_digits='0123456789'
30356 as_cr_alnum=$as_cr_Letters$as_cr_digits
30358 # The user is always right.
30359 if test "${PATH_SEPARATOR+set}" != set; then
30360 echo "#! /bin/sh" >conf$$.sh
30361 echo "exit 0" >>conf$$.sh
30363 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30372 as_lineno_1=$LINENO
30373 as_lineno_2=$LINENO
30374 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30375 test "x$as_lineno_1" != "x$as_lineno_2" &&
30376 test "x$as_lineno_3" = "x$as_lineno_2" || {
30377 # Find who we are. Look in the path if we contain no path at all
30380 *[\\/]* ) as_myself=$0 ;;
30381 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30382 for as_dir in $PATH
30385 test -z "$as_dir" && as_dir=.
30386 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30391 # We did not find ourselves, most probably we were run as `sh COMMAND'
30392 # in which case we are not to be found in the path.
30393 if test "x$as_myself" = x; then
30396 if test ! -f "$as_myself"; then
30397 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30398 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30399 { (exit 1); exit 1; }; }
30401 case $CONFIG_SHELL in
30403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30404 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30407 test -z "$as_dir" && as_dir=.
30408 for as_base in sh bash ksh sh5; do
30411 if ("$as_dir/$as_base" -c '
30412 as_lineno_1=$LINENO
30413 as_lineno_2=$LINENO
30414 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30415 test "x$as_lineno_1" != "x$as_lineno_2" &&
30416 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30417 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30418 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30419 CONFIG_SHELL=$as_dir/$as_base
30420 export CONFIG_SHELL
30421 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30430 # uniformly replaced by the line number. The first 'sed' inserts a
30431 # line-number line before each line; the second 'sed' does the real
30432 # work. The second script uses 'N' to pair each line-number line
30433 # with the numbered line, and appends trailing '-' during
30434 # substitution so that $LINENO is not a special case at line end.
30435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30436 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30437 sed '=' <$as_myself |
30442 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30445 s,^['$as_cr_digits']*\n,,
30446 ' >$as_me.lineno &&
30447 chmod +x $as_me.lineno ||
30448 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30449 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30450 { (exit 1); exit 1; }; }
30452 # Don't try to exec as it changes $[0], causing all sort of problems
30453 # (the dirname of $[0] is not the place where we might find the
30454 # original and so on. Autoconf is especially sensible to this).
30456 # Exit status is that of the last command.
30461 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30462 *c*,-n*) ECHO_N= ECHO_C='
30464 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30465 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30468 if expr a : '\(a\)' >/dev/null 2>&1; then
30474 rm -f conf$$ conf$$.exe conf$$.file
30476 if ln -s conf$$.file conf$$ 2>/dev/null; then
30477 # We could just check for DJGPP; but this test a) works b) is more generic
30478 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30479 if test -f conf$$.exe; then
30480 # Don't use ln at all; we don't have any links
30485 elif ln conf$$.file conf$$ 2>/dev/null; then
30490 rm -f conf$$ conf$$.exe conf$$.file
30492 if mkdir -p . 2>/dev/null; then
30495 test -d ./-p && rmdir ./-p
30499 as_executable_p="test -f"
30501 # Sed expression to map a string onto a valid CPP name.
30502 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30504 # Sed expression to map a string onto a valid variable name.
30505 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30509 # We need space, tab and new line, in precisely that order.
30519 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30520 # report actual input values of CONFIG_FILES etc. instead of their
30521 # values after options handling. Logging --version etc. is OK.
30525 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30526 ## Running $as_me. ##
30531 This file was extended by llvm $as_me 1.4, which was
30532 generated by GNU Autoconf 2.59. Invocation command line was
30534 CONFIG_FILES = $CONFIG_FILES
30535 CONFIG_HEADERS = $CONFIG_HEADERS
30536 CONFIG_LINKS = $CONFIG_LINKS
30537 CONFIG_COMMANDS = $CONFIG_COMMANDS
30541 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30545 # Files that config.status was made for.
30546 if test -n "$ac_config_files"; then
30547 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30550 if test -n "$ac_config_headers"; then
30551 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30554 if test -n "$ac_config_links"; then
30555 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30558 if test -n "$ac_config_commands"; then
30559 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30562 cat >>$CONFIG_STATUS <<\_ACEOF
30565 \`$as_me' instantiates files from templates according to the
30566 current configuration.
30568 Usage: $0 [OPTIONS] [FILE]...
30570 -h, --help print this help, then exit
30571 -V, --version print version number, then exit
30572 -q, --quiet do not print progress messages
30573 -d, --debug don't remove temporary files
30574 --recheck update $as_me by reconfiguring in the same conditions
30575 --file=FILE[:TEMPLATE]
30576 instantiate the configuration file FILE
30577 --header=FILE[:TEMPLATE]
30578 instantiate the configuration header FILE
30580 Configuration files:
30583 Configuration headers:
30586 Configuration commands:
30589 Report bugs to <bug-autoconf@gnu.org>."
30592 cat >>$CONFIG_STATUS <<_ACEOF
30594 llvm config.status 1.4
30595 configured by $0, generated by GNU Autoconf 2.59,
30596 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30598 Copyright (C) 2003 Free Software Foundation, Inc.
30599 This config.status script is free software; the Free Software Foundation
30600 gives unlimited permission to copy, distribute and modify it."
30605 cat >>$CONFIG_STATUS <<\_ACEOF
30606 # If no file are specified by the user, then we need to provide default
30607 # value. By we need to know if files were specified by the user.
30613 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30614 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30622 *) # This is not an option, so the user has probably given explicit
30625 ac_need_defaults=false;;
30629 # Handling of the options.
30631 cat >>$CONFIG_STATUS <<\_ACEOF
30632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30634 --version | --vers* | -V )
30635 echo "$ac_cs_version"; exit 0 ;;
30637 # Conflict between --help and --header
30638 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30639 Try \`$0 --help' for more information." >&5
30640 echo "$as_me: error: ambiguous option: $1
30641 Try \`$0 --help' for more information." >&2;}
30642 { (exit 1); exit 1; }; };;
30643 --help | --hel | -h )
30644 echo "$ac_cs_usage"; exit 0 ;;
30645 --debug | --d* | -d )
30647 --file | --fil | --fi | --f )
30649 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30650 ac_need_defaults=false;;
30651 --header | --heade | --head | --hea )
30653 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30654 ac_need_defaults=false;;
30655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30656 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30659 # This is an error.
30660 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30661 Try \`$0 --help' for more information." >&5
30662 echo "$as_me: error: unrecognized option: $1
30663 Try \`$0 --help' for more information." >&2;}
30664 { (exit 1); exit 1; }; } ;;
30666 *) ac_config_targets="$ac_config_targets $1" ;;
30672 ac_configure_extra_args=
30674 if $ac_cs_silent; then
30676 ac_configure_extra_args="$ac_configure_extra_args --silent"
30680 cat >>$CONFIG_STATUS <<_ACEOF
30681 if \$ac_cs_recheck; then
30682 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30683 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30688 cat >>$CONFIG_STATUS <<_ACEOF
30690 # INIT-COMMANDS section.
30693 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30694 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30695 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30696 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30697 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30698 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30699 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30700 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30701 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30702 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30708 cat >>$CONFIG_STATUS <<\_ACEOF
30709 for ac_config_target in $ac_config_targets
30711 case "$ac_config_target" in
30712 # Handling of arguments.
30713 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30714 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30715 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30716 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30717 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30718 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30719 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30720 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30721 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30722 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30723 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30724 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30725 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30726 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30727 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30728 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30729 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30730 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30731 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30732 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30733 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30734 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30735 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30736 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30737 { (exit 1); exit 1; }; };;
30741 # If the user did not use the arguments to specify the items to instantiate,
30742 # then the envvar interface is used. Set only those that are not.
30743 # We use the long form for the default assignment because of an extremely
30744 # bizarre bug on SunOS 4.1.3.
30745 if $ac_need_defaults; then
30746 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30747 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30748 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30751 # Have a temporary directory for convenience. Make it in the build tree
30752 # simply because there is no reason to put it here, and in addition,
30753 # creating and moving files from /tmp can sometimes cause problems.
30754 # Create a temporary directory, and hook for its removal unless debugging.
30757 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30758 trap '{ (exit 1); exit 1; }' 1 2 13 15
30761 # Create a (secure) tmp directory for tmp files.
30764 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30765 test -n "$tmp" && test -d "$tmp"
30768 tmp=./confstat$$-$RANDOM
30769 (umask 077 && mkdir $tmp)
30772 echo "$me: cannot create a temporary directory in ." >&2
30773 { (exit 1); exit 1; }
30778 cat >>$CONFIG_STATUS <<_ACEOF
30781 # CONFIG_FILES section.
30784 # No need to generate the scripts if there are no CONFIG_FILES.
30785 # This happens for instance when ./config.status config.h
30786 if test -n "\$CONFIG_FILES"; then
30787 # Protect against being on the right side of a sed subst in config.status.
30788 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30789 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30790 s,@SHELL@,$SHELL,;t t
30791 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30792 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30793 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30794 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30795 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30796 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30797 s,@exec_prefix@,$exec_prefix,;t t
30798 s,@prefix@,$prefix,;t t
30799 s,@program_transform_name@,$program_transform_name,;t t
30800 s,@bindir@,$bindir,;t t
30801 s,@sbindir@,$sbindir,;t t
30802 s,@libexecdir@,$libexecdir,;t t
30803 s,@datadir@,$datadir,;t t
30804 s,@sysconfdir@,$sysconfdir,;t t
30805 s,@sharedstatedir@,$sharedstatedir,;t t
30806 s,@localstatedir@,$localstatedir,;t t
30807 s,@libdir@,$libdir,;t t
30808 s,@includedir@,$includedir,;t t
30809 s,@oldincludedir@,$oldincludedir,;t t
30810 s,@infodir@,$infodir,;t t
30811 s,@mandir@,$mandir,;t t
30812 s,@build_alias@,$build_alias,;t t
30813 s,@host_alias@,$host_alias,;t t
30814 s,@target_alias@,$target_alias,;t t
30815 s,@DEFS@,$DEFS,;t t
30816 s,@ECHO_C@,$ECHO_C,;t t
30817 s,@ECHO_N@,$ECHO_N,;t t
30818 s,@ECHO_T@,$ECHO_T,;t t
30819 s,@LIBS@,$LIBS,;t t
30820 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30821 s,@subdirs@,$subdirs,;t t
30822 s,@build@,$build,;t t
30823 s,@build_cpu@,$build_cpu,;t t
30824 s,@build_vendor@,$build_vendor,;t t
30825 s,@build_os@,$build_os,;t t
30826 s,@host@,$host,;t t
30827 s,@host_cpu@,$host_cpu,;t t
30828 s,@host_vendor@,$host_vendor,;t t
30829 s,@host_os@,$host_os,;t t
30830 s,@target@,$target,;t t
30831 s,@target_cpu@,$target_cpu,;t t
30832 s,@target_vendor@,$target_vendor,;t t
30833 s,@target_os@,$target_os,;t t
30835 s,@ARCH@,$ARCH,;t t
30836 s,@ENDIAN@,$ENDIAN,;t t
30838 s,@CFLAGS@,$CFLAGS,;t t
30839 s,@LDFLAGS@,$LDFLAGS,;t t
30840 s,@CPPFLAGS@,$CPPFLAGS,;t t
30841 s,@ac_ct_CC@,$ac_ct_CC,;t t
30842 s,@EXEEXT@,$EXEEXT,;t t
30843 s,@OBJEXT@,$OBJEXT,;t t
30844 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30846 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30849 s,@CXXFLAGS@,$CXXFLAGS,;t t
30850 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30852 s,@LEXLIB@,$LEXLIB,;t t
30853 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30854 s,@FLEX@,$FLEX,;t t
30855 s,@YACC@,$YACC,;t t
30856 s,@BISON@,$BISON,;t t
30857 s,@ifGNUmake@,$ifGNUmake,;t t
30858 s,@LN_S@,$LN_S,;t t
30861 s,@DATE@,$DATE,;t t
30862 s,@FIND@,$FIND,;t t
30863 s,@GREP@,$GREP,;t t
30864 s,@MKDIR@,$MKDIR,;t t
30867 s,@RANLIB@,$RANLIB,;t t
30868 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30872 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30873 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30874 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30875 s,@BZIP2@,$BZIP2,;t t
30877 s,@DOXYGEN@,$DOXYGEN,;t t
30878 s,@ETAGS@,$ETAGS,;t t
30879 s,@GROFF@,$GROFF,;t t
30880 s,@GZIP@,$GZIP,;t t
30881 s,@POD2HTML@,$POD2HTML,;t t
30882 s,@POD2MAN@,$POD2MAN,;t t
30883 s,@RUNTEST@,$RUNTEST,;t t
30884 s,@TCLSH@,$TCLSH,;t t
30886 s,@EGREP@,$EGREP,;t t
30887 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30888 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30889 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30890 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30891 s,@LIBADD_DL@,$LIBADD_DL,;t t
30892 s,@ECHO@,$ECHO,;t t
30894 s,@ac_ct_AR@,$ac_ct_AR,;t t
30895 s,@STRIP@,$STRIP,;t t
30896 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30897 s,@CXXCPP@,$CXXCPP,;t t
30899 s,@FFLAGS@,$FFLAGS,;t t
30900 s,@ac_ct_F77@,$ac_ct_F77,;t t
30901 s,@LIBTOOL@,$LIBTOOL,;t t
30902 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30903 s,@LLVMGCC@,$LLVMGCC,;t t
30904 s,@LLVMGXX@,$LLVMGXX,;t t
30905 s,@ALLOCA@,$ALLOCA,;t t
30906 s,@MMAP_FILE@,$MMAP_FILE,;t t
30907 s,@LLVMCC1@,$LLVMCC1,;t t
30908 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30909 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30910 s,@SHLIBEXT@,$SHLIBEXT,;t t
30911 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30912 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30913 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30914 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30915 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30916 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30917 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30918 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30919 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30920 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30921 s,@LIBOBJS@,$LIBOBJS,;t t
30922 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30927 cat >>$CONFIG_STATUS <<\_ACEOF
30928 # Split the substitutions into bite-sized pieces for seds with
30929 # small command number limits, like on Digital OSF/1 and HP-UX.
30930 ac_max_sed_lines=48
30931 ac_sed_frag=1 # Number of current file.
30932 ac_beg=1 # First line for current file.
30933 ac_end=$ac_max_sed_lines # Line after last line for current file.
30936 while $ac_more_lines; do
30937 if test $ac_beg -gt 1; then
30938 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30940 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30942 if test ! -s $tmp/subs.frag; then
30943 ac_more_lines=false
30945 # The purpose of the label and of the branching condition is to
30946 # speed up the sed processing (if there are no `@' at all, there
30947 # is no need to browse any of the substitutions).
30948 # These are the two extra sed commands mentioned above.
30950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30951 if test -z "$ac_sed_cmds"; then
30952 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30954 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30956 ac_sed_frag=`expr $ac_sed_frag + 1`
30958 ac_end=`expr $ac_end + $ac_max_sed_lines`
30961 if test -z "$ac_sed_cmds"; then
30964 fi # test -n "$CONFIG_FILES"
30967 cat >>$CONFIG_STATUS <<\_ACEOF
30968 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30971 - | *:- | *:-:* ) # input from stdin
30973 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30974 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30975 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30976 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30977 * ) ac_file_in=$ac_file.in ;;
30980 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30981 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30983 X"$ac_file" : 'X\(//\)[^/]' \| \
30984 X"$ac_file" : 'X\(//\)$' \| \
30985 X"$ac_file" : 'X\(/\)' \| \
30986 . : '\(.\)' 2>/dev/null ||
30988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30990 /^X\(\/\/\)$/{ s//\1/; q; }
30991 /^X\(\/\).*/{ s//\1/; q; }
30993 { if $as_mkdir_p; then
30998 while test ! -d "$as_dir"; do
30999 as_dirs="$as_dir $as_dirs"
31000 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31002 X"$as_dir" : 'X\(//\)[^/]' \| \
31003 X"$as_dir" : 'X\(//\)$' \| \
31004 X"$as_dir" : 'X\(/\)' \| \
31005 . : '\(.\)' 2>/dev/null ||
31007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31009 /^X\(\/\/\)$/{ s//\1/; q; }
31010 /^X\(\/\).*/{ s//\1/; q; }
31013 test ! -n "$as_dirs" || mkdir $as_dirs
31014 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31015 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31016 { (exit 1); exit 1; }; }; }
31020 if test "$ac_dir" != .; then
31021 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31022 # A "../" for each directory in $ac_dir_suffix.
31023 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31025 ac_dir_suffix= ac_top_builddir=
31029 .) # No --srcdir option. We are building in place.
31031 if test -z "$ac_top_builddir"; then
31034 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31036 [\\/]* | ?:[\\/]* ) # Absolute path.
31037 ac_srcdir=$srcdir$ac_dir_suffix;
31038 ac_top_srcdir=$srcdir ;;
31039 *) # Relative path.
31040 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31041 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31044 # Do not use `cd foo && pwd` to compute absolute paths, because
31045 # the directories may not exist.
31047 .) ac_abs_builddir="$ac_dir";;
31050 .) ac_abs_builddir=`pwd`;;
31051 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31052 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31055 case $ac_abs_builddir in
31056 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31058 case ${ac_top_builddir}. in
31059 .) ac_abs_top_builddir=$ac_abs_builddir;;
31060 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31061 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31064 case $ac_abs_builddir in
31065 .) ac_abs_srcdir=$ac_srcdir;;
31068 .) ac_abs_srcdir=$ac_abs_builddir;;
31069 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31070 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31073 case $ac_abs_builddir in
31074 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31076 case $ac_top_srcdir in
31077 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31078 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31079 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31086 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31089 if test x"$ac_file" != x-; then
31090 { echo "$as_me:$LINENO: creating $ac_file" >&5
31091 echo "$as_me: creating $ac_file" >&6;}
31094 # Let's still pretend it is `configure' which instantiates (i.e., don't
31095 # use $as_me), people would be surprised to read:
31096 # /* config.h. Generated by config.status. */
31097 if test x"$ac_file" = x-; then
31100 configure_input="$ac_file. "
31102 configure_input=$configure_input"Generated from `echo $ac_file_in |
31103 sed 's,.*/,,'` by configure."
31105 # First look for the input files in the build tree, otherwise in the
31107 ac_file_inputs=`IFS=:
31108 for f in $ac_file_in; do
31110 -) echo $tmp/stdin ;;
31112 # Absolute (can't be DOS-style, as IFS=:)
31113 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31114 echo "$as_me: error: cannot find input file: $f" >&2;}
31115 { (exit 1); exit 1; }; }
31118 if test -f "$f"; then
31121 elif test -f "$srcdir/$f"; then
31126 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31127 echo "$as_me: error: cannot find input file: $f" >&2;}
31128 { (exit 1); exit 1; }; }
31131 done` || { (exit 1); exit 1; }
31133 cat >>$CONFIG_STATUS <<_ACEOF
31137 cat >>$CONFIG_STATUS <<\_ACEOF
31139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31140 s,@configure_input@,$configure_input,;t t
31141 s,@srcdir@,$ac_srcdir,;t t
31142 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31143 s,@top_srcdir@,$ac_top_srcdir,;t t
31144 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31145 s,@builddir@,$ac_builddir,;t t
31146 s,@abs_builddir@,$ac_abs_builddir,;t t
31147 s,@top_builddir@,$ac_top_builddir,;t t
31148 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31149 s,@INSTALL@,$ac_INSTALL,;t t
31150 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31152 if test x"$ac_file" != x-; then
31153 mv $tmp/out $ac_file
31161 cat >>$CONFIG_STATUS <<\_ACEOF
31164 # CONFIG_HEADER section.
31167 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31168 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31170 # ac_d sets the value in "#define NAME VALUE" lines.
31171 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31172 ac_dB='[ ].*$,\1#\2'
31175 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31176 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31177 ac_uB='$,\1#\2define\3'
31181 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31182 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31184 - | *:- | *:-:* ) # input from stdin
31186 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31187 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31188 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31189 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31190 * ) ac_file_in=$ac_file.in ;;
31193 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31194 echo "$as_me: creating $ac_file" >&6;}
31196 # First look for the input files in the build tree, otherwise in the
31198 ac_file_inputs=`IFS=:
31199 for f in $ac_file_in; do
31201 -) echo $tmp/stdin ;;
31203 # Absolute (can't be DOS-style, as IFS=:)
31204 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31205 echo "$as_me: error: cannot find input file: $f" >&2;}
31206 { (exit 1); exit 1; }; }
31207 # Do quote $f, to prevent DOS paths from being IFS'd.
31210 if test -f "$f"; then
31213 elif test -f "$srcdir/$f"; then
31218 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31219 echo "$as_me: error: cannot find input file: $f" >&2;}
31220 { (exit 1); exit 1; }; }
31223 done` || { (exit 1); exit 1; }
31224 # Remove the trailing spaces.
31225 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31229 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31230 # `conftest.undefs', that substitutes the proper values into
31231 # config.h.in to produce config.h. The first handles `#define'
31232 # templates, and the second `#undef' templates.
31233 # And first: Protect against being on the right side of a sed subst in
31234 # config.status. Protect against being in an unquoted here document
31235 # in config.status.
31236 rm -f conftest.defines conftest.undefs
31237 # Using a here document instead of a string reduces the quoting nightmare.
31238 # Putting comments in sed scripts is not portable.
31240 # `end' is used to avoid that the second main sed command (meant for
31241 # 0-ary CPP macros) applies to n-ary macro definitions.
31242 # See the Autoconf documentation for `clear'.
31243 cat >confdef2sed.sed <<\_ACEOF
31248 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31250 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31253 # If some macros were called several times there might be several times
31254 # the same #defines, which is useless. Nevertheless, we may not want to
31255 # sort them, since we want the *last* AC-DEFINE to be honored.
31256 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31257 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31258 rm -f confdef2sed.sed
31260 # This sed command replaces #undef with comments. This is necessary, for
31261 # example, in the case of _POSIX_SOURCE, which is predefined and required
31262 # on some systems where configure will not decide to define it.
31263 cat >>conftest.undefs <<\_ACEOF
31264 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31267 # Break up conftest.defines because some shells have a limit on the size
31268 # of here documents, and old seds have small limits too (100 cmds).
31269 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31270 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31271 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31272 echo ' :' >>$CONFIG_STATUS
31273 rm -f conftest.tail
31274 while grep . conftest.defines >/dev/null
31276 # Write a limited-size here document to $tmp/defines.sed.
31277 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31278 # Speed up: don't consider the non `#define' lines.
31279 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31280 # Work around the forget-to-reset-the-flag bug.
31281 echo 't clr' >>$CONFIG_STATUS
31282 echo ': clr' >>$CONFIG_STATUS
31283 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31285 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31287 mv $tmp/out $tmp/in
31289 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31290 rm -f conftest.defines
31291 mv conftest.tail conftest.defines
31293 rm -f conftest.defines
31294 echo ' fi # grep' >>$CONFIG_STATUS
31295 echo >>$CONFIG_STATUS
31297 # Break up conftest.undefs because some shells have a limit on the size
31298 # of here documents, and old seds have small limits too (100 cmds).
31299 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31300 rm -f conftest.tail
31301 while grep . conftest.undefs >/dev/null
31303 # Write a limited-size here document to $tmp/undefs.sed.
31304 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31305 # Speed up: don't consider the non `#undef'
31306 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31307 # Work around the forget-to-reset-the-flag bug.
31308 echo 't clr' >>$CONFIG_STATUS
31309 echo ': clr' >>$CONFIG_STATUS
31310 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31312 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31314 mv $tmp/out $tmp/in
31316 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31317 rm -f conftest.undefs
31318 mv conftest.tail conftest.undefs
31320 rm -f conftest.undefs
31322 cat >>$CONFIG_STATUS <<\_ACEOF
31323 # Let's still pretend it is `configure' which instantiates (i.e., don't
31324 # use $as_me), people would be surprised to read:
31325 # /* config.h. Generated by config.status. */
31326 if test x"$ac_file" = x-; then
31327 echo "/* Generated by configure. */" >$tmp/config.h
31329 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31331 cat $tmp/in >>$tmp/config.h
31333 if test x"$ac_file" != x-; then
31334 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31335 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31336 echo "$as_me: $ac_file is unchanged" >&6;}
31338 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31340 X"$ac_file" : 'X\(//\)[^/]' \| \
31341 X"$ac_file" : 'X\(//\)$' \| \
31342 X"$ac_file" : 'X\(/\)' \| \
31343 . : '\(.\)' 2>/dev/null ||
31345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31347 /^X\(\/\/\)$/{ s//\1/; q; }
31348 /^X\(\/\).*/{ s//\1/; q; }
31350 { if $as_mkdir_p; then
31355 while test ! -d "$as_dir"; do
31356 as_dirs="$as_dir $as_dirs"
31357 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31359 X"$as_dir" : 'X\(//\)[^/]' \| \
31360 X"$as_dir" : 'X\(//\)$' \| \
31361 X"$as_dir" : 'X\(/\)' \| \
31362 . : '\(.\)' 2>/dev/null ||
31364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31366 /^X\(\/\/\)$/{ s//\1/; q; }
31367 /^X\(\/\).*/{ s//\1/; q; }
31370 test ! -n "$as_dirs" || mkdir $as_dirs
31371 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31372 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31373 { (exit 1); exit 1; }; }; }
31376 mv $tmp/config.h $ac_file
31380 rm -f $tmp/config.h
31384 cat >>$CONFIG_STATUS <<\_ACEOF
31387 # CONFIG_COMMANDS section.
31389 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31390 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31391 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31392 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31393 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31394 X"$ac_dest" : 'X\(//\)[^/]' \| \
31395 X"$ac_dest" : 'X\(//\)$' \| \
31396 X"$ac_dest" : 'X\(/\)' \| \
31397 . : '\(.\)' 2>/dev/null ||
31399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31401 /^X\(\/\/\)$/{ s//\1/; q; }
31402 /^X\(\/\).*/{ s//\1/; q; }
31404 { if $as_mkdir_p; then
31409 while test ! -d "$as_dir"; do
31410 as_dirs="$as_dir $as_dirs"
31411 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31413 X"$as_dir" : 'X\(//\)[^/]' \| \
31414 X"$as_dir" : 'X\(//\)$' \| \
31415 X"$as_dir" : 'X\(/\)' \| \
31416 . : '\(.\)' 2>/dev/null ||
31418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31420 /^X\(\/\/\)$/{ s//\1/; q; }
31421 /^X\(\/\).*/{ s//\1/; q; }
31424 test ! -n "$as_dirs" || mkdir $as_dirs
31425 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31426 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31427 { (exit 1); exit 1; }; }; }
31431 if test "$ac_dir" != .; then
31432 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31433 # A "../" for each directory in $ac_dir_suffix.
31434 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31436 ac_dir_suffix= ac_top_builddir=
31440 .) # No --srcdir option. We are building in place.
31442 if test -z "$ac_top_builddir"; then
31445 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31447 [\\/]* | ?:[\\/]* ) # Absolute path.
31448 ac_srcdir=$srcdir$ac_dir_suffix;
31449 ac_top_srcdir=$srcdir ;;
31450 *) # Relative path.
31451 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31452 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31455 # Do not use `cd foo && pwd` to compute absolute paths, because
31456 # the directories may not exist.
31458 .) ac_abs_builddir="$ac_dir";;
31461 .) ac_abs_builddir=`pwd`;;
31462 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31463 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31466 case $ac_abs_builddir in
31467 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31469 case ${ac_top_builddir}. in
31470 .) ac_abs_top_builddir=$ac_abs_builddir;;
31471 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31472 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31475 case $ac_abs_builddir in
31476 .) ac_abs_srcdir=$ac_srcdir;;
31479 .) ac_abs_srcdir=$ac_abs_builddir;;
31480 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31481 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31484 case $ac_abs_builddir in
31485 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31487 case $ac_top_srcdir in
31488 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31489 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31490 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31495 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31496 echo "$as_me: executing $ac_dest commands" >&6;}
31498 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31499 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31500 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31501 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31502 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31503 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31504 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31505 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31506 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31507 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31512 cat >>$CONFIG_STATUS <<\_ACEOF
31514 { (exit 0); exit 0; }
31516 chmod +x $CONFIG_STATUS
31517 ac_clean_files=$ac_clean_files_save
31520 # configure is writing to config.log, and then calls config.status.
31521 # config.status does its own redirection, appending to config.log.
31522 # Unfortunately, on DOS this fails, as config.log is still kept open
31523 # by configure, so config.status won't be able to write to it; its
31524 # output is simply discarded. So we exec the FD to /dev/null,
31525 # effectively closing config.log, so it can be properly (re)opened and
31526 # appended to by config.status. When coming back to configure, we
31527 # need to make the FD available again.
31528 if test "$no_create" != yes; then
31530 ac_config_status_args=
31531 test "$silent" = yes &&
31532 ac_config_status_args="$ac_config_status_args --quiet"
31534 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31536 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31537 # would make configure fail if this is the last instruction.
31538 $ac_cs_success || { (exit 1); exit 1; }
31542 # CONFIG_SUBDIRS section.
31544 if test "$no_recursion" != yes; then
31546 # Remove --cache-file and --srcdir arguments so they do not pile up.
31547 ac_sub_configure_args=
31549 for ac_arg in $ac_configure_args; do
31550 if test -n "$ac_prev"; then
31555 -cache-file | --cache-file | --cache-fil | --cache-fi \
31556 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31557 ac_prev=cache_file ;;
31558 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31559 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31562 --config-cache | -C)
31564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31568 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31570 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31572 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31576 # Always prepend --prefix to ensure using the same prefix
31577 # in subdir configurations.
31578 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31581 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31583 # Do not complain, so a configure script can configure whichever
31584 # parts of a large source tree are present.
31585 test -d $srcdir/$ac_dir || continue
31587 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31588 echo "$as_me: configuring in $ac_dir" >&6;}
31589 { if $as_mkdir_p; then
31594 while test ! -d "$as_dir"; do
31595 as_dirs="$as_dir $as_dirs"
31596 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31598 X"$as_dir" : 'X\(//\)[^/]' \| \
31599 X"$as_dir" : 'X\(//\)$' \| \
31600 X"$as_dir" : 'X\(/\)' \| \
31601 . : '\(.\)' 2>/dev/null ||
31603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31605 /^X\(\/\/\)$/{ s//\1/; q; }
31606 /^X\(\/\).*/{ s//\1/; q; }
31609 test ! -n "$as_dirs" || mkdir $as_dirs
31610 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31611 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31612 { (exit 1); exit 1; }; }; }
31616 if test "$ac_dir" != .; then
31617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31618 # A "../" for each directory in $ac_dir_suffix.
31619 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31621 ac_dir_suffix= ac_top_builddir=
31625 .) # No --srcdir option. We are building in place.
31627 if test -z "$ac_top_builddir"; then
31630 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31632 [\\/]* | ?:[\\/]* ) # Absolute path.
31633 ac_srcdir=$srcdir$ac_dir_suffix;
31634 ac_top_srcdir=$srcdir ;;
31635 *) # Relative path.
31636 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31637 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31640 # Do not use `cd foo && pwd` to compute absolute paths, because
31641 # the directories may not exist.
31643 .) ac_abs_builddir="$ac_dir";;
31646 .) ac_abs_builddir=`pwd`;;
31647 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31648 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31651 case $ac_abs_builddir in
31652 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31654 case ${ac_top_builddir}. in
31655 .) ac_abs_top_builddir=$ac_abs_builddir;;
31656 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31657 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31660 case $ac_abs_builddir in
31661 .) ac_abs_srcdir=$ac_srcdir;;
31664 .) ac_abs_srcdir=$ac_abs_builddir;;
31665 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31666 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31669 case $ac_abs_builddir in
31670 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31672 case $ac_top_srcdir in
31673 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31674 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31675 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31682 # Check for guested configure; otherwise get Cygnus style configure.
31683 if test -f $ac_srcdir/configure.gnu; then
31684 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31685 elif test -f $ac_srcdir/configure; then
31686 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31687 elif test -f $ac_srcdir/configure.in; then
31688 ac_sub_configure=$ac_configure
31690 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31691 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31695 # The recursion is here.
31696 if test -n "$ac_sub_configure"; then
31697 # Make the cache file name correct relative to the subdirectory.
31698 case $cache_file in
31699 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31700 *) # Relative path.
31701 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31704 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31705 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31706 # The eval makes quoting arguments work.
31707 eval $ac_sub_configure $ac_sub_configure_args \
31708 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31709 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31710 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31711 { (exit 1); exit 1; }; }
31719 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31720 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31721 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31722 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31723 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31724 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31725 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31726 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31727 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31728 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31729 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}