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/llvm-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 LLVM_ON_UNIX LLVM_ON_WIN32 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/llvm-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
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_WIN32 1
1778 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1783 echo "$as_me:$LINENO: checking target architecture" >&5
1784 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1785 if test "${llvm_cv_target_arch+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 i?86-*) llvm_cv_target_arch="x86" ;;
1790 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1791 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1792 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1793 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1794 *) llvm_cv_target_arch="Unknown" ;;
1797 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1798 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1800 if test "$llvm_cv_target_arch" = "Unknown" ; then
1801 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1802 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1805 ARCH=$llvm_cv_target_arch
1809 ac_cpp='$CPP $CPPFLAGS'
1810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813 if test -n "$ac_tool_prefix"; then
1814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_CC+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 if test -n "$CC"; then
1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 if test -n "$CC"; then
1842 echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1850 if test -z "$ac_cv_prog_CC"; then
1852 # Extract the first word of "gcc", so it can be a program name with args.
1853 set dummy gcc; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$ac_ct_CC"; then
1860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_ac_ct_CC="gcc"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1879 if test -n "$ac_ct_CC"; then
1880 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1881 echo "${ECHO_T}$ac_ct_CC" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1892 if test -z "$CC"; then
1893 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1895 set dummy ${ac_tool_prefix}cc; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 if test -n "$CC"; then
1902 ac_cv_prog_CC="$CC" # Let the user override the test.
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_CC="${ac_tool_prefix}cc"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 if test -n "$CC"; then
1922 echo "$as_me:$LINENO: result: $CC" >&5
1923 echo "${ECHO_T}$CC" >&6
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1930 if test -z "$ac_cv_prog_CC"; then
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$ac_ct_CC"; then
1940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_ac_ct_CC="cc"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959 if test -n "$ac_ct_CC"; then
1960 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961 echo "${ECHO_T}$ac_ct_CC" >&6
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1973 if test -z "$CC"; then
1974 # Extract the first word of "cc", so it can be a program name with args.
1975 set dummy cc; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1993 ac_prog_rejected=yes
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 if test $ac_prog_rejected = yes; then
2004 # We found a bogon in the path, so make sure we never use it.
2005 set dummy $ac_cv_prog_CC
2007 if test $# != 0; then
2008 # We chose a different compiler from the bogus one.
2009 # However, it has the same basename, so the bogon will be chosen
2010 # first if we set CC to just the basename; use the full file name.
2012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2018 if test -n "$CC"; then
2019 echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6
2022 echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2027 if test -z "$CC"; then
2028 if test -n "$ac_tool_prefix"; then
2031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 if test -n "$CC"; then
2039 ac_cv_prog_CC="$CC" # Let the user override the test.
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 if test -n "$CC"; then
2059 echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2066 test -n "$CC" && break
2069 if test -z "$CC"; then
2073 # Extract the first word of "$ac_prog", so it can be a program name with args.
2074 set dummy $ac_prog; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 ac_cv_prog_ac_ct_CC="$ac_prog"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2108 test -n "$ac_ct_CC" && break
2117 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&5
2119 echo "$as_me: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&2;}
2121 { (exit 1); exit 1; }; }
2123 # Provide some information about the compiler.
2124 echo "$as_me:$LINENO:" \
2125 "checking for C compiler version" >&5
2126 ac_compiler=`set X $ac_compile; echo $2`
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2128 (eval $ac_compiler --version </dev/null >&5) 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2133 (eval $ac_compiler -v </dev/null >&5) 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }
2137 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2138 (eval $ac_compiler -V </dev/null >&5) 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2143 cat >conftest.$ac_ext <<_ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2163 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2167 (eval $ac_link_default) 2>&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; then
2171 # Find the output, starting from the most likely. This scheme is
2172 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2175 # Be careful to initialize this variable, since it used to be cached.
2176 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2178 # b.out is created by i960 compilers.
2179 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2181 test -f "$ac_file" || continue
2183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2186 # This is the source file.
2189 # We found the default executable, but exeext='' is most
2193 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194 # FIXME: I believe we export ac_cv_exeext for Libtool,
2195 # but it would be cool to find out if it's true. Does anybody
2196 # maintain Libtool? --akim.
2204 echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211 { (exit 77); exit 77; }; }
2214 ac_exeext=$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6
2218 # Check the compiler produces executables we can run. If not, either
2219 # the compiler is broken, or we cross compile.
2220 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225 if { ac_try='./$ac_file'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2233 if test "$cross_compiling" = maybe; then
2236 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&2;}
2242 { (exit 1); exit 1; }; }
2246 echo "$as_me:$LINENO: result: yes" >&5
2247 echo "${ECHO_T}yes" >&6
2249 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2250 ac_clean_files=$ac_clean_files_save
2251 # Check the compiler produces executables we can run. If not, either
2252 # the compiler is broken, or we cross compile.
2253 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2254 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2255 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2256 echo "${ECHO_T}$cross_compiling" >&6
2258 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2259 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2261 (eval $ac_link) 2>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; then
2265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2266 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2267 # work properly (i.e., refer to `conftest.exe'), while it won't with
2269 for ac_file in conftest.exe conftest conftest.*; do
2270 test -f "$ac_file" || continue
2272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&2;}
2284 { (exit 1); exit 1; }; }
2287 rm -f conftest$ac_cv_exeext
2288 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2289 echo "${ECHO_T}$ac_cv_exeext" >&6
2291 rm -f conftest.$ac_ext
2292 EXEEXT=$ac_cv_exeext
2294 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2295 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2296 if test "${ac_cv_objext+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 cat >conftest.$ac_ext <<_ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2314 rm -f conftest.o conftest.obj
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2323 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2331 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&2;}
2335 { (exit 1); exit 1; }; }
2338 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2340 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2341 echo "${ECHO_T}$ac_cv_objext" >&6
2342 OBJEXT=$ac_cv_objext
2344 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2345 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2346 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 cat >conftest.$ac_ext <<_ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h. */
2367 rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369 (eval $ac_compile) 2>conftest.er1
2371 grep -v '^ *+' conftest.er1 >conftest.err
2373 cat conftest.err >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } &&
2376 { ac_try='test -z "$ac_c_werror_flag"
2377 || test ! -s conftest.err'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; } &&
2383 { ac_try='test -s conftest.$ac_objext'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; }; then
2391 echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2397 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2400 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2401 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2402 GCC=`test $ac_compiler_gnu = yes && echo yes`
2403 ac_test_CFLAGS=${CFLAGS+set}
2404 ac_save_CFLAGS=$CFLAGS
2406 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2407 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2408 if test "${ac_cv_prog_cc_g+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 cat >conftest.$ac_ext <<_ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428 (eval $ac_compile) 2>conftest.er1
2430 grep -v '^ *+' conftest.er1 >conftest.err
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -z "$ac_c_werror_flag"
2436 || test ! -s conftest.err'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try='test -s conftest.$ac_objext'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2450 echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2457 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2459 if test "$ac_test_CFLAGS" = set; then
2460 CFLAGS=$ac_save_CFLAGS
2461 elif test $ac_cv_prog_cc_g = yes; then
2462 if test "$GCC" = yes; then
2468 if test "$GCC" = yes; then
2474 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 ac_cv_prog_cc_stdc=no
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2489 #include <sys/types.h>
2490 #include <sys/stat.h>
2491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2492 struct buf { int x; };
2493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2494 static char *e (p, i)
2500 static char *f (char * (*g) (char **, int), char **p, ...)
2505 s = g (p, va_arg (v,int));
2510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2511 function prototypes and stuff, but not '\xHH' hex character constants.
2512 These don't provoke an error unfortunately, instead are silently treated
2513 as 'x'. The following induces an error, until -std1 is added to get
2514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2515 array size at least. It's necessary to write '\x00'==0 to get something
2516 that's true only with -std1. */
2517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2519 int test (int i, double x);
2520 struct s1 {int (*f) (int a);};
2521 struct s2 {int (*f) (double a);};
2522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2528 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2533 # Don't try gcc -ansi; that turns off useful extensions and
2534 # breaks some systems' header files.
2535 # AIX -qlanglvl=ansi
2536 # Ultrix and OSF/1 -std1
2537 # HP-UX 10.20 and later -Ae
2538 # HP-UX older versions -Aa -D_HPUX_SOURCE
2539 # SVR4 -Xc -D__EXTENSIONS__
2540 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2542 CC="$ac_save_CC $ac_arg"
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>conftest.er1
2547 grep -v '^ *+' conftest.er1 >conftest.err
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag"
2553 || test ! -s conftest.err'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2565 ac_cv_prog_cc_stdc=$ac_arg
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2572 rm -f conftest.err conftest.$ac_objext
2574 rm -f conftest.$ac_ext conftest.$ac_objext
2579 case "x$ac_cv_prog_cc_stdc" in
2581 echo "$as_me:$LINENO: result: none needed" >&5
2582 echo "${ECHO_T}none needed" >&6 ;;
2584 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2585 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2586 CC="$CC $ac_cv_prog_cc_stdc" ;;
2589 # Some people use a C++ compiler to compile C. Since we use `exit',
2590 # in C++ we need to declare it. In case someone uses the same compiler
2591 # for both compiling C and C++ we need to have the C++ compiler decide
2592 # the declaration of exit, since it's the most demanding environment.
2593 cat >conftest.$ac_ext <<_ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 for ac_declaration in \
2622 'extern "C" void std::exit (int) throw (); using std::exit;' \
2623 'extern "C" void std::exit (int); using std::exit;' \
2624 'extern "C" void exit (int) throw ();' \
2625 'extern "C" void exit (int);' \
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674 cat >conftest.$ac_ext <<_ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2689 rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>conftest.er1
2693 grep -v '^ *+' conftest.er1 >conftest.err
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag"
2699 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720 if test -n "$ac_declaration"; then
2721 echo '#ifdef __cplusplus' >>confdefs.h
2722 echo $ac_declaration >>confdefs.h
2723 echo '#endif' >>confdefs.h
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2740 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2741 if test "${ac_cv_c_bigendian+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 # See if sys/param.h defines the BYTE_ORDER macro.
2745 cat >conftest.$ac_ext <<_ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2751 #include <sys/types.h>
2752 #include <sys/param.h>
2757 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2769 grep -v '^ *+' conftest.er1 >conftest.err
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_c_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 # It does; now see whether it defined to BIG_ENDIAN or not.
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2794 #include <sys/types.h>
2795 #include <sys/param.h>
2800 #if BYTE_ORDER != BIG_ENDIAN
2808 rm -f conftest.$ac_objext
2809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2810 (eval $ac_compile) 2>conftest.er1
2812 grep -v '^ *+' conftest.er1 >conftest.err
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 { ac_try='test -z "$ac_c_werror_flag"
2818 || test ! -s conftest.err'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 ac_cv_c_bigendian=yes
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2835 ac_cv_c_bigendian=no
2837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2842 # It does not; compile a test program.
2843 if test "$cross_compiling" = yes; then
2844 # try to guess the endianness by grepping values into an object file
2845 ac_cv_c_bigendian=unknown
2846 cat >conftest.$ac_ext <<_ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2852 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2853 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2854 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2855 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2856 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2857 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2861 _ascii (); _ebcdic ();
2866 rm -f conftest.$ac_objext
2867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868 (eval $ac_compile) 2>conftest.er1
2870 grep -v '^ *+' conftest.er1 >conftest.err
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 { ac_try='test -z "$ac_c_werror_flag"
2876 || test ! -s conftest.err'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; } &&
2882 { ac_try='test -s conftest.$ac_objext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2889 ac_cv_c_bigendian=yes
2891 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2892 if test "$ac_cv_c_bigendian" = unknown; then
2893 ac_cv_c_bigendian=no
2895 # finding both strings is unlikely to happen, but who knows?
2896 ac_cv_c_bigendian=unknown
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906 cat >conftest.$ac_ext <<_ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2915 /* Are we little or big endian? From Harbison&Steele. */
2919 char c[sizeof (long)];
2922 exit (u.c[sizeof (long) - 1] == 1);
2925 rm -f conftest$ac_exeext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2927 (eval $ac_link) 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 ac_cv_c_bigendian=no
2938 echo "$as_me: program exited with status $ac_status" >&5
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2943 ac_cv_c_bigendian=yes
2945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2951 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2952 case $ac_cv_c_bigendian in
2960 { { echo "$as_me:$LINENO: error: unknown endianness
2961 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2962 echo "$as_me: error: unknown endianness
2963 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2964 { (exit 1); exit 1; }; } ;;
2969 # Check whether --enable-optimized or --disable-optimized was given.
2970 if test "${enable_optimized+set}" = set; then
2971 enableval="$enable_optimized"
2976 if test ${enableval} = "no" ; then
2980 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2984 # Check whether --enable-jit or --disable-jit was given.
2985 if test "${enable_jit+set}" = set; then
2986 enableval="$enable_jit"
2991 if test ${enableval} = "no"
2996 case "$llvm_cv_target_arch" in
2997 x86) JIT=TARGET_HAS_JIT=1
2999 Sparc) JIT=TARGET_HAS_JIT=1
3001 PowerPC) JIT=TARGET_HAS_JIT=1
3010 # Check whether --enable-doxygen or --disable-doxygen was given.
3011 if test "${enable_doxygen+set}" = set; then
3012 enableval="$enable_doxygen"
3017 case "$enableval" in
3018 yes) ENABLE_DOXYGEN=1
3020 no) ENABLE_DOXYGEN=0
3022 default) ENABLE_DOXYGEN=0
3024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3025 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3026 { (exit 1); exit 1; }; } ;;
3030 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3031 if test "${with_llvmgccdir+set}" = set; then
3032 withval="$with_llvmgccdir"
3038 default) WITH_LLVMGCCDIR=default ;;
3039 /*) WITH_LLVMGCCDIR=$withval ;;
3040 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3041 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3042 { (exit 1); exit 1; }; } ;;
3047 ac_cpp='$CPP $CPPFLAGS'
3048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3053 # On Suns, sometimes $CPP names a directory.
3054 if test -n "$CPP" && test -d "$CPP"; then
3057 if test -z "$CPP"; then
3058 if test "${ac_cv_prog_CPP+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 # Double quotes because CPP needs to be expanded
3062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3065 for ac_c_preproc_warn_flag in '' yes
3067 # Use a header file that comes with gcc, so configuring glibc
3068 # with a fresh cross-compiler works.
3069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070 # <limits.h> exists even on freestanding compilers.
3071 # On the NeXT, cc -E runs the code through the compiler's parser,
3072 # not just through cpp. "Syntax error" is here to catch this case.
3073 cat >conftest.$ac_ext <<_ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3080 # include <limits.h>
3082 # include <assert.h>
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null; then
3094 if test -s conftest.err; then
3095 ac_cpp_err=$ac_c_preproc_warn_flag
3096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103 if test -z "$ac_cpp_err"; then
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 # Broken: fails on valid input.
3112 rm -f conftest.err conftest.$ac_ext
3114 # OK, works on sane cases. Now check whether non-existent headers
3115 # can be detected and how.
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3122 #include <ac_nonexistent.h>
3124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } >/dev/null; then
3132 if test -s conftest.err; then
3133 ac_cpp_err=$ac_c_preproc_warn_flag
3134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3141 if test -z "$ac_cpp_err"; then
3142 # Broken: success on invalid input.
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 # Passes both tests.
3152 rm -f conftest.err conftest.$ac_ext
3155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156 rm -f conftest.err conftest.$ac_ext
3157 if $ac_preproc_ok; then
3169 echo "$as_me:$LINENO: result: $CPP" >&5
3170 echo "${ECHO_T}$CPP" >&6
3172 for ac_c_preproc_warn_flag in '' yes
3174 # Use a header file that comes with gcc, so configuring glibc
3175 # with a fresh cross-compiler works.
3176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3177 # <limits.h> exists even on freestanding compilers.
3178 # On the NeXT, cc -E runs the code through the compiler's parser,
3179 # not just through cpp. "Syntax error" is here to catch this case.
3180 cat >conftest.$ac_ext <<_ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3187 # include <limits.h>
3189 # include <assert.h>
3193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196 grep -v '^ *+' conftest.er1 >conftest.err
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null; then
3201 if test -s conftest.err; then
3202 ac_cpp_err=$ac_c_preproc_warn_flag
3203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3210 if test -z "$ac_cpp_err"; then
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3216 # Broken: fails on valid input.
3219 rm -f conftest.err conftest.$ac_ext
3221 # OK, works on sane cases. Now check whether non-existent headers
3222 # can be detected and how.
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229 #include <ac_nonexistent.h>
3231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null; then
3239 if test -s conftest.err; then
3240 ac_cpp_err=$ac_c_preproc_warn_flag
3241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3248 if test -z "$ac_cpp_err"; then
3249 # Broken: success on invalid input.
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 # Passes both tests.
3259 rm -f conftest.err conftest.$ac_ext
3262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3263 rm -f conftest.err conftest.$ac_ext
3264 if $ac_preproc_ok; then
3267 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3268 See \`config.log' for more details." >&5
3269 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3270 See \`config.log' for more details." >&2;}
3271 { (exit 1); exit 1; }; }
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 if test -n "$ac_tool_prefix"; then
3288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_CC+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC="$CC" # Let the user override the test.
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 if test -n "$CC"; then
3316 echo "$as_me:$LINENO: result: $CC" >&5
3317 echo "${ECHO_T}$CC" >&6
3319 echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3323 test -n "$CC" && break
3326 if test -z "$CC"; then
3330 # Extract the first word of "$ac_prog", so it can be a program name with args.
3331 set dummy $ac_prog; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 if test -n "$ac_ct_CC"; then
3338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_ac_ct_CC="$ac_prog"
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3359 echo "${ECHO_T}$ac_ct_CC" >&6
3361 echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3365 test -n "$ac_ct_CC" && break
3372 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3373 See \`config.log' for more details." >&5
3374 echo "$as_me: error: no acceptable C compiler found in \$PATH
3375 See \`config.log' for more details." >&2;}
3376 { (exit 1); exit 1; }; }
3378 # Provide some information about the compiler.
3379 echo "$as_me:$LINENO:" \
3380 "checking for C compiler version" >&5
3381 ac_compiler=`set X $ac_compile; echo $2`
3382 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3383 (eval $ac_compiler --version </dev/null >&5) 2>&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }
3387 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3388 (eval $ac_compiler -v </dev/null >&5) 2>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }
3392 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3393 (eval $ac_compiler -V </dev/null >&5) 2>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }
3398 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3399 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3400 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>conftest.er1
3425 grep -v '^ *+' conftest.er1 >conftest.err
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -z "$ac_c_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3454 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3455 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3456 GCC=`test $ac_compiler_gnu = yes && echo yes`
3457 ac_test_CFLAGS=${CFLAGS+set}
3458 ac_save_CFLAGS=$CFLAGS
3460 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3462 if test "${ac_cv_prog_cc_g+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 cat >conftest.$ac_ext <<_ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482 (eval $ac_compile) 2>conftest.er1
3484 grep -v '^ *+' conftest.er1 >conftest.err
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -z "$ac_c_werror_flag"
3490 || test ! -s conftest.err'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try='test -s conftest.$ac_objext'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3511 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3512 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3513 if test "$ac_test_CFLAGS" = set; then
3514 CFLAGS=$ac_save_CFLAGS
3515 elif test $ac_cv_prog_cc_g = yes; then
3516 if test "$GCC" = yes; then
3522 if test "$GCC" = yes; then
3528 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3529 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3530 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 ac_cv_prog_cc_stdc=no
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3543 #include <sys/types.h>
3544 #include <sys/stat.h>
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3559 s = g (p, va_arg (v,int));
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3565 function prototypes and stuff, but not '\xHH' hex character constants.
3566 These don't provoke an error unfortunately, instead are silently treated
3567 as 'x'. The following induces an error, until -std1 is added to get
3568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3569 array size at least. It's necessary to write '\x00'==0 to get something
3570 that's true only with -std1. */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573 int test (int i, double x);
3574 struct s1 {int (*f) (int a);};
3575 struct s2 {int (*f) (double a);};
3576 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3582 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3587 # Don't try gcc -ansi; that turns off useful extensions and
3588 # breaks some systems' header files.
3589 # AIX -qlanglvl=ansi
3590 # Ultrix and OSF/1 -std1
3591 # HP-UX 10.20 and later -Ae
3592 # HP-UX older versions -Aa -D_HPUX_SOURCE
3593 # SVR4 -Xc -D__EXTENSIONS__
3594 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3596 CC="$ac_save_CC $ac_arg"
3597 rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>conftest.er1
3601 grep -v '^ *+' conftest.er1 >conftest.err
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 { ac_try='test -z "$ac_c_werror_flag"
3607 || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try='test -s conftest.$ac_objext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 ac_cv_prog_cc_stdc=$ac_arg
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3626 rm -f conftest.err conftest.$ac_objext
3628 rm -f conftest.$ac_ext conftest.$ac_objext
3633 case "x$ac_cv_prog_cc_stdc" in
3635 echo "$as_me:$LINENO: result: none needed" >&5
3636 echo "${ECHO_T}none needed" >&6 ;;
3638 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3640 CC="$CC $ac_cv_prog_cc_stdc" ;;
3643 # Some people use a C++ compiler to compile C. Since we use `exit',
3644 # in C++ we need to declare it. In case someone uses the same compiler
3645 # for both compiling C and C++ we need to have the C++ compiler decide
3646 # the declaration of exit, since it's the most demanding environment.
3647 cat >conftest.$ac_ext <<_ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>conftest.er1
3656 grep -v '^ *+' conftest.er1 >conftest.err
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag"
3662 || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest.$ac_objext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 for ac_declaration in \
3676 'extern "C" void std::exit (int) throw (); using std::exit;' \
3677 'extern "C" void std::exit (int); using std::exit;' \
3678 'extern "C" void exit (int) throw ();' \
3679 'extern "C" void exit (int);' \
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3698 rm -f conftest.$ac_objext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>conftest.er1
3702 grep -v '^ *+' conftest.er1 >conftest.err
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
3707 { ac_try='test -z "$ac_c_werror_flag"
3708 || test ! -s conftest.err'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728 cat >conftest.$ac_ext <<_ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>conftest.er1
3747 grep -v '^ *+' conftest.er1 >conftest.err
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -z "$ac_c_werror_flag"
3753 || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774 if test -n "$ac_declaration"; then
3775 echo '#ifdef __cplusplus' >>confdefs.h
3776 echo $ac_declaration >>confdefs.h
3777 echo '#endif' >>confdefs.h
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 ac_cpp='$CXXCPP $CPPFLAGS'
3794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3797 if test -n "$ac_tool_prefix"; then
3798 for ac_prog in $CCC g++
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802 echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 if test "${ac_cv_prog_CXX+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if test -n "$CXX"; then
3808 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 if test -n "$CXX"; then
3828 echo "$as_me:$LINENO: result: $CXX" >&5
3829 echo "${ECHO_T}$CXX" >&6
3831 echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6
3835 test -n "$CXX" && break
3838 if test -z "$CXX"; then
3840 for ac_prog in $CCC g++
3842 # Extract the first word of "$ac_prog", so it can be a program name with args.
3843 set dummy $ac_prog; ac_word=$2
3844 echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 if test -n "$ac_ct_CXX"; then
3850 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_ac_ct_CXX="$ac_prog"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3869 if test -n "$ac_ct_CXX"; then
3870 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3871 echo "${ECHO_T}$ac_ct_CXX" >&6
3873 echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3877 test -n "$ac_ct_CXX" && break
3879 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3885 # Provide some information about the compiler.
3886 echo "$as_me:$LINENO:" \
3887 "checking for C++ compiler version" >&5
3888 ac_compiler=`set X $ac_compile; echo $2`
3889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3890 (eval $ac_compiler --version </dev/null >&5) 2>&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }
3894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3895 (eval $ac_compiler -v </dev/null >&5) 2>&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }
3899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3900 (eval $ac_compiler -V </dev/null >&5) 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }
3905 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3906 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3907 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3928 rm -f conftest.$ac_objext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>conftest.er1
3932 grep -v '^ *+' conftest.er1 >conftest.err
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 { ac_try='test -z "$ac_cxx_werror_flag"
3938 || test ! -s conftest.err'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; } &&
3944 { ac_try='test -s conftest.$ac_objext'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; }; then
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3961 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3962 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3963 GXX=`test $ac_compiler_gnu = yes && echo yes`
3964 ac_test_CXXFLAGS=${CXXFLAGS+set}
3965 ac_save_CXXFLAGS=$CXXFLAGS
3967 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3968 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3969 if test "${ac_cv_prog_cxx_g+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 cat >conftest.$ac_ext <<_ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3987 rm -f conftest.$ac_objext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>conftest.er1
3991 grep -v '^ *+' conftest.er1 >conftest.err
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try='test -z "$ac_cxx_werror_flag"
3997 || test ! -s conftest.err'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; } &&
4003 { ac_try='test -s conftest.$ac_objext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 ac_cv_prog_cxx_g=yes
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4018 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4019 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4020 if test "$ac_test_CXXFLAGS" = set; then
4021 CXXFLAGS=$ac_save_CXXFLAGS
4022 elif test $ac_cv_prog_cxx_g = yes; then
4023 if test "$GXX" = yes; then
4029 if test "$GXX" = yes; then
4035 for ac_declaration in \
4037 'extern "C" void std::exit (int) throw (); using std::exit;' \
4038 'extern "C" void std::exit (int); using std::exit;' \
4039 'extern "C" void exit (int) throw ();' \
4040 'extern "C" void exit (int);' \
4043 cat >conftest.$ac_ext <<_ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_cxx_werror_flag"
4069 || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4089 cat >conftest.$ac_ext <<_ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4104 rm -f conftest.$ac_objext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_cxx_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 if test -n "$ac_declaration"; then
4136 echo '#ifdef __cplusplus' >>confdefs.h
4137 echo $ac_declaration >>confdefs.h
4138 echo '#endif' >>confdefs.h
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147 echo "$as_me:$LINENO: checking " >&5
4148 echo $ECHO_N "checking ... $ECHO_C" >&6
4149 if test "${ac_cv_has_flex+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 for ac_prog in flex lex
4154 # Extract the first word of "$ac_prog", so it can be a program name with args.
4155 set dummy $ac_prog; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_prog_LEX+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test -n "$LEX"; then
4162 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171 ac_cv_prog_LEX="$ac_prog"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 if test -n "$LEX"; then
4182 echo "$as_me:$LINENO: result: $LEX" >&5
4183 echo "${ECHO_T}$LEX" >&6
4185 echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4189 test -n "$LEX" && break
4191 test -n "$LEX" || LEX=":"
4193 if test -z "$LEXLIB"
4195 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4196 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4197 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 ac_check_lib_save_LIBS=$LIBS
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4209 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4224 rm -f conftest.$ac_objext conftest$ac_exeext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226 (eval $ac_link) 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_c_werror_flag"
4234 || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest$ac_exeext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_cv_lib_fl_yywrap=yes
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 ac_cv_lib_fl_yywrap=no
4253 rm -f conftest.err conftest.$ac_objext \
4254 conftest$ac_exeext conftest.$ac_ext
4255 LIBS=$ac_check_lib_save_LIBS
4257 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4258 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4259 if test $ac_cv_lib_fl_yywrap = yes; then
4262 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4263 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4264 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 ac_check_lib_save_LIBS=$LIBS
4269 cat >conftest.$ac_ext <<_ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4276 /* Override any gcc2 internal prototype to avoid an error. */
4280 /* We use char because int might match the return type of a gcc2
4281 builtin and then its argument prototype would still apply. */
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4293 (eval $ac_link) 2>conftest.er1
4295 grep -v '^ *+' conftest.er1 >conftest.err
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
4300 { ac_try='test -z "$ac_c_werror_flag"
4301 || test ! -s conftest.err'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try='test -s conftest$ac_exeext'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4313 ac_cv_lib_l_yywrap=yes
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 ac_cv_lib_l_yywrap=no
4320 rm -f conftest.err conftest.$ac_objext \
4321 conftest$ac_exeext conftest.$ac_ext
4322 LIBS=$ac_check_lib_save_LIBS
4324 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4325 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4326 if test $ac_cv_lib_l_yywrap = yes; then
4334 if test "x$LEX" != "x:"; then
4335 echo "$as_me:$LINENO: checking lex output file root" >&5
4336 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4337 if test "${ac_cv_prog_lex_root+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 # The minimal lex program is just a single line: %%. But some broken lexes
4341 # (Solaris, I think it was) want two %% lines, so accommodate them.
4342 cat >conftest.l <<_ACEOF
4346 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4347 (eval $LEX conftest.l) 2>&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }
4351 if test -f lex.yy.c; then
4352 ac_cv_prog_lex_root=lex.yy
4353 elif test -f lexyy.c; then
4354 ac_cv_prog_lex_root=lexyy
4356 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4357 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4358 { (exit 1); exit 1; }; }
4361 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4362 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4364 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4366 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4367 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4368 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 # POSIX says lex can declare yytext either as a pointer or an array; the
4372 # default is implementation-dependent. Figure out which it is, since
4373 # not all implementations provide the %pointer and %array declarations.
4374 ac_cv_prog_lex_yytext_pointer=no
4375 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4377 LIBS="$LIBS $LEXLIB"
4378 cat >conftest.$ac_ext <<_ACEOF
4379 `cat $LEX_OUTPUT_ROOT.c`
4381 rm -f conftest.$ac_objext conftest$ac_exeext
4382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4383 (eval $ac_link) 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } &&
4390 { ac_try='test -z "$ac_c_werror_flag"
4391 || test ! -s conftest.err'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest$ac_exeext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 ac_cv_prog_lex_yytext_pointer=yes
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4409 rm -f conftest.err conftest.$ac_objext \
4410 conftest$ac_exeext conftest.$ac_ext
4412 rm -f "${LEX_OUTPUT_ROOT}.c"
4415 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4416 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4417 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4419 cat >>confdefs.h <<\_ACEOF
4420 #define YYTEXT_POINTER 1
4428 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4429 echo "${ECHO_T}$ac_cv_has_flex" >&6
4430 if test "$LEX" != "flex"; then
4431 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4432 echo "$as_me: error: flex not found but required" >&2;}
4433 { (exit 1); exit 1; }; }
4439 echo "$as_me:$LINENO: checking " >&5
4440 echo $ECHO_N "checking ... $ECHO_C" >&6
4441 if test "${llvm_cv_has_bison+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 for ac_prog in 'bison -y' byacc
4446 # Extract the first word of "$ac_prog", so it can be a program name with args.
4447 set dummy $ac_prog; ac_word=$2
4448 echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450 if test "${ac_cv_prog_YACC+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 if test -n "$YACC"; then
4454 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_YACC="$ac_prog"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 YACC=$ac_cv_prog_YACC
4473 if test -n "$YACC"; then
4474 echo "$as_me:$LINENO: result: $YACC" >&5
4475 echo "${ECHO_T}$YACC" >&6
4477 echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4481 test -n "$YACC" && break
4483 test -n "$YACC" || YACC="yacc"
4486 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4487 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4488 if test "$YACC" != "bison -y"; then
4489 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4490 echo "$as_me: error: bison not found but required" >&2;}
4491 { (exit 1); exit 1; }; }
4497 echo "$as_me:$LINENO: checking for GNU make" >&5
4498 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4499 if test "${llvm_cv_gnu_make_command+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 llvm_cv_gnu_make_command=''
4503 for a in "$MAKE" make gmake gnumake ; do
4504 if test -z "$a" ; then continue ; fi ;
4505 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4507 llvm_cv_gnu_make_command=$a ;
4512 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4513 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4514 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4518 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4519 echo "${ECHO_T}\"Not found\"" >&6;
4523 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4524 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4526 if test "$LN_S" = "ln -s"; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528 echo "${ECHO_T}yes" >&6
4530 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4531 echo "${ECHO_T}no, using $LN_S" >&6
4534 # Extract the first word of "cmp", so it can be a program name with args.
4535 set dummy cmp; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_path_CMP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4566 if test -n "$CMP"; then
4567 echo "$as_me:$LINENO: result: $CMP" >&5
4568 echo "${ECHO_T}$CMP" >&6
4570 echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6
4574 # Extract the first word of "cp", so it can be a program name with args.
4575 set dummy cp; ac_word=$2
4576 echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578 if test "${ac_cv_path_CP+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4606 if test -n "$CP"; then
4607 echo "$as_me:$LINENO: result: $CP" >&5
4608 echo "${ECHO_T}$CP" >&6
4610 echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4614 # Extract the first word of "date", so it can be a program name with args.
4615 set dummy date; ac_word=$2
4616 echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618 if test "${ac_cv_path_DATE+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4644 DATE=$ac_cv_path_DATE
4646 if test -n "$DATE"; then
4647 echo "$as_me:$LINENO: result: $DATE" >&5
4648 echo "${ECHO_T}$DATE" >&6
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4654 # Extract the first word of "find", so it can be a program name with args.
4655 set dummy find; ac_word=$2
4656 echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658 if test "${ac_cv_path_FIND+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4684 FIND=$ac_cv_path_FIND
4686 if test -n "$FIND"; then
4687 echo "$as_me:$LINENO: result: $FIND" >&5
4688 echo "${ECHO_T}$FIND" >&6
4690 echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4694 # Extract the first word of "grep", so it can be a program name with args.
4695 set dummy grep; ac_word=$2
4696 echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698 if test "${ac_cv_path_GREP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4724 GREP=$ac_cv_path_GREP
4726 if test -n "$GREP"; then
4727 echo "$as_me:$LINENO: result: $GREP" >&5
4728 echo "${ECHO_T}$GREP" >&6
4730 echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4734 # Extract the first word of "mkdir", so it can be a program name with args.
4735 set dummy mkdir; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_path_MKDIR+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4764 MKDIR=$ac_cv_path_MKDIR
4766 if test -n "$MKDIR"; then
4767 echo "$as_me:$LINENO: result: $MKDIR" >&5
4768 echo "${ECHO_T}$MKDIR" >&6
4770 echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4774 # Extract the first word of "mv", so it can be a program name with args.
4775 set dummy mv; ac_word=$2
4776 echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778 if test "${ac_cv_path_MV+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4806 if test -n "$MV"; then
4807 echo "$as_me:$LINENO: result: $MV" >&5
4808 echo "${ECHO_T}$MV" >&6
4810 echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4814 # Extract the first word of "pax", so it can be a program name with args.
4815 set dummy pax; ac_word=$2
4816 echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818 if test "${ac_cv_path_PAX+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4846 if test -n "$PAX"; then
4847 echo "$as_me:$LINENO: result: $PAX" >&5
4848 echo "${ECHO_T}$PAX" >&6
4850 echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6
4854 if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4857 echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4859 if test "${ac_cv_prog_RANLIB+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 if test -n "$RANLIB"; then
4863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 RANLIB=$ac_cv_prog_RANLIB
4882 if test -n "$RANLIB"; then
4883 echo "$as_me:$LINENO: result: $RANLIB" >&5
4884 echo "${ECHO_T}$RANLIB" >&6
4886 echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6
4891 if test -z "$ac_cv_prog_RANLIB"; then
4892 ac_ct_RANLIB=$RANLIB
4893 # Extract the first word of "ranlib", so it can be a program name with args.
4894 set dummy ranlib; ac_word=$2
4895 echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 if test -n "$ac_ct_RANLIB"; then
4901 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910 ac_cv_prog_ac_ct_RANLIB="ranlib"
4911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4921 if test -n "$ac_ct_RANLIB"; then
4922 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4923 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4925 echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4929 RANLIB=$ac_ct_RANLIB
4931 RANLIB="$ac_cv_prog_RANLIB"
4934 # Extract the first word of "rm", so it can be a program name with args.
4935 set dummy rm; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_path_RM+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4966 if test -n "$RM"; then
4967 echo "$as_me:$LINENO: result: $RM" >&5
4968 echo "${ECHO_T}$RM" >&6
4970 echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4974 # Extract the first word of "sed", so it can be a program name with args.
4975 set dummy sed; ac_word=$2
4976 echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978 if test "${ac_cv_path_SED+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5006 if test -n "$SED"; then
5007 echo "$as_me:$LINENO: result: $SED" >&5
5008 echo "${ECHO_T}$SED" >&6
5010 echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5014 # Extract the first word of "tar", so it can be a program name with args.
5015 set dummy tar; ac_word=$2
5016 echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018 if test "${ac_cv_path_TAR+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5046 if test -n "$TAR"; then
5047 echo "$as_me:$LINENO: result: $TAR" >&5
5048 echo "${ECHO_T}$TAR" >&6
5050 echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5055 # Find a good install program. We prefer a C program (faster),
5056 # so one script is as good as another. But avoid the broken or
5057 # incompatible versions:
5058 # SysV /etc/install, /usr/sbin/install
5059 # SunOS /usr/etc/install
5060 # IRIX /sbin/install
5062 # AmigaOS /C/install, which installs bootblocks on floppy discs
5063 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5064 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5065 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5066 # OS/2's system install, which has a completely different semantic
5067 # ./install, which can be erroneously created by make from ./install.sh.
5068 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5069 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5070 if test -z "$INSTALL"; then
5071 if test "${ac_cv_path_install+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 # Account for people who put trailing slashes in PATH elements.
5081 ./ | .// | /cC/* | \
5082 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5083 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5086 # OSF1 and SCO ODT 3.0 have their own names for install.
5087 # Don't use installbsd from OSF since it installs stuff as root
5089 for ac_prog in ginstall scoinst install; do
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5092 if test $ac_prog = install &&
5093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5094 # AIX install. It has an incompatible calling convention.
5096 elif test $ac_prog = install &&
5097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5098 # program-specific install script used by HP pwplus--don't use.
5101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5113 if test "${ac_cv_path_install+set}" = set; then
5114 INSTALL=$ac_cv_path_install
5116 # As a last resort, use the slow shell script. We don't cache a
5117 # path for INSTALL within a source directory, because that will
5118 # break other packages using the cache if that directory is
5119 # removed, or if the path is relative.
5120 INSTALL=$ac_install_sh
5123 echo "$as_me:$LINENO: result: $INSTALL" >&5
5124 echo "${ECHO_T}$INSTALL" >&6
5126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5127 # It thinks the first close brace ends the variable substitution.
5128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5135 # Extract the first word of "bzip2", so it can be a program name with args.
5136 set dummy bzip2; ac_word=$2
5137 echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5139 if test "${ac_cv_path_BZIP2+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5165 BZIP2=$ac_cv_path_BZIP2
5167 if test -n "$BZIP2"; then
5168 echo "$as_me:$LINENO: result: $BZIP2" >&5
5169 echo "${ECHO_T}$BZIP2" >&6
5171 echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5175 # Extract the first word of "dot", so it can be a program name with args.
5176 set dummy dot; ac_word=$2
5177 echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179 if test "${ac_cv_path_DOT+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5207 if test -n "$DOT"; then
5208 echo "$as_me:$LINENO: result: $DOT" >&5
5209 echo "${ECHO_T}$DOT" >&6
5211 echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5215 # Extract the first word of "doxygen", so it can be a program name with args.
5216 set dummy doxygen; ac_word=$2
5217 echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5245 DOXYGEN=$ac_cv_path_DOXYGEN
5247 if test -n "$DOXYGEN"; then
5248 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5249 echo "${ECHO_T}$DOXYGEN" >&6
5251 echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5255 # Extract the first word of "etags", so it can be a program name with args.
5256 set dummy etags; ac_word=$2
5257 echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259 if test "${ac_cv_path_ETAGS+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5285 ETAGS=$ac_cv_path_ETAGS
5287 if test -n "$ETAGS"; then
5288 echo "$as_me:$LINENO: result: $ETAGS" >&5
5289 echo "${ECHO_T}$ETAGS" >&6
5291 echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6
5295 # Extract the first word of "groff", so it can be a program name with args.
5296 set dummy groff; ac_word=$2
5297 echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299 if test "${ac_cv_path_GROFF+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5325 GROFF=$ac_cv_path_GROFF
5327 if test -n "$GROFF"; then
5328 echo "$as_me:$LINENO: result: $GROFF" >&5
5329 echo "${ECHO_T}$GROFF" >&6
5331 echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5335 # Extract the first word of "gzip", so it can be a program name with args.
5336 set dummy gzip; ac_word=$2
5337 echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5339 if test "${ac_cv_path_GZIP+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5365 GZIP=$ac_cv_path_GZIP
5367 if test -n "$GZIP"; then
5368 echo "$as_me:$LINENO: result: $GZIP" >&5
5369 echo "${ECHO_T}$GZIP" >&6
5371 echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6
5375 # Extract the first word of "pod2html", so it can be a program name with args.
5376 set dummy pod2html; ac_word=$2
5377 echo "$as_me:$LINENO: checking for $ac_word" >&5
5378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5379 if test "${ac_cv_path_POD2HTML+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5405 POD2HTML=$ac_cv_path_POD2HTML
5407 if test -n "$POD2HTML"; then
5408 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5409 echo "${ECHO_T}$POD2HTML" >&6
5411 echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5415 # Extract the first word of "pod2man", so it can be a program name with args.
5416 set dummy pod2man; ac_word=$2
5417 echo "$as_me:$LINENO: checking for $ac_word" >&5
5418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5419 if test "${ac_cv_path_POD2MAN+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5445 POD2MAN=$ac_cv_path_POD2MAN
5447 if test -n "$POD2MAN"; then
5448 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5449 echo "${ECHO_T}$POD2MAN" >&6
5451 echo "$as_me:$LINENO: result: no" >&5
5452 echo "${ECHO_T}no" >&6
5455 # Extract the first word of "runtest", so it can be a program name with args.
5456 set dummy runtest; ac_word=$2
5457 echo "$as_me:$LINENO: checking for $ac_word" >&5
5458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5459 if test "${ac_cv_path_RUNTEST+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5485 RUNTEST=$ac_cv_path_RUNTEST
5487 if test -n "$RUNTEST"; then
5488 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5489 echo "${ECHO_T}$RUNTEST" >&6
5491 echo "$as_me:$LINENO: result: no" >&5
5492 echo "${ECHO_T}no" >&6
5497 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5498 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5500 # Check whether --with-tclinclude or --without-tclinclude was given.
5501 if test "${with_tclinclude+set}" = set; then
5502 withval="$with_tclinclude"
5503 with_tclinclude=${withval}
5507 if test "${ac_cv_path_tclsh+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 if test x"${with_tclinclude}" != x ; then
5512 if test -f ${with_tclinclude}/tclsh ; then
5513 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5514 elif test -f ${with_tclinclude}/src/tclsh ; then
5515 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5517 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5518 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5519 { (exit 1); exit 1; }; }
5523 if test x"${ac_cv_path_tclsh}" = x ; then
5524 echo "$as_me:$LINENO: result: none" >&5
5525 echo "${ECHO_T}none" >&6
5526 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
5528 # Extract the first word of "$ac_prog", so it can be a program name with args.
5529 set dummy $ac_prog; ac_word=$2
5530 echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5532 if test "${ac_cv_path_TCLSH+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 TCLSH=$ac_cv_path_TCLSH
5559 if test -n "$TCLSH"; then
5560 echo "$as_me:$LINENO: result: $TCLSH" >&5
5561 echo "${ECHO_T}$TCLSH" >&6
5563 echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6
5567 test -n "$TCLSH" && break
5570 if test x"${TCLSH}" = x ; then
5571 ac_cv_path_tclsh='';
5573 ac_cv_path_tclsh="${TCLSH}";
5576 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5577 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5578 TCLSH="${ac_cv_path_tclsh}"
5584 # Extract the first word of "zip", so it can be a program name with args.
5585 set dummy zip; ac_word=$2
5586 echo "$as_me:$LINENO: checking for $ac_word" >&5
5587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5588 if test "${ac_cv_path_ZIP+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5616 if test -n "$ZIP"; then
5617 echo "$as_me:$LINENO: result: $ZIP" >&5
5618 echo "${ECHO_T}$ZIP" >&6
5620 echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6
5625 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5626 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5627 if test "${llvm_cv_link_use_r+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 ac_cpp='$CPP $CPPFLAGS'
5632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637 CFLAGS="$CFLAGS -Wl,-R."
5638 cat >conftest.$ac_ext <<_ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5648 int main() { return 0; }
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -z "$ac_c_werror_flag"
5663 || test ! -s conftest.err'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; } &&
5669 { ac_try='test -s conftest$ac_exeext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 llvm_cv_link_use_r=yes
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5680 llvm_cv_link_use_r=no
5682 rm -f conftest.err conftest.$ac_objext \
5683 conftest$ac_exeext conftest.$ac_ext
5686 ac_cpp='$CPP $CPPFLAGS'
5687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5693 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5694 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5695 if test "$llvm_cv_link_use_r" = yes ; then
5697 cat >>confdefs.h <<\_ACEOF
5698 #define HAVE_LINK_R 1
5706 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5707 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5708 if test "${ac_cv_c_const+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 cat >conftest.$ac_ext <<_ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5721 /* FIXME: Include the comments suggested by Paul. */
5723 /* Ultrix mips cc rejects this. */
5724 typedef int charset[2];
5726 /* SunOS 4.1.1 cc rejects this. */
5727 char const *const *ccp;
5729 /* NEC SVR4.0.2 mips cc rejects this. */
5730 struct point {int x, y;};
5731 static struct point const zero = {0,0};
5732 /* AIX XL C 1.02.0.0 rejects this.
5733 It does not let you subtract one const X* pointer from another in
5734 an arm of an if-expression whose if-part is not a constant
5736 const char *g = "string";
5737 ccp = &g + (g ? g-g : 0);
5738 /* HPUX 7.0 cc rejects these. */
5741 ccp = (char const *const *) p;
5742 { /* SCO 3.2v4 cc rejects this. */
5744 char const *s = 0 ? (char *) 0 : (char const *) 0;
5748 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5750 const int *foo = &x[0];
5753 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5754 typedef const int *iptr;
5758 { /* AIX XL C 1.02.0.0 rejects this saying
5759 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5760 struct s { int j; const int *ap[3]; };
5761 struct s *b; b->j = 5;
5763 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>conftest.er1
5776 grep -v '^ *+' conftest.er1 >conftest.err
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try='test -z "$ac_c_werror_flag"
5782 || test ! -s conftest.err'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; } &&
5788 { ac_try='test -s conftest.$ac_objext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5803 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5804 echo "${ECHO_T}$ac_cv_c_const" >&6
5805 if test $ac_cv_c_const = no; then
5807 cat >>confdefs.h <<\_ACEOF
5814 echo "$as_me:$LINENO: checking for egrep" >&5
5815 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5816 if test "${ac_cv_prog_egrep+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5820 then ac_cv_prog_egrep='grep -E'
5821 else ac_cv_prog_egrep='egrep'
5824 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5825 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5826 EGREP=$ac_cv_prog_egrep
5829 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5831 if test "${ac_cv_header_stdc+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5853 rm -f conftest.$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 ac_cv_header_stdc=yes
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 ac_cv_header_stdc=no
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5884 if test $ac_cv_header_stdc = yes; then
5885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5886 cat >conftest.$ac_ext <<_ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896 $EGREP "memchr" >/dev/null 2>&1; then
5899 ac_cv_header_stdc=no
5905 if test $ac_cv_header_stdc = yes; then
5906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5907 cat >conftest.$ac_ext <<_ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5917 $EGREP "free" >/dev/null 2>&1; then
5920 ac_cv_header_stdc=no
5926 if test $ac_cv_header_stdc = yes; then
5927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5928 if test "$cross_compiling" = yes; then
5931 cat >conftest.$ac_ext <<_ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5938 #if ((' ' & 0x0FF) == 0x020)
5939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5942 # define ISLOWER(c) \
5943 (('a' <= (c) && (c) <= 'i') \
5944 || ('j' <= (c) && (c) <= 'r') \
5945 || ('s' <= (c) && (c) <= 'z'))
5946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5954 for (i = 0; i < 256; i++)
5955 if (XOR (islower (i), ISLOWER (i))
5956 || toupper (i) != TOUPPER (i))
5961 rm -f conftest$ac_exeext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5974 echo "$as_me: program exited with status $ac_status" >&5
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5979 ac_cv_header_stdc=no
5981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5986 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5987 if test $ac_cv_header_stdc = yes; then
5989 cat >>confdefs.h <<\_ACEOF
5990 #define STDC_HEADERS 1
6001 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6002 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6003 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6004 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 #include <sys/types.h>
6026 rm -f conftest.$ac_objext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028 (eval $ac_compile) 2>conftest.er1
6030 grep -v '^ *+' conftest.er1 >conftest.err
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } &&
6035 { ac_try='test -z "$ac_c_werror_flag"
6036 || test ! -s conftest.err'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; } &&
6042 { ac_try='test -s conftest.$ac_objext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 eval "$as_ac_Header=yes"
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6053 eval "$as_ac_Header=no"
6055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6060 cat >>confdefs.h <<_ACEOF
6061 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6064 ac_header_dirent=$ac_hdr; break
6068 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6069 if test $ac_header_dirent = dirent.h; then
6070 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6071 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6072 if test "${ac_cv_search_opendir+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 ac_func_search_save_LIBS=$LIBS
6076 ac_cv_search_opendir=no
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6084 /* Override any gcc2 internal prototype to avoid an error. */
6088 /* We use char because int might match the return type of a gcc2
6089 builtin and then its argument prototype would still apply. */
6099 rm -f conftest.$ac_objext conftest$ac_exeext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>conftest.er1
6103 grep -v '^ *+' conftest.er1 >conftest.err
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try='test -z "$ac_c_werror_flag"
6109 || test ! -s conftest.err'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest$ac_exeext'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6121 ac_cv_search_opendir="none required"
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6127 rm -f conftest.err conftest.$ac_objext \
6128 conftest$ac_exeext conftest.$ac_ext
6129 if test "$ac_cv_search_opendir" = no; then
6130 for ac_lib in dir; do
6131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6132 cat >conftest.$ac_ext <<_ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6139 /* Override any gcc2 internal prototype to avoid an error. */
6143 /* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6156 (eval $ac_link) 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag"
6164 || test ! -s conftest.err'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; } &&
6170 { ac_try='test -s conftest$ac_exeext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_search_opendir="-l$ac_lib"
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6183 rm -f conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6187 LIBS=$ac_func_search_save_LIBS
6189 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6190 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6191 if test "$ac_cv_search_opendir" != no; then
6192 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6197 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6198 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6199 if test "${ac_cv_search_opendir+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 ac_func_search_save_LIBS=$LIBS
6203 ac_cv_search_opendir=no
6204 cat >conftest.$ac_ext <<_ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6211 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6226 rm -f conftest.$ac_objext conftest$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228 (eval $ac_link) 2>conftest.er1
6230 grep -v '^ *+' conftest.er1 >conftest.err
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -z "$ac_c_werror_flag"
6236 || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest$ac_exeext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 ac_cv_search_opendir="none required"
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6254 rm -f conftest.err conftest.$ac_objext \
6255 conftest$ac_exeext conftest.$ac_ext
6256 if test "$ac_cv_search_opendir" = no; then
6258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6266 /* Override any gcc2 internal prototype to avoid an error. */
6270 /* We use char because int might match the return type of a gcc2
6271 builtin and then its argument prototype would still apply. */
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283 (eval $ac_link) 2>conftest.er1
6285 grep -v '^ *+' conftest.er1 >conftest.err
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest$ac_exeext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_search_opendir="-l$ac_lib"
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6310 rm -f conftest.err conftest.$ac_objext \
6311 conftest$ac_exeext conftest.$ac_ext
6314 LIBS=$ac_func_search_save_LIBS
6316 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6317 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6318 if test "$ac_cv_search_opendir" != no; then
6319 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6336 inttypes.h stdint.h unistd.h
6338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6339 echo "$as_me:$LINENO: checking for $ac_header" >&5
6340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 cat >conftest.$ac_ext <<_ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 $ac_includes_default
6352 #include <$ac_header>
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag"
6364 || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest.$ac_objext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 eval "$as_ac_Header=yes"
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 eval "$as_ac_Header=no"
6383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6398 for ac_header in dlfcn.h
6400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402 echo "$as_me:$LINENO: checking for $ac_header" >&5
6403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6410 # Is the header compilable?
6411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6413 cat >conftest.$ac_ext <<_ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 $ac_includes_default
6420 #include <$ac_header>
6422 rm -f conftest.$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>conftest.er1
6426 grep -v '^ *+' conftest.er1 >conftest.err
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag"
6432 || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_header_compiler=no
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <$ac_header>
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6469 grep -v '^ *+' conftest.er1 >conftest.err
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6483 if test -z "$ac_cpp_err"; then
6484 ac_header_preproc=yes
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_header_preproc=no
6491 rm -f conftest.err conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6495 # So? What about this header?
6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6502 ac_header_preproc=yes
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6519 ## ----------------------------------- ##
6520 ## Report this to llvmbugs@cs.uiuc.edu ##
6521 ## ----------------------------------- ##
6524 sed "s/^/$as_me: WARNING: /" >&2
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 eval "$as_ac_Header=\$ac_header_preproc"
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6548 if test "${enable_ltdl_install+set}" = set; then
6549 enableval="$enable_ltdl_install"
6555 if test x"${enable_ltdl_install-no}" != xno; then
6557 INSTALL_LTDL_FALSE='#'
6559 INSTALL_LTDL_TRUE='#'
6565 if test x"${enable_ltdl_convenience-no}" != xno; then
6566 CONVENIENCE_LTDL_TRUE=
6567 CONVENIENCE_LTDL_FALSE='#'
6569 CONVENIENCE_LTDL_TRUE='#'
6570 CONVENIENCE_LTDL_FALSE=
6574 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6575 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6577 libname_spec='lib$name'
6585 shlibpath_overrides_runpath=unknown
6587 dynamic_linker="$host_os ld.so"
6588 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6589 if test "$GCC" = yes; then
6590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6591 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6592 # if the path contains ";" then we assume it to be the separator
6593 # otherwise default to the standard path separator (i.e. ":") - it is
6594 # assumed that no part of a normal pathname contains ";" but that should
6595 # okay in the real world where ";" in dirpaths is itself problematic.
6596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6601 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6603 need_lib_prefix=unknown
6604 hardcode_into_libs=no
6606 # when you set need_version to no, make sure it does not cause -set_version
6607 # flags to be left without arguments
6608 need_version=unknown
6613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6614 shlibpath_var=LIBPATH
6616 # AIX 3 has no versioning support, so we append a major version to the name.
6617 soname_spec='${libname}${release}${shared_ext}$major'
6624 hardcode_into_libs=yes
6625 if test "$host_cpu" = ia64; then
6626 # AIX 5 supports IA64
6627 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6628 shlibpath_var=LD_LIBRARY_PATH
6630 # With GCC up to 2.95.x, collect2 would create an import file
6631 # for dependence libraries. The import file would start with
6632 # the line `#! .'. This would cause the generated library to
6633 # depend on `.', always an invalid library. This was fixed in
6634 # development snapshots of GCC prior to 3.0.
6636 aix4 | aix4.[01] | aix4.[01].*)
6637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6639 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6647 # soname into executable. Probably we can add versioning support to
6648 # collect2, so additional links can be useful in future.
6649 if test "$aix_use_runtimelinking" = yes; then
6650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6651 # instead of lib<name>.a to let people know that these are not
6652 # typical AIX shared libraries.
6653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6655 # We preserve .a as extension for shared libraries through AIX4.2
6656 # and later when we are not doing run time linking.
6657 library_names_spec='${libname}${release}.a $libname.a'
6658 soname_spec='${libname}${release}${shared_ext}$major'
6660 shlibpath_var=LIBPATH
6665 library_names_spec='$libname.ixlibrary $libname.a'
6666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6667 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'
6671 library_names_spec='${libname}${shared_ext}'
6672 dynamic_linker="$host_os ld.so"
6673 shlibpath_var=LIBRARY_PATH
6679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6680 soname_spec='${libname}${release}${shared_ext}$major'
6681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6682 shlibpath_var=LD_LIBRARY_PATH
6683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6685 # the default ld.so.conf also contains /usr/contrib/lib and
6686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6687 # libtool to hard-code these into programs
6690 cygwin* | mingw* | pw32*)
6691 version_type=windows
6696 case $GCC,$host_os in
6697 yes,cygwin* | yes,mingw* | yes,pw32*)
6698 library_names_spec='$libname.dll.a'
6699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6700 postinstall_cmds='base_file=`basename \${file}`~
6701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6702 dldir=$destdir/`dirname \$dlpath`~
6703 test -d \$dldir || mkdir -p \$dldir~
6704 $install_prog $dir/$dlname \$dldir/$dlname'
6705 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6706 dlpath=$dir/\$dldll~
6708 shlibpath_overrides_runpath=yes
6712 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6713 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6714 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6717 # MinGW DLLs use traditional 'lib' prefix
6718 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6720 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6721 # It is most probably a Windows format PATH printed by
6722 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6723 # path with ; separators, and with drive letters. We can handle the
6724 # drive letters (cygwin fileutils understands them), so leave them,
6725 # especially as we might pass files found there to a mingw objdump,
6726 # which wouldn't understand a cygwinified path. Ahh.
6727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6733 # pw32 DLLs use 'pw' prefix rather than 'lib'
6734 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6740 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6743 dynamic_linker='Win32 ld.exe'
6744 # FIXME: first we should search . and the directory the executable is in
6748 darwin* | rhapsody*)
6749 dynamic_linker="$host_os dyld"
6753 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6754 soname_spec='${libname}${release}${major}$shared_ext'
6755 shlibpath_overrides_runpath=yes
6756 shlibpath_var=DYLD_LIBRARY_PATH
6757 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6758 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6759 if test "$GCC" = yes; then
6760 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"`
6762 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6764 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6772 soname_spec='${libname}${release}${shared_ext}$major'
6773 shlibpath_var=LD_LIBRARY_PATH
6784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6785 soname_spec='${libname}${release}${shared_ext}$major'
6786 shlibpath_var=LD_LIBRARY_PATH
6787 shlibpath_overrides_runpath=no
6788 hardcode_into_libs=yes
6789 dynamic_linker='GNU ld.so'
6793 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6794 version_type=freebsd-$objformat
6795 case $version_type in
6797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6806 shlibpath_var=LD_LIBRARY_PATH
6809 shlibpath_overrides_runpath=yes
6811 freebsd3.01* | freebsdelf3.01*)
6812 shlibpath_overrides_runpath=yes
6813 hardcode_into_libs=yes
6816 shlibpath_overrides_runpath=no
6817 hardcode_into_libs=yes
6826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6827 soname_spec='${libname}${release}${shared_ext}$major'
6828 shlibpath_var=LD_LIBRARY_PATH
6829 hardcode_into_libs=yes
6832 hpux9* | hpux10* | hpux11*)
6833 # Give a soname corresponding to the major version so that dld.sl refuses to
6834 # link against other versions.
6841 hardcode_into_libs=yes
6842 dynamic_linker="$host_os dld.so"
6843 shlibpath_var=LD_LIBRARY_PATH
6844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6846 soname_spec='${libname}${release}${shared_ext}$major'
6847 if test "X$HPUX_IA64_MODE" = X32; then
6848 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6856 hardcode_into_libs=yes
6857 dynamic_linker="$host_os dld.sl"
6858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6861 soname_spec='${libname}${release}${shared_ext}$major'
6862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6867 dynamic_linker="$host_os dld.sl"
6868 shlibpath_var=SHLIB_PATH
6869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6871 soname_spec='${libname}${release}${shared_ext}$major'
6874 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6875 postinstall_cmds='chmod 555 $lib'
6878 irix5* | irix6* | nonstopux*)
6880 nonstopux*) version_type=nonstopux ;;
6882 if test "$lt_cv_prog_gnu_ld" = yes; then
6890 soname_spec='${libname}${release}${shared_ext}$major'
6891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6893 irix5* | nonstopux*)
6897 case $LD in # libtool.m4 will add one of these switches to LD
6898 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6899 libsuff= shlibsuff= libmagic=32-bit;;
6900 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6901 libsuff=32 shlibsuff=N32 libmagic=N32;;
6902 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6903 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6904 *) libsuff= shlibsuff= libmagic=never-match;;
6908 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6909 shlibpath_overrides_runpath=no
6910 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6911 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6912 hardcode_into_libs=yes
6915 # No shared lib support for Linux oldld, aout, or coff.
6916 linux*oldld* | linux*aout* | linux*coff*)
6920 # This must be Linux ELF.
6925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6926 soname_spec='${libname}${release}${shared_ext}$major'
6927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6928 shlibpath_var=LD_LIBRARY_PATH
6929 shlibpath_overrides_runpath=no
6930 # This implies no fast_install, which is unacceptable.
6931 # Some rework will be needed to allow for fast_install
6932 # before this can be enabled.
6933 hardcode_into_libs=yes
6935 # Append ld.so.conf contents to the search path
6936 if test -f /etc/ld.so.conf; then
6937 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6938 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6941 # We used to test for /lib/ld.so.1 and disable shared libraries on
6942 # powerpc, because MkLinux only supported shared libraries with the
6943 # GNU dynamic linker. Since this was broken with cross compilers,
6944 # most powerpc-linux boxes support dynamic linking these days and
6945 # people can always --disable-shared, the test was removed, and we
6946 # assume the GNU/Linux dynamic linker is in use.
6947 dynamic_linker='GNU/Linux ld.so'
6954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6955 soname_spec='${libname}${release}${shared_ext}$major'
6956 shlibpath_var=LD_LIBRARY_PATH
6957 shlibpath_overrides_runpath=no
6958 hardcode_into_libs=yes
6959 dynamic_linker='GNU ld.so'
6966 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6969 dynamic_linker='NetBSD (a.out) ld.so'
6971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6972 soname_spec='${libname}${release}${shared_ext}$major'
6973 dynamic_linker='NetBSD ld.elf_so'
6975 shlibpath_var=LD_LIBRARY_PATH
6976 shlibpath_overrides_runpath=yes
6977 hardcode_into_libs=yes
6982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983 shlibpath_var=LD_LIBRARY_PATH
6984 shlibpath_overrides_runpath=yes
6991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6992 soname_spec='${libname}${release}${shared_ext}$major'
6993 shlibpath_var=LD_LIBRARY_PATH
6994 shlibpath_overrides_runpath=yes
7001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7003 shlibpath_var=LD_LIBRARY_PATH
7004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7006 openbsd2.[89] | openbsd2.[89].*)
7007 shlibpath_overrides_runpath=no
7010 shlibpath_overrides_runpath=yes
7014 shlibpath_overrides_runpath=yes
7019 libname_spec='$name'
7022 library_names_spec='$libname${shared_ext} $libname.a'
7023 dynamic_linker='OS/2 ld.exe'
7024 shlibpath_var=LIBPATH
7027 osf3* | osf4* | osf5*)
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
7034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7040 soname_spec='${libname}${release}${shared_ext}$major'
7041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7042 shlibpath_var=LD_LIBRARY_PATH
7049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7050 soname_spec='${libname}${release}${shared_ext}$major'
7051 shlibpath_var=LD_LIBRARY_PATH
7052 shlibpath_overrides_runpath=yes
7053 hardcode_into_libs=yes
7054 # ldd complains unless libraries are executable
7055 postinstall_cmds='chmod +x $lib'
7060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7062 shlibpath_var=LD_LIBRARY_PATH
7063 shlibpath_overrides_runpath=yes
7064 if test "$with_gnu_ld" = yes; then
7070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7073 soname_spec='${libname}${release}${shared_ext}$major'
7074 shlibpath_var=LD_LIBRARY_PATH
7075 case $host_vendor in
7077 shlibpath_overrides_runpath=no
7079 export_dynamic_flag_spec='${wl}-Blargedynsym'
7080 runpath_var=LD_RUN_PATH
7088 shlibpath_overrides_runpath=no
7089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7095 if test -d /usr/nec ;then
7097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7098 soname_spec='$libname${shared_ext}.$major'
7099 shlibpath_var=LD_LIBRARY_PATH
7105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7106 soname_spec='${libname}${release}${shared_ext}$major'
7107 shlibpath_var=LD_LIBRARY_PATH
7114 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7115 echo "${ECHO_T}$dynamic_linker" >&6
7116 test "$dynamic_linker" = no && can_build_shared=no
7119 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7120 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7121 if test "${libltdl_cv_shlibext+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 eval libltdl_cv_shlibext=$shrext_cmds
7129 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7130 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7131 if test -n "$libltdl_cv_shlibext"; then
7133 cat >>confdefs.h <<_ACEOF
7134 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7140 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7141 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7142 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 libltdl_cv_shlibpath_var="$shlibpath_var"
7147 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7148 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7149 if test -n "$libltdl_cv_shlibpath_var"; then
7151 cat >>confdefs.h <<_ACEOF
7152 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7158 echo "$as_me:$LINENO: checking for the default library search path" >&5
7159 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7160 if test "${libltdl_cv_sys_search_path+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7165 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7166 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7167 if test -n "$libltdl_cv_sys_search_path"; then
7169 for dir in $libltdl_cv_sys_search_path; do
7170 if test -z "$sys_search_path"; then
7171 sys_search_path="$dir"
7173 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7177 cat >>confdefs.h <<_ACEOF
7178 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7183 echo "$as_me:$LINENO: checking for objdir" >&5
7184 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7185 if test "${libltdl_cv_objdir+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 libltdl_cv_objdir="$objdir"
7189 if test -n "$objdir"; then
7192 rm -f .libs 2>/dev/null
7193 mkdir .libs 2>/dev/null
7194 if test -d .libs; then
7195 libltdl_cv_objdir=.libs
7197 # MS-DOS does not allow filenames that begin with a dot.
7198 libltdl_cv_objdir=_libs
7200 rmdir .libs 2>/dev/null
7204 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7205 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7207 cat >>confdefs.h <<_ACEOF
7208 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7212 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7213 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7214 if test "${lt_cv_path_NM+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 if test -n "$NM"; then
7218 # Let the user override the test.
7221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7222 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7224 test -z "$ac_dir" && ac_dir=.
7225 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7226 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7227 # Check to see if the nm accepts a BSD-compat flag.
7228 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7229 # nm: unknown option "B" ignored
7230 # Tru64's nm complains that /dev/null is an invalid object file
7231 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7232 */dev/null* | *'Invalid file or object type'*)
7233 lt_cv_path_NM="$tmp_nm -B"
7237 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7239 lt_cv_path_NM="$tmp_nm -p"
7243 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7244 continue # so that we can try to find one that supports BSD flags
7251 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7254 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7255 echo "${ECHO_T}$lt_cv_path_NM" >&6
7262 # Check for command to grab the raw symbol name followed by C symbol from nm.
7263 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7264 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7265 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 # These are sane defaults that work on at least a few old systems.
7270 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7272 # Character class describing NM global symbol codes.
7273 symcode='[BCDEGRST]'
7275 # Regexp to match symbols that can be accessed directly from C.
7276 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7278 # Transform the above into a raw symbol and a C symbol.
7279 symxfrm='\1 \2\3 \3'
7281 # Transform an extracted symbol line into a proper C declaration
7282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7284 # Transform an extracted symbol line into symbol name and symbol address
7285 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'"
7287 # Define system-specific variables.
7292 cygwin* | mingw* | pw32*)
7293 symcode='[ABCDGISTW]'
7295 hpux*) # Its linker distinguishes data from code symbols
7296 if test "$host_cpu" = ia64; then
7297 symcode='[ABCDEGRST]'
7299 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7300 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'"
7303 if test "$host_cpu" = ia64; then
7304 symcode='[ABCDGIRSTW]'
7305 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7306 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'"
7310 symcode='[BCDEGRST]'
7313 symcode='[BCDEGQRST]'
7323 # Handle CRLF in mingw tool chain
7327 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7331 # If we're using GNU nm, then use its standard symbol codes.
7332 case `$NM -V 2>&1` in
7333 *GNU* | *'with BFD'*)
7334 symcode='[ABCDGIRSTW]' ;;
7337 # Try without a prefix undercore, then with it.
7338 for ac_symprfx in "" "_"; do
7340 # Write the raw and C identifiers.
7341 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7343 # Check to see that the pipe works correctly.
7347 cat > conftest.$ac_ext <<EOF
7352 void nm_test_func(){}
7356 int main(){nm_test_var='a';nm_test_func();return(0);}
7359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360 (eval $ac_compile) 2>&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; then
7364 # Now try to grab the symbols.
7366 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7367 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && test -s "$nlist"; then
7371 # Try sorting and uniquifying the output.
7372 if sort "$nlist" | uniq > "$nlist"T; then
7373 mv -f "$nlist"T "$nlist"
7378 # Make sure that we snagged all the symbols we need.
7379 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7380 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7381 cat <<EOF > conftest.$ac_ext
7387 # Now generate the symbol file.
7388 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7390 cat <<EOF >> conftest.$ac_ext
7391 #if defined (__STDC__) && __STDC__
7392 # define lt_ptr_t void *
7394 # define lt_ptr_t char *
7398 /* The mapping between symbol names and symbols. */
7403 lt_preloaded_symbols[] =
7406 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7407 cat <<\EOF >> conftest.$ac_ext
7415 # Now try linking the two files.
7416 mv conftest.$ac_objext conftstm.$ac_objext
7417 lt_save_LIBS="$LIBS"
7418 lt_save_CFLAGS="$CFLAGS"
7419 LIBS="conftstm.$ac_objext"
7420 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7422 (eval $ac_link) 2>&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7428 LIBS="$lt_save_LIBS"
7429 CFLAGS="$lt_save_CFLAGS"
7431 echo "cannot find nm_test_func in $nlist" >&5
7434 echo "cannot find nm_test_var in $nlist" >&5
7437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7440 echo "$progname: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7443 rm -f conftest* conftst*
7445 # Do not use the global_symbol_pipe unless it works.
7446 if test "$pipe_works" = yes; then
7449 lt_cv_sys_global_symbol_pipe=
7455 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7456 lt_cv_sys_global_symbol_to_cdecl=
7458 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7459 echo "$as_me:$LINENO: result: failed" >&5
7460 echo "${ECHO_T}failed" >&6
7462 echo "$as_me:$LINENO: result: ok" >&5
7463 echo "${ECHO_T}ok" >&6
7467 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7468 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7469 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7473 libltdl_cv_preloaded_symbols=yes
7475 libltdl_cv_preloaded_symbols=no
7479 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7480 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7481 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_PRELOADED_SYMBOLS 1
7492 ac_cpp='$CPP $CPPFLAGS'
7493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498 echo "$as_me:$LINENO: checking for shl_load" >&5
7499 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7500 if test "${ac_cv_func_shl_load+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 cat >conftest.$ac_ext <<_ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7511 #define shl_load innocuous_shl_load
7513 /* System header to define __stub macros and hopefully few prototypes,
7514 which can conflict with char shl_load (); below.
7515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7516 <limits.h> exists even on freestanding compilers. */
7519 # include <limits.h>
7521 # include <assert.h>
7526 /* Override any gcc2 internal prototype to avoid an error. */
7531 /* We use char because int might match the return type of a gcc2
7532 builtin and then its argument prototype would still apply. */
7534 /* The GNU C library defines this for functions which it implements
7535 to always fail with ENOSYS. Some functions are actually named
7536 something starting with __ and the normal name is an alias. */
7537 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7540 char (*f) () = shl_load;
7549 return f != shl_load;
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>conftest.er1
7558 grep -v '^ *+' conftest.er1 >conftest.err
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -z "$ac_c_werror_flag"
7564 || test ! -s conftest.err'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; } &&
7570 { ac_try='test -s conftest$ac_exeext'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 ac_cv_func_shl_load=yes
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7581 ac_cv_func_shl_load=no
7583 rm -f conftest.err conftest.$ac_objext \
7584 conftest$ac_exeext conftest.$ac_ext
7586 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7587 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7588 if test $ac_cv_func_shl_load = yes; then
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_SHL_LOAD 1
7595 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7596 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7597 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 ac_check_lib_save_LIBS=$LIBS
7602 cat >conftest.$ac_ext <<_ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h. */
7609 /* Override any gcc2 internal prototype to avoid an error. */
7613 /* We use char because int might match the return type of a gcc2
7614 builtin and then its argument prototype would still apply. */
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>conftest.er1
7628 grep -v '^ *+' conftest.er1 >conftest.err
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest$ac_exeext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_cv_lib_dld_shl_load=yes
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 ac_cv_lib_dld_shl_load=no
7653 rm -f conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
7655 LIBS=$ac_check_lib_save_LIBS
7657 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7658 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7659 if test $ac_cv_lib_dld_shl_load = yes; then
7661 cat >>confdefs.h <<\_ACEOF
7662 #define HAVE_SHL_LOAD 1
7665 LIBADD_DL="$LIBADD_DL -ldld"
7667 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7668 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7669 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 ac_check_lib_save_LIBS=$LIBS
7674 cat >conftest.$ac_ext <<_ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7681 /* Override any gcc2 internal prototype to avoid an error. */
7685 /* We use char because int might match the return type of a gcc2
7686 builtin and then its argument prototype would still apply. */
7696 rm -f conftest.$ac_objext conftest$ac_exeext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7698 (eval $ac_link) 2>conftest.er1
7700 grep -v '^ *+' conftest.er1 >conftest.err
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -z "$ac_c_werror_flag"
7706 || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest$ac_exeext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_lib_dl_dlopen=yes
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7723 ac_cv_lib_dl_dlopen=no
7725 rm -f conftest.err conftest.$ac_objext \
7726 conftest$ac_exeext conftest.$ac_ext
7727 LIBS=$ac_check_lib_save_LIBS
7729 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7730 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7731 if test $ac_cv_lib_dl_dlopen = yes; then
7733 cat >>confdefs.h <<\_ACEOF
7734 #define HAVE_LIBDL 1
7737 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>conftest.er1
7761 grep -v '^ *+' conftest.er1 >conftest.err
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest$ac_exeext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7780 cat >>confdefs.h <<\_ACEOF
7781 #define HAVE_LIBDL 1
7783 libltdl_cv_func_dlopen="yes"
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7788 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7789 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7790 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 ac_check_lib_save_LIBS=$LIBS
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7802 /* Override any gcc2 internal prototype to avoid an error. */
7806 /* We use char because int might match the return type of a gcc2
7807 builtin and then its argument prototype would still apply. */
7817 rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819 (eval $ac_link) 2>conftest.er1
7821 grep -v '^ *+' conftest.er1 >conftest.err
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try='test -z "$ac_c_werror_flag"
7827 || test ! -s conftest.err'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; } &&
7833 { ac_try='test -s conftest$ac_exeext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_cv_lib_svld_dlopen=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 ac_cv_lib_svld_dlopen=no
7846 rm -f conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848 LIBS=$ac_check_lib_save_LIBS
7850 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7851 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7852 if test $ac_cv_lib_svld_dlopen = yes; then
7854 cat >>confdefs.h <<\_ACEOF
7855 #define HAVE_LIBDL 1
7858 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7860 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7861 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7862 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 ac_check_lib_save_LIBS=$LIBS
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7874 /* Override any gcc2 internal prototype to avoid an error. */
7878 /* We use char because int might match the return type of a gcc2
7879 builtin and then its argument prototype would still apply. */
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag"
7899 || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try='test -s conftest$ac_exeext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 ac_cv_lib_dld_dld_link=yes
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 ac_cv_lib_dld_dld_link=no
7918 rm -f conftest.err conftest.$ac_objext \
7919 conftest$ac_exeext conftest.$ac_ext
7920 LIBS=$ac_check_lib_save_LIBS
7922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7923 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7924 if test $ac_cv_lib_dld_dld_link = yes; then
7926 cat >>confdefs.h <<\_ACEOF
7930 LIBADD_DL="$LIBADD_DL -ldld"
7932 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7933 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7934 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7945 #define _dyld_func_lookup innocuous__dyld_func_lookup
7947 /* System header to define __stub macros and hopefully few prototypes,
7948 which can conflict with char _dyld_func_lookup (); below.
7949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7950 <limits.h> exists even on freestanding compilers. */
7953 # include <limits.h>
7955 # include <assert.h>
7958 #undef _dyld_func_lookup
7960 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7967 char _dyld_func_lookup ();
7968 /* The GNU C library defines this for functions which it implements
7969 to always fail with ENOSYS. Some functions are actually named
7970 something starting with __ and the normal name is an alias. */
7971 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7974 char (*f) () = _dyld_func_lookup;
7983 return f != _dyld_func_lookup;
7988 rm -f conftest.$ac_objext conftest$ac_exeext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990 (eval $ac_link) 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag"
7998 || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest$ac_exeext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 ac_cv_func__dyld_func_lookup=yes
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8015 ac_cv_func__dyld_func_lookup=no
8017 rm -f conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8021 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8022 if test $ac_cv_func__dyld_func_lookup = yes; then
8024 cat >>confdefs.h <<\_ACEOF
8038 rm -f conftest.err conftest.$ac_objext \
8039 conftest$ac_exeext conftest.$ac_ext
8050 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8052 lt_save_LIBS="$LIBS"
8053 LIBS="$LIBS $LIBADD_DL"
8055 for ac_func in dlerror
8057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8058 echo "$as_me:$LINENO: checking for $ac_func" >&5
8059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8060 if eval "test \"\${$as_ac_var+set}\" = set"; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 cat >conftest.$ac_ext <<_ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8071 #define $ac_func innocuous_$ac_func
8073 /* System header to define __stub macros and hopefully few prototypes,
8074 which can conflict with char $ac_func (); below.
8075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8076 <limits.h> exists even on freestanding compilers. */
8079 # include <limits.h>
8081 # include <assert.h>
8086 /* Override any gcc2 internal prototype to avoid an error. */
8091 /* We use char because int might match the return type of a gcc2
8092 builtin and then its argument prototype would still apply. */
8094 /* The GNU C library defines this for functions which it implements
8095 to always fail with ENOSYS. Some functions are actually named
8096 something starting with __ and the normal name is an alias. */
8097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8100 char (*f) () = $ac_func;
8109 return f != $ac_func;
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116 (eval $ac_link) 2>conftest.er1
8118 grep -v '^ *+' conftest.er1 >conftest.err
8120 cat conftest.err >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } &&
8123 { ac_try='test -z "$ac_c_werror_flag"
8124 || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest$ac_exeext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 eval "$as_ac_var=yes"
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8141 eval "$as_ac_var=no"
8143 rm -f conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8148 if test `eval echo '${'$as_ac_var'}'` = yes; then
8149 cat >>confdefs.h <<_ACEOF
8150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8156 LIBS="$lt_save_LIBS"
8159 ac_cpp='$CPP $CPPFLAGS'
8160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8166 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8167 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8168 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 ac_cv_sys_symbol_underscore=no
8172 cat > conftest.$ac_ext <<EOF
8173 void nm_test_func(){}
8174 int main(){nm_test_func;return 0;}
8176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8177 (eval $ac_compile) 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; then
8181 # Now try to grab the symbols.
8182 ac_nlist=conftest.nm
8183 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8184 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && test -s "$ac_nlist"; then
8188 # See whether the symbols have a leading underscore.
8189 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8190 ac_cv_sys_symbol_underscore=yes
8192 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8195 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8199 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8202 echo "configure: failed program was:" >&5
8208 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8209 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8212 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8213 if test x"$libltdl_cv_func_dlopen" = xyes ||
8214 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8215 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8216 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8217 if test "${libltdl_cv_need_uscore+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 libltdl_cv_need_uscore=unknown
8222 LIBS="$LIBS $LIBADD_DL"
8223 if test "$cross_compiling" = yes; then :
8224 libltdl_cv_need_uscore=cross
8226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8227 lt_status=$lt_dlunknown
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8228 "configure"
8230 #include "confdefs.h"
8239 # define LT_DLGLOBAL RTLD_GLOBAL
8242 # define LT_DLGLOBAL DL_GLOBAL
8244 # define LT_DLGLOBAL 0
8248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8249 find out it does not work in some platform. */
8250 #ifndef LT_DLLAZY_OR_NOW
8252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8255 # define LT_DLLAZY_OR_NOW DL_LAZY
8258 # define LT_DLLAZY_OR_NOW RTLD_NOW
8261 # define LT_DLLAZY_OR_NOW DL_NOW
8263 # define LT_DLLAZY_OR_NOW 0
8271 extern "C" void exit (int);
8274 void fnord() { int i=42;}
8277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8278 int status = $lt_dlunknown;
8282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8283 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8284 /* dlclose (self); */
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8295 (./conftest; exit; ) 2>/dev/null
8298 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8299 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8303 # compilation failed
8312 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8313 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8317 if test x"$libltdl_cv_need_uscore" = xyes; then
8319 cat >>confdefs.h <<\_ACEOF
8320 #define NEED_USCORE 1
8326 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8327 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8328 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 # PORTME does your system automatically load deplibs for dlopen?
8332 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8333 # For now, we just catch OSes we know something about -- in the
8334 # future, we'll try test this programmatically.
8335 libltdl_cv_sys_dlopen_deplibs=unknown
8337 aix3*|aix4.1.*|aix4.2.*)
8338 # Unknown whether this is true for these versions of AIX, but
8339 # we want this `case' here to explicitly catch those versions.
8340 libltdl_cv_sys_dlopen_deplibs=unknown
8343 libltdl_cv_sys_dlopen_deplibs=yes
8346 # Assuming the user has installed a libdl from somewhere, this is true
8347 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8348 libltdl_cv_sys_dlopen_deplibs=yes
8350 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8351 # GNU and its variants, using gnu ld.so (Glibc)
8352 libltdl_cv_sys_dlopen_deplibs=yes
8355 libltdl_cv_sys_dlopen_deplibs=yes
8357 irix[12345]*|irix6.[01]*)
8358 # Catch all versions of IRIX before 6.2, and indicate that we don't
8359 # know how it worked for any of those versions.
8360 libltdl_cv_sys_dlopen_deplibs=unknown
8363 # The case above catches anything before 6.2, and it's known that
8364 # at 6.2 and later dlopen does load deplibs.
8365 libltdl_cv_sys_dlopen_deplibs=yes
8368 libltdl_cv_sys_dlopen_deplibs=yes
8371 libltdl_cv_sys_dlopen_deplibs=yes
8374 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8375 # it did *not* use an RPATH in a shared library to find objects the
8376 # library depends on, so we explictly say `no'.
8377 libltdl_cv_sys_dlopen_deplibs=no
8379 osf5.0|osf5.0a|osf5.1)
8380 # dlopen *does* load deplibs and with the right loader patch applied
8381 # it even uses RPATH in a shared library to search for shared objects
8382 # that the library depends on, but there's no easy way to know if that
8383 # patch is installed. Since this is the case, all we can really
8384 # say is unknown -- it depends on the patch being installed. If
8385 # it is, this changes to `yes'. Without it, it would be `no'.
8386 libltdl_cv_sys_dlopen_deplibs=unknown
8389 # the two cases above should catch all versions of osf <= 5.1. Read
8390 # the comments above for what we know about them.
8391 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8392 # is used to find them so we can finally say `yes'.
8393 libltdl_cv_sys_dlopen_deplibs=yes
8396 libltdl_cv_sys_dlopen_deplibs=yes
8401 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8402 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8403 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8405 cat >>confdefs.h <<\_ACEOF
8406 #define LTDL_DLOPEN_DEPLIBS 1
8412 for ac_header in argz.h
8414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8416 echo "$as_me:$LINENO: checking for $ac_header" >&5
8417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8424 # Is the header compilable?
8425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8427 cat >conftest.$ac_ext <<_ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 $ac_includes_default
8434 #include <$ac_header>
8436 rm -f conftest.$ac_objext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438 (eval $ac_compile) 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try='test -z "$ac_c_werror_flag"
8446 || test ! -s conftest.err'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest.$ac_objext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_header_compiler=yes
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_header_compiler=no
8465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8467 echo "${ECHO_T}$ac_header_compiler" >&6
8469 # Is the header present?
8470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 #include <$ac_header>
8480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8483 grep -v '^ *+' conftest.er1 >conftest.err
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } >/dev/null; then
8488 if test -s conftest.err; then
8489 ac_cpp_err=$ac_c_preproc_warn_flag
8490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8497 if test -z "$ac_cpp_err"; then
8498 ac_header_preproc=yes
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_header_preproc=no
8505 rm -f conftest.err conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8507 echo "${ECHO_T}$ac_header_preproc" >&6
8509 # So? What about this header?
8510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8516 ac_header_preproc=yes
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8533 ## ----------------------------------- ##
8534 ## Report this to llvmbugs@cs.uiuc.edu ##
8535 ## ----------------------------------- ##
8538 sed "s/^/$as_me: WARNING: /" >&2
8541 echo "$as_me:$LINENO: checking for $ac_header" >&5
8542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 eval "$as_ac_Header=\$ac_header_preproc"
8548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553 cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8562 echo "$as_me:$LINENO: checking for error_t" >&5
8563 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8564 if test "${ac_cv_type_error_t+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8582 if (sizeof (error_t))
8588 rm -f conftest.$ac_objext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8590 (eval $ac_compile) 2>conftest.er1
8592 grep -v '^ *+' conftest.er1 >conftest.err
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag"
8598 || test ! -s conftest.err'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest.$ac_objext'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
8610 ac_cv_type_error_t=yes
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615 ac_cv_type_error_t=no
8617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8619 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8620 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8621 if test $ac_cv_type_error_t = yes; then
8623 cat >>confdefs.h <<_ACEOF
8624 #define HAVE_ERROR_T 1
8630 cat >>confdefs.h <<\_ACEOF
8642 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8645 echo "$as_me:$LINENO: checking for $ac_func" >&5
8646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8647 if eval "test \"\${$as_ac_var+set}\" = set"; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 cat >conftest.$ac_ext <<_ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8658 #define $ac_func innocuous_$ac_func
8660 /* System header to define __stub macros and hopefully few prototypes,
8661 which can conflict with char $ac_func (); below.
8662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8663 <limits.h> exists even on freestanding compilers. */
8666 # include <limits.h>
8668 # include <assert.h>
8673 /* Override any gcc2 internal prototype to avoid an error. */
8678 /* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8681 /* The GNU C library defines this for functions which it implements
8682 to always fail with ENOSYS. Some functions are actually named
8683 something starting with __ and the normal name is an alias. */
8684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8687 char (*f) () = $ac_func;
8696 return f != $ac_func;
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>conftest.er1
8705 grep -v '^ *+' conftest.er1 >conftest.err
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag"
8711 || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 eval "$as_ac_var=yes"
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 eval "$as_ac_var=no"
8730 rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8735 if test `eval echo '${'$as_ac_var'}'` = yes; then
8736 cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8770 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8775 echo "$as_me:$LINENO: checking for $ac_header" >&5
8776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8783 # Is the header compilable?
8784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8792 $ac_includes_default
8793 #include <$ac_header>
8795 rm -f conftest.$ac_objext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8797 (eval $ac_compile) 2>conftest.er1
8799 grep -v '^ *+' conftest.er1 >conftest.err
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try='test -z "$ac_c_werror_flag"
8805 || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest.$ac_objext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 ac_header_compiler=yes
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8822 ac_header_compiler=no
8824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8826 echo "${ECHO_T}$ac_header_compiler" >&6
8828 # Is the header present?
8829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8837 #include <$ac_header>
8839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8842 grep -v '^ *+' conftest.er1 >conftest.err
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } >/dev/null; then
8847 if test -s conftest.err; then
8848 ac_cpp_err=$ac_c_preproc_warn_flag
8849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8856 if test -z "$ac_cpp_err"; then
8857 ac_header_preproc=yes
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8862 ac_header_preproc=no
8864 rm -f conftest.err conftest.$ac_ext
8865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8866 echo "${ECHO_T}$ac_header_preproc" >&6
8868 # So? What about this header?
8869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8875 ac_header_preproc=yes
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8892 ## ----------------------------------- ##
8893 ## Report this to llvmbugs@cs.uiuc.edu ##
8894 ## ----------------------------------- ##
8897 sed "s/^/$as_me: WARNING: /" >&2
8900 echo "$as_me:$LINENO: checking for $ac_header" >&5
8901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 eval "$as_ac_Header=\$ac_header_preproc"
8907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8912 cat >>confdefs.h <<_ACEOF
8913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8924 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8928 echo "$as_me:$LINENO: checking for $ac_header" >&5
8929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8936 # Is the header compilable?
8937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8939 cat >conftest.$ac_ext <<_ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 $ac_includes_default
8946 #include <$ac_header>
8948 rm -f conftest.$ac_objext
8949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8950 (eval $ac_compile) 2>conftest.er1
8952 grep -v '^ *+' conftest.er1 >conftest.err
8954 cat conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } &&
8957 { ac_try='test -z "$ac_c_werror_flag"
8958 || test ! -s conftest.err'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; } &&
8964 { ac_try='test -s conftest.$ac_objext'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 ac_header_compiler=yes
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 ac_header_compiler=no
8977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8979 echo "${ECHO_T}$ac_header_compiler" >&6
8981 # Is the header present?
8982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8984 cat >conftest.$ac_ext <<_ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8990 #include <$ac_header>
8992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8995 grep -v '^ *+' conftest.er1 >conftest.err
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } >/dev/null; then
9000 if test -s conftest.err; then
9001 ac_cpp_err=$ac_c_preproc_warn_flag
9002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9009 if test -z "$ac_cpp_err"; then
9010 ac_header_preproc=yes
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 ac_header_preproc=no
9017 rm -f conftest.err conftest.$ac_ext
9018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9019 echo "${ECHO_T}$ac_header_preproc" >&6
9021 # So? What about this header?
9022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9028 ac_header_preproc=yes
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9045 ## ----------------------------------- ##
9046 ## Report this to llvmbugs@cs.uiuc.edu ##
9047 ## ----------------------------------- ##
9050 sed "s/^/$as_me: WARNING: /" >&2
9053 echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 eval "$as_ac_Header=\$ac_header_preproc"
9060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9065 cat >>confdefs.h <<_ACEOF
9066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9075 for ac_header in string.h strings.h
9077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9079 echo "$as_me:$LINENO: checking for $ac_header" >&5
9080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9087 # Is the header compilable?
9088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9090 cat >conftest.$ac_ext <<_ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9096 $ac_includes_default
9097 #include <$ac_header>
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101 (eval $ac_compile) 2>conftest.er1
9103 grep -v '^ *+' conftest.er1 >conftest.err
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -z "$ac_c_werror_flag"
9109 || test ! -s conftest.err'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
9115 { ac_try='test -s conftest.$ac_objext'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9121 ac_header_compiler=yes
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9126 ac_header_compiler=no
9128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130 echo "${ECHO_T}$ac_header_compiler" >&6
9132 # Is the header present?
9133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9135 cat >conftest.$ac_ext <<_ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 #include <$ac_header>
9143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9146 grep -v '^ *+' conftest.er1 >conftest.err
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } >/dev/null; then
9151 if test -s conftest.err; then
9152 ac_cpp_err=$ac_c_preproc_warn_flag
9153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9160 if test -z "$ac_cpp_err"; then
9161 ac_header_preproc=yes
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 ac_header_preproc=no
9168 rm -f conftest.err conftest.$ac_ext
9169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9170 echo "${ECHO_T}$ac_header_preproc" >&6
9172 # So? What about this header?
9173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9179 ac_header_preproc=yes
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9196 ## ----------------------------------- ##
9197 ## Report this to llvmbugs@cs.uiuc.edu ##
9198 ## ----------------------------------- ##
9201 sed "s/^/$as_me: WARNING: /" >&2
9204 echo "$as_me:$LINENO: checking for $ac_header" >&5
9205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 eval "$as_ac_Header=\$ac_header_preproc"
9211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9216 cat >>confdefs.h <<_ACEOF
9217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9227 for ac_func in strchr index
9229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9230 echo "$as_me:$LINENO: checking for $ac_func" >&5
9231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9232 if eval "test \"\${$as_ac_var+set}\" = set"; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 cat >conftest.$ac_ext <<_ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9243 #define $ac_func innocuous_$ac_func
9245 /* System header to define __stub macros and hopefully few prototypes,
9246 which can conflict with char $ac_func (); below.
9247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9248 <limits.h> exists even on freestanding compilers. */
9251 # include <limits.h>
9253 # include <assert.h>
9258 /* Override any gcc2 internal prototype to avoid an error. */
9263 /* We use char because int might match the return type of a gcc2
9264 builtin and then its argument prototype would still apply. */
9266 /* The GNU C library defines this for functions which it implements
9267 to always fail with ENOSYS. Some functions are actually named
9268 something starting with __ and the normal name is an alias. */
9269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9272 char (*f) () = $ac_func;
9281 return f != $ac_func;
9286 rm -f conftest.$ac_objext conftest$ac_exeext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9288 (eval $ac_link) 2>conftest.er1
9290 grep -v '^ *+' conftest.er1 >conftest.err
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
9295 { ac_try='test -z "$ac_c_werror_flag"
9296 || test ! -s conftest.err'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; } &&
9302 { ac_try='test -s conftest$ac_exeext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 eval "$as_ac_var=yes"
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 eval "$as_ac_var=no"
9315 rm -f conftest.err conftest.$ac_objext \
9316 conftest$ac_exeext conftest.$ac_ext
9318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9320 if test `eval echo '${'$as_ac_var'}'` = yes; then
9321 cat >>confdefs.h <<_ACEOF
9322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9330 for ac_func in strrchr rindex
9332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9333 echo "$as_me:$LINENO: checking for $ac_func" >&5
9334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9335 if eval "test \"\${$as_ac_var+set}\" = set"; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9346 #define $ac_func innocuous_$ac_func
9348 /* System header to define __stub macros and hopefully few prototypes,
9349 which can conflict with char $ac_func (); below.
9350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9351 <limits.h> exists even on freestanding compilers. */
9354 # include <limits.h>
9356 # include <assert.h>
9361 /* Override any gcc2 internal prototype to avoid an error. */
9366 /* We use char because int might match the return type of a gcc2
9367 builtin and then its argument prototype would still apply. */
9369 /* The GNU C library defines this for functions which it implements
9370 to always fail with ENOSYS. Some functions are actually named
9371 something starting with __ and the normal name is an alias. */
9372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9375 char (*f) () = $ac_func;
9384 return f != $ac_func;
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391 (eval $ac_link) 2>conftest.er1
9393 grep -v '^ *+' conftest.er1 >conftest.err
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -z "$ac_c_werror_flag"
9399 || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 eval "$as_ac_var=yes"
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 eval "$as_ac_var=no"
9418 rm -f conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9423 if test `eval echo '${'$as_ac_var'}'` = yes; then
9424 cat >>confdefs.h <<_ACEOF
9425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9433 for ac_func in memcpy bcopy
9435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9436 echo "$as_me:$LINENO: checking for $ac_func" >&5
9437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9438 if eval "test \"\${$as_ac_var+set}\" = set"; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 cat >conftest.$ac_ext <<_ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9449 #define $ac_func innocuous_$ac_func
9451 /* System header to define __stub macros and hopefully few prototypes,
9452 which can conflict with char $ac_func (); below.
9453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9454 <limits.h> exists even on freestanding compilers. */
9457 # include <limits.h>
9459 # include <assert.h>
9464 /* Override any gcc2 internal prototype to avoid an error. */
9469 /* We use char because int might match the return type of a gcc2
9470 builtin and then its argument prototype would still apply. */
9472 /* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
9475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9478 char (*f) () = $ac_func;
9487 return f != $ac_func;
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494 (eval $ac_link) 2>conftest.er1
9496 grep -v '^ *+' conftest.er1 >conftest.err
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag"
9502 || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 eval "$as_ac_var=yes"
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 eval "$as_ac_var=no"
9521 rm -f conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9526 if test `eval echo '${'$as_ac_var'}'` = yes; then
9527 cat >>confdefs.h <<_ACEOF
9528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9536 for ac_func in memmove strcmp
9538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9539 echo "$as_me:$LINENO: checking for $ac_func" >&5
9540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9541 if eval "test \"\${$as_ac_var+set}\" = set"; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 cat >conftest.$ac_ext <<_ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9552 #define $ac_func innocuous_$ac_func
9554 /* System header to define __stub macros and hopefully few prototypes,
9555 which can conflict with char $ac_func (); below.
9556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9557 <limits.h> exists even on freestanding compilers. */
9560 # include <limits.h>
9562 # include <assert.h>
9567 /* Override any gcc2 internal prototype to avoid an error. */
9572 /* We use char because int might match the return type of a gcc2
9573 builtin and then its argument prototype would still apply. */
9575 /* The GNU C library defines this for functions which it implements
9576 to always fail with ENOSYS. Some functions are actually named
9577 something starting with __ and the normal name is an alias. */
9578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9581 char (*f) () = $ac_func;
9590 return f != $ac_func;
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9597 (eval $ac_link) 2>conftest.er1
9599 grep -v '^ *+' conftest.er1 >conftest.err
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_c_werror_flag"
9605 || test ! -s conftest.err'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; } &&
9611 { ac_try='test -s conftest$ac_exeext'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; }; then
9617 eval "$as_ac_var=yes"
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9622 eval "$as_ac_var=no"
9624 rm -f conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9629 if test `eval echo '${'$as_ac_var'}'` = yes; then
9630 cat >>confdefs.h <<_ACEOF
9631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9640 for ac_func in closedir opendir readdir
9642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9643 echo "$as_me:$LINENO: checking for $ac_func" >&5
9644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9645 if eval "test \"\${$as_ac_var+set}\" = set"; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 cat >conftest.$ac_ext <<_ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9656 #define $ac_func innocuous_$ac_func
9658 /* System header to define __stub macros and hopefully few prototypes,
9659 which can conflict with char $ac_func (); below.
9660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9661 <limits.h> exists even on freestanding compilers. */
9664 # include <limits.h>
9666 # include <assert.h>
9671 /* Override any gcc2 internal prototype to avoid an error. */
9676 /* We use char because int might match the return type of a gcc2
9677 builtin and then its argument prototype would still apply. */
9679 /* The GNU C library defines this for functions which it implements
9680 to always fail with ENOSYS. Some functions are actually named
9681 something starting with __ and the normal name is an alias. */
9682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9685 char (*f) () = $ac_func;
9694 return f != $ac_func;
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9701 (eval $ac_link) 2>conftest.er1
9703 grep -v '^ *+' conftest.er1 >conftest.err
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -z "$ac_c_werror_flag"
9709 || test ! -s conftest.err'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; } &&
9715 { ac_try='test -s conftest$ac_exeext'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 eval "$as_ac_var=yes"
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 eval "$as_ac_var=no"
9728 rm -f conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9733 if test `eval echo '${'$as_ac_var'}'` = yes; then
9734 cat >>confdefs.h <<_ACEOF
9735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9742 # Check whether --enable-shared or --disable-shared was given.
9743 if test "${enable_shared+set}" = set; then
9744 enableval="$enable_shared"
9745 p=${PACKAGE-default}
9747 yes) enable_shared=yes ;;
9748 no) enable_shared=no ;;
9751 # Look at the argument we got. We use all the common list separators.
9752 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9753 for pkg in $enableval; do
9755 if test "X$pkg" = "X$p"; then
9766 # Check whether --enable-static or --disable-static was given.
9767 if test "${enable_static+set}" = set; then
9768 enableval="$enable_static"
9769 p=${PACKAGE-default}
9771 yes) enable_static=yes ;;
9772 no) enable_static=no ;;
9775 # Look at the argument we got. We use all the common list separators.
9776 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9777 for pkg in $enableval; do
9779 if test "X$pkg" = "X$p"; then
9790 # Check whether --enable-fast-install or --disable-fast-install was given.
9791 if test "${enable_fast_install+set}" = set; then
9792 enableval="$enable_fast_install"
9793 p=${PACKAGE-default}
9795 yes) enable_fast_install=yes ;;
9796 no) enable_fast_install=no ;;
9798 enable_fast_install=no
9799 # Look at the argument we got. We use all the common list separators.
9800 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9801 for pkg in $enableval; do
9803 if test "X$pkg" = "X$p"; then
9804 enable_fast_install=yes
9811 enable_fast_install=yes
9814 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9815 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9816 if test "${lt_cv_path_SED+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 # Loop through the user's path and test for sed and gsed.
9820 # Then use that list of sed's as ones to test for truncation.
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 test -z "$as_dir" && as_dir=.
9826 for lt_ac_prog in sed gsed; do
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9829 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9836 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9837 # along with /bin/sed that truncates output.
9838 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9839 test ! -f $lt_ac_sed && break
9840 cat /dev/null > conftest.in
9842 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9843 # Check for GNU sed and select it if it is found.
9844 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9845 lt_cv_path_SED=$lt_ac_sed
9849 cat conftest.in conftest.in >conftest.tmp
9850 mv conftest.tmp conftest.in
9851 cp conftest.in conftest.nl
9853 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9854 cmp -s conftest.out conftest.nl || break
9855 # 10000 chars as input seems more than enough
9856 test $lt_ac_count -gt 10 && break
9857 lt_ac_count=`expr $lt_ac_count + 1`
9858 if test $lt_ac_count -gt $lt_ac_max; then
9859 lt_ac_max=$lt_ac_count
9860 lt_cv_path_SED=$lt_ac_sed
9868 echo "$as_me:$LINENO: result: $SED" >&5
9869 echo "${ECHO_T}$SED" >&6
9872 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9873 if test "${with_gnu_ld+set}" = set; then
9874 withval="$with_gnu_ld"
9875 test "$withval" = no || with_gnu_ld=yes
9880 if test "$GCC" = yes; then
9881 # Check if gcc -print-prog-name=ld gives a path.
9882 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9883 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9886 # gcc leaves a trailing carriage return which upsets mingw
9887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9892 # Accept absolute paths.
9894 re_direlt='/[^/][^/]*/\.\./'
9895 # Canonicalize the pathname of ld
9896 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9897 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9898 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9900 test -z "$LD" && LD="$ac_prog"
9903 # If it fails, then pretend we aren't using GCC.
9907 # If it is relative, then search for the first ld in PATH.
9911 elif test "$with_gnu_ld" = yes; then
9912 echo "$as_me:$LINENO: checking for GNU ld" >&5
9913 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9915 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9916 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9918 if test "${lt_cv_path_LD+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 if test -z "$LD"; then
9922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9923 for ac_dir in $PATH; do
9925 test -z "$ac_dir" && ac_dir=.
9926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9927 lt_cv_path_LD="$ac_dir/$ac_prog"
9928 # Check to see if the program is GNU ld. I'd rather use --version,
9929 # but apparently some GNU ld's only accept -v.
9930 # Break only if it was the GNU/non-GNU ld that we prefer.
9931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9932 *GNU* | *'with BFD'*)
9933 test "$with_gnu_ld" != no && break
9936 test "$with_gnu_ld" != yes && break
9943 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9948 if test -n "$LD"; then
9949 echo "$as_me:$LINENO: result: $LD" >&5
9950 echo "${ECHO_T}$LD" >&6
9952 echo "$as_me:$LINENO: result: no" >&5
9953 echo "${ECHO_T}no" >&6
9955 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9956 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9957 { (exit 1); exit 1; }; }
9958 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9959 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9960 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9964 case `$LD -v 2>&1 </dev/null` in
9965 *GNU* | *'with BFD'*)
9966 lt_cv_prog_gnu_ld=yes
9969 lt_cv_prog_gnu_ld=no
9973 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9974 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9975 with_gnu_ld=$lt_cv_prog_gnu_ld
9978 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9979 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9980 if test "${lt_cv_ld_reload_flag+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 lt_cv_ld_reload_flag='-r'
9985 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9986 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9987 reload_flag=$lt_cv_ld_reload_flag
9988 case $reload_flag in
9990 *) reload_flag=" $reload_flag" ;;
9992 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9995 if test "$GCC" = yes; then
9996 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9998 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10003 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10004 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10005 if test "${lt_cv_deplibs_check_method+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 lt_cv_file_magic_cmd='$MAGIC_CMD'
10009 lt_cv_file_magic_test_file=
10010 lt_cv_deplibs_check_method='unknown'
10011 # Need to set the preceding variable on all platforms that support
10012 # interlibrary dependencies.
10013 # 'none' -- dependencies not supported.
10014 # `unknown' -- same as none, but documents that we really don't know.
10015 # 'pass_all' -- all dependencies passed with no checks.
10016 # 'test_compile' -- check by making test program.
10017 # 'file_magic [[regex]]' -- check by looking for files in library path
10018 # which responds to the $file_magic_cmd with a given extended regex.
10019 # If you have `file' or equivalent on your system and you're not sure
10020 # whether `pass_all' will *always* work, you probably want this one.
10024 lt_cv_deplibs_check_method=pass_all
10028 lt_cv_deplibs_check_method=pass_all
10032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10033 lt_cv_file_magic_cmd='/usr/bin/file -L'
10034 lt_cv_file_magic_test_file=/shlib/libc.so
10038 # func_win32_libid is a shell function defined in ltmain.sh
10039 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10040 lt_cv_file_magic_cmd='func_win32_libid'
10044 # Base MSYS/MinGW do not provide the 'file' command needed by
10045 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10046 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10047 lt_cv_file_magic_cmd='$OBJDUMP -f'
10050 darwin* | rhapsody*)
10051 lt_cv_deplibs_check_method=pass_all
10054 freebsd* | kfreebsd*-gnu)
10055 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10058 # Not sure whether the presence of OpenBSD here was a mistake.
10059 # Let's accept both of them until this is cleared up.
10060 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10061 lt_cv_file_magic_cmd=/usr/bin/file
10062 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10066 lt_cv_deplibs_check_method=pass_all
10071 lt_cv_deplibs_check_method=pass_all
10074 hpux10.20* | hpux11*)
10075 lt_cv_file_magic_cmd=/usr/bin/file
10076 case "$host_cpu" in
10078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10079 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10082 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]'
10083 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10087 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10092 irix5* | irix6* | nonstopux*)
10094 *-32|*"-32 ") libmagic=32-bit;;
10095 *-n32|*"-n32 ") libmagic=N32;;
10096 *-64|*"-64 ") libmagic=64-bit;;
10097 *) libmagic=never-match;;
10099 lt_cv_deplibs_check_method=pass_all
10102 # This must be Linux ELF.
10104 lt_cv_deplibs_check_method=pass_all
10108 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10117 lt_cv_file_magic_cmd=/usr/bin/file
10118 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10122 lt_cv_deplibs_check_method=unknown
10126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10133 osf3* | osf4* | osf5*)
10134 lt_cv_deplibs_check_method=pass_all
10138 lt_cv_deplibs_check_method=pass_all
10142 lt_cv_deplibs_check_method=pass_all
10145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10146 case $host_vendor in
10148 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]'
10149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10152 lt_cv_deplibs_check_method=pass_all
10155 lt_cv_file_magic_cmd='/bin/file'
10156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10159 lt_cv_file_magic_cmd='/bin/file'
10160 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10161 lt_cv_file_magic_test_file=/lib/libc.so
10164 lt_cv_deplibs_check_method=pass_all
10169 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10170 lt_cv_deplibs_check_method=pass_all
10175 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10176 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10177 file_magic_cmd=$lt_cv_file_magic_cmd
10178 deplibs_check_method=$lt_cv_deplibs_check_method
10179 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10183 # If no C compiler was specified, use CC.
10186 # Allow CC to be a program name with arguments.
10189 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10190 if test "${enable_libtool_lock+set}" = set; then
10191 enableval="$enable_libtool_lock"
10194 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10196 # Some flags need to be propagated to the compiler or linker for good
10200 # Find out which ABI we are using.
10201 echo 'int i;' > conftest.$ac_ext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203 (eval $ac_compile) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; then
10207 case `/usr/bin/file conftest.$ac_objext` in
10209 HPUX_IA64_MODE="32"
10212 HPUX_IA64_MODE="64"
10219 # Find out which ABI we are using.
10220 echo '#line 10219 "configure"' > conftest.$ac_ext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10222 (eval $ac_compile) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; then
10226 if test "$lt_cv_prog_gnu_ld" = yes; then
10227 case `/usr/bin/file conftest.$ac_objext` in
10229 LD="${LD-ld} -melf32bsmip"
10232 LD="${LD-ld} -melf32bmipn32"
10235 LD="${LD-ld} -melf64bmip"
10239 case `/usr/bin/file conftest.$ac_objext` in
10255 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10256 # Find out which ABI we are using.
10257 echo 'int i;' > conftest.$ac_ext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; then
10263 case "`/usr/bin/file conftest.o`" in
10267 LD="${LD-ld} -m elf_i386"
10269 ppc64-*linux*|powerpc64-*linux*)
10270 LD="${LD-ld} -m elf32ppclinux"
10273 LD="${LD-ld} -m elf_s390"
10276 LD="${LD-ld} -m elf32_sparc"
10283 LD="${LD-ld} -m elf_x86_64"
10285 ppc*-*linux*|powerpc*-*linux*)
10286 LD="${LD-ld} -m elf64ppc"
10289 LD="${LD-ld} -m elf64_s390"
10292 LD="${LD-ld} -m elf64_sparc"
10302 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10303 SAVE_CFLAGS="$CFLAGS"
10304 CFLAGS="$CFLAGS -belf"
10305 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10306 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10307 if test "${lt_cv_cc_needs_belf+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 ac_cpp='$CPP $CPPFLAGS'
10312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10316 cat >conftest.$ac_ext <<_ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10326 (eval $ac_link) 2>conftest.er1
10328 grep -v '^ *+' conftest.er1 >conftest.err
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -z "$ac_c_werror_flag"
10334 || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest$ac_exeext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 lt_cv_cc_needs_belf=yes
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 lt_cv_cc_needs_belf=no
10353 rm -f conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10356 ac_cpp='$CPP $CPPFLAGS'
10357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10362 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10363 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10364 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10365 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10366 CFLAGS="$SAVE_CFLAGS"
10372 need_locks="$enable_libtool_lock"
10377 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10378 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10379 (test "X$CXX" != "Xg++"))) ; then
10381 ac_cpp='$CXXCPP $CPPFLAGS'
10382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10385 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10386 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10387 if test -z "$CXXCPP"; then
10388 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 # Double quotes because CXXCPP needs to be expanded
10392 for CXXCPP in "$CXX -E" "/lib/cpp"
10394 ac_preproc_ok=false
10395 for ac_cxx_preproc_warn_flag in '' yes
10397 # Use a header file that comes with gcc, so configuring glibc
10398 # with a fresh cross-compiler works.
10399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10400 # <limits.h> exists even on freestanding compilers.
10401 # On the NeXT, cc -E runs the code through the compiler's parser,
10402 # not just through cpp. "Syntax error" is here to catch this case.
10403 cat >conftest.$ac_ext <<_ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10410 # include <limits.h>
10412 # include <assert.h>
10416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10419 grep -v '^ *+' conftest.er1 >conftest.err
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } >/dev/null; then
10424 if test -s conftest.err; then
10425 ac_cpp_err=$ac_cxx_preproc_warn_flag
10426 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10433 if test -z "$ac_cpp_err"; then
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 # Broken: fails on valid input.
10442 rm -f conftest.err conftest.$ac_ext
10444 # OK, works on sane cases. Now check whether non-existent headers
10445 # can be detected and how.
10446 cat >conftest.$ac_ext <<_ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10452 #include <ac_nonexistent.h>
10454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10457 grep -v '^ *+' conftest.er1 >conftest.err
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } >/dev/null; then
10462 if test -s conftest.err; then
10463 ac_cpp_err=$ac_cxx_preproc_warn_flag
10464 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10471 if test -z "$ac_cpp_err"; then
10472 # Broken: success on invalid input.
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 # Passes both tests.
10482 rm -f conftest.err conftest.$ac_ext
10485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10486 rm -f conftest.err conftest.$ac_ext
10487 if $ac_preproc_ok; then
10492 ac_cv_prog_CXXCPP=$CXXCPP
10495 CXXCPP=$ac_cv_prog_CXXCPP
10497 ac_cv_prog_CXXCPP=$CXXCPP
10499 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10500 echo "${ECHO_T}$CXXCPP" >&6
10501 ac_preproc_ok=false
10502 for ac_cxx_preproc_warn_flag in '' yes
10504 # Use a header file that comes with gcc, so configuring glibc
10505 # with a fresh cross-compiler works.
10506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10507 # <limits.h> exists even on freestanding compilers.
10508 # On the NeXT, cc -E runs the code through the compiler's parser,
10509 # not just through cpp. "Syntax error" is here to catch this case.
10510 cat >conftest.$ac_ext <<_ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10517 # include <limits.h>
10519 # include <assert.h>
10523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } >/dev/null; then
10531 if test -s conftest.err; then
10532 ac_cpp_err=$ac_cxx_preproc_warn_flag
10533 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10540 if test -z "$ac_cpp_err"; then
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 # Broken: fails on valid input.
10549 rm -f conftest.err conftest.$ac_ext
10551 # OK, works on sane cases. Now check whether non-existent headers
10552 # can be detected and how.
10553 cat >conftest.$ac_ext <<_ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 #include <ac_nonexistent.h>
10561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } >/dev/null; then
10569 if test -s conftest.err; then
10570 ac_cpp_err=$ac_cxx_preproc_warn_flag
10571 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10578 if test -z "$ac_cpp_err"; then
10579 # Broken: success on invalid input.
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 # Passes both tests.
10589 rm -f conftest.err conftest.$ac_ext
10592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10593 rm -f conftest.err conftest.$ac_ext
10594 if $ac_preproc_ok; then
10597 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10598 See \`config.log' for more details." >&5
10599 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10600 See \`config.log' for more details." >&2;}
10601 { (exit 1); exit 1; }; }
10605 ac_cpp='$CXXCPP $CPPFLAGS'
10606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10614 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10615 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10616 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10617 if test -n "$ac_tool_prefix"; then
10618 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10622 echo "$as_me:$LINENO: checking for $ac_word" >&5
10623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10624 if test "${ac_cv_prog_F77+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 if test -n "$F77"; then
10628 ac_cv_prog_F77="$F77" # Let the user override the test.
10630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631 for as_dir in $PATH
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10646 F77=$ac_cv_prog_F77
10647 if test -n "$F77"; then
10648 echo "$as_me:$LINENO: result: $F77" >&5
10649 echo "${ECHO_T}$F77" >&6
10651 echo "$as_me:$LINENO: result: no" >&5
10652 echo "${ECHO_T}no" >&6
10655 test -n "$F77" && break
10658 if test -z "$F77"; then
10660 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10662 # Extract the first word of "$ac_prog", so it can be a program name with args.
10663 set dummy $ac_prog; ac_word=$2
10664 echo "$as_me:$LINENO: checking for $ac_word" >&5
10665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10666 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 if test -n "$ac_ct_F77"; then
10670 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10679 ac_cv_prog_ac_ct_F77="$ac_prog"
10680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10689 if test -n "$ac_ct_F77"; then
10690 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10691 echo "${ECHO_T}$ac_ct_F77" >&6
10693 echo "$as_me:$LINENO: result: no" >&5
10694 echo "${ECHO_T}no" >&6
10697 test -n "$ac_ct_F77" && break
10704 # Provide some information about the compiler.
10705 echo "$as_me:10704:" \
10706 "checking for Fortran 77 compiler version" >&5
10707 ac_compiler=`set X $ac_compile; echo $2`
10708 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10709 (eval $ac_compiler --version </dev/null >&5) 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }
10713 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10714 (eval $ac_compiler -v </dev/null >&5) 2>&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }
10718 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10719 (eval $ac_compiler -V </dev/null >&5) 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }
10725 # If we don't use `.F' as extension, the preprocessor is not run on the
10726 # input file. (Note that this only needs to work for GNU compilers.)
10727 ac_save_ext=$ac_ext
10729 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10730 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10731 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10742 rm -f conftest.$ac_objext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744 (eval $ac_compile) 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
10751 { ac_try='test -z "$ac_f77_werror_flag"
10752 || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest.$ac_objext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 ac_compiler_gnu=yes
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10772 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10775 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10776 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10777 ac_ext=$ac_save_ext
10778 ac_test_FFLAGS=${FFLAGS+set}
10779 ac_save_FFLAGS=$FFLAGS
10781 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10782 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10783 if test "${ac_cv_prog_f77_g+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 cat >conftest.$ac_ext <<_ACEOF
10792 rm -f conftest.$ac_objext
10793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10794 (eval $ac_compile) 2>conftest.er1
10796 grep -v '^ *+' conftest.er1 >conftest.err
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } &&
10801 { ac_try='test -z "$ac_f77_werror_flag"
10802 || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest.$ac_objext'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 ac_cv_prog_f77_g=yes
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10819 ac_cv_prog_f77_g=no
10821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10824 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10825 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10826 if test "$ac_test_FFLAGS" = set; then
10827 FFLAGS=$ac_save_FFLAGS
10828 elif test $ac_cv_prog_f77_g = yes; then
10829 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10835 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10842 G77=`test $ac_compiler_gnu = yes && echo yes`
10844 ac_cpp='$CPP $CPPFLAGS'
10845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10851 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10853 # find the maximum length of command line arguments
10854 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10855 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10856 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 # On DJGPP, this test can blow up pretty badly due to problems in libc
10865 # (any single argument exceeding 2000 bytes causes a buffer overrun
10866 # during glob expansion). Even if it were fixed, the result of this
10867 # check would be larger than it should be.
10868 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10872 # Under GNU Hurd, this test is not required because there is
10873 # no limit to the length of command line arguments.
10874 # Libtool will interpret -1 as no limit whatsoever
10875 lt_cv_sys_max_cmd_len=-1;
10879 # On Win9x/ME, this test blows up -- it succeeds, but takes
10880 # about 5 minutes as the teststring grows exponentially.
10881 # Worse, since 9x/ME are not pre-emptively multitasking,
10882 # you end up with a "frozen" computer, even though with patience
10883 # the test eventually succeeds (with a max line length of 256k).
10884 # Instead, let's just punt: use the minimum linelength reported by
10885 # all of the supported platforms: 8192 (on NT/2K/XP).
10886 lt_cv_sys_max_cmd_len=8192;
10890 # On AmigaOS with pdksh, this test takes hours, literally.
10891 # So we just punt and use a minimum line length of 8192.
10892 lt_cv_sys_max_cmd_len=8192;
10895 netbsd* | freebsd* | openbsd* | darwin* )
10896 # This has been around since 386BSD, at least. Likely further.
10897 if test -x /sbin/sysctl; then
10898 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10899 elif test -x /usr/sbin/sysctl; then
10900 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10902 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10904 # And add a safety zone
10905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10909 # If test is not a shell built-in, we'll probably end up computing a
10910 # maximum length that is only half of the actual maximum length, but
10912 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10913 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10914 = "XX$teststring") >/dev/null 2>&1 &&
10915 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10916 lt_cv_sys_max_cmd_len=$new_result &&
10917 test $i != 17 # 1/2 MB should be enough
10920 teststring=$teststring$teststring
10923 # Add a significant safety factor because C++ compilers can tack on massive
10924 # amounts of additional arguments before passing them to the linker.
10925 # It appears as though 1/2 is a usable value.
10926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10932 if test -n $lt_cv_sys_max_cmd_len ; then
10933 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10934 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10936 echo "$as_me:$LINENO: result: none" >&5
10937 echo "${ECHO_T}none" >&6
10943 # Check for command to grab the raw symbol name followed by C symbol from nm.
10944 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10945 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10946 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 # These are sane defaults that work on at least a few old systems.
10951 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10953 # Character class describing NM global symbol codes.
10954 symcode='[BCDEGRST]'
10956 # Regexp to match symbols that can be accessed directly from C.
10957 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10959 # Transform the above into a raw symbol and a C symbol.
10960 symxfrm='\1 \2\3 \3'
10962 # Transform an extracted symbol line into a proper C declaration
10963 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10965 # Transform an extracted symbol line into symbol name and symbol address
10966 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'"
10968 # Define system-specific variables.
10973 cygwin* | mingw* | pw32*)
10974 symcode='[ABCDGISTW]'
10976 hpux*) # Its linker distinguishes data from code symbols
10977 if test "$host_cpu" = ia64; then
10978 symcode='[ABCDEGRST]'
10980 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10981 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'"
10984 if test "$host_cpu" = ia64; then
10985 symcode='[ABCDGIRSTW]'
10986 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10987 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'"
10990 irix* | nonstopux*)
10991 symcode='[BCDEGRST]'
10994 symcode='[BCDEGQRST]'
11004 # Handle CRLF in mingw tool chain
11008 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11012 # If we're using GNU nm, then use its standard symbol codes.
11013 case `$NM -V 2>&1` in
11014 *GNU* | *'with BFD'*)
11015 symcode='[ABCDGIRSTW]' ;;
11018 # Try without a prefix undercore, then with it.
11019 for ac_symprfx in "" "_"; do
11021 # Write the raw and C identifiers.
11022 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11024 # Check to see that the pipe works correctly.
11028 cat > conftest.$ac_ext <<EOF
11033 void nm_test_func(){}
11037 int main(){nm_test_var='a';nm_test_func();return(0);}
11040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041 (eval $ac_compile) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; then
11045 # Now try to grab the symbols.
11047 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11048 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && test -s "$nlist"; then
11052 # Try sorting and uniquifying the output.
11053 if sort "$nlist" | uniq > "$nlist"T; then
11054 mv -f "$nlist"T "$nlist"
11059 # Make sure that we snagged all the symbols we need.
11060 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11061 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11062 cat <<EOF > conftest.$ac_ext
11068 # Now generate the symbol file.
11069 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11071 cat <<EOF >> conftest.$ac_ext
11072 #if defined (__STDC__) && __STDC__
11073 # define lt_ptr_t void *
11075 # define lt_ptr_t char *
11079 /* The mapping between symbol names and symbols. */
11084 lt_preloaded_symbols[] =
11087 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11088 cat <<\EOF >> conftest.$ac_ext
11096 # Now try linking the two files.
11097 mv conftest.$ac_objext conftstm.$ac_objext
11098 lt_save_LIBS="$LIBS"
11099 lt_save_CFLAGS="$CFLAGS"
11100 LIBS="conftstm.$ac_objext"
11101 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103 (eval $ac_link) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11109 LIBS="$lt_save_LIBS"
11110 CFLAGS="$lt_save_CFLAGS"
11112 echo "cannot find nm_test_func in $nlist" >&5
11115 echo "cannot find nm_test_var in $nlist" >&5
11118 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11121 echo "$progname: failed program was:" >&5
11122 cat conftest.$ac_ext >&5
11124 rm -f conftest* conftst*
11126 # Do not use the global_symbol_pipe unless it works.
11127 if test "$pipe_works" = yes; then
11130 lt_cv_sys_global_symbol_pipe=
11136 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11137 lt_cv_sys_global_symbol_to_cdecl=
11139 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11140 echo "$as_me:$LINENO: result: failed" >&5
11141 echo "${ECHO_T}failed" >&6
11143 echo "$as_me:$LINENO: result: ok" >&5
11144 echo "${ECHO_T}ok" >&6
11147 echo "$as_me:$LINENO: checking for objdir" >&5
11148 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11149 if test "${lt_cv_objdir+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 rm -f .libs 2>/dev/null
11153 mkdir .libs 2>/dev/null
11154 if test -d .libs; then
11157 # MS-DOS does not allow filenames that begin with a dot.
11160 rmdir .libs 2>/dev/null
11162 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11163 echo "${ECHO_T}$lt_cv_objdir" >&6
11164 objdir=$lt_cv_objdir
11172 # AIX sometimes has problems with the GCC collect2 program. For some
11173 # reason, if we set the COLLECT_NAMES environment variable, the problems
11174 # vanish in a puff of smoke.
11175 if test "X${COLLECT_NAMES+set}" != Xset; then
11177 export COLLECT_NAMES
11182 # Sed substitution that helps us do robust quoting. It backslashifies
11183 # metacharacters that are still active within double-quoted strings.
11184 Xsed='sed -e s/^X//'
11185 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11187 # Same as above, but do not quote variable references.
11188 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11190 # Sed substitution to delay expansion of an escaped shell variable in a
11191 # double_quote_subst'ed string.
11192 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11194 # Sed substitution to avoid accidental globbing in evaled expressions
11195 no_glob_subst='s/\*/\\\*/g'
11200 # Global variables:
11201 default_ofile=mklib
11202 can_build_shared=yes
11204 # All known linkers require a `.a' archive for static linking (except M$VC,
11205 # which needs '.lib').
11207 ltmain="$ac_aux_dir/ltmain.sh"
11208 ofile="$default_ofile"
11209 with_gnu_ld="$lt_cv_prog_gnu_ld"
11211 if test -n "$ac_tool_prefix"; then
11212 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11213 set dummy ${ac_tool_prefix}ar; ac_word=$2
11214 echo "$as_me:$LINENO: checking for $ac_word" >&5
11215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11216 if test "${ac_cv_prog_AR+set}" = set; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11219 if test -n "$AR"; then
11220 ac_cv_prog_AR="$AR" # Let the user override the test.
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11226 test -z "$as_dir" && as_dir=.
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229 ac_cv_prog_AR="${ac_tool_prefix}ar"
11230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 if test -n "$AR"; then
11240 echo "$as_me:$LINENO: result: $AR" >&5
11241 echo "${ECHO_T}$AR" >&6
11243 echo "$as_me:$LINENO: result: no" >&5
11244 echo "${ECHO_T}no" >&6
11248 if test -z "$ac_cv_prog_AR"; then
11250 # Extract the first word of "ar", so it can be a program name with args.
11251 set dummy ar; ac_word=$2
11252 echo "$as_me:$LINENO: checking for $ac_word" >&5
11253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11254 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 if test -n "$ac_ct_AR"; then
11258 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH
11264 test -z "$as_dir" && as_dir=.
11265 for ac_exec_ext in '' $ac_executable_extensions; do
11266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11267 ac_cv_prog_ac_ct_AR="ar"
11268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11274 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11277 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11278 if test -n "$ac_ct_AR"; then
11279 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11280 echo "${ECHO_T}$ac_ct_AR" >&6
11282 echo "$as_me:$LINENO: result: no" >&5
11283 echo "${ECHO_T}no" >&6
11288 AR="$ac_cv_prog_AR"
11291 if test -n "$ac_tool_prefix"; then
11292 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11294 echo "$as_me:$LINENO: checking for $ac_word" >&5
11295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11296 if test "${ac_cv_prog_RANLIB+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 if test -n "$RANLIB"; then
11300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11318 RANLIB=$ac_cv_prog_RANLIB
11319 if test -n "$RANLIB"; then
11320 echo "$as_me:$LINENO: result: $RANLIB" >&5
11321 echo "${ECHO_T}$RANLIB" >&6
11323 echo "$as_me:$LINENO: result: no" >&5
11324 echo "${ECHO_T}no" >&6
11328 if test -z "$ac_cv_prog_RANLIB"; then
11329 ac_ct_RANLIB=$RANLIB
11330 # Extract the first word of "ranlib", so it can be a program name with args.
11331 set dummy ranlib; ac_word=$2
11332 echo "$as_me:$LINENO: checking for $ac_word" >&5
11333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 if test -n "$ac_ct_RANLIB"; then
11338 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341 for as_dir in $PATH
11344 test -z "$as_dir" && as_dir=.
11345 for ac_exec_ext in '' $ac_executable_extensions; do
11346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11347 ac_cv_prog_ac_ct_RANLIB="ranlib"
11348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11358 if test -n "$ac_ct_RANLIB"; then
11359 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11360 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11362 echo "$as_me:$LINENO: result: no" >&5
11363 echo "${ECHO_T}no" >&6
11366 RANLIB=$ac_ct_RANLIB
11368 RANLIB="$ac_cv_prog_RANLIB"
11371 if test -n "$ac_tool_prefix"; then
11372 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11373 set dummy ${ac_tool_prefix}strip; ac_word=$2
11374 echo "$as_me:$LINENO: checking for $ac_word" >&5
11375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11376 if test "${ac_cv_prog_STRIP+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 if test -n "$STRIP"; then
11380 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH
11386 test -z "$as_dir" && as_dir=.
11387 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 STRIP=$ac_cv_prog_STRIP
11399 if test -n "$STRIP"; then
11400 echo "$as_me:$LINENO: result: $STRIP" >&5
11401 echo "${ECHO_T}$STRIP" >&6
11403 echo "$as_me:$LINENO: result: no" >&5
11404 echo "${ECHO_T}no" >&6
11408 if test -z "$ac_cv_prog_STRIP"; then
11410 # Extract the first word of "strip", so it can be a program name with args.
11411 set dummy strip; ac_word=$2
11412 echo "$as_me:$LINENO: checking for $ac_word" >&5
11413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11414 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 if test -n "$ac_ct_STRIP"; then
11418 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11427 ac_cv_prog_ac_ct_STRIP="strip"
11428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11434 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11437 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11438 if test -n "$ac_ct_STRIP"; then
11439 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11440 echo "${ECHO_T}$ac_ct_STRIP" >&6
11442 echo "$as_me:$LINENO: result: no" >&5
11443 echo "${ECHO_T}no" >&6
11448 STRIP="$ac_cv_prog_STRIP"
11453 old_CFLAGS="$CFLAGS"
11455 # Set sane defaults for various variables
11456 test -z "$AR" && AR=ar
11457 test -z "$AR_FLAGS" && AR_FLAGS=cru
11458 test -z "$AS" && AS=as
11459 test -z "$CC" && CC=cc
11460 test -z "$LTCC" && LTCC=$CC
11461 test -z "$DLLTOOL" && DLLTOOL=dlltool
11462 test -z "$LD" && LD=ld
11463 test -z "$LN_S" && LN_S="ln -s"
11464 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11465 test -z "$NM" && NM=nm
11466 test -z "$SED" && SED=sed
11467 test -z "$OBJDUMP" && OBJDUMP=objdump
11468 test -z "$RANLIB" && RANLIB=:
11469 test -z "$STRIP" && STRIP=:
11470 test -z "$ac_objext" && ac_objext=o
11472 # Determine commands to create old-style static archives.
11473 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11474 old_postinstall_cmds='chmod 644 $oldlib'
11475 old_postuninstall_cmds=
11477 if test -n "$RANLIB"; then
11480 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11483 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11486 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11489 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11491 # Only perform the check for file, if the check method requires it
11492 case $deplibs_check_method in
11494 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11495 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11496 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11497 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11505 lt_save_MAGIC_CMD="$MAGIC_CMD"
11506 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11507 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11508 for ac_dir in $ac_dummy; do
11510 test -z "$ac_dir" && ac_dir=.
11511 if test -f $ac_dir/${ac_tool_prefix}file; then
11512 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11513 if test -n "$file_magic_test_file"; then
11514 case $deplibs_check_method in
11516 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11518 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11519 $EGREP "$file_magic_regex" > /dev/null; then
11524 *** Warning: the command libtool uses to detect shared libraries,
11525 *** $file_magic_cmd, produces output that libtool cannot recognize.
11526 *** The result is that libtool may fail to recognize shared libraries
11527 *** as such. This will affect the creation of libtool libraries that
11528 *** depend on shared libraries, but programs linked with such libtool
11529 *** libraries will work regardless of this problem. Nevertheless, you
11530 *** may want to report the problem to your system manager and/or to
11531 *** bug-libtool@gnu.org
11541 MAGIC_CMD="$lt_save_MAGIC_CMD"
11546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11547 if test -n "$MAGIC_CMD"; then
11548 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11549 echo "${ECHO_T}$MAGIC_CMD" >&6
11551 echo "$as_me:$LINENO: result: no" >&5
11552 echo "${ECHO_T}no" >&6
11555 if test -z "$lt_cv_path_MAGIC_CMD"; then
11556 if test -n "$ac_tool_prefix"; then
11557 echo "$as_me:$LINENO: checking for file" >&5
11558 echo $ECHO_N "checking for file... $ECHO_C" >&6
11559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11567 lt_save_MAGIC_CMD="$MAGIC_CMD"
11568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11570 for ac_dir in $ac_dummy; do
11572 test -z "$ac_dir" && ac_dir=.
11573 if test -f $ac_dir/file; then
11574 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11575 if test -n "$file_magic_test_file"; then
11576 case $deplibs_check_method in
11578 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11581 $EGREP "$file_magic_regex" > /dev/null; then
11586 *** Warning: the command libtool uses to detect shared libraries,
11587 *** $file_magic_cmd, produces output that libtool cannot recognize.
11588 *** The result is that libtool may fail to recognize shared libraries
11589 *** as such. This will affect the creation of libtool libraries that
11590 *** depend on shared libraries, but programs linked with such libtool
11591 *** libraries will work regardless of this problem. Nevertheless, you
11592 *** may want to report the problem to your system manager and/or to
11593 *** bug-libtool@gnu.org
11603 MAGIC_CMD="$lt_save_MAGIC_CMD"
11608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11609 if test -n "$MAGIC_CMD"; then
11610 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11611 echo "${ECHO_T}$MAGIC_CMD" >&6
11613 echo "$as_me:$LINENO: result: no" >&5
11614 echo "${ECHO_T}no" >&6
11627 enable_win32_dll=no
11629 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11630 if test "${enable_libtool_lock+set}" = set; then
11631 enableval="$enable_libtool_lock"
11634 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11637 # Check whether --with-pic or --without-pic was given.
11638 if test "${with_pic+set}" = set; then
11639 withval="$with_pic"
11640 pic_mode="$withval"
11644 test -z "$pic_mode" && pic_mode=default
11646 # Use C for the default configuration in the libtool script
11650 ac_cpp='$CPP $CPPFLAGS'
11651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11656 # Source file extension for C test sources.
11659 # Object file extension for compiled C test sources.
11663 # Code to be used in simple compile tests
11664 lt_simple_compile_test_code="int some_variable = 0;\n"
11666 # Code to be used in simple link tests
11667 lt_simple_link_test_code='int main(){return(0);}\n'
11670 # If no C compiler was specified, use CC.
11673 # Allow CC to be a program name with arguments.
11678 # Check for any special shared library compilation flags.
11681 if test "$GCC" = no; then
11684 lt_prog_cc_shlib='-belf'
11688 if test -n "$lt_prog_cc_shlib"; then
11689 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11690 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11691 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11693 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11694 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11695 lt_cv_prog_cc_can_build_shared=no
11701 # Check to make sure the static flag actually works.
11703 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11704 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11705 if test "${lt_prog_compiler_static_works+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 lt_prog_compiler_static_works=no
11709 save_LDFLAGS="$LDFLAGS"
11710 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11711 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11713 # The compiler can only warn and ignore the option if not recognized
11714 # So say no if there are warnings
11715 if test -s conftest.err; then
11716 # Append any errors to the config.log.
11717 cat conftest.err 1>&5
11719 lt_prog_compiler_static_works=yes
11723 LDFLAGS="$save_LDFLAGS"
11726 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11727 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11729 if test x"$lt_prog_compiler_static_works" = xyes; then
11732 lt_prog_compiler_static=
11738 lt_prog_compiler_no_builtin_flag=
11740 if test "$GCC" = yes; then
11741 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11744 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11745 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11746 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 lt_cv_prog_compiler_rtti_exceptions=no
11750 ac_outfile=conftest.$ac_objext
11751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11752 lt_compiler_flag="-fno-rtti -fno-exceptions"
11753 # Insert the option either (1) after the last *FLAGS variable, or
11754 # (2) before a word containing "conftest.", or (3) at the end.
11755 # Note that $ac_compile itself does not contain backslashes and begins
11756 # with a dollar sign (not a hyphen), so the echo should work correctly.
11757 # The option is referenced via a variable to avoid confusing sed.
11758 lt_compile=`echo "$ac_compile" | $SED \
11759 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11761 -e 's:$: $lt_compiler_flag:'`
11762 (eval echo "\"\$as_me:11761: $lt_compile\"" >&5)
11763 (eval "$lt_compile" 2>conftest.err)
11765 cat conftest.err >&5
11766 echo "$as_me:11765: \$? = $ac_status" >&5
11767 if (exit $ac_status) && test -s "$ac_outfile"; then
11768 # The compiler can only warn and ignore the option if not recognized
11769 # So say no if there are warnings
11770 if test ! -s conftest.err; then
11771 lt_cv_prog_compiler_rtti_exceptions=yes
11777 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11778 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11780 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11781 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11788 lt_prog_compiler_wl=
11789 lt_prog_compiler_pic=
11790 lt_prog_compiler_static=
11792 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11793 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11795 if test "$GCC" = yes; then
11796 lt_prog_compiler_wl='-Wl,'
11797 lt_prog_compiler_static='-static'
11801 # All AIX code is PIC.
11802 if test "$host_cpu" = ia64; then
11803 # AIX 5 now supports IA64 processor
11804 lt_prog_compiler_static='-Bstatic'
11809 # FIXME: we need at least 68020 code to build shared libraries, but
11810 # adding the `-m68020' flag to GCC prevents building anything better,
11812 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11815 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11816 # PIC is the default for these OSes.
11819 mingw* | pw32* | os2*)
11820 # This hack is so that the source file can tell whether it is being
11821 # built for inclusion in a dll (and should export symbols for example).
11822 lt_prog_compiler_pic='-DDLL_EXPORT'
11825 darwin* | rhapsody*)
11826 # PIC is the default on this platform
11827 # Common symbols not allowed in MH_DYLIB files
11828 lt_prog_compiler_pic='-fno-common'
11832 # Just because we use GCC doesn't mean we suddenly get shared libraries
11833 # on systems that don't support them.
11834 lt_prog_compiler_can_build_shared=no
11839 if test -d /usr/nec; then
11840 lt_prog_compiler_pic=-Kconform_pic
11845 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11846 # not for PA HP-UX.
11847 case "$host_cpu" in
11852 lt_prog_compiler_pic='-fPIC'
11858 lt_prog_compiler_pic='-fPIC'
11862 # PORTME Check for flag to pass linker flags through the system compiler.
11865 lt_prog_compiler_wl='-Wl,'
11866 if test "$host_cpu" = ia64; then
11867 # AIX 5 now supports IA64 processor
11868 lt_prog_compiler_static='-Bstatic'
11870 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11874 # PIC is the default on this platform
11875 # Common symbols not allowed in MH_DYLIB files
11876 case "$cc_basename" in
11878 lt_prog_compiler_pic='-qnocommon'
11879 lt_prog_compiler_wl='-Wl,'
11884 mingw* | pw32* | os2*)
11885 # This hack is so that the source file can tell whether it is being
11886 # built for inclusion in a dll (and should export symbols for example).
11887 lt_prog_compiler_pic='-DDLL_EXPORT'
11890 hpux9* | hpux10* | hpux11*)
11891 lt_prog_compiler_wl='-Wl,'
11892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11893 # not for PA HP-UX.
11894 case "$host_cpu" in
11899 lt_prog_compiler_pic='+Z'
11902 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11903 lt_prog_compiler_static='${wl}-a ${wl}archive'
11906 irix5* | irix6* | nonstopux*)
11907 lt_prog_compiler_wl='-Wl,'
11908 # PIC (with -KPIC) is the default.
11909 lt_prog_compiler_static='-non_shared'
11913 lt_prog_compiler_pic='-KPIC'
11914 lt_prog_compiler_static='-Bstatic'
11920 lt_prog_compiler_wl='-Wl,'
11921 lt_prog_compiler_pic='-KPIC'
11922 lt_prog_compiler_static='-static'
11925 lt_prog_compiler_wl='-Wl,'
11926 # All Alpha code is PIC.
11927 lt_prog_compiler_static='-non_shared'
11932 osf3* | osf4* | osf5*)
11933 lt_prog_compiler_wl='-Wl,'
11934 # All OSF/1 code is PIC.
11935 lt_prog_compiler_static='-non_shared'
11939 lt_prog_compiler_pic='-Kpic'
11940 lt_prog_compiler_static='-dn'
11944 lt_prog_compiler_wl='-Wl,'
11945 lt_prog_compiler_pic='-KPIC'
11946 lt_prog_compiler_static='-Bstatic'
11950 lt_prog_compiler_wl='-Qoption ld '
11951 lt_prog_compiler_pic='-PIC'
11952 lt_prog_compiler_static='-Bstatic'
11955 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11956 lt_prog_compiler_wl='-Wl,'
11957 lt_prog_compiler_pic='-KPIC'
11958 lt_prog_compiler_static='-Bstatic'
11962 if test -d /usr/nec ;then
11963 lt_prog_compiler_pic='-Kconform_pic'
11964 lt_prog_compiler_static='-Bstatic'
11969 lt_prog_compiler_pic='-pic'
11970 lt_prog_compiler_static='-Bstatic'
11974 lt_prog_compiler_can_build_shared=no
11979 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11980 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11983 # Check to make sure the PIC flag actually works.
11985 if test -n "$lt_prog_compiler_pic"; then
11987 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11989 if test "${lt_prog_compiler_pic_works+set}" = set; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 lt_prog_compiler_pic_works=no
11993 ac_outfile=conftest.$ac_objext
11994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11995 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11996 # Insert the option either (1) after the last *FLAGS variable, or
11997 # (2) before a word containing "conftest.", or (3) at the end.
11998 # Note that $ac_compile itself does not contain backslashes and begins
11999 # with a dollar sign (not a hyphen), so the echo should work correctly.
12000 # The option is referenced via a variable to avoid confusing sed.
12001 lt_compile=`echo "$ac_compile" | $SED \
12002 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12004 -e 's:$: $lt_compiler_flag:'`
12005 (eval echo "\"\$as_me:12004: $lt_compile\"" >&5)
12006 (eval "$lt_compile" 2>conftest.err)
12008 cat conftest.err >&5
12009 echo "$as_me:12008: \$? = $ac_status" >&5
12010 if (exit $ac_status) && test -s "$ac_outfile"; then
12011 # The compiler can only warn and ignore the option if not recognized
12012 # So say no if there are warnings
12013 if test ! -s conftest.err; then
12014 lt_prog_compiler_pic_works=yes
12020 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12021 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12023 if test x"$lt_prog_compiler_pic_works" = xyes; then
12024 case $lt_prog_compiler_pic in
12026 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12029 lt_prog_compiler_pic=
12030 lt_prog_compiler_can_build_shared=no
12035 # For platforms which do not support PIC, -DPIC is meaningless:
12037 lt_prog_compiler_pic=
12040 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12044 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12045 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12046 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 lt_cv_prog_compiler_c_o=no
12050 $rm -r conftest 2>/dev/null
12054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12056 lt_compiler_flag="-o out/conftest2.$ac_objext"
12057 # Insert the option either (1) after the last *FLAGS variable, or
12058 # (2) before a word containing "conftest.", or (3) at the end.
12059 # Note that $ac_compile itself does not contain backslashes and begins
12060 # with a dollar sign (not a hyphen), so the echo should work correctly.
12061 lt_compile=`echo "$ac_compile" | $SED \
12062 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12064 -e 's:$: $lt_compiler_flag:'`
12065 (eval echo "\"\$as_me:12064: $lt_compile\"" >&5)
12066 (eval "$lt_compile" 2>out/conftest.err)
12068 cat out/conftest.err >&5
12069 echo "$as_me:12068: \$? = $ac_status" >&5
12070 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12072 # The compiler can only warn and ignore the option if not recognized
12073 # So say no if there are warnings
12074 if test ! -s out/conftest.err; then
12075 lt_cv_prog_compiler_c_o=yes
12080 # SGI C++ compiler will create directory out/ii_files/ for
12081 # template instantiation
12082 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12083 $rm out/* && rmdir out
12089 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12090 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12093 hard_links="nottested"
12094 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12095 # do not overwrite the value of need_locks provided by the user
12096 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12097 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12100 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12102 ln conftest.a conftest.b 2>&5 || hard_links=no
12103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12104 echo "$as_me:$LINENO: result: $hard_links" >&5
12105 echo "${ECHO_T}$hard_links" >&6
12106 if test "$hard_links" = no; then
12107 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12108 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12115 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12116 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12119 allow_undefined_flag=
12120 enable_shared_with_static_runtimes=no
12122 archive_expsym_cmds=
12123 old_archive_From_new_cmds=
12124 old_archive_from_expsyms_cmds=
12125 export_dynamic_flag_spec=
12126 whole_archive_flag_spec=
12127 thread_safe_flag_spec=
12128 hardcode_libdir_flag_spec=
12129 hardcode_libdir_flag_spec_ld=
12130 hardcode_libdir_separator=
12132 hardcode_minus_L=no
12133 hardcode_shlibpath_var=unsupported
12134 link_all_deplibs=unknown
12135 hardcode_automatic=no
12137 module_expsym_cmds=
12138 always_export_symbols=no
12139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12140 # include_expsyms should be a list of space-separated symbols to be *always*
12141 # included in the symbol list
12143 # exclude_expsyms can be an extended regexp of symbols to exclude
12144 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12145 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12146 # as well as any symbol that contains `d'.
12147 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12148 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12149 # platforms (ab)use it in PIC code, but their linkers get confused if
12150 # the symbol is explicitly referenced. Since portable code cannot
12151 # rely on this symbol name, it's probably fine to never include it in
12152 # preloaded symbol tables.
12153 extract_expsyms_cmds=
12156 cygwin* | mingw* | pw32*)
12157 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12158 # When not using gcc, we currently assume that we are using
12159 # Microsoft Visual C++.
12160 if test "$GCC" != yes; then
12170 if test "$with_gnu_ld" = yes; then
12171 # If archive_cmds runs LD, not CC, wlarc should be empty
12174 # See if GNU ld supports shared libraries.
12176 aix3* | aix4* | aix5*)
12177 # On AIX/PPC, the GNU linker is very broken
12178 if test "$host_cpu" != ia64; then
12182 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12183 *** to be unable to reliably create shared libraries on AIX.
12184 *** Therefore, libtool is disabling shared libraries support. If you
12185 *** really care for shared libraries, you may want to modify your PATH
12186 *** so that a non-GNU linker is found, and then restart.
12193 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)'
12194 hardcode_libdir_flag_spec='-L$libdir'
12195 hardcode_minus_L=yes
12197 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12198 # that the semantics of dynamic libraries on AmigaOS, at least up
12199 # to version 4, is to share data among multiple programs linked
12200 # with the same dynamic library. Since this doesn't match the
12201 # behavior of shared libraries on other platforms, we can't use
12207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12208 allow_undefined_flag=unsupported
12209 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12210 # support --undefined. This deserves some investigation. FIXME
12211 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12217 cygwin* | mingw* | pw32*)
12218 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12219 # as there is no search path for DLLs.
12220 hardcode_libdir_flag_spec='-L$libdir'
12221 allow_undefined_flag=unsupported
12222 always_export_symbols=no
12223 enable_shared_with_static_runtimes=yes
12224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12226 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12228 # If the export-symbols file already is a .def file (1st line
12229 # is EXPORTS), use it as is; otherwise, prepend...
12230 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12231 cp $export_symbols $output_objdir/$soname.def;
12233 echo EXPORTS > $output_objdir/$soname.def;
12234 cat $export_symbols >> $output_objdir/$soname.def;
12236 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12244 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12253 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12257 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12258 *** create shared libraries on Solaris systems. Therefore, libtool
12259 *** is disabling shared libraries support. We urge you to upgrade GNU
12260 *** binutils to release 2.9.1 or newer. Another option is to modify
12261 *** your PATH or compiler configuration so that the native linker is
12262 *** used, and then restart.
12265 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12274 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12276 hardcode_direct=yes
12277 hardcode_shlibpath_var=no
12281 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12282 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12283 archive_cmds="$tmp_archive_cmds"
12284 supports_anon_versioning=no
12285 case `$LD -v 2>/dev/null` in
12286 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12287 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12288 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12289 *\ 2.11.*) ;; # other 2.11 versions
12290 *) supports_anon_versioning=yes ;;
12292 if test $supports_anon_versioning = yes; then
12293 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12295 $echo "local: *; };" >> $output_objdir/$libname.ver~
12296 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12298 archive_expsym_cmds="$tmp_archive_cmds"
12306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12315 if test "$ld_shlibs" = yes; then
12316 runpath_var=LD_RUN_PATH
12317 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12318 export_dynamic_flag_spec='${wl}--export-dynamic'
12319 # ancient GNU ld didn't support --whole-archive et. al.
12320 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12321 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12323 whole_archive_flag_spec=
12327 # PORTME fill in a description of your system's linker (not GNU ld)
12330 allow_undefined_flag=unsupported
12331 always_export_symbols=yes
12332 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'
12333 # Note: this linker hardcodes the directories in LIBPATH if there
12334 # are no directories specified by -L.
12335 hardcode_minus_L=yes
12336 if test "$GCC" = yes && test -z "$link_static_flag"; then
12337 # Neither direct hardcoding nor static linking is supported with a
12339 hardcode_direct=unsupported
12344 if test "$host_cpu" = ia64; then
12345 # On IA64, the linker does run time linking by default, so we don't
12346 # have to do anything special.
12347 aix_use_runtimelinking=no
12348 exp_sym_flag='-Bexport'
12351 # If we're using GNU nm, then we don't want the "-C" option.
12352 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12353 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12354 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'
12356 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'
12358 aix_use_runtimelinking=no
12360 # Test if we are trying to use run time linking or normal
12361 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12362 # need to do runtime linking.
12363 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12364 for ld_flag in $LDFLAGS; do
12365 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12366 aix_use_runtimelinking=yes
12372 exp_sym_flag='-bexport'
12373 no_entry_flag='-bnoentry'
12376 # When large executables or shared objects are built, AIX ld can
12377 # have problems creating the table of contents. If linking a library
12378 # or program results in "error TOC overflow" add -mminimal-toc to
12379 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12380 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12383 hardcode_direct=yes
12384 hardcode_libdir_separator=':'
12385 link_all_deplibs=yes
12387 if test "$GCC" = yes; then
12388 case $host_os in aix4.012|aix4.012.*)
12389 # We only want to do this on AIX 4.2 and lower, the check
12390 # below for broken collect2 doesn't work under 4.3+
12391 collect2name=`${CC} -print-prog-name=collect2`
12392 if test -f "$collect2name" && \
12393 strings "$collect2name" | grep resolve_lib_name >/dev/null
12395 # We have reworked collect2
12396 hardcode_direct=yes
12398 # We have old collect2
12399 hardcode_direct=unsupported
12400 # It fails to find uninstalled libraries when the uninstalled
12401 # path is not listed in the libpath. Setting hardcode_minus_L
12402 # to unsupported forces relinking
12403 hardcode_minus_L=yes
12404 hardcode_libdir_flag_spec='-L$libdir'
12405 hardcode_libdir_separator=
12408 shared_flag='-shared'
12411 if test "$host_cpu" = ia64; then
12412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12413 # chokes on -Wl,-G. The following line is correct:
12416 if test "$aix_use_runtimelinking" = yes; then
12417 shared_flag='${wl}-G'
12419 shared_flag='${wl}-bM:SRE'
12424 # It seems that -bexpall does not export symbols beginning with
12425 # underscore (_), so it is better to generate a list of symbols to export.
12426 always_export_symbols=yes
12427 if test "$aix_use_runtimelinking" = yes; then
12428 # Warning - without using the other runtime loading flags (-brtl),
12429 # -berok will link without error, but may produce a broken library.
12430 allow_undefined_flag='-berok'
12431 # Determine the default libpath from the value encoded in an empty executable.
12432 cat >conftest.$ac_ext <<_ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449 (eval $ac_link) 2>conftest.er1
12451 grep -v '^ *+' conftest.er1 >conftest.err
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
12456 { ac_try='test -z "$ac_c_werror_flag"
12457 || test ! -s conftest.err'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest$ac_exeext'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12472 # Check for a 64-bit object if we didn't find anything.
12473 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; }
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12480 rm -f conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
12482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12484 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12485 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"
12487 if test "$host_cpu" = ia64; then
12488 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12489 allow_undefined_flag="-z nodefs"
12490 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"
12492 # Determine the default libpath from the value encoded in an empty executable.
12493 cat >conftest.$ac_ext <<_ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12508 rm -f conftest.$ac_objext conftest$ac_exeext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12510 (eval $ac_link) 2>conftest.er1
12512 grep -v '^ *+' conftest.er1 >conftest.err
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -z "$ac_c_werror_flag"
12518 || test ! -s conftest.err'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest$ac_exeext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12533 # Check for a 64-bit object if we didn't find anything.
12534 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; }
12537 echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12541 rm -f conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12545 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12546 # Warning - without using the other run time loading flags,
12547 # -berok will link without error, but may produce a broken library.
12548 no_undefined_flag=' ${wl}-bernotok'
12549 allow_undefined_flag=' ${wl}-berok'
12550 # -bexpall does not export symbols beginning with underscore (_)
12551 always_export_symbols=yes
12552 # Exported symbols can be pulled into shared objects from archives
12553 whole_archive_flag_spec=' '
12554 archive_cmds_need_lc=yes
12555 # This is similar to how AIX traditionally builds it's shared libraries.
12556 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'
12562 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)'
12563 hardcode_libdir_flag_spec='-L$libdir'
12564 hardcode_minus_L=yes
12565 # see comment about different semantics on the GNU ld section
12570 export_dynamic_flag_spec=-rdynamic
12573 cygwin* | mingw* | pw32*)
12574 # When not using gcc, we currently assume that we are using
12575 # Microsoft Visual C++.
12576 # hardcode_libdir_flag_spec is actually meaningless, as there is
12577 # no search path for DLLs.
12578 hardcode_libdir_flag_spec=' '
12579 allow_undefined_flag=unsupported
12580 # Tell ltmain to make .lib files, not .a files.
12582 # Tell ltmain to make .dll files, not .so files.
12584 # FIXME: Setting linknames here is a bad hack.
12585 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12586 # The linker will automatically build a .lib file if we build a DLL.
12587 old_archive_From_new_cmds='true'
12588 # FIXME: Should let the user specify the lib program.
12589 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12590 fix_srcfile_path='`cygpath -w "$srcfile"`'
12591 enable_shared_with_static_runtimes=yes
12594 darwin* | rhapsody*)
12596 rhapsody* | darwin1.[012])
12597 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12600 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12601 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12603 case ${MACOSX_DEPLOYMENT_TARGET} in
12605 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12608 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12614 archive_cmds_need_lc=no
12616 hardcode_automatic=yes
12617 hardcode_shlibpath_var=unsupported
12618 whole_archive_flag_spec=''
12619 link_all_deplibs=yes
12620 if test "$GCC" = yes ; then
12621 output_verbose_link_cmd='echo'
12622 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $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 -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $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}'
12628 case "$cc_basename" in
12630 output_verbose_link_cmd='echo'
12631 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12632 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12633 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12634 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}'
12635 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}'
12645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12646 hardcode_libdir_flag_spec='-L$libdir'
12647 hardcode_shlibpath_var=no
12654 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12655 # support. Future versions do this automatically, but an explicit c++rt0.o
12656 # does not break anything, and helps significantly (at the cost of a little
12659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12660 hardcode_libdir_flag_spec='-R$libdir'
12661 hardcode_direct=yes
12662 hardcode_shlibpath_var=no
12665 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12668 hardcode_direct=yes
12669 hardcode_minus_L=yes
12670 hardcode_shlibpath_var=no
12673 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12674 freebsd* | kfreebsd*-gnu)
12675 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12676 hardcode_libdir_flag_spec='-R$libdir'
12677 hardcode_direct=yes
12678 hardcode_shlibpath_var=no
12682 if test "$GCC" = yes; then
12683 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'
12685 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'
12687 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12688 hardcode_libdir_separator=:
12689 hardcode_direct=yes
12691 # hardcode_minus_L: Not really in the search PATH,
12692 # but as the default location of the library.
12693 hardcode_minus_L=yes
12694 export_dynamic_flag_spec='${wl}-E'
12698 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12699 case "$host_cpu" in
12701 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12704 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12708 case "$host_cpu" in
12710 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12713 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12717 if test "$with_gnu_ld" = no; then
12718 case "$host_cpu" in
12720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12721 hardcode_libdir_flag_spec_ld='+b $libdir'
12722 hardcode_libdir_separator=:
12724 hardcode_shlibpath_var=no
12727 hardcode_libdir_flag_spec='-L$libdir'
12729 hardcode_shlibpath_var=no
12731 # hardcode_minus_L: Not really in the search PATH,
12732 # but as the default location of the library.
12733 hardcode_minus_L=yes
12736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12737 hardcode_libdir_separator=:
12738 hardcode_direct=yes
12739 export_dynamic_flag_spec='${wl}-E'
12741 # hardcode_minus_L: Not really in the search PATH,
12742 # but as the default location of the library.
12743 hardcode_minus_L=yes
12749 irix5* | irix6* | nonstopux*)
12750 if test "$GCC" = yes; then
12751 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'
12753 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'
12754 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12757 hardcode_libdir_separator=:
12758 link_all_deplibs=yes
12762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12765 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12767 hardcode_libdir_flag_spec='-R$libdir'
12768 hardcode_direct=yes
12769 hardcode_shlibpath_var=no
12773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12774 hardcode_direct=yes
12775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12776 hardcode_libdir_separator=:
12777 hardcode_shlibpath_var=no
12781 hardcode_direct=yes
12782 hardcode_shlibpath_var=no
12783 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12785 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12787 export_dynamic_flag_spec='${wl}-E'
12790 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12792 hardcode_libdir_flag_spec='-R$libdir'
12795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12803 hardcode_libdir_flag_spec='-L$libdir'
12804 hardcode_minus_L=yes
12805 allow_undefined_flag=unsupported
12806 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'
12807 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12811 if test "$GCC" = yes; then
12812 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12813 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'
12815 allow_undefined_flag=' -expect_unresolved \*'
12816 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'
12818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12819 hardcode_libdir_separator=:
12822 osf4* | osf5*) # as osf3* with the addition of -msym flag
12823 if test "$GCC" = yes; then
12824 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12825 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'
12826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12828 allow_undefined_flag=' -expect_unresolved \*'
12829 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'
12830 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12831 $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'
12833 # Both c and cxx compiler support -rpath directly
12834 hardcode_libdir_flag_spec='-rpath $libdir'
12836 hardcode_libdir_separator=:
12840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12841 hardcode_shlibpath_var=no
12842 export_dynamic_flag_spec='${wl}-Bexport'
12843 runpath_var=LD_RUN_PATH
12844 hardcode_runpath_var=yes
12848 no_undefined_flag=' -z text'
12849 if test "$GCC" = yes; then
12850 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12851 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12852 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12854 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12855 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12856 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12858 hardcode_libdir_flag_spec='-R$libdir'
12859 hardcode_shlibpath_var=no
12861 solaris2.[0-5] | solaris2.[0-5].*) ;;
12862 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12863 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12865 link_all_deplibs=yes
12869 if test "x$host_vendor" = xsequent; then
12870 # Use $CC to link under sequent, because it throws in some extra .o
12871 # files that make .init and .fini sections work.
12872 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12874 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12876 hardcode_libdir_flag_spec='-L$libdir'
12877 hardcode_direct=yes
12878 hardcode_minus_L=yes
12879 hardcode_shlibpath_var=no
12883 case $host_vendor in
12885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12886 hardcode_direct=yes # is this really true???
12889 ## LD is ld it makes a PLAMLIB
12890 ## CC just makes a GrossModule.
12891 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12892 reload_cmds='$CC -r -o $output$reload_objs'
12896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12900 runpath_var='LD_RUN_PATH'
12901 hardcode_shlibpath_var=no
12905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12906 hardcode_shlibpath_var=no
12907 export_dynamic_flag_spec='-Bexport'
12911 if test -d /usr/nec; then
12912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12913 hardcode_shlibpath_var=no
12914 runpath_var=LD_RUN_PATH
12915 hardcode_runpath_var=yes
12921 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12922 hardcode_direct=yes
12923 hardcode_minus_L=no
12924 hardcode_shlibpath_var=no
12925 hardcode_runpath_var=yes
12926 runpath_var=LD_RUN_PATH
12929 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12930 no_undefined_flag='${wl}-z ${wl}text'
12931 if test "$GCC" = yes; then
12932 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12934 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12936 runpath_var='LD_RUN_PATH'
12937 hardcode_shlibpath_var=no
12941 no_undefined_flag=' -z text'
12942 # $CC -shared without GNU ld will not create a library from C++
12943 # object files and a static libstdc++, better avoid it by now
12944 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12945 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12947 hardcode_libdir_flag_spec=
12948 hardcode_shlibpath_var=no
12949 runpath_var='LD_RUN_PATH'
12953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12954 hardcode_libdir_flag_spec='-L$libdir'
12955 hardcode_shlibpath_var=no
12964 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12965 echo "${ECHO_T}$ld_shlibs" >&6
12966 test "$ld_shlibs" = no && can_build_shared=no
12968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12969 if test "$GCC" = yes; then
12970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12974 # Do we need to explicitly link libc?
12976 case "x$archive_cmds_need_lc" in
12978 # Assume -lc should be added
12979 archive_cmds_need_lc=yes
12981 if test "$enable_shared" = yes && test "$GCC" = yes; then
12982 case $archive_cmds in
12984 # FIXME: we may have to deal with multi-command sequences.
12987 # Test whether the compiler implicitly links with -lc since on some
12988 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12989 # to ld, don't add -lc before -lgcc.
12990 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12991 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12996 (eval $ac_compile) 2>&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } 2>conftest.err; then
13002 libobjs=conftest.$ac_objext
13004 wl=$lt_prog_compiler_wl
13010 lt_save_allow_undefined_flag=$allow_undefined_flag
13011 allow_undefined_flag=
13012 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13013 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }
13018 archive_cmds_need_lc=no
13020 archive_cmds_need_lc=yes
13022 allow_undefined_flag=$lt_save_allow_undefined_flag
13024 cat conftest.err 1>&5
13027 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13028 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13035 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13036 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13037 library_names_spec=
13038 libname_spec='lib$name'
13042 postuninstall_cmds=
13046 shlibpath_overrides_runpath=unknown
13048 dynamic_linker="$host_os ld.so"
13049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13050 if test "$GCC" = yes; then
13051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13052 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13053 # if the path contains ";" then we assume it to be the separator
13054 # otherwise default to the standard path separator (i.e. ":") - it is
13055 # assumed that no part of a normal pathname contains ";" but that should
13056 # okay in the real world where ";" in dirpaths is itself problematic.
13057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13062 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13064 need_lib_prefix=unknown
13065 hardcode_into_libs=no
13067 # when you set need_version to no, make sure it does not cause -set_version
13068 # flags to be left without arguments
13069 need_version=unknown
13074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13075 shlibpath_var=LIBPATH
13077 # AIX 3 has no versioning support, so we append a major version to the name.
13078 soname_spec='${libname}${release}${shared_ext}$major'
13085 hardcode_into_libs=yes
13086 if test "$host_cpu" = ia64; then
13087 # AIX 5 supports IA64
13088 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13089 shlibpath_var=LD_LIBRARY_PATH
13091 # With GCC up to 2.95.x, collect2 would create an import file
13092 # for dependence libraries. The import file would start with
13093 # the line `#! .'. This would cause the generated library to
13094 # depend on `.', always an invalid library. This was fixed in
13095 # development snapshots of GCC prior to 3.0.
13097 aix4 | aix4.[01] | aix4.[01].*)
13098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13100 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13103 can_build_shared=no
13107 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13108 # soname into executable. Probably we can add versioning support to
13109 # collect2, so additional links can be useful in future.
13110 if test "$aix_use_runtimelinking" = yes; then
13111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13112 # instead of lib<name>.a to let people know that these are not
13113 # typical AIX shared libraries.
13114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13116 # We preserve .a as extension for shared libraries through AIX4.2
13117 # and later when we are not doing run time linking.
13118 library_names_spec='${libname}${release}.a $libname.a'
13119 soname_spec='${libname}${release}${shared_ext}$major'
13121 shlibpath_var=LIBPATH
13126 library_names_spec='$libname.ixlibrary $libname.a'
13127 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13128 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'
13132 library_names_spec='${libname}${shared_ext}'
13133 dynamic_linker="$host_os ld.so"
13134 shlibpath_var=LIBRARY_PATH
13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141 soname_spec='${libname}${release}${shared_ext}$major'
13142 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13143 shlibpath_var=LD_LIBRARY_PATH
13144 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13145 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13146 # the default ld.so.conf also contains /usr/contrib/lib and
13147 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13148 # libtool to hard-code these into programs
13151 cygwin* | mingw* | pw32*)
13152 version_type=windows
13157 case $GCC,$host_os in
13158 yes,cygwin* | yes,mingw* | yes,pw32*)
13159 library_names_spec='$libname.dll.a'
13160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13161 postinstall_cmds='base_file=`basename \${file}`~
13162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13163 dldir=$destdir/`dirname \$dlpath`~
13164 test -d \$dldir || mkdir -p \$dldir~
13165 $install_prog $dir/$dlname \$dldir/$dlname'
13166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13167 dlpath=$dir/\$dldll~
13169 shlibpath_overrides_runpath=yes
13173 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13174 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13175 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13178 # MinGW DLLs use traditional 'lib' prefix
13179 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13180 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13181 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13182 # It is most probably a Windows format PATH printed by
13183 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13184 # path with ; separators, and with drive letters. We can handle the
13185 # drive letters (cygwin fileutils understands them), so leave them,
13186 # especially as we might pass files found there to a mingw objdump,
13187 # which wouldn't understand a cygwinified path. Ahh.
13188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13194 # pw32 DLLs use 'pw' prefix rather than 'lib'
13195 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13201 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13204 dynamic_linker='Win32 ld.exe'
13205 # FIXME: first we should search . and the directory the executable is in
13209 darwin* | rhapsody*)
13210 dynamic_linker="$host_os dyld"
13211 version_type=darwin
13214 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13215 soname_spec='${libname}${release}${major}$shared_ext'
13216 shlibpath_overrides_runpath=yes
13217 shlibpath_var=DYLD_LIBRARY_PATH
13218 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13219 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13220 if test "$GCC" = yes; then
13221 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"`
13223 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13225 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13233 soname_spec='${libname}${release}${shared_ext}$major'
13234 shlibpath_var=LD_LIBRARY_PATH
13245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13246 soname_spec='${libname}${release}${shared_ext}$major'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 shlibpath_overrides_runpath=no
13249 hardcode_into_libs=yes
13250 dynamic_linker='GNU ld.so'
13254 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13255 version_type=freebsd-$objformat
13256 case $version_type in
13258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13267 shlibpath_var=LD_LIBRARY_PATH
13270 shlibpath_overrides_runpath=yes
13272 freebsd3.01* | freebsdelf3.01*)
13273 shlibpath_overrides_runpath=yes
13274 hardcode_into_libs=yes
13277 shlibpath_overrides_runpath=no
13278 hardcode_into_libs=yes
13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13288 soname_spec='${libname}${release}${shared_ext}$major'
13289 shlibpath_var=LD_LIBRARY_PATH
13290 hardcode_into_libs=yes
13293 hpux9* | hpux10* | hpux11*)
13294 # Give a soname corresponding to the major version so that dld.sl refuses to
13295 # link against other versions.
13299 case "$host_cpu" in
13302 hardcode_into_libs=yes
13303 dynamic_linker="$host_os dld.so"
13304 shlibpath_var=LD_LIBRARY_PATH
13305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13307 soname_spec='${libname}${release}${shared_ext}$major'
13308 if test "X$HPUX_IA64_MODE" = X32; then
13309 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13311 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13317 hardcode_into_libs=yes
13318 dynamic_linker="$host_os dld.sl"
13319 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13322 soname_spec='${libname}${release}${shared_ext}$major'
13323 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13328 dynamic_linker="$host_os dld.sl"
13329 shlibpath_var=SHLIB_PATH
13330 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13332 soname_spec='${libname}${release}${shared_ext}$major'
13335 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13336 postinstall_cmds='chmod 555 $lib'
13339 irix5* | irix6* | nonstopux*)
13341 nonstopux*) version_type=nonstopux ;;
13343 if test "$lt_cv_prog_gnu_ld" = yes; then
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13354 irix5* | nonstopux*)
13355 libsuff= shlibsuff=
13358 case $LD in # libtool.m4 will add one of these switches to LD
13359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13360 libsuff= shlibsuff= libmagic=32-bit;;
13361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13362 libsuff=32 shlibsuff=N32 libmagic=N32;;
13363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13365 *) libsuff= shlibsuff= libmagic=never-match;;
13369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13370 shlibpath_overrides_runpath=no
13371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13373 hardcode_into_libs=yes
13376 # No shared lib support for Linux oldld, aout, or coff.
13377 linux*oldld* | linux*aout* | linux*coff*)
13381 # This must be Linux ELF.
13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13387 soname_spec='${libname}${release}${shared_ext}$major'
13388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13389 shlibpath_var=LD_LIBRARY_PATH
13390 shlibpath_overrides_runpath=no
13391 # This implies no fast_install, which is unacceptable.
13392 # Some rework will be needed to allow for fast_install
13393 # before this can be enabled.
13394 hardcode_into_libs=yes
13396 # Append ld.so.conf contents to the search path
13397 if test -f /etc/ld.so.conf; then
13398 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13399 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13402 # We used to test for /lib/ld.so.1 and disable shared libraries on
13403 # powerpc, because MkLinux only supported shared libraries with the
13404 # GNU dynamic linker. Since this was broken with cross compilers,
13405 # most powerpc-linux boxes support dynamic linking these days and
13406 # people can always --disable-shared, the test was removed, and we
13407 # assume the GNU/Linux dynamic linker is in use.
13408 dynamic_linker='GNU/Linux ld.so'
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13416 soname_spec='${libname}${release}${shared_ext}$major'
13417 shlibpath_var=LD_LIBRARY_PATH
13418 shlibpath_overrides_runpath=no
13419 hardcode_into_libs=yes
13420 dynamic_linker='GNU ld.so'
13427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13430 dynamic_linker='NetBSD (a.out) ld.so'
13432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13433 soname_spec='${libname}${release}${shared_ext}$major'
13434 dynamic_linker='NetBSD ld.elf_so'
13436 shlibpath_var=LD_LIBRARY_PATH
13437 shlibpath_overrides_runpath=yes
13438 hardcode_into_libs=yes
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 shlibpath_overrides_runpath=yes
13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453 soname_spec='${libname}${release}${shared_ext}$major'
13454 shlibpath_var=LD_LIBRARY_PATH
13455 shlibpath_overrides_runpath=yes
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13464 shlibpath_var=LD_LIBRARY_PATH
13465 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13467 openbsd2.[89] | openbsd2.[89].*)
13468 shlibpath_overrides_runpath=no
13471 shlibpath_overrides_runpath=yes
13475 shlibpath_overrides_runpath=yes
13480 libname_spec='$name'
13483 library_names_spec='$libname${shared_ext} $libname.a'
13484 dynamic_linker='OS/2 ld.exe'
13485 shlibpath_var=LIBPATH
13488 osf3* | osf4* | osf5*)
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
13495 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13496 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13501 soname_spec='${libname}${release}${shared_ext}$major'
13502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503 shlibpath_var=LD_LIBRARY_PATH
13510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13511 soname_spec='${libname}${release}${shared_ext}$major'
13512 shlibpath_var=LD_LIBRARY_PATH
13513 shlibpath_overrides_runpath=yes
13514 hardcode_into_libs=yes
13515 # ldd complains unless libraries are executable
13516 postinstall_cmds='chmod +x $lib'
13521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13522 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13523 shlibpath_var=LD_LIBRARY_PATH
13524 shlibpath_overrides_runpath=yes
13525 if test "$with_gnu_ld" = yes; then
13531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13534 soname_spec='${libname}${release}${shared_ext}$major'
13535 shlibpath_var=LD_LIBRARY_PATH
13536 case $host_vendor in
13538 shlibpath_overrides_runpath=no
13540 export_dynamic_flag_spec='${wl}-Blargedynsym'
13541 runpath_var=LD_RUN_PATH
13549 shlibpath_overrides_runpath=no
13550 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13556 if test -d /usr/nec ;then
13558 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13559 soname_spec='$libname${shared_ext}.$major'
13560 shlibpath_var=LD_LIBRARY_PATH
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567 soname_spec='${libname}${release}${shared_ext}$major'
13568 shlibpath_var=LD_LIBRARY_PATH
13575 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13576 echo "${ECHO_T}$dynamic_linker" >&6
13577 test "$dynamic_linker" = no && can_build_shared=no
13579 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13580 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13582 if test -n "$hardcode_libdir_flag_spec" || \
13583 test -n "$runpath_var" || \
13584 test "X$hardcode_automatic" = "Xyes" ; then
13586 # We can hardcode non-existant directories.
13587 if test "$hardcode_direct" != no &&
13588 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13589 # have to relink, otherwise we might link with an installed library
13590 # when we should be linking with a yet-to-be-installed one
13591 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13592 test "$hardcode_minus_L" != no; then
13593 # Linking always hardcodes the temporary library directory.
13594 hardcode_action=relink
13596 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13597 hardcode_action=immediate
13600 # We cannot hardcode anything, or else we can only hardcode existing
13602 hardcode_action=unsupported
13604 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13605 echo "${ECHO_T}$hardcode_action" >&6
13607 if test "$hardcode_action" = relink; then
13608 # Fast installation is not supported
13609 enable_fast_install=no
13610 elif test "$shlibpath_overrides_runpath" = yes ||
13611 test "$enable_shared" = no; then
13612 # Fast installation is not necessary
13613 enable_fast_install=needless
13618 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13619 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13620 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13621 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13622 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13623 echo "$as_me:$LINENO: result: yes" >&5
13624 echo "${ECHO_T}yes" >&6
13626 # FIXME - insert some real tests, host_os isn't really good enough
13629 if test -n "$STRIP" ; then
13630 striplib="$STRIP -x"
13631 echo "$as_me:$LINENO: result: yes" >&5
13632 echo "${ECHO_T}yes" >&6
13634 echo "$as_me:$LINENO: result: no" >&5
13635 echo "${ECHO_T}no" >&6
13639 echo "$as_me:$LINENO: result: no" >&5
13640 echo "${ECHO_T}no" >&6
13645 if test "x$enable_dlopen" != xyes; then
13646 enable_dlopen=unknown
13647 enable_dlopen_self=unknown
13648 enable_dlopen_self_static=unknown
13655 lt_cv_dlopen="load_add_on"
13657 lt_cv_dlopen_self=yes
13661 lt_cv_dlopen="LoadLibrary"
13666 lt_cv_dlopen="dlopen"
13671 # if libdl is installed we need to link against it
13672 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13673 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13674 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 ac_check_lib_save_LIBS=$LIBS
13679 cat >conftest.$ac_ext <<_ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13686 /* Override any gcc2 internal prototype to avoid an error. */
13690 /* We use char because int might match the return type of a gcc2
13691 builtin and then its argument prototype would still apply. */
13701 rm -f conftest.$ac_objext conftest$ac_exeext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13703 (eval $ac_link) 2>conftest.er1
13705 grep -v '^ *+' conftest.er1 >conftest.err
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -z "$ac_c_werror_flag"
13711 || test ! -s conftest.err'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; } &&
13717 { ac_try='test -s conftest$ac_exeext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_cv_lib_dl_dlopen=yes
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 ac_cv_lib_dl_dlopen=no
13730 rm -f conftest.err conftest.$ac_objext \
13731 conftest$ac_exeext conftest.$ac_ext
13732 LIBS=$ac_check_lib_save_LIBS
13734 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13735 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13736 if test $ac_cv_lib_dl_dlopen = yes; then
13737 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13740 lt_cv_dlopen="dyld"
13742 lt_cv_dlopen_self=yes
13749 echo "$as_me:$LINENO: checking for shl_load" >&5
13750 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13751 if test "${ac_cv_func_shl_load+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13762 #define shl_load innocuous_shl_load
13764 /* System header to define __stub macros and hopefully few prototypes,
13765 which can conflict with char shl_load (); below.
13766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767 <limits.h> exists even on freestanding compilers. */
13770 # include <limits.h>
13772 # include <assert.h>
13777 /* Override any gcc2 internal prototype to avoid an error. */
13782 /* We use char because int might match the return type of a gcc2
13783 builtin and then its argument prototype would still apply. */
13785 /* The GNU C library defines this for functions which it implements
13786 to always fail with ENOSYS. Some functions are actually named
13787 something starting with __ and the normal name is an alias. */
13788 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13791 char (*f) () = shl_load;
13800 return f != shl_load;
13805 rm -f conftest.$ac_objext conftest$ac_exeext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13807 (eval $ac_link) 2>conftest.er1
13809 grep -v '^ *+' conftest.er1 >conftest.err
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -z "$ac_c_werror_flag"
13815 || test ! -s conftest.err'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; } &&
13821 { ac_try='test -s conftest$ac_exeext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_cv_func_shl_load=yes
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_cv_func_shl_load=no
13834 rm -f conftest.err conftest.$ac_objext \
13835 conftest$ac_exeext conftest.$ac_ext
13837 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13838 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13839 if test $ac_cv_func_shl_load = yes; then
13840 lt_cv_dlopen="shl_load"
13842 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13843 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13844 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 ac_check_lib_save_LIBS=$LIBS
13849 cat >conftest.$ac_ext <<_ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13856 /* Override any gcc2 internal prototype to avoid an error. */
13860 /* We use char because int might match the return type of a gcc2
13861 builtin and then its argument prototype would still apply. */
13871 rm -f conftest.$ac_objext conftest$ac_exeext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873 (eval $ac_link) 2>conftest.er1
13875 grep -v '^ *+' conftest.er1 >conftest.err
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try='test -z "$ac_c_werror_flag"
13881 || test ! -s conftest.err'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest$ac_exeext'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893 ac_cv_lib_dld_shl_load=yes
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13898 ac_cv_lib_dld_shl_load=no
13900 rm -f conftest.err conftest.$ac_objext \
13901 conftest$ac_exeext conftest.$ac_ext
13902 LIBS=$ac_check_lib_save_LIBS
13904 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13905 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13906 if test $ac_cv_lib_dld_shl_load = yes; then
13907 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13909 echo "$as_me:$LINENO: checking for dlopen" >&5
13910 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13911 if test "${ac_cv_func_dlopen+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 cat >conftest.$ac_ext <<_ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13922 #define dlopen innocuous_dlopen
13924 /* System header to define __stub macros and hopefully few prototypes,
13925 which can conflict with char dlopen (); below.
13926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13927 <limits.h> exists even on freestanding compilers. */
13930 # include <limits.h>
13932 # include <assert.h>
13937 /* Override any gcc2 internal prototype to avoid an error. */
13942 /* We use char because int might match the return type of a gcc2
13943 builtin and then its argument prototype would still apply. */
13945 /* The GNU C library defines this for functions which it implements
13946 to always fail with ENOSYS. Some functions are actually named
13947 something starting with __ and the normal name is an alias. */
13948 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13951 char (*f) () = dlopen;
13960 return f != dlopen;
13965 rm -f conftest.$ac_objext conftest$ac_exeext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967 (eval $ac_link) 2>conftest.er1
13969 grep -v '^ *+' conftest.er1 >conftest.err
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } &&
13974 { ac_try='test -z "$ac_c_werror_flag"
13975 || test ! -s conftest.err'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; } &&
13981 { ac_try='test -s conftest$ac_exeext'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
13987 ac_cv_func_dlopen=yes
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 ac_cv_func_dlopen=no
13994 rm -f conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
13997 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13998 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13999 if test $ac_cv_func_dlopen = yes; then
14000 lt_cv_dlopen="dlopen"
14002 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14003 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14004 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 ac_check_lib_save_LIBS=$LIBS
14009 cat >conftest.$ac_ext <<_ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14016 /* Override any gcc2 internal prototype to avoid an error. */
14020 /* We use char because int might match the return type of a gcc2
14021 builtin and then its argument prototype would still apply. */
14031 rm -f conftest.$ac_objext conftest$ac_exeext
14032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14033 (eval $ac_link) 2>conftest.er1
14035 grep -v '^ *+' conftest.er1 >conftest.err
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try='test -z "$ac_c_werror_flag"
14041 || test ! -s conftest.err'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try='test -s conftest$ac_exeext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_cv_lib_dl_dlopen=yes
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14058 ac_cv_lib_dl_dlopen=no
14060 rm -f conftest.err conftest.$ac_objext \
14061 conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14064 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14065 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14066 if test $ac_cv_lib_dl_dlopen = yes; then
14067 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14069 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14070 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14071 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 ac_check_lib_save_LIBS=$LIBS
14075 LIBS="-lsvld $LIBS"
14076 cat >conftest.$ac_ext <<_ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14083 /* Override any gcc2 internal prototype to avoid an error. */
14087 /* We use char because int might match the return type of a gcc2
14088 builtin and then its argument prototype would still apply. */
14098 rm -f conftest.$ac_objext conftest$ac_exeext
14099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14100 (eval $ac_link) 2>conftest.er1
14102 grep -v '^ *+' conftest.er1 >conftest.err
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } &&
14107 { ac_try='test -z "$ac_c_werror_flag"
14108 || test ! -s conftest.err'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } &&
14114 { ac_try='test -s conftest$ac_exeext'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 ac_cv_lib_svld_dlopen=yes
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14125 ac_cv_lib_svld_dlopen=no
14127 rm -f conftest.err conftest.$ac_objext \
14128 conftest$ac_exeext conftest.$ac_ext
14129 LIBS=$ac_check_lib_save_LIBS
14131 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14132 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14133 if test $ac_cv_lib_svld_dlopen = yes; then
14134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14136 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14137 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14138 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 ac_check_lib_save_LIBS=$LIBS
14143 cat >conftest.$ac_ext <<_ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14150 /* Override any gcc2 internal prototype to avoid an error. */
14154 /* We use char because int might match the return type of a gcc2
14155 builtin and then its argument prototype would still apply. */
14165 rm -f conftest.$ac_objext conftest$ac_exeext
14166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14167 (eval $ac_link) 2>conftest.er1
14169 grep -v '^ *+' conftest.er1 >conftest.err
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -z "$ac_c_werror_flag"
14175 || test ! -s conftest.err'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; } &&
14181 { ac_try='test -s conftest$ac_exeext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_cv_lib_dld_dld_link=yes
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 ac_cv_lib_dld_dld_link=no
14194 rm -f conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext conftest.$ac_ext
14196 LIBS=$ac_check_lib_save_LIBS
14198 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14199 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14200 if test $ac_cv_lib_dld_dld_link = yes; then
14201 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14222 if test "x$lt_cv_dlopen" != xno; then
14228 case $lt_cv_dlopen in
14230 save_CPPFLAGS="$CPPFLAGS"
14231 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14233 save_LDFLAGS="$LDFLAGS"
14234 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14237 LIBS="$lt_cv_dlopen_libs $LIBS"
14239 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14240 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14241 if test "${lt_cv_dlopen_self+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 if test "$cross_compiling" = yes; then :
14245 lt_cv_dlopen_self=cross
14247 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14248 lt_status=$lt_dlunknown
14249 cat > conftest.$ac_ext <<EOF
14250 #line 14249 "configure"
14251 #include "confdefs.h"
14260 # define LT_DLGLOBAL RTLD_GLOBAL
14263 # define LT_DLGLOBAL DL_GLOBAL
14265 # define LT_DLGLOBAL 0
14269 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14270 find out it does not work in some platform. */
14271 #ifndef LT_DLLAZY_OR_NOW
14273 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14276 # define LT_DLLAZY_OR_NOW DL_LAZY
14279 # define LT_DLLAZY_OR_NOW RTLD_NOW
14282 # define LT_DLLAZY_OR_NOW DL_NOW
14284 # define LT_DLLAZY_OR_NOW 0
14292 extern "C" void exit (int);
14295 void fnord() { int i=42;}
14298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14299 int status = $lt_dlunknown;
14303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14304 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14305 /* dlclose (self); */
14311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14312 (eval $ac_link) 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14316 (./conftest; exit; ) 2>/dev/null
14318 case x$lt_status in
14319 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14320 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14321 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14324 # compilation failed
14325 lt_cv_dlopen_self=no
14332 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14333 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14335 if test "x$lt_cv_dlopen_self" = xyes; then
14336 LDFLAGS="$LDFLAGS $link_static_flag"
14337 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14338 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14339 if test "${lt_cv_dlopen_self_static+set}" = set; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 if test "$cross_compiling" = yes; then :
14343 lt_cv_dlopen_self_static=cross
14345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14346 lt_status=$lt_dlunknown
14347 cat > conftest.$ac_ext <<EOF
14348 #line 14347 "configure"
14349 #include "confdefs.h"
14358 # define LT_DLGLOBAL RTLD_GLOBAL
14361 # define LT_DLGLOBAL DL_GLOBAL
14363 # define LT_DLGLOBAL 0
14367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14368 find out it does not work in some platform. */
14369 #ifndef LT_DLLAZY_OR_NOW
14371 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14374 # define LT_DLLAZY_OR_NOW DL_LAZY
14377 # define LT_DLLAZY_OR_NOW RTLD_NOW
14380 # define LT_DLLAZY_OR_NOW DL_NOW
14382 # define LT_DLLAZY_OR_NOW 0
14390 extern "C" void exit (int);
14393 void fnord() { int i=42;}
14396 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14397 int status = $lt_dlunknown;
14401 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14402 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14403 /* dlclose (self); */
14409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14410 (eval $ac_link) 2>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14414 (./conftest; exit; ) 2>/dev/null
14416 case x$lt_status in
14417 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14418 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14419 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14422 # compilation failed
14423 lt_cv_dlopen_self_static=no
14430 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14431 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14434 CPPFLAGS="$save_CPPFLAGS"
14435 LDFLAGS="$save_LDFLAGS"
14440 case $lt_cv_dlopen_self in
14441 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14442 *) enable_dlopen_self=unknown ;;
14445 case $lt_cv_dlopen_self_static in
14446 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14447 *) enable_dlopen_self_static=unknown ;;
14452 # Report which librarie types wil actually be built
14453 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14454 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14455 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14456 echo "${ECHO_T}$can_build_shared" >&6
14458 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14459 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14460 test "$can_build_shared" = "no" && enable_shared=no
14462 # On AIX, shared libraries and static libraries use the same namespace, and
14463 # are all built from PIC.
14466 test "$enable_shared" = yes && enable_static=no
14467 if test -n "$RANLIB"; then
14468 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14469 postinstall_cmds='$RANLIB $lib'
14474 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14475 test "$enable_shared" = yes && enable_static=no
14479 echo "$as_me:$LINENO: result: $enable_shared" >&5
14480 echo "${ECHO_T}$enable_shared" >&6
14482 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14483 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14484 # Make sure either enable_shared or enable_static is yes.
14485 test "$enable_shared" = yes || enable_static=yes
14486 echo "$as_me:$LINENO: result: $enable_static" >&5
14487 echo "${ECHO_T}$enable_static" >&6
14489 # The else clause should only fire when bootstrapping the
14490 # libtool distribution, otherwise you forgot to ship ltmain.sh
14491 # with your package, and you will get complaints that there are
14492 # no rules to generate ltmain.sh.
14493 if test -f "$ltmain"; then
14494 # See if we are running on zsh, and set the options which allow our commands through
14495 # without removal of \ escapes.
14496 if test -n "${ZSH_VERSION+set}" ; then
14497 setopt NO_GLOB_SUBST
14499 # Now quote all the things that may contain metacharacters while being
14500 # careful not to overquote the AC_SUBSTed values. We take copies of the
14501 # variables and quote the copies for generation of the libtool script.
14502 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14504 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14505 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14506 deplibs_check_method reload_flag reload_cmds need_locks \
14507 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14508 lt_cv_sys_global_symbol_to_c_name_address \
14509 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14510 old_postinstall_cmds old_postuninstall_cmds \
14514 lt_prog_compiler_wl \
14515 lt_prog_compiler_pic \
14516 lt_prog_compiler_static \
14517 lt_prog_compiler_no_builtin_flag \
14518 export_dynamic_flag_spec \
14519 thread_safe_flag_spec \
14520 whole_archive_flag_spec \
14521 enable_shared_with_static_runtimes \
14523 old_archive_from_new_cmds \
14528 compiler_lib_search_path \
14530 archive_expsym_cmds \
14532 postuninstall_cmds \
14533 old_archive_from_expsyms_cmds \
14534 allow_undefined_flag \
14535 no_undefined_flag \
14536 export_symbols_cmds \
14537 hardcode_libdir_flag_spec \
14538 hardcode_libdir_flag_spec_ld \
14539 hardcode_libdir_separator \
14540 hardcode_automatic \
14542 module_expsym_cmds \
14543 lt_cv_prog_compiler_c_o \
14545 include_expsyms; do
14548 old_archive_cmds | \
14549 old_archive_from_new_cmds | \
14551 archive_expsym_cmds | \
14553 module_expsym_cmds | \
14554 old_archive_from_expsyms_cmds | \
14555 export_symbols_cmds | \
14556 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14557 postinstall_cmds | postuninstall_cmds | \
14558 old_postinstall_cmds | old_postuninstall_cmds | \
14559 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14560 # Double-quote double-evaled strings.
14561 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14564 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14570 *'\$0 --fallback-echo"')
14571 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14575 cfgfile="${ofile}T"
14576 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14578 { echo "$as_me:$LINENO: creating $ofile" >&5
14579 echo "$as_me: creating $ofile" >&6;}
14581 cat <<__EOF__ >> "$cfgfile"
14584 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14585 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14586 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14588 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14589 # Free Software Foundation, Inc.
14591 # This file is part of GNU Libtool:
14592 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14594 # This program is free software; you can redistribute it and/or modify
14595 # it under the terms of the GNU General Public License as published by
14596 # the Free Software Foundation; either version 2 of the License, or
14597 # (at your option) any later version.
14599 # This program is distributed in the hope that it will be useful, but
14600 # WITHOUT ANY WARRANTY; without even the implied warranty of
14601 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14602 # General Public License for more details.
14604 # You should have received a copy of the GNU General Public License
14605 # along with this program; if not, write to the Free Software
14606 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14608 # As a special exception to the GNU General Public License, if you
14609 # distribute this file as part of a program that contains a
14610 # configuration script generated by Autoconf, you may include it under
14611 # the same distribution terms that you use for the rest of that program.
14613 # A sed program that does not truncate output.
14616 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14617 Xsed="$SED -e s/^X//"
14619 # The HP-UX ksh and POSIX shell print the target directory to stdout
14620 # if CDPATH is set.
14621 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14623 # The names of the tagged configurations supported by this script.
14626 # ### BEGIN LIBTOOL CONFIG
14628 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14630 # Shell to use when invoking shell scripts.
14633 # Whether or not to build shared libraries.
14634 build_libtool_libs=$enable_shared
14636 # Whether or not to build static libraries.
14637 build_old_libs=$enable_static
14639 # Whether or not to add -lc for building shared libraries.
14640 build_libtool_need_lc=$archive_cmds_need_lc
14642 # Whether or not to disallow shared libs when runtime libs are static
14643 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14645 # Whether or not to optimize for fast installation.
14646 fast_install=$enable_fast_install
14649 host_alias=$host_alias
14652 # An echo program that does not interpret backslashes.
14657 AR_FLAGS=$lt_AR_FLAGS
14662 # A language-specific compiler.
14665 # Is the compiler the GNU C compiler?
14671 # The linker used to build libraries.
14674 # Whether we need hard or soft links.
14677 # A BSD-compatible nm program.
14680 # A symbol stripping program
14683 # Used to examine libraries when file_magic_cmd begins "file"
14684 MAGIC_CMD=$MAGIC_CMD
14686 # Used on cygwin: DLL creation program.
14689 # Used on cygwin: object dumper.
14692 # Used on cygwin: assembler.
14695 # The name of the directory that contains temporary libtool files.
14698 # How to create reloadable object files.
14699 reload_flag=$lt_reload_flag
14700 reload_cmds=$lt_reload_cmds
14702 # How to pass a linker flag through the compiler.
14703 wl=$lt_lt_prog_compiler_wl
14705 # Object file suffix (normally "o").
14706 objext="$ac_objext"
14708 # Old archive suffix (normally "a").
14711 # Shared library suffix (normally ".so").
14712 shrext_cmds='$shrext_cmds'
14714 # Executable file suffix (normally "").
14717 # Additional compiler flags for building library objects.
14718 pic_flag=$lt_lt_prog_compiler_pic
14721 # What is the maximum length of a command?
14722 max_cmd_len=$lt_cv_sys_max_cmd_len
14724 # Does compiler simultaneously support -c and -o options?
14725 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14727 # Must we lock files when doing compilation ?
14728 need_locks=$lt_need_locks
14730 # Do we need the lib prefix for modules?
14731 need_lib_prefix=$need_lib_prefix
14733 # Do we need a version for libraries?
14734 need_version=$need_version
14736 # Whether dlopen is supported.
14737 dlopen_support=$enable_dlopen
14739 # Whether dlopen of programs is supported.
14740 dlopen_self=$enable_dlopen_self
14742 # Whether dlopen of statically linked programs is supported.
14743 dlopen_self_static=$enable_dlopen_self_static
14745 # Compiler flag to prevent dynamic linking.
14746 link_static_flag=$lt_lt_prog_compiler_static
14748 # Compiler flag to turn off builtin functions.
14749 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14751 # Compiler flag to allow reflexive dlopens.
14752 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14754 # Compiler flag to generate shared objects directly from archives.
14755 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14757 # Compiler flag to generate thread-safe objects.
14758 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14760 # Library versioning type.
14761 version_type=$version_type
14763 # Format of library name prefix.
14764 libname_spec=$lt_libname_spec
14766 # List of archive names. First name is the real one, the rest are links.
14767 # The last name is the one that the linker finds with -lNAME.
14768 library_names_spec=$lt_library_names_spec
14770 # The coded name of the library, if different from the real name.
14771 soname_spec=$lt_soname_spec
14773 # Commands used to build and install an old-style archive.
14775 old_archive_cmds=$lt_old_archive_cmds
14776 old_postinstall_cmds=$lt_old_postinstall_cmds
14777 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14779 # Create an old-style archive from a shared archive.
14780 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14782 # Create a temporary old-style archive to link instead of a shared archive.
14783 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14785 # Commands used to build and install a shared archive.
14786 archive_cmds=$lt_archive_cmds
14787 archive_expsym_cmds=$lt_archive_expsym_cmds
14788 postinstall_cmds=$lt_postinstall_cmds
14789 postuninstall_cmds=$lt_postuninstall_cmds
14791 # Commands used to build a loadable module (assumed same as above if empty)
14792 module_cmds=$lt_module_cmds
14793 module_expsym_cmds=$lt_module_expsym_cmds
14795 # Commands to strip libraries.
14796 old_striplib=$lt_old_striplib
14797 striplib=$lt_striplib
14799 # Dependencies to place before the objects being linked to create a
14801 predep_objects=$lt_predep_objects
14803 # Dependencies to place after the objects being linked to create a
14805 postdep_objects=$lt_postdep_objects
14807 # Dependencies to place before the objects being linked to create a
14809 predeps=$lt_predeps
14811 # Dependencies to place after the objects being linked to create a
14813 postdeps=$lt_postdeps
14815 # The library search path used internally by the compiler when linking
14816 # a shared library.
14817 compiler_lib_search_path=$lt_compiler_lib_search_path
14819 # Method to check whether dependent libraries are shared objects.
14820 deplibs_check_method=$lt_deplibs_check_method
14822 # Command to use when deplibs_check_method == file_magic.
14823 file_magic_cmd=$lt_file_magic_cmd
14825 # Flag that allows shared libraries with undefined symbols to be built.
14826 allow_undefined_flag=$lt_allow_undefined_flag
14828 # Flag that forces no undefined symbols.
14829 no_undefined_flag=$lt_no_undefined_flag
14831 # Commands used to finish a libtool library installation in a directory.
14832 finish_cmds=$lt_finish_cmds
14834 # Same as above, but a single script fragment to be evaled but not shown.
14835 finish_eval=$lt_finish_eval
14837 # Take the output of nm and produce a listing of raw symbols and C names.
14838 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14840 # Transform the output of nm in a proper C declaration
14841 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14843 # Transform the output of nm in a C name address pair
14844 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14846 # This is the shared library runtime path variable.
14847 runpath_var=$runpath_var
14849 # This is the shared library path variable.
14850 shlibpath_var=$shlibpath_var
14852 # Is shlibpath searched before the hard-coded library search path?
14853 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14855 # How to hardcode a shared library path into an executable.
14856 hardcode_action=$hardcode_action
14858 # Whether we should hardcode library paths into libraries.
14859 hardcode_into_libs=$hardcode_into_libs
14861 # Flag to hardcode \$libdir into a binary during linking.
14862 # This must work even if \$libdir does not exist.
14863 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14865 # If ld is used when linking, flag to hardcode \$libdir into
14866 # a binary during linking. This must work even if \$libdir does
14868 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14870 # Whether we need a single -rpath flag with a separated argument.
14871 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14873 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14874 # resulting binary.
14875 hardcode_direct=$hardcode_direct
14877 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14878 # resulting binary.
14879 hardcode_minus_L=$hardcode_minus_L
14881 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14882 # the resulting binary.
14883 hardcode_shlibpath_var=$hardcode_shlibpath_var
14885 # Set to yes if building a shared library automatically hardcodes DIR into the library
14886 # and all subsequent libraries and executables linked against it.
14887 hardcode_automatic=$hardcode_automatic
14889 # Variables whose values should be saved in libtool wrapper scripts and
14890 # restored at relink time.
14891 variables_saved_for_relink="$variables_saved_for_relink"
14893 # Whether libtool must link a program against all its dependency libraries.
14894 link_all_deplibs=$link_all_deplibs
14896 # Compile-time system search path for libraries
14897 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14899 # Run-time system search path for libraries
14900 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14902 # Fix the shell variable \$srcfile for the compiler.
14903 fix_srcfile_path="$fix_srcfile_path"
14905 # Set to yes if exported symbols are required.
14906 always_export_symbols=$always_export_symbols
14908 # The commands to list exported symbols.
14909 export_symbols_cmds=$lt_export_symbols_cmds
14911 # The commands to extract the exported symbol list from a shared archive.
14912 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14914 # Symbols that should not be listed in the preloaded symbols.
14915 exclude_expsyms=$lt_exclude_expsyms
14917 # Symbols that must always be exported.
14918 include_expsyms=$lt_include_expsyms
14920 # ### END LIBTOOL CONFIG
14927 cat <<\EOF >> "$cfgfile"
14929 # AIX sometimes has problems with the GCC collect2 program. For some
14930 # reason, if we set the COLLECT_NAMES environment variable, the problems
14931 # vanish in a puff of smoke.
14932 if test "X${COLLECT_NAMES+set}" != Xset; then
14934 export COLLECT_NAMES
14940 # We use sed instead of cat because bash on DJGPP gets confused if
14941 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14942 # text mode, it properly converts lines to CR/LF. This bash problem
14943 # is reportedly fixed, but why not run on old versions too?
14944 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14946 mv -f "$cfgfile" "$ofile" || \
14947 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14951 # If there is no Makefile yet, we rely on a make rule to execute
14952 # `config.status --recheck' to rerun these tests and create the
14953 # libtool script then.
14954 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14955 if test -f "$ltmain_in"; then
14956 test -f Makefile && make "$ltmain"
14962 ac_cpp='$CPP $CPPFLAGS'
14963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14970 # Check whether --with-tags or --without-tags was given.
14971 if test "${with_tags+set}" = set; then
14972 withval="$with_tags"
14973 tagnames="$withval"
14976 if test -f "$ltmain" && test -n "$tagnames"; then
14977 if test ! -f "${ofile}"; then
14978 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14979 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14982 if test -z "$LTCC"; then
14983 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14984 if test -z "$LTCC"; then
14985 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14986 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14989 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14993 # Extract list of available tagged configurations in $ofile.
14994 # Note that this assumes the entire list is on one line.
14995 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14998 for tagname in $tagnames; do
15000 # Check whether tagname contains only valid characters
15001 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15003 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15004 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15005 { (exit 1); exit 1; }; }
15009 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15011 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15012 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15013 { (exit 1); exit 1; }; }
15016 # Update the list of available tags.
15017 if test -n "$tagname"; then
15018 echo appending configuration tag "$tagname" to $ofile
15022 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15023 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15024 (test "X$CXX" != "Xg++"))) ; then
15026 ac_cpp='$CXXCPP $CPPFLAGS'
15027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15034 archive_cmds_need_lc_CXX=no
15035 allow_undefined_flag_CXX=
15036 always_export_symbols_CXX=no
15037 archive_expsym_cmds_CXX=
15038 export_dynamic_flag_spec_CXX=
15039 hardcode_direct_CXX=no
15040 hardcode_libdir_flag_spec_CXX=
15041 hardcode_libdir_flag_spec_ld_CXX=
15042 hardcode_libdir_separator_CXX=
15043 hardcode_minus_L_CXX=no
15044 hardcode_automatic_CXX=no
15046 module_expsym_cmds_CXX=
15047 link_all_deplibs_CXX=unknown
15048 old_archive_cmds_CXX=$old_archive_cmds
15049 no_undefined_flag_CXX=
15050 whole_archive_flag_spec_CXX=
15051 enable_shared_with_static_runtimes_CXX=no
15053 # Dependencies to place before and after the object being linked:
15054 predep_objects_CXX=
15055 postdep_objects_CXX=
15058 compiler_lib_search_path_CXX=
15060 # Source file extension for C++ test sources.
15063 # Object file extension for compiled C++ test sources.
15067 # Code to be used in simple compile tests
15068 lt_simple_compile_test_code="int some_variable = 0;\n"
15070 # Code to be used in simple link tests
15071 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15073 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15075 # If no C compiler was specified, use CC.
15078 # Allow CC to be a program name with arguments.
15082 # Allow CC to be a program name with arguments.
15087 lt_save_with_gnu_ld=$with_gnu_ld
15088 lt_save_path_LD=$lt_cv_path_LD
15089 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15090 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15092 unset lt_cv_prog_gnu_ld
15094 if test -n "${lt_cv_path_LDCXX+set}"; then
15095 lt_cv_path_LD=$lt_cv_path_LDCXX
15097 unset lt_cv_path_LD
15099 test -z "${LDCXX+set}" || LD=$LDCXX
15103 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15105 # We don't want -fno-exception wen compiling C++ code, so set the
15106 # no_builtin_flag separately
15107 if test "$GXX" = yes; then
15108 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15110 lt_prog_compiler_no_builtin_flag_CXX=
15113 if test "$GXX" = yes; then
15114 # Set up default GNU C++ configuration
15117 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15118 if test "${with_gnu_ld+set}" = set; then
15119 withval="$with_gnu_ld"
15120 test "$withval" = no || with_gnu_ld=yes
15125 if test "$GCC" = yes; then
15126 # Check if gcc -print-prog-name=ld gives a path.
15127 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15128 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15131 # gcc leaves a trailing carriage return which upsets mingw
15132 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15134 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15137 # Accept absolute paths.
15139 re_direlt='/[^/][^/]*/\.\./'
15140 # Canonicalize the pathname of ld
15141 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15142 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15143 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15145 test -z "$LD" && LD="$ac_prog"
15148 # If it fails, then pretend we aren't using GCC.
15152 # If it is relative, then search for the first ld in PATH.
15153 with_gnu_ld=unknown
15156 elif test "$with_gnu_ld" = yes; then
15157 echo "$as_me:$LINENO: checking for GNU ld" >&5
15158 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15160 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15161 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15163 if test "${lt_cv_path_LD+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 if test -z "$LD"; then
15167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15168 for ac_dir in $PATH; do
15170 test -z "$ac_dir" && ac_dir=.
15171 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15172 lt_cv_path_LD="$ac_dir/$ac_prog"
15173 # Check to see if the program is GNU ld. I'd rather use --version,
15174 # but apparently some GNU ld's only accept -v.
15175 # Break only if it was the GNU/non-GNU ld that we prefer.
15176 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15177 *GNU* | *'with BFD'*)
15178 test "$with_gnu_ld" != no && break
15181 test "$with_gnu_ld" != yes && break
15188 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15192 LD="$lt_cv_path_LD"
15193 if test -n "$LD"; then
15194 echo "$as_me:$LINENO: result: $LD" >&5
15195 echo "${ECHO_T}$LD" >&6
15197 echo "$as_me:$LINENO: result: no" >&5
15198 echo "${ECHO_T}no" >&6
15200 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15201 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15202 { (exit 1); exit 1; }; }
15203 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15204 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15205 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15208 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15209 case `$LD -v 2>&1 </dev/null` in
15210 *GNU* | *'with BFD'*)
15211 lt_cv_prog_gnu_ld=yes
15214 lt_cv_prog_gnu_ld=no
15218 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15219 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15220 with_gnu_ld=$lt_cv_prog_gnu_ld
15224 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15225 # archiving commands below assume that GNU ld is being used.
15226 if test "$with_gnu_ld" = yes; then
15227 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15228 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'
15230 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15231 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15233 # If archive_cmds runs LD, not CC, wlarc should be empty
15234 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15235 # investigate it a little bit more. (MM)
15238 # ancient GNU ld didn't support --whole-archive et. al.
15239 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15240 grep 'no-whole-archive' > /dev/null; then
15241 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15243 whole_archive_flag_spec_CXX=
15249 # A generic and very simple default shared library creation
15250 # command for GNU C++ for the case where it uses the native
15251 # linker, instead of GNU ld. If possible, this setting should
15252 # overridden to take advantage of the native linker features on
15253 # the platform it is being used on.
15254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15257 # Commands to make compiler produce verbose output that lists
15258 # what "hidden" libraries, object files and flags are used when
15259 # linking a shared library.
15260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15268 # PORTME: fill in a description of your system's C++ link characteristics
15269 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15270 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15274 # FIXME: insert proper C++ library support
15278 if test "$host_cpu" = ia64; then
15279 # On IA64, the linker does run time linking by default, so we don't
15280 # have to do anything special.
15281 aix_use_runtimelinking=no
15282 exp_sym_flag='-Bexport'
15285 aix_use_runtimelinking=no
15287 # Test if we are trying to use run time linking or normal
15288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15289 # need to do runtime linking.
15290 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15291 for ld_flag in $LDFLAGS; do
15294 aix_use_runtimelinking=yes
15301 exp_sym_flag='-bexport'
15302 no_entry_flag='-bnoentry'
15305 # When large executables or shared objects are built, AIX ld can
15306 # have problems creating the table of contents. If linking a library
15307 # or program results in "error TOC overflow" add -mminimal-toc to
15308 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15309 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15311 archive_cmds_CXX=''
15312 hardcode_direct_CXX=yes
15313 hardcode_libdir_separator_CXX=':'
15314 link_all_deplibs_CXX=yes
15316 if test "$GXX" = yes; then
15317 case $host_os in aix4.012|aix4.012.*)
15318 # We only want to do this on AIX 4.2 and lower, the check
15319 # below for broken collect2 doesn't work under 4.3+
15320 collect2name=`${CC} -print-prog-name=collect2`
15321 if test -f "$collect2name" && \
15322 strings "$collect2name" | grep resolve_lib_name >/dev/null
15324 # We have reworked collect2
15325 hardcode_direct_CXX=yes
15327 # We have old collect2
15328 hardcode_direct_CXX=unsupported
15329 # It fails to find uninstalled libraries when the uninstalled
15330 # path is not listed in the libpath. Setting hardcode_minus_L
15331 # to unsupported forces relinking
15332 hardcode_minus_L_CXX=yes
15333 hardcode_libdir_flag_spec_CXX='-L$libdir'
15334 hardcode_libdir_separator_CXX=
15337 shared_flag='-shared'
15340 if test "$host_cpu" = ia64; then
15341 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15342 # chokes on -Wl,-G. The following line is correct:
15345 if test "$aix_use_runtimelinking" = yes; then
15346 shared_flag='${wl}-G'
15348 shared_flag='${wl}-bM:SRE'
15353 # It seems that -bexpall does not export symbols beginning with
15354 # underscore (_), so it is better to generate a list of symbols to export.
15355 always_export_symbols_CXX=yes
15356 if test "$aix_use_runtimelinking" = yes; then
15357 # Warning - without using the other runtime loading flags (-brtl),
15358 # -berok will link without error, but may produce a broken library.
15359 allow_undefined_flag_CXX='-berok'
15360 # Determine the default libpath from the value encoded in an empty executable.
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378 (eval $ac_link) 2>conftest.er1
15380 grep -v '^ *+' conftest.er1 >conftest.err
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
15385 { ac_try='test -z "$ac_cxx_werror_flag"
15386 || test ! -s conftest.err'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest$ac_exeext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15401 # Check for a 64-bit object if we didn't find anything.
15402 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; }
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15409 rm -f conftest.err conftest.$ac_objext \
15410 conftest$ac_exeext conftest.$ac_ext
15411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15413 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15415 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"
15417 if test "$host_cpu" = ia64; then
15418 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15419 allow_undefined_flag_CXX="-z nodefs"
15420 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"
15422 # Determine the default libpath from the value encoded in an empty executable.
15423 cat >conftest.$ac_ext <<_ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15440 (eval $ac_link) 2>conftest.er1
15442 grep -v '^ *+' conftest.er1 >conftest.err
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -z "$ac_cxx_werror_flag"
15448 || test ! -s conftest.err'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } &&
15454 { ac_try='test -s conftest$ac_exeext'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15463 # Check for a 64-bit object if we didn't find anything.
15464 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; }
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15471 rm -f conftest.err conftest.$ac_objext \
15472 conftest$ac_exeext conftest.$ac_ext
15473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15475 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15476 # Warning - without using the other run time loading flags,
15477 # -berok will link without error, but may produce a broken library.
15478 no_undefined_flag_CXX=' ${wl}-bernotok'
15479 allow_undefined_flag_CXX=' ${wl}-berok'
15480 # -bexpall does not export symbols beginning with underscore (_)
15481 always_export_symbols_CXX=yes
15482 # Exported symbols can be pulled into shared objects from archives
15483 whole_archive_flag_spec_CXX=' '
15484 archive_cmds_need_lc_CXX=yes
15485 # This is similar to how AIX traditionally builds it's shared libraries.
15486 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'
15491 case $cc_basename in
15493 # FIXME: insert proper C++ library support
15500 cygwin* | mingw* | pw32*)
15501 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15502 # as there is no search path for DLLs.
15503 hardcode_libdir_flag_spec_CXX='-L$libdir'
15504 allow_undefined_flag_CXX=unsupported
15505 always_export_symbols_CXX=no
15506 enable_shared_with_static_runtimes_CXX=yes
15508 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15509 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'
15510 # If the export-symbols file already is a .def file (1st line
15511 # is EXPORTS), use it as is; otherwise, prepend...
15512 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15513 cp $export_symbols $output_objdir/$soname.def;
15515 echo EXPORTS > $output_objdir/$soname.def;
15516 cat $export_symbols >> $output_objdir/$soname.def;
15518 $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'
15523 darwin* | rhapsody*)
15525 rhapsody* | darwin1.[012])
15526 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15529 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15530 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15532 case ${MACOSX_DEPLOYMENT_TARGET} in
15534 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15537 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15543 archive_cmds_need_lc_CXX=no
15544 hardcode_direct_CXX=no
15545 hardcode_automatic_CXX=yes
15546 hardcode_shlibpath_var_CXX=unsupported
15547 whole_archive_flag_spec_CXX=''
15548 link_all_deplibs_CXX=yes
15550 if test "$GXX" = yes ; then
15551 lt_int_apple_cc_single_mod=no
15552 output_verbose_link_cmd='echo'
15553 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15554 lt_int_apple_cc_single_mod=yes
15556 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15557 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15559 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'
15561 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15563 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15564 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}'
15566 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}'
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}'
15570 case "$cc_basename" in
15572 output_verbose_link_cmd='echo'
15573 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'
15574 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15575 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15576 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}'
15577 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}'
15587 case $cc_basename in
15589 # FIXME: insert proper C++ library support
15593 # Green Hills C++ Compiler
15594 # FIXME: insert proper C++ library support
15598 # FIXME: insert proper C++ library support
15604 # C++ shared libraries reported to be fairly broken before switch to ELF
15608 archive_cmds_need_lc_CXX=no
15610 freebsd* | kfreebsd*-gnu)
15611 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15618 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15619 hardcode_libdir_separator_CXX=:
15620 export_dynamic_flag_spec_CXX='${wl}-E'
15621 hardcode_direct_CXX=yes
15622 hardcode_minus_L_CXX=yes # Not in the search PATH,
15623 # but as the default
15624 # location of the library.
15626 case $cc_basename in
15628 # FIXME: insert proper C++ library support
15632 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'
15633 # Commands to make compiler produce verbose output that lists
15634 # what "hidden" libraries, object files and flags are used when
15635 # linking a shared library.
15637 # There doesn't appear to be a way to prevent this compiler from
15638 # explicitly linking system object files so we need to strip them
15639 # from the output so that they don't get included in the library
15641 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'
15644 if test "$GXX" = yes; then
15645 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'
15647 # FIXME: insert proper C++ library support
15654 if test $with_gnu_ld = no; then
15655 case "$host_cpu" in
15657 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15658 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15659 hardcode_libdir_separator_CXX=:
15662 hardcode_libdir_flag_spec_CXX='-L$libdir'
15665 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15666 hardcode_libdir_separator_CXX=:
15667 export_dynamic_flag_spec_CXX='${wl}-E'
15671 case "$host_cpu" in
15673 hardcode_direct_CXX=no
15674 hardcode_shlibpath_var_CXX=no
15677 hardcode_direct_CXX=no
15678 hardcode_shlibpath_var_CXX=no
15679 hardcode_minus_L_CXX=yes # Not in the search PATH,
15680 # but as the default
15681 # location of the library.
15684 hardcode_direct_CXX=yes
15685 hardcode_minus_L_CXX=yes # Not in the search PATH,
15686 # but as the default
15687 # location of the library.
15691 case $cc_basename in
15693 # FIXME: insert proper C++ library support
15697 case "$host_cpu" in
15699 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15702 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15705 # Commands to make compiler produce verbose output that lists
15706 # what "hidden" libraries, object files and flags are used when
15707 # linking a shared library.
15709 # There doesn't appear to be a way to prevent this compiler from
15710 # explicitly linking system object files so we need to strip them
15711 # from the output so that they don't get included in the library
15713 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'
15716 if test "$GXX" = yes; then
15717 if test $with_gnu_ld = no; then
15718 case "$host_cpu" in
15720 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15723 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'
15728 # FIXME: insert proper C++ library support
15735 case $cc_basename in
15738 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'
15740 # Archives containing C++ object files must be created using
15741 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15742 # necessary to make sure instantiated templates are included
15744 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15747 if test "$GXX" = yes; then
15748 if test "$with_gnu_ld" = no; then
15749 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'
15751 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'
15754 link_all_deplibs_CXX=yes
15757 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15758 hardcode_libdir_separator_CXX=:
15761 case $cc_basename in
15763 # Kuck and Associates, Inc. (KAI) C++ Compiler
15765 # KCC will only create a shared library if the output file
15766 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15767 # to its proper name (with version) after linking.
15768 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'
15769 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'
15770 # Commands to make compiler produce verbose output that lists
15771 # what "hidden" libraries, object files and flags are used when
15772 # linking a shared library.
15774 # There doesn't appear to be a way to prevent this compiler from
15775 # explicitly linking system object files so we need to strip them
15776 # from the output so that they don't get included in the library
15778 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'
15780 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15781 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15783 # Archives containing C++ object files must be created using
15784 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15785 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15790 # version 8.0 and above of icpc choke on multiply defined symbols
15791 # if we add $predep_objects and $postdep_objects, however 7.1 and
15792 # earlier do not add the objects themselves.
15793 case `$CC -V 2>&1` in
15795 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796 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'
15798 *) # Version 8.0 or newer
15799 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15800 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15803 archive_cmds_need_lc_CXX=no
15804 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15806 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15811 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'
15813 runpath_var=LD_RUN_PATH
15814 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15815 hardcode_libdir_separator_CXX=:
15817 # Commands to make compiler produce verbose output that lists
15818 # what "hidden" libraries, object files and flags are used when
15819 # linking a shared library.
15821 # There doesn't appear to be a way to prevent this compiler from
15822 # explicitly linking system object files so we need to strip them
15823 # from the output so that they don't get included in the library
15825 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'
15830 # FIXME: insert proper C++ library support
15834 # FIXME: insert proper C++ library support
15838 case $cc_basename in
15840 # FIXME: insert proper C++ library support
15844 # FIXME: insert proper C++ library support
15850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15851 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15853 hardcode_libdir_flag_spec_CXX='-R$libdir'
15854 hardcode_direct_CXX=yes
15855 hardcode_shlibpath_var_CXX=no
15857 # Workaround some broken pre-1.5 toolchains
15858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15861 # C++ shared libraries are fairly broken
15865 hardcode_direct_CXX=yes
15866 hardcode_shlibpath_var_CXX=no
15867 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15868 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15869 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15870 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15871 export_dynamic_flag_spec_CXX='${wl}-E'
15872 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15874 output_verbose_link_cmd='echo'
15877 case $cc_basename in
15879 # Kuck and Associates, Inc. (KAI) C++ Compiler
15881 # KCC will only create a shared library if the output file
15882 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15883 # to its proper name (with version) after linking.
15884 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'
15886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15887 hardcode_libdir_separator_CXX=:
15889 # Archives containing C++ object files must be created using
15890 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15891 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15895 # Rational C++ 2.4.1
15896 # FIXME: insert proper C++ library support
15900 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15901 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'
15903 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15904 hardcode_libdir_separator_CXX=:
15906 # Commands to make compiler produce verbose output that lists
15907 # what "hidden" libraries, object files and flags are used when
15908 # linking a shared library.
15910 # There doesn't appear to be a way to prevent this compiler from
15911 # explicitly linking system object files so we need to strip them
15912 # from the output so that they don't get included in the library
15914 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'
15917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15918 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15919 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'
15921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15922 hardcode_libdir_separator_CXX=:
15924 # Commands to make compiler produce verbose output that lists
15925 # what "hidden" libraries, object files and flags are used when
15926 # linking a shared library.
15927 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15930 # FIXME: insert proper C++ library support
15937 case $cc_basename in
15939 # Kuck and Associates, Inc. (KAI) C++ Compiler
15941 # KCC will only create a shared library if the output file
15942 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15943 # to its proper name (with version) after linking.
15944 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'
15946 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15947 hardcode_libdir_separator_CXX=:
15949 # Archives containing C++ object files must be created using
15950 # the KAI C++ compiler.
15951 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15954 # Rational C++ 2.4.1
15955 # FIXME: insert proper C++ library support
15959 allow_undefined_flag_CXX=' -expect_unresolved \*'
15960 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'
15961 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15962 echo "-hidden">> $lib.exp~
15963 $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~
15966 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15967 hardcode_libdir_separator_CXX=:
15969 # Commands to make compiler produce verbose output that lists
15970 # what "hidden" libraries, object files and flags are used when
15971 # linking a shared library.
15973 # There doesn't appear to be a way to prevent this compiler from
15974 # explicitly linking system object files so we need to strip them
15975 # from the output so that they don't get included in the library
15977 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'
15980 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15981 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15982 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'
15984 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15985 hardcode_libdir_separator_CXX=:
15987 # Commands to make compiler produce verbose output that lists
15988 # what "hidden" libraries, object files and flags are used when
15989 # linking a shared library.
15990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15993 # FIXME: insert proper C++ library support
16000 # FIXME: insert proper C++ library support
16004 archive_cmds_need_lc_CXX=no
16005 case $cc_basename in
16007 # FIXME: insert proper C++ library support
16011 # FIXME: insert proper C++ library support
16017 case $cc_basename in
16020 # FIXME: insert proper C++ library support
16025 # FIXME: insert proper C++ library support
16029 # FIXME: insert proper C++ library support
16035 case $cc_basename in
16037 # Sun C++ 4.2, 5.x and Centerline C++
16038 no_undefined_flag_CXX=' -zdefs'
16039 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16040 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16041 $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'
16043 hardcode_libdir_flag_spec_CXX='-R$libdir'
16044 hardcode_shlibpath_var_CXX=no
16046 solaris2.0-5 | solaris2.0-5.*) ;;
16048 # The C++ compiler is used as linker so we must use $wl
16049 # flag to pass the commands to the underlying system
16051 # Supported since Solaris 2.6 (maybe 2.5.1?)
16052 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16055 link_all_deplibs_CXX=yes
16057 # Commands to make compiler produce verbose output that lists
16058 # what "hidden" libraries, object files and flags are used when
16059 # linking a shared library.
16061 # There doesn't appear to be a way to prevent this compiler from
16062 # explicitly linking system object files so we need to strip them
16063 # from the output so that they don't get included in the library
16065 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'
16067 # Archives containing C++ object files must be created using
16068 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16069 # necessary to make sure instantiated templates are included
16071 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16074 # Green Hills C++ Compiler
16075 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16077 # The C++ compiler must be used to create the archive.
16078 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16081 # GNU C++ compiler with Solaris linker
16082 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16083 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16084 if $CC --version | grep -v '^2\.7' > /dev/null; then
16085 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16086 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16087 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16089 # Commands to make compiler produce verbose output that lists
16090 # what "hidden" libraries, object files and flags are used when
16091 # linking a shared library.
16092 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16094 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16096 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16097 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16098 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16100 # Commands to make compiler produce verbose output that lists
16101 # what "hidden" libraries, object files and flags are used when
16102 # linking a shared library.
16103 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16106 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16111 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16112 archive_cmds_need_lc_CXX=no
16115 case $cc_basename in
16117 # NonStop-UX NCC 3.20
16118 # FIXME: insert proper C++ library support
16122 # FIXME: insert proper C++ library support
16128 # FIXME: insert proper C++ library support
16132 # FIXME: insert proper C++ library support
16136 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16137 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16138 test "$ld_shlibs_CXX" = no && can_build_shared=no
16144 cat > conftest.$ac_ext <<EOF
16148 Foo (void) { a = 0; }
16154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155 (eval $ac_compile) 2>&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; then
16159 # Parse the compiler output and extract the necessary
16160 # objects, libraries and library flags.
16162 # Sentinel used to keep track of whether or not we are before
16163 # the conftest object file.
16164 pre_test_object_deps_done=no
16166 # The `*' in the case matches for architectures that use `case' in
16167 # $output_verbose_cmd can trigger glob expansion during the loop
16168 # eval without this substitution.
16169 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16171 for p in `eval $output_verbose_link_cmd`; do
16175 # Some compilers place space between "-{L,R}" and the path.
16176 # Remove the space.
16177 if test $p = "-L" \
16178 || test $p = "-R"; then
16185 if test "$pre_test_object_deps_done" = no; then
16188 # Internal compiler library paths should come after those
16189 # provided the user. The postdeps already come after the
16190 # user supplied libs so there is no need to process them.
16191 if test -z "$compiler_lib_search_path_CXX"; then
16192 compiler_lib_search_path_CXX="${prev}${p}"
16194 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16197 # The "-l" case would never come before the object being
16198 # linked, so don't bother handling this case.
16201 if test -z "$postdeps_CXX"; then
16202 postdeps_CXX="${prev}${p}"
16204 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16210 # This assumes that the test object file only shows up
16211 # once in the compiler output.
16212 if test "$p" = "conftest.$objext"; then
16213 pre_test_object_deps_done=yes
16217 if test "$pre_test_object_deps_done" = no; then
16218 if test -z "$predep_objects_CXX"; then
16219 predep_objects_CXX="$p"
16221 predep_objects_CXX="$predep_objects_CXX $p"
16224 if test -z "$postdep_objects_CXX"; then
16225 postdep_objects_CXX="$p"
16227 postdep_objects_CXX="$postdep_objects_CXX $p"
16232 *) ;; # Ignore the rest.
16240 echo "libtool.m4: error: problem compiling CXX test program"
16243 $rm -f confest.$objext
16245 case " $postdeps_CXX " in
16246 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16249 lt_prog_compiler_wl_CXX=
16250 lt_prog_compiler_pic_CXX=
16251 lt_prog_compiler_static_CXX=
16253 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16254 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16256 # C++ specific cases for pic, static, wl, etc.
16257 if test "$GXX" = yes; then
16258 lt_prog_compiler_wl_CXX='-Wl,'
16259 lt_prog_compiler_static_CXX='-static'
16263 # All AIX code is PIC.
16264 if test "$host_cpu" = ia64; then
16265 # AIX 5 now supports IA64 processor
16266 lt_prog_compiler_static_CXX='-Bstatic'
16270 # FIXME: we need at least 68020 code to build shared libraries, but
16271 # adding the `-m68020' flag to GCC prevents building anything better,
16273 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16275 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16276 # PIC is the default for these OSes.
16278 mingw* | os2* | pw32*)
16279 # This hack is so that the source file can tell whether it is being
16280 # built for inclusion in a dll (and should export symbols for example).
16281 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16283 darwin* | rhapsody*)
16284 # PIC is the default on this platform
16285 # Common symbols not allowed in MH_DYLIB files
16286 lt_prog_compiler_pic_CXX='-fno-common'
16289 # DJGPP does not support shared libraries at all
16290 lt_prog_compiler_pic_CXX=
16293 if test -d /usr/nec; then
16294 lt_prog_compiler_pic_CXX=-Kconform_pic
16298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16299 # not for PA HP-UX.
16300 case "$host_cpu" in
16304 lt_prog_compiler_pic_CXX='-fPIC'
16309 lt_prog_compiler_pic_CXX='-fPIC'
16315 # All AIX code is PIC.
16316 if test "$host_cpu" = ia64; then
16317 # AIX 5 now supports IA64 processor
16318 lt_prog_compiler_static_CXX='-Bstatic'
16320 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16324 case $cc_basename in
16326 # Green Hills C++ Compiler
16327 # _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"
16332 # PIC is the default on this platform
16333 # Common symbols not allowed in MH_DYLIB files
16334 case "$cc_basename" in
16336 lt_prog_compiler_pic_CXX='-qnocommon'
16337 lt_prog_compiler_wl_CXX='-Wl,'
16342 case $cc_basename in
16344 lt_prog_compiler_pic_CXX='-KPIC'
16347 # Green Hills C++ Compiler
16348 lt_prog_compiler_pic_CXX='-pic'
16354 freebsd* | kfreebsd*-gnu)
16355 # FreeBSD uses GNU C++
16357 hpux9* | hpux10* | hpux11*)
16358 case $cc_basename in
16360 lt_prog_compiler_wl_CXX='-Wl,'
16361 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16362 if test "$host_cpu" != ia64; then
16363 lt_prog_compiler_pic_CXX='+Z'
16367 lt_prog_compiler_wl_CXX='-Wl,'
16368 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16369 case "$host_cpu" in
16374 lt_prog_compiler_pic_CXX='+Z'
16382 irix5* | irix6* | nonstopux*)
16383 case $cc_basename in
16385 lt_prog_compiler_wl_CXX='-Wl,'
16386 lt_prog_compiler_static_CXX='-non_shared'
16387 # CC pic flag -KPIC is the default.
16394 case $cc_basename in
16397 lt_prog_compiler_wl_CXX='--backend -Wl,'
16398 lt_prog_compiler_pic_CXX='-fPIC'
16402 lt_prog_compiler_wl_CXX='-Wl,'
16403 lt_prog_compiler_pic_CXX='-KPIC'
16404 lt_prog_compiler_static_CXX='-static'
16408 # Make sure the PIC flag is empty. It appears that all Alpha
16409 # Linux and Compaq Tru64 Unix objects are PIC.
16410 lt_prog_compiler_pic_CXX=
16411 lt_prog_compiler_static_CXX='-non_shared'
16422 case $cc_basename in
16424 lt_prog_compiler_pic_CXX='-W c,exportall'
16432 osf3* | osf4* | osf5*)
16433 case $cc_basename in
16435 lt_prog_compiler_wl_CXX='--backend -Wl,'
16438 # Rational C++ 2.4.1
16439 lt_prog_compiler_pic_CXX='-pic'
16442 # Digital/Compaq C++
16443 lt_prog_compiler_wl_CXX='-Wl,'
16444 # Make sure the PIC flag is empty. It appears that all Alpha
16445 # Linux and Compaq Tru64 Unix objects are PIC.
16446 lt_prog_compiler_pic_CXX=
16447 lt_prog_compiler_static_CXX='-non_shared'
16456 case $cc_basename in
16458 lt_prog_compiler_pic_CXX='-fPIC'
16465 case $cc_basename in
16467 # Sun C++ 4.2, 5.x and Centerline C++
16468 lt_prog_compiler_pic_CXX='-KPIC'
16469 lt_prog_compiler_static_CXX='-Bstatic'
16470 lt_prog_compiler_wl_CXX='-Qoption ld '
16473 # Green Hills C++ Compiler
16474 lt_prog_compiler_pic_CXX='-PIC'
16481 case $cc_basename in
16484 lt_prog_compiler_pic_CXX='-pic'
16485 lt_prog_compiler_static_CXX='-Bstatic'
16489 lt_prog_compiler_pic_CXX='-pic'
16496 case $cc_basename in
16498 # NonStop-UX NCC 3.20
16499 lt_prog_compiler_pic_CXX='-KPIC'
16510 lt_prog_compiler_can_build_shared_CXX=no
16515 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16516 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16519 # Check to make sure the PIC flag actually works.
16521 if test -n "$lt_prog_compiler_pic_CXX"; then
16523 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16524 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16525 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 lt_prog_compiler_pic_works_CXX=no
16529 ac_outfile=conftest.$ac_objext
16530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16531 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16532 # Insert the option either (1) after the last *FLAGS variable, or
16533 # (2) before a word containing "conftest.", or (3) at the end.
16534 # Note that $ac_compile itself does not contain backslashes and begins
16535 # with a dollar sign (not a hyphen), so the echo should work correctly.
16536 # The option is referenced via a variable to avoid confusing sed.
16537 lt_compile=`echo "$ac_compile" | $SED \
16538 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16540 -e 's:$: $lt_compiler_flag:'`
16541 (eval echo "\"\$as_me:16540: $lt_compile\"" >&5)
16542 (eval "$lt_compile" 2>conftest.err)
16544 cat conftest.err >&5
16545 echo "$as_me:16544: \$? = $ac_status" >&5
16546 if (exit $ac_status) && test -s "$ac_outfile"; then
16547 # The compiler can only warn and ignore the option if not recognized
16548 # So say no if there are warnings
16549 if test ! -s conftest.err; then
16550 lt_prog_compiler_pic_works_CXX=yes
16556 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16557 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16559 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16560 case $lt_prog_compiler_pic_CXX in
16562 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16565 lt_prog_compiler_pic_CXX=
16566 lt_prog_compiler_can_build_shared_CXX=no
16571 # For platforms which do not support PIC, -DPIC is meaningless:
16573 lt_prog_compiler_pic_CXX=
16576 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16580 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16581 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16582 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 lt_cv_prog_compiler_c_o_CXX=no
16586 $rm -r conftest 2>/dev/null
16590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16592 lt_compiler_flag="-o out/conftest2.$ac_objext"
16593 # Insert the option either (1) after the last *FLAGS variable, or
16594 # (2) before a word containing "conftest.", or (3) at the end.
16595 # Note that $ac_compile itself does not contain backslashes and begins
16596 # with a dollar sign (not a hyphen), so the echo should work correctly.
16597 lt_compile=`echo "$ac_compile" | $SED \
16598 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16600 -e 's:$: $lt_compiler_flag:'`
16601 (eval echo "\"\$as_me:16600: $lt_compile\"" >&5)
16602 (eval "$lt_compile" 2>out/conftest.err)
16604 cat out/conftest.err >&5
16605 echo "$as_me:16604: \$? = $ac_status" >&5
16606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16608 # The compiler can only warn and ignore the option if not recognized
16609 # So say no if there are warnings
16610 if test ! -s out/conftest.err; then
16611 lt_cv_prog_compiler_c_o_CXX=yes
16616 # SGI C++ compiler will create directory out/ii_files/ for
16617 # template instantiation
16618 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16619 $rm out/* && rmdir out
16625 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16626 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16629 hard_links="nottested"
16630 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16631 # do not overwrite the value of need_locks provided by the user
16632 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16633 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16638 ln conftest.a conftest.b 2>&5 || hard_links=no
16639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16640 echo "$as_me:$LINENO: result: $hard_links" >&5
16641 echo "${ECHO_T}$hard_links" >&6
16642 if test "$hard_links" = no; then
16643 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16644 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16651 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16652 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16657 # If we're using GNU nm, then we don't want the "-C" option.
16658 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16659 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16660 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'
16662 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'
16666 export_symbols_cmds_CXX="$ltdll_cmds"
16669 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16672 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16676 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16677 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16678 test "$ld_shlibs_CXX" = no && can_build_shared=no
16680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16681 if test "$GCC" = yes; then
16682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16686 # Do we need to explicitly link libc?
16688 case "x$archive_cmds_need_lc_CXX" in
16690 # Assume -lc should be added
16691 archive_cmds_need_lc_CXX=yes
16693 if test "$enable_shared" = yes && test "$GCC" = yes; then
16694 case $archive_cmds_CXX in
16696 # FIXME: we may have to deal with multi-command sequences.
16699 # Test whether the compiler implicitly links with -lc since on some
16700 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16701 # to ld, don't add -lc before -lgcc.
16702 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16703 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16708 (eval $ac_compile) 2>&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } 2>conftest.err; then
16714 libobjs=conftest.$ac_objext
16716 wl=$lt_prog_compiler_wl_CXX
16722 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16723 allow_undefined_flag_CXX=
16724 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16725 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }
16730 archive_cmds_need_lc_CXX=no
16732 archive_cmds_need_lc_CXX=yes
16734 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16736 cat conftest.err 1>&5
16739 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16740 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16747 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16748 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16749 library_names_spec=
16750 libname_spec='lib$name'
16754 postuninstall_cmds=
16758 shlibpath_overrides_runpath=unknown
16760 dynamic_linker="$host_os ld.so"
16761 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16762 if test "$GCC" = yes; then
16763 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16764 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16765 # if the path contains ";" then we assume it to be the separator
16766 # otherwise default to the standard path separator (i.e. ":") - it is
16767 # assumed that no part of a normal pathname contains ";" but that should
16768 # okay in the real world where ";" in dirpaths is itself problematic.
16769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16771 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16776 need_lib_prefix=unknown
16777 hardcode_into_libs=no
16779 # when you set need_version to no, make sure it does not cause -set_version
16780 # flags to be left without arguments
16781 need_version=unknown
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16787 shlibpath_var=LIBPATH
16789 # AIX 3 has no versioning support, so we append a major version to the name.
16790 soname_spec='${libname}${release}${shared_ext}$major'
16797 hardcode_into_libs=yes
16798 if test "$host_cpu" = ia64; then
16799 # AIX 5 supports IA64
16800 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16801 shlibpath_var=LD_LIBRARY_PATH
16803 # With GCC up to 2.95.x, collect2 would create an import file
16804 # for dependence libraries. The import file would start with
16805 # the line `#! .'. This would cause the generated library to
16806 # depend on `.', always an invalid library. This was fixed in
16807 # development snapshots of GCC prior to 3.0.
16809 aix4 | aix4.[01] | aix4.[01].*)
16810 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16812 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16815 can_build_shared=no
16819 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16820 # soname into executable. Probably we can add versioning support to
16821 # collect2, so additional links can be useful in future.
16822 if test "$aix_use_runtimelinking" = yes; then
16823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16824 # instead of lib<name>.a to let people know that these are not
16825 # typical AIX shared libraries.
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828 # We preserve .a as extension for shared libraries through AIX4.2
16829 # and later when we are not doing run time linking.
16830 library_names_spec='${libname}${release}.a $libname.a'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16833 shlibpath_var=LIBPATH
16838 library_names_spec='$libname.ixlibrary $libname.a'
16839 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16840 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'
16844 library_names_spec='${libname}${shared_ext}'
16845 dynamic_linker="$host_os ld.so"
16846 shlibpath_var=LIBRARY_PATH
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853 soname_spec='${libname}${release}${shared_ext}$major'
16854 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16855 shlibpath_var=LD_LIBRARY_PATH
16856 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16857 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16858 # the default ld.so.conf also contains /usr/contrib/lib and
16859 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16860 # libtool to hard-code these into programs
16863 cygwin* | mingw* | pw32*)
16864 version_type=windows
16869 case $GCC,$host_os in
16870 yes,cygwin* | yes,mingw* | yes,pw32*)
16871 library_names_spec='$libname.dll.a'
16872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16873 postinstall_cmds='base_file=`basename \${file}`~
16874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16875 dldir=$destdir/`dirname \$dlpath`~
16876 test -d \$dldir || mkdir -p \$dldir~
16877 $install_prog $dir/$dlname \$dldir/$dlname'
16878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16879 dlpath=$dir/\$dldll~
16881 shlibpath_overrides_runpath=yes
16885 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16887 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16890 # MinGW DLLs use traditional 'lib' prefix
16891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16893 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16894 # It is most probably a Windows format PATH printed by
16895 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16896 # path with ; separators, and with drive letters. We can handle the
16897 # drive letters (cygwin fileutils understands them), so leave them,
16898 # especially as we might pass files found there to a mingw objdump,
16899 # which wouldn't understand a cygwinified path. Ahh.
16900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16906 # pw32 DLLs use 'pw' prefix rather than 'lib'
16907 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16913 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16916 dynamic_linker='Win32 ld.exe'
16917 # FIXME: first we should search . and the directory the executable is in
16921 darwin* | rhapsody*)
16922 dynamic_linker="$host_os dyld"
16923 version_type=darwin
16926 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16927 soname_spec='${libname}${release}${major}$shared_ext'
16928 shlibpath_overrides_runpath=yes
16929 shlibpath_var=DYLD_LIBRARY_PATH
16930 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16931 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16932 if test "$GCC" = yes; then
16933 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"`
16935 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16945 soname_spec='${libname}${release}${shared_ext}$major'
16946 shlibpath_var=LD_LIBRARY_PATH
16957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16958 soname_spec='${libname}${release}${shared_ext}$major'
16959 shlibpath_var=LD_LIBRARY_PATH
16960 shlibpath_overrides_runpath=no
16961 hardcode_into_libs=yes
16962 dynamic_linker='GNU ld.so'
16966 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16967 version_type=freebsd-$objformat
16968 case $version_type in
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16979 shlibpath_var=LD_LIBRARY_PATH
16982 shlibpath_overrides_runpath=yes
16984 freebsd3.01* | freebsdelf3.01*)
16985 shlibpath_overrides_runpath=yes
16986 hardcode_into_libs=yes
16989 shlibpath_overrides_runpath=no
16990 hardcode_into_libs=yes
16999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17000 soname_spec='${libname}${release}${shared_ext}$major'
17001 shlibpath_var=LD_LIBRARY_PATH
17002 hardcode_into_libs=yes
17005 hpux9* | hpux10* | hpux11*)
17006 # Give a soname corresponding to the major version so that dld.sl refuses to
17007 # link against other versions.
17011 case "$host_cpu" in
17014 hardcode_into_libs=yes
17015 dynamic_linker="$host_os dld.so"
17016 shlibpath_var=LD_LIBRARY_PATH
17017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17019 soname_spec='${libname}${release}${shared_ext}$major'
17020 if test "X$HPUX_IA64_MODE" = X32; then
17021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17029 hardcode_into_libs=yes
17030 dynamic_linker="$host_os dld.sl"
17031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034 soname_spec='${libname}${release}${shared_ext}$major'
17035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17040 dynamic_linker="$host_os dld.sl"
17041 shlibpath_var=SHLIB_PATH
17042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044 soname_spec='${libname}${release}${shared_ext}$major'
17047 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17048 postinstall_cmds='chmod 555 $lib'
17051 irix5* | irix6* | nonstopux*)
17053 nonstopux*) version_type=nonstopux ;;
17055 if test "$lt_cv_prog_gnu_ld" = yes; then
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17066 irix5* | nonstopux*)
17067 libsuff= shlibsuff=
17070 case $LD in # libtool.m4 will add one of these switches to LD
17071 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17072 libsuff= shlibsuff= libmagic=32-bit;;
17073 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17074 libsuff=32 shlibsuff=N32 libmagic=N32;;
17075 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17076 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17077 *) libsuff= shlibsuff= libmagic=never-match;;
17081 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17082 shlibpath_overrides_runpath=no
17083 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17084 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17085 hardcode_into_libs=yes
17088 # No shared lib support for Linux oldld, aout, or coff.
17089 linux*oldld* | linux*aout* | linux*coff*)
17093 # This must be Linux ELF.
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 soname_spec='${libname}${release}${shared_ext}$major'
17100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17101 shlibpath_var=LD_LIBRARY_PATH
17102 shlibpath_overrides_runpath=no
17103 # This implies no fast_install, which is unacceptable.
17104 # Some rework will be needed to allow for fast_install
17105 # before this can be enabled.
17106 hardcode_into_libs=yes
17108 # Append ld.so.conf contents to the search path
17109 if test -f /etc/ld.so.conf; then
17110 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17111 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17114 # We used to test for /lib/ld.so.1 and disable shared libraries on
17115 # powerpc, because MkLinux only supported shared libraries with the
17116 # GNU dynamic linker. Since this was broken with cross compilers,
17117 # most powerpc-linux boxes support dynamic linking these days and
17118 # people can always --disable-shared, the test was removed, and we
17119 # assume the GNU/Linux dynamic linker is in use.
17120 dynamic_linker='GNU/Linux ld.so'
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 shlibpath_var=LD_LIBRARY_PATH
17130 shlibpath_overrides_runpath=no
17131 hardcode_into_libs=yes
17132 dynamic_linker='GNU ld.so'
17139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17142 dynamic_linker='NetBSD (a.out) ld.so'
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17145 soname_spec='${libname}${release}${shared_ext}$major'
17146 dynamic_linker='NetBSD ld.elf_so'
17148 shlibpath_var=LD_LIBRARY_PATH
17149 shlibpath_overrides_runpath=yes
17150 hardcode_into_libs=yes
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 shlibpath_var=LD_LIBRARY_PATH
17157 shlibpath_overrides_runpath=yes
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 shlibpath_var=LD_LIBRARY_PATH
17167 shlibpath_overrides_runpath=yes
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17176 shlibpath_var=LD_LIBRARY_PATH
17177 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17179 openbsd2.[89] | openbsd2.[89].*)
17180 shlibpath_overrides_runpath=no
17183 shlibpath_overrides_runpath=yes
17187 shlibpath_overrides_runpath=yes
17192 libname_spec='$name'
17195 library_names_spec='$libname${shared_ext} $libname.a'
17196 dynamic_linker='OS/2 ld.exe'
17197 shlibpath_var=LIBPATH
17200 osf3* | osf4* | osf5*)
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
17207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17208 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215 shlibpath_var=LD_LIBRARY_PATH
17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223 soname_spec='${libname}${release}${shared_ext}$major'
17224 shlibpath_var=LD_LIBRARY_PATH
17225 shlibpath_overrides_runpath=yes
17226 hardcode_into_libs=yes
17227 # ldd complains unless libraries are executable
17228 postinstall_cmds='chmod +x $lib'
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17234 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17235 shlibpath_var=LD_LIBRARY_PATH
17236 shlibpath_overrides_runpath=yes
17237 if test "$with_gnu_ld" = yes; then
17243 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 shlibpath_var=LD_LIBRARY_PATH
17248 case $host_vendor in
17250 shlibpath_overrides_runpath=no
17252 export_dynamic_flag_spec='${wl}-Blargedynsym'
17253 runpath_var=LD_RUN_PATH
17261 shlibpath_overrides_runpath=no
17262 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17268 if test -d /usr/nec ;then
17270 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17271 soname_spec='$libname${shared_ext}.$major'
17272 shlibpath_var=LD_LIBRARY_PATH
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17287 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17288 echo "${ECHO_T}$dynamic_linker" >&6
17289 test "$dynamic_linker" = no && can_build_shared=no
17291 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17292 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17293 hardcode_action_CXX=
17294 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17295 test -n "$runpath_var_CXX" || \
17296 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17298 # We can hardcode non-existant directories.
17299 if test "$hardcode_direct_CXX" != no &&
17300 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17301 # have to relink, otherwise we might link with an installed library
17302 # when we should be linking with a yet-to-be-installed one
17303 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17304 test "$hardcode_minus_L_CXX" != no; then
17305 # Linking always hardcodes the temporary library directory.
17306 hardcode_action_CXX=relink
17308 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17309 hardcode_action_CXX=immediate
17312 # We cannot hardcode anything, or else we can only hardcode existing
17314 hardcode_action_CXX=unsupported
17316 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17317 echo "${ECHO_T}$hardcode_action_CXX" >&6
17319 if test "$hardcode_action_CXX" = relink; then
17320 # Fast installation is not supported
17321 enable_fast_install=no
17322 elif test "$shlibpath_overrides_runpath" = yes ||
17323 test "$enable_shared" = no; then
17324 # Fast installation is not necessary
17325 enable_fast_install=needless
17330 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17331 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17332 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17333 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17334 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17335 echo "$as_me:$LINENO: result: yes" >&5
17336 echo "${ECHO_T}yes" >&6
17338 # FIXME - insert some real tests, host_os isn't really good enough
17341 if test -n "$STRIP" ; then
17342 striplib="$STRIP -x"
17343 echo "$as_me:$LINENO: result: yes" >&5
17344 echo "${ECHO_T}yes" >&6
17346 echo "$as_me:$LINENO: result: no" >&5
17347 echo "${ECHO_T}no" >&6
17351 echo "$as_me:$LINENO: result: no" >&5
17352 echo "${ECHO_T}no" >&6
17357 if test "x$enable_dlopen" != xyes; then
17358 enable_dlopen=unknown
17359 enable_dlopen_self=unknown
17360 enable_dlopen_self_static=unknown
17367 lt_cv_dlopen="load_add_on"
17369 lt_cv_dlopen_self=yes
17373 lt_cv_dlopen="LoadLibrary"
17378 lt_cv_dlopen="dlopen"
17383 # if libdl is installed we need to link against it
17384 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17385 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17386 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 ac_check_lib_save_LIBS=$LIBS
17391 cat >conftest.$ac_ext <<_ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17398 /* Override any gcc2 internal prototype to avoid an error. */
17402 /* We use char because int might match the return type of a gcc2
17403 builtin and then its argument prototype would still apply. */
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17415 (eval $ac_link) 2>conftest.er1
17417 grep -v '^ *+' conftest.er1 >conftest.err
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -z "$ac_cxx_werror_flag"
17423 || test ! -s conftest.err'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest$ac_exeext'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17435 ac_cv_lib_dl_dlopen=yes
17437 echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17440 ac_cv_lib_dl_dlopen=no
17442 rm -f conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
17444 LIBS=$ac_check_lib_save_LIBS
17446 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17447 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17448 if test $ac_cv_lib_dl_dlopen = yes; then
17449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17452 lt_cv_dlopen="dyld"
17454 lt_cv_dlopen_self=yes
17461 echo "$as_me:$LINENO: checking for shl_load" >&5
17462 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17463 if test "${ac_cv_func_shl_load+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 cat >conftest.$ac_ext <<_ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17472 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17474 #define shl_load innocuous_shl_load
17476 /* System header to define __stub macros and hopefully few prototypes,
17477 which can conflict with char shl_load (); below.
17478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17479 <limits.h> exists even on freestanding compilers. */
17482 # include <limits.h>
17484 # include <assert.h>
17489 /* Override any gcc2 internal prototype to avoid an error. */
17494 /* We use char because int might match the return type of a gcc2
17495 builtin and then its argument prototype would still apply. */
17497 /* The GNU C library defines this for functions which it implements
17498 to always fail with ENOSYS. Some functions are actually named
17499 something starting with __ and the normal name is an alias. */
17500 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17503 char (*f) () = shl_load;
17512 return f != shl_load;
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17519 (eval $ac_link) 2>conftest.er1
17521 grep -v '^ *+' conftest.er1 >conftest.err
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
17526 { ac_try='test -z "$ac_cxx_werror_flag"
17527 || test ! -s conftest.err'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; } &&
17533 { ac_try='test -s conftest$ac_exeext'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_func_shl_load=yes
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 ac_cv_func_shl_load=no
17546 rm -f conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17549 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17550 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17551 if test $ac_cv_func_shl_load = yes; then
17552 lt_cv_dlopen="shl_load"
17554 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17555 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17556 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 ac_check_lib_save_LIBS=$LIBS
17561 cat >conftest.$ac_ext <<_ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17568 /* Override any gcc2 internal prototype to avoid an error. */
17572 /* We use char because int might match the return type of a gcc2
17573 builtin and then its argument prototype would still apply. */
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585 (eval $ac_link) 2>conftest.er1
17587 grep -v '^ *+' conftest.er1 >conftest.err
17589 cat conftest.err >&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -z "$ac_cxx_werror_flag"
17593 || test ! -s conftest.err'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; } &&
17599 { ac_try='test -s conftest$ac_exeext'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 ac_cv_lib_dld_shl_load=yes
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17610 ac_cv_lib_dld_shl_load=no
17612 rm -f conftest.err conftest.$ac_objext \
17613 conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17616 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17617 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17618 if test $ac_cv_lib_dld_shl_load = yes; then
17619 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17621 echo "$as_me:$LINENO: checking for dlopen" >&5
17622 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17623 if test "${ac_cv_func_dlopen+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 cat >conftest.$ac_ext <<_ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17632 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17634 #define dlopen innocuous_dlopen
17636 /* System header to define __stub macros and hopefully few prototypes,
17637 which can conflict with char dlopen (); below.
17638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17639 <limits.h> exists even on freestanding compilers. */
17642 # include <limits.h>
17644 # include <assert.h>
17649 /* Override any gcc2 internal prototype to avoid an error. */
17654 /* We use char because int might match the return type of a gcc2
17655 builtin and then its argument prototype would still apply. */
17657 /* The GNU C library defines this for functions which it implements
17658 to always fail with ENOSYS. Some functions are actually named
17659 something starting with __ and the normal name is an alias. */
17660 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17663 char (*f) () = dlopen;
17672 return f != dlopen;
17677 rm -f conftest.$ac_objext conftest$ac_exeext
17678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679 (eval $ac_link) 2>conftest.er1
17681 grep -v '^ *+' conftest.er1 >conftest.err
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
17686 { ac_try='test -z "$ac_cxx_werror_flag"
17687 || test ! -s conftest.err'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; } &&
17693 { ac_try='test -s conftest$ac_exeext'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; }; then
17699 ac_cv_func_dlopen=yes
17701 echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17704 ac_cv_func_dlopen=no
17706 rm -f conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17709 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17710 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17711 if test $ac_cv_func_dlopen = yes; then
17712 lt_cv_dlopen="dlopen"
17714 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17715 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 ac_check_lib_save_LIBS=$LIBS
17721 cat >conftest.$ac_ext <<_ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17728 /* Override any gcc2 internal prototype to avoid an error. */
17732 /* We use char because int might match the return type of a gcc2
17733 builtin and then its argument prototype would still apply. */
17743 rm -f conftest.$ac_objext conftest$ac_exeext
17744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17745 (eval $ac_link) 2>conftest.er1
17747 grep -v '^ *+' conftest.er1 >conftest.err
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -z "$ac_cxx_werror_flag"
17753 || test ! -s conftest.err'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; } &&
17759 { ac_try='test -s conftest$ac_exeext'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
17765 ac_cv_lib_dl_dlopen=yes
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 ac_cv_lib_dl_dlopen=no
17772 rm -f conftest.err conftest.$ac_objext \
17773 conftest$ac_exeext conftest.$ac_ext
17774 LIBS=$ac_check_lib_save_LIBS
17776 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17778 if test $ac_cv_lib_dl_dlopen = yes; then
17779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17781 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17782 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17783 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 ac_check_lib_save_LIBS=$LIBS
17787 LIBS="-lsvld $LIBS"
17788 cat >conftest.$ac_ext <<_ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17795 /* Override any gcc2 internal prototype to avoid an error. */
17799 /* We use char because int might match the return type of a gcc2
17800 builtin and then its argument prototype would still apply. */
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812 (eval $ac_link) 2>conftest.er1
17814 grep -v '^ *+' conftest.er1 >conftest.err
17816 cat conftest.err >&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } &&
17819 { ac_try='test -z "$ac_cxx_werror_flag"
17820 || test ! -s conftest.err'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest$ac_exeext'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; }; then
17832 ac_cv_lib_svld_dlopen=yes
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17837 ac_cv_lib_svld_dlopen=no
17839 rm -f conftest.err conftest.$ac_objext \
17840 conftest$ac_exeext conftest.$ac_ext
17841 LIBS=$ac_check_lib_save_LIBS
17843 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17844 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17845 if test $ac_cv_lib_svld_dlopen = yes; then
17846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17848 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17849 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17850 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 ac_check_lib_save_LIBS=$LIBS
17855 cat >conftest.$ac_ext <<_ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h. */
17862 /* Override any gcc2 internal prototype to avoid an error. */
17866 /* We use char because int might match the return type of a gcc2
17867 builtin and then its argument prototype would still apply. */
17877 rm -f conftest.$ac_objext conftest$ac_exeext
17878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17879 (eval $ac_link) 2>conftest.er1
17881 grep -v '^ *+' conftest.er1 >conftest.err
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 { ac_try='test -z "$ac_cxx_werror_flag"
17887 || test ! -s conftest.err'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; } &&
17893 { ac_try='test -s conftest$ac_exeext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 ac_cv_lib_dld_dld_link=yes
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 ac_cv_lib_dld_dld_link=no
17906 rm -f conftest.err conftest.$ac_objext \
17907 conftest$ac_exeext conftest.$ac_ext
17908 LIBS=$ac_check_lib_save_LIBS
17910 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17911 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17912 if test $ac_cv_lib_dld_dld_link = yes; then
17913 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17934 if test "x$lt_cv_dlopen" != xno; then
17940 case $lt_cv_dlopen in
17942 save_CPPFLAGS="$CPPFLAGS"
17943 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17945 save_LDFLAGS="$LDFLAGS"
17946 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17949 LIBS="$lt_cv_dlopen_libs $LIBS"
17951 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17952 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17953 if test "${lt_cv_dlopen_self+set}" = set; then
17954 echo $ECHO_N "(cached) $ECHO_C" >&6
17956 if test "$cross_compiling" = yes; then :
17957 lt_cv_dlopen_self=cross
17959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17960 lt_status=$lt_dlunknown
17961 cat > conftest.$ac_ext <<EOF
17962 #line 17961 "configure"
17963 #include "confdefs.h"
17972 # define LT_DLGLOBAL RTLD_GLOBAL
17975 # define LT_DLGLOBAL DL_GLOBAL
17977 # define LT_DLGLOBAL 0
17981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17982 find out it does not work in some platform. */
17983 #ifndef LT_DLLAZY_OR_NOW
17985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17988 # define LT_DLLAZY_OR_NOW DL_LAZY
17991 # define LT_DLLAZY_OR_NOW RTLD_NOW
17994 # define LT_DLLAZY_OR_NOW DL_NOW
17996 # define LT_DLLAZY_OR_NOW 0
18004 extern "C" void exit (int);
18007 void fnord() { int i=42;}
18010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18011 int status = $lt_dlunknown;
18015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18016 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18017 /* dlclose (self); */
18023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18024 (eval $ac_link) 2>&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18028 (./conftest; exit; ) 2>/dev/null
18030 case x$lt_status in
18031 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18032 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18033 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18036 # compilation failed
18037 lt_cv_dlopen_self=no
18044 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18045 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18047 if test "x$lt_cv_dlopen_self" = xyes; then
18048 LDFLAGS="$LDFLAGS $link_static_flag"
18049 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18050 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18051 if test "${lt_cv_dlopen_self_static+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 if test "$cross_compiling" = yes; then :
18055 lt_cv_dlopen_self_static=cross
18057 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18058 lt_status=$lt_dlunknown
18059 cat > conftest.$ac_ext <<EOF
18060 #line 18059 "configure"
18061 #include "confdefs.h"
18070 # define LT_DLGLOBAL RTLD_GLOBAL
18073 # define LT_DLGLOBAL DL_GLOBAL
18075 # define LT_DLGLOBAL 0
18079 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18080 find out it does not work in some platform. */
18081 #ifndef LT_DLLAZY_OR_NOW
18083 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18086 # define LT_DLLAZY_OR_NOW DL_LAZY
18089 # define LT_DLLAZY_OR_NOW RTLD_NOW
18092 # define LT_DLLAZY_OR_NOW DL_NOW
18094 # define LT_DLLAZY_OR_NOW 0
18102 extern "C" void exit (int);
18105 void fnord() { int i=42;}
18108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18109 int status = $lt_dlunknown;
18113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18114 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18115 /* dlclose (self); */
18121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18122 (eval $ac_link) 2>&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18126 (./conftest; exit; ) 2>/dev/null
18128 case x$lt_status in
18129 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18130 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18131 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18134 # compilation failed
18135 lt_cv_dlopen_self_static=no
18142 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18143 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18146 CPPFLAGS="$save_CPPFLAGS"
18147 LDFLAGS="$save_LDFLAGS"
18152 case $lt_cv_dlopen_self in
18153 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18154 *) enable_dlopen_self=unknown ;;
18157 case $lt_cv_dlopen_self_static in
18158 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18159 *) enable_dlopen_self_static=unknown ;;
18164 # The else clause should only fire when bootstrapping the
18165 # libtool distribution, otherwise you forgot to ship ltmain.sh
18166 # with your package, and you will get complaints that there are
18167 # no rules to generate ltmain.sh.
18168 if test -f "$ltmain"; then
18169 # See if we are running on zsh, and set the options which allow our commands through
18170 # without removal of \ escapes.
18171 if test -n "${ZSH_VERSION+set}" ; then
18172 setopt NO_GLOB_SUBST
18174 # Now quote all the things that may contain metacharacters while being
18175 # careful not to overquote the AC_SUBSTed values. We take copies of the
18176 # variables and quote the copies for generation of the libtool script.
18177 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18179 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18180 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18181 deplibs_check_method reload_flag reload_cmds need_locks \
18182 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18183 lt_cv_sys_global_symbol_to_c_name_address \
18184 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18185 old_postinstall_cmds old_postuninstall_cmds \
18189 lt_prog_compiler_wl_CXX \
18190 lt_prog_compiler_pic_CXX \
18191 lt_prog_compiler_static_CXX \
18192 lt_prog_compiler_no_builtin_flag_CXX \
18193 export_dynamic_flag_spec_CXX \
18194 thread_safe_flag_spec_CXX \
18195 whole_archive_flag_spec_CXX \
18196 enable_shared_with_static_runtimes_CXX \
18197 old_archive_cmds_CXX \
18198 old_archive_from_new_cmds_CXX \
18199 predep_objects_CXX \
18200 postdep_objects_CXX \
18203 compiler_lib_search_path_CXX \
18205 archive_expsym_cmds_CXX \
18206 postinstall_cmds_CXX \
18207 postuninstall_cmds_CXX \
18208 old_archive_from_expsyms_cmds_CXX \
18209 allow_undefined_flag_CXX \
18210 no_undefined_flag_CXX \
18211 export_symbols_cmds_CXX \
18212 hardcode_libdir_flag_spec_CXX \
18213 hardcode_libdir_flag_spec_ld_CXX \
18214 hardcode_libdir_separator_CXX \
18215 hardcode_automatic_CXX \
18217 module_expsym_cmds_CXX \
18218 lt_cv_prog_compiler_c_o_CXX \
18219 exclude_expsyms_CXX \
18220 include_expsyms_CXX; do
18223 old_archive_cmds_CXX | \
18224 old_archive_from_new_cmds_CXX | \
18225 archive_cmds_CXX | \
18226 archive_expsym_cmds_CXX | \
18227 module_cmds_CXX | \
18228 module_expsym_cmds_CXX | \
18229 old_archive_from_expsyms_cmds_CXX | \
18230 export_symbols_cmds_CXX | \
18231 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18232 postinstall_cmds | postuninstall_cmds | \
18233 old_postinstall_cmds | old_postuninstall_cmds | \
18234 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18235 # Double-quote double-evaled strings.
18236 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18245 *'\$0 --fallback-echo"')
18246 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18252 cat <<__EOF__ >> "$cfgfile"
18253 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18257 # Shell to use when invoking shell scripts.
18260 # Whether or not to build shared libraries.
18261 build_libtool_libs=$enable_shared
18263 # Whether or not to build static libraries.
18264 build_old_libs=$enable_static
18266 # Whether or not to add -lc for building shared libraries.
18267 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18269 # Whether or not to disallow shared libs when runtime libs are static
18270 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18272 # Whether or not to optimize for fast installation.
18273 fast_install=$enable_fast_install
18276 host_alias=$host_alias
18279 # An echo program that does not interpret backslashes.
18284 AR_FLAGS=$lt_AR_FLAGS
18289 # A language-specific compiler.
18290 CC=$lt_compiler_CXX
18292 # Is the compiler the GNU C compiler?
18298 # The linker used to build libraries.
18301 # Whether we need hard or soft links.
18304 # A BSD-compatible nm program.
18307 # A symbol stripping program
18310 # Used to examine libraries when file_magic_cmd begins "file"
18311 MAGIC_CMD=$MAGIC_CMD
18313 # Used on cygwin: DLL creation program.
18316 # Used on cygwin: object dumper.
18319 # Used on cygwin: assembler.
18322 # The name of the directory that contains temporary libtool files.
18325 # How to create reloadable object files.
18326 reload_flag=$lt_reload_flag
18327 reload_cmds=$lt_reload_cmds
18329 # How to pass a linker flag through the compiler.
18330 wl=$lt_lt_prog_compiler_wl_CXX
18332 # Object file suffix (normally "o").
18333 objext="$ac_objext"
18335 # Old archive suffix (normally "a").
18338 # Shared library suffix (normally ".so").
18339 shrext_cmds='$shrext_cmds'
18341 # Executable file suffix (normally "").
18344 # Additional compiler flags for building library objects.
18345 pic_flag=$lt_lt_prog_compiler_pic_CXX
18348 # What is the maximum length of a command?
18349 max_cmd_len=$lt_cv_sys_max_cmd_len
18351 # Does compiler simultaneously support -c and -o options?
18352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18354 # Must we lock files when doing compilation ?
18355 need_locks=$lt_need_locks
18357 # Do we need the lib prefix for modules?
18358 need_lib_prefix=$need_lib_prefix
18360 # Do we need a version for libraries?
18361 need_version=$need_version
18363 # Whether dlopen is supported.
18364 dlopen_support=$enable_dlopen
18366 # Whether dlopen of programs is supported.
18367 dlopen_self=$enable_dlopen_self
18369 # Whether dlopen of statically linked programs is supported.
18370 dlopen_self_static=$enable_dlopen_self_static
18372 # Compiler flag to prevent dynamic linking.
18373 link_static_flag=$lt_lt_prog_compiler_static_CXX
18375 # Compiler flag to turn off builtin functions.
18376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18378 # Compiler flag to allow reflexive dlopens.
18379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18381 # Compiler flag to generate shared objects directly from archives.
18382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18384 # Compiler flag to generate thread-safe objects.
18385 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18387 # Library versioning type.
18388 version_type=$version_type
18390 # Format of library name prefix.
18391 libname_spec=$lt_libname_spec
18393 # List of archive names. First name is the real one, the rest are links.
18394 # The last name is the one that the linker finds with -lNAME.
18395 library_names_spec=$lt_library_names_spec
18397 # The coded name of the library, if different from the real name.
18398 soname_spec=$lt_soname_spec
18400 # Commands used to build and install an old-style archive.
18402 old_archive_cmds=$lt_old_archive_cmds_CXX
18403 old_postinstall_cmds=$lt_old_postinstall_cmds
18404 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18406 # Create an old-style archive from a shared archive.
18407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18409 # Create a temporary old-style archive to link instead of a shared archive.
18410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18412 # Commands used to build and install a shared archive.
18413 archive_cmds=$lt_archive_cmds_CXX
18414 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18415 postinstall_cmds=$lt_postinstall_cmds
18416 postuninstall_cmds=$lt_postuninstall_cmds
18418 # Commands used to build a loadable module (assumed same as above if empty)
18419 module_cmds=$lt_module_cmds_CXX
18420 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18422 # Commands to strip libraries.
18423 old_striplib=$lt_old_striplib
18424 striplib=$lt_striplib
18426 # Dependencies to place before the objects being linked to create a
18428 predep_objects=$lt_predep_objects_CXX
18430 # Dependencies to place after the objects being linked to create a
18432 postdep_objects=$lt_postdep_objects_CXX
18434 # Dependencies to place before the objects being linked to create a
18436 predeps=$lt_predeps_CXX
18438 # Dependencies to place after the objects being linked to create a
18440 postdeps=$lt_postdeps_CXX
18442 # The library search path used internally by the compiler when linking
18443 # a shared library.
18444 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18446 # Method to check whether dependent libraries are shared objects.
18447 deplibs_check_method=$lt_deplibs_check_method
18449 # Command to use when deplibs_check_method == file_magic.
18450 file_magic_cmd=$lt_file_magic_cmd
18452 # Flag that allows shared libraries with undefined symbols to be built.
18453 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18455 # Flag that forces no undefined symbols.
18456 no_undefined_flag=$lt_no_undefined_flag_CXX
18458 # Commands used to finish a libtool library installation in a directory.
18459 finish_cmds=$lt_finish_cmds
18461 # Same as above, but a single script fragment to be evaled but not shown.
18462 finish_eval=$lt_finish_eval
18464 # Take the output of nm and produce a listing of raw symbols and C names.
18465 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18467 # Transform the output of nm in a proper C declaration
18468 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18470 # Transform the output of nm in a C name address pair
18471 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18473 # This is the shared library runtime path variable.
18474 runpath_var=$runpath_var
18476 # This is the shared library path variable.
18477 shlibpath_var=$shlibpath_var
18479 # Is shlibpath searched before the hard-coded library search path?
18480 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18482 # How to hardcode a shared library path into an executable.
18483 hardcode_action=$hardcode_action_CXX
18485 # Whether we should hardcode library paths into libraries.
18486 hardcode_into_libs=$hardcode_into_libs
18488 # Flag to hardcode \$libdir into a binary during linking.
18489 # This must work even if \$libdir does not exist.
18490 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18492 # If ld is used when linking, flag to hardcode \$libdir into
18493 # a binary during linking. This must work even if \$libdir does
18495 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18497 # Whether we need a single -rpath flag with a separated argument.
18498 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18500 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18501 # resulting binary.
18502 hardcode_direct=$hardcode_direct_CXX
18504 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18505 # resulting binary.
18506 hardcode_minus_L=$hardcode_minus_L_CXX
18508 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18509 # the resulting binary.
18510 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18512 # Set to yes if building a shared library automatically hardcodes DIR into the library
18513 # and all subsequent libraries and executables linked against it.
18514 hardcode_automatic=$hardcode_automatic_CXX
18516 # Variables whose values should be saved in libtool wrapper scripts and
18517 # restored at relink time.
18518 variables_saved_for_relink="$variables_saved_for_relink"
18520 # Whether libtool must link a program against all its dependency libraries.
18521 link_all_deplibs=$link_all_deplibs_CXX
18523 # Compile-time system search path for libraries
18524 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18526 # Run-time system search path for libraries
18527 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18529 # Fix the shell variable \$srcfile for the compiler.
18530 fix_srcfile_path="$fix_srcfile_path_CXX"
18532 # Set to yes if exported symbols are required.
18533 always_export_symbols=$always_export_symbols_CXX
18535 # The commands to list exported symbols.
18536 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18538 # The commands to extract the exported symbol list from a shared archive.
18539 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18541 # Symbols that should not be listed in the preloaded symbols.
18542 exclude_expsyms=$lt_exclude_expsyms_CXX
18544 # Symbols that must always be exported.
18545 include_expsyms=$lt_include_expsyms_CXX
18547 # ### END LIBTOOL TAG CONFIG: $tagname
18553 # If there is no Makefile yet, we rely on a make rule to execute
18554 # `config.status --recheck' to rerun these tests and create the
18555 # libtool script then.
18556 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18557 if test -f "$ltmain_in"; then
18558 test -f Makefile && make "$ltmain"
18564 ac_cpp='$CPP $CPPFLAGS'
18565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18573 with_gnu_ldcxx=$with_gnu_ld
18574 with_gnu_ld=$lt_save_with_gnu_ld
18575 lt_cv_path_LDCXX=$lt_cv_path_LD
18576 lt_cv_path_LD=$lt_save_path_LD
18577 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18578 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18586 if test -n "$F77" && test "X$F77" != "Xno"; then
18589 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18590 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18591 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18594 archive_cmds_need_lc_F77=no
18595 allow_undefined_flag_F77=
18596 always_export_symbols_F77=no
18597 archive_expsym_cmds_F77=
18598 export_dynamic_flag_spec_F77=
18599 hardcode_direct_F77=no
18600 hardcode_libdir_flag_spec_F77=
18601 hardcode_libdir_flag_spec_ld_F77=
18602 hardcode_libdir_separator_F77=
18603 hardcode_minus_L_F77=no
18604 hardcode_automatic_F77=no
18606 module_expsym_cmds_F77=
18607 link_all_deplibs_F77=unknown
18608 old_archive_cmds_F77=$old_archive_cmds
18609 no_undefined_flag_F77=
18610 whole_archive_flag_spec_F77=
18611 enable_shared_with_static_runtimes_F77=no
18613 # Source file extension for f77 test sources.
18616 # Object file extension for compiled f77 test sources.
18620 # Code to be used in simple compile tests
18621 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18623 # Code to be used in simple link tests
18624 lt_simple_link_test_code=" program t\n end\n"
18626 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18628 # If no C compiler was specified, use CC.
18631 # Allow CC to be a program name with arguments.
18635 # Allow CC to be a program name with arguments.
18640 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18642 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18643 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18644 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18645 echo "${ECHO_T}$can_build_shared" >&6
18647 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18648 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18649 test "$can_build_shared" = "no" && enable_shared=no
18651 # On AIX, shared libraries and static libraries use the same namespace, and
18652 # are all built from PIC.
18655 test "$enable_shared" = yes && enable_static=no
18656 if test -n "$RANLIB"; then
18657 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18658 postinstall_cmds='$RANLIB $lib'
18662 test "$enable_shared" = yes && enable_static=no
18665 echo "$as_me:$LINENO: result: $enable_shared" >&5
18666 echo "${ECHO_T}$enable_shared" >&6
18668 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18669 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18670 # Make sure either enable_shared or enable_static is yes.
18671 test "$enable_shared" = yes || enable_static=yes
18672 echo "$as_me:$LINENO: result: $enable_static" >&5
18673 echo "${ECHO_T}$enable_static" >&6
18675 test "$ld_shlibs_F77" = no && can_build_shared=no
18680 lt_prog_compiler_wl_F77=
18681 lt_prog_compiler_pic_F77=
18682 lt_prog_compiler_static_F77=
18684 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18685 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18687 if test "$GCC" = yes; then
18688 lt_prog_compiler_wl_F77='-Wl,'
18689 lt_prog_compiler_static_F77='-static'
18693 # All AIX code is PIC.
18694 if test "$host_cpu" = ia64; then
18695 # AIX 5 now supports IA64 processor
18696 lt_prog_compiler_static_F77='-Bstatic'
18701 # FIXME: we need at least 68020 code to build shared libraries, but
18702 # adding the `-m68020' flag to GCC prevents building anything better,
18704 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18707 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18708 # PIC is the default for these OSes.
18711 mingw* | pw32* | os2*)
18712 # This hack is so that the source file can tell whether it is being
18713 # built for inclusion in a dll (and should export symbols for example).
18714 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18717 darwin* | rhapsody*)
18718 # PIC is the default on this platform
18719 # Common symbols not allowed in MH_DYLIB files
18720 lt_prog_compiler_pic_F77='-fno-common'
18724 # Just because we use GCC doesn't mean we suddenly get shared libraries
18725 # on systems that don't support them.
18726 lt_prog_compiler_can_build_shared_F77=no
18731 if test -d /usr/nec; then
18732 lt_prog_compiler_pic_F77=-Kconform_pic
18737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18738 # not for PA HP-UX.
18739 case "$host_cpu" in
18744 lt_prog_compiler_pic_F77='-fPIC'
18750 lt_prog_compiler_pic_F77='-fPIC'
18754 # PORTME Check for flag to pass linker flags through the system compiler.
18757 lt_prog_compiler_wl_F77='-Wl,'
18758 if test "$host_cpu" = ia64; then
18759 # AIX 5 now supports IA64 processor
18760 lt_prog_compiler_static_F77='-Bstatic'
18762 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18766 # PIC is the default on this platform
18767 # Common symbols not allowed in MH_DYLIB files
18768 case "$cc_basename" in
18770 lt_prog_compiler_pic_F77='-qnocommon'
18771 lt_prog_compiler_wl_F77='-Wl,'
18776 mingw* | pw32* | os2*)
18777 # This hack is so that the source file can tell whether it is being
18778 # built for inclusion in a dll (and should export symbols for example).
18779 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18782 hpux9* | hpux10* | hpux11*)
18783 lt_prog_compiler_wl_F77='-Wl,'
18784 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18785 # not for PA HP-UX.
18786 case "$host_cpu" in
18791 lt_prog_compiler_pic_F77='+Z'
18794 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18795 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18798 irix5* | irix6* | nonstopux*)
18799 lt_prog_compiler_wl_F77='-Wl,'
18800 # PIC (with -KPIC) is the default.
18801 lt_prog_compiler_static_F77='-non_shared'
18805 lt_prog_compiler_pic_F77='-KPIC'
18806 lt_prog_compiler_static_F77='-Bstatic'
18812 lt_prog_compiler_wl_F77='-Wl,'
18813 lt_prog_compiler_pic_F77='-KPIC'
18814 lt_prog_compiler_static_F77='-static'
18817 lt_prog_compiler_wl_F77='-Wl,'
18818 # All Alpha code is PIC.
18819 lt_prog_compiler_static_F77='-non_shared'
18824 osf3* | osf4* | osf5*)
18825 lt_prog_compiler_wl_F77='-Wl,'
18826 # All OSF/1 code is PIC.
18827 lt_prog_compiler_static_F77='-non_shared'
18831 lt_prog_compiler_pic_F77='-Kpic'
18832 lt_prog_compiler_static_F77='-dn'
18836 lt_prog_compiler_wl_F77='-Wl,'
18837 lt_prog_compiler_pic_F77='-KPIC'
18838 lt_prog_compiler_static_F77='-Bstatic'
18842 lt_prog_compiler_wl_F77='-Qoption ld '
18843 lt_prog_compiler_pic_F77='-PIC'
18844 lt_prog_compiler_static_F77='-Bstatic'
18847 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18848 lt_prog_compiler_wl_F77='-Wl,'
18849 lt_prog_compiler_pic_F77='-KPIC'
18850 lt_prog_compiler_static_F77='-Bstatic'
18854 if test -d /usr/nec ;then
18855 lt_prog_compiler_pic_F77='-Kconform_pic'
18856 lt_prog_compiler_static_F77='-Bstatic'
18861 lt_prog_compiler_pic_F77='-pic'
18862 lt_prog_compiler_static_F77='-Bstatic'
18866 lt_prog_compiler_can_build_shared_F77=no
18871 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18872 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18875 # Check to make sure the PIC flag actually works.
18877 if test -n "$lt_prog_compiler_pic_F77"; then
18879 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18880 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18881 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 lt_prog_compiler_pic_works_F77=no
18885 ac_outfile=conftest.$ac_objext
18886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18887 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18888 # Insert the option either (1) after the last *FLAGS variable, or
18889 # (2) before a word containing "conftest.", or (3) at the end.
18890 # Note that $ac_compile itself does not contain backslashes and begins
18891 # with a dollar sign (not a hyphen), so the echo should work correctly.
18892 # The option is referenced via a variable to avoid confusing sed.
18893 lt_compile=`echo "$ac_compile" | $SED \
18894 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18896 -e 's:$: $lt_compiler_flag:'`
18897 (eval echo "\"\$as_me:18896: $lt_compile\"" >&5)
18898 (eval "$lt_compile" 2>conftest.err)
18900 cat conftest.err >&5
18901 echo "$as_me:18900: \$? = $ac_status" >&5
18902 if (exit $ac_status) && test -s "$ac_outfile"; then
18903 # The compiler can only warn and ignore the option if not recognized
18904 # So say no if there are warnings
18905 if test ! -s conftest.err; then
18906 lt_prog_compiler_pic_works_F77=yes
18912 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18913 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18915 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18916 case $lt_prog_compiler_pic_F77 in
18918 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18921 lt_prog_compiler_pic_F77=
18922 lt_prog_compiler_can_build_shared_F77=no
18927 # For platforms which do not support PIC, -DPIC is meaningless:
18929 lt_prog_compiler_pic_F77=
18932 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18936 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18937 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18938 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 lt_cv_prog_compiler_c_o_F77=no
18942 $rm -r conftest 2>/dev/null
18946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18948 lt_compiler_flag="-o out/conftest2.$ac_objext"
18949 # Insert the option either (1) after the last *FLAGS variable, or
18950 # (2) before a word containing "conftest.", or (3) at the end.
18951 # Note that $ac_compile itself does not contain backslashes and begins
18952 # with a dollar sign (not a hyphen), so the echo should work correctly.
18953 lt_compile=`echo "$ac_compile" | $SED \
18954 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18956 -e 's:$: $lt_compiler_flag:'`
18957 (eval echo "\"\$as_me:18956: $lt_compile\"" >&5)
18958 (eval "$lt_compile" 2>out/conftest.err)
18960 cat out/conftest.err >&5
18961 echo "$as_me:18960: \$? = $ac_status" >&5
18962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18964 # The compiler can only warn and ignore the option if not recognized
18965 # So say no if there are warnings
18966 if test ! -s out/conftest.err; then
18967 lt_cv_prog_compiler_c_o_F77=yes
18972 # SGI C++ compiler will create directory out/ii_files/ for
18973 # template instantiation
18974 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18975 $rm out/* && rmdir out
18981 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18982 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18985 hard_links="nottested"
18986 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18987 # do not overwrite the value of need_locks provided by the user
18988 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18989 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18994 ln conftest.a conftest.b 2>&5 || hard_links=no
18995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18996 echo "$as_me:$LINENO: result: $hard_links" >&5
18997 echo "${ECHO_T}$hard_links" >&6
18998 if test "$hard_links" = no; then
18999 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19000 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19007 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19011 allow_undefined_flag_F77=
19012 enable_shared_with_static_runtimes_F77=no
19014 archive_expsym_cmds_F77=
19015 old_archive_From_new_cmds_F77=
19016 old_archive_from_expsyms_cmds_F77=
19017 export_dynamic_flag_spec_F77=
19018 whole_archive_flag_spec_F77=
19019 thread_safe_flag_spec_F77=
19020 hardcode_libdir_flag_spec_F77=
19021 hardcode_libdir_flag_spec_ld_F77=
19022 hardcode_libdir_separator_F77=
19023 hardcode_direct_F77=no
19024 hardcode_minus_L_F77=no
19025 hardcode_shlibpath_var_F77=unsupported
19026 link_all_deplibs_F77=unknown
19027 hardcode_automatic_F77=no
19029 module_expsym_cmds_F77=
19030 always_export_symbols_F77=no
19031 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19032 # include_expsyms should be a list of space-separated symbols to be *always*
19033 # included in the symbol list
19034 include_expsyms_F77=
19035 # exclude_expsyms can be an extended regexp of symbols to exclude
19036 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19037 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19038 # as well as any symbol that contains `d'.
19039 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19041 # platforms (ab)use it in PIC code, but their linkers get confused if
19042 # the symbol is explicitly referenced. Since portable code cannot
19043 # rely on this symbol name, it's probably fine to never include it in
19044 # preloaded symbol tables.
19045 extract_expsyms_cmds=
19048 cygwin* | mingw* | pw32*)
19049 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19050 # When not using gcc, we currently assume that we are using
19051 # Microsoft Visual C++.
19052 if test "$GCC" != yes; then
19062 if test "$with_gnu_ld" = yes; then
19063 # If archive_cmds runs LD, not CC, wlarc should be empty
19066 # See if GNU ld supports shared libraries.
19068 aix3* | aix4* | aix5*)
19069 # On AIX/PPC, the GNU linker is very broken
19070 if test "$host_cpu" != ia64; then
19074 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19075 *** to be unable to reliably create shared libraries on AIX.
19076 *** Therefore, libtool is disabling shared libraries support. If you
19077 *** really care for shared libraries, you may want to modify your PATH
19078 *** so that a non-GNU linker is found, and then restart.
19085 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)'
19086 hardcode_libdir_flag_spec_F77='-L$libdir'
19087 hardcode_minus_L_F77=yes
19089 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19090 # that the semantics of dynamic libraries on AmigaOS, at least up
19091 # to version 4, is to share data among multiple programs linked
19092 # with the same dynamic library. Since this doesn't match the
19093 # behavior of shared libraries on other platforms, we can't use
19099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19100 allow_undefined_flag_F77=unsupported
19101 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19102 # support --undefined. This deserves some investigation. FIXME
19103 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19109 cygwin* | mingw* | pw32*)
19110 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19111 # as there is no search path for DLLs.
19112 hardcode_libdir_flag_spec_F77='-L$libdir'
19113 allow_undefined_flag_F77=unsupported
19114 always_export_symbols_F77=no
19115 enable_shared_with_static_runtimes_F77=yes
19116 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19118 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19119 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19120 # If the export-symbols file already is a .def file (1st line
19121 # is EXPORTS), use it as is; otherwise, prepend...
19122 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19123 cp $export_symbols $output_objdir/$soname.def;
19125 echo EXPORTS > $output_objdir/$soname.def;
19126 cat $export_symbols >> $output_objdir/$soname.def;
19128 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19136 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19139 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19140 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19145 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19149 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19150 *** create shared libraries on Solaris systems. Therefore, libtool
19151 *** is disabling shared libraries support. We urge you to upgrade GNU
19152 *** binutils to release 2.9.1 or newer. Another option is to modify
19153 *** your PATH or compiler configuration so that the native linker is
19154 *** used, and then restart.
19157 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19158 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19166 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19168 hardcode_direct_F77=yes
19169 hardcode_shlibpath_var_F77=no
19173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19174 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175 archive_cmds_F77="$tmp_archive_cmds"
19176 supports_anon_versioning=no
19177 case `$LD -v 2>/dev/null` in
19178 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19181 *\ 2.11.*) ;; # other 2.11 versions
19182 *) supports_anon_versioning=yes ;;
19184 if test $supports_anon_versioning = yes; then
19185 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19186 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19187 $echo "local: *; };" >> $output_objdir/$libname.ver~
19188 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19190 archive_expsym_cmds_F77="$tmp_archive_cmds"
19198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19199 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19200 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19207 if test "$ld_shlibs_F77" = yes; then
19208 runpath_var=LD_RUN_PATH
19209 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19210 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19211 # ancient GNU ld didn't support --whole-archive et. al.
19212 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19213 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19215 whole_archive_flag_spec_F77=
19219 # PORTME fill in a description of your system's linker (not GNU ld)
19222 allow_undefined_flag_F77=unsupported
19223 always_export_symbols_F77=yes
19224 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'
19225 # Note: this linker hardcodes the directories in LIBPATH if there
19226 # are no directories specified by -L.
19227 hardcode_minus_L_F77=yes
19228 if test "$GCC" = yes && test -z "$link_static_flag"; then
19229 # Neither direct hardcoding nor static linking is supported with a
19231 hardcode_direct_F77=unsupported
19236 if test "$host_cpu" = ia64; then
19237 # On IA64, the linker does run time linking by default, so we don't
19238 # have to do anything special.
19239 aix_use_runtimelinking=no
19240 exp_sym_flag='-Bexport'
19243 # If we're using GNU nm, then we don't want the "-C" option.
19244 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19245 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19246 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'
19248 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'
19250 aix_use_runtimelinking=no
19252 # Test if we are trying to use run time linking or normal
19253 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19254 # need to do runtime linking.
19255 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19256 for ld_flag in $LDFLAGS; do
19257 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19258 aix_use_runtimelinking=yes
19264 exp_sym_flag='-bexport'
19265 no_entry_flag='-bnoentry'
19268 # When large executables or shared objects are built, AIX ld can
19269 # have problems creating the table of contents. If linking a library
19270 # or program results in "error TOC overflow" add -mminimal-toc to
19271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19274 archive_cmds_F77=''
19275 hardcode_direct_F77=yes
19276 hardcode_libdir_separator_F77=':'
19277 link_all_deplibs_F77=yes
19279 if test "$GCC" = yes; then
19280 case $host_os in aix4.012|aix4.012.*)
19281 # We only want to do this on AIX 4.2 and lower, the check
19282 # below for broken collect2 doesn't work under 4.3+
19283 collect2name=`${CC} -print-prog-name=collect2`
19284 if test -f "$collect2name" && \
19285 strings "$collect2name" | grep resolve_lib_name >/dev/null
19287 # We have reworked collect2
19288 hardcode_direct_F77=yes
19290 # We have old collect2
19291 hardcode_direct_F77=unsupported
19292 # It fails to find uninstalled libraries when the uninstalled
19293 # path is not listed in the libpath. Setting hardcode_minus_L
19294 # to unsupported forces relinking
19295 hardcode_minus_L_F77=yes
19296 hardcode_libdir_flag_spec_F77='-L$libdir'
19297 hardcode_libdir_separator_F77=
19300 shared_flag='-shared'
19303 if test "$host_cpu" = ia64; then
19304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19305 # chokes on -Wl,-G. The following line is correct:
19308 if test "$aix_use_runtimelinking" = yes; then
19309 shared_flag='${wl}-G'
19311 shared_flag='${wl}-bM:SRE'
19316 # It seems that -bexpall does not export symbols beginning with
19317 # underscore (_), so it is better to generate a list of symbols to export.
19318 always_export_symbols_F77=yes
19319 if test "$aix_use_runtimelinking" = yes; then
19320 # Warning - without using the other runtime loading flags (-brtl),
19321 # -berok will link without error, but may produce a broken library.
19322 allow_undefined_flag_F77='-berok'
19323 # Determine the default libpath from the value encoded in an empty executable.
19324 cat >conftest.$ac_ext <<_ACEOF
19329 rm -f conftest.$ac_objext conftest$ac_exeext
19330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19331 (eval $ac_link) 2>conftest.er1
19333 grep -v '^ *+' conftest.er1 >conftest.err
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
19338 { ac_try='test -z "$ac_f77_werror_flag"
19339 || test ! -s conftest.err'
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; } &&
19345 { ac_try='test -s conftest$ac_exeext'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19352 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19354 # Check for a 64-bit object if we didn't find anything.
19355 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; }
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19362 rm -f conftest.err conftest.$ac_objext \
19363 conftest$ac_exeext conftest.$ac_ext
19364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19366 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19367 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"
19369 if test "$host_cpu" = ia64; then
19370 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19371 allow_undefined_flag_F77="-z nodefs"
19372 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"
19374 # Determine the default libpath from the value encoded in an empty executable.
19375 cat >conftest.$ac_ext <<_ACEOF
19380 rm -f conftest.$ac_objext conftest$ac_exeext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19382 (eval $ac_link) 2>conftest.er1
19384 grep -v '^ *+' conftest.er1 >conftest.err
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_f77_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest$ac_exeext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19405 # Check for a 64-bit object if we didn't find anything.
19406 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; }
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19413 rm -f conftest.err conftest.$ac_objext \
19414 conftest$ac_exeext conftest.$ac_ext
19415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19417 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19418 # Warning - without using the other run time loading flags,
19419 # -berok will link without error, but may produce a broken library.
19420 no_undefined_flag_F77=' ${wl}-bernotok'
19421 allow_undefined_flag_F77=' ${wl}-berok'
19422 # -bexpall does not export symbols beginning with underscore (_)
19423 always_export_symbols_F77=yes
19424 # Exported symbols can be pulled into shared objects from archives
19425 whole_archive_flag_spec_F77=' '
19426 archive_cmds_need_lc_F77=yes
19427 # This is similar to how AIX traditionally builds it's shared libraries.
19428 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'
19434 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)'
19435 hardcode_libdir_flag_spec_F77='-L$libdir'
19436 hardcode_minus_L_F77=yes
19437 # see comment about different semantics on the GNU ld section
19442 export_dynamic_flag_spec_F77=-rdynamic
19445 cygwin* | mingw* | pw32*)
19446 # When not using gcc, we currently assume that we are using
19447 # Microsoft Visual C++.
19448 # hardcode_libdir_flag_spec is actually meaningless, as there is
19449 # no search path for DLLs.
19450 hardcode_libdir_flag_spec_F77=' '
19451 allow_undefined_flag_F77=unsupported
19452 # Tell ltmain to make .lib files, not .a files.
19454 # Tell ltmain to make .dll files, not .so files.
19456 # FIXME: Setting linknames here is a bad hack.
19457 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19458 # The linker will automatically build a .lib file if we build a DLL.
19459 old_archive_From_new_cmds_F77='true'
19460 # FIXME: Should let the user specify the lib program.
19461 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19462 fix_srcfile_path='`cygpath -w "$srcfile"`'
19463 enable_shared_with_static_runtimes_F77=yes
19466 darwin* | rhapsody*)
19468 rhapsody* | darwin1.[012])
19469 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19472 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19473 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19475 case ${MACOSX_DEPLOYMENT_TARGET} in
19477 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19480 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19486 archive_cmds_need_lc_F77=no
19487 hardcode_direct_F77=no
19488 hardcode_automatic_F77=yes
19489 hardcode_shlibpath_var_F77=unsupported
19490 whole_archive_flag_spec_F77=''
19491 link_all_deplibs_F77=yes
19492 if test "$GCC" = yes ; then
19493 output_verbose_link_cmd='echo'
19494 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $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 -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $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}'
19500 case "$cc_basename" in
19502 output_verbose_link_cmd='echo'
19503 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19504 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19505 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19506 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}'
19507 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}'
19517 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19518 hardcode_libdir_flag_spec_F77='-L$libdir'
19519 hardcode_shlibpath_var_F77=no
19526 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19527 # support. Future versions do this automatically, but an explicit c++rt0.o
19528 # does not break anything, and helps significantly (at the cost of a little
19531 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19532 hardcode_libdir_flag_spec_F77='-R$libdir'
19533 hardcode_direct_F77=yes
19534 hardcode_shlibpath_var_F77=no
19537 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19539 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19540 hardcode_direct_F77=yes
19541 hardcode_minus_L_F77=yes
19542 hardcode_shlibpath_var_F77=no
19545 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19546 freebsd* | kfreebsd*-gnu)
19547 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19548 hardcode_libdir_flag_spec_F77='-R$libdir'
19549 hardcode_direct_F77=yes
19550 hardcode_shlibpath_var_F77=no
19554 if test "$GCC" = yes; then
19555 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'
19557 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'
19559 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19560 hardcode_libdir_separator_F77=:
19561 hardcode_direct_F77=yes
19563 # hardcode_minus_L: Not really in the search PATH,
19564 # but as the default location of the library.
19565 hardcode_minus_L_F77=yes
19566 export_dynamic_flag_spec_F77='${wl}-E'
19570 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19571 case "$host_cpu" in
19573 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19576 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19580 case "$host_cpu" in
19582 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19585 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19589 if test "$with_gnu_ld" = no; then
19590 case "$host_cpu" in
19592 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19593 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19594 hardcode_libdir_separator_F77=:
19595 hardcode_direct_F77=no
19596 hardcode_shlibpath_var_F77=no
19599 hardcode_libdir_flag_spec_F77='-L$libdir'
19600 hardcode_direct_F77=no
19601 hardcode_shlibpath_var_F77=no
19603 # hardcode_minus_L: Not really in the search PATH,
19604 # but as the default location of the library.
19605 hardcode_minus_L_F77=yes
19608 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19609 hardcode_libdir_separator_F77=:
19610 hardcode_direct_F77=yes
19611 export_dynamic_flag_spec_F77='${wl}-E'
19613 # hardcode_minus_L: Not really in the search PATH,
19614 # but as the default location of the library.
19615 hardcode_minus_L_F77=yes
19621 irix5* | irix6* | nonstopux*)
19622 if test "$GCC" = yes; then
19623 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'
19625 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'
19626 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19628 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19629 hardcode_libdir_separator_F77=:
19630 link_all_deplibs_F77=yes
19634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19635 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19637 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19639 hardcode_libdir_flag_spec_F77='-R$libdir'
19640 hardcode_direct_F77=yes
19641 hardcode_shlibpath_var_F77=no
19645 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19646 hardcode_direct_F77=yes
19647 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19648 hardcode_libdir_separator_F77=:
19649 hardcode_shlibpath_var_F77=no
19653 hardcode_direct_F77=yes
19654 hardcode_shlibpath_var_F77=no
19655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19656 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19657 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19658 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19659 export_dynamic_flag_spec_F77='${wl}-E'
19662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19663 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19664 hardcode_libdir_flag_spec_F77='-R$libdir'
19667 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19668 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19675 hardcode_libdir_flag_spec_F77='-L$libdir'
19676 hardcode_minus_L_F77=yes
19677 allow_undefined_flag_F77=unsupported
19678 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'
19679 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19683 if test "$GCC" = yes; then
19684 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19685 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'
19687 allow_undefined_flag_F77=' -expect_unresolved \*'
19688 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'
19690 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19691 hardcode_libdir_separator_F77=:
19694 osf4* | osf5*) # as osf3* with the addition of -msym flag
19695 if test "$GCC" = yes; then
19696 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19697 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'
19698 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19700 allow_undefined_flag_F77=' -expect_unresolved \*'
19701 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'
19702 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~
19703 $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'
19705 # Both c and cxx compiler support -rpath directly
19706 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19708 hardcode_libdir_separator_F77=:
19712 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19713 hardcode_shlibpath_var_F77=no
19714 export_dynamic_flag_spec_F77='${wl}-Bexport'
19715 runpath_var=LD_RUN_PATH
19716 hardcode_runpath_var=yes
19720 no_undefined_flag_F77=' -z text'
19721 if test "$GCC" = yes; then
19722 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19723 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19724 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19726 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19727 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19730 hardcode_libdir_flag_spec_F77='-R$libdir'
19731 hardcode_shlibpath_var_F77=no
19733 solaris2.[0-5] | solaris2.[0-5].*) ;;
19734 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19735 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19737 link_all_deplibs_F77=yes
19741 if test "x$host_vendor" = xsequent; then
19742 # Use $CC to link under sequent, because it throws in some extra .o
19743 # files that make .init and .fini sections work.
19744 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19746 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19748 hardcode_libdir_flag_spec_F77='-L$libdir'
19749 hardcode_direct_F77=yes
19750 hardcode_minus_L_F77=yes
19751 hardcode_shlibpath_var_F77=no
19755 case $host_vendor in
19757 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19758 hardcode_direct_F77=yes # is this really true???
19761 ## LD is ld it makes a PLAMLIB
19762 ## CC just makes a GrossModule.
19763 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19764 reload_cmds_F77='$CC -r -o $output$reload_objs'
19765 hardcode_direct_F77=no
19768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19772 runpath_var='LD_RUN_PATH'
19773 hardcode_shlibpath_var_F77=no
19777 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19778 hardcode_shlibpath_var_F77=no
19779 export_dynamic_flag_spec_F77='-Bexport'
19783 if test -d /usr/nec; then
19784 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19785 hardcode_shlibpath_var_F77=no
19786 runpath_var=LD_RUN_PATH
19787 hardcode_runpath_var=yes
19793 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19794 hardcode_direct_F77=yes
19795 hardcode_minus_L_F77=no
19796 hardcode_shlibpath_var_F77=no
19797 hardcode_runpath_var=yes
19798 runpath_var=LD_RUN_PATH
19801 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19802 no_undefined_flag_F77='${wl}-z ${wl}text'
19803 if test "$GCC" = yes; then
19804 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19806 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19808 runpath_var='LD_RUN_PATH'
19809 hardcode_shlibpath_var_F77=no
19813 no_undefined_flag_F77=' -z text'
19814 # $CC -shared without GNU ld will not create a library from C++
19815 # object files and a static libstdc++, better avoid it by now
19816 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19817 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19818 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19819 hardcode_libdir_flag_spec_F77=
19820 hardcode_shlibpath_var_F77=no
19821 runpath_var='LD_RUN_PATH'
19825 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19826 hardcode_libdir_flag_spec_F77='-L$libdir'
19827 hardcode_shlibpath_var_F77=no
19836 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19837 echo "${ECHO_T}$ld_shlibs_F77" >&6
19838 test "$ld_shlibs_F77" = no && can_build_shared=no
19840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19841 if test "$GCC" = yes; then
19842 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19846 # Do we need to explicitly link libc?
19848 case "x$archive_cmds_need_lc_F77" in
19850 # Assume -lc should be added
19851 archive_cmds_need_lc_F77=yes
19853 if test "$enable_shared" = yes && test "$GCC" = yes; then
19854 case $archive_cmds_F77 in
19856 # FIXME: we may have to deal with multi-command sequences.
19859 # Test whether the compiler implicitly links with -lc since on some
19860 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19861 # to ld, don't add -lc before -lgcc.
19862 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19863 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868 (eval $ac_compile) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } 2>conftest.err; then
19874 libobjs=conftest.$ac_objext
19876 wl=$lt_prog_compiler_wl_F77
19882 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19883 allow_undefined_flag_F77=
19884 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19885 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }
19890 archive_cmds_need_lc_F77=no
19892 archive_cmds_need_lc_F77=yes
19894 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19896 cat conftest.err 1>&5
19899 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19900 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19907 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19908 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19909 library_names_spec=
19910 libname_spec='lib$name'
19914 postuninstall_cmds=
19918 shlibpath_overrides_runpath=unknown
19920 dynamic_linker="$host_os ld.so"
19921 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19922 if test "$GCC" = yes; then
19923 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19924 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19925 # if the path contains ";" then we assume it to be the separator
19926 # otherwise default to the standard path separator (i.e. ":") - it is
19927 # assumed that no part of a normal pathname contains ";" but that should
19928 # okay in the real world where ";" in dirpaths is itself problematic.
19929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19934 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19936 need_lib_prefix=unknown
19937 hardcode_into_libs=no
19939 # when you set need_version to no, make sure it does not cause -set_version
19940 # flags to be left without arguments
19941 need_version=unknown
19946 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19947 shlibpath_var=LIBPATH
19949 # AIX 3 has no versioning support, so we append a major version to the name.
19950 soname_spec='${libname}${release}${shared_ext}$major'
19957 hardcode_into_libs=yes
19958 if test "$host_cpu" = ia64; then
19959 # AIX 5 supports IA64
19960 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19961 shlibpath_var=LD_LIBRARY_PATH
19963 # With GCC up to 2.95.x, collect2 would create an import file
19964 # for dependence libraries. The import file would start with
19965 # the line `#! .'. This would cause the generated library to
19966 # depend on `.', always an invalid library. This was fixed in
19967 # development snapshots of GCC prior to 3.0.
19969 aix4 | aix4.[01] | aix4.[01].*)
19970 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19972 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19975 can_build_shared=no
19979 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19980 # soname into executable. Probably we can add versioning support to
19981 # collect2, so additional links can be useful in future.
19982 if test "$aix_use_runtimelinking" = yes; then
19983 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19984 # instead of lib<name>.a to let people know that these are not
19985 # typical AIX shared libraries.
19986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19988 # We preserve .a as extension for shared libraries through AIX4.2
19989 # and later when we are not doing run time linking.
19990 library_names_spec='${libname}${release}.a $libname.a'
19991 soname_spec='${libname}${release}${shared_ext}$major'
19993 shlibpath_var=LIBPATH
19998 library_names_spec='$libname.ixlibrary $libname.a'
19999 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20000 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'
20004 library_names_spec='${libname}${shared_ext}'
20005 dynamic_linker="$host_os ld.so"
20006 shlibpath_var=LIBRARY_PATH
20012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20013 soname_spec='${libname}${release}${shared_ext}$major'
20014 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20015 shlibpath_var=LD_LIBRARY_PATH
20016 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20017 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20018 # the default ld.so.conf also contains /usr/contrib/lib and
20019 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20020 # libtool to hard-code these into programs
20023 cygwin* | mingw* | pw32*)
20024 version_type=windows
20029 case $GCC,$host_os in
20030 yes,cygwin* | yes,mingw* | yes,pw32*)
20031 library_names_spec='$libname.dll.a'
20032 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20033 postinstall_cmds='base_file=`basename \${file}`~
20034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20035 dldir=$destdir/`dirname \$dlpath`~
20036 test -d \$dldir || mkdir -p \$dldir~
20037 $install_prog $dir/$dlname \$dldir/$dlname'
20038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20039 dlpath=$dir/\$dldll~
20041 shlibpath_overrides_runpath=yes
20045 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20046 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20047 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20050 # MinGW DLLs use traditional 'lib' prefix
20051 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20052 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20053 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20054 # It is most probably a Windows format PATH printed by
20055 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20056 # path with ; separators, and with drive letters. We can handle the
20057 # drive letters (cygwin fileutils understands them), so leave them,
20058 # especially as we might pass files found there to a mingw objdump,
20059 # which wouldn't understand a cygwinified path. Ahh.
20060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20066 # pw32 DLLs use 'pw' prefix rather than 'lib'
20067 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20073 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20076 dynamic_linker='Win32 ld.exe'
20077 # FIXME: first we should search . and the directory the executable is in
20081 darwin* | rhapsody*)
20082 dynamic_linker="$host_os dyld"
20083 version_type=darwin
20086 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20087 soname_spec='${libname}${release}${major}$shared_ext'
20088 shlibpath_overrides_runpath=yes
20089 shlibpath_var=DYLD_LIBRARY_PATH
20090 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20091 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20092 if test "$GCC" = yes; then
20093 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"`
20095 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20097 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20105 soname_spec='${libname}${release}${shared_ext}$major'
20106 shlibpath_var=LD_LIBRARY_PATH
20117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20118 soname_spec='${libname}${release}${shared_ext}$major'
20119 shlibpath_var=LD_LIBRARY_PATH
20120 shlibpath_overrides_runpath=no
20121 hardcode_into_libs=yes
20122 dynamic_linker='GNU ld.so'
20126 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20127 version_type=freebsd-$objformat
20128 case $version_type in
20130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20139 shlibpath_var=LD_LIBRARY_PATH
20142 shlibpath_overrides_runpath=yes
20144 freebsd3.01* | freebsdelf3.01*)
20145 shlibpath_overrides_runpath=yes
20146 hardcode_into_libs=yes
20149 shlibpath_overrides_runpath=no
20150 hardcode_into_libs=yes
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20161 shlibpath_var=LD_LIBRARY_PATH
20162 hardcode_into_libs=yes
20165 hpux9* | hpux10* | hpux11*)
20166 # Give a soname corresponding to the major version so that dld.sl refuses to
20167 # link against other versions.
20171 case "$host_cpu" in
20174 hardcode_into_libs=yes
20175 dynamic_linker="$host_os dld.so"
20176 shlibpath_var=LD_LIBRARY_PATH
20177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 if test "X$HPUX_IA64_MODE" = X32; then
20181 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20183 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20189 hardcode_into_libs=yes
20190 dynamic_linker="$host_os dld.sl"
20191 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20194 soname_spec='${libname}${release}${shared_ext}$major'
20195 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20200 dynamic_linker="$host_os dld.sl"
20201 shlibpath_var=SHLIB_PATH
20202 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20204 soname_spec='${libname}${release}${shared_ext}$major'
20207 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20208 postinstall_cmds='chmod 555 $lib'
20211 irix5* | irix6* | nonstopux*)
20213 nonstopux*) version_type=nonstopux ;;
20215 if test "$lt_cv_prog_gnu_ld" = yes; then
20223 soname_spec='${libname}${release}${shared_ext}$major'
20224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20226 irix5* | nonstopux*)
20227 libsuff= shlibsuff=
20230 case $LD in # libtool.m4 will add one of these switches to LD
20231 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20232 libsuff= shlibsuff= libmagic=32-bit;;
20233 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20234 libsuff=32 shlibsuff=N32 libmagic=N32;;
20235 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20236 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20237 *) libsuff= shlibsuff= libmagic=never-match;;
20241 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20242 shlibpath_overrides_runpath=no
20243 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20244 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20245 hardcode_into_libs=yes
20248 # No shared lib support for Linux oldld, aout, or coff.
20249 linux*oldld* | linux*aout* | linux*coff*)
20253 # This must be Linux ELF.
20258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20259 soname_spec='${libname}${release}${shared_ext}$major'
20260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20261 shlibpath_var=LD_LIBRARY_PATH
20262 shlibpath_overrides_runpath=no
20263 # This implies no fast_install, which is unacceptable.
20264 # Some rework will be needed to allow for fast_install
20265 # before this can be enabled.
20266 hardcode_into_libs=yes
20268 # Append ld.so.conf contents to the search path
20269 if test -f /etc/ld.so.conf; then
20270 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20271 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20274 # We used to test for /lib/ld.so.1 and disable shared libraries on
20275 # powerpc, because MkLinux only supported shared libraries with the
20276 # GNU dynamic linker. Since this was broken with cross compilers,
20277 # most powerpc-linux boxes support dynamic linking these days and
20278 # people can always --disable-shared, the test was removed, and we
20279 # assume the GNU/Linux dynamic linker is in use.
20280 dynamic_linker='GNU/Linux ld.so'
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20288 soname_spec='${libname}${release}${shared_ext}$major'
20289 shlibpath_var=LD_LIBRARY_PATH
20290 shlibpath_overrides_runpath=no
20291 hardcode_into_libs=yes
20292 dynamic_linker='GNU ld.so'
20299 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20302 dynamic_linker='NetBSD (a.out) ld.so'
20304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20305 soname_spec='${libname}${release}${shared_ext}$major'
20306 dynamic_linker='NetBSD ld.elf_so'
20308 shlibpath_var=LD_LIBRARY_PATH
20309 shlibpath_overrides_runpath=yes
20310 hardcode_into_libs=yes
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316 shlibpath_var=LD_LIBRARY_PATH
20317 shlibpath_overrides_runpath=yes
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 shlibpath_var=LD_LIBRARY_PATH
20327 shlibpath_overrides_runpath=yes
20334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20336 shlibpath_var=LD_LIBRARY_PATH
20337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20339 openbsd2.[89] | openbsd2.[89].*)
20340 shlibpath_overrides_runpath=no
20343 shlibpath_overrides_runpath=yes
20347 shlibpath_overrides_runpath=yes
20352 libname_spec='$name'
20355 library_names_spec='$libname${shared_ext} $libname.a'
20356 dynamic_linker='OS/2 ld.exe'
20357 shlibpath_var=LIBPATH
20360 osf3* | osf4* | osf5*)
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
20367 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20368 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375 shlibpath_var=LD_LIBRARY_PATH
20382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20383 soname_spec='${libname}${release}${shared_ext}$major'
20384 shlibpath_var=LD_LIBRARY_PATH
20385 shlibpath_overrides_runpath=yes
20386 hardcode_into_libs=yes
20387 # ldd complains unless libraries are executable
20388 postinstall_cmds='chmod +x $lib'
20393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 shlibpath_overrides_runpath=yes
20397 if test "$with_gnu_ld" = yes; then
20403 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406 soname_spec='${libname}${release}${shared_ext}$major'
20407 shlibpath_var=LD_LIBRARY_PATH
20408 case $host_vendor in
20410 shlibpath_overrides_runpath=no
20412 export_dynamic_flag_spec='${wl}-Blargedynsym'
20413 runpath_var=LD_RUN_PATH
20421 shlibpath_overrides_runpath=no
20422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20428 if test -d /usr/nec ;then
20430 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20431 soname_spec='$libname${shared_ext}.$major'
20432 shlibpath_var=LD_LIBRARY_PATH
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 shlibpath_var=LD_LIBRARY_PATH
20447 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20448 echo "${ECHO_T}$dynamic_linker" >&6
20449 test "$dynamic_linker" = no && can_build_shared=no
20451 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20452 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20453 hardcode_action_F77=
20454 if test -n "$hardcode_libdir_flag_spec_F77" || \
20455 test -n "$runpath_var_F77" || \
20456 test "X$hardcode_automatic_F77" = "Xyes" ; then
20458 # We can hardcode non-existant directories.
20459 if test "$hardcode_direct_F77" != no &&
20460 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20461 # have to relink, otherwise we might link with an installed library
20462 # when we should be linking with a yet-to-be-installed one
20463 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20464 test "$hardcode_minus_L_F77" != no; then
20465 # Linking always hardcodes the temporary library directory.
20466 hardcode_action_F77=relink
20468 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20469 hardcode_action_F77=immediate
20472 # We cannot hardcode anything, or else we can only hardcode existing
20474 hardcode_action_F77=unsupported
20476 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20477 echo "${ECHO_T}$hardcode_action_F77" >&6
20479 if test "$hardcode_action_F77" = relink; then
20480 # Fast installation is not supported
20481 enable_fast_install=no
20482 elif test "$shlibpath_overrides_runpath" = yes ||
20483 test "$enable_shared" = no; then
20484 # Fast installation is not necessary
20485 enable_fast_install=needless
20490 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20491 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20492 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20493 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20494 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20495 echo "$as_me:$LINENO: result: yes" >&5
20496 echo "${ECHO_T}yes" >&6
20498 # FIXME - insert some real tests, host_os isn't really good enough
20501 if test -n "$STRIP" ; then
20502 striplib="$STRIP -x"
20503 echo "$as_me:$LINENO: result: yes" >&5
20504 echo "${ECHO_T}yes" >&6
20506 echo "$as_me:$LINENO: result: no" >&5
20507 echo "${ECHO_T}no" >&6
20511 echo "$as_me:$LINENO: result: no" >&5
20512 echo "${ECHO_T}no" >&6
20519 # The else clause should only fire when bootstrapping the
20520 # libtool distribution, otherwise you forgot to ship ltmain.sh
20521 # with your package, and you will get complaints that there are
20522 # no rules to generate ltmain.sh.
20523 if test -f "$ltmain"; then
20524 # See if we are running on zsh, and set the options which allow our commands through
20525 # without removal of \ escapes.
20526 if test -n "${ZSH_VERSION+set}" ; then
20527 setopt NO_GLOB_SUBST
20529 # Now quote all the things that may contain metacharacters while being
20530 # careful not to overquote the AC_SUBSTed values. We take copies of the
20531 # variables and quote the copies for generation of the libtool script.
20532 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20534 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20535 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20536 deplibs_check_method reload_flag reload_cmds need_locks \
20537 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20538 lt_cv_sys_global_symbol_to_c_name_address \
20539 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20540 old_postinstall_cmds old_postuninstall_cmds \
20544 lt_prog_compiler_wl_F77 \
20545 lt_prog_compiler_pic_F77 \
20546 lt_prog_compiler_static_F77 \
20547 lt_prog_compiler_no_builtin_flag_F77 \
20548 export_dynamic_flag_spec_F77 \
20549 thread_safe_flag_spec_F77 \
20550 whole_archive_flag_spec_F77 \
20551 enable_shared_with_static_runtimes_F77 \
20552 old_archive_cmds_F77 \
20553 old_archive_from_new_cmds_F77 \
20554 predep_objects_F77 \
20555 postdep_objects_F77 \
20558 compiler_lib_search_path_F77 \
20560 archive_expsym_cmds_F77 \
20561 postinstall_cmds_F77 \
20562 postuninstall_cmds_F77 \
20563 old_archive_from_expsyms_cmds_F77 \
20564 allow_undefined_flag_F77 \
20565 no_undefined_flag_F77 \
20566 export_symbols_cmds_F77 \
20567 hardcode_libdir_flag_spec_F77 \
20568 hardcode_libdir_flag_spec_ld_F77 \
20569 hardcode_libdir_separator_F77 \
20570 hardcode_automatic_F77 \
20572 module_expsym_cmds_F77 \
20573 lt_cv_prog_compiler_c_o_F77 \
20574 exclude_expsyms_F77 \
20575 include_expsyms_F77; do
20578 old_archive_cmds_F77 | \
20579 old_archive_from_new_cmds_F77 | \
20580 archive_cmds_F77 | \
20581 archive_expsym_cmds_F77 | \
20582 module_cmds_F77 | \
20583 module_expsym_cmds_F77 | \
20584 old_archive_from_expsyms_cmds_F77 | \
20585 export_symbols_cmds_F77 | \
20586 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20587 postinstall_cmds | postuninstall_cmds | \
20588 old_postinstall_cmds | old_postuninstall_cmds | \
20589 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20590 # Double-quote double-evaled strings.
20591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20594 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20600 *'\$0 --fallback-echo"')
20601 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20607 cat <<__EOF__ >> "$cfgfile"
20608 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20612 # Shell to use when invoking shell scripts.
20615 # Whether or not to build shared libraries.
20616 build_libtool_libs=$enable_shared
20618 # Whether or not to build static libraries.
20619 build_old_libs=$enable_static
20621 # Whether or not to add -lc for building shared libraries.
20622 build_libtool_need_lc=$archive_cmds_need_lc_F77
20624 # Whether or not to disallow shared libs when runtime libs are static
20625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20627 # Whether or not to optimize for fast installation.
20628 fast_install=$enable_fast_install
20631 host_alias=$host_alias
20634 # An echo program that does not interpret backslashes.
20639 AR_FLAGS=$lt_AR_FLAGS
20644 # A language-specific compiler.
20645 CC=$lt_compiler_F77
20647 # Is the compiler the GNU C compiler?
20653 # The linker used to build libraries.
20656 # Whether we need hard or soft links.
20659 # A BSD-compatible nm program.
20662 # A symbol stripping program
20665 # Used to examine libraries when file_magic_cmd begins "file"
20666 MAGIC_CMD=$MAGIC_CMD
20668 # Used on cygwin: DLL creation program.
20671 # Used on cygwin: object dumper.
20674 # Used on cygwin: assembler.
20677 # The name of the directory that contains temporary libtool files.
20680 # How to create reloadable object files.
20681 reload_flag=$lt_reload_flag
20682 reload_cmds=$lt_reload_cmds
20684 # How to pass a linker flag through the compiler.
20685 wl=$lt_lt_prog_compiler_wl_F77
20687 # Object file suffix (normally "o").
20688 objext="$ac_objext"
20690 # Old archive suffix (normally "a").
20693 # Shared library suffix (normally ".so").
20694 shrext_cmds='$shrext_cmds'
20696 # Executable file suffix (normally "").
20699 # Additional compiler flags for building library objects.
20700 pic_flag=$lt_lt_prog_compiler_pic_F77
20703 # What is the maximum length of a command?
20704 max_cmd_len=$lt_cv_sys_max_cmd_len
20706 # Does compiler simultaneously support -c and -o options?
20707 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20709 # Must we lock files when doing compilation ?
20710 need_locks=$lt_need_locks
20712 # Do we need the lib prefix for modules?
20713 need_lib_prefix=$need_lib_prefix
20715 # Do we need a version for libraries?
20716 need_version=$need_version
20718 # Whether dlopen is supported.
20719 dlopen_support=$enable_dlopen
20721 # Whether dlopen of programs is supported.
20722 dlopen_self=$enable_dlopen_self
20724 # Whether dlopen of statically linked programs is supported.
20725 dlopen_self_static=$enable_dlopen_self_static
20727 # Compiler flag to prevent dynamic linking.
20728 link_static_flag=$lt_lt_prog_compiler_static_F77
20730 # Compiler flag to turn off builtin functions.
20731 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20733 # Compiler flag to allow reflexive dlopens.
20734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20736 # Compiler flag to generate shared objects directly from archives.
20737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20739 # Compiler flag to generate thread-safe objects.
20740 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20742 # Library versioning type.
20743 version_type=$version_type
20745 # Format of library name prefix.
20746 libname_spec=$lt_libname_spec
20748 # List of archive names. First name is the real one, the rest are links.
20749 # The last name is the one that the linker finds with -lNAME.
20750 library_names_spec=$lt_library_names_spec
20752 # The coded name of the library, if different from the real name.
20753 soname_spec=$lt_soname_spec
20755 # Commands used to build and install an old-style archive.
20757 old_archive_cmds=$lt_old_archive_cmds_F77
20758 old_postinstall_cmds=$lt_old_postinstall_cmds
20759 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20761 # Create an old-style archive from a shared archive.
20762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20764 # Create a temporary old-style archive to link instead of a shared archive.
20765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20767 # Commands used to build and install a shared archive.
20768 archive_cmds=$lt_archive_cmds_F77
20769 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20770 postinstall_cmds=$lt_postinstall_cmds
20771 postuninstall_cmds=$lt_postuninstall_cmds
20773 # Commands used to build a loadable module (assumed same as above if empty)
20774 module_cmds=$lt_module_cmds_F77
20775 module_expsym_cmds=$lt_module_expsym_cmds_F77
20777 # Commands to strip libraries.
20778 old_striplib=$lt_old_striplib
20779 striplib=$lt_striplib
20781 # Dependencies to place before the objects being linked to create a
20783 predep_objects=$lt_predep_objects_F77
20785 # Dependencies to place after the objects being linked to create a
20787 postdep_objects=$lt_postdep_objects_F77
20789 # Dependencies to place before the objects being linked to create a
20791 predeps=$lt_predeps_F77
20793 # Dependencies to place after the objects being linked to create a
20795 postdeps=$lt_postdeps_F77
20797 # The library search path used internally by the compiler when linking
20798 # a shared library.
20799 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20801 # Method to check whether dependent libraries are shared objects.
20802 deplibs_check_method=$lt_deplibs_check_method
20804 # Command to use when deplibs_check_method == file_magic.
20805 file_magic_cmd=$lt_file_magic_cmd
20807 # Flag that allows shared libraries with undefined symbols to be built.
20808 allow_undefined_flag=$lt_allow_undefined_flag_F77
20810 # Flag that forces no undefined symbols.
20811 no_undefined_flag=$lt_no_undefined_flag_F77
20813 # Commands used to finish a libtool library installation in a directory.
20814 finish_cmds=$lt_finish_cmds
20816 # Same as above, but a single script fragment to be evaled but not shown.
20817 finish_eval=$lt_finish_eval
20819 # Take the output of nm and produce a listing of raw symbols and C names.
20820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20822 # Transform the output of nm in a proper C declaration
20823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20825 # Transform the output of nm in a C name address pair
20826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20828 # This is the shared library runtime path variable.
20829 runpath_var=$runpath_var
20831 # This is the shared library path variable.
20832 shlibpath_var=$shlibpath_var
20834 # Is shlibpath searched before the hard-coded library search path?
20835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20837 # How to hardcode a shared library path into an executable.
20838 hardcode_action=$hardcode_action_F77
20840 # Whether we should hardcode library paths into libraries.
20841 hardcode_into_libs=$hardcode_into_libs
20843 # Flag to hardcode \$libdir into a binary during linking.
20844 # This must work even if \$libdir does not exist.
20845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20847 # If ld is used when linking, flag to hardcode \$libdir into
20848 # a binary during linking. This must work even if \$libdir does
20850 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20852 # Whether we need a single -rpath flag with a separated argument.
20853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20855 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20856 # resulting binary.
20857 hardcode_direct=$hardcode_direct_F77
20859 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20860 # resulting binary.
20861 hardcode_minus_L=$hardcode_minus_L_F77
20863 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20864 # the resulting binary.
20865 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20867 # Set to yes if building a shared library automatically hardcodes DIR into the library
20868 # and all subsequent libraries and executables linked against it.
20869 hardcode_automatic=$hardcode_automatic_F77
20871 # Variables whose values should be saved in libtool wrapper scripts and
20872 # restored at relink time.
20873 variables_saved_for_relink="$variables_saved_for_relink"
20875 # Whether libtool must link a program against all its dependency libraries.
20876 link_all_deplibs=$link_all_deplibs_F77
20878 # Compile-time system search path for libraries
20879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20881 # Run-time system search path for libraries
20882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20884 # Fix the shell variable \$srcfile for the compiler.
20885 fix_srcfile_path="$fix_srcfile_path_F77"
20887 # Set to yes if exported symbols are required.
20888 always_export_symbols=$always_export_symbols_F77
20890 # The commands to list exported symbols.
20891 export_symbols_cmds=$lt_export_symbols_cmds_F77
20893 # The commands to extract the exported symbol list from a shared archive.
20894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20896 # Symbols that should not be listed in the preloaded symbols.
20897 exclude_expsyms=$lt_exclude_expsyms_F77
20899 # Symbols that must always be exported.
20900 include_expsyms=$lt_include_expsyms_F77
20902 # ### END LIBTOOL TAG CONFIG: $tagname
20908 # If there is no Makefile yet, we rely on a make rule to execute
20909 # `config.status --recheck' to rerun these tests and create the
20910 # libtool script then.
20911 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20912 if test -f "$ltmain_in"; then
20913 test -f Makefile && make "$ltmain"
20919 ac_cpp='$CPP $CPPFLAGS'
20920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20932 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20934 ac_cpp='$CPP $CPPFLAGS'
20935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20940 # Source file extension for Java test sources.
20943 # Object file extension for compiled Java test sources.
20947 # Code to be used in simple compile tests
20948 lt_simple_compile_test_code="class foo {}\n"
20950 # Code to be used in simple link tests
20951 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20953 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20955 # If no C compiler was specified, use CC.
20958 # Allow CC to be a program name with arguments.
20962 # Allow CC to be a program name with arguments.
20968 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20969 archive_cmds_need_lc_GCJ=no
20972 lt_prog_compiler_no_builtin_flag_GCJ=
20974 if test "$GCC" = yes; then
20975 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20978 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20979 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20980 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 lt_cv_prog_compiler_rtti_exceptions=no
20984 ac_outfile=conftest.$ac_objext
20985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20986 lt_compiler_flag="-fno-rtti -fno-exceptions"
20987 # Insert the option either (1) after the last *FLAGS variable, or
20988 # (2) before a word containing "conftest.", or (3) at the end.
20989 # Note that $ac_compile itself does not contain backslashes and begins
20990 # with a dollar sign (not a hyphen), so the echo should work correctly.
20991 # The option is referenced via a variable to avoid confusing sed.
20992 lt_compile=`echo "$ac_compile" | $SED \
20993 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20995 -e 's:$: $lt_compiler_flag:'`
20996 (eval echo "\"\$as_me:20995: $lt_compile\"" >&5)
20997 (eval "$lt_compile" 2>conftest.err)
20999 cat conftest.err >&5
21000 echo "$as_me:20999: \$? = $ac_status" >&5
21001 if (exit $ac_status) && test -s "$ac_outfile"; then
21002 # The compiler can only warn and ignore the option if not recognized
21003 # So say no if there are warnings
21004 if test ! -s conftest.err; then
21005 lt_cv_prog_compiler_rtti_exceptions=yes
21011 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21012 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21014 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21015 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21022 lt_prog_compiler_wl_GCJ=
21023 lt_prog_compiler_pic_GCJ=
21024 lt_prog_compiler_static_GCJ=
21026 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21027 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21029 if test "$GCC" = yes; then
21030 lt_prog_compiler_wl_GCJ='-Wl,'
21031 lt_prog_compiler_static_GCJ='-static'
21035 # All AIX code is PIC.
21036 if test "$host_cpu" = ia64; then
21037 # AIX 5 now supports IA64 processor
21038 lt_prog_compiler_static_GCJ='-Bstatic'
21043 # FIXME: we need at least 68020 code to build shared libraries, but
21044 # adding the `-m68020' flag to GCC prevents building anything better,
21046 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21049 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21050 # PIC is the default for these OSes.
21053 mingw* | pw32* | os2*)
21054 # This hack is so that the source file can tell whether it is being
21055 # built for inclusion in a dll (and should export symbols for example).
21056 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21059 darwin* | rhapsody*)
21060 # PIC is the default on this platform
21061 # Common symbols not allowed in MH_DYLIB files
21062 lt_prog_compiler_pic_GCJ='-fno-common'
21066 # Just because we use GCC doesn't mean we suddenly get shared libraries
21067 # on systems that don't support them.
21068 lt_prog_compiler_can_build_shared_GCJ=no
21073 if test -d /usr/nec; then
21074 lt_prog_compiler_pic_GCJ=-Kconform_pic
21079 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21080 # not for PA HP-UX.
21081 case "$host_cpu" in
21086 lt_prog_compiler_pic_GCJ='-fPIC'
21092 lt_prog_compiler_pic_GCJ='-fPIC'
21096 # PORTME Check for flag to pass linker flags through the system compiler.
21099 lt_prog_compiler_wl_GCJ='-Wl,'
21100 if test "$host_cpu" = ia64; then
21101 # AIX 5 now supports IA64 processor
21102 lt_prog_compiler_static_GCJ='-Bstatic'
21104 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21108 # PIC is the default on this platform
21109 # Common symbols not allowed in MH_DYLIB files
21110 case "$cc_basename" in
21112 lt_prog_compiler_pic_GCJ='-qnocommon'
21113 lt_prog_compiler_wl_GCJ='-Wl,'
21118 mingw* | pw32* | os2*)
21119 # This hack is so that the source file can tell whether it is being
21120 # built for inclusion in a dll (and should export symbols for example).
21121 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21124 hpux9* | hpux10* | hpux11*)
21125 lt_prog_compiler_wl_GCJ='-Wl,'
21126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21127 # not for PA HP-UX.
21128 case "$host_cpu" in
21133 lt_prog_compiler_pic_GCJ='+Z'
21136 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21137 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21140 irix5* | irix6* | nonstopux*)
21141 lt_prog_compiler_wl_GCJ='-Wl,'
21142 # PIC (with -KPIC) is the default.
21143 lt_prog_compiler_static_GCJ='-non_shared'
21147 lt_prog_compiler_pic_GCJ='-KPIC'
21148 lt_prog_compiler_static_GCJ='-Bstatic'
21154 lt_prog_compiler_wl_GCJ='-Wl,'
21155 lt_prog_compiler_pic_GCJ='-KPIC'
21156 lt_prog_compiler_static_GCJ='-static'
21159 lt_prog_compiler_wl_GCJ='-Wl,'
21160 # All Alpha code is PIC.
21161 lt_prog_compiler_static_GCJ='-non_shared'
21166 osf3* | osf4* | osf5*)
21167 lt_prog_compiler_wl_GCJ='-Wl,'
21168 # All OSF/1 code is PIC.
21169 lt_prog_compiler_static_GCJ='-non_shared'
21173 lt_prog_compiler_pic_GCJ='-Kpic'
21174 lt_prog_compiler_static_GCJ='-dn'
21178 lt_prog_compiler_wl_GCJ='-Wl,'
21179 lt_prog_compiler_pic_GCJ='-KPIC'
21180 lt_prog_compiler_static_GCJ='-Bstatic'
21184 lt_prog_compiler_wl_GCJ='-Qoption ld '
21185 lt_prog_compiler_pic_GCJ='-PIC'
21186 lt_prog_compiler_static_GCJ='-Bstatic'
21189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21190 lt_prog_compiler_wl_GCJ='-Wl,'
21191 lt_prog_compiler_pic_GCJ='-KPIC'
21192 lt_prog_compiler_static_GCJ='-Bstatic'
21196 if test -d /usr/nec ;then
21197 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21198 lt_prog_compiler_static_GCJ='-Bstatic'
21203 lt_prog_compiler_pic_GCJ='-pic'
21204 lt_prog_compiler_static_GCJ='-Bstatic'
21208 lt_prog_compiler_can_build_shared_GCJ=no
21213 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21214 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21217 # Check to make sure the PIC flag actually works.
21219 if test -n "$lt_prog_compiler_pic_GCJ"; then
21221 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21222 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21223 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21224 echo $ECHO_N "(cached) $ECHO_C" >&6
21226 lt_prog_compiler_pic_works_GCJ=no
21227 ac_outfile=conftest.$ac_objext
21228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21229 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21230 # Insert the option either (1) after the last *FLAGS variable, or
21231 # (2) before a word containing "conftest.", or (3) at the end.
21232 # Note that $ac_compile itself does not contain backslashes and begins
21233 # with a dollar sign (not a hyphen), so the echo should work correctly.
21234 # The option is referenced via a variable to avoid confusing sed.
21235 lt_compile=`echo "$ac_compile" | $SED \
21236 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21238 -e 's:$: $lt_compiler_flag:'`
21239 (eval echo "\"\$as_me:21238: $lt_compile\"" >&5)
21240 (eval "$lt_compile" 2>conftest.err)
21242 cat conftest.err >&5
21243 echo "$as_me:21242: \$? = $ac_status" >&5
21244 if (exit $ac_status) && test -s "$ac_outfile"; then
21245 # The compiler can only warn and ignore the option if not recognized
21246 # So say no if there are warnings
21247 if test ! -s conftest.err; then
21248 lt_prog_compiler_pic_works_GCJ=yes
21254 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21255 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21257 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21258 case $lt_prog_compiler_pic_GCJ in
21260 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21263 lt_prog_compiler_pic_GCJ=
21264 lt_prog_compiler_can_build_shared_GCJ=no
21269 # For platforms which do not support PIC, -DPIC is meaningless:
21271 lt_prog_compiler_pic_GCJ=
21274 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21278 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21279 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21280 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 lt_cv_prog_compiler_c_o_GCJ=no
21284 $rm -r conftest 2>/dev/null
21288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21290 lt_compiler_flag="-o out/conftest2.$ac_objext"
21291 # Insert the option either (1) after the last *FLAGS variable, or
21292 # (2) before a word containing "conftest.", or (3) at the end.
21293 # Note that $ac_compile itself does not contain backslashes and begins
21294 # with a dollar sign (not a hyphen), so the echo should work correctly.
21295 lt_compile=`echo "$ac_compile" | $SED \
21296 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21298 -e 's:$: $lt_compiler_flag:'`
21299 (eval echo "\"\$as_me:21298: $lt_compile\"" >&5)
21300 (eval "$lt_compile" 2>out/conftest.err)
21302 cat out/conftest.err >&5
21303 echo "$as_me:21302: \$? = $ac_status" >&5
21304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21306 # The compiler can only warn and ignore the option if not recognized
21307 # So say no if there are warnings
21308 if test ! -s out/conftest.err; then
21309 lt_cv_prog_compiler_c_o_GCJ=yes
21314 # SGI C++ compiler will create directory out/ii_files/ for
21315 # template instantiation
21316 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21317 $rm out/* && rmdir out
21323 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21324 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21327 hard_links="nottested"
21328 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21329 # do not overwrite the value of need_locks provided by the user
21330 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21331 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21336 ln conftest.a conftest.b 2>&5 || hard_links=no
21337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21338 echo "$as_me:$LINENO: result: $hard_links" >&5
21339 echo "${ECHO_T}$hard_links" >&6
21340 if test "$hard_links" = no; then
21341 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21342 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21349 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21350 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21353 allow_undefined_flag_GCJ=
21354 enable_shared_with_static_runtimes_GCJ=no
21356 archive_expsym_cmds_GCJ=
21357 old_archive_From_new_cmds_GCJ=
21358 old_archive_from_expsyms_cmds_GCJ=
21359 export_dynamic_flag_spec_GCJ=
21360 whole_archive_flag_spec_GCJ=
21361 thread_safe_flag_spec_GCJ=
21362 hardcode_libdir_flag_spec_GCJ=
21363 hardcode_libdir_flag_spec_ld_GCJ=
21364 hardcode_libdir_separator_GCJ=
21365 hardcode_direct_GCJ=no
21366 hardcode_minus_L_GCJ=no
21367 hardcode_shlibpath_var_GCJ=unsupported
21368 link_all_deplibs_GCJ=unknown
21369 hardcode_automatic_GCJ=no
21371 module_expsym_cmds_GCJ=
21372 always_export_symbols_GCJ=no
21373 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21374 # include_expsyms should be a list of space-separated symbols to be *always*
21375 # included in the symbol list
21376 include_expsyms_GCJ=
21377 # exclude_expsyms can be an extended regexp of symbols to exclude
21378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21380 # as well as any symbol that contains `d'.
21381 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21383 # platforms (ab)use it in PIC code, but their linkers get confused if
21384 # the symbol is explicitly referenced. Since portable code cannot
21385 # rely on this symbol name, it's probably fine to never include it in
21386 # preloaded symbol tables.
21387 extract_expsyms_cmds=
21390 cygwin* | mingw* | pw32*)
21391 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21392 # When not using gcc, we currently assume that we are using
21393 # Microsoft Visual C++.
21394 if test "$GCC" != yes; then
21404 if test "$with_gnu_ld" = yes; then
21405 # If archive_cmds runs LD, not CC, wlarc should be empty
21408 # See if GNU ld supports shared libraries.
21410 aix3* | aix4* | aix5*)
21411 # On AIX/PPC, the GNU linker is very broken
21412 if test "$host_cpu" != ia64; then
21416 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21417 *** to be unable to reliably create shared libraries on AIX.
21418 *** Therefore, libtool is disabling shared libraries support. If you
21419 *** really care for shared libraries, you may want to modify your PATH
21420 *** so that a non-GNU linker is found, and then restart.
21427 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)'
21428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21429 hardcode_minus_L_GCJ=yes
21431 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21432 # that the semantics of dynamic libraries on AmigaOS, at least up
21433 # to version 4, is to share data among multiple programs linked
21434 # with the same dynamic library. Since this doesn't match the
21435 # behavior of shared libraries on other platforms, we can't use
21441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21442 allow_undefined_flag_GCJ=unsupported
21443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21444 # support --undefined. This deserves some investigation. FIXME
21445 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21451 cygwin* | mingw* | pw32*)
21452 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21453 # as there is no search path for DLLs.
21454 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21455 allow_undefined_flag_GCJ=unsupported
21456 always_export_symbols_GCJ=no
21457 enable_shared_with_static_runtimes_GCJ=yes
21458 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21460 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21462 # If the export-symbols file already is a .def file (1st line
21463 # is EXPORTS), use it as is; otherwise, prepend...
21464 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21465 cp $export_symbols $output_objdir/$soname.def;
21467 echo EXPORTS > $output_objdir/$soname.def;
21468 cat $export_symbols >> $output_objdir/$soname.def;
21470 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21478 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21481 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21482 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21487 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21492 *** create shared libraries on Solaris systems. Therefore, libtool
21493 *** is disabling shared libraries support. We urge you to upgrade GNU
21494 *** binutils to release 2.9.1 or newer. Another option is to modify
21495 *** your PATH or compiler configuration so that the native linker is
21496 *** used, and then restart.
21499 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21508 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21510 hardcode_direct_GCJ=yes
21511 hardcode_shlibpath_var_GCJ=no
21515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21516 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21517 archive_cmds_GCJ="$tmp_archive_cmds"
21518 supports_anon_versioning=no
21519 case `$LD -v 2>/dev/null` in
21520 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21521 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21522 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21523 *\ 2.11.*) ;; # other 2.11 versions
21524 *) supports_anon_versioning=yes ;;
21526 if test $supports_anon_versioning = yes; then
21527 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21529 $echo "local: *; };" >> $output_objdir/$libname.ver~
21530 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21532 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21541 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21542 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21549 if test "$ld_shlibs_GCJ" = yes; then
21550 runpath_var=LD_RUN_PATH
21551 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21552 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21553 # ancient GNU ld didn't support --whole-archive et. al.
21554 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21555 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21557 whole_archive_flag_spec_GCJ=
21561 # PORTME fill in a description of your system's linker (not GNU ld)
21564 allow_undefined_flag_GCJ=unsupported
21565 always_export_symbols_GCJ=yes
21566 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'
21567 # Note: this linker hardcodes the directories in LIBPATH if there
21568 # are no directories specified by -L.
21569 hardcode_minus_L_GCJ=yes
21570 if test "$GCC" = yes && test -z "$link_static_flag"; then
21571 # Neither direct hardcoding nor static linking is supported with a
21573 hardcode_direct_GCJ=unsupported
21578 if test "$host_cpu" = ia64; then
21579 # On IA64, the linker does run time linking by default, so we don't
21580 # have to do anything special.
21581 aix_use_runtimelinking=no
21582 exp_sym_flag='-Bexport'
21585 # If we're using GNU nm, then we don't want the "-C" option.
21586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21587 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21588 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'
21590 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'
21592 aix_use_runtimelinking=no
21594 # Test if we are trying to use run time linking or normal
21595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21596 # need to do runtime linking.
21597 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21598 for ld_flag in $LDFLAGS; do
21599 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21600 aix_use_runtimelinking=yes
21606 exp_sym_flag='-bexport'
21607 no_entry_flag='-bnoentry'
21610 # When large executables or shared objects are built, AIX ld can
21611 # have problems creating the table of contents. If linking a library
21612 # or program results in "error TOC overflow" add -mminimal-toc to
21613 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21614 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21616 archive_cmds_GCJ=''
21617 hardcode_direct_GCJ=yes
21618 hardcode_libdir_separator_GCJ=':'
21619 link_all_deplibs_GCJ=yes
21621 if test "$GCC" = yes; then
21622 case $host_os in aix4.012|aix4.012.*)
21623 # We only want to do this on AIX 4.2 and lower, the check
21624 # below for broken collect2 doesn't work under 4.3+
21625 collect2name=`${CC} -print-prog-name=collect2`
21626 if test -f "$collect2name" && \
21627 strings "$collect2name" | grep resolve_lib_name >/dev/null
21629 # We have reworked collect2
21630 hardcode_direct_GCJ=yes
21632 # We have old collect2
21633 hardcode_direct_GCJ=unsupported
21634 # It fails to find uninstalled libraries when the uninstalled
21635 # path is not listed in the libpath. Setting hardcode_minus_L
21636 # to unsupported forces relinking
21637 hardcode_minus_L_GCJ=yes
21638 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21639 hardcode_libdir_separator_GCJ=
21642 shared_flag='-shared'
21645 if test "$host_cpu" = ia64; then
21646 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21647 # chokes on -Wl,-G. The following line is correct:
21650 if test "$aix_use_runtimelinking" = yes; then
21651 shared_flag='${wl}-G'
21653 shared_flag='${wl}-bM:SRE'
21658 # It seems that -bexpall does not export symbols beginning with
21659 # underscore (_), so it is better to generate a list of symbols to export.
21660 always_export_symbols_GCJ=yes
21661 if test "$aix_use_runtimelinking" = yes; then
21662 # Warning - without using the other runtime loading flags (-brtl),
21663 # -berok will link without error, but may produce a broken library.
21664 allow_undefined_flag_GCJ='-berok'
21665 # Determine the default libpath from the value encoded in an empty executable.
21666 cat >conftest.$ac_ext <<_ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21681 rm -f conftest.$ac_objext conftest$ac_exeext
21682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21683 (eval $ac_link) 2>conftest.er1
21685 grep -v '^ *+' conftest.er1 >conftest.err
21687 cat conftest.err >&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } &&
21690 { ac_try='test -z "$ac_c_werror_flag"
21691 || test ! -s conftest.err'
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; } &&
21697 { ac_try='test -s conftest$ac_exeext'
21698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699 (eval $ac_try) 2>&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; }; then
21704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21706 # Check for a 64-bit object if we didn't find anything.
21707 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; }
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21714 rm -f conftest.err conftest.$ac_objext \
21715 conftest$ac_exeext conftest.$ac_ext
21716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21718 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21719 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"
21721 if test "$host_cpu" = ia64; then
21722 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21723 allow_undefined_flag_GCJ="-z nodefs"
21724 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"
21726 # Determine the default libpath from the value encoded in an empty executable.
21727 cat >conftest.$ac_ext <<_ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h. */
21742 rm -f conftest.$ac_objext conftest$ac_exeext
21743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21744 (eval $ac_link) 2>conftest.er1
21746 grep -v '^ *+' conftest.er1 >conftest.err
21748 cat conftest.err >&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } &&
21751 { ac_try='test -z "$ac_c_werror_flag"
21752 || test ! -s conftest.err'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; } &&
21758 { ac_try='test -s conftest$ac_exeext'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; }; then
21765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21767 # Check for a 64-bit object if we didn't find anything.
21768 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; }
21771 echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21775 rm -f conftest.err conftest.$ac_objext \
21776 conftest$ac_exeext conftest.$ac_ext
21777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21779 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21780 # Warning - without using the other run time loading flags,
21781 # -berok will link without error, but may produce a broken library.
21782 no_undefined_flag_GCJ=' ${wl}-bernotok'
21783 allow_undefined_flag_GCJ=' ${wl}-berok'
21784 # -bexpall does not export symbols beginning with underscore (_)
21785 always_export_symbols_GCJ=yes
21786 # Exported symbols can be pulled into shared objects from archives
21787 whole_archive_flag_spec_GCJ=' '
21788 archive_cmds_need_lc_GCJ=yes
21789 # This is similar to how AIX traditionally builds it's shared libraries.
21790 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'
21796 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)'
21797 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21798 hardcode_minus_L_GCJ=yes
21799 # see comment about different semantics on the GNU ld section
21804 export_dynamic_flag_spec_GCJ=-rdynamic
21807 cygwin* | mingw* | pw32*)
21808 # When not using gcc, we currently assume that we are using
21809 # Microsoft Visual C++.
21810 # hardcode_libdir_flag_spec is actually meaningless, as there is
21811 # no search path for DLLs.
21812 hardcode_libdir_flag_spec_GCJ=' '
21813 allow_undefined_flag_GCJ=unsupported
21814 # Tell ltmain to make .lib files, not .a files.
21816 # Tell ltmain to make .dll files, not .so files.
21818 # FIXME: Setting linknames here is a bad hack.
21819 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21820 # The linker will automatically build a .lib file if we build a DLL.
21821 old_archive_From_new_cmds_GCJ='true'
21822 # FIXME: Should let the user specify the lib program.
21823 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21824 fix_srcfile_path='`cygpath -w "$srcfile"`'
21825 enable_shared_with_static_runtimes_GCJ=yes
21828 darwin* | rhapsody*)
21830 rhapsody* | darwin1.[012])
21831 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21834 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21835 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21837 case ${MACOSX_DEPLOYMENT_TARGET} in
21839 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21842 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21848 archive_cmds_need_lc_GCJ=no
21849 hardcode_direct_GCJ=no
21850 hardcode_automatic_GCJ=yes
21851 hardcode_shlibpath_var_GCJ=unsupported
21852 whole_archive_flag_spec_GCJ=''
21853 link_all_deplibs_GCJ=yes
21854 if test "$GCC" = yes ; then
21855 output_verbose_link_cmd='echo'
21856 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $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 -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $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}'
21862 case "$cc_basename" in
21864 output_verbose_link_cmd='echo'
21865 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21866 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21868 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}'
21869 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}'
21879 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21880 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21881 hardcode_shlibpath_var_GCJ=no
21888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21889 # support. Future versions do this automatically, but an explicit c++rt0.o
21890 # does not break anything, and helps significantly (at the cost of a little
21893 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21895 hardcode_direct_GCJ=yes
21896 hardcode_shlibpath_var_GCJ=no
21899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21901 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21902 hardcode_direct_GCJ=yes
21903 hardcode_minus_L_GCJ=yes
21904 hardcode_shlibpath_var_GCJ=no
21907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21908 freebsd* | kfreebsd*-gnu)
21909 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21910 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21911 hardcode_direct_GCJ=yes
21912 hardcode_shlibpath_var_GCJ=no
21916 if test "$GCC" = yes; then
21917 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'
21919 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'
21921 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21922 hardcode_libdir_separator_GCJ=:
21923 hardcode_direct_GCJ=yes
21925 # hardcode_minus_L: Not really in the search PATH,
21926 # but as the default location of the library.
21927 hardcode_minus_L_GCJ=yes
21928 export_dynamic_flag_spec_GCJ='${wl}-E'
21932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21933 case "$host_cpu" in
21935 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21938 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21942 case "$host_cpu" in
21944 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21947 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21951 if test "$with_gnu_ld" = no; then
21952 case "$host_cpu" in
21954 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21955 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21956 hardcode_libdir_separator_GCJ=:
21957 hardcode_direct_GCJ=no
21958 hardcode_shlibpath_var_GCJ=no
21961 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21962 hardcode_direct_GCJ=no
21963 hardcode_shlibpath_var_GCJ=no
21965 # hardcode_minus_L: Not really in the search PATH,
21966 # but as the default location of the library.
21967 hardcode_minus_L_GCJ=yes
21970 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21971 hardcode_libdir_separator_GCJ=:
21972 hardcode_direct_GCJ=yes
21973 export_dynamic_flag_spec_GCJ='${wl}-E'
21975 # hardcode_minus_L: Not really in the search PATH,
21976 # but as the default location of the library.
21977 hardcode_minus_L_GCJ=yes
21983 irix5* | irix6* | nonstopux*)
21984 if test "$GCC" = yes; then
21985 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'
21987 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'
21988 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21991 hardcode_libdir_separator_GCJ=:
21992 link_all_deplibs_GCJ=yes
21996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21999 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22001 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22002 hardcode_direct_GCJ=yes
22003 hardcode_shlibpath_var_GCJ=no
22007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22008 hardcode_direct_GCJ=yes
22009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22010 hardcode_libdir_separator_GCJ=:
22011 hardcode_shlibpath_var_GCJ=no
22015 hardcode_direct_GCJ=yes
22016 hardcode_shlibpath_var_GCJ=no
22017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22018 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22019 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22020 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22021 export_dynamic_flag_spec_GCJ='${wl}-E'
22024 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22025 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22026 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22029 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22037 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22038 hardcode_minus_L_GCJ=yes
22039 allow_undefined_flag_GCJ=unsupported
22040 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'
22041 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22045 if test "$GCC" = yes; then
22046 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22047 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'
22049 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22050 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'
22052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22053 hardcode_libdir_separator_GCJ=:
22056 osf4* | osf5*) # as osf3* with the addition of -msym flag
22057 if test "$GCC" = yes; then
22058 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22059 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'
22060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22062 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22063 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'
22064 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~
22065 $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'
22067 # Both c and cxx compiler support -rpath directly
22068 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22070 hardcode_libdir_separator_GCJ=:
22074 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22075 hardcode_shlibpath_var_GCJ=no
22076 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22077 runpath_var=LD_RUN_PATH
22078 hardcode_runpath_var=yes
22082 no_undefined_flag_GCJ=' -z text'
22083 if test "$GCC" = yes; then
22084 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22085 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22086 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22088 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22089 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22090 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22092 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22093 hardcode_shlibpath_var_GCJ=no
22095 solaris2.[0-5] | solaris2.[0-5].*) ;;
22096 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22097 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22099 link_all_deplibs_GCJ=yes
22103 if test "x$host_vendor" = xsequent; then
22104 # Use $CC to link under sequent, because it throws in some extra .o
22105 # files that make .init and .fini sections work.
22106 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22108 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22110 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22111 hardcode_direct_GCJ=yes
22112 hardcode_minus_L_GCJ=yes
22113 hardcode_shlibpath_var_GCJ=no
22117 case $host_vendor in
22119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22120 hardcode_direct_GCJ=yes # is this really true???
22123 ## LD is ld it makes a PLAMLIB
22124 ## CC just makes a GrossModule.
22125 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22126 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22127 hardcode_direct_GCJ=no
22130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22131 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22134 runpath_var='LD_RUN_PATH'
22135 hardcode_shlibpath_var_GCJ=no
22139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22140 hardcode_shlibpath_var_GCJ=no
22141 export_dynamic_flag_spec_GCJ='-Bexport'
22145 if test -d /usr/nec; then
22146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22147 hardcode_shlibpath_var_GCJ=no
22148 runpath_var=LD_RUN_PATH
22149 hardcode_runpath_var=yes
22155 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22156 hardcode_direct_GCJ=yes
22157 hardcode_minus_L_GCJ=no
22158 hardcode_shlibpath_var_GCJ=no
22159 hardcode_runpath_var=yes
22160 runpath_var=LD_RUN_PATH
22163 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22164 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22165 if test "$GCC" = yes; then
22166 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22168 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22170 runpath_var='LD_RUN_PATH'
22171 hardcode_shlibpath_var_GCJ=no
22175 no_undefined_flag_GCJ=' -z text'
22176 # $CC -shared without GNU ld will not create a library from C++
22177 # object files and a static libstdc++, better avoid it by now
22178 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22179 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22180 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22181 hardcode_libdir_flag_spec_GCJ=
22182 hardcode_shlibpath_var_GCJ=no
22183 runpath_var='LD_RUN_PATH'
22187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22188 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22189 hardcode_shlibpath_var_GCJ=no
22198 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22199 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22200 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22203 if test "$GCC" = yes; then
22204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22208 # Do we need to explicitly link libc?
22210 case "x$archive_cmds_need_lc_GCJ" in
22212 # Assume -lc should be added
22213 archive_cmds_need_lc_GCJ=yes
22215 if test "$enable_shared" = yes && test "$GCC" = yes; then
22216 case $archive_cmds_GCJ in
22218 # FIXME: we may have to deal with multi-command sequences.
22221 # Test whether the compiler implicitly links with -lc since on some
22222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22223 # to ld, don't add -lc before -lgcc.
22224 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22225 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22227 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22230 (eval $ac_compile) 2>&5
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } 2>conftest.err; then
22236 libobjs=conftest.$ac_objext
22238 wl=$lt_prog_compiler_wl_GCJ
22244 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22245 allow_undefined_flag_GCJ=
22246 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22247 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }
22252 archive_cmds_need_lc_GCJ=no
22254 archive_cmds_need_lc_GCJ=yes
22256 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22258 cat conftest.err 1>&5
22261 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22262 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22269 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22270 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22271 library_names_spec=
22272 libname_spec='lib$name'
22276 postuninstall_cmds=
22280 shlibpath_overrides_runpath=unknown
22282 dynamic_linker="$host_os ld.so"
22283 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22284 if test "$GCC" = yes; then
22285 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22286 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22287 # if the path contains ";" then we assume it to be the separator
22288 # otherwise default to the standard path separator (i.e. ":") - it is
22289 # assumed that no part of a normal pathname contains ";" but that should
22290 # okay in the real world where ";" in dirpaths is itself problematic.
22291 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22293 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22296 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22298 need_lib_prefix=unknown
22299 hardcode_into_libs=no
22301 # when you set need_version to no, make sure it does not cause -set_version
22302 # flags to be left without arguments
22303 need_version=unknown
22308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22309 shlibpath_var=LIBPATH
22311 # AIX 3 has no versioning support, so we append a major version to the name.
22312 soname_spec='${libname}${release}${shared_ext}$major'
22319 hardcode_into_libs=yes
22320 if test "$host_cpu" = ia64; then
22321 # AIX 5 supports IA64
22322 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22323 shlibpath_var=LD_LIBRARY_PATH
22325 # With GCC up to 2.95.x, collect2 would create an import file
22326 # for dependence libraries. The import file would start with
22327 # the line `#! .'. This would cause the generated library to
22328 # depend on `.', always an invalid library. This was fixed in
22329 # development snapshots of GCC prior to 3.0.
22331 aix4 | aix4.[01] | aix4.[01].*)
22332 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22334 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22337 can_build_shared=no
22341 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22342 # soname into executable. Probably we can add versioning support to
22343 # collect2, so additional links can be useful in future.
22344 if test "$aix_use_runtimelinking" = yes; then
22345 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22346 # instead of lib<name>.a to let people know that these are not
22347 # typical AIX shared libraries.
22348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22350 # We preserve .a as extension for shared libraries through AIX4.2
22351 # and later when we are not doing run time linking.
22352 library_names_spec='${libname}${release}.a $libname.a'
22353 soname_spec='${libname}${release}${shared_ext}$major'
22355 shlibpath_var=LIBPATH
22360 library_names_spec='$libname.ixlibrary $libname.a'
22361 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22362 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'
22366 library_names_spec='${libname}${shared_ext}'
22367 dynamic_linker="$host_os ld.so"
22368 shlibpath_var=LIBRARY_PATH
22374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22375 soname_spec='${libname}${release}${shared_ext}$major'
22376 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22377 shlibpath_var=LD_LIBRARY_PATH
22378 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22379 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22380 # the default ld.so.conf also contains /usr/contrib/lib and
22381 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22382 # libtool to hard-code these into programs
22385 cygwin* | mingw* | pw32*)
22386 version_type=windows
22391 case $GCC,$host_os in
22392 yes,cygwin* | yes,mingw* | yes,pw32*)
22393 library_names_spec='$libname.dll.a'
22394 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22395 postinstall_cmds='base_file=`basename \${file}`~
22396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22397 dldir=$destdir/`dirname \$dlpath`~
22398 test -d \$dldir || mkdir -p \$dldir~
22399 $install_prog $dir/$dlname \$dldir/$dlname'
22400 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22401 dlpath=$dir/\$dldll~
22403 shlibpath_overrides_runpath=yes
22407 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22408 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22409 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22412 # MinGW DLLs use traditional 'lib' prefix
22413 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22414 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22415 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22416 # It is most probably a Windows format PATH printed by
22417 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22418 # path with ; separators, and with drive letters. We can handle the
22419 # drive letters (cygwin fileutils understands them), so leave them,
22420 # especially as we might pass files found there to a mingw objdump,
22421 # which wouldn't understand a cygwinified path. Ahh.
22422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22424 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22428 # pw32 DLLs use 'pw' prefix rather than 'lib'
22429 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22435 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22438 dynamic_linker='Win32 ld.exe'
22439 # FIXME: first we should search . and the directory the executable is in
22443 darwin* | rhapsody*)
22444 dynamic_linker="$host_os dyld"
22445 version_type=darwin
22448 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22449 soname_spec='${libname}${release}${major}$shared_ext'
22450 shlibpath_overrides_runpath=yes
22451 shlibpath_var=DYLD_LIBRARY_PATH
22452 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22453 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22454 if test "$GCC" = yes; then
22455 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"`
22457 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22459 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22467 soname_spec='${libname}${release}${shared_ext}$major'
22468 shlibpath_var=LD_LIBRARY_PATH
22479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22480 soname_spec='${libname}${release}${shared_ext}$major'
22481 shlibpath_var=LD_LIBRARY_PATH
22482 shlibpath_overrides_runpath=no
22483 hardcode_into_libs=yes
22484 dynamic_linker='GNU ld.so'
22488 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22489 version_type=freebsd-$objformat
22490 case $version_type in
22492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22497 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22501 shlibpath_var=LD_LIBRARY_PATH
22504 shlibpath_overrides_runpath=yes
22506 freebsd3.01* | freebsdelf3.01*)
22507 shlibpath_overrides_runpath=yes
22508 hardcode_into_libs=yes
22511 shlibpath_overrides_runpath=no
22512 hardcode_into_libs=yes
22521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22522 soname_spec='${libname}${release}${shared_ext}$major'
22523 shlibpath_var=LD_LIBRARY_PATH
22524 hardcode_into_libs=yes
22527 hpux9* | hpux10* | hpux11*)
22528 # Give a soname corresponding to the major version so that dld.sl refuses to
22529 # link against other versions.
22533 case "$host_cpu" in
22536 hardcode_into_libs=yes
22537 dynamic_linker="$host_os dld.so"
22538 shlibpath_var=LD_LIBRARY_PATH
22539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22541 soname_spec='${libname}${release}${shared_ext}$major'
22542 if test "X$HPUX_IA64_MODE" = X32; then
22543 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22545 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22551 hardcode_into_libs=yes
22552 dynamic_linker="$host_os dld.sl"
22553 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22556 soname_spec='${libname}${release}${shared_ext}$major'
22557 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22562 dynamic_linker="$host_os dld.sl"
22563 shlibpath_var=SHLIB_PATH
22564 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22566 soname_spec='${libname}${release}${shared_ext}$major'
22569 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22570 postinstall_cmds='chmod 555 $lib'
22573 irix5* | irix6* | nonstopux*)
22575 nonstopux*) version_type=nonstopux ;;
22577 if test "$lt_cv_prog_gnu_ld" = yes; then
22585 soname_spec='${libname}${release}${shared_ext}$major'
22586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22588 irix5* | nonstopux*)
22589 libsuff= shlibsuff=
22592 case $LD in # libtool.m4 will add one of these switches to LD
22593 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22594 libsuff= shlibsuff= libmagic=32-bit;;
22595 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22596 libsuff=32 shlibsuff=N32 libmagic=N32;;
22597 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22598 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22599 *) libsuff= shlibsuff= libmagic=never-match;;
22603 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22604 shlibpath_overrides_runpath=no
22605 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22606 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22607 hardcode_into_libs=yes
22610 # No shared lib support for Linux oldld, aout, or coff.
22611 linux*oldld* | linux*aout* | linux*coff*)
22615 # This must be Linux ELF.
22620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621 soname_spec='${libname}${release}${shared_ext}$major'
22622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22623 shlibpath_var=LD_LIBRARY_PATH
22624 shlibpath_overrides_runpath=no
22625 # This implies no fast_install, which is unacceptable.
22626 # Some rework will be needed to allow for fast_install
22627 # before this can be enabled.
22628 hardcode_into_libs=yes
22630 # Append ld.so.conf contents to the search path
22631 if test -f /etc/ld.so.conf; then
22632 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22633 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22636 # We used to test for /lib/ld.so.1 and disable shared libraries on
22637 # powerpc, because MkLinux only supported shared libraries with the
22638 # GNU dynamic linker. Since this was broken with cross compilers,
22639 # most powerpc-linux boxes support dynamic linking these days and
22640 # people can always --disable-shared, the test was removed, and we
22641 # assume the GNU/Linux dynamic linker is in use.
22642 dynamic_linker='GNU/Linux ld.so'
22649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22650 soname_spec='${libname}${release}${shared_ext}$major'
22651 shlibpath_var=LD_LIBRARY_PATH
22652 shlibpath_overrides_runpath=no
22653 hardcode_into_libs=yes
22654 dynamic_linker='GNU ld.so'
22661 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22664 dynamic_linker='NetBSD (a.out) ld.so'
22666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22667 soname_spec='${libname}${release}${shared_ext}$major'
22668 dynamic_linker='NetBSD ld.elf_so'
22670 shlibpath_var=LD_LIBRARY_PATH
22671 shlibpath_overrides_runpath=yes
22672 hardcode_into_libs=yes
22677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678 shlibpath_var=LD_LIBRARY_PATH
22679 shlibpath_overrides_runpath=yes
22686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22687 soname_spec='${libname}${release}${shared_ext}$major'
22688 shlibpath_var=LD_LIBRARY_PATH
22689 shlibpath_overrides_runpath=yes
22696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22698 shlibpath_var=LD_LIBRARY_PATH
22699 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22701 openbsd2.[89] | openbsd2.[89].*)
22702 shlibpath_overrides_runpath=no
22705 shlibpath_overrides_runpath=yes
22709 shlibpath_overrides_runpath=yes
22714 libname_spec='$name'
22717 library_names_spec='$libname${shared_ext} $libname.a'
22718 dynamic_linker='OS/2 ld.exe'
22719 shlibpath_var=LIBPATH
22722 osf3* | osf4* | osf5*)
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
22729 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22730 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22735 soname_spec='${libname}${release}${shared_ext}$major'
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737 shlibpath_var=LD_LIBRARY_PATH
22744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22745 soname_spec='${libname}${release}${shared_ext}$major'
22746 shlibpath_var=LD_LIBRARY_PATH
22747 shlibpath_overrides_runpath=yes
22748 hardcode_into_libs=yes
22749 # ldd complains unless libraries are executable
22750 postinstall_cmds='chmod +x $lib'
22755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22757 shlibpath_var=LD_LIBRARY_PATH
22758 shlibpath_overrides_runpath=yes
22759 if test "$with_gnu_ld" = yes; then
22765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22768 soname_spec='${libname}${release}${shared_ext}$major'
22769 shlibpath_var=LD_LIBRARY_PATH
22770 case $host_vendor in
22772 shlibpath_overrides_runpath=no
22774 export_dynamic_flag_spec='${wl}-Blargedynsym'
22775 runpath_var=LD_RUN_PATH
22783 shlibpath_overrides_runpath=no
22784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22790 if test -d /usr/nec ;then
22792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22793 soname_spec='$libname${shared_ext}.$major'
22794 shlibpath_var=LD_LIBRARY_PATH
22800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22801 soname_spec='${libname}${release}${shared_ext}$major'
22802 shlibpath_var=LD_LIBRARY_PATH
22809 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22810 echo "${ECHO_T}$dynamic_linker" >&6
22811 test "$dynamic_linker" = no && can_build_shared=no
22813 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22814 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22815 hardcode_action_GCJ=
22816 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22817 test -n "$runpath_var_GCJ" || \
22818 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22820 # We can hardcode non-existant directories.
22821 if test "$hardcode_direct_GCJ" != no &&
22822 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22823 # have to relink, otherwise we might link with an installed library
22824 # when we should be linking with a yet-to-be-installed one
22825 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22826 test "$hardcode_minus_L_GCJ" != no; then
22827 # Linking always hardcodes the temporary library directory.
22828 hardcode_action_GCJ=relink
22830 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22831 hardcode_action_GCJ=immediate
22834 # We cannot hardcode anything, or else we can only hardcode existing
22836 hardcode_action_GCJ=unsupported
22838 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22839 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22841 if test "$hardcode_action_GCJ" = relink; then
22842 # Fast installation is not supported
22843 enable_fast_install=no
22844 elif test "$shlibpath_overrides_runpath" = yes ||
22845 test "$enable_shared" = no; then
22846 # Fast installation is not necessary
22847 enable_fast_install=needless
22852 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22853 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22854 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22855 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22856 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22857 echo "$as_me:$LINENO: result: yes" >&5
22858 echo "${ECHO_T}yes" >&6
22860 # FIXME - insert some real tests, host_os isn't really good enough
22863 if test -n "$STRIP" ; then
22864 striplib="$STRIP -x"
22865 echo "$as_me:$LINENO: result: yes" >&5
22866 echo "${ECHO_T}yes" >&6
22868 echo "$as_me:$LINENO: result: no" >&5
22869 echo "${ECHO_T}no" >&6
22873 echo "$as_me:$LINENO: result: no" >&5
22874 echo "${ECHO_T}no" >&6
22879 if test "x$enable_dlopen" != xyes; then
22880 enable_dlopen=unknown
22881 enable_dlopen_self=unknown
22882 enable_dlopen_self_static=unknown
22889 lt_cv_dlopen="load_add_on"
22891 lt_cv_dlopen_self=yes
22895 lt_cv_dlopen="LoadLibrary"
22900 lt_cv_dlopen="dlopen"
22905 # if libdl is installed we need to link against it
22906 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22907 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22908 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22911 ac_check_lib_save_LIBS=$LIBS
22913 cat >conftest.$ac_ext <<_ACEOF
22916 cat confdefs.h >>conftest.$ac_ext
22917 cat >>conftest.$ac_ext <<_ACEOF
22918 /* end confdefs.h. */
22920 /* Override any gcc2 internal prototype to avoid an error. */
22924 /* We use char because int might match the return type of a gcc2
22925 builtin and then its argument prototype would still apply. */
22935 rm -f conftest.$ac_objext conftest$ac_exeext
22936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22937 (eval $ac_link) 2>conftest.er1
22939 grep -v '^ *+' conftest.er1 >conftest.err
22941 cat conftest.err >&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } &&
22944 { ac_try='test -z "$ac_c_werror_flag"
22945 || test ! -s conftest.err'
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; } &&
22951 { ac_try='test -s conftest$ac_exeext'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22957 ac_cv_lib_dl_dlopen=yes
22959 echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22962 ac_cv_lib_dl_dlopen=no
22964 rm -f conftest.err conftest.$ac_objext \
22965 conftest$ac_exeext conftest.$ac_ext
22966 LIBS=$ac_check_lib_save_LIBS
22968 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22970 if test $ac_cv_lib_dl_dlopen = yes; then
22971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22974 lt_cv_dlopen="dyld"
22976 lt_cv_dlopen_self=yes
22983 echo "$as_me:$LINENO: checking for shl_load" >&5
22984 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22985 if test "${ac_cv_func_shl_load+set}" = set; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 cat >conftest.$ac_ext <<_ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h. */
22994 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22996 #define shl_load innocuous_shl_load
22998 /* System header to define __stub macros and hopefully few prototypes,
22999 which can conflict with char shl_load (); below.
23000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23001 <limits.h> exists even on freestanding compilers. */
23004 # include <limits.h>
23006 # include <assert.h>
23011 /* Override any gcc2 internal prototype to avoid an error. */
23016 /* We use char because int might match the return type of a gcc2
23017 builtin and then its argument prototype would still apply. */
23019 /* The GNU C library defines this for functions which it implements
23020 to always fail with ENOSYS. Some functions are actually named
23021 something starting with __ and the normal name is an alias. */
23022 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23025 char (*f) () = shl_load;
23034 return f != shl_load;
23039 rm -f conftest.$ac_objext conftest$ac_exeext
23040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23041 (eval $ac_link) 2>conftest.er1
23043 grep -v '^ *+' conftest.er1 >conftest.err
23045 cat conftest.err >&5
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); } &&
23048 { ac_try='test -z "$ac_c_werror_flag"
23049 || test ! -s conftest.err'
23050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051 (eval $ac_try) 2>&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; } &&
23055 { ac_try='test -s conftest$ac_exeext'
23056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057 (eval $ac_try) 2>&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; }; then
23061 ac_cv_func_shl_load=yes
23063 echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23066 ac_cv_func_shl_load=no
23068 rm -f conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
23071 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23072 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23073 if test $ac_cv_func_shl_load = yes; then
23074 lt_cv_dlopen="shl_load"
23076 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23077 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23078 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
23081 ac_check_lib_save_LIBS=$LIBS
23083 cat >conftest.$ac_ext <<_ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23090 /* Override any gcc2 internal prototype to avoid an error. */
23094 /* We use char because int might match the return type of a gcc2
23095 builtin and then its argument prototype would still apply. */
23105 rm -f conftest.$ac_objext conftest$ac_exeext
23106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23107 (eval $ac_link) 2>conftest.er1
23109 grep -v '^ *+' conftest.er1 >conftest.err
23111 cat conftest.err >&5
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); } &&
23114 { ac_try='test -z "$ac_c_werror_flag"
23115 || test ! -s conftest.err'
23116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117 (eval $ac_try) 2>&5
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); }; } &&
23121 { ac_try='test -s conftest$ac_exeext'
23122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; }; then
23127 ac_cv_lib_dld_shl_load=yes
23129 echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23132 ac_cv_lib_dld_shl_load=no
23134 rm -f conftest.err conftest.$ac_objext \
23135 conftest$ac_exeext conftest.$ac_ext
23136 LIBS=$ac_check_lib_save_LIBS
23138 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23139 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23140 if test $ac_cv_lib_dld_shl_load = yes; then
23141 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23143 echo "$as_me:$LINENO: checking for dlopen" >&5
23144 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23145 if test "${ac_cv_func_dlopen+set}" = set; then
23146 echo $ECHO_N "(cached) $ECHO_C" >&6
23148 cat >conftest.$ac_ext <<_ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h. */
23154 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23156 #define dlopen innocuous_dlopen
23158 /* System header to define __stub macros and hopefully few prototypes,
23159 which can conflict with char dlopen (); below.
23160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23161 <limits.h> exists even on freestanding compilers. */
23164 # include <limits.h>
23166 # include <assert.h>
23171 /* Override any gcc2 internal prototype to avoid an error. */
23176 /* We use char because int might match the return type of a gcc2
23177 builtin and then its argument prototype would still apply. */
23179 /* The GNU C library defines this for functions which it implements
23180 to always fail with ENOSYS. Some functions are actually named
23181 something starting with __ and the normal name is an alias. */
23182 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23185 char (*f) () = dlopen;
23194 return f != dlopen;
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23201 (eval $ac_link) 2>conftest.er1
23203 grep -v '^ *+' conftest.er1 >conftest.err
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } &&
23208 { ac_try='test -z "$ac_c_werror_flag"
23209 || test ! -s conftest.err'
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; } &&
23215 { ac_try='test -s conftest$ac_exeext'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 ac_cv_func_dlopen=yes
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 ac_cv_func_dlopen=no
23228 rm -f conftest.err conftest.$ac_objext \
23229 conftest$ac_exeext conftest.$ac_ext
23231 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23232 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23233 if test $ac_cv_func_dlopen = yes; then
23234 lt_cv_dlopen="dlopen"
23236 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23237 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 ac_check_lib_save_LIBS=$LIBS
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23250 /* Override any gcc2 internal prototype to avoid an error. */
23254 /* We use char because int might match the return type of a gcc2
23255 builtin and then its argument prototype would still apply. */
23265 rm -f conftest.$ac_objext conftest$ac_exeext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23267 (eval $ac_link) 2>conftest.er1
23269 grep -v '^ *+' conftest.er1 >conftest.err
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
23274 { ac_try='test -z "$ac_c_werror_flag"
23275 || test ! -s conftest.err'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } &&
23281 { ac_try='test -s conftest$ac_exeext'
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 ac_cv_lib_dl_dlopen=yes
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23292 ac_cv_lib_dl_dlopen=no
23294 rm -f conftest.err conftest.$ac_objext \
23295 conftest$ac_exeext conftest.$ac_ext
23296 LIBS=$ac_check_lib_save_LIBS
23298 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23299 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23300 if test $ac_cv_lib_dl_dlopen = yes; then
23301 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23303 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23304 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23305 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23308 ac_check_lib_save_LIBS=$LIBS
23309 LIBS="-lsvld $LIBS"
23310 cat >conftest.$ac_ext <<_ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h. */
23317 /* Override any gcc2 internal prototype to avoid an error. */
23321 /* We use char because int might match the return type of a gcc2
23322 builtin and then its argument prototype would still apply. */
23332 rm -f conftest.$ac_objext conftest$ac_exeext
23333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23334 (eval $ac_link) 2>conftest.er1
23336 grep -v '^ *+' conftest.er1 >conftest.err
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } &&
23341 { ac_try='test -z "$ac_c_werror_flag"
23342 || test ! -s conftest.err'
23343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344 (eval $ac_try) 2>&5
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; } &&
23348 { ac_try='test -s conftest$ac_exeext'
23349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350 (eval $ac_try) 2>&5
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); }; }; then
23354 ac_cv_lib_svld_dlopen=yes
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23359 ac_cv_lib_svld_dlopen=no
23361 rm -f conftest.err conftest.$ac_objext \
23362 conftest$ac_exeext conftest.$ac_ext
23363 LIBS=$ac_check_lib_save_LIBS
23365 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23366 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23367 if test $ac_cv_lib_svld_dlopen = yes; then
23368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23370 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23371 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23372 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23373 echo $ECHO_N "(cached) $ECHO_C" >&6
23375 ac_check_lib_save_LIBS=$LIBS
23377 cat >conftest.$ac_ext <<_ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23384 /* Override any gcc2 internal prototype to avoid an error. */
23388 /* We use char because int might match the return type of a gcc2
23389 builtin and then its argument prototype would still apply. */
23399 rm -f conftest.$ac_objext conftest$ac_exeext
23400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23401 (eval $ac_link) 2>conftest.er1
23403 grep -v '^ *+' conftest.er1 >conftest.err
23405 cat conftest.err >&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } &&
23408 { ac_try='test -z "$ac_c_werror_flag"
23409 || test ! -s conftest.err'
23410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411 (eval $ac_try) 2>&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); }; } &&
23415 { ac_try='test -s conftest$ac_exeext'
23416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417 (eval $ac_try) 2>&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); }; }; then
23421 ac_cv_lib_dld_dld_link=yes
23423 echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23426 ac_cv_lib_dld_dld_link=no
23428 rm -f conftest.err conftest.$ac_objext \
23429 conftest$ac_exeext conftest.$ac_ext
23430 LIBS=$ac_check_lib_save_LIBS
23432 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23433 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23434 if test $ac_cv_lib_dld_dld_link = yes; then
23435 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23456 if test "x$lt_cv_dlopen" != xno; then
23462 case $lt_cv_dlopen in
23464 save_CPPFLAGS="$CPPFLAGS"
23465 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23467 save_LDFLAGS="$LDFLAGS"
23468 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23471 LIBS="$lt_cv_dlopen_libs $LIBS"
23473 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23474 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23475 if test "${lt_cv_dlopen_self+set}" = set; then
23476 echo $ECHO_N "(cached) $ECHO_C" >&6
23478 if test "$cross_compiling" = yes; then :
23479 lt_cv_dlopen_self=cross
23481 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23482 lt_status=$lt_dlunknown
23483 cat > conftest.$ac_ext <<EOF
23484 #line 23483 "configure"
23485 #include "confdefs.h"
23494 # define LT_DLGLOBAL RTLD_GLOBAL
23497 # define LT_DLGLOBAL DL_GLOBAL
23499 # define LT_DLGLOBAL 0
23503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23504 find out it does not work in some platform. */
23505 #ifndef LT_DLLAZY_OR_NOW
23507 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23510 # define LT_DLLAZY_OR_NOW DL_LAZY
23513 # define LT_DLLAZY_OR_NOW RTLD_NOW
23516 # define LT_DLLAZY_OR_NOW DL_NOW
23518 # define LT_DLLAZY_OR_NOW 0
23526 extern "C" void exit (int);
23529 void fnord() { int i=42;}
23532 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23533 int status = $lt_dlunknown;
23537 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23538 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23539 /* dlclose (self); */
23545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23546 (eval $ac_link) 2>&5
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23550 (./conftest; exit; ) 2>/dev/null
23552 case x$lt_status in
23553 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23554 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23555 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23558 # compilation failed
23559 lt_cv_dlopen_self=no
23566 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23567 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23569 if test "x$lt_cv_dlopen_self" = xyes; then
23570 LDFLAGS="$LDFLAGS $link_static_flag"
23571 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23572 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23573 if test "${lt_cv_dlopen_self_static+set}" = set; then
23574 echo $ECHO_N "(cached) $ECHO_C" >&6
23576 if test "$cross_compiling" = yes; then :
23577 lt_cv_dlopen_self_static=cross
23579 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23580 lt_status=$lt_dlunknown
23581 cat > conftest.$ac_ext <<EOF
23582 #line 23581 "configure"
23583 #include "confdefs.h"
23592 # define LT_DLGLOBAL RTLD_GLOBAL
23595 # define LT_DLGLOBAL DL_GLOBAL
23597 # define LT_DLGLOBAL 0
23601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23602 find out it does not work in some platform. */
23603 #ifndef LT_DLLAZY_OR_NOW
23605 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23608 # define LT_DLLAZY_OR_NOW DL_LAZY
23611 # define LT_DLLAZY_OR_NOW RTLD_NOW
23614 # define LT_DLLAZY_OR_NOW DL_NOW
23616 # define LT_DLLAZY_OR_NOW 0
23624 extern "C" void exit (int);
23627 void fnord() { int i=42;}
23630 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23631 int status = $lt_dlunknown;
23635 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23636 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23637 /* dlclose (self); */
23643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23644 (eval $ac_link) 2>&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23648 (./conftest; exit; ) 2>/dev/null
23650 case x$lt_status in
23651 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23652 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23653 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23656 # compilation failed
23657 lt_cv_dlopen_self_static=no
23664 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23665 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23668 CPPFLAGS="$save_CPPFLAGS"
23669 LDFLAGS="$save_LDFLAGS"
23674 case $lt_cv_dlopen_self in
23675 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23676 *) enable_dlopen_self=unknown ;;
23679 case $lt_cv_dlopen_self_static in
23680 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23681 *) enable_dlopen_self_static=unknown ;;
23686 # The else clause should only fire when bootstrapping the
23687 # libtool distribution, otherwise you forgot to ship ltmain.sh
23688 # with your package, and you will get complaints that there are
23689 # no rules to generate ltmain.sh.
23690 if test -f "$ltmain"; then
23691 # See if we are running on zsh, and set the options which allow our commands through
23692 # without removal of \ escapes.
23693 if test -n "${ZSH_VERSION+set}" ; then
23694 setopt NO_GLOB_SUBST
23696 # Now quote all the things that may contain metacharacters while being
23697 # careful not to overquote the AC_SUBSTed values. We take copies of the
23698 # variables and quote the copies for generation of the libtool script.
23699 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23701 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23702 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23703 deplibs_check_method reload_flag reload_cmds need_locks \
23704 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23705 lt_cv_sys_global_symbol_to_c_name_address \
23706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23707 old_postinstall_cmds old_postuninstall_cmds \
23711 lt_prog_compiler_wl_GCJ \
23712 lt_prog_compiler_pic_GCJ \
23713 lt_prog_compiler_static_GCJ \
23714 lt_prog_compiler_no_builtin_flag_GCJ \
23715 export_dynamic_flag_spec_GCJ \
23716 thread_safe_flag_spec_GCJ \
23717 whole_archive_flag_spec_GCJ \
23718 enable_shared_with_static_runtimes_GCJ \
23719 old_archive_cmds_GCJ \
23720 old_archive_from_new_cmds_GCJ \
23721 predep_objects_GCJ \
23722 postdep_objects_GCJ \
23725 compiler_lib_search_path_GCJ \
23727 archive_expsym_cmds_GCJ \
23728 postinstall_cmds_GCJ \
23729 postuninstall_cmds_GCJ \
23730 old_archive_from_expsyms_cmds_GCJ \
23731 allow_undefined_flag_GCJ \
23732 no_undefined_flag_GCJ \
23733 export_symbols_cmds_GCJ \
23734 hardcode_libdir_flag_spec_GCJ \
23735 hardcode_libdir_flag_spec_ld_GCJ \
23736 hardcode_libdir_separator_GCJ \
23737 hardcode_automatic_GCJ \
23739 module_expsym_cmds_GCJ \
23740 lt_cv_prog_compiler_c_o_GCJ \
23741 exclude_expsyms_GCJ \
23742 include_expsyms_GCJ; do
23745 old_archive_cmds_GCJ | \
23746 old_archive_from_new_cmds_GCJ | \
23747 archive_cmds_GCJ | \
23748 archive_expsym_cmds_GCJ | \
23749 module_cmds_GCJ | \
23750 module_expsym_cmds_GCJ | \
23751 old_archive_from_expsyms_cmds_GCJ | \
23752 export_symbols_cmds_GCJ | \
23753 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23754 postinstall_cmds | postuninstall_cmds | \
23755 old_postinstall_cmds | old_postuninstall_cmds | \
23756 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23757 # Double-quote double-evaled strings.
23758 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23767 *'\$0 --fallback-echo"')
23768 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23774 cat <<__EOF__ >> "$cfgfile"
23775 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23779 # Shell to use when invoking shell scripts.
23782 # Whether or not to build shared libraries.
23783 build_libtool_libs=$enable_shared
23785 # Whether or not to build static libraries.
23786 build_old_libs=$enable_static
23788 # Whether or not to add -lc for building shared libraries.
23789 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23791 # Whether or not to disallow shared libs when runtime libs are static
23792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23794 # Whether or not to optimize for fast installation.
23795 fast_install=$enable_fast_install
23798 host_alias=$host_alias
23801 # An echo program that does not interpret backslashes.
23806 AR_FLAGS=$lt_AR_FLAGS
23811 # A language-specific compiler.
23812 CC=$lt_compiler_GCJ
23814 # Is the compiler the GNU C compiler?
23820 # The linker used to build libraries.
23823 # Whether we need hard or soft links.
23826 # A BSD-compatible nm program.
23829 # A symbol stripping program
23832 # Used to examine libraries when file_magic_cmd begins "file"
23833 MAGIC_CMD=$MAGIC_CMD
23835 # Used on cygwin: DLL creation program.
23838 # Used on cygwin: object dumper.
23841 # Used on cygwin: assembler.
23844 # The name of the directory that contains temporary libtool files.
23847 # How to create reloadable object files.
23848 reload_flag=$lt_reload_flag
23849 reload_cmds=$lt_reload_cmds
23851 # How to pass a linker flag through the compiler.
23852 wl=$lt_lt_prog_compiler_wl_GCJ
23854 # Object file suffix (normally "o").
23855 objext="$ac_objext"
23857 # Old archive suffix (normally "a").
23860 # Shared library suffix (normally ".so").
23861 shrext_cmds='$shrext_cmds'
23863 # Executable file suffix (normally "").
23866 # Additional compiler flags for building library objects.
23867 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23870 # What is the maximum length of a command?
23871 max_cmd_len=$lt_cv_sys_max_cmd_len
23873 # Does compiler simultaneously support -c and -o options?
23874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23876 # Must we lock files when doing compilation ?
23877 need_locks=$lt_need_locks
23879 # Do we need the lib prefix for modules?
23880 need_lib_prefix=$need_lib_prefix
23882 # Do we need a version for libraries?
23883 need_version=$need_version
23885 # Whether dlopen is supported.
23886 dlopen_support=$enable_dlopen
23888 # Whether dlopen of programs is supported.
23889 dlopen_self=$enable_dlopen_self
23891 # Whether dlopen of statically linked programs is supported.
23892 dlopen_self_static=$enable_dlopen_self_static
23894 # Compiler flag to prevent dynamic linking.
23895 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23897 # Compiler flag to turn off builtin functions.
23898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23900 # Compiler flag to allow reflexive dlopens.
23901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23903 # Compiler flag to generate shared objects directly from archives.
23904 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23906 # Compiler flag to generate thread-safe objects.
23907 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23909 # Library versioning type.
23910 version_type=$version_type
23912 # Format of library name prefix.
23913 libname_spec=$lt_libname_spec
23915 # List of archive names. First name is the real one, the rest are links.
23916 # The last name is the one that the linker finds with -lNAME.
23917 library_names_spec=$lt_library_names_spec
23919 # The coded name of the library, if different from the real name.
23920 soname_spec=$lt_soname_spec
23922 # Commands used to build and install an old-style archive.
23924 old_archive_cmds=$lt_old_archive_cmds_GCJ
23925 old_postinstall_cmds=$lt_old_postinstall_cmds
23926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23928 # Create an old-style archive from a shared archive.
23929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23931 # Create a temporary old-style archive to link instead of a shared archive.
23932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23934 # Commands used to build and install a shared archive.
23935 archive_cmds=$lt_archive_cmds_GCJ
23936 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23937 postinstall_cmds=$lt_postinstall_cmds
23938 postuninstall_cmds=$lt_postuninstall_cmds
23940 # Commands used to build a loadable module (assumed same as above if empty)
23941 module_cmds=$lt_module_cmds_GCJ
23942 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23944 # Commands to strip libraries.
23945 old_striplib=$lt_old_striplib
23946 striplib=$lt_striplib
23948 # Dependencies to place before the objects being linked to create a
23950 predep_objects=$lt_predep_objects_GCJ
23952 # Dependencies to place after the objects being linked to create a
23954 postdep_objects=$lt_postdep_objects_GCJ
23956 # Dependencies to place before the objects being linked to create a
23958 predeps=$lt_predeps_GCJ
23960 # Dependencies to place after the objects being linked to create a
23962 postdeps=$lt_postdeps_GCJ
23964 # The library search path used internally by the compiler when linking
23965 # a shared library.
23966 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23968 # Method to check whether dependent libraries are shared objects.
23969 deplibs_check_method=$lt_deplibs_check_method
23971 # Command to use when deplibs_check_method == file_magic.
23972 file_magic_cmd=$lt_file_magic_cmd
23974 # Flag that allows shared libraries with undefined symbols to be built.
23975 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23977 # Flag that forces no undefined symbols.
23978 no_undefined_flag=$lt_no_undefined_flag_GCJ
23980 # Commands used to finish a libtool library installation in a directory.
23981 finish_cmds=$lt_finish_cmds
23983 # Same as above, but a single script fragment to be evaled but not shown.
23984 finish_eval=$lt_finish_eval
23986 # Take the output of nm and produce a listing of raw symbols and C names.
23987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23989 # Transform the output of nm in a proper C declaration
23990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23992 # Transform the output of nm in a C name address pair
23993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23995 # This is the shared library runtime path variable.
23996 runpath_var=$runpath_var
23998 # This is the shared library path variable.
23999 shlibpath_var=$shlibpath_var
24001 # Is shlibpath searched before the hard-coded library search path?
24002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24004 # How to hardcode a shared library path into an executable.
24005 hardcode_action=$hardcode_action_GCJ
24007 # Whether we should hardcode library paths into libraries.
24008 hardcode_into_libs=$hardcode_into_libs
24010 # Flag to hardcode \$libdir into a binary during linking.
24011 # This must work even if \$libdir does not exist.
24012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24014 # If ld is used when linking, flag to hardcode \$libdir into
24015 # a binary during linking. This must work even if \$libdir does
24017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24019 # Whether we need a single -rpath flag with a separated argument.
24020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24023 # resulting binary.
24024 hardcode_direct=$hardcode_direct_GCJ
24026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24027 # resulting binary.
24028 hardcode_minus_L=$hardcode_minus_L_GCJ
24030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24031 # the resulting binary.
24032 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24034 # Set to yes if building a shared library automatically hardcodes DIR into the library
24035 # and all subsequent libraries and executables linked against it.
24036 hardcode_automatic=$hardcode_automatic_GCJ
24038 # Variables whose values should be saved in libtool wrapper scripts and
24039 # restored at relink time.
24040 variables_saved_for_relink="$variables_saved_for_relink"
24042 # Whether libtool must link a program against all its dependency libraries.
24043 link_all_deplibs=$link_all_deplibs_GCJ
24045 # Compile-time system search path for libraries
24046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24048 # Run-time system search path for libraries
24049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24051 # Fix the shell variable \$srcfile for the compiler.
24052 fix_srcfile_path="$fix_srcfile_path_GCJ"
24054 # Set to yes if exported symbols are required.
24055 always_export_symbols=$always_export_symbols_GCJ
24057 # The commands to list exported symbols.
24058 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24060 # The commands to extract the exported symbol list from a shared archive.
24061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24063 # Symbols that should not be listed in the preloaded symbols.
24064 exclude_expsyms=$lt_exclude_expsyms_GCJ
24066 # Symbols that must always be exported.
24067 include_expsyms=$lt_include_expsyms_GCJ
24069 # ### END LIBTOOL TAG CONFIG: $tagname
24075 # If there is no Makefile yet, we rely on a make rule to execute
24076 # `config.status --recheck' to rerun these tests and create the
24077 # libtool script then.
24078 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24079 if test -f "$ltmain_in"; then
24080 test -f Makefile && make "$ltmain"
24086 ac_cpp='$CPP $CPPFLAGS'
24087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24100 ac_cpp='$CPP $CPPFLAGS'
24101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24106 # Source file extension for RC test sources.
24109 # Object file extension for compiled RC test sources.
24113 # Code to be used in simple compile tests
24114 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24116 # Code to be used in simple link tests
24117 lt_simple_link_test_code="$lt_simple_compile_test_code"
24119 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24121 # If no C compiler was specified, use CC.
24124 # Allow CC to be a program name with arguments.
24128 # Allow CC to be a program name with arguments.
24133 lt_cv_prog_compiler_c_o_RC=yes
24135 # The else clause should only fire when bootstrapping the
24136 # libtool distribution, otherwise you forgot to ship ltmain.sh
24137 # with your package, and you will get complaints that there are
24138 # no rules to generate ltmain.sh.
24139 if test -f "$ltmain"; then
24140 # See if we are running on zsh, and set the options which allow our commands through
24141 # without removal of \ escapes.
24142 if test -n "${ZSH_VERSION+set}" ; then
24143 setopt NO_GLOB_SUBST
24145 # Now quote all the things that may contain metacharacters while being
24146 # careful not to overquote the AC_SUBSTed values. We take copies of the
24147 # variables and quote the copies for generation of the libtool script.
24148 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24150 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24151 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24152 deplibs_check_method reload_flag reload_cmds need_locks \
24153 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24154 lt_cv_sys_global_symbol_to_c_name_address \
24155 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24156 old_postinstall_cmds old_postuninstall_cmds \
24160 lt_prog_compiler_wl_RC \
24161 lt_prog_compiler_pic_RC \
24162 lt_prog_compiler_static_RC \
24163 lt_prog_compiler_no_builtin_flag_RC \
24164 export_dynamic_flag_spec_RC \
24165 thread_safe_flag_spec_RC \
24166 whole_archive_flag_spec_RC \
24167 enable_shared_with_static_runtimes_RC \
24168 old_archive_cmds_RC \
24169 old_archive_from_new_cmds_RC \
24170 predep_objects_RC \
24171 postdep_objects_RC \
24174 compiler_lib_search_path_RC \
24176 archive_expsym_cmds_RC \
24177 postinstall_cmds_RC \
24178 postuninstall_cmds_RC \
24179 old_archive_from_expsyms_cmds_RC \
24180 allow_undefined_flag_RC \
24181 no_undefined_flag_RC \
24182 export_symbols_cmds_RC \
24183 hardcode_libdir_flag_spec_RC \
24184 hardcode_libdir_flag_spec_ld_RC \
24185 hardcode_libdir_separator_RC \
24186 hardcode_automatic_RC \
24188 module_expsym_cmds_RC \
24189 lt_cv_prog_compiler_c_o_RC \
24190 exclude_expsyms_RC \
24191 include_expsyms_RC; do
24194 old_archive_cmds_RC | \
24195 old_archive_from_new_cmds_RC | \
24196 archive_cmds_RC | \
24197 archive_expsym_cmds_RC | \
24199 module_expsym_cmds_RC | \
24200 old_archive_from_expsyms_cmds_RC | \
24201 export_symbols_cmds_RC | \
24202 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24203 postinstall_cmds | postuninstall_cmds | \
24204 old_postinstall_cmds | old_postuninstall_cmds | \
24205 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24206 # Double-quote double-evaled strings.
24207 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24210 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24216 *'\$0 --fallback-echo"')
24217 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24223 cat <<__EOF__ >> "$cfgfile"
24224 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24226 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24228 # Shell to use when invoking shell scripts.
24231 # Whether or not to build shared libraries.
24232 build_libtool_libs=$enable_shared
24234 # Whether or not to build static libraries.
24235 build_old_libs=$enable_static
24237 # Whether or not to add -lc for building shared libraries.
24238 build_libtool_need_lc=$archive_cmds_need_lc_RC
24240 # Whether or not to disallow shared libs when runtime libs are static
24241 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24243 # Whether or not to optimize for fast installation.
24244 fast_install=$enable_fast_install
24247 host_alias=$host_alias
24250 # An echo program that does not interpret backslashes.
24255 AR_FLAGS=$lt_AR_FLAGS
24260 # A language-specific compiler.
24263 # Is the compiler the GNU C compiler?
24269 # The linker used to build libraries.
24272 # Whether we need hard or soft links.
24275 # A BSD-compatible nm program.
24278 # A symbol stripping program
24281 # Used to examine libraries when file_magic_cmd begins "file"
24282 MAGIC_CMD=$MAGIC_CMD
24284 # Used on cygwin: DLL creation program.
24287 # Used on cygwin: object dumper.
24290 # Used on cygwin: assembler.
24293 # The name of the directory that contains temporary libtool files.
24296 # How to create reloadable object files.
24297 reload_flag=$lt_reload_flag
24298 reload_cmds=$lt_reload_cmds
24300 # How to pass a linker flag through the compiler.
24301 wl=$lt_lt_prog_compiler_wl_RC
24303 # Object file suffix (normally "o").
24304 objext="$ac_objext"
24306 # Old archive suffix (normally "a").
24309 # Shared library suffix (normally ".so").
24310 shrext_cmds='$shrext_cmds'
24312 # Executable file suffix (normally "").
24315 # Additional compiler flags for building library objects.
24316 pic_flag=$lt_lt_prog_compiler_pic_RC
24319 # What is the maximum length of a command?
24320 max_cmd_len=$lt_cv_sys_max_cmd_len
24322 # Does compiler simultaneously support -c and -o options?
24323 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24325 # Must we lock files when doing compilation ?
24326 need_locks=$lt_need_locks
24328 # Do we need the lib prefix for modules?
24329 need_lib_prefix=$need_lib_prefix
24331 # Do we need a version for libraries?
24332 need_version=$need_version
24334 # Whether dlopen is supported.
24335 dlopen_support=$enable_dlopen
24337 # Whether dlopen of programs is supported.
24338 dlopen_self=$enable_dlopen_self
24340 # Whether dlopen of statically linked programs is supported.
24341 dlopen_self_static=$enable_dlopen_self_static
24343 # Compiler flag to prevent dynamic linking.
24344 link_static_flag=$lt_lt_prog_compiler_static_RC
24346 # Compiler flag to turn off builtin functions.
24347 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24349 # Compiler flag to allow reflexive dlopens.
24350 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24352 # Compiler flag to generate shared objects directly from archives.
24353 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24355 # Compiler flag to generate thread-safe objects.
24356 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24358 # Library versioning type.
24359 version_type=$version_type
24361 # Format of library name prefix.
24362 libname_spec=$lt_libname_spec
24364 # List of archive names. First name is the real one, the rest are links.
24365 # The last name is the one that the linker finds with -lNAME.
24366 library_names_spec=$lt_library_names_spec
24368 # The coded name of the library, if different from the real name.
24369 soname_spec=$lt_soname_spec
24371 # Commands used to build and install an old-style archive.
24373 old_archive_cmds=$lt_old_archive_cmds_RC
24374 old_postinstall_cmds=$lt_old_postinstall_cmds
24375 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24377 # Create an old-style archive from a shared archive.
24378 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24380 # Create a temporary old-style archive to link instead of a shared archive.
24381 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24383 # Commands used to build and install a shared archive.
24384 archive_cmds=$lt_archive_cmds_RC
24385 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24386 postinstall_cmds=$lt_postinstall_cmds
24387 postuninstall_cmds=$lt_postuninstall_cmds
24389 # Commands used to build a loadable module (assumed same as above if empty)
24390 module_cmds=$lt_module_cmds_RC
24391 module_expsym_cmds=$lt_module_expsym_cmds_RC
24393 # Commands to strip libraries.
24394 old_striplib=$lt_old_striplib
24395 striplib=$lt_striplib
24397 # Dependencies to place before the objects being linked to create a
24399 predep_objects=$lt_predep_objects_RC
24401 # Dependencies to place after the objects being linked to create a
24403 postdep_objects=$lt_postdep_objects_RC
24405 # Dependencies to place before the objects being linked to create a
24407 predeps=$lt_predeps_RC
24409 # Dependencies to place after the objects being linked to create a
24411 postdeps=$lt_postdeps_RC
24413 # The library search path used internally by the compiler when linking
24414 # a shared library.
24415 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24417 # Method to check whether dependent libraries are shared objects.
24418 deplibs_check_method=$lt_deplibs_check_method
24420 # Command to use when deplibs_check_method == file_magic.
24421 file_magic_cmd=$lt_file_magic_cmd
24423 # Flag that allows shared libraries with undefined symbols to be built.
24424 allow_undefined_flag=$lt_allow_undefined_flag_RC
24426 # Flag that forces no undefined symbols.
24427 no_undefined_flag=$lt_no_undefined_flag_RC
24429 # Commands used to finish a libtool library installation in a directory.
24430 finish_cmds=$lt_finish_cmds
24432 # Same as above, but a single script fragment to be evaled but not shown.
24433 finish_eval=$lt_finish_eval
24435 # Take the output of nm and produce a listing of raw symbols and C names.
24436 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24438 # Transform the output of nm in a proper C declaration
24439 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24441 # Transform the output of nm in a C name address pair
24442 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24444 # This is the shared library runtime path variable.
24445 runpath_var=$runpath_var
24447 # This is the shared library path variable.
24448 shlibpath_var=$shlibpath_var
24450 # Is shlibpath searched before the hard-coded library search path?
24451 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24453 # How to hardcode a shared library path into an executable.
24454 hardcode_action=$hardcode_action_RC
24456 # Whether we should hardcode library paths into libraries.
24457 hardcode_into_libs=$hardcode_into_libs
24459 # Flag to hardcode \$libdir into a binary during linking.
24460 # This must work even if \$libdir does not exist.
24461 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24463 # If ld is used when linking, flag to hardcode \$libdir into
24464 # a binary during linking. This must work even if \$libdir does
24466 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24468 # Whether we need a single -rpath flag with a separated argument.
24469 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24471 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24472 # resulting binary.
24473 hardcode_direct=$hardcode_direct_RC
24475 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24476 # resulting binary.
24477 hardcode_minus_L=$hardcode_minus_L_RC
24479 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24480 # the resulting binary.
24481 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24483 # Set to yes if building a shared library automatically hardcodes DIR into the library
24484 # and all subsequent libraries and executables linked against it.
24485 hardcode_automatic=$hardcode_automatic_RC
24487 # Variables whose values should be saved in libtool wrapper scripts and
24488 # restored at relink time.
24489 variables_saved_for_relink="$variables_saved_for_relink"
24491 # Whether libtool must link a program against all its dependency libraries.
24492 link_all_deplibs=$link_all_deplibs_RC
24494 # Compile-time system search path for libraries
24495 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24497 # Run-time system search path for libraries
24498 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24500 # Fix the shell variable \$srcfile for the compiler.
24501 fix_srcfile_path="$fix_srcfile_path_RC"
24503 # Set to yes if exported symbols are required.
24504 always_export_symbols=$always_export_symbols_RC
24506 # The commands to list exported symbols.
24507 export_symbols_cmds=$lt_export_symbols_cmds_RC
24509 # The commands to extract the exported symbol list from a shared archive.
24510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24512 # Symbols that should not be listed in the preloaded symbols.
24513 exclude_expsyms=$lt_exclude_expsyms_RC
24515 # Symbols that must always be exported.
24516 include_expsyms=$lt_include_expsyms_RC
24518 # ### END LIBTOOL TAG CONFIG: $tagname
24524 # If there is no Makefile yet, we rely on a make rule to execute
24525 # `config.status --recheck' to rerun these tests and create the
24526 # libtool script then.
24527 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24528 if test -f "$ltmain_in"; then
24529 test -f Makefile && make "$ltmain"
24535 ac_cpp='$CPP $CPPFLAGS'
24536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24545 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24546 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24547 { (exit 1); exit 1; }; }
24551 # Append the new tag name to the list of available tags.
24552 if test -n "$tagname" ; then
24553 available_tags="$available_tags $tagname"
24559 # Now substitute the updated list of available tags.
24560 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24561 mv "${ofile}T" "$ofile"
24565 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24566 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24567 { (exit 1); exit 1; }; }
24573 # This can be used to rebuild libtool when needed
24574 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24576 # Always use our own libtool.
24577 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24579 # Prevent multiple expansion
24601 if test "$lt_cv_dlopen_self" = "yes" ; then
24603 cat >>confdefs.h <<\_ACEOF
24604 #define CAN_DLOPEN_SELF 1
24609 etags_version=`$ETAGS --version 2>&1`
24610 case "$etags_version" in
24611 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24612 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24613 *) ETAGSFLAGS="" ;;
24615 ETAGSFLAGS=$ETAGSFLAGS
24618 if test "$WITH_LLVMGCCDIR" = "default" ; then
24619 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24620 set dummy llvm-gcc; ac_word=$2
24621 echo "$as_me:$LINENO: checking for $ac_word" >&5
24622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24623 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24628 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24632 for as_dir in $PATH
24635 test -z "$as_dir" && as_dir=.
24636 for ac_exec_ext in '' $ac_executable_extensions; do
24637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24638 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24645 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24649 LLVMGCC=$ac_cv_path_LLVMGCC
24651 if test -n "$LLVMGCC"; then
24652 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24653 echo "${ECHO_T}$LLVMGCC" >&6
24655 echo "$as_me:$LINENO: result: no" >&5
24656 echo "${ECHO_T}no" >&6
24659 # Extract the first word of "llvm-g++", so it can be a program name with args.
24660 set dummy llvm-g++; ac_word=$2
24661 echo "$as_me:$LINENO: checking for $ac_word" >&5
24662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24663 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24664 echo $ECHO_N "(cached) $ECHO_C" >&6
24668 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24672 for as_dir in $PATH
24675 test -z "$as_dir" && as_dir=.
24676 for ac_exec_ext in '' $ac_executable_extensions; do
24677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24678 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24685 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24689 LLVMGXX=$ac_cv_path_LLVMGXX
24691 if test -n "$LLVMGXX"; then
24692 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24693 echo "${ECHO_T}$LLVMGXX" >&6
24695 echo "$as_me:$LINENO: result: no" >&5
24696 echo "${ECHO_T}no" >&6
24700 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24701 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24708 echo "$as_me:$LINENO: checking tool compatibility" >&5
24709 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24722 if test "$GCC" != "yes" && test "$ICC" != "yes"
24724 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24725 echo "$as_me: error: gcc|icc required but not found" >&2;}
24726 { (exit 1); exit 1; }; }
24729 if test "$GXX" != "yes" && test "$IXX" != "yes"
24731 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24732 echo "$as_me: error: g++|icc required but not found" >&2;}
24733 { (exit 1); exit 1; }; }
24736 if test "$GCC" = "yes"
24738 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24739 if test "$gccmajor" -lt "3"
24741 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24742 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24743 { (exit 1); exit 1; }; }
24747 if test -z "$llvm_cv_gnu_make_command"
24749 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24750 echo "$as_me: error: GNU Make required but not found" >&2;}
24751 { (exit 1); exit 1; }; }
24754 echo "$as_me:$LINENO: result: ok" >&5
24755 echo "${ECHO_T}ok" >&6
24759 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24760 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24761 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24762 echo $ECHO_N "(cached) $ECHO_C" >&6
24764 ac_check_lib_save_LIBS=$LIBS
24766 cat >conftest.$ac_ext <<_ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h. */
24773 /* Override any gcc2 internal prototype to avoid an error. */
24777 /* We use char because int might match the return type of a gcc2
24778 builtin and then its argument prototype would still apply. */
24788 rm -f conftest.$ac_objext conftest$ac_exeext
24789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24790 (eval $ac_link) 2>conftest.er1
24792 grep -v '^ *+' conftest.er1 >conftest.err
24794 cat conftest.err >&5
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); } &&
24797 { ac_try='test -z "$ac_c_werror_flag"
24798 || test ! -s conftest.err'
24799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800 (eval $ac_try) 2>&5
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); }; } &&
24804 { ac_try='test -s conftest$ac_exeext'
24805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806 (eval $ac_try) 2>&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; }; then
24810 ac_cv_lib_elf_elf_begin=yes
24812 echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24815 ac_cv_lib_elf_elf_begin=no
24817 rm -f conftest.err conftest.$ac_objext \
24818 conftest$ac_exeext conftest.$ac_ext
24819 LIBS=$ac_check_lib_save_LIBS
24821 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24822 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24823 if test $ac_cv_lib_elf_elf_begin = yes; then
24824 cat >>confdefs.h <<_ACEOF
24825 #define HAVE_LIBELF 1
24833 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24834 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24835 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 ac_func_search_save_LIBS=$LIBS
24839 ac_cv_search_lt_dlopen=no
24840 cat >conftest.$ac_ext <<_ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24847 /* Override any gcc2 internal prototype to avoid an error. */
24851 /* We use char because int might match the return type of a gcc2
24852 builtin and then its argument prototype would still apply. */
24862 rm -f conftest.$ac_objext conftest$ac_exeext
24863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24864 (eval $ac_link) 2>conftest.er1
24866 grep -v '^ *+' conftest.er1 >conftest.err
24868 cat conftest.err >&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } &&
24871 { ac_try='test -z "$ac_c_werror_flag"
24872 || test ! -s conftest.err'
24873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24874 (eval $ac_try) 2>&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); }; } &&
24878 { ac_try='test -s conftest$ac_exeext'
24879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880 (eval $ac_try) 2>&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); }; }; then
24884 ac_cv_search_lt_dlopen="none required"
24886 echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24890 rm -f conftest.err conftest.$ac_objext \
24891 conftest$ac_exeext conftest.$ac_ext
24892 if test "$ac_cv_search_lt_dlopen" = no; then
24893 for ac_lib in ltdl; do
24894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24895 cat >conftest.$ac_ext <<_ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24902 /* Override any gcc2 internal prototype to avoid an error. */
24906 /* We use char because int might match the return type of a gcc2
24907 builtin and then its argument prototype would still apply. */
24917 rm -f conftest.$ac_objext conftest$ac_exeext
24918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24919 (eval $ac_link) 2>conftest.er1
24921 grep -v '^ *+' conftest.er1 >conftest.err
24923 cat conftest.err >&5
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } &&
24926 { ac_try='test -z "$ac_c_werror_flag"
24927 || test ! -s conftest.err'
24928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929 (eval $ac_try) 2>&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; } &&
24933 { ac_try='test -s conftest$ac_exeext'
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; }; then
24939 ac_cv_search_lt_dlopen="-l$ac_lib"
24942 echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24946 rm -f conftest.err conftest.$ac_objext \
24947 conftest$ac_exeext conftest.$ac_ext
24950 LIBS=$ac_func_search_save_LIBS
24952 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24953 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24954 if test "$ac_cv_search_lt_dlopen" != no; then
24955 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24957 cat >>confdefs.h <<\_ACEOF
24958 #define HAVE_LT_DLOPEN 1
24962 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24963 not be available" >&5
24964 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24965 not be available" >&2;}
24969 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24970 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24971 if test "${ac_cv_search_dlopen+set}" = set; then
24972 echo $ECHO_N "(cached) $ECHO_C" >&6
24974 ac_func_search_save_LIBS=$LIBS
24975 ac_cv_search_dlopen=no
24976 cat >conftest.$ac_ext <<_ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h. */
24983 /* Override any gcc2 internal prototype to avoid an error. */
24987 /* We use char because int might match the return type of a gcc2
24988 builtin and then its argument prototype would still apply. */
24998 rm -f conftest.$ac_objext conftest$ac_exeext
24999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25000 (eval $ac_link) 2>conftest.er1
25002 grep -v '^ *+' conftest.er1 >conftest.err
25004 cat conftest.err >&5
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); } &&
25007 { ac_try='test -z "$ac_c_werror_flag"
25008 || test ! -s conftest.err'
25009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010 (eval $ac_try) 2>&5
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); }; } &&
25014 { ac_try='test -s conftest$ac_exeext'
25015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 (eval $ac_try) 2>&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
25020 ac_cv_search_dlopen="none required"
25022 echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25026 rm -f conftest.err conftest.$ac_objext \
25027 conftest$ac_exeext conftest.$ac_ext
25028 if test "$ac_cv_search_dlopen" = no; then
25029 for ac_lib in dl; do
25030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25031 cat >conftest.$ac_ext <<_ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h. */
25038 /* Override any gcc2 internal prototype to avoid an error. */
25042 /* We use char because int might match the return type of a gcc2
25043 builtin and then its argument prototype would still apply. */
25053 rm -f conftest.$ac_objext conftest$ac_exeext
25054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25055 (eval $ac_link) 2>conftest.er1
25057 grep -v '^ *+' conftest.er1 >conftest.err
25059 cat conftest.err >&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } &&
25062 { ac_try='test -z "$ac_c_werror_flag"
25063 || test ! -s conftest.err'
25064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065 (eval $ac_try) 2>&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; } &&
25069 { ac_try='test -s conftest$ac_exeext'
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; }; then
25075 ac_cv_search_dlopen="-l$ac_lib"
25078 echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25082 rm -f conftest.err conftest.$ac_objext \
25083 conftest$ac_exeext conftest.$ac_ext
25086 LIBS=$ac_func_search_save_LIBS
25088 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25089 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25090 if test "$ac_cv_search_dlopen" != no; then
25091 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25093 cat >>confdefs.h <<\_ACEOF
25094 #define HAVE_DLOPEN 1
25098 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25099 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25103 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25104 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25105 if test "${ac_cv_search_mallinfo+set}" = set; then
25106 echo $ECHO_N "(cached) $ECHO_C" >&6
25108 ac_func_search_save_LIBS=$LIBS
25109 ac_cv_search_mallinfo=no
25110 cat >conftest.$ac_ext <<_ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h. */
25117 /* Override any gcc2 internal prototype to avoid an error. */
25121 /* We use char because int might match the return type of a gcc2
25122 builtin and then its argument prototype would still apply. */
25132 rm -f conftest.$ac_objext conftest$ac_exeext
25133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25134 (eval $ac_link) 2>conftest.er1
25136 grep -v '^ *+' conftest.er1 >conftest.err
25138 cat conftest.err >&5
25139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140 (exit $ac_status); } &&
25141 { ac_try='test -z "$ac_c_werror_flag"
25142 || test ! -s conftest.err'
25143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144 (eval $ac_try) 2>&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); }; } &&
25148 { ac_try='test -s conftest$ac_exeext'
25149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25150 (eval $ac_try) 2>&5
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); }; }; then
25154 ac_cv_search_mallinfo="none required"
25156 echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25160 rm -f conftest.err conftest.$ac_objext \
25161 conftest$ac_exeext conftest.$ac_ext
25162 if test "$ac_cv_search_mallinfo" = no; then
25163 for ac_lib in malloc; do
25164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25165 cat >conftest.$ac_ext <<_ACEOF
25168 cat confdefs.h >>conftest.$ac_ext
25169 cat >>conftest.$ac_ext <<_ACEOF
25170 /* end confdefs.h. */
25172 /* Override any gcc2 internal prototype to avoid an error. */
25176 /* We use char because int might match the return type of a gcc2
25177 builtin and then its argument prototype would still apply. */
25187 rm -f conftest.$ac_objext conftest$ac_exeext
25188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25189 (eval $ac_link) 2>conftest.er1
25191 grep -v '^ *+' conftest.er1 >conftest.err
25193 cat conftest.err >&5
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); } &&
25196 { ac_try='test -z "$ac_c_werror_flag"
25197 || test ! -s conftest.err'
25198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199 (eval $ac_try) 2>&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; } &&
25203 { ac_try='test -s conftest$ac_exeext'
25204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25205 (eval $ac_try) 2>&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); }; }; then
25209 ac_cv_search_mallinfo="-l$ac_lib"
25212 echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25216 rm -f conftest.err conftest.$ac_objext \
25217 conftest$ac_exeext conftest.$ac_ext
25220 LIBS=$ac_func_search_save_LIBS
25222 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25223 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25224 if test "$ac_cv_search_mallinfo" != no; then
25225 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25227 cat >>confdefs.h <<\_ACEOF
25228 #define HAVE_MALLINFO 1
25234 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25235 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25236 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25237 echo $ECHO_N "(cached) $ECHO_C" >&6
25239 ac_func_search_save_LIBS=$LIBS
25240 ac_cv_search_pthread_mutex_lock=no
25241 cat >conftest.$ac_ext <<_ACEOF
25244 cat confdefs.h >>conftest.$ac_ext
25245 cat >>conftest.$ac_ext <<_ACEOF
25246 /* end confdefs.h. */
25248 /* Override any gcc2 internal prototype to avoid an error. */
25252 /* We use char because int might match the return type of a gcc2
25253 builtin and then its argument prototype would still apply. */
25254 char pthread_mutex_lock ();
25258 pthread_mutex_lock ();
25263 rm -f conftest.$ac_objext conftest$ac_exeext
25264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25265 (eval $ac_link) 2>conftest.er1
25267 grep -v '^ *+' conftest.er1 >conftest.err
25269 cat conftest.err >&5
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); } &&
25272 { ac_try='test -z "$ac_c_werror_flag"
25273 || test ! -s conftest.err'
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; } &&
25279 { ac_try='test -s conftest$ac_exeext'
25280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281 (eval $ac_try) 2>&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); }; }; then
25285 ac_cv_search_pthread_mutex_lock="none required"
25287 echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25291 rm -f conftest.err conftest.$ac_objext \
25292 conftest$ac_exeext conftest.$ac_ext
25293 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25294 for ac_lib in pthread; do
25295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25296 cat >conftest.$ac_ext <<_ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25303 /* Override any gcc2 internal prototype to avoid an error. */
25307 /* We use char because int might match the return type of a gcc2
25308 builtin and then its argument prototype would still apply. */
25309 char pthread_mutex_lock ();
25313 pthread_mutex_lock ();
25318 rm -f conftest.$ac_objext conftest$ac_exeext
25319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25320 (eval $ac_link) 2>conftest.er1
25322 grep -v '^ *+' conftest.er1 >conftest.err
25324 cat conftest.err >&5
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } &&
25327 { ac_try='test -z "$ac_c_werror_flag"
25328 || test ! -s conftest.err'
25329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330 (eval $ac_try) 2>&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); }; } &&
25334 { ac_try='test -s conftest$ac_exeext'
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; }; then
25340 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25343 echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25347 rm -f conftest.err conftest.$ac_objext \
25348 conftest$ac_exeext conftest.$ac_ext
25351 LIBS=$ac_func_search_save_LIBS
25353 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25354 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25355 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25356 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25358 cat >>confdefs.h <<\_ACEOF
25359 #define HAVE_PTHREAD_MUTEX_LOCK 1
25371 ac_header_dirent=no
25372 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25373 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25374 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25375 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25377 echo $ECHO_N "(cached) $ECHO_C" >&6
25379 cat >conftest.$ac_ext <<_ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h. */
25385 #include <sys/types.h>
25397 rm -f conftest.$ac_objext
25398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25399 (eval $ac_compile) 2>conftest.er1
25401 grep -v '^ *+' conftest.er1 >conftest.err
25403 cat conftest.err >&5
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); } &&
25406 { ac_try='test -z "$ac_c_werror_flag"
25407 || test ! -s conftest.err'
25408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409 (eval $ac_try) 2>&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); }; } &&
25413 { ac_try='test -s conftest.$ac_objext'
25414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415 (eval $ac_try) 2>&5
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); }; }; then
25419 eval "$as_ac_Header=yes"
25421 echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25424 eval "$as_ac_Header=no"
25426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25431 cat >>confdefs.h <<_ACEOF
25432 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25435 ac_header_dirent=$ac_hdr; break
25439 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25440 if test $ac_header_dirent = dirent.h; then
25441 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25442 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25443 if test "${ac_cv_search_opendir+set}" = set; then
25444 echo $ECHO_N "(cached) $ECHO_C" >&6
25446 ac_func_search_save_LIBS=$LIBS
25447 ac_cv_search_opendir=no
25448 cat >conftest.$ac_ext <<_ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25455 /* Override any gcc2 internal prototype to avoid an error. */
25459 /* We use char because int might match the return type of a gcc2
25460 builtin and then its argument prototype would still apply. */
25470 rm -f conftest.$ac_objext conftest$ac_exeext
25471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25472 (eval $ac_link) 2>conftest.er1
25474 grep -v '^ *+' conftest.er1 >conftest.err
25476 cat conftest.err >&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } &&
25479 { ac_try='test -z "$ac_c_werror_flag"
25480 || test ! -s conftest.err'
25481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25482 (eval $ac_try) 2>&5
25484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485 (exit $ac_status); }; } &&
25486 { ac_try='test -s conftest$ac_exeext'
25487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25488 (eval $ac_try) 2>&5
25490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491 (exit $ac_status); }; }; then
25492 ac_cv_search_opendir="none required"
25494 echo "$as_me: failed program was:" >&5
25495 sed 's/^/| /' conftest.$ac_ext >&5
25498 rm -f conftest.err conftest.$ac_objext \
25499 conftest$ac_exeext conftest.$ac_ext
25500 if test "$ac_cv_search_opendir" = no; then
25501 for ac_lib in dir; do
25502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25503 cat >conftest.$ac_ext <<_ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h. */
25510 /* Override any gcc2 internal prototype to avoid an error. */
25514 /* We use char because int might match the return type of a gcc2
25515 builtin and then its argument prototype would still apply. */
25525 rm -f conftest.$ac_objext conftest$ac_exeext
25526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25527 (eval $ac_link) 2>conftest.er1
25529 grep -v '^ *+' conftest.er1 >conftest.err
25531 cat conftest.err >&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } &&
25534 { ac_try='test -z "$ac_c_werror_flag"
25535 || test ! -s conftest.err'
25536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25537 (eval $ac_try) 2>&5
25539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540 (exit $ac_status); }; } &&
25541 { ac_try='test -s conftest$ac_exeext'
25542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25543 (eval $ac_try) 2>&5
25545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546 (exit $ac_status); }; }; then
25547 ac_cv_search_opendir="-l$ac_lib"
25550 echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25554 rm -f conftest.err conftest.$ac_objext \
25555 conftest$ac_exeext conftest.$ac_ext
25558 LIBS=$ac_func_search_save_LIBS
25560 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25561 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25562 if test "$ac_cv_search_opendir" != no; then
25563 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25568 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25569 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25570 if test "${ac_cv_search_opendir+set}" = set; then
25571 echo $ECHO_N "(cached) $ECHO_C" >&6
25573 ac_func_search_save_LIBS=$LIBS
25574 ac_cv_search_opendir=no
25575 cat >conftest.$ac_ext <<_ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25582 /* Override any gcc2 internal prototype to avoid an error. */
25586 /* We use char because int might match the return type of a gcc2
25587 builtin and then its argument prototype would still apply. */
25597 rm -f conftest.$ac_objext conftest$ac_exeext
25598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25599 (eval $ac_link) 2>conftest.er1
25601 grep -v '^ *+' conftest.er1 >conftest.err
25603 cat conftest.err >&5
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } &&
25606 { ac_try='test -z "$ac_c_werror_flag"
25607 || test ! -s conftest.err'
25608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609 (eval $ac_try) 2>&5
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); }; } &&
25613 { ac_try='test -s conftest$ac_exeext'
25614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615 (eval $ac_try) 2>&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); }; }; then
25619 ac_cv_search_opendir="none required"
25621 echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25625 rm -f conftest.err conftest.$ac_objext \
25626 conftest$ac_exeext conftest.$ac_ext
25627 if test "$ac_cv_search_opendir" = no; then
25628 for ac_lib in x; do
25629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25630 cat >conftest.$ac_ext <<_ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25637 /* Override any gcc2 internal prototype to avoid an error. */
25641 /* We use char because int might match the return type of a gcc2
25642 builtin and then its argument prototype would still apply. */
25652 rm -f conftest.$ac_objext conftest$ac_exeext
25653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25654 (eval $ac_link) 2>conftest.er1
25656 grep -v '^ *+' conftest.er1 >conftest.err
25658 cat conftest.err >&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); } &&
25661 { ac_try='test -z "$ac_c_werror_flag"
25662 || test ! -s conftest.err'
25663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664 (eval $ac_try) 2>&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); }; } &&
25668 { ac_try='test -s conftest$ac_exeext'
25669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670 (eval $ac_try) 2>&5
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); }; }; then
25674 ac_cv_search_opendir="-l$ac_lib"
25677 echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25681 rm -f conftest.err conftest.$ac_objext \
25682 conftest$ac_exeext conftest.$ac_ext
25685 LIBS=$ac_func_search_save_LIBS
25687 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25688 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25689 if test "$ac_cv_search_opendir" != no; then
25690 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25696 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25697 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25698 if test "${ac_cv_header_mmap_anon+set}" = set; then
25699 echo $ECHO_N "(cached) $ECHO_C" >&6
25702 ac_cpp='$CPP $CPPFLAGS'
25703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25707 cat >conftest.$ac_ext <<_ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h. */
25713 #include <sys/mman.h>
25714 #include <unistd.h>
25719 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25724 rm -f conftest.$ac_objext
25725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25726 (eval $ac_compile) 2>conftest.er1
25728 grep -v '^ *+' conftest.er1 >conftest.err
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } &&
25733 { ac_try='test -z "$ac_c_werror_flag"
25734 || test ! -s conftest.err'
25735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736 (eval $ac_try) 2>&5
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); }; } &&
25740 { ac_try='test -s conftest.$ac_objext'
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; }; then
25746 ac_cv_header_mmap_anon=yes
25748 echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25751 ac_cv_header_mmap_anon=no
25753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25755 ac_cpp='$CPP $CPPFLAGS'
25756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25762 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25763 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25764 if test "$ac_cv_header_mmap_anon" = yes; then
25766 cat >>confdefs.h <<\_ACEOF
25767 #define HAVE_MMAP_ANONYMOUS 1
25772 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25773 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25774 if test "${ac_cv_header_stat_broken+set}" = set; then
25775 echo $ECHO_N "(cached) $ECHO_C" >&6
25777 cat >conftest.$ac_ext <<_ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h. */
25783 #include <sys/types.h>
25784 #include <sys/stat.h>
25786 #if defined(S_ISBLK) && defined(S_IFDIR)
25787 # if S_ISBLK (S_IFDIR)
25792 #if defined(S_ISBLK) && defined(S_IFCHR)
25793 # if S_ISBLK (S_IFCHR)
25798 #if defined(S_ISLNK) && defined(S_IFREG)
25799 # if S_ISLNK (S_IFREG)
25804 #if defined(S_ISSOCK) && defined(S_IFREG)
25805 # if S_ISSOCK (S_IFREG)
25811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25812 $EGREP "You lose" >/dev/null 2>&1; then
25813 ac_cv_header_stat_broken=yes
25815 ac_cv_header_stat_broken=no
25820 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25821 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25822 if test $ac_cv_header_stat_broken = yes; then
25824 cat >>confdefs.h <<\_ACEOF
25825 #define STAT_MACROS_BROKEN 1
25830 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25831 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25832 if test "${ac_cv_header_stdc+set}" = set; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25835 cat >conftest.$ac_ext <<_ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h. */
25841 #include <stdlib.h>
25842 #include <stdarg.h>
25843 #include <string.h>
25854 rm -f conftest.$ac_objext
25855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25856 (eval $ac_compile) 2>conftest.er1
25858 grep -v '^ *+' conftest.er1 >conftest.err
25860 cat conftest.err >&5
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); } &&
25863 { ac_try='test -z "$ac_c_werror_flag"
25864 || test ! -s conftest.err'
25865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866 (eval $ac_try) 2>&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); }; } &&
25870 { ac_try='test -s conftest.$ac_objext'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; }; then
25876 ac_cv_header_stdc=yes
25878 echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25881 ac_cv_header_stdc=no
25883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25885 if test $ac_cv_header_stdc = yes; then
25886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25887 cat >conftest.$ac_ext <<_ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h. */
25893 #include <string.h>
25896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25897 $EGREP "memchr" >/dev/null 2>&1; then
25900 ac_cv_header_stdc=no
25906 if test $ac_cv_header_stdc = yes; then
25907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25908 cat >conftest.$ac_ext <<_ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h. */
25914 #include <stdlib.h>
25917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25918 $EGREP "free" >/dev/null 2>&1; then
25921 ac_cv_header_stdc=no
25927 if test $ac_cv_header_stdc = yes; then
25928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25929 if test "$cross_compiling" = yes; then
25932 cat >conftest.$ac_ext <<_ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h. */
25939 #if ((' ' & 0x0FF) == 0x020)
25940 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25941 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25943 # define ISLOWER(c) \
25944 (('a' <= (c) && (c) <= 'i') \
25945 || ('j' <= (c) && (c) <= 'r') \
25946 || ('s' <= (c) && (c) <= 'z'))
25947 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25955 for (i = 0; i < 256; i++)
25956 if (XOR (islower (i), ISLOWER (i))
25957 || toupper (i) != TOUPPER (i))
25962 rm -f conftest$ac_exeext
25963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25964 (eval $ac_link) 2>&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25969 (eval $ac_try) 2>&5
25971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); }; }; then
25975 echo "$as_me: program exited with status $ac_status" >&5
25976 echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25979 ( exit $ac_status )
25980 ac_cv_header_stdc=no
25982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25986 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25987 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25988 if test $ac_cv_header_stdc = yes; then
25990 cat >>confdefs.h <<\_ACEOF
25991 #define STDC_HEADERS 1
25996 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25997 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25998 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 cat >conftest.$ac_ext <<_ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h. */
26007 #include <sys/types.h>
26008 #include <sys/wait.h>
26009 #ifndef WEXITSTATUS
26010 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26013 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26021 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26026 rm -f conftest.$ac_objext
26027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26028 (eval $ac_compile) 2>conftest.er1
26030 grep -v '^ *+' conftest.er1 >conftest.err
26032 cat conftest.err >&5
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } &&
26035 { ac_try='test -z "$ac_c_werror_flag"
26036 || test ! -s conftest.err'
26037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26038 (eval $ac_try) 2>&5
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); }; } &&
26042 { ac_try='test -s conftest.$ac_objext'
26043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044 (eval $ac_try) 2>&5
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); }; }; then
26048 ac_cv_header_sys_wait_h=yes
26050 echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26053 ac_cv_header_sys_wait_h=no
26055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26057 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26058 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26059 if test $ac_cv_header_sys_wait_h = yes; then
26061 cat >>confdefs.h <<\_ACEOF
26062 #define HAVE_SYS_WAIT_H 1
26067 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26068 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26069 if test "${ac_cv_header_time+set}" = set; then
26070 echo $ECHO_N "(cached) $ECHO_C" >&6
26072 cat >conftest.$ac_ext <<_ACEOF
26075 cat confdefs.h >>conftest.$ac_ext
26076 cat >>conftest.$ac_ext <<_ACEOF
26077 /* end confdefs.h. */
26078 #include <sys/types.h>
26079 #include <sys/time.h>
26085 if ((struct tm *) 0)
26091 rm -f conftest.$ac_objext
26092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26093 (eval $ac_compile) 2>conftest.er1
26095 grep -v '^ *+' conftest.er1 >conftest.err
26097 cat conftest.err >&5
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } &&
26100 { ac_try='test -z "$ac_c_werror_flag"
26101 || test ! -s conftest.err'
26102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103 (eval $ac_try) 2>&5
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); }; } &&
26107 { ac_try='test -s conftest.$ac_objext'
26108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109 (eval $ac_try) 2>&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); }; }; then
26113 ac_cv_header_time=yes
26115 echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26118 ac_cv_header_time=no
26120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26122 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26123 echo "${ECHO_T}$ac_cv_header_time" >&6
26124 if test $ac_cv_header_time = yes; then
26126 cat >>confdefs.h <<\_ACEOF
26127 #define TIME_WITH_SYS_TIME 1
26139 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26143 echo "$as_me:$LINENO: checking for $ac_header" >&5
26144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26146 echo $ECHO_N "(cached) $ECHO_C" >&6
26148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26151 # Is the header compilable?
26152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26154 cat >conftest.$ac_ext <<_ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26160 $ac_includes_default
26161 #include <$ac_header>
26163 rm -f conftest.$ac_objext
26164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26165 (eval $ac_compile) 2>conftest.er1
26167 grep -v '^ *+' conftest.er1 >conftest.err
26169 cat conftest.err >&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); } &&
26172 { ac_try='test -z "$ac_c_werror_flag"
26173 || test ! -s conftest.err'
26174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175 (eval $ac_try) 2>&5
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); }; } &&
26179 { ac_try='test -s conftest.$ac_objext'
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; }; then
26185 ac_header_compiler=yes
26187 echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26190 ac_header_compiler=no
26192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26194 echo "${ECHO_T}$ac_header_compiler" >&6
26196 # Is the header present?
26197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26199 cat >conftest.$ac_ext <<_ACEOF
26202 cat confdefs.h >>conftest.$ac_ext
26203 cat >>conftest.$ac_ext <<_ACEOF
26204 /* end confdefs.h. */
26205 #include <$ac_header>
26207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26210 grep -v '^ *+' conftest.er1 >conftest.err
26212 cat conftest.err >&5
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } >/dev/null; then
26215 if test -s conftest.err; then
26216 ac_cpp_err=$ac_c_preproc_warn_flag
26217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26224 if test -z "$ac_cpp_err"; then
26225 ac_header_preproc=yes
26227 echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26230 ac_header_preproc=no
26232 rm -f conftest.err conftest.$ac_ext
26233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26234 echo "${ECHO_T}$ac_header_preproc" >&6
26236 # So? What about this header?
26237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26243 ac_header_preproc=yes
26246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26260 ## ----------------------------------- ##
26261 ## Report this to llvmbugs@cs.uiuc.edu ##
26262 ## ----------------------------------- ##
26265 sed "s/^/$as_me: WARNING: /" >&2
26268 echo "$as_me:$LINENO: checking for $ac_header" >&5
26269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26271 echo $ECHO_N "(cached) $ECHO_C" >&6
26273 eval "$as_ac_Header=\$ac_header_preproc"
26275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26280 cat >>confdefs.h <<_ACEOF
26281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26294 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26298 echo "$as_me:$LINENO: checking for $ac_header" >&5
26299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26301 echo $ECHO_N "(cached) $ECHO_C" >&6
26303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26306 # Is the header compilable?
26307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26309 cat >conftest.$ac_ext <<_ACEOF
26312 cat confdefs.h >>conftest.$ac_ext
26313 cat >>conftest.$ac_ext <<_ACEOF
26314 /* end confdefs.h. */
26315 $ac_includes_default
26316 #include <$ac_header>
26318 rm -f conftest.$ac_objext
26319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26320 (eval $ac_compile) 2>conftest.er1
26322 grep -v '^ *+' conftest.er1 >conftest.err
26324 cat conftest.err >&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); } &&
26327 { ac_try='test -z "$ac_c_werror_flag"
26328 || test ! -s conftest.err'
26329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26330 (eval $ac_try) 2>&5
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); }; } &&
26334 { ac_try='test -s conftest.$ac_objext'
26335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26336 (eval $ac_try) 2>&5
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); }; }; then
26340 ac_header_compiler=yes
26342 echo "$as_me: failed program was:" >&5
26343 sed 's/^/| /' conftest.$ac_ext >&5
26345 ac_header_compiler=no
26347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26349 echo "${ECHO_T}$ac_header_compiler" >&6
26351 # Is the header present?
26352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26354 cat >conftest.$ac_ext <<_ACEOF
26357 cat confdefs.h >>conftest.$ac_ext
26358 cat >>conftest.$ac_ext <<_ACEOF
26359 /* end confdefs.h. */
26360 #include <$ac_header>
26362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26365 grep -v '^ *+' conftest.er1 >conftest.err
26367 cat conftest.err >&5
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); } >/dev/null; then
26370 if test -s conftest.err; then
26371 ac_cpp_err=$ac_c_preproc_warn_flag
26372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26379 if test -z "$ac_cpp_err"; then
26380 ac_header_preproc=yes
26382 echo "$as_me: failed program was:" >&5
26383 sed 's/^/| /' conftest.$ac_ext >&5
26385 ac_header_preproc=no
26387 rm -f conftest.err conftest.$ac_ext
26388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26389 echo "${ECHO_T}$ac_header_preproc" >&6
26391 # So? What about this header?
26392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26398 ac_header_preproc=yes
26401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26415 ## ----------------------------------- ##
26416 ## Report this to llvmbugs@cs.uiuc.edu ##
26417 ## ----------------------------------- ##
26420 sed "s/^/$as_me: WARNING: /" >&2
26423 echo "$as_me:$LINENO: checking for $ac_header" >&5
26424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26426 echo $ECHO_N "(cached) $ECHO_C" >&6
26428 eval "$as_ac_Header=\$ac_header_preproc"
26430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26435 cat >>confdefs.h <<_ACEOF
26436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26448 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26452 echo "$as_me:$LINENO: checking for $ac_header" >&5
26453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26455 echo $ECHO_N "(cached) $ECHO_C" >&6
26457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26460 # Is the header compilable?
26461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26463 cat >conftest.$ac_ext <<_ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h. */
26469 $ac_includes_default
26470 #include <$ac_header>
26472 rm -f conftest.$ac_objext
26473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26474 (eval $ac_compile) 2>conftest.er1
26476 grep -v '^ *+' conftest.er1 >conftest.err
26478 cat conftest.err >&5
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); } &&
26481 { ac_try='test -z "$ac_c_werror_flag"
26482 || test ! -s conftest.err'
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; } &&
26488 { ac_try='test -s conftest.$ac_objext'
26489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490 (eval $ac_try) 2>&5
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); }; }; then
26494 ac_header_compiler=yes
26496 echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26499 ac_header_compiler=no
26501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26503 echo "${ECHO_T}$ac_header_compiler" >&6
26505 # Is the header present?
26506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26508 cat >conftest.$ac_ext <<_ACEOF
26511 cat confdefs.h >>conftest.$ac_ext
26512 cat >>conftest.$ac_ext <<_ACEOF
26513 /* end confdefs.h. */
26514 #include <$ac_header>
26516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26519 grep -v '^ *+' conftest.er1 >conftest.err
26521 cat conftest.err >&5
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); } >/dev/null; then
26524 if test -s conftest.err; then
26525 ac_cpp_err=$ac_c_preproc_warn_flag
26526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26533 if test -z "$ac_cpp_err"; then
26534 ac_header_preproc=yes
26536 echo "$as_me: failed program was:" >&5
26537 sed 's/^/| /' conftest.$ac_ext >&5
26539 ac_header_preproc=no
26541 rm -f conftest.err conftest.$ac_ext
26542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26543 echo "${ECHO_T}$ac_header_preproc" >&6
26545 # So? What about this header?
26546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26552 ac_header_preproc=yes
26555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26569 ## ----------------------------------- ##
26570 ## Report this to llvmbugs@cs.uiuc.edu ##
26571 ## ----------------------------------- ##
26574 sed "s/^/$as_me: WARNING: /" >&2
26577 echo "$as_me:$LINENO: checking for $ac_header" >&5
26578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26580 echo $ECHO_N "(cached) $ECHO_C" >&6
26582 eval "$as_ac_Header=\$ac_header_preproc"
26584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26589 cat >>confdefs.h <<_ACEOF
26590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26599 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26603 echo "$as_me:$LINENO: checking for $ac_header" >&5
26604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26606 echo $ECHO_N "(cached) $ECHO_C" >&6
26608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26611 # Is the header compilable?
26612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26614 cat >conftest.$ac_ext <<_ACEOF
26617 cat confdefs.h >>conftest.$ac_ext
26618 cat >>conftest.$ac_ext <<_ACEOF
26619 /* end confdefs.h. */
26620 $ac_includes_default
26621 #include <$ac_header>
26623 rm -f conftest.$ac_objext
26624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26625 (eval $ac_compile) 2>conftest.er1
26627 grep -v '^ *+' conftest.er1 >conftest.err
26629 cat conftest.err >&5
26630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631 (exit $ac_status); } &&
26632 { ac_try='test -z "$ac_c_werror_flag"
26633 || test ! -s conftest.err'
26634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635 (eval $ac_try) 2>&5
26637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638 (exit $ac_status); }; } &&
26639 { ac_try='test -s conftest.$ac_objext'
26640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26641 (eval $ac_try) 2>&5
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); }; }; then
26645 ac_header_compiler=yes
26647 echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.$ac_ext >&5
26650 ac_header_compiler=no
26652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26654 echo "${ECHO_T}$ac_header_compiler" >&6
26656 # Is the header present?
26657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26659 cat >conftest.$ac_ext <<_ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h. */
26665 #include <$ac_header>
26667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26670 grep -v '^ *+' conftest.er1 >conftest.err
26672 cat conftest.err >&5
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); } >/dev/null; then
26675 if test -s conftest.err; then
26676 ac_cpp_err=$ac_c_preproc_warn_flag
26677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26684 if test -z "$ac_cpp_err"; then
26685 ac_header_preproc=yes
26687 echo "$as_me: failed program was:" >&5
26688 sed 's/^/| /' conftest.$ac_ext >&5
26690 ac_header_preproc=no
26692 rm -f conftest.err conftest.$ac_ext
26693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26694 echo "${ECHO_T}$ac_header_preproc" >&6
26696 # So? What about this header?
26697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26703 ac_header_preproc=yes
26706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26720 ## ----------------------------------- ##
26721 ## Report this to llvmbugs@cs.uiuc.edu ##
26722 ## ----------------------------------- ##
26725 sed "s/^/$as_me: WARNING: /" >&2
26728 echo "$as_me:$LINENO: checking for $ac_header" >&5
26729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26731 echo $ECHO_N "(cached) $ECHO_C" >&6
26733 eval "$as_ac_Header=\$ac_header_preproc"
26735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26740 cat >>confdefs.h <<_ACEOF
26741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26750 echo "$as_me:$LINENO: checking for pid_t" >&5
26751 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26752 if test "${ac_cv_type_pid_t+set}" = set; then
26753 echo $ECHO_N "(cached) $ECHO_C" >&6
26755 cat >conftest.$ac_ext <<_ACEOF
26758 cat confdefs.h >>conftest.$ac_ext
26759 cat >>conftest.$ac_ext <<_ACEOF
26760 /* end confdefs.h. */
26761 $ac_includes_default
26767 if (sizeof (pid_t))
26773 rm -f conftest.$ac_objext
26774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26775 (eval $ac_compile) 2>conftest.er1
26777 grep -v '^ *+' conftest.er1 >conftest.err
26779 cat conftest.err >&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); } &&
26782 { ac_try='test -z "$ac_c_werror_flag"
26783 || test ! -s conftest.err'
26784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785 (eval $ac_try) 2>&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; } &&
26789 { ac_try='test -s conftest.$ac_objext'
26790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791 (eval $ac_try) 2>&5
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; }; then
26795 ac_cv_type_pid_t=yes
26797 echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.$ac_ext >&5
26800 ac_cv_type_pid_t=no
26802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26804 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26805 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26806 if test $ac_cv_type_pid_t = yes; then
26810 cat >>confdefs.h <<_ACEOF
26816 echo "$as_me:$LINENO: checking for size_t" >&5
26817 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26818 if test "${ac_cv_type_size_t+set}" = set; then
26819 echo $ECHO_N "(cached) $ECHO_C" >&6
26821 cat >conftest.$ac_ext <<_ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h. */
26827 $ac_includes_default
26833 if (sizeof (size_t))
26839 rm -f conftest.$ac_objext
26840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26841 (eval $ac_compile) 2>conftest.er1
26843 grep -v '^ *+' conftest.er1 >conftest.err
26845 cat conftest.err >&5
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); } &&
26848 { ac_try='test -z "$ac_c_werror_flag"
26849 || test ! -s conftest.err'
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; } &&
26855 { ac_try='test -s conftest.$ac_objext'
26856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857 (eval $ac_try) 2>&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); }; }; then
26861 ac_cv_type_size_t=yes
26863 echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26866 ac_cv_type_size_t=no
26868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26870 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26871 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26872 if test $ac_cv_type_size_t = yes; then
26876 cat >>confdefs.h <<_ACEOF
26877 #define size_t unsigned
26882 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26883 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26884 if test "${ac_cv_type_signal+set}" = set; then
26885 echo $ECHO_N "(cached) $ECHO_C" >&6
26887 cat >conftest.$ac_ext <<_ACEOF
26890 cat confdefs.h >>conftest.$ac_ext
26891 cat >>conftest.$ac_ext <<_ACEOF
26892 /* end confdefs.h. */
26893 #include <sys/types.h>
26894 #include <signal.h>
26899 extern "C" void (*signal (int, void (*)(int)))(int);
26901 void (*signal ()) ();
26912 rm -f conftest.$ac_objext
26913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26914 (eval $ac_compile) 2>conftest.er1
26916 grep -v '^ *+' conftest.er1 >conftest.err
26918 cat conftest.err >&5
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); } &&
26921 { ac_try='test -z "$ac_c_werror_flag"
26922 || test ! -s conftest.err'
26923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26924 (eval $ac_try) 2>&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); }; } &&
26928 { ac_try='test -s conftest.$ac_objext'
26929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26930 (eval $ac_try) 2>&5
26932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933 (exit $ac_status); }; }; then
26934 ac_cv_type_signal=void
26936 echo "$as_me: failed program was:" >&5
26937 sed 's/^/| /' conftest.$ac_ext >&5
26939 ac_cv_type_signal=int
26941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26943 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26944 echo "${ECHO_T}$ac_cv_type_signal" >&6
26946 cat >>confdefs.h <<_ACEOF
26947 #define RETSIGTYPE $ac_cv_type_signal
26951 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26952 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26953 if test "${ac_cv_struct_tm+set}" = set; then
26954 echo $ECHO_N "(cached) $ECHO_C" >&6
26956 cat >conftest.$ac_ext <<_ACEOF
26959 cat confdefs.h >>conftest.$ac_ext
26960 cat >>conftest.$ac_ext <<_ACEOF
26961 /* end confdefs.h. */
26962 #include <sys/types.h>
26968 struct tm *tp; tp->tm_sec;
26973 rm -f conftest.$ac_objext
26974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26975 (eval $ac_compile) 2>conftest.er1
26977 grep -v '^ *+' conftest.er1 >conftest.err
26979 cat conftest.err >&5
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); } &&
26982 { ac_try='test -z "$ac_c_werror_flag"
26983 || test ! -s conftest.err'
26984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26985 (eval $ac_try) 2>&5
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); }; } &&
26989 { ac_try='test -s conftest.$ac_objext'
26990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26991 (eval $ac_try) 2>&5
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); }; }; then
26995 ac_cv_struct_tm=time.h
26997 echo "$as_me: failed program was:" >&5
26998 sed 's/^/| /' conftest.$ac_ext >&5
27000 ac_cv_struct_tm=sys/time.h
27002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27004 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27005 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27006 if test $ac_cv_struct_tm = sys/time.h; then
27008 cat >>confdefs.h <<\_ACEOF
27009 #define TM_IN_SYS_TIME 1
27014 echo "$as_me:$LINENO: checking for int64_t" >&5
27015 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27016 if test "${ac_cv_type_int64_t+set}" = set; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
27019 cat >conftest.$ac_ext <<_ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h. */
27025 $ac_includes_default
27031 if (sizeof (int64_t))
27037 rm -f conftest.$ac_objext
27038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27039 (eval $ac_compile) 2>conftest.er1
27041 grep -v '^ *+' conftest.er1 >conftest.err
27043 cat conftest.err >&5
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); } &&
27046 { ac_try='test -z "$ac_c_werror_flag"
27047 || test ! -s conftest.err'
27048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049 (eval $ac_try) 2>&5
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); }; } &&
27053 { ac_try='test -s conftest.$ac_objext'
27054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055 (eval $ac_try) 2>&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; }; then
27059 ac_cv_type_int64_t=yes
27061 echo "$as_me: failed program was:" >&5
27062 sed 's/^/| /' conftest.$ac_ext >&5
27064 ac_cv_type_int64_t=no
27066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27068 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27069 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27070 if test $ac_cv_type_int64_t = yes; then
27072 cat >>confdefs.h <<_ACEOF
27073 #define HAVE_INT64_T 1
27078 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27079 echo "$as_me: error: Type int64_t required but not found" >&2;}
27080 { (exit 1); exit 1; }; }
27083 echo "$as_me:$LINENO: checking for uint64_t" >&5
27084 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27085 if test "${ac_cv_type_uint64_t+set}" = set; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27088 cat >conftest.$ac_ext <<_ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h. */
27094 $ac_includes_default
27098 if ((uint64_t *) 0)
27100 if (sizeof (uint64_t))
27106 rm -f conftest.$ac_objext
27107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27108 (eval $ac_compile) 2>conftest.er1
27110 grep -v '^ *+' conftest.er1 >conftest.err
27112 cat conftest.err >&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } &&
27115 { ac_try='test -z "$ac_c_werror_flag"
27116 || test ! -s conftest.err'
27117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27118 (eval $ac_try) 2>&5
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); }; } &&
27122 { ac_try='test -s conftest.$ac_objext'
27123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124 (eval $ac_try) 2>&5
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); }; }; then
27128 ac_cv_type_uint64_t=yes
27130 echo "$as_me: failed program was:" >&5
27131 sed 's/^/| /' conftest.$ac_ext >&5
27133 ac_cv_type_uint64_t=no
27135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27137 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27138 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27139 if test $ac_cv_type_uint64_t = yes; then
27141 cat >>confdefs.h <<_ACEOF
27142 #define HAVE_UINT64_T 1
27147 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27148 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27149 if test "${ac_cv_type_u_int64_t+set}" = set; then
27150 echo $ECHO_N "(cached) $ECHO_C" >&6
27152 cat >conftest.$ac_ext <<_ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h. */
27158 $ac_includes_default
27162 if ((u_int64_t *) 0)
27164 if (sizeof (u_int64_t))
27170 rm -f conftest.$ac_objext
27171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27172 (eval $ac_compile) 2>conftest.er1
27174 grep -v '^ *+' conftest.er1 >conftest.err
27176 cat conftest.err >&5
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); } &&
27179 { ac_try='test -z "$ac_c_werror_flag"
27180 || test ! -s conftest.err'
27181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27182 (eval $ac_try) 2>&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); }; } &&
27186 { ac_try='test -s conftest.$ac_objext'
27187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188 (eval $ac_try) 2>&5
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); }; }; then
27192 ac_cv_type_u_int64_t=yes
27194 echo "$as_me: failed program was:" >&5
27195 sed 's/^/| /' conftest.$ac_ext >&5
27197 ac_cv_type_u_int64_t=no
27199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27201 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27202 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27203 if test $ac_cv_type_u_int64_t = yes; then
27205 cat >>confdefs.h <<_ACEOF
27206 #define HAVE_U_INT64_T 1
27211 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27212 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27213 { (exit 1); exit 1; }; }
27226 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27229 echo "$as_me:$LINENO: checking for $ac_func" >&5
27230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27231 if eval "test \"\${$as_ac_var+set}\" = set"; then
27232 echo $ECHO_N "(cached) $ECHO_C" >&6
27234 cat >conftest.$ac_ext <<_ACEOF
27237 cat confdefs.h >>conftest.$ac_ext
27238 cat >>conftest.$ac_ext <<_ACEOF
27239 /* end confdefs.h. */
27240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27242 #define $ac_func innocuous_$ac_func
27244 /* System header to define __stub macros and hopefully few prototypes,
27245 which can conflict with char $ac_func (); below.
27246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27247 <limits.h> exists even on freestanding compilers. */
27250 # include <limits.h>
27252 # include <assert.h>
27257 /* Override any gcc2 internal prototype to avoid an error. */
27262 /* We use char because int might match the return type of a gcc2
27263 builtin and then its argument prototype would still apply. */
27265 /* The GNU C library defines this for functions which it implements
27266 to always fail with ENOSYS. Some functions are actually named
27267 something starting with __ and the normal name is an alias. */
27268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27271 char (*f) () = $ac_func;
27280 return f != $ac_func;
27285 rm -f conftest.$ac_objext conftest$ac_exeext
27286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27287 (eval $ac_link) 2>conftest.er1
27289 grep -v '^ *+' conftest.er1 >conftest.err
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } &&
27294 { ac_try='test -z "$ac_c_werror_flag"
27295 || test ! -s conftest.err'
27296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297 (eval $ac_try) 2>&5
27299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300 (exit $ac_status); }; } &&
27301 { ac_try='test -s conftest$ac_exeext'
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; }; then
27307 eval "$as_ac_var=yes"
27309 echo "$as_me: failed program was:" >&5
27310 sed 's/^/| /' conftest.$ac_ext >&5
27312 eval "$as_ac_var=no"
27314 rm -f conftest.err conftest.$ac_objext \
27315 conftest$ac_exeext conftest.$ac_ext
27317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27319 if test `eval echo '${'$as_ac_var'}'` = yes; then
27320 cat >>confdefs.h <<_ACEOF
27321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27330 for ac_func in mkdtemp mkstemp mktemp
27332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27333 echo "$as_me:$LINENO: checking for $ac_func" >&5
27334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27335 if eval "test \"\${$as_ac_var+set}\" = set"; then
27336 echo $ECHO_N "(cached) $ECHO_C" >&6
27338 cat >conftest.$ac_ext <<_ACEOF
27341 cat confdefs.h >>conftest.$ac_ext
27342 cat >>conftest.$ac_ext <<_ACEOF
27343 /* end confdefs.h. */
27344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27346 #define $ac_func innocuous_$ac_func
27348 /* System header to define __stub macros and hopefully few prototypes,
27349 which can conflict with char $ac_func (); below.
27350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27351 <limits.h> exists even on freestanding compilers. */
27354 # include <limits.h>
27356 # include <assert.h>
27361 /* Override any gcc2 internal prototype to avoid an error. */
27366 /* We use char because int might match the return type of a gcc2
27367 builtin and then its argument prototype would still apply. */
27369 /* The GNU C library defines this for functions which it implements
27370 to always fail with ENOSYS. Some functions are actually named
27371 something starting with __ and the normal name is an alias. */
27372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27375 char (*f) () = $ac_func;
27384 return f != $ac_func;
27389 rm -f conftest.$ac_objext conftest$ac_exeext
27390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27391 (eval $ac_link) 2>conftest.er1
27393 grep -v '^ *+' conftest.er1 >conftest.err
27395 cat conftest.err >&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); } &&
27398 { ac_try='test -z "$ac_c_werror_flag"
27399 || test ! -s conftest.err'
27400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27401 (eval $ac_try) 2>&5
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); }; } &&
27405 { ac_try='test -s conftest$ac_exeext'
27406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407 (eval $ac_try) 2>&5
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; }; then
27411 eval "$as_ac_var=yes"
27413 echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27416 eval "$as_ac_var=no"
27418 rm -f conftest.err conftest.$ac_objext \
27419 conftest$ac_exeext conftest.$ac_ext
27421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27423 if test `eval echo '${'$as_ac_var'}'` = yes; then
27424 cat >>confdefs.h <<_ACEOF
27425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27437 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27440 echo "$as_me:$LINENO: checking for $ac_func" >&5
27441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27442 if eval "test \"\${$as_ac_var+set}\" = set"; then
27443 echo $ECHO_N "(cached) $ECHO_C" >&6
27445 cat >conftest.$ac_ext <<_ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h. */
27451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27453 #define $ac_func innocuous_$ac_func
27455 /* System header to define __stub macros and hopefully few prototypes,
27456 which can conflict with char $ac_func (); below.
27457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27458 <limits.h> exists even on freestanding compilers. */
27461 # include <limits.h>
27463 # include <assert.h>
27468 /* Override any gcc2 internal prototype to avoid an error. */
27473 /* We use char because int might match the return type of a gcc2
27474 builtin and then its argument prototype would still apply. */
27476 /* The GNU C library defines this for functions which it implements
27477 to always fail with ENOSYS. Some functions are actually named
27478 something starting with __ and the normal name is an alias. */
27479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27482 char (*f) () = $ac_func;
27491 return f != $ac_func;
27496 rm -f conftest.$ac_objext conftest$ac_exeext
27497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27498 (eval $ac_link) 2>conftest.er1
27500 grep -v '^ *+' conftest.er1 >conftest.err
27502 cat conftest.err >&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); } &&
27505 { ac_try='test -z "$ac_c_werror_flag"
27506 || test ! -s conftest.err'
27507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27508 (eval $ac_try) 2>&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); }; } &&
27512 { ac_try='test -s conftest$ac_exeext'
27513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514 (eval $ac_try) 2>&5
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); }; }; then
27518 eval "$as_ac_var=yes"
27520 echo "$as_me: failed program was:" >&5
27521 sed 's/^/| /' conftest.$ac_ext >&5
27523 eval "$as_ac_var=no"
27525 rm -f conftest.err conftest.$ac_objext \
27526 conftest$ac_exeext conftest.$ac_ext
27528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27530 if test `eval echo '${'$as_ac_var'}'` = yes; then
27531 cat >>confdefs.h <<_ACEOF
27532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27541 for ac_func in strtoll strtoq sysconf
27543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27544 echo "$as_me:$LINENO: checking for $ac_func" >&5
27545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27546 if eval "test \"\${$as_ac_var+set}\" = set"; then
27547 echo $ECHO_N "(cached) $ECHO_C" >&6
27549 cat >conftest.$ac_ext <<_ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h. */
27555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27557 #define $ac_func innocuous_$ac_func
27559 /* System header to define __stub macros and hopefully few prototypes,
27560 which can conflict with char $ac_func (); below.
27561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27562 <limits.h> exists even on freestanding compilers. */
27565 # include <limits.h>
27567 # include <assert.h>
27572 /* Override any gcc2 internal prototype to avoid an error. */
27577 /* We use char because int might match the return type of a gcc2
27578 builtin and then its argument prototype would still apply. */
27580 /* The GNU C library defines this for functions which it implements
27581 to always fail with ENOSYS. Some functions are actually named
27582 something starting with __ and the normal name is an alias. */
27583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27586 char (*f) () = $ac_func;
27595 return f != $ac_func;
27600 rm -f conftest.$ac_objext conftest$ac_exeext
27601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27602 (eval $ac_link) 2>conftest.er1
27604 grep -v '^ *+' conftest.er1 >conftest.err
27606 cat conftest.err >&5
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); } &&
27609 { ac_try='test -z "$ac_c_werror_flag"
27610 || test ! -s conftest.err'
27611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612 (eval $ac_try) 2>&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; } &&
27616 { ac_try='test -s conftest$ac_exeext'
27617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27618 (eval $ac_try) 2>&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); }; }; then
27622 eval "$as_ac_var=yes"
27624 echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27627 eval "$as_ac_var=no"
27629 rm -f conftest.err conftest.$ac_objext \
27630 conftest$ac_exeext conftest.$ac_ext
27632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27634 if test `eval echo '${'$as_ac_var'}'` = yes; then
27635 cat >>confdefs.h <<_ACEOF
27636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27642 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27643 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27644 if test "${llvm_cv_c_printf_a+set}" = set; then
27645 echo $ECHO_N "(cached) $ECHO_C" >&6
27648 ac_cpp='$CPP $CPPFLAGS'
27649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27653 if test "$cross_compiling" = yes; then
27654 llvmac_cv_c_printf_a=no
27656 cat >conftest.$ac_ext <<_ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h. */
27665 #include <stdlib.h>
27671 volatile double A, B;
27675 sprintf(Buffer, "%a", A);
27679 if (A != 0x1.999999999999ap-4)
27686 rm -f conftest$ac_exeext
27687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27688 (eval $ac_link) 2>&5
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693 (eval $ac_try) 2>&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; }; then
27697 llvm_cv_c_printf_a=yes
27699 echo "$as_me: program exited with status $ac_status" >&5
27700 echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27703 ( exit $ac_status )
27704 llvmac_cv_c_printf_a=no
27706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27709 ac_cpp='$CPP $CPPFLAGS'
27710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27715 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27716 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27717 if test "$llvm_cv_c_printf_a" = "yes"; then
27719 cat >>confdefs.h <<\_ACEOF
27720 #define HAVE_PRINTF_A 1
27725 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27726 # for constant arguments. Useless!
27727 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27728 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27729 if test "${ac_cv_working_alloca_h+set}" = set; then
27730 echo $ECHO_N "(cached) $ECHO_C" >&6
27732 cat >conftest.$ac_ext <<_ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h. */
27738 #include <alloca.h>
27742 char *p = (char *) alloca (2 * sizeof (int));
27747 rm -f conftest.$ac_objext conftest$ac_exeext
27748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27749 (eval $ac_link) 2>conftest.er1
27751 grep -v '^ *+' conftest.er1 >conftest.err
27753 cat conftest.err >&5
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); } &&
27756 { ac_try='test -z "$ac_c_werror_flag"
27757 || test ! -s conftest.err'
27758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27759 (eval $ac_try) 2>&5
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); }; } &&
27763 { ac_try='test -s conftest$ac_exeext'
27764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27765 (eval $ac_try) 2>&5
27767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768 (exit $ac_status); }; }; then
27769 ac_cv_working_alloca_h=yes
27771 echo "$as_me: failed program was:" >&5
27772 sed 's/^/| /' conftest.$ac_ext >&5
27774 ac_cv_working_alloca_h=no
27776 rm -f conftest.err conftest.$ac_objext \
27777 conftest$ac_exeext conftest.$ac_ext
27779 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27780 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27781 if test $ac_cv_working_alloca_h = yes; then
27783 cat >>confdefs.h <<\_ACEOF
27784 #define HAVE_ALLOCA_H 1
27789 echo "$as_me:$LINENO: checking for alloca" >&5
27790 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27791 if test "${ac_cv_func_alloca_works+set}" = set; then
27792 echo $ECHO_N "(cached) $ECHO_C" >&6
27794 cat >conftest.$ac_ext <<_ACEOF
27797 cat confdefs.h >>conftest.$ac_ext
27798 cat >>conftest.$ac_ext <<_ACEOF
27799 /* end confdefs.h. */
27801 # define alloca __builtin_alloca
27804 # include <malloc.h>
27805 # define alloca _alloca
27808 # include <alloca.h>
27813 # ifndef alloca /* predefined by HP cc +Olibcalls */
27824 char *p = (char *) alloca (1);
27829 rm -f conftest.$ac_objext conftest$ac_exeext
27830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27831 (eval $ac_link) 2>conftest.er1
27833 grep -v '^ *+' conftest.er1 >conftest.err
27835 cat conftest.err >&5
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); } &&
27838 { ac_try='test -z "$ac_c_werror_flag"
27839 || test ! -s conftest.err'
27840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841 (eval $ac_try) 2>&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); }; } &&
27845 { ac_try='test -s conftest$ac_exeext'
27846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27847 (eval $ac_try) 2>&5
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); }; }; then
27851 ac_cv_func_alloca_works=yes
27853 echo "$as_me: failed program was:" >&5
27854 sed 's/^/| /' conftest.$ac_ext >&5
27856 ac_cv_func_alloca_works=no
27858 rm -f conftest.err conftest.$ac_objext \
27859 conftest$ac_exeext conftest.$ac_ext
27861 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27862 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27864 if test $ac_cv_func_alloca_works = yes; then
27866 cat >>confdefs.h <<\_ACEOF
27867 #define HAVE_ALLOCA 1
27871 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27872 # that cause trouble. Some versions do not even contain alloca or
27873 # contain a buggy version. If you still want to use their alloca,
27874 # use ar to extract alloca.o from them instead of compiling alloca.c.
27876 ALLOCA=alloca.$ac_objext
27878 cat >>confdefs.h <<\_ACEOF
27883 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27884 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27885 if test "${ac_cv_os_cray+set}" = set; then
27886 echo $ECHO_N "(cached) $ECHO_C" >&6
27888 cat >conftest.$ac_ext <<_ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h. */
27894 #if defined(CRAY) && ! defined(CRAY2)
27901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27902 $EGREP "webecray" >/dev/null 2>&1; then
27910 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27911 echo "${ECHO_T}$ac_cv_os_cray" >&6
27912 if test $ac_cv_os_cray = yes; then
27913 for ac_func in _getb67 GETB67 getb67; do
27914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27915 echo "$as_me:$LINENO: checking for $ac_func" >&5
27916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27917 if eval "test \"\${$as_ac_var+set}\" = set"; then
27918 echo $ECHO_N "(cached) $ECHO_C" >&6
27920 cat >conftest.$ac_ext <<_ACEOF
27923 cat confdefs.h >>conftest.$ac_ext
27924 cat >>conftest.$ac_ext <<_ACEOF
27925 /* end confdefs.h. */
27926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27928 #define $ac_func innocuous_$ac_func
27930 /* System header to define __stub macros and hopefully few prototypes,
27931 which can conflict with char $ac_func (); below.
27932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27933 <limits.h> exists even on freestanding compilers. */
27936 # include <limits.h>
27938 # include <assert.h>
27943 /* Override any gcc2 internal prototype to avoid an error. */
27948 /* We use char because int might match the return type of a gcc2
27949 builtin and then its argument prototype would still apply. */
27951 /* The GNU C library defines this for functions which it implements
27952 to always fail with ENOSYS. Some functions are actually named
27953 something starting with __ and the normal name is an alias. */
27954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27957 char (*f) () = $ac_func;
27966 return f != $ac_func;
27971 rm -f conftest.$ac_objext conftest$ac_exeext
27972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27973 (eval $ac_link) 2>conftest.er1
27975 grep -v '^ *+' conftest.er1 >conftest.err
27977 cat conftest.err >&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } &&
27980 { ac_try='test -z "$ac_c_werror_flag"
27981 || test ! -s conftest.err'
27982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27983 (eval $ac_try) 2>&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); }; } &&
27987 { ac_try='test -s conftest$ac_exeext'
27988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989 (eval $ac_try) 2>&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; }; then
27993 eval "$as_ac_var=yes"
27995 echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27998 eval "$as_ac_var=no"
28000 rm -f conftest.err conftest.$ac_objext \
28001 conftest$ac_exeext conftest.$ac_ext
28003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28005 if test `eval echo '${'$as_ac_var'}'` = yes; then
28007 cat >>confdefs.h <<_ACEOF
28008 #define CRAY_STACKSEG_END $ac_func
28017 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28018 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28019 if test "${ac_cv_c_stack_direction+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28022 if test "$cross_compiling" = yes; then
28023 ac_cv_c_stack_direction=0
28025 cat >conftest.$ac_ext <<_ACEOF
28028 cat confdefs.h >>conftest.$ac_ext
28029 cat >>conftest.$ac_ext <<_ACEOF
28030 /* end confdefs.h. */
28032 find_stack_direction ()
28034 static char *addr = 0;
28039 return find_stack_direction ();
28042 return (&dummy > addr) ? 1 : -1;
28048 exit (find_stack_direction () < 0);
28051 rm -f conftest$ac_exeext
28052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28053 (eval $ac_link) 2>&5
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058 (eval $ac_try) 2>&5
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); }; }; then
28062 ac_cv_c_stack_direction=1
28064 echo "$as_me: program exited with status $ac_status" >&5
28065 echo "$as_me: failed program was:" >&5
28066 sed 's/^/| /' conftest.$ac_ext >&5
28068 ( exit $ac_status )
28069 ac_cv_c_stack_direction=-1
28071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28074 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28075 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28077 cat >>confdefs.h <<_ACEOF
28078 #define STACK_DIRECTION $ac_cv_c_stack_direction
28085 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28086 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28087 if test "${ac_cv_func_rand48+set}" = set; then
28088 echo $ECHO_N "(cached) $ECHO_C" >&6
28091 ac_cpp='$CXXCPP $CPPFLAGS'
28092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28096 cat >conftest.$ac_ext <<_ACEOF
28099 cat confdefs.h >>conftest.$ac_ext
28100 cat >>conftest.$ac_ext <<_ACEOF
28101 /* end confdefs.h. */
28102 #include <stdlib.h>
28106 srand48(0);lrand48();drand48();
28111 rm -f conftest.$ac_objext
28112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28113 (eval $ac_compile) 2>conftest.er1
28115 grep -v '^ *+' conftest.er1 >conftest.err
28117 cat conftest.err >&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); } &&
28120 { ac_try='test -z "$ac_cxx_werror_flag"
28121 || test ! -s conftest.err'
28122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28123 (eval $ac_try) 2>&5
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); }; } &&
28127 { ac_try='test -s conftest.$ac_objext'
28128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28129 (eval $ac_try) 2>&5
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); }; }; then
28133 ac_cv_func_rand48=yes
28135 echo "$as_me: failed program was:" >&5
28136 sed 's/^/| /' conftest.$ac_ext >&5
28138 ac_cv_func_rand48=no
28140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28142 ac_cpp='$CPP $CPPFLAGS'
28143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28148 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28149 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28151 if test "$ac_cv_func_rand48" = "yes" ; then
28153 cat >>confdefs.h <<\_ACEOF
28154 #define HAVE_RAND48 1
28160 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28161 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28162 if test "${ac_cv_cxx_namespaces+set}" = set; then
28163 echo $ECHO_N "(cached) $ECHO_C" >&6
28166 ac_cpp='$CXXCPP $CPPFLAGS'
28167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28171 cat >conftest.$ac_ext <<_ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h. */
28177 namespace Outer { namespace Inner { int i = 0; }}
28181 using namespace Outer::Inner; return i;
28186 rm -f conftest.$ac_objext
28187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28188 (eval $ac_compile) 2>conftest.er1
28190 grep -v '^ *+' conftest.er1 >conftest.err
28192 cat conftest.err >&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); } &&
28195 { ac_try='test -z "$ac_cxx_werror_flag"
28196 || test ! -s conftest.err'
28197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198 (eval $ac_try) 2>&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; } &&
28202 { ac_try='test -s conftest.$ac_objext'
28203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28204 (eval $ac_try) 2>&5
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); }; }; then
28208 ac_cv_cxx_namespaces=yes
28210 echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28213 ac_cv_cxx_namespaces=no
28215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28217 ac_cpp='$CPP $CPPFLAGS'
28218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28224 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28225 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28226 if test "$ac_cv_cxx_namespaces" = yes; then
28228 cat >>confdefs.h <<\_ACEOF
28229 #define HAVE_NAMESPACES
28234 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28235 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28236 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28237 echo $ECHO_N "(cached) $ECHO_C" >&6
28241 ac_cpp='$CXXCPP $CPPFLAGS'
28242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28246 cat >conftest.$ac_ext <<_ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h. */
28252 #include <ext/hash_map>
28253 #ifdef HAVE_NAMESPACES
28254 using namespace std;
28259 hash_map<int, int> t;
28264 rm -f conftest.$ac_objext
28265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28266 (eval $ac_compile) 2>conftest.er1
28268 grep -v '^ *+' conftest.er1 >conftest.err
28270 cat conftest.err >&5
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); } &&
28273 { ac_try='test -z "$ac_cxx_werror_flag"
28274 || test ! -s conftest.err'
28275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276 (eval $ac_try) 2>&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; } &&
28280 { ac_try='test -s conftest.$ac_objext'
28281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282 (eval $ac_try) 2>&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); }; }; then
28286 ac_cv_cxx_have_std_ext_hash_map=yes
28288 echo "$as_me: failed program was:" >&5
28289 sed 's/^/| /' conftest.$ac_ext >&5
28291 ac_cv_cxx_have_std_ext_hash_map=no
28293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28295 ac_cpp='$CPP $CPPFLAGS'
28296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28301 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28302 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28303 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28306 cat >>confdefs.h <<\_ACEOF
28307 #define HAVE_STD_EXT_HASH_MAP 1
28312 cat >>confdefs.h <<\_ACEOF
28313 #define HAVE_STD_EXT_HASH_MAP 0
28318 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28319 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28320 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28321 echo $ECHO_N "(cached) $ECHO_C" >&6
28325 ac_cpp='$CXXCPP $CPPFLAGS'
28326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28330 cat >conftest.$ac_ext <<_ACEOF
28333 cat confdefs.h >>conftest.$ac_ext
28334 cat >>conftest.$ac_ext <<_ACEOF
28335 /* end confdefs.h. */
28336 #include <ext/hash_map>
28337 #ifdef HAVE_NAMESPACES
28338 using namespace __gnu_cxx;
28343 hash_map<int,int> t;
28348 rm -f conftest.$ac_objext
28349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28350 (eval $ac_compile) 2>conftest.er1
28352 grep -v '^ *+' conftest.er1 >conftest.err
28354 cat conftest.err >&5
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); } &&
28357 { ac_try='test -z "$ac_cxx_werror_flag"
28358 || test ! -s conftest.err'
28359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28360 (eval $ac_try) 2>&5
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); }; } &&
28364 { ac_try='test -s conftest.$ac_objext'
28365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28366 (eval $ac_try) 2>&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; }; then
28370 ac_cv_cxx_have_gnu_ext_hash_map=yes
28372 echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28375 ac_cv_cxx_have_gnu_ext_hash_map=no
28377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28379 ac_cpp='$CPP $CPPFLAGS'
28380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28385 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28386 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28387 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28390 cat >>confdefs.h <<\_ACEOF
28391 #define HAVE_GNU_EXT_HASH_MAP 1
28396 cat >>confdefs.h <<\_ACEOF
28397 #define HAVE_GNU_EXT_HASH_MAP 0
28402 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28403 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28404 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28405 echo $ECHO_N "(cached) $ECHO_C" >&6
28409 ac_cpp='$CXXCPP $CPPFLAGS'
28410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28414 cat >conftest.$ac_ext <<_ACEOF
28417 cat confdefs.h >>conftest.$ac_ext
28418 cat >>conftest.$ac_ext <<_ACEOF
28419 /* end confdefs.h. */
28420 #include <hash_map>
28424 hash_map<int,int> t;
28429 rm -f conftest.$ac_objext
28430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28431 (eval $ac_compile) 2>conftest.er1
28433 grep -v '^ *+' conftest.er1 >conftest.err
28435 cat conftest.err >&5
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); } &&
28438 { ac_try='test -z "$ac_cxx_werror_flag"
28439 || test ! -s conftest.err'
28440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441 (eval $ac_try) 2>&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); }; } &&
28445 { ac_try='test -s conftest.$ac_objext'
28446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447 (eval $ac_try) 2>&5
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; }; then
28451 ac_cv_cxx_have_global_hash_map=yes
28453 echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28456 ac_cv_cxx_have_global_hash_map=no
28458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28460 ac_cpp='$CPP $CPPFLAGS'
28461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28466 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28467 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28468 if test "$ac_cv_cxx_have_global_hash_map" = yes
28471 cat >>confdefs.h <<\_ACEOF
28472 #define HAVE_GLOBAL_HASH_MAP 1
28477 cat >>confdefs.h <<\_ACEOF
28478 #define HAVE_GLOBAL_HASH_MAP 0
28483 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28484 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28485 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28486 echo $ECHO_N "(cached) $ECHO_C" >&6
28490 ac_cpp='$CXXCPP $CPPFLAGS'
28491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28495 cat >conftest.$ac_ext <<_ACEOF
28498 cat confdefs.h >>conftest.$ac_ext
28499 cat >>conftest.$ac_ext <<_ACEOF
28500 /* end confdefs.h. */
28501 #include <ext/hash_set>
28502 #ifdef HAVE_NAMESPACES
28503 using namespace std;
28513 rm -f conftest.$ac_objext
28514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28515 (eval $ac_compile) 2>conftest.er1
28517 grep -v '^ *+' conftest.er1 >conftest.err
28519 cat conftest.err >&5
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } &&
28522 { ac_try='test -z "$ac_cxx_werror_flag"
28523 || test ! -s conftest.err'
28524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28525 (eval $ac_try) 2>&5
28527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); }; } &&
28529 { ac_try='test -s conftest.$ac_objext'
28530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531 (eval $ac_try) 2>&5
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; }; then
28535 ac_cv_cxx_have_std_ext_hash_set=yes
28537 echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28540 ac_cv_cxx_have_std_ext_hash_set=no
28542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28544 ac_cpp='$CPP $CPPFLAGS'
28545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28550 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28551 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28552 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28555 cat >>confdefs.h <<\_ACEOF
28556 #define HAVE_STD_EXT_HASH_SET 1
28561 cat >>confdefs.h <<\_ACEOF
28562 #define HAVE_STD_EXT_HASH_SET 0
28567 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28568 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28569 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28570 echo $ECHO_N "(cached) $ECHO_C" >&6
28574 ac_cpp='$CXXCPP $CPPFLAGS'
28575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28579 cat >conftest.$ac_ext <<_ACEOF
28582 cat confdefs.h >>conftest.$ac_ext
28583 cat >>conftest.$ac_ext <<_ACEOF
28584 /* end confdefs.h. */
28585 #include <ext/hash_set>
28586 #ifdef HAVE_NAMESPACES
28587 using namespace __gnu_cxx;
28597 rm -f conftest.$ac_objext
28598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28599 (eval $ac_compile) 2>conftest.er1
28601 grep -v '^ *+' conftest.er1 >conftest.err
28603 cat conftest.err >&5
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); } &&
28606 { ac_try='test -z "$ac_cxx_werror_flag"
28607 || test ! -s conftest.err'
28608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609 (eval $ac_try) 2>&5
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; } &&
28613 { ac_try='test -s conftest.$ac_objext'
28614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615 (eval $ac_try) 2>&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 ac_cv_cxx_have_gnu_ext_hash_set=yes
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28624 ac_cv_cxx_have_gnu_ext_hash_set=no
28626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28628 ac_cpp='$CPP $CPPFLAGS'
28629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28634 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28635 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28636 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28639 cat >>confdefs.h <<\_ACEOF
28640 #define HAVE_GNU_EXT_HASH_SET 1
28645 cat >>confdefs.h <<\_ACEOF
28646 #define HAVE_GNU_EXT_HASH_SET 0
28651 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28652 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28653 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28654 echo $ECHO_N "(cached) $ECHO_C" >&6
28658 ac_cpp='$CXXCPP $CPPFLAGS'
28659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28663 cat >conftest.$ac_ext <<_ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h. */
28669 #include <hash_set>
28673 hash_set<int> t; return 0;
28678 rm -f conftest.$ac_objext
28679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28680 (eval $ac_compile) 2>conftest.er1
28682 grep -v '^ *+' conftest.er1 >conftest.err
28684 cat conftest.err >&5
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); } &&
28687 { ac_try='test -z "$ac_cxx_werror_flag"
28688 || test ! -s conftest.err'
28689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690 (eval $ac_try) 2>&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; } &&
28694 { ac_try='test -s conftest.$ac_objext'
28695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696 (eval $ac_try) 2>&5
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; }; then
28700 ac_cv_cxx_have_global_hash_set=yes
28702 echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28705 ac_cv_cxx_have_global_hash_set=no
28707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28709 ac_cpp='$CPP $CPPFLAGS'
28710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28715 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28716 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28717 if test "$ac_cv_cxx_have_global_hash_set" = yes
28720 cat >>confdefs.h <<\_ACEOF
28721 #define HAVE_GLOBAL_HASH_SET 1
28726 cat >>confdefs.h <<\_ACEOF
28727 #define HAVE_GLOBAL_HASH_SET 0
28732 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28733 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28734 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28735 echo $ECHO_N "(cached) $ECHO_C" >&6
28739 ac_cpp='$CXXCPP $CPPFLAGS'
28740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28744 cat >conftest.$ac_ext <<_ACEOF
28747 cat confdefs.h >>conftest.$ac_ext
28748 cat >>conftest.$ac_ext <<_ACEOF
28749 /* end confdefs.h. */
28750 #include <iterator>
28751 #ifdef HAVE_NAMESPACES
28752 using namespace std;
28757 iterator<int,int,int> t; return 0;
28762 rm -f conftest.$ac_objext
28763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28764 (eval $ac_compile) 2>conftest.er1
28766 grep -v '^ *+' conftest.er1 >conftest.err
28768 cat conftest.err >&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } &&
28771 { ac_try='test -z "$ac_cxx_werror_flag"
28772 || test ! -s conftest.err'
28773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774 (eval $ac_try) 2>&5
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); }; } &&
28778 { ac_try='test -s conftest.$ac_objext'
28779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780 (eval $ac_try) 2>&5
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; }; then
28784 ac_cv_cxx_have_std_iterator=yes
28786 echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28789 ac_cv_cxx_have_std_iterator=no
28791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28793 ac_cpp='$CPP $CPPFLAGS'
28794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28800 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28801 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28802 if test "$ac_cv_cxx_have_std_iterator" = yes
28805 cat >>confdefs.h <<\_ACEOF
28806 #define HAVE_STD_ITERATOR 1
28811 cat >>confdefs.h <<\_ACEOF
28812 #define HAVE_STD_ITERATOR 0
28817 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28818 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28819 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28820 echo $ECHO_N "(cached) $ECHO_C" >&6
28824 ac_cpp='$CXXCPP $CPPFLAGS'
28825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28829 cat >conftest.$ac_ext <<_ACEOF
28832 cat confdefs.h >>conftest.$ac_ext
28833 cat >>conftest.$ac_ext <<_ACEOF
28834 /* end confdefs.h. */
28835 #include <iterator>
28836 #ifdef HAVE_NAMESPACES
28837 using namespace std;
28842 bidirectional_iterator<int,int> t; return 0;
28847 rm -f conftest.$ac_objext
28848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28849 (eval $ac_compile) 2>conftest.er1
28851 grep -v '^ *+' conftest.er1 >conftest.err
28853 cat conftest.err >&5
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); } &&
28856 { ac_try='test -z "$ac_cxx_werror_flag"
28857 || test ! -s conftest.err'
28858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28859 (eval $ac_try) 2>&5
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); }; } &&
28863 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28869 ac_cv_cxx_have_bi_iterator=yes
28871 echo "$as_me: failed program was:" >&5
28872 sed 's/^/| /' conftest.$ac_ext >&5
28874 ac_cv_cxx_have_bi_iterator=no
28876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28878 ac_cpp='$CPP $CPPFLAGS'
28879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28885 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28886 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28887 if test "$ac_cv_cxx_have_bi_iterator" = yes
28890 cat >>confdefs.h <<\_ACEOF
28891 #define HAVE_BI_ITERATOR 1
28896 cat >>confdefs.h <<\_ACEOF
28897 #define HAVE_BI_ITERATOR 0
28902 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28903 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28904 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28905 echo $ECHO_N "(cached) $ECHO_C" >&6
28909 ac_cpp='$CXXCPP $CPPFLAGS'
28910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28914 cat >conftest.$ac_ext <<_ACEOF
28917 cat confdefs.h >>conftest.$ac_ext
28918 cat >>conftest.$ac_ext <<_ACEOF
28919 /* end confdefs.h. */
28920 #include <iterator>
28921 #ifdef HAVE_NAMESPACES
28922 using namespace std;
28927 forward_iterator<int,int> t; return 0;
28932 rm -f conftest.$ac_objext
28933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28934 (eval $ac_compile) 2>conftest.er1
28936 grep -v '^ *+' conftest.er1 >conftest.err
28938 cat conftest.err >&5
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); } &&
28941 { ac_try='test -z "$ac_cxx_werror_flag"
28942 || test ! -s conftest.err'
28943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28944 (eval $ac_try) 2>&5
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); }; } &&
28948 { ac_try='test -s conftest.$ac_objext'
28949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28950 (eval $ac_try) 2>&5
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); }; }; then
28954 ac_cv_cxx_have_fwd_iterator=yes
28956 echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28959 ac_cv_cxx_have_fwd_iterator=no
28961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28963 ac_cpp='$CPP $CPPFLAGS'
28964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28970 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28971 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28972 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28975 cat >>confdefs.h <<\_ACEOF
28976 #define HAVE_FWD_ITERATOR 1
28981 cat >>confdefs.h <<\_ACEOF
28982 #define HAVE_FWD_ITERATOR 0
28988 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28989 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28990 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28991 echo $ECHO_N "(cached) $ECHO_C" >&6
28994 ac_cpp='$CXXCPP $CPPFLAGS'
28995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28999 cat >conftest.$ac_ext <<_ACEOF
29002 cat confdefs.h >>conftest.$ac_ext
29003 cat >>conftest.$ac_ext <<_ACEOF
29004 /* end confdefs.h. */
29014 rm -f conftest.$ac_objext
29015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29016 (eval $ac_compile) 2>conftest.er1
29018 grep -v '^ *+' conftest.er1 >conftest.err
29020 cat conftest.err >&5
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); } &&
29023 { ac_try='test -z "$ac_cxx_werror_flag"
29024 || test ! -s conftest.err'
29025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; } &&
29030 { ac_try='test -s conftest.$ac_objext'
29031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032 (eval $ac_try) 2>&5
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; }; then
29036 ac_cv_func_isnan_in_math_h=yes
29038 echo "$as_me: failed program was:" >&5
29039 sed 's/^/| /' conftest.$ac_ext >&5
29041 ac_cv_func_isnan_in_math_h=no
29043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29045 ac_cpp='$CPP $CPPFLAGS'
29046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29051 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29052 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29055 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29057 cat >>confdefs.h <<\_ACEOF
29058 #define HAVE_ISNAN_IN_MATH_H 1
29063 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29064 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29065 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29069 ac_cpp='$CXXCPP $CPPFLAGS'
29070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29074 cat >conftest.$ac_ext <<_ACEOF
29077 cat confdefs.h >>conftest.$ac_ext
29078 cat >>conftest.$ac_ext <<_ACEOF
29079 /* end confdefs.h. */
29089 rm -f conftest.$ac_objext
29090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29091 (eval $ac_compile) 2>conftest.er1
29093 grep -v '^ *+' conftest.er1 >conftest.err
29095 cat conftest.err >&5
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); } &&
29098 { ac_try='test -z "$ac_cxx_werror_flag"
29099 || test ! -s conftest.err'
29100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101 (eval $ac_try) 2>&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; } &&
29105 { ac_try='test -s conftest.$ac_objext'
29106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107 (eval $ac_try) 2>&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; }; then
29111 ac_cv_func_isnan_in_cmath=yes
29113 echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29116 ac_cv_func_isnan_in_cmath=no
29118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29120 ac_cpp='$CPP $CPPFLAGS'
29121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29126 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29127 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29129 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29131 cat >>confdefs.h <<\_ACEOF
29132 #define HAVE_ISNAN_IN_CMATH 1
29137 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29138 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29139 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29143 ac_cpp='$CXXCPP $CPPFLAGS'
29144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29148 cat >conftest.$ac_ext <<_ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h. */
29158 float f; std::isnan(f);
29163 rm -f conftest.$ac_objext
29164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29165 (eval $ac_compile) 2>conftest.er1
29167 grep -v '^ *+' conftest.er1 >conftest.err
29169 cat conftest.err >&5
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); } &&
29172 { ac_try='test -z "$ac_cxx_werror_flag"
29173 || test ! -s conftest.err'
29174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29175 (eval $ac_try) 2>&5
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); }; } &&
29179 { ac_try='test -s conftest.$ac_objext'
29180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181 (eval $ac_try) 2>&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; }; then
29185 ac_cv_func_std_isnan_in_cmath=yes
29187 echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29190 ac_cv_func_std_isnan_in_cmath=no
29192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29194 ac_cpp='$CPP $CPPFLAGS'
29195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29200 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29201 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29203 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29205 cat >>confdefs.h <<\_ACEOF
29206 #define HAVE_STD_ISNAN_IN_CMATH 1
29212 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29213 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29214 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29215 echo $ECHO_N "(cached) $ECHO_C" >&6
29218 ac_cpp='$CXXCPP $CPPFLAGS'
29219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29223 cat >conftest.$ac_ext <<_ACEOF
29226 cat confdefs.h >>conftest.$ac_ext
29227 cat >>conftest.$ac_ext <<_ACEOF
29228 /* end confdefs.h. */
29238 rm -f conftest.$ac_objext
29239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29240 (eval $ac_compile) 2>conftest.er1
29242 grep -v '^ *+' conftest.er1 >conftest.err
29244 cat conftest.err >&5
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); } &&
29247 { ac_try='test -z "$ac_cxx_werror_flag"
29248 || test ! -s conftest.err'
29249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250 (eval $ac_try) 2>&5
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); }; } &&
29254 { ac_try='test -s conftest.$ac_objext'
29255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29256 (eval $ac_try) 2>&5
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; }; then
29260 ac_cv_func_isinf_in_math_h=yes
29262 echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29265 ac_cv_func_isinf_in_math_h=no
29267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29269 ac_cpp='$CPP $CPPFLAGS'
29270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29275 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29276 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29278 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29280 cat >>confdefs.h <<\_ACEOF
29281 #define HAVE_ISINF_IN_MATH_H 1
29286 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29287 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29288 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29289 echo $ECHO_N "(cached) $ECHO_C" >&6
29292 ac_cpp='$CXXCPP $CPPFLAGS'
29293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29297 cat >conftest.$ac_ext <<_ACEOF
29300 cat confdefs.h >>conftest.$ac_ext
29301 cat >>conftest.$ac_ext <<_ACEOF
29302 /* end confdefs.h. */
29312 rm -f conftest.$ac_objext
29313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29314 (eval $ac_compile) 2>conftest.er1
29316 grep -v '^ *+' conftest.er1 >conftest.err
29318 cat conftest.err >&5
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); } &&
29321 { ac_try='test -z "$ac_cxx_werror_flag"
29322 || test ! -s conftest.err'
29323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29324 (eval $ac_try) 2>&5
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); }; } &&
29328 { ac_try='test -s conftest.$ac_objext'
29329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330 (eval $ac_try) 2>&5
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; }; then
29334 ac_cv_func_isinf_in_cmath=yes
29336 echo "$as_me: failed program was:" >&5
29337 sed 's/^/| /' conftest.$ac_ext >&5
29339 ac_cv_func_isinf_in_cmath=no
29341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29343 ac_cpp='$CPP $CPPFLAGS'
29344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29349 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29350 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29352 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29354 cat >>confdefs.h <<\_ACEOF
29355 #define HAVE_ISINF_IN_CMATH 1
29360 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29361 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29362 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29363 echo $ECHO_N "(cached) $ECHO_C" >&6
29366 ac_cpp='$CXXCPP $CPPFLAGS'
29367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29371 cat >conftest.$ac_ext <<_ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h. */
29381 float f; std::isinf(f)}
29386 rm -f conftest.$ac_objext
29387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29388 (eval $ac_compile) 2>conftest.er1
29390 grep -v '^ *+' conftest.er1 >conftest.err
29392 cat conftest.err >&5
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); } &&
29395 { ac_try='test -z "$ac_cxx_werror_flag"
29396 || test ! -s conftest.err'
29397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29398 (eval $ac_try) 2>&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); }; } &&
29402 { ac_try='test -s conftest.$ac_objext'
29403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29404 (eval $ac_try) 2>&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); }; }; then
29408 ac_cv_func_std_isinf_in_cmath=yes
29410 echo "$as_me: failed program was:" >&5
29411 sed 's/^/| /' conftest.$ac_ext >&5
29413 ac_cv_func_std_isinf_in_cmath=no
29415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29417 ac_cpp='$CPP $CPPFLAGS'
29418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29423 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29424 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29426 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29428 cat >>confdefs.h <<\_ACEOF
29429 #define HAVE_STD_ISINF_IN_CMATH 1
29434 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29435 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29436 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29437 echo $ECHO_N "(cached) $ECHO_C" >&6
29440 ac_cpp='$CXXCPP $CPPFLAGS'
29441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29445 cat >conftest.$ac_ext <<_ACEOF
29448 cat confdefs.h >>conftest.$ac_ext
29449 cat >>conftest.$ac_ext <<_ACEOF
29450 /* end confdefs.h. */
29451 #include <ieeefp.h>
29455 float f; finite(f);
29460 rm -f conftest.$ac_objext
29461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29462 (eval $ac_compile) 2>conftest.er1
29464 grep -v '^ *+' conftest.er1 >conftest.err
29466 cat conftest.err >&5
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); } &&
29469 { ac_try='test -z "$ac_cxx_werror_flag"
29470 || test ! -s conftest.err'
29471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29472 (eval $ac_try) 2>&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; } &&
29476 { ac_try='test -s conftest.$ac_objext'
29477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478 (eval $ac_try) 2>&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; }; then
29482 ac_cv_func_finite_in_ieeefp_h=yes
29484 echo "$as_me: failed program was:" >&5
29485 sed 's/^/| /' conftest.$ac_ext >&5
29487 ac_cv_func_finite_in_ieeefp_h=no
29489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29491 ac_cpp='$CPP $CPPFLAGS'
29492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29497 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29498 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29500 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29502 cat >>confdefs.h <<\_ACEOF
29503 #define HAVE_FINITE_IN_IEEEFP_H 1
29512 for ac_header in stdlib.h unistd.h
29514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29516 echo "$as_me:$LINENO: checking for $ac_header" >&5
29517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
29521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29524 # Is the header compilable?
29525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29527 cat >conftest.$ac_ext <<_ACEOF
29530 cat confdefs.h >>conftest.$ac_ext
29531 cat >>conftest.$ac_ext <<_ACEOF
29532 /* end confdefs.h. */
29533 $ac_includes_default
29534 #include <$ac_header>
29536 rm -f conftest.$ac_objext
29537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29538 (eval $ac_compile) 2>conftest.er1
29540 grep -v '^ *+' conftest.er1 >conftest.err
29542 cat conftest.err >&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); } &&
29545 { ac_try='test -z "$ac_c_werror_flag"
29546 || test ! -s conftest.err'
29547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548 (eval $ac_try) 2>&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); }; } &&
29552 { ac_try='test -s conftest.$ac_objext'
29553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29554 (eval $ac_try) 2>&5
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); }; }; then
29558 ac_header_compiler=yes
29560 echo "$as_me: failed program was:" >&5
29561 sed 's/^/| /' conftest.$ac_ext >&5
29563 ac_header_compiler=no
29565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29567 echo "${ECHO_T}$ac_header_compiler" >&6
29569 # Is the header present?
29570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29572 cat >conftest.$ac_ext <<_ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h. */
29578 #include <$ac_header>
29580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29583 grep -v '^ *+' conftest.er1 >conftest.err
29585 cat conftest.err >&5
29586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); } >/dev/null; then
29588 if test -s conftest.err; then
29589 ac_cpp_err=$ac_c_preproc_warn_flag
29590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29597 if test -z "$ac_cpp_err"; then
29598 ac_header_preproc=yes
29600 echo "$as_me: failed program was:" >&5
29601 sed 's/^/| /' conftest.$ac_ext >&5
29603 ac_header_preproc=no
29605 rm -f conftest.err conftest.$ac_ext
29606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29607 echo "${ECHO_T}$ac_header_preproc" >&6
29609 # So? What about this header?
29610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29616 ac_header_preproc=yes
29619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29633 ## ----------------------------------- ##
29634 ## Report this to llvmbugs@cs.uiuc.edu ##
29635 ## ----------------------------------- ##
29638 sed "s/^/$as_me: WARNING: /" >&2
29641 echo "$as_me:$LINENO: checking for $ac_header" >&5
29642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29644 echo $ECHO_N "(cached) $ECHO_C" >&6
29646 eval "$as_ac_Header=\$ac_header_preproc"
29648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29653 cat >>confdefs.h <<_ACEOF
29654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29662 for ac_func in getpagesize
29664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29665 echo "$as_me:$LINENO: checking for $ac_func" >&5
29666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29667 if eval "test \"\${$as_ac_var+set}\" = set"; then
29668 echo $ECHO_N "(cached) $ECHO_C" >&6
29670 cat >conftest.$ac_ext <<_ACEOF
29673 cat confdefs.h >>conftest.$ac_ext
29674 cat >>conftest.$ac_ext <<_ACEOF
29675 /* end confdefs.h. */
29676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29678 #define $ac_func innocuous_$ac_func
29680 /* System header to define __stub macros and hopefully few prototypes,
29681 which can conflict with char $ac_func (); below.
29682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29683 <limits.h> exists even on freestanding compilers. */
29686 # include <limits.h>
29688 # include <assert.h>
29693 /* Override any gcc2 internal prototype to avoid an error. */
29698 /* We use char because int might match the return type of a gcc2
29699 builtin and then its argument prototype would still apply. */
29701 /* The GNU C library defines this for functions which it implements
29702 to always fail with ENOSYS. Some functions are actually named
29703 something starting with __ and the normal name is an alias. */
29704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29707 char (*f) () = $ac_func;
29716 return f != $ac_func;
29721 rm -f conftest.$ac_objext conftest$ac_exeext
29722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29723 (eval $ac_link) 2>conftest.er1
29725 grep -v '^ *+' conftest.er1 >conftest.err
29727 cat conftest.err >&5
29728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); } &&
29730 { ac_try='test -z "$ac_c_werror_flag"
29731 || test ! -s conftest.err'
29732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29733 (eval $ac_try) 2>&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); }; } &&
29737 { ac_try='test -s conftest$ac_exeext'
29738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739 (eval $ac_try) 2>&5
29741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); }; }; then
29743 eval "$as_ac_var=yes"
29745 echo "$as_me: failed program was:" >&5
29746 sed 's/^/| /' conftest.$ac_ext >&5
29748 eval "$as_ac_var=no"
29750 rm -f conftest.err conftest.$ac_objext \
29751 conftest$ac_exeext conftest.$ac_ext
29753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29755 if test `eval echo '${'$as_ac_var'}'` = yes; then
29756 cat >>confdefs.h <<_ACEOF
29757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29763 echo "$as_me:$LINENO: checking for working mmap" >&5
29764 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29765 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29766 echo $ECHO_N "(cached) $ECHO_C" >&6
29768 if test "$cross_compiling" = yes; then
29769 ac_cv_func_mmap_fixed_mapped=no
29771 cat >conftest.$ac_ext <<_ACEOF
29774 cat confdefs.h >>conftest.$ac_ext
29775 cat >>conftest.$ac_ext <<_ACEOF
29776 /* end confdefs.h. */
29777 $ac_includes_default
29778 /* malloc might have been renamed as rpl_malloc. */
29781 /* Thanks to Mike Haertel and Jim Avera for this test.
29782 Here is a matrix of mmap possibilities:
29783 mmap private not fixed
29784 mmap private fixed at somewhere currently unmapped
29785 mmap private fixed at somewhere already mapped
29786 mmap shared not fixed
29787 mmap shared fixed at somewhere currently unmapped
29788 mmap shared fixed at somewhere already mapped
29789 For private mappings, we should verify that changes cannot be read()
29790 back from the file, nor mmap's back from the file at a different
29791 address. (There have been systems where private was not correctly
29792 implemented like the infamous i386 svr4.0, and systems where the
29793 VM page cache was not coherent with the file system buffer cache
29794 like early versions of FreeBSD and possibly contemporary NetBSD.)
29795 For shared mappings, we should conversely verify that changes get
29796 propagated back to all the places they're supposed to be.
29798 Grep wants private fixed already mapped.
29799 The main things grep needs to know about mmap are:
29800 * does it exist and is it safe to write into the mmap'd area
29801 * how to use it (BSD variants) */
29804 #include <sys/mman.h>
29806 #if !STDC_HEADERS && !HAVE_STDLIB_H
29810 /* This mess was copied from the GNU getpagesize.h. */
29811 #if !HAVE_GETPAGESIZE
29812 /* Assume that all systems that can run configure have sys/param.h. */
29813 # if !HAVE_SYS_PARAM_H
29814 # define HAVE_SYS_PARAM_H 1
29817 # ifdef _SC_PAGESIZE
29818 # define getpagesize() sysconf(_SC_PAGESIZE)
29819 # else /* no _SC_PAGESIZE */
29820 # if HAVE_SYS_PARAM_H
29821 # include <sys/param.h>
29822 # ifdef EXEC_PAGESIZE
29823 # define getpagesize() EXEC_PAGESIZE
29824 # else /* no EXEC_PAGESIZE */
29826 # define getpagesize() NBPG * CLSIZE
29829 # endif /* no CLSIZE */
29830 # else /* no NBPG */
29832 # define getpagesize() NBPC
29833 # else /* no NBPC */
29835 # define getpagesize() PAGESIZE
29836 # endif /* PAGESIZE */
29837 # endif /* no NBPC */
29838 # endif /* no NBPG */
29839 # endif /* no EXEC_PAGESIZE */
29840 # else /* no HAVE_SYS_PARAM_H */
29841 # define getpagesize() 8192 /* punt totally */
29842 # endif /* no HAVE_SYS_PARAM_H */
29843 # endif /* no _SC_PAGESIZE */
29845 #endif /* no HAVE_GETPAGESIZE */
29850 char *data, *data2, *data3;
29854 pagesize = getpagesize ();
29856 /* First, make a file with some known garbage in it. */
29857 data = (char *) malloc (pagesize);
29860 for (i = 0; i < pagesize; ++i)
29861 *(data + i) = rand ();
29863 fd = creat ("conftest.mmap", 0600);
29866 if (write (fd, data, pagesize) != pagesize)
29870 /* Next, try to mmap the file at a fixed address which already has
29871 something else allocated at it. If we can, also make sure that
29872 we see the same garbage. */
29873 fd = open ("conftest.mmap", O_RDWR);
29876 data2 = (char *) malloc (2 * pagesize);
29879 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29880 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29881 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29883 for (i = 0; i < pagesize; ++i)
29884 if (*(data + i) != *(data2 + i))
29887 /* Finally, make sure that changes to the mapped area do not
29888 percolate back to the file as seen by read(). (This is a bug on
29889 some variants of i386 svr4.0.) */
29890 for (i = 0; i < pagesize; ++i)
29891 *(data2 + i) = *(data2 + i) + 1;
29892 data3 = (char *) malloc (pagesize);
29895 if (read (fd, data3, pagesize) != pagesize)
29897 for (i = 0; i < pagesize; ++i)
29898 if (*(data + i) != *(data3 + i))
29904 rm -f conftest$ac_exeext
29905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29906 (eval $ac_link) 2>&5
29908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29911 (eval $ac_try) 2>&5
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); }; }; then
29915 ac_cv_func_mmap_fixed_mapped=yes
29917 echo "$as_me: program exited with status $ac_status" >&5
29918 echo "$as_me: failed program was:" >&5
29919 sed 's/^/| /' conftest.$ac_ext >&5
29921 ( exit $ac_status )
29922 ac_cv_func_mmap_fixed_mapped=no
29924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29927 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29928 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29929 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29931 cat >>confdefs.h <<\_ACEOF
29932 #define HAVE_MMAP 1
29936 rm -f conftest.mmap
29938 echo "$as_me:$LINENO: checking for mmap of files" >&5
29939 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29940 if test "${ac_cv_func_mmap_file+set}" = set; then
29941 echo $ECHO_N "(cached) $ECHO_C" >&6
29944 ac_cpp='$CPP $CPPFLAGS'
29945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29949 if test "$cross_compiling" = yes; then
29950 ac_cv_func_mmap_file=no
29952 cat >conftest.$ac_ext <<_ACEOF
29956 cat confdefs.h >>conftest.$ac_ext
29957 cat >>conftest.$ac_ext <<_ACEOF
29958 /* end confdefs.h. */
29960 #include <sys/types.h>
29961 #include <sys/mman.h>
29969 fd = creat ("foo",0777);
29970 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29972 return (fd != (int) MAP_FAILED);
29977 rm -f conftest$ac_exeext
29978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29979 (eval $ac_link) 2>&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29984 (eval $ac_try) 2>&5
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); }; }; then
29988 ac_cv_func_mmap_file=yes
29990 echo "$as_me: program exited with status $ac_status" >&5
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29994 ( exit $ac_status )
29995 ac_cv_func_mmap_file=no
29997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30000 ac_cpp='$CPP $CPPFLAGS'
30001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30007 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30008 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30009 if test "$ac_cv_func_mmap_file" = yes; then
30011 cat >>confdefs.h <<\_ACEOF
30012 #define HAVE_MMAP_FILE
30019 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30020 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30021 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30022 echo $ECHO_N "(cached) $ECHO_C" >&6
30024 if test "$llvm_cv_os_type" = "Interix" ; then
30025 ac_cv_need_dev_zero_for_mmap=yes
30027 ac_cv_need_dev_zero_for_mmap=no
30031 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30032 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30033 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30035 cat >>confdefs.h <<\_ACEOF
30036 #define NEED_DEV_ZERO_FOR_MMAP 1
30040 echo "$as_me:$LINENO: checking for mprotect" >&5
30041 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30042 if test "${ac_cv_func_mprotect+set}" = set; then
30043 echo $ECHO_N "(cached) $ECHO_C" >&6
30045 cat >conftest.$ac_ext <<_ACEOF
30048 cat confdefs.h >>conftest.$ac_ext
30049 cat >>conftest.$ac_ext <<_ACEOF
30050 /* end confdefs.h. */
30051 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30053 #define mprotect innocuous_mprotect
30055 /* System header to define __stub macros and hopefully few prototypes,
30056 which can conflict with char mprotect (); below.
30057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30058 <limits.h> exists even on freestanding compilers. */
30061 # include <limits.h>
30063 # include <assert.h>
30068 /* Override any gcc2 internal prototype to avoid an error. */
30073 /* We use char because int might match the return type of a gcc2
30074 builtin and then its argument prototype would still apply. */
30076 /* The GNU C library defines this for functions which it implements
30077 to always fail with ENOSYS. Some functions are actually named
30078 something starting with __ and the normal name is an alias. */
30079 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30082 char (*f) () = mprotect;
30091 return f != mprotect;
30096 rm -f conftest.$ac_objext conftest$ac_exeext
30097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30098 (eval $ac_link) 2>conftest.er1
30100 grep -v '^ *+' conftest.er1 >conftest.err
30102 cat conftest.err >&5
30103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104 (exit $ac_status); } &&
30105 { ac_try='test -z "$ac_c_werror_flag"
30106 || test ! -s conftest.err'
30107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30108 (eval $ac_try) 2>&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); }; } &&
30112 { ac_try='test -s conftest$ac_exeext'
30113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30114 (eval $ac_try) 2>&5
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); }; }; then
30118 ac_cv_func_mprotect=yes
30120 echo "$as_me: failed program was:" >&5
30121 sed 's/^/| /' conftest.$ac_ext >&5
30123 ac_cv_func_mprotect=no
30125 rm -f conftest.err conftest.$ac_objext \
30126 conftest$ac_exeext conftest.$ac_ext
30128 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30129 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30130 if test $ac_cv_func_mprotect = yes; then
30133 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30134 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30135 { (exit 1); exit 1; }; }
30139 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30141 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30142 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30144 if test "$ac_cv_func_mmap_file" = "no"
30146 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30147 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30151 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30152 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30153 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30154 echo $ECHO_N "(cached) $ECHO_C" >&6
30156 llvm_cv_llvmgcc_sanity="no"
30157 if test -x "$LLVMGCC" ; then
30158 cp /dev/null conftest.c
30159 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30160 if test $? -eq 0 ; then
30161 llvm_cv_llvmgcc_sanity="yes"
30166 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30167 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30169 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30170 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30171 LLVMCC1=$llvmcc1path
30173 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30174 LLVMCC1PLUS=$llvmcc1pluspath
30176 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30177 LLVMGCCDIR=$llvmgccdir
30181 SHLIBEXT=$libltdl_cv_shlibext
30184 # Translate the various configuration directories and other basic
30185 # information into substitutions that will end up in Makefile.config.in
30186 # that these configured values can be used by the makefiles
30187 eval LLVM_PREFIX="${prefix}";
30188 eval LLVM_BINDIR="${prefix}/bin";
30189 eval LLVM_LIBDIR="${prefix}/lib";
30190 eval LLVM_DATADIR="${prefix}/share/llvm";
30191 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30192 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30193 eval LLVM_INCLUDEDIR="${prefix}/include";
30194 eval LLVM_INFODIR="${prefix}/info";
30195 eval LLVM_MANDIR="${prefix}/man";
30196 LLVM_CONFIGTIME=`date`
30208 # Place the various directores into the config.h file as #defines so that we
30209 # can know about the installation paths within LLVM.
30211 cat >>confdefs.h <<_ACEOF
30212 #define LLVM_PREFIX "$LLVM_PREFIX"
30216 cat >>confdefs.h <<_ACEOF
30217 #define LLVM_BINDIR "$LLVM_BINDIR"
30221 cat >>confdefs.h <<_ACEOF
30222 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30226 cat >>confdefs.h <<_ACEOF
30227 #define LLVM_DATADIR "$LLVM_DATADIR"
30231 cat >>confdefs.h <<_ACEOF
30232 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30236 cat >>confdefs.h <<_ACEOF
30237 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30241 cat >>confdefs.h <<_ACEOF
30242 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30246 cat >>confdefs.h <<_ACEOF
30247 #define LLVM_INFODIR "$LLVM_INFODIR"
30251 cat >>confdefs.h <<_ACEOF
30252 #define LLVM_MANDIR "$LLVM_MANDIR"
30256 cat >>confdefs.h <<_ACEOF
30257 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30262 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30265 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30267 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30269 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30271 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30273 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30276 ac_config_files="$ac_config_files Makefile.config"
30279 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30282 ac_config_files="$ac_config_files docs/doxygen.cfg"
30285 ac_config_commands="$ac_config_commands Makefile"
30288 ac_config_commands="$ac_config_commands Makefile.common"
30291 ac_config_commands="$ac_config_commands examples/Makefile"
30294 ac_config_commands="$ac_config_commands lib/Makefile"
30297 ac_config_commands="$ac_config_commands runtime/Makefile"
30300 ac_config_commands="$ac_config_commands test/Makefile"
30303 ac_config_commands="$ac_config_commands test/Makefile.tests"
30306 ac_config_commands="$ac_config_commands tools/Makefile"
30309 ac_config_commands="$ac_config_commands utils/Makefile"
30312 ac_config_commands="$ac_config_commands projects/Makefile"
30316 cat >confcache <<\_ACEOF
30317 # This file is a shell script that caches the results of configure
30318 # tests run on this system so they can be shared between configure
30319 # scripts and configure runs, see configure's option --config-cache.
30320 # It is not useful on other systems. If it contains results you don't
30321 # want to keep, you may remove or edit it.
30323 # config.status only pays attention to the cache file if you give it
30324 # the --recheck option to rerun configure.
30326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30328 # following values.
30332 # The following way of writing the cache mishandles newlines in values,
30333 # but we know of no workaround that is simple, portable, and efficient.
30334 # So, don't put newlines in cache variables' values.
30335 # Ultrix sh set writes to stderr and can't be redirected directly,
30336 # and sets the high bit in the cache file unless we assign to the vars.
30339 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30341 # `set' does not quote correctly, so add quotes (double-quote
30342 # substitution turns \\\\ into \\, and sed turns \\ into \).
30345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30348 # `set' quotes correctly as required by POSIX, so do not add quotes.
30350 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30357 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30359 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30361 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30362 if test -w $cache_file; then
30363 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30364 cat confcache >$cache_file
30366 echo "not updating unwritable cache $cache_file"
30371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30372 # Let make expand exec_prefix.
30373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30375 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30376 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30377 # trailing colons and then remove the whole line if VPATH becomes empty
30378 # (actually we leave an empty line to preserve line numbers).
30379 if test "x$srcdir" = x.; then
30380 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30381 s/:*\$(srcdir):*/:/;
30382 s/:*\${srcdir}:*/:/;
30384 s/^\([^=]*=[ ]*\):*/\1/;
30390 DEFS=-DHAVE_CONFIG_H
30394 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30395 # 1. Remove the extension, and $U if already installed.
30396 ac_i=`echo "$ac_i" |
30397 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30399 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30400 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30402 LIBOBJS=$ac_libobjs
30404 LTLIBOBJS=$ac_ltlibobjs
30407 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30408 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30409 Usually this means the macro was only invoked conditionally." >&5
30410 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30411 Usually this means the macro was only invoked conditionally." >&2;}
30412 { (exit 1); exit 1; }; }
30414 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30415 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30416 Usually this means the macro was only invoked conditionally." >&5
30417 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30418 Usually this means the macro was only invoked conditionally." >&2;}
30419 { (exit 1); exit 1; }; }
30422 : ${CONFIG_STATUS=./config.status}
30423 ac_clean_files_save=$ac_clean_files
30424 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30425 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30426 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30427 cat >$CONFIG_STATUS <<_ACEOF
30429 # Generated by $as_me.
30430 # Run this file to recreate the current configuration.
30431 # Compiler output produced by configure, useful for debugging
30432 # configure, is in config.log if it exists.
30435 ac_cs_recheck=false
30437 SHELL=\${CONFIG_SHELL-$SHELL}
30440 cat >>$CONFIG_STATUS <<\_ACEOF
30441 ## --------------------- ##
30442 ## M4sh Initialization. ##
30443 ## --------------------- ##
30445 # Be Bourne compatible
30446 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30449 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30450 # is contrary to our usage. Disable this feature.
30451 alias -g '${1+"$@"}'='"$@"'
30452 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30455 DUALCASE=1; export DUALCASE # for MKS sh
30457 # Support unset when possible.
30458 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30465 # Work around bugs in pre-3.0 UWIN ksh.
30466 $as_unset ENV MAIL MAILPATH
30473 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30474 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30475 LC_TELEPHONE LC_TIME
30477 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30478 eval $as_var=C; export $as_var
30484 # Required to use basename.
30485 if expr a : '\(a\)' >/dev/null 2>&1; then
30491 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30492 as_basename=basename
30498 # Name of the executable.
30499 as_me=`$as_basename "$0" ||
30500 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30501 X"$0" : 'X\(//\)$' \| \
30502 X"$0" : 'X\(/\)$' \| \
30503 . : '\(.\)' 2>/dev/null ||
30505 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30506 /^X\/\(\/\/\)$/{ s//\1/; q; }
30507 /^X\/\(\/\).*/{ s//\1/; q; }
30511 # PATH needs CR, and LINENO needs CR and PATH.
30512 # Avoid depending upon Character Ranges.
30513 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30514 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30515 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30516 as_cr_digits='0123456789'
30517 as_cr_alnum=$as_cr_Letters$as_cr_digits
30519 # The user is always right.
30520 if test "${PATH_SEPARATOR+set}" != set; then
30521 echo "#! /bin/sh" >conf$$.sh
30522 echo "exit 0" >>conf$$.sh
30524 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30533 as_lineno_1=$LINENO
30534 as_lineno_2=$LINENO
30535 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30536 test "x$as_lineno_1" != "x$as_lineno_2" &&
30537 test "x$as_lineno_3" = "x$as_lineno_2" || {
30538 # Find who we are. Look in the path if we contain no path at all
30541 *[\\/]* ) as_myself=$0 ;;
30542 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30543 for as_dir in $PATH
30546 test -z "$as_dir" && as_dir=.
30547 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30552 # We did not find ourselves, most probably we were run as `sh COMMAND'
30553 # in which case we are not to be found in the path.
30554 if test "x$as_myself" = x; then
30557 if test ! -f "$as_myself"; then
30558 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30559 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30560 { (exit 1); exit 1; }; }
30562 case $CONFIG_SHELL in
30564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30565 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30568 test -z "$as_dir" && as_dir=.
30569 for as_base in sh bash ksh sh5; do
30572 if ("$as_dir/$as_base" -c '
30573 as_lineno_1=$LINENO
30574 as_lineno_2=$LINENO
30575 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30576 test "x$as_lineno_1" != "x$as_lineno_2" &&
30577 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30578 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30579 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30580 CONFIG_SHELL=$as_dir/$as_base
30581 export CONFIG_SHELL
30582 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30590 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30591 # uniformly replaced by the line number. The first 'sed' inserts a
30592 # line-number line before each line; the second 'sed' does the real
30593 # work. The second script uses 'N' to pair each line-number line
30594 # with the numbered line, and appends trailing '-' during
30595 # substitution so that $LINENO is not a special case at line end.
30596 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30597 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30598 sed '=' <$as_myself |
30603 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30606 s,^['$as_cr_digits']*\n,,
30607 ' >$as_me.lineno &&
30608 chmod +x $as_me.lineno ||
30609 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30610 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30611 { (exit 1); exit 1; }; }
30613 # Don't try to exec as it changes $[0], causing all sort of problems
30614 # (the dirname of $[0] is not the place where we might find the
30615 # original and so on. Autoconf is especially sensible to this).
30617 # Exit status is that of the last command.
30622 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30623 *c*,-n*) ECHO_N= ECHO_C='
30625 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30626 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30629 if expr a : '\(a\)' >/dev/null 2>&1; then
30635 rm -f conf$$ conf$$.exe conf$$.file
30637 if ln -s conf$$.file conf$$ 2>/dev/null; then
30638 # We could just check for DJGPP; but this test a) works b) is more generic
30639 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30640 if test -f conf$$.exe; then
30641 # Don't use ln at all; we don't have any links
30646 elif ln conf$$.file conf$$ 2>/dev/null; then
30651 rm -f conf$$ conf$$.exe conf$$.file
30653 if mkdir -p . 2>/dev/null; then
30656 test -d ./-p && rmdir ./-p
30660 as_executable_p="test -f"
30662 # Sed expression to map a string onto a valid CPP name.
30663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30665 # Sed expression to map a string onto a valid variable name.
30666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30670 # We need space, tab and new line, in precisely that order.
30680 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30681 # report actual input values of CONFIG_FILES etc. instead of their
30682 # values after options handling. Logging --version etc. is OK.
30686 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30687 ## Running $as_me. ##
30692 This file was extended by llvm $as_me 1.4, which was
30693 generated by GNU Autoconf 2.59. Invocation command line was
30695 CONFIG_FILES = $CONFIG_FILES
30696 CONFIG_HEADERS = $CONFIG_HEADERS
30697 CONFIG_LINKS = $CONFIG_LINKS
30698 CONFIG_COMMANDS = $CONFIG_COMMANDS
30702 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30706 # Files that config.status was made for.
30707 if test -n "$ac_config_files"; then
30708 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30711 if test -n "$ac_config_headers"; then
30712 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30715 if test -n "$ac_config_links"; then
30716 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30719 if test -n "$ac_config_commands"; then
30720 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30723 cat >>$CONFIG_STATUS <<\_ACEOF
30726 \`$as_me' instantiates files from templates according to the
30727 current configuration.
30729 Usage: $0 [OPTIONS] [FILE]...
30731 -h, --help print this help, then exit
30732 -V, --version print version number, then exit
30733 -q, --quiet do not print progress messages
30734 -d, --debug don't remove temporary files
30735 --recheck update $as_me by reconfiguring in the same conditions
30736 --file=FILE[:TEMPLATE]
30737 instantiate the configuration file FILE
30738 --header=FILE[:TEMPLATE]
30739 instantiate the configuration header FILE
30741 Configuration files:
30744 Configuration headers:
30747 Configuration commands:
30750 Report bugs to <bug-autoconf@gnu.org>."
30753 cat >>$CONFIG_STATUS <<_ACEOF
30755 llvm config.status 1.4
30756 configured by $0, generated by GNU Autoconf 2.59,
30757 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30759 Copyright (C) 2003 Free Software Foundation, Inc.
30760 This config.status script is free software; the Free Software Foundation
30761 gives unlimited permission to copy, distribute and modify it."
30766 cat >>$CONFIG_STATUS <<\_ACEOF
30767 # If no file are specified by the user, then we need to provide default
30768 # value. By we need to know if files were specified by the user.
30774 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30775 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30783 *) # This is not an option, so the user has probably given explicit
30786 ac_need_defaults=false;;
30790 # Handling of the options.
30792 cat >>$CONFIG_STATUS <<\_ACEOF
30793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30795 --version | --vers* | -V )
30796 echo "$ac_cs_version"; exit 0 ;;
30798 # Conflict between --help and --header
30799 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30800 Try \`$0 --help' for more information." >&5
30801 echo "$as_me: error: ambiguous option: $1
30802 Try \`$0 --help' for more information." >&2;}
30803 { (exit 1); exit 1; }; };;
30804 --help | --hel | -h )
30805 echo "$ac_cs_usage"; exit 0 ;;
30806 --debug | --d* | -d )
30808 --file | --fil | --fi | --f )
30810 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30811 ac_need_defaults=false;;
30812 --header | --heade | --head | --hea )
30814 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30815 ac_need_defaults=false;;
30816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30817 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30820 # This is an error.
30821 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30822 Try \`$0 --help' for more information." >&5
30823 echo "$as_me: error: unrecognized option: $1
30824 Try \`$0 --help' for more information." >&2;}
30825 { (exit 1); exit 1; }; } ;;
30827 *) ac_config_targets="$ac_config_targets $1" ;;
30833 ac_configure_extra_args=
30835 if $ac_cs_silent; then
30837 ac_configure_extra_args="$ac_configure_extra_args --silent"
30841 cat >>$CONFIG_STATUS <<_ACEOF
30842 if \$ac_cs_recheck; then
30843 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30844 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30849 cat >>$CONFIG_STATUS <<_ACEOF
30851 # INIT-COMMANDS section.
30854 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30855 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30856 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30857 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30858 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30859 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30860 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30861 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30862 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30863 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30869 cat >>$CONFIG_STATUS <<\_ACEOF
30870 for ac_config_target in $ac_config_targets
30872 case "$ac_config_target" in
30873 # Handling of arguments.
30874 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30875 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30876 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30877 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30878 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30879 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30880 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30881 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30882 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30883 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30884 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30885 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30886 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30887 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30888 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30889 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30890 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30891 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30892 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30893 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30894 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30895 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30896 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30897 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30898 { (exit 1); exit 1; }; };;
30902 # If the user did not use the arguments to specify the items to instantiate,
30903 # then the envvar interface is used. Set only those that are not.
30904 # We use the long form for the default assignment because of an extremely
30905 # bizarre bug on SunOS 4.1.3.
30906 if $ac_need_defaults; then
30907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30912 # Have a temporary directory for convenience. Make it in the build tree
30913 # simply because there is no reason to put it here, and in addition,
30914 # creating and moving files from /tmp can sometimes cause problems.
30915 # Create a temporary directory, and hook for its removal unless debugging.
30918 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30919 trap '{ (exit 1); exit 1; }' 1 2 13 15
30922 # Create a (secure) tmp directory for tmp files.
30925 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30926 test -n "$tmp" && test -d "$tmp"
30929 tmp=./confstat$$-$RANDOM
30930 (umask 077 && mkdir $tmp)
30933 echo "$me: cannot create a temporary directory in ." >&2
30934 { (exit 1); exit 1; }
30939 cat >>$CONFIG_STATUS <<_ACEOF
30942 # CONFIG_FILES section.
30945 # No need to generate the scripts if there are no CONFIG_FILES.
30946 # This happens for instance when ./config.status config.h
30947 if test -n "\$CONFIG_FILES"; then
30948 # Protect against being on the right side of a sed subst in config.status.
30949 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30950 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30951 s,@SHELL@,$SHELL,;t t
30952 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30953 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30954 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30955 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30956 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30957 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30958 s,@exec_prefix@,$exec_prefix,;t t
30959 s,@prefix@,$prefix,;t t
30960 s,@program_transform_name@,$program_transform_name,;t t
30961 s,@bindir@,$bindir,;t t
30962 s,@sbindir@,$sbindir,;t t
30963 s,@libexecdir@,$libexecdir,;t t
30964 s,@datadir@,$datadir,;t t
30965 s,@sysconfdir@,$sysconfdir,;t t
30966 s,@sharedstatedir@,$sharedstatedir,;t t
30967 s,@localstatedir@,$localstatedir,;t t
30968 s,@libdir@,$libdir,;t t
30969 s,@includedir@,$includedir,;t t
30970 s,@oldincludedir@,$oldincludedir,;t t
30971 s,@infodir@,$infodir,;t t
30972 s,@mandir@,$mandir,;t t
30973 s,@build_alias@,$build_alias,;t t
30974 s,@host_alias@,$host_alias,;t t
30975 s,@target_alias@,$target_alias,;t t
30976 s,@DEFS@,$DEFS,;t t
30977 s,@ECHO_C@,$ECHO_C,;t t
30978 s,@ECHO_N@,$ECHO_N,;t t
30979 s,@ECHO_T@,$ECHO_T,;t t
30980 s,@LIBS@,$LIBS,;t t
30981 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30982 s,@subdirs@,$subdirs,;t t
30983 s,@build@,$build,;t t
30984 s,@build_cpu@,$build_cpu,;t t
30985 s,@build_vendor@,$build_vendor,;t t
30986 s,@build_os@,$build_os,;t t
30987 s,@host@,$host,;t t
30988 s,@host_cpu@,$host_cpu,;t t
30989 s,@host_vendor@,$host_vendor,;t t
30990 s,@host_os@,$host_os,;t t
30991 s,@target@,$target,;t t
30992 s,@target_cpu@,$target_cpu,;t t
30993 s,@target_vendor@,$target_vendor,;t t
30994 s,@target_os@,$target_os,;t t
30996 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30997 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30998 s,@ARCH@,$ARCH,;t t
30999 s,@ENDIAN@,$ENDIAN,;t t
31001 s,@CFLAGS@,$CFLAGS,;t t
31002 s,@LDFLAGS@,$LDFLAGS,;t t
31003 s,@CPPFLAGS@,$CPPFLAGS,;t t
31004 s,@ac_ct_CC@,$ac_ct_CC,;t t
31005 s,@EXEEXT@,$EXEEXT,;t t
31006 s,@OBJEXT@,$OBJEXT,;t t
31007 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31009 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31012 s,@CXXFLAGS@,$CXXFLAGS,;t t
31013 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31015 s,@LEXLIB@,$LEXLIB,;t t
31016 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31017 s,@FLEX@,$FLEX,;t t
31018 s,@YACC@,$YACC,;t t
31019 s,@BISON@,$BISON,;t t
31020 s,@ifGNUmake@,$ifGNUmake,;t t
31021 s,@LN_S@,$LN_S,;t t
31024 s,@DATE@,$DATE,;t t
31025 s,@FIND@,$FIND,;t t
31026 s,@GREP@,$GREP,;t t
31027 s,@MKDIR@,$MKDIR,;t t
31030 s,@RANLIB@,$RANLIB,;t t
31031 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31035 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31036 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31037 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31038 s,@BZIP2@,$BZIP2,;t t
31040 s,@DOXYGEN@,$DOXYGEN,;t t
31041 s,@ETAGS@,$ETAGS,;t t
31042 s,@GROFF@,$GROFF,;t t
31043 s,@GZIP@,$GZIP,;t t
31044 s,@POD2HTML@,$POD2HTML,;t t
31045 s,@POD2MAN@,$POD2MAN,;t t
31046 s,@RUNTEST@,$RUNTEST,;t t
31047 s,@TCLSH@,$TCLSH,;t t
31049 s,@EGREP@,$EGREP,;t t
31050 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31051 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31052 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31053 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31054 s,@LIBADD_DL@,$LIBADD_DL,;t t
31055 s,@ECHO@,$ECHO,;t t
31057 s,@ac_ct_AR@,$ac_ct_AR,;t t
31058 s,@STRIP@,$STRIP,;t t
31059 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31060 s,@CXXCPP@,$CXXCPP,;t t
31062 s,@FFLAGS@,$FFLAGS,;t t
31063 s,@ac_ct_F77@,$ac_ct_F77,;t t
31064 s,@LIBTOOL@,$LIBTOOL,;t t
31065 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31066 s,@LLVMGCC@,$LLVMGCC,;t t
31067 s,@LLVMGXX@,$LLVMGXX,;t t
31068 s,@ALLOCA@,$ALLOCA,;t t
31069 s,@MMAP_FILE@,$MMAP_FILE,;t t
31070 s,@LLVMCC1@,$LLVMCC1,;t t
31071 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31072 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31073 s,@SHLIBEXT@,$SHLIBEXT,;t t
31074 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31075 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31076 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31077 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31078 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31079 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31080 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31081 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31082 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31083 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31084 s,@LIBOBJS@,$LIBOBJS,;t t
31085 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31090 cat >>$CONFIG_STATUS <<\_ACEOF
31091 # Split the substitutions into bite-sized pieces for seds with
31092 # small command number limits, like on Digital OSF/1 and HP-UX.
31093 ac_max_sed_lines=48
31094 ac_sed_frag=1 # Number of current file.
31095 ac_beg=1 # First line for current file.
31096 ac_end=$ac_max_sed_lines # Line after last line for current file.
31099 while $ac_more_lines; do
31100 if test $ac_beg -gt 1; then
31101 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31103 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31105 if test ! -s $tmp/subs.frag; then
31106 ac_more_lines=false
31108 # The purpose of the label and of the branching condition is to
31109 # speed up the sed processing (if there are no `@' at all, there
31110 # is no need to browse any of the substitutions).
31111 # These are the two extra sed commands mentioned above.
31113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31114 if test -z "$ac_sed_cmds"; then
31115 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31117 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31119 ac_sed_frag=`expr $ac_sed_frag + 1`
31121 ac_end=`expr $ac_end + $ac_max_sed_lines`
31124 if test -z "$ac_sed_cmds"; then
31127 fi # test -n "$CONFIG_FILES"
31130 cat >>$CONFIG_STATUS <<\_ACEOF
31131 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31134 - | *:- | *:-:* ) # input from stdin
31136 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31138 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31139 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31140 * ) ac_file_in=$ac_file.in ;;
31143 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31144 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31146 X"$ac_file" : 'X\(//\)[^/]' \| \
31147 X"$ac_file" : 'X\(//\)$' \| \
31148 X"$ac_file" : 'X\(/\)' \| \
31149 . : '\(.\)' 2>/dev/null ||
31151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31153 /^X\(\/\/\)$/{ s//\1/; q; }
31154 /^X\(\/\).*/{ s//\1/; q; }
31156 { if $as_mkdir_p; then
31161 while test ! -d "$as_dir"; do
31162 as_dirs="$as_dir $as_dirs"
31163 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31164 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31165 X"$as_dir" : 'X\(//\)[^/]' \| \
31166 X"$as_dir" : 'X\(//\)$' \| \
31167 X"$as_dir" : 'X\(/\)' \| \
31168 . : '\(.\)' 2>/dev/null ||
31170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31172 /^X\(\/\/\)$/{ s//\1/; q; }
31173 /^X\(\/\).*/{ s//\1/; q; }
31176 test ! -n "$as_dirs" || mkdir $as_dirs
31177 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31178 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31179 { (exit 1); exit 1; }; }; }
31183 if test "$ac_dir" != .; then
31184 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31185 # A "../" for each directory in $ac_dir_suffix.
31186 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31188 ac_dir_suffix= ac_top_builddir=
31192 .) # No --srcdir option. We are building in place.
31194 if test -z "$ac_top_builddir"; then
31197 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31199 [\\/]* | ?:[\\/]* ) # Absolute path.
31200 ac_srcdir=$srcdir$ac_dir_suffix;
31201 ac_top_srcdir=$srcdir ;;
31202 *) # Relative path.
31203 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31204 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31207 # Do not use `cd foo && pwd` to compute absolute paths, because
31208 # the directories may not exist.
31210 .) ac_abs_builddir="$ac_dir";;
31213 .) ac_abs_builddir=`pwd`;;
31214 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31215 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31218 case $ac_abs_builddir in
31219 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31221 case ${ac_top_builddir}. in
31222 .) ac_abs_top_builddir=$ac_abs_builddir;;
31223 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31224 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31227 case $ac_abs_builddir in
31228 .) ac_abs_srcdir=$ac_srcdir;;
31231 .) ac_abs_srcdir=$ac_abs_builddir;;
31232 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31233 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31236 case $ac_abs_builddir in
31237 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31239 case $ac_top_srcdir in
31240 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31241 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31242 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31248 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31249 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31252 if test x"$ac_file" != x-; then
31253 { echo "$as_me:$LINENO: creating $ac_file" >&5
31254 echo "$as_me: creating $ac_file" >&6;}
31257 # Let's still pretend it is `configure' which instantiates (i.e., don't
31258 # use $as_me), people would be surprised to read:
31259 # /* config.h. Generated by config.status. */
31260 if test x"$ac_file" = x-; then
31263 configure_input="$ac_file. "
31265 configure_input=$configure_input"Generated from `echo $ac_file_in |
31266 sed 's,.*/,,'` by configure."
31268 # First look for the input files in the build tree, otherwise in the
31270 ac_file_inputs=`IFS=:
31271 for f in $ac_file_in; do
31273 -) echo $tmp/stdin ;;
31275 # Absolute (can't be DOS-style, as IFS=:)
31276 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31277 echo "$as_me: error: cannot find input file: $f" >&2;}
31278 { (exit 1); exit 1; }; }
31281 if test -f "$f"; then
31284 elif test -f "$srcdir/$f"; then
31289 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31290 echo "$as_me: error: cannot find input file: $f" >&2;}
31291 { (exit 1); exit 1; }; }
31294 done` || { (exit 1); exit 1; }
31296 cat >>$CONFIG_STATUS <<_ACEOF
31300 cat >>$CONFIG_STATUS <<\_ACEOF
31302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31303 s,@configure_input@,$configure_input,;t t
31304 s,@srcdir@,$ac_srcdir,;t t
31305 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31306 s,@top_srcdir@,$ac_top_srcdir,;t t
31307 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31308 s,@builddir@,$ac_builddir,;t t
31309 s,@abs_builddir@,$ac_abs_builddir,;t t
31310 s,@top_builddir@,$ac_top_builddir,;t t
31311 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31312 s,@INSTALL@,$ac_INSTALL,;t t
31313 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31315 if test x"$ac_file" != x-; then
31316 mv $tmp/out $ac_file
31324 cat >>$CONFIG_STATUS <<\_ACEOF
31327 # CONFIG_HEADER section.
31330 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31331 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31333 # ac_d sets the value in "#define NAME VALUE" lines.
31334 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31335 ac_dB='[ ].*$,\1#\2'
31338 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31339 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31340 ac_uB='$,\1#\2define\3'
31344 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31345 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31347 - | *:- | *:-:* ) # input from stdin
31349 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31350 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31351 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31352 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31353 * ) ac_file_in=$ac_file.in ;;
31356 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31357 echo "$as_me: creating $ac_file" >&6;}
31359 # First look for the input files in the build tree, otherwise in the
31361 ac_file_inputs=`IFS=:
31362 for f in $ac_file_in; do
31364 -) echo $tmp/stdin ;;
31366 # Absolute (can't be DOS-style, as IFS=:)
31367 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31368 echo "$as_me: error: cannot find input file: $f" >&2;}
31369 { (exit 1); exit 1; }; }
31370 # Do quote $f, to prevent DOS paths from being IFS'd.
31373 if test -f "$f"; then
31376 elif test -f "$srcdir/$f"; then
31381 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31382 echo "$as_me: error: cannot find input file: $f" >&2;}
31383 { (exit 1); exit 1; }; }
31386 done` || { (exit 1); exit 1; }
31387 # Remove the trailing spaces.
31388 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31392 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31393 # `conftest.undefs', that substitutes the proper values into
31394 # config.h.in to produce config.h. The first handles `#define'
31395 # templates, and the second `#undef' templates.
31396 # And first: Protect against being on the right side of a sed subst in
31397 # config.status. Protect against being in an unquoted here document
31398 # in config.status.
31399 rm -f conftest.defines conftest.undefs
31400 # Using a here document instead of a string reduces the quoting nightmare.
31401 # Putting comments in sed scripts is not portable.
31403 # `end' is used to avoid that the second main sed command (meant for
31404 # 0-ary CPP macros) applies to n-ary macro definitions.
31405 # See the Autoconf documentation for `clear'.
31406 cat >confdef2sed.sed <<\_ACEOF
31411 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31413 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31416 # If some macros were called several times there might be several times
31417 # the same #defines, which is useless. Nevertheless, we may not want to
31418 # sort them, since we want the *last* AC-DEFINE to be honored.
31419 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31420 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31421 rm -f confdef2sed.sed
31423 # This sed command replaces #undef with comments. This is necessary, for
31424 # example, in the case of _POSIX_SOURCE, which is predefined and required
31425 # on some systems where configure will not decide to define it.
31426 cat >>conftest.undefs <<\_ACEOF
31427 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31430 # Break up conftest.defines because some shells have a limit on the size
31431 # of here documents, and old seds have small limits too (100 cmds).
31432 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31433 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31434 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31435 echo ' :' >>$CONFIG_STATUS
31436 rm -f conftest.tail
31437 while grep . conftest.defines >/dev/null
31439 # Write a limited-size here document to $tmp/defines.sed.
31440 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31441 # Speed up: don't consider the non `#define' lines.
31442 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31443 # Work around the forget-to-reset-the-flag bug.
31444 echo 't clr' >>$CONFIG_STATUS
31445 echo ': clr' >>$CONFIG_STATUS
31446 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31448 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31450 mv $tmp/out $tmp/in
31452 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31453 rm -f conftest.defines
31454 mv conftest.tail conftest.defines
31456 rm -f conftest.defines
31457 echo ' fi # grep' >>$CONFIG_STATUS
31458 echo >>$CONFIG_STATUS
31460 # Break up conftest.undefs because some shells have a limit on the size
31461 # of here documents, and old seds have small limits too (100 cmds).
31462 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31463 rm -f conftest.tail
31464 while grep . conftest.undefs >/dev/null
31466 # Write a limited-size here document to $tmp/undefs.sed.
31467 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31468 # Speed up: don't consider the non `#undef'
31469 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31470 # Work around the forget-to-reset-the-flag bug.
31471 echo 't clr' >>$CONFIG_STATUS
31472 echo ': clr' >>$CONFIG_STATUS
31473 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31475 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31477 mv $tmp/out $tmp/in
31479 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31480 rm -f conftest.undefs
31481 mv conftest.tail conftest.undefs
31483 rm -f conftest.undefs
31485 cat >>$CONFIG_STATUS <<\_ACEOF
31486 # Let's still pretend it is `configure' which instantiates (i.e., don't
31487 # use $as_me), people would be surprised to read:
31488 # /* config.h. Generated by config.status. */
31489 if test x"$ac_file" = x-; then
31490 echo "/* Generated by configure. */" >$tmp/config.h
31492 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31494 cat $tmp/in >>$tmp/config.h
31496 if test x"$ac_file" != x-; then
31497 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31498 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31499 echo "$as_me: $ac_file is unchanged" >&6;}
31501 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31503 X"$ac_file" : 'X\(//\)[^/]' \| \
31504 X"$ac_file" : 'X\(//\)$' \| \
31505 X"$ac_file" : 'X\(/\)' \| \
31506 . : '\(.\)' 2>/dev/null ||
31508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31510 /^X\(\/\/\)$/{ s//\1/; q; }
31511 /^X\(\/\).*/{ s//\1/; q; }
31513 { if $as_mkdir_p; then
31518 while test ! -d "$as_dir"; do
31519 as_dirs="$as_dir $as_dirs"
31520 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31522 X"$as_dir" : 'X\(//\)[^/]' \| \
31523 X"$as_dir" : 'X\(//\)$' \| \
31524 X"$as_dir" : 'X\(/\)' \| \
31525 . : '\(.\)' 2>/dev/null ||
31527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31529 /^X\(\/\/\)$/{ s//\1/; q; }
31530 /^X\(\/\).*/{ s//\1/; q; }
31533 test ! -n "$as_dirs" || mkdir $as_dirs
31534 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31535 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31536 { (exit 1); exit 1; }; }; }
31539 mv $tmp/config.h $ac_file
31543 rm -f $tmp/config.h
31547 cat >>$CONFIG_STATUS <<\_ACEOF
31550 # CONFIG_COMMANDS section.
31552 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31553 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31554 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31555 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31556 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31557 X"$ac_dest" : 'X\(//\)[^/]' \| \
31558 X"$ac_dest" : 'X\(//\)$' \| \
31559 X"$ac_dest" : 'X\(/\)' \| \
31560 . : '\(.\)' 2>/dev/null ||
31562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31564 /^X\(\/\/\)$/{ s//\1/; q; }
31565 /^X\(\/\).*/{ s//\1/; q; }
31567 { if $as_mkdir_p; then
31572 while test ! -d "$as_dir"; do
31573 as_dirs="$as_dir $as_dirs"
31574 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31576 X"$as_dir" : 'X\(//\)[^/]' \| \
31577 X"$as_dir" : 'X\(//\)$' \| \
31578 X"$as_dir" : 'X\(/\)' \| \
31579 . : '\(.\)' 2>/dev/null ||
31581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31583 /^X\(\/\/\)$/{ s//\1/; q; }
31584 /^X\(\/\).*/{ s//\1/; q; }
31587 test ! -n "$as_dirs" || mkdir $as_dirs
31588 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31589 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31590 { (exit 1); exit 1; }; }; }
31594 if test "$ac_dir" != .; then
31595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31596 # A "../" for each directory in $ac_dir_suffix.
31597 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31599 ac_dir_suffix= ac_top_builddir=
31603 .) # No --srcdir option. We are building in place.
31605 if test -z "$ac_top_builddir"; then
31608 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31610 [\\/]* | ?:[\\/]* ) # Absolute path.
31611 ac_srcdir=$srcdir$ac_dir_suffix;
31612 ac_top_srcdir=$srcdir ;;
31613 *) # Relative path.
31614 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31615 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31618 # Do not use `cd foo && pwd` to compute absolute paths, because
31619 # the directories may not exist.
31621 .) ac_abs_builddir="$ac_dir";;
31624 .) ac_abs_builddir=`pwd`;;
31625 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31626 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31629 case $ac_abs_builddir in
31630 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31632 case ${ac_top_builddir}. in
31633 .) ac_abs_top_builddir=$ac_abs_builddir;;
31634 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31635 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31638 case $ac_abs_builddir in
31639 .) ac_abs_srcdir=$ac_srcdir;;
31642 .) ac_abs_srcdir=$ac_abs_builddir;;
31643 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31644 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31647 case $ac_abs_builddir in
31648 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31650 case $ac_top_srcdir in
31651 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31652 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31653 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31658 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31659 echo "$as_me: executing $ac_dest commands" >&6;}
31661 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31662 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31663 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31664 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31665 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31666 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31667 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31668 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31669 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31670 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31675 cat >>$CONFIG_STATUS <<\_ACEOF
31677 { (exit 0); exit 0; }
31679 chmod +x $CONFIG_STATUS
31680 ac_clean_files=$ac_clean_files_save
31683 # configure is writing to config.log, and then calls config.status.
31684 # config.status does its own redirection, appending to config.log.
31685 # Unfortunately, on DOS this fails, as config.log is still kept open
31686 # by configure, so config.status won't be able to write to it; its
31687 # output is simply discarded. So we exec the FD to /dev/null,
31688 # effectively closing config.log, so it can be properly (re)opened and
31689 # appended to by config.status. When coming back to configure, we
31690 # need to make the FD available again.
31691 if test "$no_create" != yes; then
31693 ac_config_status_args=
31694 test "$silent" = yes &&
31695 ac_config_status_args="$ac_config_status_args --quiet"
31697 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31699 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31700 # would make configure fail if this is the last instruction.
31701 $ac_cs_success || { (exit 1); exit 1; }
31705 # CONFIG_SUBDIRS section.
31707 if test "$no_recursion" != yes; then
31709 # Remove --cache-file and --srcdir arguments so they do not pile up.
31710 ac_sub_configure_args=
31712 for ac_arg in $ac_configure_args; do
31713 if test -n "$ac_prev"; then
31718 -cache-file | --cache-file | --cache-fil | --cache-fi \
31719 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31720 ac_prev=cache_file ;;
31721 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31722 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31725 --config-cache | -C)
31727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31731 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31733 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31735 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31739 # Always prepend --prefix to ensure using the same prefix
31740 # in subdir configurations.
31741 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31744 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31746 # Do not complain, so a configure script can configure whichever
31747 # parts of a large source tree are present.
31748 test -d $srcdir/$ac_dir || continue
31750 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31751 echo "$as_me: configuring in $ac_dir" >&6;}
31752 { if $as_mkdir_p; then
31757 while test ! -d "$as_dir"; do
31758 as_dirs="$as_dir $as_dirs"
31759 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31761 X"$as_dir" : 'X\(//\)[^/]' \| \
31762 X"$as_dir" : 'X\(//\)$' \| \
31763 X"$as_dir" : 'X\(/\)' \| \
31764 . : '\(.\)' 2>/dev/null ||
31766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31768 /^X\(\/\/\)$/{ s//\1/; q; }
31769 /^X\(\/\).*/{ s//\1/; q; }
31772 test ! -n "$as_dirs" || mkdir $as_dirs
31773 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31774 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31775 { (exit 1); exit 1; }; }; }
31779 if test "$ac_dir" != .; then
31780 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31781 # A "../" for each directory in $ac_dir_suffix.
31782 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31784 ac_dir_suffix= ac_top_builddir=
31788 .) # No --srcdir option. We are building in place.
31790 if test -z "$ac_top_builddir"; then
31793 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31795 [\\/]* | ?:[\\/]* ) # Absolute path.
31796 ac_srcdir=$srcdir$ac_dir_suffix;
31797 ac_top_srcdir=$srcdir ;;
31798 *) # Relative path.
31799 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31800 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31803 # Do not use `cd foo && pwd` to compute absolute paths, because
31804 # the directories may not exist.
31806 .) ac_abs_builddir="$ac_dir";;
31809 .) ac_abs_builddir=`pwd`;;
31810 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31811 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31814 case $ac_abs_builddir in
31815 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31817 case ${ac_top_builddir}. in
31818 .) ac_abs_top_builddir=$ac_abs_builddir;;
31819 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31820 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31823 case $ac_abs_builddir in
31824 .) ac_abs_srcdir=$ac_srcdir;;
31827 .) ac_abs_srcdir=$ac_abs_builddir;;
31828 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31829 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31832 case $ac_abs_builddir in
31833 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31835 case $ac_top_srcdir in
31836 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31837 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31838 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31845 # Check for guested configure; otherwise get Cygnus style configure.
31846 if test -f $ac_srcdir/configure.gnu; then
31847 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31848 elif test -f $ac_srcdir/configure; then
31849 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31850 elif test -f $ac_srcdir/configure.in; then
31851 ac_sub_configure=$ac_configure
31853 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31854 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31858 # The recursion is here.
31859 if test -n "$ac_sub_configure"; then
31860 # Make the cache file name correct relative to the subdirectory.
31861 case $cache_file in
31862 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31863 *) # Relative path.
31864 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31867 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31868 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31869 # The eval makes quoting arguments work.
31870 eval $ac_sub_configure $ac_sub_configure_args \
31871 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31872 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31873 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31874 { (exit 1); exit 1; }; }
31882 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31883 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31884 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31885 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31886 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31887 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31888 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31889 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31890 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31891 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31892 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}