2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.5cvs.
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.5cvs'
429 PACKAGE_STRING='llvm 1.5cvs'
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/llvm-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 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.5cvs 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.5cvs:";;
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
1174 llvm configure 1.5cvs
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.5cvs, 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/llvm-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 if test -n "$ac_tool_prefix"; then
4815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_RANLIB+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$RANLIB"; then
4823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 RANLIB=$ac_cv_prog_RANLIB
4842 if test -n "$RANLIB"; then
4843 echo "$as_me:$LINENO: result: $RANLIB" >&5
4844 echo "${ECHO_T}$RANLIB" >&6
4846 echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4851 if test -z "$ac_cv_prog_RANLIB"; then
4852 ac_ct_RANLIB=$RANLIB
4853 # Extract the first word of "ranlib", so it can be a program name with args.
4854 set dummy ranlib; ac_word=$2
4855 echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$ac_ct_RANLIB"; then
4861 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_ac_ct_RANLIB="ranlib"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4881 if test -n "$ac_ct_RANLIB"; then
4882 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4883 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 RANLIB=$ac_ct_RANLIB
4891 RANLIB="$ac_cv_prog_RANLIB"
4894 # Extract the first word of "rm", so it can be a program name with args.
4895 set dummy rm; ac_word=$2
4896 echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4898 if test "${ac_cv_path_RM+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4926 if test -n "$RM"; then
4927 echo "$as_me:$LINENO: result: $RM" >&5
4928 echo "${ECHO_T}$RM" >&6
4930 echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6
4934 # Extract the first word of "sed", so it can be a program name with args.
4935 set dummy sed; 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_SED+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 ac_cv_path_SED="$SED" # 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_SED="$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_SED" && ac_cv_path_SED="sed"
4966 if test -n "$SED"; then
4967 echo "$as_me:$LINENO: result: $SED" >&5
4968 echo "${ECHO_T}$SED" >&6
4970 echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4974 # Extract the first word of "tar", so it can be a program name with args.
4975 set dummy tar; 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_TAR+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 ac_cv_path_TAR="$TAR" # 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_TAR="$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_TAR" && ac_cv_path_TAR="gtar"
5006 if test -n "$TAR"; then
5007 echo "$as_me:$LINENO: result: $TAR" >&5
5008 echo "${ECHO_T}$TAR" >&6
5010 echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5015 # Find a good install program. We prefer a C program (faster),
5016 # so one script is as good as another. But avoid the broken or
5017 # incompatible versions:
5018 # SysV /etc/install, /usr/sbin/install
5019 # SunOS /usr/etc/install
5020 # IRIX /sbin/install
5022 # AmigaOS /C/install, which installs bootblocks on floppy discs
5023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5026 # OS/2's system install, which has a completely different semantic
5027 # ./install, which can be erroneously created by make from ./install.sh.
5028 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5029 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5030 if test -z "$INSTALL"; then
5031 if test "${ac_cv_path_install+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 test -z "$as_dir" && as_dir=.
5039 # Account for people who put trailing slashes in PATH elements.
5041 ./ | .// | /cC/* | \
5042 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5043 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5046 # OSF1 and SCO ODT 3.0 have their own names for install.
5047 # Don't use installbsd from OSF since it installs stuff as root
5049 for ac_prog in ginstall scoinst install; do
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5052 if test $ac_prog = install &&
5053 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5054 # AIX install. It has an incompatible calling convention.
5056 elif test $ac_prog = install &&
5057 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5058 # program-specific install script used by HP pwplus--don't use.
5061 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5073 if test "${ac_cv_path_install+set}" = set; then
5074 INSTALL=$ac_cv_path_install
5076 # As a last resort, use the slow shell script. We don't cache a
5077 # path for INSTALL within a source directory, because that will
5078 # break other packages using the cache if that directory is
5079 # removed, or if the path is relative.
5080 INSTALL=$ac_install_sh
5083 echo "$as_me:$LINENO: result: $INSTALL" >&5
5084 echo "${ECHO_T}$INSTALL" >&6
5086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5087 # It thinks the first close brace ends the variable substitution.
5088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5095 # Extract the first word of "bzip2", so it can be a program name with args.
5096 set dummy bzip2; ac_word=$2
5097 echo "$as_me:$LINENO: checking for $ac_word" >&5
5098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5099 if test "${ac_cv_path_BZIP2+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5125 BZIP2=$ac_cv_path_BZIP2
5127 if test -n "$BZIP2"; then
5128 echo "$as_me:$LINENO: result: $BZIP2" >&5
5129 echo "${ECHO_T}$BZIP2" >&6
5131 echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6
5135 # Extract the first word of "dot", so it can be a program name with args.
5136 set dummy dot; 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_DOT+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 ac_cv_path_DOT="$DOT" # 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_DOT="$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_DOT" && ac_cv_path_DOT="true dot"
5167 if test -n "$DOT"; then
5168 echo "$as_me:$LINENO: result: $DOT" >&5
5169 echo "${ECHO_T}$DOT" >&6
5171 echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5175 # Extract the first word of "doxygen", so it can be a program name with args.
5176 set dummy doxygen; 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_DOXYGEN+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 ac_cv_path_DOXYGEN="$DOXYGEN" # 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_DOXYGEN="$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_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5205 DOXYGEN=$ac_cv_path_DOXYGEN
5207 if test -n "$DOXYGEN"; then
5208 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5209 echo "${ECHO_T}$DOXYGEN" >&6
5211 echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5215 # Extract the first word of "etags", so it can be a program name with args.
5216 set dummy etags; 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_ETAGS+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 ac_cv_path_ETAGS="$ETAGS" # 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_ETAGS="$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_ETAGS" && ac_cv_path_ETAGS="true etags"
5245 ETAGS=$ac_cv_path_ETAGS
5247 if test -n "$ETAGS"; then
5248 echo "$as_me:$LINENO: result: $ETAGS" >&5
5249 echo "${ECHO_T}$ETAGS" >&6
5251 echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5255 # Extract the first word of "groff", so it can be a program name with args.
5256 set dummy groff; 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_GROFF+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 ac_cv_path_GROFF="$GROFF" # 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_GROFF="$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_GROFF" && ac_cv_path_GROFF="true groff"
5285 GROFF=$ac_cv_path_GROFF
5287 if test -n "$GROFF"; then
5288 echo "$as_me:$LINENO: result: $GROFF" >&5
5289 echo "${ECHO_T}$GROFF" >&6
5291 echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6
5295 # Extract the first word of "gzip", so it can be a program name with args.
5296 set dummy gzip; 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_GZIP+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 ac_cv_path_GZIP="$GZIP" # 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_GZIP="$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_GZIP" && ac_cv_path_GZIP="true gzip"
5325 GZIP=$ac_cv_path_GZIP
5327 if test -n "$GZIP"; then
5328 echo "$as_me:$LINENO: result: $GZIP" >&5
5329 echo "${ECHO_T}$GZIP" >&6
5331 echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5335 # Extract the first word of "pod2html", so it can be a program name with args.
5336 set dummy pod2html; 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_POD2HTML+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 ac_cv_path_POD2HTML="$POD2HTML" # 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_POD2HTML="$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_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5365 POD2HTML=$ac_cv_path_POD2HTML
5367 if test -n "$POD2HTML"; then
5368 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5369 echo "${ECHO_T}$POD2HTML" >&6
5371 echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6
5375 # Extract the first word of "pod2man", so it can be a program name with args.
5376 set dummy pod2man; 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_POD2MAN+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 ac_cv_path_POD2MAN="$POD2MAN" # 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_POD2MAN="$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_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5405 POD2MAN=$ac_cv_path_POD2MAN
5407 if test -n "$POD2MAN"; then
5408 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5409 echo "${ECHO_T}$POD2MAN" >&6
5411 echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5415 # Extract the first word of "runtest", so it can be a program name with args.
5416 set dummy runtest; 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_RUNTEST+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 ac_cv_path_RUNTEST="$RUNTEST" # 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_RUNTEST="$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_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5445 RUNTEST=$ac_cv_path_RUNTEST
5447 if test -n "$RUNTEST"; then
5448 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5449 echo "${ECHO_T}$RUNTEST" >&6
5451 echo "$as_me:$LINENO: result: no" >&5
5452 echo "${ECHO_T}no" >&6
5457 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5458 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5460 # Check whether --with-tclinclude or --without-tclinclude was given.
5461 if test "${with_tclinclude+set}" = set; then
5462 withval="$with_tclinclude"
5463 with_tclinclude=${withval}
5467 if test "${ac_cv_path_tclsh+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 if test x"${with_tclinclude}" != x ; then
5472 if test -f ${with_tclinclude}/tclsh ; then
5473 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5474 elif test -f ${with_tclinclude}/src/tclsh ; then
5475 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5477 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5478 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5479 { (exit 1); exit 1; }; }
5483 if test x"${ac_cv_path_tclsh}" = x ; then
5484 echo "$as_me:$LINENO: result: none" >&5
5485 echo "${ECHO_T}none" >&6
5486 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
5488 # Extract the first word of "$ac_prog", so it can be a program name with args.
5489 set dummy $ac_prog; ac_word=$2
5490 echo "$as_me:$LINENO: checking for $ac_word" >&5
5491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5492 if test "${ac_cv_path_TCLSH+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 TCLSH=$ac_cv_path_TCLSH
5519 if test -n "$TCLSH"; then
5520 echo "$as_me:$LINENO: result: $TCLSH" >&5
5521 echo "${ECHO_T}$TCLSH" >&6
5523 echo "$as_me:$LINENO: result: no" >&5
5524 echo "${ECHO_T}no" >&6
5527 test -n "$TCLSH" && break
5530 if test x"${TCLSH}" = x ; then
5531 ac_cv_path_tclsh='';
5533 ac_cv_path_tclsh="${TCLSH}";
5536 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5537 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5538 TCLSH="${ac_cv_path_tclsh}"
5544 # Extract the first word of "zip", so it can be a program name with args.
5545 set dummy zip; ac_word=$2
5546 echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548 if test "${ac_cv_path_ZIP+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5576 if test -n "$ZIP"; then
5577 echo "$as_me:$LINENO: result: $ZIP" >&5
5578 echo "${ECHO_T}$ZIP" >&6
5580 echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6
5585 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5586 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5587 if test "${llvm_cv_link_use_r+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 ac_cpp='$CPP $CPPFLAGS'
5592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5597 CFLAGS="$CFLAGS -Wl,-R."
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5608 int main() { return 0; }
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>conftest.er1
5617 grep -v '^ *+' conftest.er1 >conftest.err
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try='test -s conftest$ac_exeext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 llvm_cv_link_use_r=yes
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 llvm_cv_link_use_r=no
5642 rm -f conftest.err conftest.$ac_objext \
5643 conftest$ac_exeext conftest.$ac_ext
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5653 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5654 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5655 if test "$llvm_cv_link_use_r" = yes ; then
5657 cat >>confdefs.h <<\_ACEOF
5658 #define HAVE_LINK_R 1
5666 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5667 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5668 if test "${ac_cv_c_const+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 cat >conftest.$ac_ext <<_ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5681 /* FIXME: Include the comments suggested by Paul. */
5683 /* Ultrix mips cc rejects this. */
5684 typedef int charset[2];
5686 /* SunOS 4.1.1 cc rejects this. */
5687 char const *const *ccp;
5689 /* NEC SVR4.0.2 mips cc rejects this. */
5690 struct point {int x, y;};
5691 static struct point const zero = {0,0};
5692 /* AIX XL C 1.02.0.0 rejects this.
5693 It does not let you subtract one const X* pointer from another in
5694 an arm of an if-expression whose if-part is not a constant
5696 const char *g = "string";
5697 ccp = &g + (g ? g-g : 0);
5698 /* HPUX 7.0 cc rejects these. */
5701 ccp = (char const *const *) p;
5702 { /* SCO 3.2v4 cc rejects this. */
5704 char const *s = 0 ? (char *) 0 : (char const *) 0;
5708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5710 const int *foo = &x[0];
5713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5714 typedef const int *iptr;
5718 { /* AIX XL C 1.02.0.0 rejects this saying
5719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5720 struct s { int j; const int *ap[3]; };
5721 struct s *b; b->j = 5;
5723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5732 rm -f conftest.$ac_objext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>conftest.er1
5736 grep -v '^ *+' conftest.er1 >conftest.err
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try='test -z "$ac_c_werror_flag"
5742 || test ! -s conftest.err'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; } &&
5748 { ac_try='test -s conftest.$ac_objext'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5763 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5764 echo "${ECHO_T}$ac_cv_c_const" >&6
5765 if test $ac_cv_c_const = no; then
5767 cat >>confdefs.h <<\_ACEOF
5774 echo "$as_me:$LINENO: checking for egrep" >&5
5775 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5776 if test "${ac_cv_prog_egrep+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5780 then ac_cv_prog_egrep='grep -E'
5781 else ac_cv_prog_egrep='egrep'
5784 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5785 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5786 EGREP=$ac_cv_prog_egrep
5789 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5790 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5791 if test "${ac_cv_header_stdc+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 cat >conftest.$ac_ext <<_ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5813 rm -f conftest.$ac_objext
5814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815 (eval $ac_compile) 2>conftest.er1
5817 grep -v '^ *+' conftest.er1 >conftest.err
5819 cat conftest.err >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } &&
5822 { ac_try='test -z "$ac_c_werror_flag"
5823 || test ! -s conftest.err'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; } &&
5829 { ac_try='test -s conftest.$ac_objext'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
5835 ac_cv_header_stdc=yes
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5840 ac_cv_header_stdc=no
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5844 if test $ac_cv_header_stdc = yes; then
5845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5856 $EGREP "memchr" >/dev/null 2>&1; then
5859 ac_cv_header_stdc=no
5865 if test $ac_cv_header_stdc = yes; then
5866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5867 cat >conftest.$ac_ext <<_ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5877 $EGREP "free" >/dev/null 2>&1; then
5880 ac_cv_header_stdc=no
5886 if test $ac_cv_header_stdc = yes; then
5887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5888 if test "$cross_compiling" = yes; then
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5898 #if ((' ' & 0x0FF) == 0x020)
5899 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5900 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5902 # define ISLOWER(c) \
5903 (('a' <= (c) && (c) <= 'i') \
5904 || ('j' <= (c) && (c) <= 'r') \
5905 || ('s' <= (c) && (c) <= 'z'))
5906 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5909 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5914 for (i = 0; i < 256; i++)
5915 if (XOR (islower (i), ISLOWER (i))
5916 || toupper (i) != TOUPPER (i))
5921 rm -f conftest$ac_exeext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5934 echo "$as_me: program exited with status $ac_status" >&5
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5939 ac_cv_header_stdc=no
5941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5945 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5946 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5947 if test $ac_cv_header_stdc = yes; then
5949 cat >>confdefs.h <<\_ACEOF
5950 #define STDC_HEADERS 1
5961 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5962 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5963 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5964 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #include <sys/types.h>
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>conftest.er1
5990 grep -v '^ *+' conftest.er1 >conftest.err
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 eval "$as_ac_Header=yes"
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 eval "$as_ac_Header=no"
6015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6020 cat >>confdefs.h <<_ACEOF
6021 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6024 ac_header_dirent=$ac_hdr; break
6028 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6029 if test $ac_header_dirent = dirent.h; then
6030 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6031 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6032 if test "${ac_cv_search_opendir+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_func_search_save_LIBS=$LIBS
6036 ac_cv_search_opendir=no
6037 cat >conftest.$ac_ext <<_ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6044 /* Override any gcc2 internal prototype to avoid an error. */
6048 /* We use char because int might match the return type of a gcc2
6049 builtin and then its argument prototype would still apply. */
6059 rm -f conftest.$ac_objext conftest$ac_exeext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6061 (eval $ac_link) 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest$ac_exeext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_cv_search_opendir="none required"
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6087 rm -f conftest.err conftest.$ac_objext \
6088 conftest$ac_exeext conftest.$ac_ext
6089 if test "$ac_cv_search_opendir" = no; then
6090 for ac_lib in dir; do
6091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6092 cat >conftest.$ac_ext <<_ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6099 /* Override any gcc2 internal prototype to avoid an error. */
6103 /* We use char because int might match the return type of a gcc2
6104 builtin and then its argument prototype would still apply. */
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6116 (eval $ac_link) 2>conftest.er1
6118 grep -v '^ *+' conftest.er1 >conftest.err
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag"
6124 || test ! -s conftest.err'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest$ac_exeext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_search_opendir="-l$ac_lib"
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6143 rm -f conftest.err conftest.$ac_objext \
6144 conftest$ac_exeext conftest.$ac_ext
6147 LIBS=$ac_func_search_save_LIBS
6149 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6150 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6151 if test "$ac_cv_search_opendir" != no; then
6152 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6157 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6158 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6159 if test "${ac_cv_search_opendir+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 ac_func_search_save_LIBS=$LIBS
6163 ac_cv_search_opendir=no
6164 cat >conftest.$ac_ext <<_ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6171 /* Override any gcc2 internal prototype to avoid an error. */
6175 /* We use char because int might match the return type of a gcc2
6176 builtin and then its argument prototype would still apply. */
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6188 (eval $ac_link) 2>conftest.er1
6190 grep -v '^ *+' conftest.er1 >conftest.err
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -z "$ac_c_werror_flag"
6196 || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_search_opendir="none required"
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6214 rm -f conftest.err conftest.$ac_objext \
6215 conftest$ac_exeext conftest.$ac_ext
6216 if test "$ac_cv_search_opendir" = no; then
6218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6219 cat >conftest.$ac_ext <<_ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6226 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6241 rm -f conftest.$ac_objext conftest$ac_exeext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243 (eval $ac_link) 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -z "$ac_c_werror_flag"
6251 || test ! -s conftest.err'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try='test -s conftest$ac_exeext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 ac_cv_search_opendir="-l$ac_lib"
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6270 rm -f conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext conftest.$ac_ext
6274 LIBS=$ac_func_search_save_LIBS
6276 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6277 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6278 if test "$ac_cv_search_opendir" != no; then
6279 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6285 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6295 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6296 inttypes.h stdint.h unistd.h
6298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299 echo "$as_me:$LINENO: checking for $ac_header" >&5
6300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 cat >conftest.$ac_ext <<_ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 $ac_includes_default
6312 #include <$ac_header>
6314 rm -f conftest.$ac_objext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316 (eval $ac_compile) 2>conftest.er1
6318 grep -v '^ *+' conftest.er1 >conftest.err
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } &&
6323 { ac_try='test -z "$ac_c_werror_flag"
6324 || test ! -s conftest.err'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; } &&
6330 { ac_try='test -s conftest.$ac_objext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 eval "$as_ac_Header=yes"
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6341 eval "$as_ac_Header=no"
6343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6348 cat >>confdefs.h <<_ACEOF
6349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6358 for ac_header in dlfcn.h
6360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6362 echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6370 # Is the header compilable?
6371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6373 cat >conftest.$ac_ext <<_ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 $ac_includes_default
6380 #include <$ac_header>
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6386 grep -v '^ *+' conftest.er1 >conftest.err
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_header_compiler=yes
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ac_header_compiler=no
6411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6413 echo "${ECHO_T}$ac_header_compiler" >&6
6415 # Is the header present?
6416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6418 cat >conftest.$ac_ext <<_ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 #include <$ac_header>
6426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6429 grep -v '^ *+' conftest.er1 >conftest.err
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } >/dev/null; then
6434 if test -s conftest.err; then
6435 ac_cpp_err=$ac_c_preproc_warn_flag
6436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6443 if test -z "$ac_cpp_err"; then
6444 ac_header_preproc=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_header_preproc=no
6451 rm -f conftest.err conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453 echo "${ECHO_T}$ac_header_preproc" >&6
6455 # So? What about this header?
6456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462 ac_header_preproc=yes
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6479 ## ----------------------------------- ##
6480 ## Report this to llvmbugs@cs.uiuc.edu ##
6481 ## ----------------------------------- ##
6484 sed "s/^/$as_me: WARNING: /" >&2
6487 echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 eval "$as_ac_Header=\$ac_header_preproc"
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499 cat >>confdefs.h <<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6508 if test "${enable_ltdl_install+set}" = set; then
6509 enableval="$enable_ltdl_install"
6515 if test x"${enable_ltdl_install-no}" != xno; then
6517 INSTALL_LTDL_FALSE='#'
6519 INSTALL_LTDL_TRUE='#'
6525 if test x"${enable_ltdl_convenience-no}" != xno; then
6526 CONVENIENCE_LTDL_TRUE=
6527 CONVENIENCE_LTDL_FALSE='#'
6529 CONVENIENCE_LTDL_TRUE='#'
6530 CONVENIENCE_LTDL_FALSE=
6534 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6537 libname_spec='lib$name'
6545 shlibpath_overrides_runpath=unknown
6547 dynamic_linker="$host_os ld.so"
6548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6549 if test "$GCC" = yes; then
6550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6552 # if the path contains ";" then we assume it to be the separator
6553 # otherwise default to the standard path separator (i.e. ":") - it is
6554 # assumed that no part of a normal pathname contains ";" but that should
6555 # okay in the real world where ";" in dirpaths is itself problematic.
6556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6563 need_lib_prefix=unknown
6564 hardcode_into_libs=no
6566 # when you set need_version to no, make sure it does not cause -set_version
6567 # flags to be left without arguments
6568 need_version=unknown
6573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6574 shlibpath_var=LIBPATH
6576 # AIX 3 has no versioning support, so we append a major version to the name.
6577 soname_spec='${libname}${release}${shared_ext}$major'
6584 hardcode_into_libs=yes
6585 if test "$host_cpu" = ia64; then
6586 # AIX 5 supports IA64
6587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6588 shlibpath_var=LD_LIBRARY_PATH
6590 # With GCC up to 2.95.x, collect2 would create an import file
6591 # for dependence libraries. The import file would start with
6592 # the line `#! .'. This would cause the generated library to
6593 # depend on `.', always an invalid library. This was fixed in
6594 # development snapshots of GCC prior to 3.0.
6596 aix4 | aix4.[01] | aix4.[01].*)
6597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6607 # soname into executable. Probably we can add versioning support to
6608 # collect2, so additional links can be useful in future.
6609 if test "$aix_use_runtimelinking" = yes; then
6610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6611 # instead of lib<name>.a to let people know that these are not
6612 # typical AIX shared libraries.
6613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6615 # We preserve .a as extension for shared libraries through AIX4.2
6616 # and later when we are not doing run time linking.
6617 library_names_spec='${libname}${release}.a $libname.a'
6618 soname_spec='${libname}${release}${shared_ext}$major'
6620 shlibpath_var=LIBPATH
6625 library_names_spec='$libname.ixlibrary $libname.a'
6626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6627 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'
6631 library_names_spec='${libname}${shared_ext}'
6632 dynamic_linker="$host_os ld.so"
6633 shlibpath_var=LIBRARY_PATH
6639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6640 soname_spec='${libname}${release}${shared_ext}$major'
6641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6642 shlibpath_var=LD_LIBRARY_PATH
6643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6645 # the default ld.so.conf also contains /usr/contrib/lib and
6646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6647 # libtool to hard-code these into programs
6650 cygwin* | mingw* | pw32*)
6651 version_type=windows
6656 case $GCC,$host_os in
6657 yes,cygwin* | yes,mingw* | yes,pw32*)
6658 library_names_spec='$libname.dll.a'
6659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6660 postinstall_cmds='base_file=`basename \${file}`~
6661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6662 dldir=$destdir/`dirname \$dlpath`~
6663 test -d \$dldir || mkdir -p \$dldir~
6664 $install_prog $dir/$dlname \$dldir/$dlname'
6665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6666 dlpath=$dir/\$dldll~
6668 shlibpath_overrides_runpath=yes
6672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6673 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6674 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6677 # MinGW DLLs use traditional 'lib' prefix
6678 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6679 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6680 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6681 # It is most probably a Windows format PATH printed by
6682 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6683 # path with ; separators, and with drive letters. We can handle the
6684 # drive letters (cygwin fileutils understands them), so leave them,
6685 # especially as we might pass files found there to a mingw objdump,
6686 # which wouldn't understand a cygwinified path. Ahh.
6687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6693 # pw32 DLLs use 'pw' prefix rather than 'lib'
6694 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6703 dynamic_linker='Win32 ld.exe'
6704 # FIXME: first we should search . and the directory the executable is in
6708 darwin* | rhapsody*)
6709 dynamic_linker="$host_os dyld"
6713 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6714 soname_spec='${libname}${release}${major}$shared_ext'
6715 shlibpath_overrides_runpath=yes
6716 shlibpath_var=DYLD_LIBRARY_PATH
6717 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6718 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6719 if test "$GCC" = yes; then
6720 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"`
6722 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6724 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6732 soname_spec='${libname}${release}${shared_ext}$major'
6733 shlibpath_var=LD_LIBRARY_PATH
6744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6745 soname_spec='${libname}${release}${shared_ext}$major'
6746 shlibpath_var=LD_LIBRARY_PATH
6747 shlibpath_overrides_runpath=no
6748 hardcode_into_libs=yes
6749 dynamic_linker='GNU ld.so'
6753 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6754 version_type=freebsd-$objformat
6755 case $version_type in
6757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6766 shlibpath_var=LD_LIBRARY_PATH
6769 shlibpath_overrides_runpath=yes
6771 freebsd3.01* | freebsdelf3.01*)
6772 shlibpath_overrides_runpath=yes
6773 hardcode_into_libs=yes
6776 shlibpath_overrides_runpath=no
6777 hardcode_into_libs=yes
6786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6787 soname_spec='${libname}${release}${shared_ext}$major'
6788 shlibpath_var=LD_LIBRARY_PATH
6789 hardcode_into_libs=yes
6792 hpux9* | hpux10* | hpux11*)
6793 # Give a soname corresponding to the major version so that dld.sl refuses to
6794 # link against other versions.
6801 hardcode_into_libs=yes
6802 dynamic_linker="$host_os dld.so"
6803 shlibpath_var=LD_LIBRARY_PATH
6804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6806 soname_spec='${libname}${release}${shared_ext}$major'
6807 if test "X$HPUX_IA64_MODE" = X32; then
6808 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6810 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6816 hardcode_into_libs=yes
6817 dynamic_linker="$host_os dld.sl"
6818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6821 soname_spec='${libname}${release}${shared_ext}$major'
6822 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6827 dynamic_linker="$host_os dld.sl"
6828 shlibpath_var=SHLIB_PATH
6829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6831 soname_spec='${libname}${release}${shared_ext}$major'
6834 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6835 postinstall_cmds='chmod 555 $lib'
6838 irix5* | irix6* | nonstopux*)
6840 nonstopux*) version_type=nonstopux ;;
6842 if test "$lt_cv_prog_gnu_ld" = yes; then
6850 soname_spec='${libname}${release}${shared_ext}$major'
6851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6853 irix5* | nonstopux*)
6857 case $LD in # libtool.m4 will add one of these switches to LD
6858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6859 libsuff= shlibsuff= libmagic=32-bit;;
6860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6861 libsuff=32 shlibsuff=N32 libmagic=N32;;
6862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6863 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6864 *) libsuff= shlibsuff= libmagic=never-match;;
6868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6869 shlibpath_overrides_runpath=no
6870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6872 hardcode_into_libs=yes
6875 # No shared lib support for Linux oldld, aout, or coff.
6876 linux*oldld* | linux*aout* | linux*coff*)
6880 # This must be Linux ELF.
6885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6886 soname_spec='${libname}${release}${shared_ext}$major'
6887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6888 shlibpath_var=LD_LIBRARY_PATH
6889 shlibpath_overrides_runpath=no
6890 # This implies no fast_install, which is unacceptable.
6891 # Some rework will be needed to allow for fast_install
6892 # before this can be enabled.
6893 hardcode_into_libs=yes
6895 # Append ld.so.conf contents to the search path
6896 if test -f /etc/ld.so.conf; then
6897 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6898 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6901 # We used to test for /lib/ld.so.1 and disable shared libraries on
6902 # powerpc, because MkLinux only supported shared libraries with the
6903 # GNU dynamic linker. Since this was broken with cross compilers,
6904 # most powerpc-linux boxes support dynamic linking these days and
6905 # people can always --disable-shared, the test was removed, and we
6906 # assume the GNU/Linux dynamic linker is in use.
6907 dynamic_linker='GNU/Linux ld.so'
6914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6915 soname_spec='${libname}${release}${shared_ext}$major'
6916 shlibpath_var=LD_LIBRARY_PATH
6917 shlibpath_overrides_runpath=no
6918 hardcode_into_libs=yes
6919 dynamic_linker='GNU ld.so'
6926 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6929 dynamic_linker='NetBSD (a.out) ld.so'
6931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6932 soname_spec='${libname}${release}${shared_ext}$major'
6933 dynamic_linker='NetBSD ld.elf_so'
6935 shlibpath_var=LD_LIBRARY_PATH
6936 shlibpath_overrides_runpath=yes
6937 hardcode_into_libs=yes
6942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6943 shlibpath_var=LD_LIBRARY_PATH
6944 shlibpath_overrides_runpath=yes
6951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6952 soname_spec='${libname}${release}${shared_ext}$major'
6953 shlibpath_var=LD_LIBRARY_PATH
6954 shlibpath_overrides_runpath=yes
6961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6963 shlibpath_var=LD_LIBRARY_PATH
6964 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6966 openbsd2.[89] | openbsd2.[89].*)
6967 shlibpath_overrides_runpath=no
6970 shlibpath_overrides_runpath=yes
6974 shlibpath_overrides_runpath=yes
6979 libname_spec='$name'
6982 library_names_spec='$libname${shared_ext} $libname.a'
6983 dynamic_linker='OS/2 ld.exe'
6984 shlibpath_var=LIBPATH
6987 osf3* | osf4* | osf5*)
6991 soname_spec='${libname}${release}${shared_ext}$major'
6992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6993 shlibpath_var=LD_LIBRARY_PATH
6994 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6995 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7000 soname_spec='${libname}${release}${shared_ext}$major'
7001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7002 shlibpath_var=LD_LIBRARY_PATH
7009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7010 soname_spec='${libname}${release}${shared_ext}$major'
7011 shlibpath_var=LD_LIBRARY_PATH
7012 shlibpath_overrides_runpath=yes
7013 hardcode_into_libs=yes
7014 # ldd complains unless libraries are executable
7015 postinstall_cmds='chmod +x $lib'
7020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7022 shlibpath_var=LD_LIBRARY_PATH
7023 shlibpath_overrides_runpath=yes
7024 if test "$with_gnu_ld" = yes; then
7030 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033 soname_spec='${libname}${release}${shared_ext}$major'
7034 shlibpath_var=LD_LIBRARY_PATH
7035 case $host_vendor in
7037 shlibpath_overrides_runpath=no
7039 export_dynamic_flag_spec='${wl}-Blargedynsym'
7040 runpath_var=LD_RUN_PATH
7048 shlibpath_overrides_runpath=no
7049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7055 if test -d /usr/nec ;then
7057 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7058 soname_spec='$libname${shared_ext}.$major'
7059 shlibpath_var=LD_LIBRARY_PATH
7065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7066 soname_spec='${libname}${release}${shared_ext}$major'
7067 shlibpath_var=LD_LIBRARY_PATH
7074 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7075 echo "${ECHO_T}$dynamic_linker" >&6
7076 test "$dynamic_linker" = no && can_build_shared=no
7079 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7080 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7081 if test "${libltdl_cv_shlibext+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 eval libltdl_cv_shlibext=$shrext_cmds
7089 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7090 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7091 if test -n "$libltdl_cv_shlibext"; then
7093 cat >>confdefs.h <<_ACEOF
7094 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7100 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7101 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7102 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 libltdl_cv_shlibpath_var="$shlibpath_var"
7107 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7108 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7109 if test -n "$libltdl_cv_shlibpath_var"; then
7111 cat >>confdefs.h <<_ACEOF
7112 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7118 echo "$as_me:$LINENO: checking for the default library search path" >&5
7119 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7120 if test "${libltdl_cv_sys_search_path+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7125 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7126 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7127 if test -n "$libltdl_cv_sys_search_path"; then
7129 for dir in $libltdl_cv_sys_search_path; do
7130 if test -z "$sys_search_path"; then
7131 sys_search_path="$dir"
7133 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7137 cat >>confdefs.h <<_ACEOF
7138 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7143 echo "$as_me:$LINENO: checking for objdir" >&5
7144 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7145 if test "${libltdl_cv_objdir+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 libltdl_cv_objdir="$objdir"
7149 if test -n "$objdir"; then
7152 rm -f .libs 2>/dev/null
7153 mkdir .libs 2>/dev/null
7154 if test -d .libs; then
7155 libltdl_cv_objdir=.libs
7157 # MS-DOS does not allow filenames that begin with a dot.
7158 libltdl_cv_objdir=_libs
7160 rmdir .libs 2>/dev/null
7164 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7165 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7167 cat >>confdefs.h <<_ACEOF
7168 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7172 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7173 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7174 if test "${lt_cv_path_NM+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 if test -n "$NM"; then
7178 # Let the user override the test.
7181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7182 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7184 test -z "$ac_dir" && ac_dir=.
7185 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7186 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7187 # Check to see if the nm accepts a BSD-compat flag.
7188 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7189 # nm: unknown option "B" ignored
7190 # Tru64's nm complains that /dev/null is an invalid object file
7191 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7192 */dev/null* | *'Invalid file or object type'*)
7193 lt_cv_path_NM="$tmp_nm -B"
7197 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7199 lt_cv_path_NM="$tmp_nm -p"
7203 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7204 continue # so that we can try to find one that supports BSD flags
7211 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7214 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7215 echo "${ECHO_T}$lt_cv_path_NM" >&6
7222 # Check for command to grab the raw symbol name followed by C symbol from nm.
7223 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7224 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7225 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 # These are sane defaults that work on at least a few old systems.
7230 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7232 # Character class describing NM global symbol codes.
7233 symcode='[BCDEGRST]'
7235 # Regexp to match symbols that can be accessed directly from C.
7236 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7238 # Transform the above into a raw symbol and a C symbol.
7239 symxfrm='\1 \2\3 \3'
7241 # Transform an extracted symbol line into a proper C declaration
7242 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7244 # Transform an extracted symbol line into symbol name and symbol address
7245 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'"
7247 # Define system-specific variables.
7252 cygwin* | mingw* | pw32*)
7253 symcode='[ABCDGISTW]'
7255 hpux*) # Its linker distinguishes data from code symbols
7256 if test "$host_cpu" = ia64; then
7257 symcode='[ABCDEGRST]'
7259 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7260 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'"
7263 if test "$host_cpu" = ia64; then
7264 symcode='[ABCDGIRSTW]'
7265 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7266 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'"
7270 symcode='[BCDEGRST]'
7273 symcode='[BCDEGQRST]'
7283 # Handle CRLF in mingw tool chain
7287 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7291 # If we're using GNU nm, then use its standard symbol codes.
7292 case `$NM -V 2>&1` in
7293 *GNU* | *'with BFD'*)
7294 symcode='[ABCDGIRSTW]' ;;
7297 # Try without a prefix undercore, then with it.
7298 for ac_symprfx in "" "_"; do
7300 # Write the raw and C identifiers.
7301 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7303 # Check to see that the pipe works correctly.
7307 cat > conftest.$ac_ext <<EOF
7312 void nm_test_func(){}
7316 int main(){nm_test_var='a';nm_test_func();return(0);}
7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; then
7324 # Now try to grab the symbols.
7326 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7327 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && test -s "$nlist"; then
7331 # Try sorting and uniquifying the output.
7332 if sort "$nlist" | uniq > "$nlist"T; then
7333 mv -f "$nlist"T "$nlist"
7338 # Make sure that we snagged all the symbols we need.
7339 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7340 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7341 cat <<EOF > conftest.$ac_ext
7347 # Now generate the symbol file.
7348 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7350 cat <<EOF >> conftest.$ac_ext
7351 #if defined (__STDC__) && __STDC__
7352 # define lt_ptr_t void *
7354 # define lt_ptr_t char *
7358 /* The mapping between symbol names and symbols. */
7363 lt_preloaded_symbols[] =
7366 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7367 cat <<\EOF >> conftest.$ac_ext
7375 # Now try linking the two files.
7376 mv conftest.$ac_objext conftstm.$ac_objext
7377 lt_save_LIBS="$LIBS"
7378 lt_save_CFLAGS="$CFLAGS"
7379 LIBS="conftstm.$ac_objext"
7380 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7382 (eval $ac_link) 2>&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7388 LIBS="$lt_save_LIBS"
7389 CFLAGS="$lt_save_CFLAGS"
7391 echo "cannot find nm_test_func in $nlist" >&5
7394 echo "cannot find nm_test_var in $nlist" >&5
7397 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7400 echo "$progname: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7403 rm -f conftest* conftst*
7405 # Do not use the global_symbol_pipe unless it works.
7406 if test "$pipe_works" = yes; then
7409 lt_cv_sys_global_symbol_pipe=
7415 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7416 lt_cv_sys_global_symbol_to_cdecl=
7418 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7419 echo "$as_me:$LINENO: result: failed" >&5
7420 echo "${ECHO_T}failed" >&6
7422 echo "$as_me:$LINENO: result: ok" >&5
7423 echo "${ECHO_T}ok" >&6
7427 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7428 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7429 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7433 libltdl_cv_preloaded_symbols=yes
7435 libltdl_cv_preloaded_symbols=no
7439 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7440 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7441 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7443 cat >>confdefs.h <<\_ACEOF
7444 #define HAVE_PRELOADED_SYMBOLS 1
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7458 echo "$as_me:$LINENO: checking for shl_load" >&5
7459 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7460 if test "${ac_cv_func_shl_load+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7469 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7471 #define shl_load innocuous_shl_load
7473 /* System header to define __stub macros and hopefully few prototypes,
7474 which can conflict with char shl_load (); below.
7475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7476 <limits.h> exists even on freestanding compilers. */
7479 # include <limits.h>
7481 # include <assert.h>
7486 /* Override any gcc2 internal prototype to avoid an error. */
7491 /* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7494 /* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7500 char (*f) () = shl_load;
7509 return f != shl_load;
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>conftest.er1
7518 grep -v '^ *+' conftest.er1 >conftest.err
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -z "$ac_c_werror_flag"
7524 || test ! -s conftest.err'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; } &&
7530 { ac_try='test -s conftest$ac_exeext'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 ac_cv_func_shl_load=yes
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7541 ac_cv_func_shl_load=no
7543 rm -f conftest.err conftest.$ac_objext \
7544 conftest$ac_exeext conftest.$ac_ext
7546 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7547 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7548 if test $ac_cv_func_shl_load = yes; then
7550 cat >>confdefs.h <<\_ACEOF
7551 #define HAVE_SHL_LOAD 1
7555 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7556 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7557 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 ac_check_lib_save_LIBS=$LIBS
7562 cat >conftest.$ac_ext <<_ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7569 /* Override any gcc2 internal prototype to avoid an error. */
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586 (eval $ac_link) 2>conftest.er1
7588 grep -v '^ *+' conftest.er1 >conftest.err
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_lib_dld_shl_load=yes
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 ac_cv_lib_dld_shl_load=no
7613 rm -f conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
7615 LIBS=$ac_check_lib_save_LIBS
7617 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7618 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7619 if test $ac_cv_lib_dld_shl_load = yes; then
7621 cat >>confdefs.h <<\_ACEOF
7622 #define HAVE_SHL_LOAD 1
7625 LIBADD_DL="$LIBADD_DL -ldld"
7627 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7628 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7629 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 ac_check_lib_save_LIBS=$LIBS
7634 cat >conftest.$ac_ext <<_ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7641 /* Override any gcc2 internal prototype to avoid an error. */
7645 /* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>conftest.er1
7660 grep -v '^ *+' conftest.er1 >conftest.err
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag"
7666 || test ! -s conftest.err'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; } &&
7672 { ac_try='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_lib_dl_dlopen=yes
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_cv_lib_dl_dlopen=no
7685 rm -f conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687 LIBS=$ac_check_lib_save_LIBS
7689 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7690 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7691 if test $ac_cv_lib_dl_dlopen = yes; then
7693 cat >>confdefs.h <<\_ACEOF
7694 #define HAVE_LIBDL 1
7697 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7699 cat >conftest.$ac_ext <<_ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7717 rm -f conftest.$ac_objext conftest$ac_exeext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719 (eval $ac_link) 2>conftest.er1
7721 grep -v '^ *+' conftest.er1 >conftest.err
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try='test -z "$ac_c_werror_flag"
7727 || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7740 cat >>confdefs.h <<\_ACEOF
7741 #define HAVE_LIBDL 1
7743 libltdl_cv_func_dlopen="yes"
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7749 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7750 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 ac_check_lib_save_LIBS=$LIBS
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7762 /* Override any gcc2 internal prototype to avoid an error. */
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7779 (eval $ac_link) 2>conftest.er1
7781 grep -v '^ *+' conftest.er1 >conftest.err
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -z "$ac_c_werror_flag"
7787 || test ! -s conftest.err'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try='test -s conftest$ac_exeext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 ac_cv_lib_svld_dlopen=yes
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 ac_cv_lib_svld_dlopen=no
7806 rm -f conftest.err conftest.$ac_objext \
7807 conftest$ac_exeext conftest.$ac_ext
7808 LIBS=$ac_check_lib_save_LIBS
7810 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7811 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7812 if test $ac_cv_lib_svld_dlopen = yes; then
7814 cat >>confdefs.h <<\_ACEOF
7815 #define HAVE_LIBDL 1
7818 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7820 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7821 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7822 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 ac_check_lib_save_LIBS=$LIBS
7827 cat >conftest.$ac_ext <<_ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7834 /* Override any gcc2 internal prototype to avoid an error. */
7838 /* We use char because int might match the return type of a gcc2
7839 builtin and then its argument prototype would still apply. */
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7851 (eval $ac_link) 2>conftest.er1
7853 grep -v '^ *+' conftest.er1 >conftest.err
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try='test -z "$ac_c_werror_flag"
7859 || test ! -s conftest.err'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; } &&
7865 { ac_try='test -s conftest$ac_exeext'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 ac_cv_lib_dld_dld_link=yes
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7876 ac_cv_lib_dld_dld_link=no
7878 rm -f conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880 LIBS=$ac_check_lib_save_LIBS
7882 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7883 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7884 if test $ac_cv_lib_dld_dld_link = yes; then
7886 cat >>confdefs.h <<\_ACEOF
7890 LIBADD_DL="$LIBADD_DL -ldld"
7892 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7893 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7894 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7905 #define _dyld_func_lookup innocuous__dyld_func_lookup
7907 /* System header to define __stub macros and hopefully few prototypes,
7908 which can conflict with char _dyld_func_lookup (); below.
7909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7910 <limits.h> exists even on freestanding compilers. */
7913 # include <limits.h>
7915 # include <assert.h>
7918 #undef _dyld_func_lookup
7920 /* Override any gcc2 internal prototype to avoid an error. */
7925 /* We use char because int might match the return type of a gcc2
7926 builtin and then its argument prototype would still apply. */
7927 char _dyld_func_lookup ();
7928 /* The GNU C library defines this for functions which it implements
7929 to always fail with ENOSYS. Some functions are actually named
7930 something starting with __ and the normal name is an alias. */
7931 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7934 char (*f) () = _dyld_func_lookup;
7943 return f != _dyld_func_lookup;
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_c_werror_flag"
7958 || test ! -s conftest.err'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_func__dyld_func_lookup=yes
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 ac_cv_func__dyld_func_lookup=no
7977 rm -f conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7980 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7981 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7982 if test $ac_cv_func__dyld_func_lookup = yes; then
7984 cat >>confdefs.h <<\_ACEOF
7998 rm -f conftest.err conftest.$ac_objext \
7999 conftest$ac_exeext conftest.$ac_ext
8010 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8012 lt_save_LIBS="$LIBS"
8013 LIBS="$LIBS $LIBADD_DL"
8015 for ac_func in dlerror
8017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8018 echo "$as_me:$LINENO: checking for $ac_func" >&5
8019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8020 if eval "test \"\${$as_ac_var+set}\" = set"; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 cat >conftest.$ac_ext <<_ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8031 #define $ac_func innocuous_$ac_func
8033 /* System header to define __stub macros and hopefully few prototypes,
8034 which can conflict with char $ac_func (); below.
8035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8036 <limits.h> exists even on freestanding compilers. */
8039 # include <limits.h>
8041 # include <assert.h>
8046 /* Override any gcc2 internal prototype to avoid an error. */
8051 /* We use char because int might match the return type of a gcc2
8052 builtin and then its argument prototype would still apply. */
8054 /* The GNU C library defines this for functions which it implements
8055 to always fail with ENOSYS. Some functions are actually named
8056 something starting with __ and the normal name is an alias. */
8057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8060 char (*f) () = $ac_func;
8069 return f != $ac_func;
8074 rm -f conftest.$ac_objext conftest$ac_exeext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076 (eval $ac_link) 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_c_werror_flag"
8084 || test ! -s conftest.err'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try='test -s conftest$ac_exeext'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 eval "$as_ac_var=yes"
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 eval "$as_ac_var=no"
8103 rm -f conftest.err conftest.$ac_objext \
8104 conftest$ac_exeext conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8108 if test `eval echo '${'$as_ac_var'}'` = yes; then
8109 cat >>confdefs.h <<_ACEOF
8110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8116 LIBS="$lt_save_LIBS"
8119 ac_cpp='$CPP $CPPFLAGS'
8120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8127 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8128 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 ac_cv_sys_symbol_underscore=no
8132 cat > conftest.$ac_ext <<EOF
8133 void nm_test_func(){}
8134 int main(){nm_test_func;return 0;}
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137 (eval $ac_compile) 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; then
8141 # Now try to grab the symbols.
8142 ac_nlist=conftest.nm
8143 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8144 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && test -s "$ac_nlist"; then
8148 # See whether the symbols have a leading underscore.
8149 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8150 ac_cv_sys_symbol_underscore=yes
8152 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8155 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8159 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8162 echo "configure: failed program was:" >&5
8168 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8169 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8172 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8173 if test x"$libltdl_cv_func_dlopen" = xyes ||
8174 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8175 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8176 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8177 if test "${libltdl_cv_need_uscore+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 libltdl_cv_need_uscore=unknown
8182 LIBS="$LIBS $LIBADD_DL"
8183 if test "$cross_compiling" = yes; then :
8184 libltdl_cv_need_uscore=cross
8186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8187 lt_status=$lt_dlunknown
8188 cat > conftest.$ac_ext <<EOF
8189 #line 8189 "configure"
8190 #include "confdefs.h"
8199 # define LT_DLGLOBAL RTLD_GLOBAL
8202 # define LT_DLGLOBAL DL_GLOBAL
8204 # define LT_DLGLOBAL 0
8208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8209 find out it does not work in some platform. */
8210 #ifndef LT_DLLAZY_OR_NOW
8212 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8215 # define LT_DLLAZY_OR_NOW DL_LAZY
8218 # define LT_DLLAZY_OR_NOW RTLD_NOW
8221 # define LT_DLLAZY_OR_NOW DL_NOW
8223 # define LT_DLLAZY_OR_NOW 0
8231 extern "C" void exit (int);
8234 void fnord() { int i=42;}
8237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8238 int status = $lt_dlunknown;
8242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8243 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8244 /* dlclose (self); */
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251 (eval $ac_link) 2>&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8255 (./conftest; exit; ) 2>/dev/null
8258 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8259 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8263 # compilation failed
8272 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8273 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8277 if test x"$libltdl_cv_need_uscore" = xyes; then
8279 cat >>confdefs.h <<\_ACEOF
8280 #define NEED_USCORE 1
8286 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8287 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8288 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 # PORTME does your system automatically load deplibs for dlopen?
8292 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8293 # For now, we just catch OSes we know something about -- in the
8294 # future, we'll try test this programmatically.
8295 libltdl_cv_sys_dlopen_deplibs=unknown
8297 aix3*|aix4.1.*|aix4.2.*)
8298 # Unknown whether this is true for these versions of AIX, but
8299 # we want this `case' here to explicitly catch those versions.
8300 libltdl_cv_sys_dlopen_deplibs=unknown
8303 libltdl_cv_sys_dlopen_deplibs=yes
8306 # Assuming the user has installed a libdl from somewhere, this is true
8307 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8308 libltdl_cv_sys_dlopen_deplibs=yes
8310 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8311 # GNU and its variants, using gnu ld.so (Glibc)
8312 libltdl_cv_sys_dlopen_deplibs=yes
8315 libltdl_cv_sys_dlopen_deplibs=yes
8317 irix[12345]*|irix6.[01]*)
8318 # Catch all versions of IRIX before 6.2, and indicate that we don't
8319 # know how it worked for any of those versions.
8320 libltdl_cv_sys_dlopen_deplibs=unknown
8323 # The case above catches anything before 6.2, and it's known that
8324 # at 6.2 and later dlopen does load deplibs.
8325 libltdl_cv_sys_dlopen_deplibs=yes
8328 libltdl_cv_sys_dlopen_deplibs=yes
8331 libltdl_cv_sys_dlopen_deplibs=yes
8334 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8335 # it did *not* use an RPATH in a shared library to find objects the
8336 # library depends on, so we explictly say `no'.
8337 libltdl_cv_sys_dlopen_deplibs=no
8339 osf5.0|osf5.0a|osf5.1)
8340 # dlopen *does* load deplibs and with the right loader patch applied
8341 # it even uses RPATH in a shared library to search for shared objects
8342 # that the library depends on, but there's no easy way to know if that
8343 # patch is installed. Since this is the case, all we can really
8344 # say is unknown -- it depends on the patch being installed. If
8345 # it is, this changes to `yes'. Without it, it would be `no'.
8346 libltdl_cv_sys_dlopen_deplibs=unknown
8349 # the two cases above should catch all versions of osf <= 5.1. Read
8350 # the comments above for what we know about them.
8351 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8352 # is used to find them so we can finally say `yes'.
8353 libltdl_cv_sys_dlopen_deplibs=yes
8356 libltdl_cv_sys_dlopen_deplibs=yes
8361 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8362 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8363 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8365 cat >>confdefs.h <<\_ACEOF
8366 #define LTDL_DLOPEN_DEPLIBS 1
8372 for ac_header in argz.h
8374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376 echo "$as_me:$LINENO: checking for $ac_header" >&5
8377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8384 # Is the header compilable?
8385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8387 cat >conftest.$ac_ext <<_ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 #include <$ac_header>
8396 rm -f conftest.$ac_objext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398 (eval $ac_compile) 2>conftest.er1
8400 grep -v '^ *+' conftest.er1 >conftest.err
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -z "$ac_c_werror_flag"
8406 || test ! -s conftest.err'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 ac_header_compiler=yes
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 ac_header_compiler=no
8425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8427 echo "${ECHO_T}$ac_header_compiler" >&6
8429 # Is the header present?
8430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 #include <$ac_header>
8440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8443 grep -v '^ *+' conftest.er1 >conftest.err
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } >/dev/null; then
8448 if test -s conftest.err; then
8449 ac_cpp_err=$ac_c_preproc_warn_flag
8450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8457 if test -z "$ac_cpp_err"; then
8458 ac_header_preproc=yes
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_header_preproc=no
8465 rm -f conftest.err conftest.$ac_ext
8466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8467 echo "${ECHO_T}$ac_header_preproc" >&6
8469 # So? What about this header?
8470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8476 ac_header_preproc=yes
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8493 ## ----------------------------------- ##
8494 ## Report this to llvmbugs@cs.uiuc.edu ##
8495 ## ----------------------------------- ##
8498 sed "s/^/$as_me: WARNING: /" >&2
8501 echo "$as_me:$LINENO: checking for $ac_header" >&5
8502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 eval "$as_ac_Header=\$ac_header_preproc"
8508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8513 cat >>confdefs.h <<_ACEOF
8514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8522 echo "$as_me:$LINENO: checking for error_t" >&5
8523 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8524 if test "${ac_cv_type_error_t+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 cat >conftest.$ac_ext <<_ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8542 if (sizeof (error_t))
8548 rm -f conftest.$ac_objext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550 (eval $ac_compile) 2>conftest.er1
8552 grep -v '^ *+' conftest.er1 >conftest.err
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag"
8558 || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest.$ac_objext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 ac_cv_type_error_t=yes
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 ac_cv_type_error_t=no
8577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8579 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8580 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8581 if test $ac_cv_type_error_t = yes; then
8583 cat >>confdefs.h <<_ACEOF
8584 #define HAVE_ERROR_T 1
8590 cat >>confdefs.h <<\_ACEOF
8602 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8605 echo "$as_me:$LINENO: checking for $ac_func" >&5
8606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8607 if eval "test \"\${$as_ac_var+set}\" = set"; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 cat >conftest.$ac_ext <<_ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8618 #define $ac_func innocuous_$ac_func
8620 /* System header to define __stub macros and hopefully few prototypes,
8621 which can conflict with char $ac_func (); below.
8622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8623 <limits.h> exists even on freestanding compilers. */
8626 # include <limits.h>
8628 # include <assert.h>
8633 /* Override any gcc2 internal prototype to avoid an error. */
8638 /* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8641 /* The GNU C library defines this for functions which it implements
8642 to always fail with ENOSYS. Some functions are actually named
8643 something starting with __ and the normal name is an alias. */
8644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8647 char (*f) () = $ac_func;
8656 return f != $ac_func;
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_c_werror_flag"
8671 || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 eval "$as_ac_var=yes"
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 eval "$as_ac_var=no"
8690 rm -f conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8695 if test `eval echo '${'$as_ac_var'}'` = yes; then
8696 cat >>confdefs.h <<_ACEOF
8697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8730 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8735 echo "$as_me:$LINENO: checking for $ac_header" >&5
8736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8743 # Is the header compilable?
8744 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8752 $ac_includes_default
8753 #include <$ac_header>
8755 rm -f conftest.$ac_objext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757 (eval $ac_compile) 2>conftest.er1
8759 grep -v '^ *+' conftest.er1 >conftest.err
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -z "$ac_c_werror_flag"
8765 || test ! -s conftest.err'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; } &&
8771 { ac_try='test -s conftest.$ac_objext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_header_compiler=yes
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8782 ac_header_compiler=no
8784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8786 echo "${ECHO_T}$ac_header_compiler" >&6
8788 # Is the header present?
8789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8791 cat >conftest.$ac_ext <<_ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 #include <$ac_header>
8799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8802 grep -v '^ *+' conftest.er1 >conftest.err
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } >/dev/null; then
8807 if test -s conftest.err; then
8808 ac_cpp_err=$ac_c_preproc_warn_flag
8809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8816 if test -z "$ac_cpp_err"; then
8817 ac_header_preproc=yes
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8822 ac_header_preproc=no
8824 rm -f conftest.err conftest.$ac_ext
8825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8826 echo "${ECHO_T}$ac_header_preproc" >&6
8828 # So? What about this header?
8829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8835 ac_header_preproc=yes
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8852 ## ----------------------------------- ##
8853 ## Report this to llvmbugs@cs.uiuc.edu ##
8854 ## ----------------------------------- ##
8857 sed "s/^/$as_me: WARNING: /" >&2
8860 echo "$as_me:$LINENO: checking for $ac_header" >&5
8861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 eval "$as_ac_Header=\$ac_header_preproc"
8867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8872 cat >>confdefs.h <<_ACEOF
8873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8884 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8888 echo "$as_me:$LINENO: checking for $ac_header" >&5
8889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8896 # Is the header compilable?
8897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8899 cat >conftest.$ac_ext <<_ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 $ac_includes_default
8906 #include <$ac_header>
8908 rm -f conftest.$ac_objext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910 (eval $ac_compile) 2>conftest.er1
8912 grep -v '^ *+' conftest.er1 >conftest.err
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try='test -z "$ac_c_werror_flag"
8918 || test ! -s conftest.err'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; } &&
8924 { ac_try='test -s conftest.$ac_objext'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; }; then
8930 ac_header_compiler=yes
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8935 ac_header_compiler=no
8937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8939 echo "${ECHO_T}$ac_header_compiler" >&6
8941 # Is the header present?
8942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8944 cat >conftest.$ac_ext <<_ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 #include <$ac_header>
8952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8955 grep -v '^ *+' conftest.er1 >conftest.err
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } >/dev/null; then
8960 if test -s conftest.err; then
8961 ac_cpp_err=$ac_c_preproc_warn_flag
8962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8969 if test -z "$ac_cpp_err"; then
8970 ac_header_preproc=yes
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 ac_header_preproc=no
8977 rm -f conftest.err conftest.$ac_ext
8978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8979 echo "${ECHO_T}$ac_header_preproc" >&6
8981 # So? What about this header?
8982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8988 ac_header_preproc=yes
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9005 ## ----------------------------------- ##
9006 ## Report this to llvmbugs@cs.uiuc.edu ##
9007 ## ----------------------------------- ##
9010 sed "s/^/$as_me: WARNING: /" >&2
9013 echo "$as_me:$LINENO: checking for $ac_header" >&5
9014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 eval "$as_ac_Header=\$ac_header_preproc"
9020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9025 cat >>confdefs.h <<_ACEOF
9026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9035 for ac_header in string.h strings.h
9037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9039 echo "$as_me:$LINENO: checking for $ac_header" >&5
9040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9047 # Is the header compilable?
9048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9050 cat >conftest.$ac_ext <<_ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056 $ac_includes_default
9057 #include <$ac_header>
9059 rm -f conftest.$ac_objext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061 (eval $ac_compile) 2>conftest.er1
9063 grep -v '^ *+' conftest.er1 >conftest.err
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -z "$ac_c_werror_flag"
9069 || test ! -s conftest.err'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try='test -s conftest.$ac_objext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_header_compiler=yes
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 ac_header_compiler=no
9088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9090 echo "${ECHO_T}$ac_header_compiler" >&6
9092 # Is the header present?
9093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9095 cat >conftest.$ac_ext <<_ACEOF
9098 cat confdefs.h >>conftest.$ac_ext
9099 cat >>conftest.$ac_ext <<_ACEOF
9100 /* end confdefs.h. */
9101 #include <$ac_header>
9103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9106 grep -v '^ *+' conftest.er1 >conftest.err
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } >/dev/null; then
9111 if test -s conftest.err; then
9112 ac_cpp_err=$ac_c_preproc_warn_flag
9113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9120 if test -z "$ac_cpp_err"; then
9121 ac_header_preproc=yes
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9126 ac_header_preproc=no
9128 rm -f conftest.err conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9130 echo "${ECHO_T}$ac_header_preproc" >&6
9132 # So? What about this header?
9133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9139 ac_header_preproc=yes
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9156 ## ----------------------------------- ##
9157 ## Report this to llvmbugs@cs.uiuc.edu ##
9158 ## ----------------------------------- ##
9161 sed "s/^/$as_me: WARNING: /" >&2
9164 echo "$as_me:$LINENO: checking for $ac_header" >&5
9165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 eval "$as_ac_Header=\$ac_header_preproc"
9171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9176 cat >>confdefs.h <<_ACEOF
9177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9187 for ac_func in strchr index
9189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9190 echo "$as_me:$LINENO: checking for $ac_func" >&5
9191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9192 if eval "test \"\${$as_ac_var+set}\" = set"; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 cat >conftest.$ac_ext <<_ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9203 #define $ac_func innocuous_$ac_func
9205 /* System header to define __stub macros and hopefully few prototypes,
9206 which can conflict with char $ac_func (); below.
9207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9208 <limits.h> exists even on freestanding compilers. */
9211 # include <limits.h>
9213 # include <assert.h>
9218 /* Override any gcc2 internal prototype to avoid an error. */
9223 /* We use char because int might match the return type of a gcc2
9224 builtin and then its argument prototype would still apply. */
9226 /* The GNU C library defines this for functions which it implements
9227 to always fail with ENOSYS. Some functions are actually named
9228 something starting with __ and the normal name is an alias. */
9229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9232 char (*f) () = $ac_func;
9241 return f != $ac_func;
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9250 grep -v '^ *+' conftest.er1 >conftest.err
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 eval "$as_ac_var=yes"
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9273 eval "$as_ac_var=no"
9275 rm -f conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9280 if test `eval echo '${'$as_ac_var'}'` = yes; then
9281 cat >>confdefs.h <<_ACEOF
9282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9290 for ac_func in strrchr rindex
9292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9293 echo "$as_me:$LINENO: checking for $ac_func" >&5
9294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9295 if eval "test \"\${$as_ac_var+set}\" = set"; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 cat >conftest.$ac_ext <<_ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9306 #define $ac_func innocuous_$ac_func
9308 /* System header to define __stub macros and hopefully few prototypes,
9309 which can conflict with char $ac_func (); below.
9310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9311 <limits.h> exists even on freestanding compilers. */
9314 # include <limits.h>
9316 # include <assert.h>
9321 /* Override any gcc2 internal prototype to avoid an error. */
9326 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9329 /* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9335 char (*f) () = $ac_func;
9344 return f != $ac_func;
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try='test -s conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 eval "$as_ac_var=yes"
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9376 eval "$as_ac_var=no"
9378 rm -f conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9383 if test `eval echo '${'$as_ac_var'}'` = yes; then
9384 cat >>confdefs.h <<_ACEOF
9385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9393 for ac_func in memcpy bcopy
9395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9396 echo "$as_me:$LINENO: checking for $ac_func" >&5
9397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9398 if eval "test \"\${$as_ac_var+set}\" = set"; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9409 #define $ac_func innocuous_$ac_func
9411 /* System header to define __stub macros and hopefully few prototypes,
9412 which can conflict with char $ac_func (); below.
9413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414 <limits.h> exists even on freestanding compilers. */
9417 # include <limits.h>
9419 # include <assert.h>
9424 /* Override any gcc2 internal prototype to avoid an error. */
9429 /* We use char because int might match the return type of a gcc2
9430 builtin and then its argument prototype would still apply. */
9432 /* The GNU C library defines this for functions which it implements
9433 to always fail with ENOSYS. Some functions are actually named
9434 something starting with __ and the normal name is an alias. */
9435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9438 char (*f) () = $ac_func;
9447 return f != $ac_func;
9452 rm -f conftest.$ac_objext conftest$ac_exeext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>conftest.er1
9456 grep -v '^ *+' conftest.er1 >conftest.err
9458 cat conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try='test -z "$ac_c_werror_flag"
9462 || test ! -s conftest.err'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; } &&
9468 { ac_try='test -s conftest$ac_exeext'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 eval "$as_ac_var=yes"
9476 echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9479 eval "$as_ac_var=no"
9481 rm -f conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
9484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9486 if test `eval echo '${'$as_ac_var'}'` = yes; then
9487 cat >>confdefs.h <<_ACEOF
9488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9496 for ac_func in memmove strcmp
9498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9499 echo "$as_me:$LINENO: checking for $ac_func" >&5
9500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9501 if eval "test \"\${$as_ac_var+set}\" = set"; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 cat >conftest.$ac_ext <<_ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9512 #define $ac_func innocuous_$ac_func
9514 /* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char $ac_func (); below.
9516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517 <limits.h> exists even on freestanding compilers. */
9520 # include <limits.h>
9522 # include <assert.h>
9527 /* Override any gcc2 internal prototype to avoid an error. */
9532 /* We use char because int might match the return type of a gcc2
9533 builtin and then its argument prototype would still apply. */
9535 /* The GNU C library defines this for functions which it implements
9536 to always fail with ENOSYS. Some functions are actually named
9537 something starting with __ and the normal name is an alias. */
9538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9541 char (*f) () = $ac_func;
9550 return f != $ac_func;
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557 (eval $ac_link) 2>conftest.er1
9559 grep -v '^ *+' conftest.er1 >conftest.err
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest$ac_exeext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 eval "$as_ac_var=yes"
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 eval "$as_ac_var=no"
9584 rm -f conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9589 if test `eval echo '${'$as_ac_var'}'` = yes; then
9590 cat >>confdefs.h <<_ACEOF
9591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9600 for ac_func in closedir opendir readdir
9602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9603 echo "$as_me:$LINENO: checking for $ac_func" >&5
9604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9605 if eval "test \"\${$as_ac_var+set}\" = set"; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 cat >conftest.$ac_ext <<_ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9616 #define $ac_func innocuous_$ac_func
9618 /* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char $ac_func (); below.
9620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621 <limits.h> exists even on freestanding compilers. */
9624 # include <limits.h>
9626 # include <assert.h>
9631 /* Override any gcc2 internal prototype to avoid an error. */
9636 /* We use char because int might match the return type of a gcc2
9637 builtin and then its argument prototype would still apply. */
9639 /* The GNU C library defines this for functions which it implements
9640 to always fail with ENOSYS. Some functions are actually named
9641 something starting with __ and the normal name is an alias. */
9642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9645 char (*f) () = $ac_func;
9654 return f != $ac_func;
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>conftest.er1
9663 grep -v '^ *+' conftest.er1 >conftest.err
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -z "$ac_c_werror_flag"
9669 || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try='test -s conftest$ac_exeext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 eval "$as_ac_var=yes"
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9686 eval "$as_ac_var=no"
9688 rm -f conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9693 if test `eval echo '${'$as_ac_var'}'` = yes; then
9694 cat >>confdefs.h <<_ACEOF
9695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9702 # Check whether --enable-shared or --disable-shared was given.
9703 if test "${enable_shared+set}" = set; then
9704 enableval="$enable_shared"
9705 p=${PACKAGE-default}
9707 yes) enable_shared=yes ;;
9708 no) enable_shared=no ;;
9711 # Look at the argument we got. We use all the common list separators.
9712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9713 for pkg in $enableval; do
9715 if test "X$pkg" = "X$p"; then
9726 # Check whether --enable-static or --disable-static was given.
9727 if test "${enable_static+set}" = set; then
9728 enableval="$enable_static"
9729 p=${PACKAGE-default}
9731 yes) enable_static=yes ;;
9732 no) enable_static=no ;;
9735 # Look at the argument we got. We use all the common list separators.
9736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9737 for pkg in $enableval; do
9739 if test "X$pkg" = "X$p"; then
9750 # Check whether --enable-fast-install or --disable-fast-install was given.
9751 if test "${enable_fast_install+set}" = set; then
9752 enableval="$enable_fast_install"
9753 p=${PACKAGE-default}
9755 yes) enable_fast_install=yes ;;
9756 no) enable_fast_install=no ;;
9758 enable_fast_install=no
9759 # Look at the argument we got. We use all the common list separators.
9760 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9761 for pkg in $enableval; do
9763 if test "X$pkg" = "X$p"; then
9764 enable_fast_install=yes
9771 enable_fast_install=yes
9774 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9775 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9776 if test "${lt_cv_path_SED+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 # Loop through the user's path and test for sed and gsed.
9780 # Then use that list of sed's as ones to test for truncation.
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 test -z "$as_dir" && as_dir=.
9786 for lt_ac_prog in sed gsed; do
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9789 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9796 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9797 # along with /bin/sed that truncates output.
9798 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9799 test ! -f $lt_ac_sed && break
9800 cat /dev/null > conftest.in
9802 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9803 # Check for GNU sed and select it if it is found.
9804 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9805 lt_cv_path_SED=$lt_ac_sed
9809 cat conftest.in conftest.in >conftest.tmp
9810 mv conftest.tmp conftest.in
9811 cp conftest.in conftest.nl
9813 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9814 cmp -s conftest.out conftest.nl || break
9815 # 10000 chars as input seems more than enough
9816 test $lt_ac_count -gt 10 && break
9817 lt_ac_count=`expr $lt_ac_count + 1`
9818 if test $lt_ac_count -gt $lt_ac_max; then
9819 lt_ac_max=$lt_ac_count
9820 lt_cv_path_SED=$lt_ac_sed
9828 echo "$as_me:$LINENO: result: $SED" >&5
9829 echo "${ECHO_T}$SED" >&6
9832 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9833 if test "${with_gnu_ld+set}" = set; then
9834 withval="$with_gnu_ld"
9835 test "$withval" = no || with_gnu_ld=yes
9840 if test "$GCC" = yes; then
9841 # Check if gcc -print-prog-name=ld gives a path.
9842 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9843 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9846 # gcc leaves a trailing carriage return which upsets mingw
9847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9852 # Accept absolute paths.
9854 re_direlt='/[^/][^/]*/\.\./'
9855 # Canonicalize the pathname of ld
9856 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9857 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9858 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9860 test -z "$LD" && LD="$ac_prog"
9863 # If it fails, then pretend we aren't using GCC.
9867 # If it is relative, then search for the first ld in PATH.
9871 elif test "$with_gnu_ld" = yes; then
9872 echo "$as_me:$LINENO: checking for GNU ld" >&5
9873 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9875 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9876 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9878 if test "${lt_cv_path_LD+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 if test -z "$LD"; then
9882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9883 for ac_dir in $PATH; do
9885 test -z "$ac_dir" && ac_dir=.
9886 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9887 lt_cv_path_LD="$ac_dir/$ac_prog"
9888 # Check to see if the program is GNU ld. I'd rather use --version,
9889 # but apparently some GNU ld's only accept -v.
9890 # Break only if it was the GNU/non-GNU ld that we prefer.
9891 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9892 *GNU* | *'with BFD'*)
9893 test "$with_gnu_ld" != no && break
9896 test "$with_gnu_ld" != yes && break
9903 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9908 if test -n "$LD"; then
9909 echo "$as_me:$LINENO: result: $LD" >&5
9910 echo "${ECHO_T}$LD" >&6
9912 echo "$as_me:$LINENO: result: no" >&5
9913 echo "${ECHO_T}no" >&6
9915 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9916 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9917 { (exit 1); exit 1; }; }
9918 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9919 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9920 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9924 case `$LD -v 2>&1 </dev/null` in
9925 *GNU* | *'with BFD'*)
9926 lt_cv_prog_gnu_ld=yes
9929 lt_cv_prog_gnu_ld=no
9933 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9934 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9935 with_gnu_ld=$lt_cv_prog_gnu_ld
9938 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9939 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9940 if test "${lt_cv_ld_reload_flag+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 lt_cv_ld_reload_flag='-r'
9945 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9946 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9947 reload_flag=$lt_cv_ld_reload_flag
9948 case $reload_flag in
9950 *) reload_flag=" $reload_flag" ;;
9952 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9955 if test "$GCC" = yes; then
9956 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9958 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9963 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9964 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9965 if test "${lt_cv_deplibs_check_method+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 lt_cv_file_magic_cmd='$MAGIC_CMD'
9969 lt_cv_file_magic_test_file=
9970 lt_cv_deplibs_check_method='unknown'
9971 # Need to set the preceding variable on all platforms that support
9972 # interlibrary dependencies.
9973 # 'none' -- dependencies not supported.
9974 # `unknown' -- same as none, but documents that we really don't know.
9975 # 'pass_all' -- all dependencies passed with no checks.
9976 # 'test_compile' -- check by making test program.
9977 # 'file_magic [[regex]]' -- check by looking for files in library path
9978 # which responds to the $file_magic_cmd with a given extended regex.
9979 # If you have `file' or equivalent on your system and you're not sure
9980 # whether `pass_all' will *always* work, you probably want this one.
9984 lt_cv_deplibs_check_method=pass_all
9988 lt_cv_deplibs_check_method=pass_all
9992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9993 lt_cv_file_magic_cmd='/usr/bin/file -L'
9994 lt_cv_file_magic_test_file=/shlib/libc.so
9998 # func_win32_libid is a shell function defined in ltmain.sh
9999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10000 lt_cv_file_magic_cmd='func_win32_libid'
10004 # Base MSYS/MinGW do not provide the 'file' command needed by
10005 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10006 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10007 lt_cv_file_magic_cmd='$OBJDUMP -f'
10010 darwin* | rhapsody*)
10011 lt_cv_deplibs_check_method=pass_all
10014 freebsd* | kfreebsd*-gnu)
10015 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10018 # Not sure whether the presence of OpenBSD here was a mistake.
10019 # Let's accept both of them until this is cleared up.
10020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10021 lt_cv_file_magic_cmd=/usr/bin/file
10022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10026 lt_cv_deplibs_check_method=pass_all
10031 lt_cv_deplibs_check_method=pass_all
10034 hpux10.20* | hpux11*)
10035 lt_cv_file_magic_cmd=/usr/bin/file
10036 case "$host_cpu" in
10038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10039 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10042 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]'
10043 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10047 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10052 irix5* | irix6* | nonstopux*)
10054 *-32|*"-32 ") libmagic=32-bit;;
10055 *-n32|*"-n32 ") libmagic=N32;;
10056 *-64|*"-64 ") libmagic=64-bit;;
10057 *) libmagic=never-match;;
10059 lt_cv_deplibs_check_method=pass_all
10062 # This must be Linux ELF.
10064 lt_cv_deplibs_check_method=pass_all
10068 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10077 lt_cv_file_magic_cmd=/usr/bin/file
10078 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10082 lt_cv_deplibs_check_method=unknown
10086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10093 osf3* | osf4* | osf5*)
10094 lt_cv_deplibs_check_method=pass_all
10098 lt_cv_deplibs_check_method=pass_all
10102 lt_cv_deplibs_check_method=pass_all
10105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10106 case $host_vendor in
10108 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]'
10109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10112 lt_cv_deplibs_check_method=pass_all
10115 lt_cv_file_magic_cmd='/bin/file'
10116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10119 lt_cv_file_magic_cmd='/bin/file'
10120 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10121 lt_cv_file_magic_test_file=/lib/libc.so
10124 lt_cv_deplibs_check_method=pass_all
10129 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10130 lt_cv_deplibs_check_method=pass_all
10135 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10136 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10137 file_magic_cmd=$lt_cv_file_magic_cmd
10138 deplibs_check_method=$lt_cv_deplibs_check_method
10139 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10143 # If no C compiler was specified, use CC.
10146 # Allow CC to be a program name with arguments.
10149 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10150 if test "${enable_libtool_lock+set}" = set; then
10151 enableval="$enable_libtool_lock"
10154 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10156 # Some flags need to be propagated to the compiler or linker for good
10160 # Find out which ABI we are using.
10161 echo 'int i;' > conftest.$ac_ext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10163 (eval $ac_compile) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; then
10167 case `/usr/bin/file conftest.$ac_objext` in
10169 HPUX_IA64_MODE="32"
10172 HPUX_IA64_MODE="64"
10179 # Find out which ABI we are using.
10180 echo '#line 10180 "configure"' > conftest.$ac_ext
10181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10182 (eval $ac_compile) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; then
10186 if test "$lt_cv_prog_gnu_ld" = yes; then
10187 case `/usr/bin/file conftest.$ac_objext` in
10189 LD="${LD-ld} -melf32bsmip"
10192 LD="${LD-ld} -melf32bmipn32"
10195 LD="${LD-ld} -melf64bmip"
10199 case `/usr/bin/file conftest.$ac_objext` in
10215 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10216 # Find out which ABI we are using.
10217 echo 'int i;' > conftest.$ac_ext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219 (eval $ac_compile) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; then
10223 case "`/usr/bin/file conftest.o`" in
10227 LD="${LD-ld} -m elf_i386"
10229 ppc64-*linux*|powerpc64-*linux*)
10230 LD="${LD-ld} -m elf32ppclinux"
10233 LD="${LD-ld} -m elf_s390"
10236 LD="${LD-ld} -m elf32_sparc"
10243 LD="${LD-ld} -m elf_x86_64"
10245 ppc*-*linux*|powerpc*-*linux*)
10246 LD="${LD-ld} -m elf64ppc"
10249 LD="${LD-ld} -m elf64_s390"
10252 LD="${LD-ld} -m elf64_sparc"
10262 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10263 SAVE_CFLAGS="$CFLAGS"
10264 CFLAGS="$CFLAGS -belf"
10265 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10266 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10267 if test "${lt_cv_cc_needs_belf+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 ac_cpp='$CPP $CPPFLAGS'
10272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10276 cat >conftest.$ac_ext <<_ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>conftest.er1
10288 grep -v '^ *+' conftest.er1 >conftest.err
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -z "$ac_c_werror_flag"
10294 || test ! -s conftest.err'
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; } &&
10300 { ac_try='test -s conftest$ac_exeext'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; }; then
10306 lt_cv_cc_needs_belf=yes
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 lt_cv_cc_needs_belf=no
10313 rm -f conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10316 ac_cpp='$CPP $CPPFLAGS'
10317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10322 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10323 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10324 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10325 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10326 CFLAGS="$SAVE_CFLAGS"
10332 need_locks="$enable_libtool_lock"
10337 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10338 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10339 (test "X$CXX" != "Xg++"))) ; then
10341 ac_cpp='$CXXCPP $CPPFLAGS'
10342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10345 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10346 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10347 if test -z "$CXXCPP"; then
10348 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 # Double quotes because CXXCPP needs to be expanded
10352 for CXXCPP in "$CXX -E" "/lib/cpp"
10354 ac_preproc_ok=false
10355 for ac_cxx_preproc_warn_flag in '' yes
10357 # Use a header file that comes with gcc, so configuring glibc
10358 # with a fresh cross-compiler works.
10359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10360 # <limits.h> exists even on freestanding compilers.
10361 # On the NeXT, cc -E runs the code through the compiler's parser,
10362 # not just through cpp. "Syntax error" is here to catch this case.
10363 cat >conftest.$ac_ext <<_ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10370 # include <limits.h>
10372 # include <assert.h>
10376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10379 grep -v '^ *+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } >/dev/null; then
10384 if test -s conftest.err; then
10385 ac_cpp_err=$ac_cxx_preproc_warn_flag
10386 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10393 if test -z "$ac_cpp_err"; then
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 # Broken: fails on valid input.
10402 rm -f conftest.err conftest.$ac_ext
10404 # OK, works on sane cases. Now check whether non-existent headers
10405 # can be detected and how.
10406 cat >conftest.$ac_ext <<_ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 #include <ac_nonexistent.h>
10414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10417 grep -v '^ *+' conftest.er1 >conftest.err
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } >/dev/null; then
10422 if test -s conftest.err; then
10423 ac_cpp_err=$ac_cxx_preproc_warn_flag
10424 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10431 if test -z "$ac_cpp_err"; then
10432 # Broken: success on invalid input.
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10438 # Passes both tests.
10442 rm -f conftest.err conftest.$ac_ext
10445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10446 rm -f conftest.err conftest.$ac_ext
10447 if $ac_preproc_ok; then
10452 ac_cv_prog_CXXCPP=$CXXCPP
10455 CXXCPP=$ac_cv_prog_CXXCPP
10457 ac_cv_prog_CXXCPP=$CXXCPP
10459 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10460 echo "${ECHO_T}$CXXCPP" >&6
10461 ac_preproc_ok=false
10462 for ac_cxx_preproc_warn_flag in '' yes
10464 # Use a header file that comes with gcc, so configuring glibc
10465 # with a fresh cross-compiler works.
10466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10467 # <limits.h> exists even on freestanding compilers.
10468 # On the NeXT, cc -E runs the code through the compiler's parser,
10469 # not just through cpp. "Syntax error" is here to catch this case.
10470 cat >conftest.$ac_ext <<_ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10477 # include <limits.h>
10479 # include <assert.h>
10483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10486 grep -v '^ *+' conftest.er1 >conftest.err
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } >/dev/null; then
10491 if test -s conftest.err; then
10492 ac_cpp_err=$ac_cxx_preproc_warn_flag
10493 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10500 if test -z "$ac_cpp_err"; then
10503 echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10506 # Broken: fails on valid input.
10509 rm -f conftest.err conftest.$ac_ext
10511 # OK, works on sane cases. Now check whether non-existent headers
10512 # can be detected and how.
10513 cat >conftest.$ac_ext <<_ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10519 #include <ac_nonexistent.h>
10521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10524 grep -v '^ *+' conftest.er1 >conftest.err
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } >/dev/null; then
10529 if test -s conftest.err; then
10530 ac_cpp_err=$ac_cxx_preproc_warn_flag
10531 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10538 if test -z "$ac_cpp_err"; then
10539 # Broken: success on invalid input.
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10545 # Passes both tests.
10549 rm -f conftest.err conftest.$ac_ext
10552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10553 rm -f conftest.err conftest.$ac_ext
10554 if $ac_preproc_ok; then
10557 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10558 See \`config.log' for more details." >&5
10559 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10560 See \`config.log' for more details." >&2;}
10561 { (exit 1); exit 1; }; }
10565 ac_cpp='$CXXCPP $CPPFLAGS'
10566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10574 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10575 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10577 if test -n "$ac_tool_prefix"; then
10578 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10582 echo "$as_me:$LINENO: checking for $ac_word" >&5
10583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10584 if test "${ac_cv_prog_F77+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 if test -n "$F77"; then
10588 ac_cv_prog_F77="$F77" # Let the user override the test.
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10606 F77=$ac_cv_prog_F77
10607 if test -n "$F77"; then
10608 echo "$as_me:$LINENO: result: $F77" >&5
10609 echo "${ECHO_T}$F77" >&6
10611 echo "$as_me:$LINENO: result: no" >&5
10612 echo "${ECHO_T}no" >&6
10615 test -n "$F77" && break
10618 if test -z "$F77"; then
10620 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10622 # Extract the first word of "$ac_prog", so it can be a program name with args.
10623 set dummy $ac_prog; ac_word=$2
10624 echo "$as_me:$LINENO: checking for $ac_word" >&5
10625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10626 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 if test -n "$ac_ct_F77"; then
10630 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 for as_dir in $PATH
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10639 ac_cv_prog_ac_ct_F77="$ac_prog"
10640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10648 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10649 if test -n "$ac_ct_F77"; then
10650 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10651 echo "${ECHO_T}$ac_ct_F77" >&6
10653 echo "$as_me:$LINENO: result: no" >&5
10654 echo "${ECHO_T}no" >&6
10657 test -n "$ac_ct_F77" && break
10664 # Provide some information about the compiler.
10665 echo "$as_me:10665:" \
10666 "checking for Fortran 77 compiler version" >&5
10667 ac_compiler=`set X $ac_compile; echo $2`
10668 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10669 (eval $ac_compiler --version </dev/null >&5) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }
10673 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10674 (eval $ac_compiler -v </dev/null >&5) 2>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }
10678 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10679 (eval $ac_compiler -V </dev/null >&5) 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }
10685 # If we don't use `.F' as extension, the preprocessor is not run on the
10686 # input file. (Note that this only needs to work for GNU compilers.)
10687 ac_save_ext=$ac_ext
10689 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10690 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10691 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 cat >conftest.$ac_ext <<_ACEOF
10702 rm -f conftest.$ac_objext
10703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10704 (eval $ac_compile) 2>conftest.er1
10706 grep -v '^ *+' conftest.er1 >conftest.err
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } &&
10711 { ac_try='test -z "$ac_f77_werror_flag"
10712 || test ! -s conftest.err'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; } &&
10718 { ac_try='test -s conftest.$ac_objext'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }; then
10724 ac_compiler_gnu=yes
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10732 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10735 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10736 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10737 ac_ext=$ac_save_ext
10738 ac_test_FFLAGS=${FFLAGS+set}
10739 ac_save_FFLAGS=$FFLAGS
10741 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10742 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10743 if test "${ac_cv_prog_f77_g+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 cat >conftest.$ac_ext <<_ACEOF
10752 rm -f conftest.$ac_objext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10754 (eval $ac_compile) 2>conftest.er1
10756 grep -v '^ *+' conftest.er1 >conftest.err
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -z "$ac_f77_werror_flag"
10762 || test ! -s conftest.err'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest.$ac_objext'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ac_cv_prog_f77_g=yes
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 ac_cv_prog_f77_g=no
10781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10784 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10785 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10786 if test "$ac_test_FFLAGS" = set; then
10787 FFLAGS=$ac_save_FFLAGS
10788 elif test $ac_cv_prog_f77_g = yes; then
10789 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10795 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10802 G77=`test $ac_compiler_gnu = yes && echo yes`
10804 ac_cpp='$CPP $CPPFLAGS'
10805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10811 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10813 # find the maximum length of command line arguments
10814 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10815 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10816 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 # On DJGPP, this test can blow up pretty badly due to problems in libc
10825 # (any single argument exceeding 2000 bytes causes a buffer overrun
10826 # during glob expansion). Even if it were fixed, the result of this
10827 # check would be larger than it should be.
10828 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10832 # Under GNU Hurd, this test is not required because there is
10833 # no limit to the length of command line arguments.
10834 # Libtool will interpret -1 as no limit whatsoever
10835 lt_cv_sys_max_cmd_len=-1;
10839 # On Win9x/ME, this test blows up -- it succeeds, but takes
10840 # about 5 minutes as the teststring grows exponentially.
10841 # Worse, since 9x/ME are not pre-emptively multitasking,
10842 # you end up with a "frozen" computer, even though with patience
10843 # the test eventually succeeds (with a max line length of 256k).
10844 # Instead, let's just punt: use the minimum linelength reported by
10845 # all of the supported platforms: 8192 (on NT/2K/XP).
10846 lt_cv_sys_max_cmd_len=8192;
10850 # On AmigaOS with pdksh, this test takes hours, literally.
10851 # So we just punt and use a minimum line length of 8192.
10852 lt_cv_sys_max_cmd_len=8192;
10855 netbsd* | freebsd* | openbsd* | darwin* )
10856 # This has been around since 386BSD, at least. Likely further.
10857 if test -x /sbin/sysctl; then
10858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10859 elif test -x /usr/sbin/sysctl; then
10860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10862 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10864 # And add a safety zone
10865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10869 # If test is not a shell built-in, we'll probably end up computing a
10870 # maximum length that is only half of the actual maximum length, but
10872 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10873 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10874 = "XX$teststring") >/dev/null 2>&1 &&
10875 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10876 lt_cv_sys_max_cmd_len=$new_result &&
10877 test $i != 17 # 1/2 MB should be enough
10880 teststring=$teststring$teststring
10883 # Add a significant safety factor because C++ compilers can tack on massive
10884 # amounts of additional arguments before passing them to the linker.
10885 # It appears as though 1/2 is a usable value.
10886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10892 if test -n $lt_cv_sys_max_cmd_len ; then
10893 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10894 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10896 echo "$as_me:$LINENO: result: none" >&5
10897 echo "${ECHO_T}none" >&6
10903 # Check for command to grab the raw symbol name followed by C symbol from nm.
10904 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10905 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10906 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 # These are sane defaults that work on at least a few old systems.
10911 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10913 # Character class describing NM global symbol codes.
10914 symcode='[BCDEGRST]'
10916 # Regexp to match symbols that can be accessed directly from C.
10917 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10919 # Transform the above into a raw symbol and a C symbol.
10920 symxfrm='\1 \2\3 \3'
10922 # Transform an extracted symbol line into a proper C declaration
10923 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10925 # Transform an extracted symbol line into symbol name and symbol address
10926 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'"
10928 # Define system-specific variables.
10933 cygwin* | mingw* | pw32*)
10934 symcode='[ABCDGISTW]'
10936 hpux*) # Its linker distinguishes data from code symbols
10937 if test "$host_cpu" = ia64; then
10938 symcode='[ABCDEGRST]'
10940 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10941 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'"
10944 if test "$host_cpu" = ia64; then
10945 symcode='[ABCDGIRSTW]'
10946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10947 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'"
10950 irix* | nonstopux*)
10951 symcode='[BCDEGRST]'
10954 symcode='[BCDEGQRST]'
10964 # Handle CRLF in mingw tool chain
10968 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10972 # If we're using GNU nm, then use its standard symbol codes.
10973 case `$NM -V 2>&1` in
10974 *GNU* | *'with BFD'*)
10975 symcode='[ABCDGIRSTW]' ;;
10978 # Try without a prefix undercore, then with it.
10979 for ac_symprfx in "" "_"; do
10981 # Write the raw and C identifiers.
10982 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10984 # Check to see that the pipe works correctly.
10988 cat > conftest.$ac_ext <<EOF
10993 void nm_test_func(){}
10997 int main(){nm_test_var='a';nm_test_func();return(0);}
11000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11001 (eval $ac_compile) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; then
11005 # Now try to grab the symbols.
11007 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11008 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } && test -s "$nlist"; then
11012 # Try sorting and uniquifying the output.
11013 if sort "$nlist" | uniq > "$nlist"T; then
11014 mv -f "$nlist"T "$nlist"
11019 # Make sure that we snagged all the symbols we need.
11020 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11021 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11022 cat <<EOF > conftest.$ac_ext
11028 # Now generate the symbol file.
11029 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11031 cat <<EOF >> conftest.$ac_ext
11032 #if defined (__STDC__) && __STDC__
11033 # define lt_ptr_t void *
11035 # define lt_ptr_t char *
11039 /* The mapping between symbol names and symbols. */
11044 lt_preloaded_symbols[] =
11047 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11048 cat <<\EOF >> conftest.$ac_ext
11056 # Now try linking the two files.
11057 mv conftest.$ac_objext conftstm.$ac_objext
11058 lt_save_LIBS="$LIBS"
11059 lt_save_CFLAGS="$CFLAGS"
11060 LIBS="conftstm.$ac_objext"
11061 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11069 LIBS="$lt_save_LIBS"
11070 CFLAGS="$lt_save_CFLAGS"
11072 echo "cannot find nm_test_func in $nlist" >&5
11075 echo "cannot find nm_test_var in $nlist" >&5
11078 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11081 echo "$progname: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11084 rm -f conftest* conftst*
11086 # Do not use the global_symbol_pipe unless it works.
11087 if test "$pipe_works" = yes; then
11090 lt_cv_sys_global_symbol_pipe=
11096 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11097 lt_cv_sys_global_symbol_to_cdecl=
11099 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11100 echo "$as_me:$LINENO: result: failed" >&5
11101 echo "${ECHO_T}failed" >&6
11103 echo "$as_me:$LINENO: result: ok" >&5
11104 echo "${ECHO_T}ok" >&6
11107 echo "$as_me:$LINENO: checking for objdir" >&5
11108 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11109 if test "${lt_cv_objdir+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 rm -f .libs 2>/dev/null
11113 mkdir .libs 2>/dev/null
11114 if test -d .libs; then
11117 # MS-DOS does not allow filenames that begin with a dot.
11120 rmdir .libs 2>/dev/null
11122 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11123 echo "${ECHO_T}$lt_cv_objdir" >&6
11124 objdir=$lt_cv_objdir
11132 # AIX sometimes has problems with the GCC collect2 program. For some
11133 # reason, if we set the COLLECT_NAMES environment variable, the problems
11134 # vanish in a puff of smoke.
11135 if test "X${COLLECT_NAMES+set}" != Xset; then
11137 export COLLECT_NAMES
11142 # Sed substitution that helps us do robust quoting. It backslashifies
11143 # metacharacters that are still active within double-quoted strings.
11144 Xsed='sed -e s/^X//'
11145 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11147 # Same as above, but do not quote variable references.
11148 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11150 # Sed substitution to delay expansion of an escaped shell variable in a
11151 # double_quote_subst'ed string.
11152 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11154 # Sed substitution to avoid accidental globbing in evaled expressions
11155 no_glob_subst='s/\*/\\\*/g'
11160 # Global variables:
11161 default_ofile=mklib
11162 can_build_shared=yes
11164 # All known linkers require a `.a' archive for static linking (except M$VC,
11165 # which needs '.lib').
11167 ltmain="$ac_aux_dir/ltmain.sh"
11168 ofile="$default_ofile"
11169 with_gnu_ld="$lt_cv_prog_gnu_ld"
11171 if test -n "$ac_tool_prefix"; then
11172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11173 set dummy ${ac_tool_prefix}ar; ac_word=$2
11174 echo "$as_me:$LINENO: checking for $ac_word" >&5
11175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11176 if test "${ac_cv_prog_AR+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 if test -n "$AR"; then
11180 ac_cv_prog_AR="$AR" # Let the user override the test.
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in $PATH
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189 ac_cv_prog_AR="${ac_tool_prefix}ar"
11190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 if test -n "$AR"; then
11200 echo "$as_me:$LINENO: result: $AR" >&5
11201 echo "${ECHO_T}$AR" >&6
11203 echo "$as_me:$LINENO: result: no" >&5
11204 echo "${ECHO_T}no" >&6
11208 if test -z "$ac_cv_prog_AR"; then
11210 # Extract the first word of "ar", so it can be a program name with args.
11211 set dummy ar; ac_word=$2
11212 echo "$as_me:$LINENO: checking for $ac_word" >&5
11213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 if test -n "$ac_ct_AR"; then
11218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221 for as_dir in $PATH
11224 test -z "$as_dir" && as_dir=.
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11227 ac_cv_prog_ac_ct_AR="ar"
11228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11238 if test -n "$ac_ct_AR"; then
11239 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11240 echo "${ECHO_T}$ac_ct_AR" >&6
11242 echo "$as_me:$LINENO: result: no" >&5
11243 echo "${ECHO_T}no" >&6
11248 AR="$ac_cv_prog_AR"
11251 if test -n "$ac_tool_prefix"; then
11252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11254 echo "$as_me:$LINENO: checking for $ac_word" >&5
11255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11256 if test "${ac_cv_prog_RANLIB+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 if test -n "$RANLIB"; then
11260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11269 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 RANLIB=$ac_cv_prog_RANLIB
11279 if test -n "$RANLIB"; then
11280 echo "$as_me:$LINENO: result: $RANLIB" >&5
11281 echo "${ECHO_T}$RANLIB" >&6
11283 echo "$as_me:$LINENO: result: no" >&5
11284 echo "${ECHO_T}no" >&6
11288 if test -z "$ac_cv_prog_RANLIB"; then
11289 ac_ct_RANLIB=$RANLIB
11290 # Extract the first word of "ranlib", so it can be a program name with args.
11291 set dummy ranlib; ac_word=$2
11292 echo "$as_me:$LINENO: checking for $ac_word" >&5
11293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11294 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 if test -n "$ac_ct_RANLIB"; then
11298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11304 test -z "$as_dir" && as_dir=.
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307 ac_cv_prog_ac_ct_RANLIB="ranlib"
11308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11314 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11317 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11318 if test -n "$ac_ct_RANLIB"; then
11319 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11320 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11322 echo "$as_me:$LINENO: result: no" >&5
11323 echo "${ECHO_T}no" >&6
11326 RANLIB=$ac_ct_RANLIB
11328 RANLIB="$ac_cv_prog_RANLIB"
11331 if test -n "$ac_tool_prefix"; then
11332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11333 set dummy ${ac_tool_prefix}strip; ac_word=$2
11334 echo "$as_me:$LINENO: checking for $ac_word" >&5
11335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11336 if test "${ac_cv_prog_STRIP+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 if test -n "$STRIP"; then
11340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 STRIP=$ac_cv_prog_STRIP
11359 if test -n "$STRIP"; then
11360 echo "$as_me:$LINENO: result: $STRIP" >&5
11361 echo "${ECHO_T}$STRIP" >&6
11363 echo "$as_me:$LINENO: result: no" >&5
11364 echo "${ECHO_T}no" >&6
11368 if test -z "$ac_cv_prog_STRIP"; then
11370 # Extract the first word of "strip", so it can be a program name with args.
11371 set dummy strip; ac_word=$2
11372 echo "$as_me:$LINENO: checking for $ac_word" >&5
11373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11374 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 if test -n "$ac_ct_STRIP"; then
11378 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $PATH
11384 test -z "$as_dir" && as_dir=.
11385 for ac_exec_ext in '' $ac_executable_extensions; do
11386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11387 ac_cv_prog_ac_ct_STRIP="strip"
11388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11394 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11397 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11398 if test -n "$ac_ct_STRIP"; then
11399 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11400 echo "${ECHO_T}$ac_ct_STRIP" >&6
11402 echo "$as_me:$LINENO: result: no" >&5
11403 echo "${ECHO_T}no" >&6
11408 STRIP="$ac_cv_prog_STRIP"
11413 old_CFLAGS="$CFLAGS"
11415 # Set sane defaults for various variables
11416 test -z "$AR" && AR=ar
11417 test -z "$AR_FLAGS" && AR_FLAGS=cru
11418 test -z "$AS" && AS=as
11419 test -z "$CC" && CC=cc
11420 test -z "$LTCC" && LTCC=$CC
11421 test -z "$DLLTOOL" && DLLTOOL=dlltool
11422 test -z "$LD" && LD=ld
11423 test -z "$LN_S" && LN_S="ln -s"
11424 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11425 test -z "$NM" && NM=nm
11426 test -z "$SED" && SED=sed
11427 test -z "$OBJDUMP" && OBJDUMP=objdump
11428 test -z "$RANLIB" && RANLIB=:
11429 test -z "$STRIP" && STRIP=:
11430 test -z "$ac_objext" && ac_objext=o
11432 # Determine commands to create old-style static archives.
11433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11434 old_postinstall_cmds='chmod 644 $oldlib'
11435 old_postuninstall_cmds=
11437 if test -n "$RANLIB"; then
11440 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11443 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11446 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11449 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11451 # Only perform the check for file, if the check method requires it
11452 case $deplibs_check_method in
11454 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11455 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11456 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11457 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11465 lt_save_MAGIC_CMD="$MAGIC_CMD"
11466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11468 for ac_dir in $ac_dummy; do
11470 test -z "$ac_dir" && ac_dir=.
11471 if test -f $ac_dir/${ac_tool_prefix}file; then
11472 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11473 if test -n "$file_magic_test_file"; then
11474 case $deplibs_check_method in
11476 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11479 $EGREP "$file_magic_regex" > /dev/null; then
11484 *** Warning: the command libtool uses to detect shared libraries,
11485 *** $file_magic_cmd, produces output that libtool cannot recognize.
11486 *** The result is that libtool may fail to recognize shared libraries
11487 *** as such. This will affect the creation of libtool libraries that
11488 *** depend on shared libraries, but programs linked with such libtool
11489 *** libraries will work regardless of this problem. Nevertheless, you
11490 *** may want to report the problem to your system manager and/or to
11491 *** bug-libtool@gnu.org
11501 MAGIC_CMD="$lt_save_MAGIC_CMD"
11506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11507 if test -n "$MAGIC_CMD"; then
11508 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11509 echo "${ECHO_T}$MAGIC_CMD" >&6
11511 echo "$as_me:$LINENO: result: no" >&5
11512 echo "${ECHO_T}no" >&6
11515 if test -z "$lt_cv_path_MAGIC_CMD"; then
11516 if test -n "$ac_tool_prefix"; then
11517 echo "$as_me:$LINENO: checking for file" >&5
11518 echo $ECHO_N "checking for file... $ECHO_C" >&6
11519 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11527 lt_save_MAGIC_CMD="$MAGIC_CMD"
11528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11529 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11530 for ac_dir in $ac_dummy; do
11532 test -z "$ac_dir" && ac_dir=.
11533 if test -f $ac_dir/file; then
11534 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11535 if test -n "$file_magic_test_file"; then
11536 case $deplibs_check_method in
11538 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11540 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11541 $EGREP "$file_magic_regex" > /dev/null; then
11546 *** Warning: the command libtool uses to detect shared libraries,
11547 *** $file_magic_cmd, produces output that libtool cannot recognize.
11548 *** The result is that libtool may fail to recognize shared libraries
11549 *** as such. This will affect the creation of libtool libraries that
11550 *** depend on shared libraries, but programs linked with such libtool
11551 *** libraries will work regardless of this problem. Nevertheless, you
11552 *** may want to report the problem to your system manager and/or to
11553 *** bug-libtool@gnu.org
11563 MAGIC_CMD="$lt_save_MAGIC_CMD"
11568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11569 if test -n "$MAGIC_CMD"; then
11570 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11571 echo "${ECHO_T}$MAGIC_CMD" >&6
11573 echo "$as_me:$LINENO: result: no" >&5
11574 echo "${ECHO_T}no" >&6
11587 enable_win32_dll=no
11589 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11590 if test "${enable_libtool_lock+set}" = set; then
11591 enableval="$enable_libtool_lock"
11594 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11597 # Check whether --with-pic or --without-pic was given.
11598 if test "${with_pic+set}" = set; then
11599 withval="$with_pic"
11600 pic_mode="$withval"
11604 test -z "$pic_mode" && pic_mode=default
11606 # Use C for the default configuration in the libtool script
11610 ac_cpp='$CPP $CPPFLAGS'
11611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11616 # Source file extension for C test sources.
11619 # Object file extension for compiled C test sources.
11623 # Code to be used in simple compile tests
11624 lt_simple_compile_test_code="int some_variable = 0;\n"
11626 # Code to be used in simple link tests
11627 lt_simple_link_test_code='int main(){return(0);}\n'
11630 # If no C compiler was specified, use CC.
11633 # Allow CC to be a program name with arguments.
11638 # Check for any special shared library compilation flags.
11641 if test "$GCC" = no; then
11644 lt_prog_cc_shlib='-belf'
11648 if test -n "$lt_prog_cc_shlib"; then
11649 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11650 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11651 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11653 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11654 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11655 lt_cv_prog_cc_can_build_shared=no
11661 # Check to make sure the static flag actually works.
11663 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11664 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11665 if test "${lt_prog_compiler_static_works+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 lt_prog_compiler_static_works=no
11669 save_LDFLAGS="$LDFLAGS"
11670 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11671 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11673 # The compiler can only warn and ignore the option if not recognized
11674 # So say no if there are warnings
11675 if test -s conftest.err; then
11676 # Append any errors to the config.log.
11677 cat conftest.err 1>&5
11679 lt_prog_compiler_static_works=yes
11683 LDFLAGS="$save_LDFLAGS"
11686 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11687 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11689 if test x"$lt_prog_compiler_static_works" = xyes; then
11692 lt_prog_compiler_static=
11698 lt_prog_compiler_no_builtin_flag=
11700 if test "$GCC" = yes; then
11701 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11704 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11705 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11706 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 lt_cv_prog_compiler_rtti_exceptions=no
11710 ac_outfile=conftest.$ac_objext
11711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11712 lt_compiler_flag="-fno-rtti -fno-exceptions"
11713 # Insert the option either (1) after the last *FLAGS variable, or
11714 # (2) before a word containing "conftest.", or (3) at the end.
11715 # Note that $ac_compile itself does not contain backslashes and begins
11716 # with a dollar sign (not a hyphen), so the echo should work correctly.
11717 # The option is referenced via a variable to avoid confusing sed.
11718 lt_compile=`echo "$ac_compile" | $SED \
11719 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11721 -e 's:$: $lt_compiler_flag:'`
11722 (eval echo "\"\$as_me:11722: $lt_compile\"" >&5)
11723 (eval "$lt_compile" 2>conftest.err)
11725 cat conftest.err >&5
11726 echo "$as_me:11726: \$? = $ac_status" >&5
11727 if (exit $ac_status) && test -s "$ac_outfile"; then
11728 # The compiler can only warn and ignore the option if not recognized
11729 # So say no if there are warnings
11730 if test ! -s conftest.err; then
11731 lt_cv_prog_compiler_rtti_exceptions=yes
11737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11738 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11741 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11748 lt_prog_compiler_wl=
11749 lt_prog_compiler_pic=
11750 lt_prog_compiler_static=
11752 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11753 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11755 if test "$GCC" = yes; then
11756 lt_prog_compiler_wl='-Wl,'
11757 lt_prog_compiler_static='-static'
11761 # All AIX code is PIC.
11762 if test "$host_cpu" = ia64; then
11763 # AIX 5 now supports IA64 processor
11764 lt_prog_compiler_static='-Bstatic'
11769 # FIXME: we need at least 68020 code to build shared libraries, but
11770 # adding the `-m68020' flag to GCC prevents building anything better,
11772 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11775 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11776 # PIC is the default for these OSes.
11779 mingw* | pw32* | os2*)
11780 # This hack is so that the source file can tell whether it is being
11781 # built for inclusion in a dll (and should export symbols for example).
11782 lt_prog_compiler_pic='-DDLL_EXPORT'
11785 darwin* | rhapsody*)
11786 # PIC is the default on this platform
11787 # Common symbols not allowed in MH_DYLIB files
11788 lt_prog_compiler_pic='-fno-common'
11792 # Just because we use GCC doesn't mean we suddenly get shared libraries
11793 # on systems that don't support them.
11794 lt_prog_compiler_can_build_shared=no
11799 if test -d /usr/nec; then
11800 lt_prog_compiler_pic=-Kconform_pic
11805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11806 # not for PA HP-UX.
11807 case "$host_cpu" in
11812 lt_prog_compiler_pic='-fPIC'
11818 lt_prog_compiler_pic='-fPIC'
11822 # PORTME Check for flag to pass linker flags through the system compiler.
11825 lt_prog_compiler_wl='-Wl,'
11826 if test "$host_cpu" = ia64; then
11827 # AIX 5 now supports IA64 processor
11828 lt_prog_compiler_static='-Bstatic'
11830 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11834 # PIC is the default on this platform
11835 # Common symbols not allowed in MH_DYLIB files
11836 case "$cc_basename" in
11838 lt_prog_compiler_pic='-qnocommon'
11839 lt_prog_compiler_wl='-Wl,'
11844 mingw* | pw32* | os2*)
11845 # This hack is so that the source file can tell whether it is being
11846 # built for inclusion in a dll (and should export symbols for example).
11847 lt_prog_compiler_pic='-DDLL_EXPORT'
11850 hpux9* | hpux10* | hpux11*)
11851 lt_prog_compiler_wl='-Wl,'
11852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11853 # not for PA HP-UX.
11854 case "$host_cpu" in
11859 lt_prog_compiler_pic='+Z'
11862 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11863 lt_prog_compiler_static='${wl}-a ${wl}archive'
11866 irix5* | irix6* | nonstopux*)
11867 lt_prog_compiler_wl='-Wl,'
11868 # PIC (with -KPIC) is the default.
11869 lt_prog_compiler_static='-non_shared'
11873 lt_prog_compiler_pic='-KPIC'
11874 lt_prog_compiler_static='-Bstatic'
11880 lt_prog_compiler_wl='-Wl,'
11881 lt_prog_compiler_pic='-KPIC'
11882 lt_prog_compiler_static='-static'
11885 lt_prog_compiler_wl='-Wl,'
11886 # All Alpha code is PIC.
11887 lt_prog_compiler_static='-non_shared'
11892 osf3* | osf4* | osf5*)
11893 lt_prog_compiler_wl='-Wl,'
11894 # All OSF/1 code is PIC.
11895 lt_prog_compiler_static='-non_shared'
11899 lt_prog_compiler_pic='-Kpic'
11900 lt_prog_compiler_static='-dn'
11904 lt_prog_compiler_wl='-Wl,'
11905 lt_prog_compiler_pic='-KPIC'
11906 lt_prog_compiler_static='-Bstatic'
11910 lt_prog_compiler_wl='-Qoption ld '
11911 lt_prog_compiler_pic='-PIC'
11912 lt_prog_compiler_static='-Bstatic'
11915 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11916 lt_prog_compiler_wl='-Wl,'
11917 lt_prog_compiler_pic='-KPIC'
11918 lt_prog_compiler_static='-Bstatic'
11922 if test -d /usr/nec ;then
11923 lt_prog_compiler_pic='-Kconform_pic'
11924 lt_prog_compiler_static='-Bstatic'
11929 lt_prog_compiler_pic='-pic'
11930 lt_prog_compiler_static='-Bstatic'
11934 lt_prog_compiler_can_build_shared=no
11939 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11940 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11943 # Check to make sure the PIC flag actually works.
11945 if test -n "$lt_prog_compiler_pic"; then
11947 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11949 if test "${lt_prog_compiler_pic_works+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 lt_prog_compiler_pic_works=no
11953 ac_outfile=conftest.$ac_objext
11954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11955 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11956 # Insert the option either (1) after the last *FLAGS variable, or
11957 # (2) before a word containing "conftest.", or (3) at the end.
11958 # Note that $ac_compile itself does not contain backslashes and begins
11959 # with a dollar sign (not a hyphen), so the echo should work correctly.
11960 # The option is referenced via a variable to avoid confusing sed.
11961 lt_compile=`echo "$ac_compile" | $SED \
11962 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11964 -e 's:$: $lt_compiler_flag:'`
11965 (eval echo "\"\$as_me:11965: $lt_compile\"" >&5)
11966 (eval "$lt_compile" 2>conftest.err)
11968 cat conftest.err >&5
11969 echo "$as_me:11969: \$? = $ac_status" >&5
11970 if (exit $ac_status) && test -s "$ac_outfile"; then
11971 # The compiler can only warn and ignore the option if not recognized
11972 # So say no if there are warnings
11973 if test ! -s conftest.err; then
11974 lt_prog_compiler_pic_works=yes
11980 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11981 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11983 if test x"$lt_prog_compiler_pic_works" = xyes; then
11984 case $lt_prog_compiler_pic in
11986 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11989 lt_prog_compiler_pic=
11990 lt_prog_compiler_can_build_shared=no
11995 # For platforms which do not support PIC, -DPIC is meaningless:
11997 lt_prog_compiler_pic=
12000 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12004 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12005 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12006 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 lt_cv_prog_compiler_c_o=no
12010 $rm -r conftest 2>/dev/null
12014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12016 lt_compiler_flag="-o out/conftest2.$ac_objext"
12017 # Insert the option either (1) after the last *FLAGS variable, or
12018 # (2) before a word containing "conftest.", or (3) at the end.
12019 # Note that $ac_compile itself does not contain backslashes and begins
12020 # with a dollar sign (not a hyphen), so the echo should work correctly.
12021 lt_compile=`echo "$ac_compile" | $SED \
12022 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12024 -e 's:$: $lt_compiler_flag:'`
12025 (eval echo "\"\$as_me:12025: $lt_compile\"" >&5)
12026 (eval "$lt_compile" 2>out/conftest.err)
12028 cat out/conftest.err >&5
12029 echo "$as_me:12029: \$? = $ac_status" >&5
12030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12032 # The compiler can only warn and ignore the option if not recognized
12033 # So say no if there are warnings
12034 if test ! -s out/conftest.err; then
12035 lt_cv_prog_compiler_c_o=yes
12040 # SGI C++ compiler will create directory out/ii_files/ for
12041 # template instantiation
12042 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12043 $rm out/* && rmdir out
12049 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12050 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12053 hard_links="nottested"
12054 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12055 # do not overwrite the value of need_locks provided by the user
12056 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12057 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12062 ln conftest.a conftest.b 2>&5 || hard_links=no
12063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12064 echo "$as_me:$LINENO: result: $hard_links" >&5
12065 echo "${ECHO_T}$hard_links" >&6
12066 if test "$hard_links" = no; then
12067 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12068 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12075 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12076 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12079 allow_undefined_flag=
12080 enable_shared_with_static_runtimes=no
12082 archive_expsym_cmds=
12083 old_archive_From_new_cmds=
12084 old_archive_from_expsyms_cmds=
12085 export_dynamic_flag_spec=
12086 whole_archive_flag_spec=
12087 thread_safe_flag_spec=
12088 hardcode_libdir_flag_spec=
12089 hardcode_libdir_flag_spec_ld=
12090 hardcode_libdir_separator=
12092 hardcode_minus_L=no
12093 hardcode_shlibpath_var=unsupported
12094 link_all_deplibs=unknown
12095 hardcode_automatic=no
12097 module_expsym_cmds=
12098 always_export_symbols=no
12099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12100 # include_expsyms should be a list of space-separated symbols to be *always*
12101 # included in the symbol list
12103 # exclude_expsyms can be an extended regexp of symbols to exclude
12104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12106 # as well as any symbol that contains `d'.
12107 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12109 # platforms (ab)use it in PIC code, but their linkers get confused if
12110 # the symbol is explicitly referenced. Since portable code cannot
12111 # rely on this symbol name, it's probably fine to never include it in
12112 # preloaded symbol tables.
12113 extract_expsyms_cmds=
12116 cygwin* | mingw* | pw32*)
12117 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12118 # When not using gcc, we currently assume that we are using
12119 # Microsoft Visual C++.
12120 if test "$GCC" != yes; then
12130 if test "$with_gnu_ld" = yes; then
12131 # If archive_cmds runs LD, not CC, wlarc should be empty
12134 # See if GNU ld supports shared libraries.
12136 aix3* | aix4* | aix5*)
12137 # On AIX/PPC, the GNU linker is very broken
12138 if test "$host_cpu" != ia64; then
12142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12143 *** to be unable to reliably create shared libraries on AIX.
12144 *** Therefore, libtool is disabling shared libraries support. If you
12145 *** really care for shared libraries, you may want to modify your PATH
12146 *** so that a non-GNU linker is found, and then restart.
12153 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)'
12154 hardcode_libdir_flag_spec='-L$libdir'
12155 hardcode_minus_L=yes
12157 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12158 # that the semantics of dynamic libraries on AmigaOS, at least up
12159 # to version 4, is to share data among multiple programs linked
12160 # with the same dynamic library. Since this doesn't match the
12161 # behavior of shared libraries on other platforms, we can't use
12167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12168 allow_undefined_flag=unsupported
12169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12170 # support --undefined. This deserves some investigation. FIXME
12171 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12177 cygwin* | mingw* | pw32*)
12178 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12179 # as there is no search path for DLLs.
12180 hardcode_libdir_flag_spec='-L$libdir'
12181 allow_undefined_flag=unsupported
12182 always_export_symbols=no
12183 enable_shared_with_static_runtimes=yes
12184 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12186 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12188 # If the export-symbols file already is a .def file (1st line
12189 # is EXPORTS), use it as is; otherwise, prepend...
12190 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12191 cp $export_symbols $output_objdir/$soname.def;
12193 echo EXPORTS > $output_objdir/$soname.def;
12194 cat $export_symbols >> $output_objdir/$soname.def;
12196 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12204 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12213 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12218 *** create shared libraries on Solaris systems. Therefore, libtool
12219 *** is disabling shared libraries support. We urge you to upgrade GNU
12220 *** binutils to release 2.9.1 or newer. Another option is to modify
12221 *** your PATH or compiler configuration so that the native linker is
12222 *** used, and then restart.
12225 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12234 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12236 hardcode_direct=yes
12237 hardcode_shlibpath_var=no
12241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12242 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12243 archive_cmds="$tmp_archive_cmds"
12244 supports_anon_versioning=no
12245 case `$LD -v 2>/dev/null` in
12246 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12247 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12248 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12249 *\ 2.11.*) ;; # other 2.11 versions
12250 *) supports_anon_versioning=yes ;;
12252 if test $supports_anon_versioning = yes; then
12253 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12254 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12255 $echo "local: *; };" >> $output_objdir/$libname.ver~
12256 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12258 archive_expsym_cmds="$tmp_archive_cmds"
12266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12275 if test "$ld_shlibs" = yes; then
12276 runpath_var=LD_RUN_PATH
12277 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12278 export_dynamic_flag_spec='${wl}--export-dynamic'
12279 # ancient GNU ld didn't support --whole-archive et. al.
12280 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12281 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12283 whole_archive_flag_spec=
12287 # PORTME fill in a description of your system's linker (not GNU ld)
12290 allow_undefined_flag=unsupported
12291 always_export_symbols=yes
12292 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'
12293 # Note: this linker hardcodes the directories in LIBPATH if there
12294 # are no directories specified by -L.
12295 hardcode_minus_L=yes
12296 if test "$GCC" = yes && test -z "$link_static_flag"; then
12297 # Neither direct hardcoding nor static linking is supported with a
12299 hardcode_direct=unsupported
12304 if test "$host_cpu" = ia64; then
12305 # On IA64, the linker does run time linking by default, so we don't
12306 # have to do anything special.
12307 aix_use_runtimelinking=no
12308 exp_sym_flag='-Bexport'
12311 # If we're using GNU nm, then we don't want the "-C" option.
12312 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12313 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12314 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'
12316 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'
12318 aix_use_runtimelinking=no
12320 # Test if we are trying to use run time linking or normal
12321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12322 # need to do runtime linking.
12323 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12324 for ld_flag in $LDFLAGS; do
12325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12326 aix_use_runtimelinking=yes
12332 exp_sym_flag='-bexport'
12333 no_entry_flag='-bnoentry'
12336 # When large executables or shared objects are built, AIX ld can
12337 # have problems creating the table of contents. If linking a library
12338 # or program results in "error TOC overflow" add -mminimal-toc to
12339 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12340 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12343 hardcode_direct=yes
12344 hardcode_libdir_separator=':'
12345 link_all_deplibs=yes
12347 if test "$GCC" = yes; then
12348 case $host_os in aix4.012|aix4.012.*)
12349 # We only want to do this on AIX 4.2 and lower, the check
12350 # below for broken collect2 doesn't work under 4.3+
12351 collect2name=`${CC} -print-prog-name=collect2`
12352 if test -f "$collect2name" && \
12353 strings "$collect2name" | grep resolve_lib_name >/dev/null
12355 # We have reworked collect2
12356 hardcode_direct=yes
12358 # We have old collect2
12359 hardcode_direct=unsupported
12360 # It fails to find uninstalled libraries when the uninstalled
12361 # path is not listed in the libpath. Setting hardcode_minus_L
12362 # to unsupported forces relinking
12363 hardcode_minus_L=yes
12364 hardcode_libdir_flag_spec='-L$libdir'
12365 hardcode_libdir_separator=
12368 shared_flag='-shared'
12371 if test "$host_cpu" = ia64; then
12372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12373 # chokes on -Wl,-G. The following line is correct:
12376 if test "$aix_use_runtimelinking" = yes; then
12377 shared_flag='${wl}-G'
12379 shared_flag='${wl}-bM:SRE'
12384 # It seems that -bexpall does not export symbols beginning with
12385 # underscore (_), so it is better to generate a list of symbols to export.
12386 always_export_symbols=yes
12387 if test "$aix_use_runtimelinking" = yes; then
12388 # Warning - without using the other runtime loading flags (-brtl),
12389 # -berok will link without error, but may produce a broken library.
12390 allow_undefined_flag='-berok'
12391 # Determine the default libpath from the value encoded in an empty executable.
12392 cat >conftest.$ac_ext <<_ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409 (eval $ac_link) 2>conftest.er1
12411 grep -v '^ *+' conftest.er1 >conftest.err
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -z "$ac_c_werror_flag"
12417 || test ! -s conftest.err'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try='test -s conftest$ac_exeext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12432 # Check for a 64-bit object if we didn't find anything.
12433 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; }
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12440 rm -f conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12444 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12445 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"
12447 if test "$host_cpu" = ia64; then
12448 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12449 allow_undefined_flag="-z nodefs"
12450 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"
12452 # Determine the default libpath from the value encoded in an empty executable.
12453 cat >conftest.$ac_ext <<_ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h. */
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470 (eval $ac_link) 2>conftest.er1
12472 grep -v '^ *+' conftest.er1 >conftest.err
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -z "$ac_c_werror_flag"
12478 || test ! -s conftest.err'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try='test -s conftest$ac_exeext'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12493 # Check for a 64-bit object if we didn't find anything.
12494 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; }
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12501 rm -f conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12505 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12506 # Warning - without using the other run time loading flags,
12507 # -berok will link without error, but may produce a broken library.
12508 no_undefined_flag=' ${wl}-bernotok'
12509 allow_undefined_flag=' ${wl}-berok'
12510 # -bexpall does not export symbols beginning with underscore (_)
12511 always_export_symbols=yes
12512 # Exported symbols can be pulled into shared objects from archives
12513 whole_archive_flag_spec=' '
12514 archive_cmds_need_lc=yes
12515 # This is similar to how AIX traditionally builds it's shared libraries.
12516 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'
12522 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)'
12523 hardcode_libdir_flag_spec='-L$libdir'
12524 hardcode_minus_L=yes
12525 # see comment about different semantics on the GNU ld section
12530 export_dynamic_flag_spec=-rdynamic
12533 cygwin* | mingw* | pw32*)
12534 # When not using gcc, we currently assume that we are using
12535 # Microsoft Visual C++.
12536 # hardcode_libdir_flag_spec is actually meaningless, as there is
12537 # no search path for DLLs.
12538 hardcode_libdir_flag_spec=' '
12539 allow_undefined_flag=unsupported
12540 # Tell ltmain to make .lib files, not .a files.
12542 # Tell ltmain to make .dll files, not .so files.
12544 # FIXME: Setting linknames here is a bad hack.
12545 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12546 # The linker will automatically build a .lib file if we build a DLL.
12547 old_archive_From_new_cmds='true'
12548 # FIXME: Should let the user specify the lib program.
12549 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12550 fix_srcfile_path='`cygpath -w "$srcfile"`'
12551 enable_shared_with_static_runtimes=yes
12554 darwin* | rhapsody*)
12556 rhapsody* | darwin1.[012])
12557 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12560 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12561 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12563 case ${MACOSX_DEPLOYMENT_TARGET} in
12565 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12568 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12574 archive_cmds_need_lc=no
12576 hardcode_automatic=yes
12577 hardcode_shlibpath_var=unsupported
12578 whole_archive_flag_spec=''
12579 link_all_deplibs=yes
12580 if test "$GCC" = yes ; then
12581 output_verbose_link_cmd='echo'
12582 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12583 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12584 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12585 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}'
12586 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}'
12588 case "$cc_basename" in
12590 output_verbose_link_cmd='echo'
12591 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12592 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12594 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}'
12595 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}'
12605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12606 hardcode_libdir_flag_spec='-L$libdir'
12607 hardcode_shlibpath_var=no
12614 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12615 # support. Future versions do this automatically, but an explicit c++rt0.o
12616 # does not break anything, and helps significantly (at the cost of a little
12619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12620 hardcode_libdir_flag_spec='-R$libdir'
12621 hardcode_direct=yes
12622 hardcode_shlibpath_var=no
12625 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12628 hardcode_direct=yes
12629 hardcode_minus_L=yes
12630 hardcode_shlibpath_var=no
12633 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12634 freebsd* | kfreebsd*-gnu)
12635 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12636 hardcode_libdir_flag_spec='-R$libdir'
12637 hardcode_direct=yes
12638 hardcode_shlibpath_var=no
12642 if test "$GCC" = yes; then
12643 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'
12645 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'
12647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12648 hardcode_libdir_separator=:
12649 hardcode_direct=yes
12651 # hardcode_minus_L: Not really in the search PATH,
12652 # but as the default location of the library.
12653 hardcode_minus_L=yes
12654 export_dynamic_flag_spec='${wl}-E'
12658 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12659 case "$host_cpu" in
12661 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12668 case "$host_cpu" in
12670 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12673 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12677 if test "$with_gnu_ld" = no; then
12678 case "$host_cpu" in
12680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12681 hardcode_libdir_flag_spec_ld='+b $libdir'
12682 hardcode_libdir_separator=:
12684 hardcode_shlibpath_var=no
12687 hardcode_libdir_flag_spec='-L$libdir'
12689 hardcode_shlibpath_var=no
12691 # hardcode_minus_L: Not really in the search PATH,
12692 # but as the default location of the library.
12693 hardcode_minus_L=yes
12696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12697 hardcode_libdir_separator=:
12698 hardcode_direct=yes
12699 export_dynamic_flag_spec='${wl}-E'
12701 # hardcode_minus_L: Not really in the search PATH,
12702 # but as the default location of the library.
12703 hardcode_minus_L=yes
12709 irix5* | irix6* | nonstopux*)
12710 if test "$GCC" = yes; then
12711 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'
12713 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'
12714 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12717 hardcode_libdir_separator=:
12718 link_all_deplibs=yes
12722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12725 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12727 hardcode_libdir_flag_spec='-R$libdir'
12728 hardcode_direct=yes
12729 hardcode_shlibpath_var=no
12733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12734 hardcode_direct=yes
12735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12736 hardcode_libdir_separator=:
12737 hardcode_shlibpath_var=no
12741 hardcode_direct=yes
12742 hardcode_shlibpath_var=no
12743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12745 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12747 export_dynamic_flag_spec='${wl}-E'
12750 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12752 hardcode_libdir_flag_spec='-R$libdir'
12755 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12756 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12763 hardcode_libdir_flag_spec='-L$libdir'
12764 hardcode_minus_L=yes
12765 allow_undefined_flag=unsupported
12766 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'
12767 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12771 if test "$GCC" = yes; then
12772 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12773 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'
12775 allow_undefined_flag=' -expect_unresolved \*'
12776 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'
12778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12779 hardcode_libdir_separator=:
12782 osf4* | osf5*) # as osf3* with the addition of -msym flag
12783 if test "$GCC" = yes; then
12784 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12785 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'
12786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12788 allow_undefined_flag=' -expect_unresolved \*'
12789 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'
12790 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12791 $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'
12793 # Both c and cxx compiler support -rpath directly
12794 hardcode_libdir_flag_spec='-rpath $libdir'
12796 hardcode_libdir_separator=:
12800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12801 hardcode_shlibpath_var=no
12802 export_dynamic_flag_spec='${wl}-Bexport'
12803 runpath_var=LD_RUN_PATH
12804 hardcode_runpath_var=yes
12808 no_undefined_flag=' -z text'
12809 if test "$GCC" = yes; then
12810 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12811 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12812 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12814 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12815 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12816 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12818 hardcode_libdir_flag_spec='-R$libdir'
12819 hardcode_shlibpath_var=no
12821 solaris2.[0-5] | solaris2.[0-5].*) ;;
12822 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12823 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12825 link_all_deplibs=yes
12829 if test "x$host_vendor" = xsequent; then
12830 # Use $CC to link under sequent, because it throws in some extra .o
12831 # files that make .init and .fini sections work.
12832 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12834 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12836 hardcode_libdir_flag_spec='-L$libdir'
12837 hardcode_direct=yes
12838 hardcode_minus_L=yes
12839 hardcode_shlibpath_var=no
12843 case $host_vendor in
12845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12846 hardcode_direct=yes # is this really true???
12849 ## LD is ld it makes a PLAMLIB
12850 ## CC just makes a GrossModule.
12851 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12852 reload_cmds='$CC -r -o $output$reload_objs'
12856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12857 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12860 runpath_var='LD_RUN_PATH'
12861 hardcode_shlibpath_var=no
12865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12866 hardcode_shlibpath_var=no
12867 export_dynamic_flag_spec='-Bexport'
12871 if test -d /usr/nec; then
12872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12873 hardcode_shlibpath_var=no
12874 runpath_var=LD_RUN_PATH
12875 hardcode_runpath_var=yes
12881 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12882 hardcode_direct=yes
12883 hardcode_minus_L=no
12884 hardcode_shlibpath_var=no
12885 hardcode_runpath_var=yes
12886 runpath_var=LD_RUN_PATH
12889 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12890 no_undefined_flag='${wl}-z ${wl}text'
12891 if test "$GCC" = yes; then
12892 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12894 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12896 runpath_var='LD_RUN_PATH'
12897 hardcode_shlibpath_var=no
12901 no_undefined_flag=' -z text'
12902 # $CC -shared without GNU ld will not create a library from C++
12903 # object files and a static libstdc++, better avoid it by now
12904 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12905 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12907 hardcode_libdir_flag_spec=
12908 hardcode_shlibpath_var=no
12909 runpath_var='LD_RUN_PATH'
12913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12914 hardcode_libdir_flag_spec='-L$libdir'
12915 hardcode_shlibpath_var=no
12924 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12925 echo "${ECHO_T}$ld_shlibs" >&6
12926 test "$ld_shlibs" = no && can_build_shared=no
12928 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12929 if test "$GCC" = yes; then
12930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12934 # Do we need to explicitly link libc?
12936 case "x$archive_cmds_need_lc" in
12938 # Assume -lc should be added
12939 archive_cmds_need_lc=yes
12941 if test "$enable_shared" = yes && test "$GCC" = yes; then
12942 case $archive_cmds in
12944 # FIXME: we may have to deal with multi-command sequences.
12947 # Test whether the compiler implicitly links with -lc since on some
12948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12949 # to ld, don't add -lc before -lgcc.
12950 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12951 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } 2>conftest.err; then
12962 libobjs=conftest.$ac_objext
12964 wl=$lt_prog_compiler_wl
12970 lt_save_allow_undefined_flag=$allow_undefined_flag
12971 allow_undefined_flag=
12972 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12973 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }
12978 archive_cmds_need_lc=no
12980 archive_cmds_need_lc=yes
12982 allow_undefined_flag=$lt_save_allow_undefined_flag
12984 cat conftest.err 1>&5
12987 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12988 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12995 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12996 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12997 library_names_spec=
12998 libname_spec='lib$name'
13002 postuninstall_cmds=
13006 shlibpath_overrides_runpath=unknown
13008 dynamic_linker="$host_os ld.so"
13009 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13010 if test "$GCC" = yes; then
13011 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13012 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13013 # if the path contains ";" then we assume it to be the separator
13014 # otherwise default to the standard path separator (i.e. ":") - it is
13015 # assumed that no part of a normal pathname contains ";" but that should
13016 # okay in the real world where ";" in dirpaths is itself problematic.
13017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13024 need_lib_prefix=unknown
13025 hardcode_into_libs=no
13027 # when you set need_version to no, make sure it does not cause -set_version
13028 # flags to be left without arguments
13029 need_version=unknown
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13035 shlibpath_var=LIBPATH
13037 # AIX 3 has no versioning support, so we append a major version to the name.
13038 soname_spec='${libname}${release}${shared_ext}$major'
13045 hardcode_into_libs=yes
13046 if test "$host_cpu" = ia64; then
13047 # AIX 5 supports IA64
13048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13049 shlibpath_var=LD_LIBRARY_PATH
13051 # With GCC up to 2.95.x, collect2 would create an import file
13052 # for dependence libraries. The import file would start with
13053 # the line `#! .'. This would cause the generated library to
13054 # depend on `.', always an invalid library. This was fixed in
13055 # development snapshots of GCC prior to 3.0.
13057 aix4 | aix4.[01] | aix4.[01].*)
13058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13060 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13063 can_build_shared=no
13067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13068 # soname into executable. Probably we can add versioning support to
13069 # collect2, so additional links can be useful in future.
13070 if test "$aix_use_runtimelinking" = yes; then
13071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13072 # instead of lib<name>.a to let people know that these are not
13073 # typical AIX shared libraries.
13074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13076 # We preserve .a as extension for shared libraries through AIX4.2
13077 # and later when we are not doing run time linking.
13078 library_names_spec='${libname}${release}.a $libname.a'
13079 soname_spec='${libname}${release}${shared_ext}$major'
13081 shlibpath_var=LIBPATH
13086 library_names_spec='$libname.ixlibrary $libname.a'
13087 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13088 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'
13092 library_names_spec='${libname}${shared_ext}'
13093 dynamic_linker="$host_os ld.so"
13094 shlibpath_var=LIBRARY_PATH
13100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101 soname_spec='${libname}${release}${shared_ext}$major'
13102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13103 shlibpath_var=LD_LIBRARY_PATH
13104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13106 # the default ld.so.conf also contains /usr/contrib/lib and
13107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13108 # libtool to hard-code these into programs
13111 cygwin* | mingw* | pw32*)
13112 version_type=windows
13117 case $GCC,$host_os in
13118 yes,cygwin* | yes,mingw* | yes,pw32*)
13119 library_names_spec='$libname.dll.a'
13120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13121 postinstall_cmds='base_file=`basename \${file}`~
13122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13123 dldir=$destdir/`dirname \$dlpath`~
13124 test -d \$dldir || mkdir -p \$dldir~
13125 $install_prog $dir/$dlname \$dldir/$dlname'
13126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13127 dlpath=$dir/\$dldll~
13129 shlibpath_overrides_runpath=yes
13133 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13134 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13135 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13138 # MinGW DLLs use traditional 'lib' prefix
13139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13140 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13141 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13142 # It is most probably a Windows format PATH printed by
13143 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13144 # path with ; separators, and with drive letters. We can handle the
13145 # drive letters (cygwin fileutils understands them), so leave them,
13146 # especially as we might pass files found there to a mingw objdump,
13147 # which wouldn't understand a cygwinified path. Ahh.
13148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13154 # pw32 DLLs use 'pw' prefix rather than 'lib'
13155 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13161 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13164 dynamic_linker='Win32 ld.exe'
13165 # FIXME: first we should search . and the directory the executable is in
13169 darwin* | rhapsody*)
13170 dynamic_linker="$host_os dyld"
13171 version_type=darwin
13174 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13175 soname_spec='${libname}${release}${major}$shared_ext'
13176 shlibpath_overrides_runpath=yes
13177 shlibpath_var=DYLD_LIBRARY_PATH
13178 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13179 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13180 if test "$GCC" = yes; then
13181 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"`
13183 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13185 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13193 soname_spec='${libname}${release}${shared_ext}$major'
13194 shlibpath_var=LD_LIBRARY_PATH
13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13206 soname_spec='${libname}${release}${shared_ext}$major'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 shlibpath_overrides_runpath=no
13209 hardcode_into_libs=yes
13210 dynamic_linker='GNU ld.so'
13214 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13215 version_type=freebsd-$objformat
13216 case $version_type in
13218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13227 shlibpath_var=LD_LIBRARY_PATH
13230 shlibpath_overrides_runpath=yes
13232 freebsd3.01* | freebsdelf3.01*)
13233 shlibpath_overrides_runpath=yes
13234 hardcode_into_libs=yes
13237 shlibpath_overrides_runpath=no
13238 hardcode_into_libs=yes
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13248 soname_spec='${libname}${release}${shared_ext}$major'
13249 shlibpath_var=LD_LIBRARY_PATH
13250 hardcode_into_libs=yes
13253 hpux9* | hpux10* | hpux11*)
13254 # Give a soname corresponding to the major version so that dld.sl refuses to
13255 # link against other versions.
13259 case "$host_cpu" in
13262 hardcode_into_libs=yes
13263 dynamic_linker="$host_os dld.so"
13264 shlibpath_var=LD_LIBRARY_PATH
13265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 if test "X$HPUX_IA64_MODE" = X32; then
13269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13277 hardcode_into_libs=yes
13278 dynamic_linker="$host_os dld.sl"
13279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282 soname_spec='${libname}${release}${shared_ext}$major'
13283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13288 dynamic_linker="$host_os dld.sl"
13289 shlibpath_var=SHLIB_PATH
13290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292 soname_spec='${libname}${release}${shared_ext}$major'
13295 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13296 postinstall_cmds='chmod 555 $lib'
13299 irix5* | irix6* | nonstopux*)
13301 nonstopux*) version_type=nonstopux ;;
13303 if test "$lt_cv_prog_gnu_ld" = yes; then
13311 soname_spec='${libname}${release}${shared_ext}$major'
13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13314 irix5* | nonstopux*)
13315 libsuff= shlibsuff=
13318 case $LD in # libtool.m4 will add one of these switches to LD
13319 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13320 libsuff= shlibsuff= libmagic=32-bit;;
13321 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13322 libsuff=32 shlibsuff=N32 libmagic=N32;;
13323 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13324 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13325 *) libsuff= shlibsuff= libmagic=never-match;;
13329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13330 shlibpath_overrides_runpath=no
13331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13333 hardcode_into_libs=yes
13336 # No shared lib support for Linux oldld, aout, or coff.
13337 linux*oldld* | linux*aout* | linux*coff*)
13341 # This must be Linux ELF.
13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13347 soname_spec='${libname}${release}${shared_ext}$major'
13348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13349 shlibpath_var=LD_LIBRARY_PATH
13350 shlibpath_overrides_runpath=no
13351 # This implies no fast_install, which is unacceptable.
13352 # Some rework will be needed to allow for fast_install
13353 # before this can be enabled.
13354 hardcode_into_libs=yes
13356 # Append ld.so.conf contents to the search path
13357 if test -f /etc/ld.so.conf; then
13358 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13359 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13362 # We used to test for /lib/ld.so.1 and disable shared libraries on
13363 # powerpc, because MkLinux only supported shared libraries with the
13364 # GNU dynamic linker. Since this was broken with cross compilers,
13365 # most powerpc-linux boxes support dynamic linking these days and
13366 # people can always --disable-shared, the test was removed, and we
13367 # assume the GNU/Linux dynamic linker is in use.
13368 dynamic_linker='GNU/Linux ld.so'
13375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13376 soname_spec='${libname}${release}${shared_ext}$major'
13377 shlibpath_var=LD_LIBRARY_PATH
13378 shlibpath_overrides_runpath=no
13379 hardcode_into_libs=yes
13380 dynamic_linker='GNU ld.so'
13387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13390 dynamic_linker='NetBSD (a.out) ld.so'
13392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13393 soname_spec='${libname}${release}${shared_ext}$major'
13394 dynamic_linker='NetBSD ld.elf_so'
13396 shlibpath_var=LD_LIBRARY_PATH
13397 shlibpath_overrides_runpath=yes
13398 hardcode_into_libs=yes
13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13404 shlibpath_var=LD_LIBRARY_PATH
13405 shlibpath_overrides_runpath=yes
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13413 soname_spec='${libname}${release}${shared_ext}$major'
13414 shlibpath_var=LD_LIBRARY_PATH
13415 shlibpath_overrides_runpath=yes
13422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13424 shlibpath_var=LD_LIBRARY_PATH
13425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13427 openbsd2.[89] | openbsd2.[89].*)
13428 shlibpath_overrides_runpath=no
13431 shlibpath_overrides_runpath=yes
13435 shlibpath_overrides_runpath=yes
13440 libname_spec='$name'
13443 library_names_spec='$libname${shared_ext} $libname.a'
13444 dynamic_linker='OS/2 ld.exe'
13445 shlibpath_var=LIBPATH
13448 osf3* | osf4* | osf5*)
13452 soname_spec='${libname}${release}${shared_ext}$major'
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454 shlibpath_var=LD_LIBRARY_PATH
13455 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13456 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13461 soname_spec='${libname}${release}${shared_ext}$major'
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463 shlibpath_var=LD_LIBRARY_PATH
13470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13471 soname_spec='${libname}${release}${shared_ext}$major'
13472 shlibpath_var=LD_LIBRARY_PATH
13473 shlibpath_overrides_runpath=yes
13474 hardcode_into_libs=yes
13475 # ldd complains unless libraries are executable
13476 postinstall_cmds='chmod +x $lib'
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13482 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 shlibpath_overrides_runpath=yes
13485 if test "$with_gnu_ld" = yes; then
13491 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 soname_spec='${libname}${release}${shared_ext}$major'
13495 shlibpath_var=LD_LIBRARY_PATH
13496 case $host_vendor in
13498 shlibpath_overrides_runpath=no
13500 export_dynamic_flag_spec='${wl}-Blargedynsym'
13501 runpath_var=LD_RUN_PATH
13509 shlibpath_overrides_runpath=no
13510 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13516 if test -d /usr/nec ;then
13518 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13519 soname_spec='$libname${shared_ext}.$major'
13520 shlibpath_var=LD_LIBRARY_PATH
13526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13527 soname_spec='${libname}${release}${shared_ext}$major'
13528 shlibpath_var=LD_LIBRARY_PATH
13535 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13536 echo "${ECHO_T}$dynamic_linker" >&6
13537 test "$dynamic_linker" = no && can_build_shared=no
13539 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13540 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13542 if test -n "$hardcode_libdir_flag_spec" || \
13543 test -n "$runpath_var" || \
13544 test "X$hardcode_automatic" = "Xyes" ; then
13546 # We can hardcode non-existant directories.
13547 if test "$hardcode_direct" != no &&
13548 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13549 # have to relink, otherwise we might link with an installed library
13550 # when we should be linking with a yet-to-be-installed one
13551 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13552 test "$hardcode_minus_L" != no; then
13553 # Linking always hardcodes the temporary library directory.
13554 hardcode_action=relink
13556 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13557 hardcode_action=immediate
13560 # We cannot hardcode anything, or else we can only hardcode existing
13562 hardcode_action=unsupported
13564 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13565 echo "${ECHO_T}$hardcode_action" >&6
13567 if test "$hardcode_action" = relink; then
13568 # Fast installation is not supported
13569 enable_fast_install=no
13570 elif test "$shlibpath_overrides_runpath" = yes ||
13571 test "$enable_shared" = no; then
13572 # Fast installation is not necessary
13573 enable_fast_install=needless
13578 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13579 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13580 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13581 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13582 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13583 echo "$as_me:$LINENO: result: yes" >&5
13584 echo "${ECHO_T}yes" >&6
13586 # FIXME - insert some real tests, host_os isn't really good enough
13589 if test -n "$STRIP" ; then
13590 striplib="$STRIP -x"
13591 echo "$as_me:$LINENO: result: yes" >&5
13592 echo "${ECHO_T}yes" >&6
13594 echo "$as_me:$LINENO: result: no" >&5
13595 echo "${ECHO_T}no" >&6
13599 echo "$as_me:$LINENO: result: no" >&5
13600 echo "${ECHO_T}no" >&6
13605 if test "x$enable_dlopen" != xyes; then
13606 enable_dlopen=unknown
13607 enable_dlopen_self=unknown
13608 enable_dlopen_self_static=unknown
13615 lt_cv_dlopen="load_add_on"
13617 lt_cv_dlopen_self=yes
13621 lt_cv_dlopen="LoadLibrary"
13626 lt_cv_dlopen="dlopen"
13631 # if libdl is installed we need to link against it
13632 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13633 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13634 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 ac_check_lib_save_LIBS=$LIBS
13639 cat >conftest.$ac_ext <<_ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13646 /* Override any gcc2 internal prototype to avoid an error. */
13650 /* We use char because int might match the return type of a gcc2
13651 builtin and then its argument prototype would still apply. */
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13663 (eval $ac_link) 2>conftest.er1
13665 grep -v '^ *+' conftest.er1 >conftest.err
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -z "$ac_c_werror_flag"
13671 || test ! -s conftest.err'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest$ac_exeext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 ac_cv_lib_dl_dlopen=yes
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13688 ac_cv_lib_dl_dlopen=no
13690 rm -f conftest.err conftest.$ac_objext \
13691 conftest$ac_exeext conftest.$ac_ext
13692 LIBS=$ac_check_lib_save_LIBS
13694 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13695 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13696 if test $ac_cv_lib_dl_dlopen = yes; then
13697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13700 lt_cv_dlopen="dyld"
13702 lt_cv_dlopen_self=yes
13709 echo "$as_me:$LINENO: checking for shl_load" >&5
13710 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13711 if test "${ac_cv_func_shl_load+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 cat >conftest.$ac_ext <<_ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13722 #define shl_load innocuous_shl_load
13724 /* System header to define __stub macros and hopefully few prototypes,
13725 which can conflict with char shl_load (); below.
13726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13727 <limits.h> exists even on freestanding compilers. */
13730 # include <limits.h>
13732 # include <assert.h>
13737 /* Override any gcc2 internal prototype to avoid an error. */
13742 /* We use char because int might match the return type of a gcc2
13743 builtin and then its argument prototype would still apply. */
13745 /* The GNU C library defines this for functions which it implements
13746 to always fail with ENOSYS. Some functions are actually named
13747 something starting with __ and the normal name is an alias. */
13748 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13751 char (*f) () = shl_load;
13760 return f != shl_load;
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13767 (eval $ac_link) 2>conftest.er1
13769 grep -v '^ *+' conftest.er1 >conftest.err
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -z "$ac_c_werror_flag"
13775 || test ! -s conftest.err'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
13781 { ac_try='test -s conftest$ac_exeext'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_cv_func_shl_load=yes
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 ac_cv_func_shl_load=no
13794 rm -f conftest.err conftest.$ac_objext \
13795 conftest$ac_exeext conftest.$ac_ext
13797 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13798 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13799 if test $ac_cv_func_shl_load = yes; then
13800 lt_cv_dlopen="shl_load"
13802 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13803 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13804 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 ac_check_lib_save_LIBS=$LIBS
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13816 /* Override any gcc2 internal prototype to avoid an error. */
13820 /* We use char because int might match the return type of a gcc2
13821 builtin and then its argument prototype would still apply. */
13831 rm -f conftest.$ac_objext conftest$ac_exeext
13832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13833 (eval $ac_link) 2>conftest.er1
13835 grep -v '^ *+' conftest.er1 >conftest.err
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try='test -z "$ac_c_werror_flag"
13841 || test ! -s conftest.err'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest$ac_exeext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_lib_dld_shl_load=yes
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13858 ac_cv_lib_dld_shl_load=no
13860 rm -f conftest.err conftest.$ac_objext \
13861 conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13864 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13865 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13866 if test $ac_cv_lib_dld_shl_load = yes; then
13867 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13869 echo "$as_me:$LINENO: checking for dlopen" >&5
13870 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13871 if test "${ac_cv_func_dlopen+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 cat >conftest.$ac_ext <<_ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13882 #define dlopen innocuous_dlopen
13884 /* System header to define __stub macros and hopefully few prototypes,
13885 which can conflict with char dlopen (); below.
13886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13887 <limits.h> exists even on freestanding compilers. */
13890 # include <limits.h>
13892 # include <assert.h>
13897 /* Override any gcc2 internal prototype to avoid an error. */
13902 /* We use char because int might match the return type of a gcc2
13903 builtin and then its argument prototype would still apply. */
13905 /* The GNU C library defines this for functions which it implements
13906 to always fail with ENOSYS. Some functions are actually named
13907 something starting with __ and the normal name is an alias. */
13908 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13911 char (*f) () = dlopen;
13920 return f != dlopen;
13925 rm -f conftest.$ac_objext conftest$ac_exeext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13927 (eval $ac_link) 2>conftest.er1
13929 grep -v '^ *+' conftest.er1 >conftest.err
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -z "$ac_c_werror_flag"
13935 || test ! -s conftest.err'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; } &&
13941 { ac_try='test -s conftest$ac_exeext'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_cv_func_dlopen=yes
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_cv_func_dlopen=no
13954 rm -f conftest.err conftest.$ac_objext \
13955 conftest$ac_exeext conftest.$ac_ext
13957 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13958 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13959 if test $ac_cv_func_dlopen = yes; then
13960 lt_cv_dlopen="dlopen"
13962 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13963 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 ac_check_lib_save_LIBS=$LIBS
13969 cat >conftest.$ac_ext <<_ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13976 /* Override any gcc2 internal prototype to avoid an error. */
13980 /* We use char because int might match the return type of a gcc2
13981 builtin and then its argument prototype would still apply. */
13991 rm -f conftest.$ac_objext conftest$ac_exeext
13992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13993 (eval $ac_link) 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
14000 { ac_try='test -z "$ac_c_werror_flag"
14001 || test ! -s conftest.err'
14002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; } &&
14007 { ac_try='test -s conftest$ac_exeext'
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_lib_dl_dlopen=yes
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14018 ac_cv_lib_dl_dlopen=no
14020 rm -f conftest.err conftest.$ac_objext \
14021 conftest$ac_exeext conftest.$ac_ext
14022 LIBS=$ac_check_lib_save_LIBS
14024 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14025 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14026 if test $ac_cv_lib_dl_dlopen = yes; then
14027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14029 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14030 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14031 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 ac_check_lib_save_LIBS=$LIBS
14035 LIBS="-lsvld $LIBS"
14036 cat >conftest.$ac_ext <<_ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14043 /* Override any gcc2 internal prototype to avoid an error. */
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14058 rm -f conftest.$ac_objext conftest$ac_exeext
14059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14060 (eval $ac_link) 2>conftest.er1
14062 grep -v '^ *+' conftest.er1 >conftest.err
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -z "$ac_c_werror_flag"
14068 || test ! -s conftest.err'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; } &&
14074 { ac_try='test -s conftest$ac_exeext'
14075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076 (eval $ac_try) 2>&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; }; then
14080 ac_cv_lib_svld_dlopen=yes
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 ac_cv_lib_svld_dlopen=no
14087 rm -f conftest.err conftest.$ac_objext \
14088 conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14091 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14092 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14093 if test $ac_cv_lib_svld_dlopen = yes; then
14094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14096 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14097 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14098 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 ac_check_lib_save_LIBS=$LIBS
14103 cat >conftest.$ac_ext <<_ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h. */
14110 /* Override any gcc2 internal prototype to avoid an error. */
14114 /* We use char because int might match the return type of a gcc2
14115 builtin and then its argument prototype would still apply. */
14125 rm -f conftest.$ac_objext conftest$ac_exeext
14126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14127 (eval $ac_link) 2>conftest.er1
14129 grep -v '^ *+' conftest.er1 >conftest.err
14131 cat conftest.err >&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } &&
14134 { ac_try='test -z "$ac_c_werror_flag"
14135 || test ! -s conftest.err'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; } &&
14141 { ac_try='test -s conftest$ac_exeext'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14147 ac_cv_lib_dld_dld_link=yes
14149 echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14152 ac_cv_lib_dld_dld_link=no
14154 rm -f conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
14156 LIBS=$ac_check_lib_save_LIBS
14158 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14159 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14160 if test $ac_cv_lib_dld_dld_link = yes; then
14161 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14182 if test "x$lt_cv_dlopen" != xno; then
14188 case $lt_cv_dlopen in
14190 save_CPPFLAGS="$CPPFLAGS"
14191 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14193 save_LDFLAGS="$LDFLAGS"
14194 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14197 LIBS="$lt_cv_dlopen_libs $LIBS"
14199 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14200 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14201 if test "${lt_cv_dlopen_self+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 if test "$cross_compiling" = yes; then :
14205 lt_cv_dlopen_self=cross
14207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14208 lt_status=$lt_dlunknown
14209 cat > conftest.$ac_ext <<EOF
14210 #line 14210 "configure"
14211 #include "confdefs.h"
14220 # define LT_DLGLOBAL RTLD_GLOBAL
14223 # define LT_DLGLOBAL DL_GLOBAL
14225 # define LT_DLGLOBAL 0
14229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14230 find out it does not work in some platform. */
14231 #ifndef LT_DLLAZY_OR_NOW
14233 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14236 # define LT_DLLAZY_OR_NOW DL_LAZY
14239 # define LT_DLLAZY_OR_NOW RTLD_NOW
14242 # define LT_DLLAZY_OR_NOW DL_NOW
14244 # define LT_DLLAZY_OR_NOW 0
14252 extern "C" void exit (int);
14255 void fnord() { int i=42;}
14258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14259 int status = $lt_dlunknown;
14263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14264 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14265 /* dlclose (self); */
14271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272 (eval $ac_link) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14276 (./conftest; exit; ) 2>/dev/null
14278 case x$lt_status in
14279 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14280 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14281 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14284 # compilation failed
14285 lt_cv_dlopen_self=no
14292 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14293 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14295 if test "x$lt_cv_dlopen_self" = xyes; then
14296 LDFLAGS="$LDFLAGS $link_static_flag"
14297 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14298 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14299 if test "${lt_cv_dlopen_self_static+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 if test "$cross_compiling" = yes; then :
14303 lt_cv_dlopen_self_static=cross
14305 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14306 lt_status=$lt_dlunknown
14307 cat > conftest.$ac_ext <<EOF
14308 #line 14308 "configure"
14309 #include "confdefs.h"
14318 # define LT_DLGLOBAL RTLD_GLOBAL
14321 # define LT_DLGLOBAL DL_GLOBAL
14323 # define LT_DLGLOBAL 0
14327 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14328 find out it does not work in some platform. */
14329 #ifndef LT_DLLAZY_OR_NOW
14331 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14334 # define LT_DLLAZY_OR_NOW DL_LAZY
14337 # define LT_DLLAZY_OR_NOW RTLD_NOW
14340 # define LT_DLLAZY_OR_NOW DL_NOW
14342 # define LT_DLLAZY_OR_NOW 0
14350 extern "C" void exit (int);
14353 void fnord() { int i=42;}
14356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14357 int status = $lt_dlunknown;
14361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14362 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14363 /* dlclose (self); */
14369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14370 (eval $ac_link) 2>&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14374 (./conftest; exit; ) 2>/dev/null
14376 case x$lt_status in
14377 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14378 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14379 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14382 # compilation failed
14383 lt_cv_dlopen_self_static=no
14390 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14391 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14394 CPPFLAGS="$save_CPPFLAGS"
14395 LDFLAGS="$save_LDFLAGS"
14400 case $lt_cv_dlopen_self in
14401 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14402 *) enable_dlopen_self=unknown ;;
14405 case $lt_cv_dlopen_self_static in
14406 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14407 *) enable_dlopen_self_static=unknown ;;
14412 # Report which librarie types wil actually be built
14413 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14414 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14415 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14416 echo "${ECHO_T}$can_build_shared" >&6
14418 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14419 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14420 test "$can_build_shared" = "no" && enable_shared=no
14422 # On AIX, shared libraries and static libraries use the same namespace, and
14423 # are all built from PIC.
14426 test "$enable_shared" = yes && enable_static=no
14427 if test -n "$RANLIB"; then
14428 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14429 postinstall_cmds='$RANLIB $lib'
14434 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14435 test "$enable_shared" = yes && enable_static=no
14439 echo "$as_me:$LINENO: result: $enable_shared" >&5
14440 echo "${ECHO_T}$enable_shared" >&6
14442 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14443 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14444 # Make sure either enable_shared or enable_static is yes.
14445 test "$enable_shared" = yes || enable_static=yes
14446 echo "$as_me:$LINENO: result: $enable_static" >&5
14447 echo "${ECHO_T}$enable_static" >&6
14449 # The else clause should only fire when bootstrapping the
14450 # libtool distribution, otherwise you forgot to ship ltmain.sh
14451 # with your package, and you will get complaints that there are
14452 # no rules to generate ltmain.sh.
14453 if test -f "$ltmain"; then
14454 # See if we are running on zsh, and set the options which allow our commands through
14455 # without removal of \ escapes.
14456 if test -n "${ZSH_VERSION+set}" ; then
14457 setopt NO_GLOB_SUBST
14459 # Now quote all the things that may contain metacharacters while being
14460 # careful not to overquote the AC_SUBSTed values. We take copies of the
14461 # variables and quote the copies for generation of the libtool script.
14462 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14464 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14465 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14466 deplibs_check_method reload_flag reload_cmds need_locks \
14467 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14468 lt_cv_sys_global_symbol_to_c_name_address \
14469 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14470 old_postinstall_cmds old_postuninstall_cmds \
14474 lt_prog_compiler_wl \
14475 lt_prog_compiler_pic \
14476 lt_prog_compiler_static \
14477 lt_prog_compiler_no_builtin_flag \
14478 export_dynamic_flag_spec \
14479 thread_safe_flag_spec \
14480 whole_archive_flag_spec \
14481 enable_shared_with_static_runtimes \
14483 old_archive_from_new_cmds \
14488 compiler_lib_search_path \
14490 archive_expsym_cmds \
14492 postuninstall_cmds \
14493 old_archive_from_expsyms_cmds \
14494 allow_undefined_flag \
14495 no_undefined_flag \
14496 export_symbols_cmds \
14497 hardcode_libdir_flag_spec \
14498 hardcode_libdir_flag_spec_ld \
14499 hardcode_libdir_separator \
14500 hardcode_automatic \
14502 module_expsym_cmds \
14503 lt_cv_prog_compiler_c_o \
14505 include_expsyms; do
14508 old_archive_cmds | \
14509 old_archive_from_new_cmds | \
14511 archive_expsym_cmds | \
14513 module_expsym_cmds | \
14514 old_archive_from_expsyms_cmds | \
14515 export_symbols_cmds | \
14516 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14517 postinstall_cmds | postuninstall_cmds | \
14518 old_postinstall_cmds | old_postuninstall_cmds | \
14519 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14520 # Double-quote double-evaled strings.
14521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14530 *'\$0 --fallback-echo"')
14531 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14535 cfgfile="${ofile}T"
14536 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14538 { echo "$as_me:$LINENO: creating $ofile" >&5
14539 echo "$as_me: creating $ofile" >&6;}
14541 cat <<__EOF__ >> "$cfgfile"
14544 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14545 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14546 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14548 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14549 # Free Software Foundation, Inc.
14551 # This file is part of GNU Libtool:
14552 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14554 # This program is free software; you can redistribute it and/or modify
14555 # it under the terms of the GNU General Public License as published by
14556 # the Free Software Foundation; either version 2 of the License, or
14557 # (at your option) any later version.
14559 # This program is distributed in the hope that it will be useful, but
14560 # WITHOUT ANY WARRANTY; without even the implied warranty of
14561 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14562 # General Public License for more details.
14564 # You should have received a copy of the GNU General Public License
14565 # along with this program; if not, write to the Free Software
14566 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14568 # As a special exception to the GNU General Public License, if you
14569 # distribute this file as part of a program that contains a
14570 # configuration script generated by Autoconf, you may include it under
14571 # the same distribution terms that you use for the rest of that program.
14573 # A sed program that does not truncate output.
14576 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14577 Xsed="$SED -e s/^X//"
14579 # The HP-UX ksh and POSIX shell print the target directory to stdout
14580 # if CDPATH is set.
14581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14583 # The names of the tagged configurations supported by this script.
14586 # ### BEGIN LIBTOOL CONFIG
14588 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14590 # Shell to use when invoking shell scripts.
14593 # Whether or not to build shared libraries.
14594 build_libtool_libs=$enable_shared
14596 # Whether or not to build static libraries.
14597 build_old_libs=$enable_static
14599 # Whether or not to add -lc for building shared libraries.
14600 build_libtool_need_lc=$archive_cmds_need_lc
14602 # Whether or not to disallow shared libs when runtime libs are static
14603 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14605 # Whether or not to optimize for fast installation.
14606 fast_install=$enable_fast_install
14609 host_alias=$host_alias
14612 # An echo program that does not interpret backslashes.
14617 AR_FLAGS=$lt_AR_FLAGS
14622 # A language-specific compiler.
14625 # Is the compiler the GNU C compiler?
14631 # The linker used to build libraries.
14634 # Whether we need hard or soft links.
14637 # A BSD-compatible nm program.
14640 # A symbol stripping program
14643 # Used to examine libraries when file_magic_cmd begins "file"
14644 MAGIC_CMD=$MAGIC_CMD
14646 # Used on cygwin: DLL creation program.
14649 # Used on cygwin: object dumper.
14652 # Used on cygwin: assembler.
14655 # The name of the directory that contains temporary libtool files.
14658 # How to create reloadable object files.
14659 reload_flag=$lt_reload_flag
14660 reload_cmds=$lt_reload_cmds
14662 # How to pass a linker flag through the compiler.
14663 wl=$lt_lt_prog_compiler_wl
14665 # Object file suffix (normally "o").
14666 objext="$ac_objext"
14668 # Old archive suffix (normally "a").
14671 # Shared library suffix (normally ".so").
14672 shrext_cmds='$shrext_cmds'
14674 # Executable file suffix (normally "").
14677 # Additional compiler flags for building library objects.
14678 pic_flag=$lt_lt_prog_compiler_pic
14681 # What is the maximum length of a command?
14682 max_cmd_len=$lt_cv_sys_max_cmd_len
14684 # Does compiler simultaneously support -c and -o options?
14685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14687 # Must we lock files when doing compilation ?
14688 need_locks=$lt_need_locks
14690 # Do we need the lib prefix for modules?
14691 need_lib_prefix=$need_lib_prefix
14693 # Do we need a version for libraries?
14694 need_version=$need_version
14696 # Whether dlopen is supported.
14697 dlopen_support=$enable_dlopen
14699 # Whether dlopen of programs is supported.
14700 dlopen_self=$enable_dlopen_self
14702 # Whether dlopen of statically linked programs is supported.
14703 dlopen_self_static=$enable_dlopen_self_static
14705 # Compiler flag to prevent dynamic linking.
14706 link_static_flag=$lt_lt_prog_compiler_static
14708 # Compiler flag to turn off builtin functions.
14709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14711 # Compiler flag to allow reflexive dlopens.
14712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14714 # Compiler flag to generate shared objects directly from archives.
14715 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14717 # Compiler flag to generate thread-safe objects.
14718 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14720 # Library versioning type.
14721 version_type=$version_type
14723 # Format of library name prefix.
14724 libname_spec=$lt_libname_spec
14726 # List of archive names. First name is the real one, the rest are links.
14727 # The last name is the one that the linker finds with -lNAME.
14728 library_names_spec=$lt_library_names_spec
14730 # The coded name of the library, if different from the real name.
14731 soname_spec=$lt_soname_spec
14733 # Commands used to build and install an old-style archive.
14735 old_archive_cmds=$lt_old_archive_cmds
14736 old_postinstall_cmds=$lt_old_postinstall_cmds
14737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14739 # Create an old-style archive from a shared archive.
14740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14742 # Create a temporary old-style archive to link instead of a shared archive.
14743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14745 # Commands used to build and install a shared archive.
14746 archive_cmds=$lt_archive_cmds
14747 archive_expsym_cmds=$lt_archive_expsym_cmds
14748 postinstall_cmds=$lt_postinstall_cmds
14749 postuninstall_cmds=$lt_postuninstall_cmds
14751 # Commands used to build a loadable module (assumed same as above if empty)
14752 module_cmds=$lt_module_cmds
14753 module_expsym_cmds=$lt_module_expsym_cmds
14755 # Commands to strip libraries.
14756 old_striplib=$lt_old_striplib
14757 striplib=$lt_striplib
14759 # Dependencies to place before the objects being linked to create a
14761 predep_objects=$lt_predep_objects
14763 # Dependencies to place after the objects being linked to create a
14765 postdep_objects=$lt_postdep_objects
14767 # Dependencies to place before the objects being linked to create a
14769 predeps=$lt_predeps
14771 # Dependencies to place after the objects being linked to create a
14773 postdeps=$lt_postdeps
14775 # The library search path used internally by the compiler when linking
14776 # a shared library.
14777 compiler_lib_search_path=$lt_compiler_lib_search_path
14779 # Method to check whether dependent libraries are shared objects.
14780 deplibs_check_method=$lt_deplibs_check_method
14782 # Command to use when deplibs_check_method == file_magic.
14783 file_magic_cmd=$lt_file_magic_cmd
14785 # Flag that allows shared libraries with undefined symbols to be built.
14786 allow_undefined_flag=$lt_allow_undefined_flag
14788 # Flag that forces no undefined symbols.
14789 no_undefined_flag=$lt_no_undefined_flag
14791 # Commands used to finish a libtool library installation in a directory.
14792 finish_cmds=$lt_finish_cmds
14794 # Same as above, but a single script fragment to be evaled but not shown.
14795 finish_eval=$lt_finish_eval
14797 # Take the output of nm and produce a listing of raw symbols and C names.
14798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14800 # Transform the output of nm in a proper C declaration
14801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14803 # Transform the output of nm in a C name address pair
14804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14806 # This is the shared library runtime path variable.
14807 runpath_var=$runpath_var
14809 # This is the shared library path variable.
14810 shlibpath_var=$shlibpath_var
14812 # Is shlibpath searched before the hard-coded library search path?
14813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14815 # How to hardcode a shared library path into an executable.
14816 hardcode_action=$hardcode_action
14818 # Whether we should hardcode library paths into libraries.
14819 hardcode_into_libs=$hardcode_into_libs
14821 # Flag to hardcode \$libdir into a binary during linking.
14822 # This must work even if \$libdir does not exist.
14823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14825 # If ld is used when linking, flag to hardcode \$libdir into
14826 # a binary during linking. This must work even if \$libdir does
14828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14830 # Whether we need a single -rpath flag with a separated argument.
14831 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14834 # resulting binary.
14835 hardcode_direct=$hardcode_direct
14837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14838 # resulting binary.
14839 hardcode_minus_L=$hardcode_minus_L
14841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14842 # the resulting binary.
14843 hardcode_shlibpath_var=$hardcode_shlibpath_var
14845 # Set to yes if building a shared library automatically hardcodes DIR into the library
14846 # and all subsequent libraries and executables linked against it.
14847 hardcode_automatic=$hardcode_automatic
14849 # Variables whose values should be saved in libtool wrapper scripts and
14850 # restored at relink time.
14851 variables_saved_for_relink="$variables_saved_for_relink"
14853 # Whether libtool must link a program against all its dependency libraries.
14854 link_all_deplibs=$link_all_deplibs
14856 # Compile-time system search path for libraries
14857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14859 # Run-time system search path for libraries
14860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14862 # Fix the shell variable \$srcfile for the compiler.
14863 fix_srcfile_path="$fix_srcfile_path"
14865 # Set to yes if exported symbols are required.
14866 always_export_symbols=$always_export_symbols
14868 # The commands to list exported symbols.
14869 export_symbols_cmds=$lt_export_symbols_cmds
14871 # The commands to extract the exported symbol list from a shared archive.
14872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14874 # Symbols that should not be listed in the preloaded symbols.
14875 exclude_expsyms=$lt_exclude_expsyms
14877 # Symbols that must always be exported.
14878 include_expsyms=$lt_include_expsyms
14880 # ### END LIBTOOL CONFIG
14887 cat <<\EOF >> "$cfgfile"
14889 # AIX sometimes has problems with the GCC collect2 program. For some
14890 # reason, if we set the COLLECT_NAMES environment variable, the problems
14891 # vanish in a puff of smoke.
14892 if test "X${COLLECT_NAMES+set}" != Xset; then
14894 export COLLECT_NAMES
14900 # We use sed instead of cat because bash on DJGPP gets confused if
14901 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14902 # text mode, it properly converts lines to CR/LF. This bash problem
14903 # is reportedly fixed, but why not run on old versions too?
14904 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14906 mv -f "$cfgfile" "$ofile" || \
14907 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14911 # If there is no Makefile yet, we rely on a make rule to execute
14912 # `config.status --recheck' to rerun these tests and create the
14913 # libtool script then.
14914 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14915 if test -f "$ltmain_in"; then
14916 test -f Makefile && make "$ltmain"
14922 ac_cpp='$CPP $CPPFLAGS'
14923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14930 # Check whether --with-tags or --without-tags was given.
14931 if test "${with_tags+set}" = set; then
14932 withval="$with_tags"
14933 tagnames="$withval"
14936 if test -f "$ltmain" && test -n "$tagnames"; then
14937 if test ! -f "${ofile}"; then
14938 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14939 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14942 if test -z "$LTCC"; then
14943 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14944 if test -z "$LTCC"; then
14945 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14946 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14949 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14953 # Extract list of available tagged configurations in $ofile.
14954 # Note that this assumes the entire list is on one line.
14955 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14958 for tagname in $tagnames; do
14960 # Check whether tagname contains only valid characters
14961 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14963 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14964 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14965 { (exit 1); exit 1; }; }
14969 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14971 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14972 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14973 { (exit 1); exit 1; }; }
14976 # Update the list of available tags.
14977 if test -n "$tagname"; then
14978 echo appending configuration tag "$tagname" to $ofile
14982 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14983 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14984 (test "X$CXX" != "Xg++"))) ; then
14986 ac_cpp='$CXXCPP $CPPFLAGS'
14987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14994 archive_cmds_need_lc_CXX=no
14995 allow_undefined_flag_CXX=
14996 always_export_symbols_CXX=no
14997 archive_expsym_cmds_CXX=
14998 export_dynamic_flag_spec_CXX=
14999 hardcode_direct_CXX=no
15000 hardcode_libdir_flag_spec_CXX=
15001 hardcode_libdir_flag_spec_ld_CXX=
15002 hardcode_libdir_separator_CXX=
15003 hardcode_minus_L_CXX=no
15004 hardcode_automatic_CXX=no
15006 module_expsym_cmds_CXX=
15007 link_all_deplibs_CXX=unknown
15008 old_archive_cmds_CXX=$old_archive_cmds
15009 no_undefined_flag_CXX=
15010 whole_archive_flag_spec_CXX=
15011 enable_shared_with_static_runtimes_CXX=no
15013 # Dependencies to place before and after the object being linked:
15014 predep_objects_CXX=
15015 postdep_objects_CXX=
15018 compiler_lib_search_path_CXX=
15020 # Source file extension for C++ test sources.
15023 # Object file extension for compiled C++ test sources.
15027 # Code to be used in simple compile tests
15028 lt_simple_compile_test_code="int some_variable = 0;\n"
15030 # Code to be used in simple link tests
15031 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15033 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15035 # If no C compiler was specified, use CC.
15038 # Allow CC to be a program name with arguments.
15042 # Allow CC to be a program name with arguments.
15047 lt_save_with_gnu_ld=$with_gnu_ld
15048 lt_save_path_LD=$lt_cv_path_LD
15049 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15050 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15052 unset lt_cv_prog_gnu_ld
15054 if test -n "${lt_cv_path_LDCXX+set}"; then
15055 lt_cv_path_LD=$lt_cv_path_LDCXX
15057 unset lt_cv_path_LD
15059 test -z "${LDCXX+set}" || LD=$LDCXX
15063 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15065 # We don't want -fno-exception wen compiling C++ code, so set the
15066 # no_builtin_flag separately
15067 if test "$GXX" = yes; then
15068 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15070 lt_prog_compiler_no_builtin_flag_CXX=
15073 if test "$GXX" = yes; then
15074 # Set up default GNU C++ configuration
15077 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15078 if test "${with_gnu_ld+set}" = set; then
15079 withval="$with_gnu_ld"
15080 test "$withval" = no || with_gnu_ld=yes
15085 if test "$GCC" = yes; then
15086 # Check if gcc -print-prog-name=ld gives a path.
15087 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15088 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15091 # gcc leaves a trailing carriage return which upsets mingw
15092 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15094 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15097 # Accept absolute paths.
15099 re_direlt='/[^/][^/]*/\.\./'
15100 # Canonicalize the pathname of ld
15101 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15102 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15103 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15105 test -z "$LD" && LD="$ac_prog"
15108 # If it fails, then pretend we aren't using GCC.
15112 # If it is relative, then search for the first ld in PATH.
15113 with_gnu_ld=unknown
15116 elif test "$with_gnu_ld" = yes; then
15117 echo "$as_me:$LINENO: checking for GNU ld" >&5
15118 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15120 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15121 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15123 if test "${lt_cv_path_LD+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 if test -z "$LD"; then
15127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15128 for ac_dir in $PATH; do
15130 test -z "$ac_dir" && ac_dir=.
15131 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15132 lt_cv_path_LD="$ac_dir/$ac_prog"
15133 # Check to see if the program is GNU ld. I'd rather use --version,
15134 # but apparently some GNU ld's only accept -v.
15135 # Break only if it was the GNU/non-GNU ld that we prefer.
15136 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15137 *GNU* | *'with BFD'*)
15138 test "$with_gnu_ld" != no && break
15141 test "$with_gnu_ld" != yes && break
15148 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15152 LD="$lt_cv_path_LD"
15153 if test -n "$LD"; then
15154 echo "$as_me:$LINENO: result: $LD" >&5
15155 echo "${ECHO_T}$LD" >&6
15157 echo "$as_me:$LINENO: result: no" >&5
15158 echo "${ECHO_T}no" >&6
15160 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15161 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15162 { (exit 1); exit 1; }; }
15163 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15164 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15165 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15169 case `$LD -v 2>&1 </dev/null` in
15170 *GNU* | *'with BFD'*)
15171 lt_cv_prog_gnu_ld=yes
15174 lt_cv_prog_gnu_ld=no
15178 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15179 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15180 with_gnu_ld=$lt_cv_prog_gnu_ld
15184 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15185 # archiving commands below assume that GNU ld is being used.
15186 if test "$with_gnu_ld" = yes; then
15187 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15188 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'
15190 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15191 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15193 # If archive_cmds runs LD, not CC, wlarc should be empty
15194 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15195 # investigate it a little bit more. (MM)
15198 # ancient GNU ld didn't support --whole-archive et. al.
15199 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15200 grep 'no-whole-archive' > /dev/null; then
15201 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15203 whole_archive_flag_spec_CXX=
15209 # A generic and very simple default shared library creation
15210 # command for GNU C++ for the case where it uses the native
15211 # linker, instead of GNU ld. If possible, this setting should
15212 # overridden to take advantage of the native linker features on
15213 # the platform it is being used on.
15214 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15217 # Commands to make compiler produce verbose output that lists
15218 # what "hidden" libraries, object files and flags are used when
15219 # linking a shared library.
15220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15228 # PORTME: fill in a description of your system's C++ link characteristics
15229 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15230 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15234 # FIXME: insert proper C++ library support
15238 if test "$host_cpu" = ia64; then
15239 # On IA64, the linker does run time linking by default, so we don't
15240 # have to do anything special.
15241 aix_use_runtimelinking=no
15242 exp_sym_flag='-Bexport'
15245 aix_use_runtimelinking=no
15247 # Test if we are trying to use run time linking or normal
15248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15249 # need to do runtime linking.
15250 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15251 for ld_flag in $LDFLAGS; do
15254 aix_use_runtimelinking=yes
15261 exp_sym_flag='-bexport'
15262 no_entry_flag='-bnoentry'
15265 # When large executables or shared objects are built, AIX ld can
15266 # have problems creating the table of contents. If linking a library
15267 # or program results in "error TOC overflow" add -mminimal-toc to
15268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15271 archive_cmds_CXX=''
15272 hardcode_direct_CXX=yes
15273 hardcode_libdir_separator_CXX=':'
15274 link_all_deplibs_CXX=yes
15276 if test "$GXX" = yes; then
15277 case $host_os in aix4.012|aix4.012.*)
15278 # We only want to do this on AIX 4.2 and lower, the check
15279 # below for broken collect2 doesn't work under 4.3+
15280 collect2name=`${CC} -print-prog-name=collect2`
15281 if test -f "$collect2name" && \
15282 strings "$collect2name" | grep resolve_lib_name >/dev/null
15284 # We have reworked collect2
15285 hardcode_direct_CXX=yes
15287 # We have old collect2
15288 hardcode_direct_CXX=unsupported
15289 # It fails to find uninstalled libraries when the uninstalled
15290 # path is not listed in the libpath. Setting hardcode_minus_L
15291 # to unsupported forces relinking
15292 hardcode_minus_L_CXX=yes
15293 hardcode_libdir_flag_spec_CXX='-L$libdir'
15294 hardcode_libdir_separator_CXX=
15297 shared_flag='-shared'
15300 if test "$host_cpu" = ia64; then
15301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15302 # chokes on -Wl,-G. The following line is correct:
15305 if test "$aix_use_runtimelinking" = yes; then
15306 shared_flag='${wl}-G'
15308 shared_flag='${wl}-bM:SRE'
15313 # It seems that -bexpall does not export symbols beginning with
15314 # underscore (_), so it is better to generate a list of symbols to export.
15315 always_export_symbols_CXX=yes
15316 if test "$aix_use_runtimelinking" = yes; then
15317 # Warning - without using the other runtime loading flags (-brtl),
15318 # -berok will link without error, but may produce a broken library.
15319 allow_undefined_flag_CXX='-berok'
15320 # Determine the default libpath from the value encoded in an empty executable.
15321 cat >conftest.$ac_ext <<_ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15336 rm -f conftest.$ac_objext conftest$ac_exeext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15338 (eval $ac_link) 2>conftest.er1
15340 grep -v '^ *+' conftest.er1 >conftest.err
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
15345 { ac_try='test -z "$ac_cxx_werror_flag"
15346 || test ! -s conftest.err'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; } &&
15352 { ac_try='test -s conftest$ac_exeext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15361 # Check for a 64-bit object if we didn't find anything.
15362 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; }
15365 echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15369 rm -f conftest.err conftest.$ac_objext \
15370 conftest$ac_exeext conftest.$ac_ext
15371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15373 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15375 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"
15377 if test "$host_cpu" = ia64; then
15378 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15379 allow_undefined_flag_CXX="-z nodefs"
15380 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"
15382 # Determine the default libpath from the value encoded in an empty executable.
15383 cat >conftest.$ac_ext <<_ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15398 rm -f conftest.$ac_objext conftest$ac_exeext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15400 (eval $ac_link) 2>conftest.er1
15402 grep -v '^ *+' conftest.er1 >conftest.err
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
15407 { ac_try='test -z "$ac_cxx_werror_flag"
15408 || test ! -s conftest.err'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try='test -s conftest$ac_exeext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15423 # Check for a 64-bit object if we didn't find anything.
15424 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; }
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15431 rm -f conftest.err conftest.$ac_objext \
15432 conftest$ac_exeext conftest.$ac_ext
15433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15435 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15436 # Warning - without using the other run time loading flags,
15437 # -berok will link without error, but may produce a broken library.
15438 no_undefined_flag_CXX=' ${wl}-bernotok'
15439 allow_undefined_flag_CXX=' ${wl}-berok'
15440 # -bexpall does not export symbols beginning with underscore (_)
15441 always_export_symbols_CXX=yes
15442 # Exported symbols can be pulled into shared objects from archives
15443 whole_archive_flag_spec_CXX=' '
15444 archive_cmds_need_lc_CXX=yes
15445 # This is similar to how AIX traditionally builds it's shared libraries.
15446 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'
15451 case $cc_basename in
15453 # FIXME: insert proper C++ library support
15460 cygwin* | mingw* | pw32*)
15461 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15462 # as there is no search path for DLLs.
15463 hardcode_libdir_flag_spec_CXX='-L$libdir'
15464 allow_undefined_flag_CXX=unsupported
15465 always_export_symbols_CXX=no
15466 enable_shared_with_static_runtimes_CXX=yes
15468 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15469 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'
15470 # If the export-symbols file already is a .def file (1st line
15471 # is EXPORTS), use it as is; otherwise, prepend...
15472 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15473 cp $export_symbols $output_objdir/$soname.def;
15475 echo EXPORTS > $output_objdir/$soname.def;
15476 cat $export_symbols >> $output_objdir/$soname.def;
15478 $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'
15483 darwin* | rhapsody*)
15485 rhapsody* | darwin1.[012])
15486 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15489 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15490 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15492 case ${MACOSX_DEPLOYMENT_TARGET} in
15494 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15497 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15503 archive_cmds_need_lc_CXX=no
15504 hardcode_direct_CXX=no
15505 hardcode_automatic_CXX=yes
15506 hardcode_shlibpath_var_CXX=unsupported
15507 whole_archive_flag_spec_CXX=''
15508 link_all_deplibs_CXX=yes
15510 if test "$GXX" = yes ; then
15511 lt_int_apple_cc_single_mod=no
15512 output_verbose_link_cmd='echo'
15513 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15514 lt_int_apple_cc_single_mod=yes
15516 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15517 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15519 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'
15521 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15522 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15523 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15524 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}'
15526 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}'
15528 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}'
15530 case "$cc_basename" in
15532 output_verbose_link_cmd='echo'
15533 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'
15534 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15536 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}'
15537 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}'
15547 case $cc_basename in
15549 # FIXME: insert proper C++ library support
15553 # Green Hills C++ Compiler
15554 # FIXME: insert proper C++ library support
15558 # FIXME: insert proper C++ library support
15564 # C++ shared libraries reported to be fairly broken before switch to ELF
15568 archive_cmds_need_lc_CXX=no
15570 freebsd* | kfreebsd*-gnu)
15571 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15578 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15579 hardcode_libdir_separator_CXX=:
15580 export_dynamic_flag_spec_CXX='${wl}-E'
15581 hardcode_direct_CXX=yes
15582 hardcode_minus_L_CXX=yes # Not in the search PATH,
15583 # but as the default
15584 # location of the library.
15586 case $cc_basename in
15588 # FIXME: insert proper C++ library support
15592 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'
15593 # Commands to make compiler produce verbose output that lists
15594 # what "hidden" libraries, object files and flags are used when
15595 # linking a shared library.
15597 # There doesn't appear to be a way to prevent this compiler from
15598 # explicitly linking system object files so we need to strip them
15599 # from the output so that they don't get included in the library
15601 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'
15604 if test "$GXX" = yes; then
15605 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'
15607 # FIXME: insert proper C++ library support
15614 if test $with_gnu_ld = no; then
15615 case "$host_cpu" in
15617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15618 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15619 hardcode_libdir_separator_CXX=:
15622 hardcode_libdir_flag_spec_CXX='-L$libdir'
15625 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15626 hardcode_libdir_separator_CXX=:
15627 export_dynamic_flag_spec_CXX='${wl}-E'
15631 case "$host_cpu" in
15633 hardcode_direct_CXX=no
15634 hardcode_shlibpath_var_CXX=no
15637 hardcode_direct_CXX=no
15638 hardcode_shlibpath_var_CXX=no
15639 hardcode_minus_L_CXX=yes # Not in the search PATH,
15640 # but as the default
15641 # location of the library.
15644 hardcode_direct_CXX=yes
15645 hardcode_minus_L_CXX=yes # Not in the search PATH,
15646 # but as the default
15647 # location of the library.
15651 case $cc_basename in
15653 # FIXME: insert proper C++ library support
15657 case "$host_cpu" in
15659 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15665 # Commands to make compiler produce verbose output that lists
15666 # what "hidden" libraries, object files and flags are used when
15667 # linking a shared library.
15669 # There doesn't appear to be a way to prevent this compiler from
15670 # explicitly linking system object files so we need to strip them
15671 # from the output so that they don't get included in the library
15673 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'
15676 if test "$GXX" = yes; then
15677 if test $with_gnu_ld = no; then
15678 case "$host_cpu" in
15680 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15683 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'
15688 # FIXME: insert proper C++ library support
15695 case $cc_basename in
15698 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'
15700 # Archives containing C++ object files must be created using
15701 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15702 # necessary to make sure instantiated templates are included
15704 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15707 if test "$GXX" = yes; then
15708 if test "$with_gnu_ld" = no; then
15709 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'
15711 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'
15714 link_all_deplibs_CXX=yes
15717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15718 hardcode_libdir_separator_CXX=:
15721 case $cc_basename in
15723 # Kuck and Associates, Inc. (KAI) C++ Compiler
15725 # KCC will only create a shared library if the output file
15726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15727 # to its proper name (with version) after linking.
15728 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'
15729 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'
15730 # Commands to make compiler produce verbose output that lists
15731 # what "hidden" libraries, object files and flags are used when
15732 # linking a shared library.
15734 # There doesn't appear to be a way to prevent this compiler from
15735 # explicitly linking system object files so we need to strip them
15736 # from the output so that they don't get included in the library
15738 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'
15740 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15741 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15743 # Archives containing C++ object files must be created using
15744 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15745 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15750 # version 8.0 and above of icpc choke on multiply defined symbols
15751 # if we add $predep_objects and $postdep_objects, however 7.1 and
15752 # earlier do not add the objects themselves.
15753 case `$CC -V 2>&1` in
15755 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15756 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'
15758 *) # Version 8.0 or newer
15759 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15760 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15763 archive_cmds_need_lc_CXX=no
15764 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15766 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15770 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15771 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'
15773 runpath_var=LD_RUN_PATH
15774 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15775 hardcode_libdir_separator_CXX=:
15777 # Commands to make compiler produce verbose output that lists
15778 # what "hidden" libraries, object files and flags are used when
15779 # linking a shared library.
15781 # There doesn't appear to be a way to prevent this compiler from
15782 # explicitly linking system object files so we need to strip them
15783 # from the output so that they don't get included in the library
15785 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'
15790 # FIXME: insert proper C++ library support
15794 # FIXME: insert proper C++ library support
15798 case $cc_basename in
15800 # FIXME: insert proper C++ library support
15804 # FIXME: insert proper C++ library support
15810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15811 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15813 hardcode_libdir_flag_spec_CXX='-R$libdir'
15814 hardcode_direct_CXX=yes
15815 hardcode_shlibpath_var_CXX=no
15817 # Workaround some broken pre-1.5 toolchains
15818 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15821 # C++ shared libraries are fairly broken
15825 hardcode_direct_CXX=yes
15826 hardcode_shlibpath_var_CXX=no
15827 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15828 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15830 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15831 export_dynamic_flag_spec_CXX='${wl}-E'
15832 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15834 output_verbose_link_cmd='echo'
15837 case $cc_basename in
15839 # Kuck and Associates, Inc. (KAI) C++ Compiler
15841 # KCC will only create a shared library if the output file
15842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15843 # to its proper name (with version) after linking.
15844 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'
15846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15847 hardcode_libdir_separator_CXX=:
15849 # Archives containing C++ object files must be created using
15850 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15851 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15855 # Rational C++ 2.4.1
15856 # FIXME: insert proper C++ library support
15860 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15861 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'
15863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15864 hardcode_libdir_separator_CXX=:
15866 # Commands to make compiler produce verbose output that lists
15867 # what "hidden" libraries, object files and flags are used when
15868 # linking a shared library.
15870 # There doesn't appear to be a way to prevent this compiler from
15871 # explicitly linking system object files so we need to strip them
15872 # from the output so that they don't get included in the library
15874 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'
15877 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15878 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15879 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'
15881 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15882 hardcode_libdir_separator_CXX=:
15884 # Commands to make compiler produce verbose output that lists
15885 # what "hidden" libraries, object files and flags are used when
15886 # linking a shared library.
15887 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15890 # FIXME: insert proper C++ library support
15897 case $cc_basename in
15899 # Kuck and Associates, Inc. (KAI) C++ Compiler
15901 # KCC will only create a shared library if the output file
15902 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15903 # to its proper name (with version) after linking.
15904 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'
15906 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15907 hardcode_libdir_separator_CXX=:
15909 # Archives containing C++ object files must be created using
15910 # the KAI C++ compiler.
15911 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15914 # Rational C++ 2.4.1
15915 # FIXME: insert proper C++ library support
15919 allow_undefined_flag_CXX=' -expect_unresolved \*'
15920 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'
15921 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15922 echo "-hidden">> $lib.exp~
15923 $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~
15926 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15927 hardcode_libdir_separator_CXX=:
15929 # Commands to make compiler produce verbose output that lists
15930 # what "hidden" libraries, object files and flags are used when
15931 # linking a shared library.
15933 # There doesn't appear to be a way to prevent this compiler from
15934 # explicitly linking system object files so we need to strip them
15935 # from the output so that they don't get included in the library
15937 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'
15940 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15941 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15942 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'
15944 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15945 hardcode_libdir_separator_CXX=:
15947 # Commands to make compiler produce verbose output that lists
15948 # what "hidden" libraries, object files and flags are used when
15949 # linking a shared library.
15950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15953 # FIXME: insert proper C++ library support
15960 # FIXME: insert proper C++ library support
15964 archive_cmds_need_lc_CXX=no
15965 case $cc_basename in
15967 # FIXME: insert proper C++ library support
15971 # FIXME: insert proper C++ library support
15977 case $cc_basename in
15980 # FIXME: insert proper C++ library support
15985 # FIXME: insert proper C++ library support
15989 # FIXME: insert proper C++ library support
15995 case $cc_basename in
15997 # Sun C++ 4.2, 5.x and Centerline C++
15998 no_undefined_flag_CXX=' -zdefs'
15999 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16000 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16001 $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'
16003 hardcode_libdir_flag_spec_CXX='-R$libdir'
16004 hardcode_shlibpath_var_CXX=no
16006 solaris2.0-5 | solaris2.0-5.*) ;;
16008 # The C++ compiler is used as linker so we must use $wl
16009 # flag to pass the commands to the underlying system
16011 # Supported since Solaris 2.6 (maybe 2.5.1?)
16012 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16015 link_all_deplibs_CXX=yes
16017 # Commands to make compiler produce verbose output that lists
16018 # what "hidden" libraries, object files and flags are used when
16019 # linking a shared library.
16021 # There doesn't appear to be a way to prevent this compiler from
16022 # explicitly linking system object files so we need to strip them
16023 # from the output so that they don't get included in the library
16025 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'
16027 # Archives containing C++ object files must be created using
16028 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16029 # necessary to make sure instantiated templates are included
16031 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16034 # Green Hills C++ Compiler
16035 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16037 # The C++ compiler must be used to create the archive.
16038 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16041 # GNU C++ compiler with Solaris linker
16042 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16043 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16044 if $CC --version | grep -v '^2\.7' > /dev/null; then
16045 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16046 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16047 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16049 # Commands to make compiler produce verbose output that lists
16050 # what "hidden" libraries, object files and flags are used when
16051 # linking a shared library.
16052 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16054 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16056 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16057 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16058 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16060 # Commands to make compiler produce verbose output that lists
16061 # what "hidden" libraries, object files and flags are used when
16062 # linking a shared library.
16063 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16066 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16071 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16072 archive_cmds_need_lc_CXX=no
16075 case $cc_basename in
16077 # NonStop-UX NCC 3.20
16078 # FIXME: insert proper C++ library support
16082 # FIXME: insert proper C++ library support
16088 # FIXME: insert proper C++ library support
16092 # FIXME: insert proper C++ library support
16096 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16097 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16098 test "$ld_shlibs_CXX" = no && can_build_shared=no
16104 cat > conftest.$ac_ext <<EOF
16108 Foo (void) { a = 0; }
16114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16115 (eval $ac_compile) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; then
16119 # Parse the compiler output and extract the necessary
16120 # objects, libraries and library flags.
16122 # Sentinel used to keep track of whether or not we are before
16123 # the conftest object file.
16124 pre_test_object_deps_done=no
16126 # The `*' in the case matches for architectures that use `case' in
16127 # $output_verbose_cmd can trigger glob expansion during the loop
16128 # eval without this substitution.
16129 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16131 for p in `eval $output_verbose_link_cmd`; do
16135 # Some compilers place space between "-{L,R}" and the path.
16136 # Remove the space.
16137 if test $p = "-L" \
16138 || test $p = "-R"; then
16145 if test "$pre_test_object_deps_done" = no; then
16148 # Internal compiler library paths should come after those
16149 # provided the user. The postdeps already come after the
16150 # user supplied libs so there is no need to process them.
16151 if test -z "$compiler_lib_search_path_CXX"; then
16152 compiler_lib_search_path_CXX="${prev}${p}"
16154 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16157 # The "-l" case would never come before the object being
16158 # linked, so don't bother handling this case.
16161 if test -z "$postdeps_CXX"; then
16162 postdeps_CXX="${prev}${p}"
16164 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16170 # This assumes that the test object file only shows up
16171 # once in the compiler output.
16172 if test "$p" = "conftest.$objext"; then
16173 pre_test_object_deps_done=yes
16177 if test "$pre_test_object_deps_done" = no; then
16178 if test -z "$predep_objects_CXX"; then
16179 predep_objects_CXX="$p"
16181 predep_objects_CXX="$predep_objects_CXX $p"
16184 if test -z "$postdep_objects_CXX"; then
16185 postdep_objects_CXX="$p"
16187 postdep_objects_CXX="$postdep_objects_CXX $p"
16192 *) ;; # Ignore the rest.
16200 echo "libtool.m4: error: problem compiling CXX test program"
16203 $rm -f confest.$objext
16205 case " $postdeps_CXX " in
16206 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16209 lt_prog_compiler_wl_CXX=
16210 lt_prog_compiler_pic_CXX=
16211 lt_prog_compiler_static_CXX=
16213 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16214 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16216 # C++ specific cases for pic, static, wl, etc.
16217 if test "$GXX" = yes; then
16218 lt_prog_compiler_wl_CXX='-Wl,'
16219 lt_prog_compiler_static_CXX='-static'
16223 # All AIX code is PIC.
16224 if test "$host_cpu" = ia64; then
16225 # AIX 5 now supports IA64 processor
16226 lt_prog_compiler_static_CXX='-Bstatic'
16230 # FIXME: we need at least 68020 code to build shared libraries, but
16231 # adding the `-m68020' flag to GCC prevents building anything better,
16233 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16235 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16236 # PIC is the default for these OSes.
16238 mingw* | os2* | pw32*)
16239 # This hack is so that the source file can tell whether it is being
16240 # built for inclusion in a dll (and should export symbols for example).
16241 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16243 darwin* | rhapsody*)
16244 # PIC is the default on this platform
16245 # Common symbols not allowed in MH_DYLIB files
16246 lt_prog_compiler_pic_CXX='-fno-common'
16249 # DJGPP does not support shared libraries at all
16250 lt_prog_compiler_pic_CXX=
16253 if test -d /usr/nec; then
16254 lt_prog_compiler_pic_CXX=-Kconform_pic
16258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16259 # not for PA HP-UX.
16260 case "$host_cpu" in
16264 lt_prog_compiler_pic_CXX='-fPIC'
16269 lt_prog_compiler_pic_CXX='-fPIC'
16275 # All AIX code is PIC.
16276 if test "$host_cpu" = ia64; then
16277 # AIX 5 now supports IA64 processor
16278 lt_prog_compiler_static_CXX='-Bstatic'
16280 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16284 case $cc_basename in
16286 # Green Hills C++ Compiler
16287 # _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"
16292 # PIC is the default on this platform
16293 # Common symbols not allowed in MH_DYLIB files
16294 case "$cc_basename" in
16296 lt_prog_compiler_pic_CXX='-qnocommon'
16297 lt_prog_compiler_wl_CXX='-Wl,'
16302 case $cc_basename in
16304 lt_prog_compiler_pic_CXX='-KPIC'
16307 # Green Hills C++ Compiler
16308 lt_prog_compiler_pic_CXX='-pic'
16314 freebsd* | kfreebsd*-gnu)
16315 # FreeBSD uses GNU C++
16317 hpux9* | hpux10* | hpux11*)
16318 case $cc_basename in
16320 lt_prog_compiler_wl_CXX='-Wl,'
16321 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16322 if test "$host_cpu" != ia64; then
16323 lt_prog_compiler_pic_CXX='+Z'
16327 lt_prog_compiler_wl_CXX='-Wl,'
16328 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16329 case "$host_cpu" in
16334 lt_prog_compiler_pic_CXX='+Z'
16342 irix5* | irix6* | nonstopux*)
16343 case $cc_basename in
16345 lt_prog_compiler_wl_CXX='-Wl,'
16346 lt_prog_compiler_static_CXX='-non_shared'
16347 # CC pic flag -KPIC is the default.
16354 case $cc_basename in
16357 lt_prog_compiler_wl_CXX='--backend -Wl,'
16358 lt_prog_compiler_pic_CXX='-fPIC'
16362 lt_prog_compiler_wl_CXX='-Wl,'
16363 lt_prog_compiler_pic_CXX='-KPIC'
16364 lt_prog_compiler_static_CXX='-static'
16368 # Make sure the PIC flag is empty. It appears that all Alpha
16369 # Linux and Compaq Tru64 Unix objects are PIC.
16370 lt_prog_compiler_pic_CXX=
16371 lt_prog_compiler_static_CXX='-non_shared'
16382 case $cc_basename in
16384 lt_prog_compiler_pic_CXX='-W c,exportall'
16392 osf3* | osf4* | osf5*)
16393 case $cc_basename in
16395 lt_prog_compiler_wl_CXX='--backend -Wl,'
16398 # Rational C++ 2.4.1
16399 lt_prog_compiler_pic_CXX='-pic'
16402 # Digital/Compaq C++
16403 lt_prog_compiler_wl_CXX='-Wl,'
16404 # Make sure the PIC flag is empty. It appears that all Alpha
16405 # Linux and Compaq Tru64 Unix objects are PIC.
16406 lt_prog_compiler_pic_CXX=
16407 lt_prog_compiler_static_CXX='-non_shared'
16416 case $cc_basename in
16418 lt_prog_compiler_pic_CXX='-fPIC'
16425 case $cc_basename in
16427 # Sun C++ 4.2, 5.x and Centerline C++
16428 lt_prog_compiler_pic_CXX='-KPIC'
16429 lt_prog_compiler_static_CXX='-Bstatic'
16430 lt_prog_compiler_wl_CXX='-Qoption ld '
16433 # Green Hills C++ Compiler
16434 lt_prog_compiler_pic_CXX='-PIC'
16441 case $cc_basename in
16444 lt_prog_compiler_pic_CXX='-pic'
16445 lt_prog_compiler_static_CXX='-Bstatic'
16449 lt_prog_compiler_pic_CXX='-pic'
16456 case $cc_basename in
16458 # NonStop-UX NCC 3.20
16459 lt_prog_compiler_pic_CXX='-KPIC'
16470 lt_prog_compiler_can_build_shared_CXX=no
16475 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16476 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16479 # Check to make sure the PIC flag actually works.
16481 if test -n "$lt_prog_compiler_pic_CXX"; then
16483 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16484 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16485 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 lt_prog_compiler_pic_works_CXX=no
16489 ac_outfile=conftest.$ac_objext
16490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16491 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16492 # Insert the option either (1) after the last *FLAGS variable, or
16493 # (2) before a word containing "conftest.", or (3) at the end.
16494 # Note that $ac_compile itself does not contain backslashes and begins
16495 # with a dollar sign (not a hyphen), so the echo should work correctly.
16496 # The option is referenced via a variable to avoid confusing sed.
16497 lt_compile=`echo "$ac_compile" | $SED \
16498 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16500 -e 's:$: $lt_compiler_flag:'`
16501 (eval echo "\"\$as_me:16501: $lt_compile\"" >&5)
16502 (eval "$lt_compile" 2>conftest.err)
16504 cat conftest.err >&5
16505 echo "$as_me:16505: \$? = $ac_status" >&5
16506 if (exit $ac_status) && test -s "$ac_outfile"; then
16507 # The compiler can only warn and ignore the option if not recognized
16508 # So say no if there are warnings
16509 if test ! -s conftest.err; then
16510 lt_prog_compiler_pic_works_CXX=yes
16516 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16517 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16519 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16520 case $lt_prog_compiler_pic_CXX in
16522 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16525 lt_prog_compiler_pic_CXX=
16526 lt_prog_compiler_can_build_shared_CXX=no
16531 # For platforms which do not support PIC, -DPIC is meaningless:
16533 lt_prog_compiler_pic_CXX=
16536 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16540 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16541 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16542 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 lt_cv_prog_compiler_c_o_CXX=no
16546 $rm -r conftest 2>/dev/null
16550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16552 lt_compiler_flag="-o out/conftest2.$ac_objext"
16553 # Insert the option either (1) after the last *FLAGS variable, or
16554 # (2) before a word containing "conftest.", or (3) at the end.
16555 # Note that $ac_compile itself does not contain backslashes and begins
16556 # with a dollar sign (not a hyphen), so the echo should work correctly.
16557 lt_compile=`echo "$ac_compile" | $SED \
16558 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16560 -e 's:$: $lt_compiler_flag:'`
16561 (eval echo "\"\$as_me:16561: $lt_compile\"" >&5)
16562 (eval "$lt_compile" 2>out/conftest.err)
16564 cat out/conftest.err >&5
16565 echo "$as_me:16565: \$? = $ac_status" >&5
16566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16568 # The compiler can only warn and ignore the option if not recognized
16569 # So say no if there are warnings
16570 if test ! -s out/conftest.err; then
16571 lt_cv_prog_compiler_c_o_CXX=yes
16576 # SGI C++ compiler will create directory out/ii_files/ for
16577 # template instantiation
16578 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16579 $rm out/* && rmdir out
16585 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16586 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16589 hard_links="nottested"
16590 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16591 # do not overwrite the value of need_locks provided by the user
16592 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16593 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16598 ln conftest.a conftest.b 2>&5 || hard_links=no
16599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16600 echo "$as_me:$LINENO: result: $hard_links" >&5
16601 echo "${ECHO_T}$hard_links" >&6
16602 if test "$hard_links" = no; then
16603 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16604 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16611 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16612 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16614 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16617 # If we're using GNU nm, then we don't want the "-C" option.
16618 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16619 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16620 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'
16622 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'
16626 export_symbols_cmds_CXX="$ltdll_cmds"
16629 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16632 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16636 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16637 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16638 test "$ld_shlibs_CXX" = no && can_build_shared=no
16640 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16641 if test "$GCC" = yes; then
16642 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16646 # Do we need to explicitly link libc?
16648 case "x$archive_cmds_need_lc_CXX" in
16650 # Assume -lc should be added
16651 archive_cmds_need_lc_CXX=yes
16653 if test "$enable_shared" = yes && test "$GCC" = yes; then
16654 case $archive_cmds_CXX in
16656 # FIXME: we may have to deal with multi-command sequences.
16659 # Test whether the compiler implicitly links with -lc since on some
16660 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16661 # to ld, don't add -lc before -lgcc.
16662 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16663 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16668 (eval $ac_compile) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } 2>conftest.err; then
16674 libobjs=conftest.$ac_objext
16676 wl=$lt_prog_compiler_wl_CXX
16682 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16683 allow_undefined_flag_CXX=
16684 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16685 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }
16690 archive_cmds_need_lc_CXX=no
16692 archive_cmds_need_lc_CXX=yes
16694 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16696 cat conftest.err 1>&5
16699 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16700 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16707 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16708 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16709 library_names_spec=
16710 libname_spec='lib$name'
16714 postuninstall_cmds=
16718 shlibpath_overrides_runpath=unknown
16720 dynamic_linker="$host_os ld.so"
16721 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16722 if test "$GCC" = yes; then
16723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16724 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16725 # if the path contains ";" then we assume it to be the separator
16726 # otherwise default to the standard path separator (i.e. ":") - it is
16727 # assumed that no part of a normal pathname contains ";" but that should
16728 # okay in the real world where ";" in dirpaths is itself problematic.
16729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16736 need_lib_prefix=unknown
16737 hardcode_into_libs=no
16739 # when you set need_version to no, make sure it does not cause -set_version
16740 # flags to be left without arguments
16741 need_version=unknown
16746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16747 shlibpath_var=LIBPATH
16749 # AIX 3 has no versioning support, so we append a major version to the name.
16750 soname_spec='${libname}${release}${shared_ext}$major'
16757 hardcode_into_libs=yes
16758 if test "$host_cpu" = ia64; then
16759 # AIX 5 supports IA64
16760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16761 shlibpath_var=LD_LIBRARY_PATH
16763 # With GCC up to 2.95.x, collect2 would create an import file
16764 # for dependence libraries. The import file would start with
16765 # the line `#! .'. This would cause the generated library to
16766 # depend on `.', always an invalid library. This was fixed in
16767 # development snapshots of GCC prior to 3.0.
16769 aix4 | aix4.[01] | aix4.[01].*)
16770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16772 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16775 can_build_shared=no
16779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16780 # soname into executable. Probably we can add versioning support to
16781 # collect2, so additional links can be useful in future.
16782 if test "$aix_use_runtimelinking" = yes; then
16783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16784 # instead of lib<name>.a to let people know that these are not
16785 # typical AIX shared libraries.
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 # We preserve .a as extension for shared libraries through AIX4.2
16789 # and later when we are not doing run time linking.
16790 library_names_spec='${libname}${release}.a $libname.a'
16791 soname_spec='${libname}${release}${shared_ext}$major'
16793 shlibpath_var=LIBPATH
16798 library_names_spec='$libname.ixlibrary $libname.a'
16799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16800 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'
16804 library_names_spec='${libname}${shared_ext}'
16805 dynamic_linker="$host_os ld.so"
16806 shlibpath_var=LIBRARY_PATH
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16815 shlibpath_var=LD_LIBRARY_PATH
16816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16818 # the default ld.so.conf also contains /usr/contrib/lib and
16819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16820 # libtool to hard-code these into programs
16823 cygwin* | mingw* | pw32*)
16824 version_type=windows
16829 case $GCC,$host_os in
16830 yes,cygwin* | yes,mingw* | yes,pw32*)
16831 library_names_spec='$libname.dll.a'
16832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16833 postinstall_cmds='base_file=`basename \${file}`~
16834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16835 dldir=$destdir/`dirname \$dlpath`~
16836 test -d \$dldir || mkdir -p \$dldir~
16837 $install_prog $dir/$dlname \$dldir/$dlname'
16838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16839 dlpath=$dir/\$dldll~
16841 shlibpath_overrides_runpath=yes
16845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16846 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16847 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16850 # MinGW DLLs use traditional 'lib' prefix
16851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16852 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16853 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16854 # It is most probably a Windows format PATH printed by
16855 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16856 # path with ; separators, and with drive letters. We can handle the
16857 # drive letters (cygwin fileutils understands them), so leave them,
16858 # especially as we might pass files found there to a mingw objdump,
16859 # which wouldn't understand a cygwinified path. Ahh.
16860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16866 # pw32 DLLs use 'pw' prefix rather than 'lib'
16867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16876 dynamic_linker='Win32 ld.exe'
16877 # FIXME: first we should search . and the directory the executable is in
16881 darwin* | rhapsody*)
16882 dynamic_linker="$host_os dyld"
16883 version_type=darwin
16886 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16887 soname_spec='${libname}${release}${major}$shared_ext'
16888 shlibpath_overrides_runpath=yes
16889 shlibpath_var=DYLD_LIBRARY_PATH
16890 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16891 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16892 if test "$GCC" = yes; then
16893 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"`
16895 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16905 soname_spec='${libname}${release}${shared_ext}$major'
16906 shlibpath_var=LD_LIBRARY_PATH
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 shlibpath_var=LD_LIBRARY_PATH
16920 shlibpath_overrides_runpath=no
16921 hardcode_into_libs=yes
16922 dynamic_linker='GNU ld.so'
16926 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16927 version_type=freebsd-$objformat
16928 case $version_type in
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16939 shlibpath_var=LD_LIBRARY_PATH
16942 shlibpath_overrides_runpath=yes
16944 freebsd3.01* | freebsdelf3.01*)
16945 shlibpath_overrides_runpath=yes
16946 hardcode_into_libs=yes
16949 shlibpath_overrides_runpath=no
16950 hardcode_into_libs=yes
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16960 soname_spec='${libname}${release}${shared_ext}$major'
16961 shlibpath_var=LD_LIBRARY_PATH
16962 hardcode_into_libs=yes
16965 hpux9* | hpux10* | hpux11*)
16966 # Give a soname corresponding to the major version so that dld.sl refuses to
16967 # link against other versions.
16971 case "$host_cpu" in
16974 hardcode_into_libs=yes
16975 dynamic_linker="$host_os dld.so"
16976 shlibpath_var=LD_LIBRARY_PATH
16977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16979 soname_spec='${libname}${release}${shared_ext}$major'
16980 if test "X$HPUX_IA64_MODE" = X32; then
16981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16989 hardcode_into_libs=yes
16990 dynamic_linker="$host_os dld.sl"
16991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16994 soname_spec='${libname}${release}${shared_ext}$major'
16995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17000 dynamic_linker="$host_os dld.sl"
17001 shlibpath_var=SHLIB_PATH
17002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17007 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17008 postinstall_cmds='chmod 555 $lib'
17011 irix5* | irix6* | nonstopux*)
17013 nonstopux*) version_type=nonstopux ;;
17015 if test "$lt_cv_prog_gnu_ld" = yes; then
17023 soname_spec='${libname}${release}${shared_ext}$major'
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17026 irix5* | nonstopux*)
17027 libsuff= shlibsuff=
17030 case $LD in # libtool.m4 will add one of these switches to LD
17031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17032 libsuff= shlibsuff= libmagic=32-bit;;
17033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17034 libsuff=32 shlibsuff=N32 libmagic=N32;;
17035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17036 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17037 *) libsuff= shlibsuff= libmagic=never-match;;
17041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17042 shlibpath_overrides_runpath=no
17043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17045 hardcode_into_libs=yes
17048 # No shared lib support for Linux oldld, aout, or coff.
17049 linux*oldld* | linux*aout* | linux*coff*)
17053 # This must be Linux ELF.
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17061 shlibpath_var=LD_LIBRARY_PATH
17062 shlibpath_overrides_runpath=no
17063 # This implies no fast_install, which is unacceptable.
17064 # Some rework will be needed to allow for fast_install
17065 # before this can be enabled.
17066 hardcode_into_libs=yes
17068 # Append ld.so.conf contents to the search path
17069 if test -f /etc/ld.so.conf; then
17070 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17071 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17074 # We used to test for /lib/ld.so.1 and disable shared libraries on
17075 # powerpc, because MkLinux only supported shared libraries with the
17076 # GNU dynamic linker. Since this was broken with cross compilers,
17077 # most powerpc-linux boxes support dynamic linking these days and
17078 # people can always --disable-shared, the test was removed, and we
17079 # assume the GNU/Linux dynamic linker is in use.
17080 dynamic_linker='GNU/Linux ld.so'
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 shlibpath_overrides_runpath=no
17091 hardcode_into_libs=yes
17092 dynamic_linker='GNU ld.so'
17099 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17102 dynamic_linker='NetBSD (a.out) ld.so'
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17105 soname_spec='${libname}${release}${shared_ext}$major'
17106 dynamic_linker='NetBSD ld.elf_so'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 shlibpath_overrides_runpath=yes
17110 hardcode_into_libs=yes
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17116 shlibpath_var=LD_LIBRARY_PATH
17117 shlibpath_overrides_runpath=yes
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 shlibpath_overrides_runpath=yes
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17139 openbsd2.[89] | openbsd2.[89].*)
17140 shlibpath_overrides_runpath=no
17143 shlibpath_overrides_runpath=yes
17147 shlibpath_overrides_runpath=yes
17152 libname_spec='$name'
17155 library_names_spec='$libname${shared_ext} $libname.a'
17156 dynamic_linker='OS/2 ld.exe'
17157 shlibpath_var=LIBPATH
17160 osf3* | osf4* | osf5*)
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166 shlibpath_var=LD_LIBRARY_PATH
17167 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17168 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17173 soname_spec='${libname}${release}${shared_ext}$major'
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17175 shlibpath_var=LD_LIBRARY_PATH
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 shlibpath_overrides_runpath=yes
17186 hardcode_into_libs=yes
17187 # ldd complains unless libraries are executable
17188 postinstall_cmds='chmod +x $lib'
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17195 shlibpath_var=LD_LIBRARY_PATH
17196 shlibpath_overrides_runpath=yes
17197 if test "$with_gnu_ld" = yes; then
17203 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 shlibpath_var=LD_LIBRARY_PATH
17208 case $host_vendor in
17210 shlibpath_overrides_runpath=no
17212 export_dynamic_flag_spec='${wl}-Blargedynsym'
17213 runpath_var=LD_RUN_PATH
17221 shlibpath_overrides_runpath=no
17222 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17228 if test -d /usr/nec ;then
17230 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17231 soname_spec='$libname${shared_ext}.$major'
17232 shlibpath_var=LD_LIBRARY_PATH
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 shlibpath_var=LD_LIBRARY_PATH
17247 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17248 echo "${ECHO_T}$dynamic_linker" >&6
17249 test "$dynamic_linker" = no && can_build_shared=no
17251 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17252 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17253 hardcode_action_CXX=
17254 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17255 test -n "$runpath_var_CXX" || \
17256 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17258 # We can hardcode non-existant directories.
17259 if test "$hardcode_direct_CXX" != no &&
17260 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17261 # have to relink, otherwise we might link with an installed library
17262 # when we should be linking with a yet-to-be-installed one
17263 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17264 test "$hardcode_minus_L_CXX" != no; then
17265 # Linking always hardcodes the temporary library directory.
17266 hardcode_action_CXX=relink
17268 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17269 hardcode_action_CXX=immediate
17272 # We cannot hardcode anything, or else we can only hardcode existing
17274 hardcode_action_CXX=unsupported
17276 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17277 echo "${ECHO_T}$hardcode_action_CXX" >&6
17279 if test "$hardcode_action_CXX" = relink; then
17280 # Fast installation is not supported
17281 enable_fast_install=no
17282 elif test "$shlibpath_overrides_runpath" = yes ||
17283 test "$enable_shared" = no; then
17284 # Fast installation is not necessary
17285 enable_fast_install=needless
17290 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17291 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17292 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17293 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17294 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17295 echo "$as_me:$LINENO: result: yes" >&5
17296 echo "${ECHO_T}yes" >&6
17298 # FIXME - insert some real tests, host_os isn't really good enough
17301 if test -n "$STRIP" ; then
17302 striplib="$STRIP -x"
17303 echo "$as_me:$LINENO: result: yes" >&5
17304 echo "${ECHO_T}yes" >&6
17306 echo "$as_me:$LINENO: result: no" >&5
17307 echo "${ECHO_T}no" >&6
17311 echo "$as_me:$LINENO: result: no" >&5
17312 echo "${ECHO_T}no" >&6
17317 if test "x$enable_dlopen" != xyes; then
17318 enable_dlopen=unknown
17319 enable_dlopen_self=unknown
17320 enable_dlopen_self_static=unknown
17327 lt_cv_dlopen="load_add_on"
17329 lt_cv_dlopen_self=yes
17333 lt_cv_dlopen="LoadLibrary"
17338 lt_cv_dlopen="dlopen"
17343 # if libdl is installed we need to link against it
17344 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17345 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 ac_check_lib_save_LIBS=$LIBS
17351 cat >conftest.$ac_ext <<_ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17358 /* Override any gcc2 internal prototype to avoid an error. */
17362 /* We use char because int might match the return type of a gcc2
17363 builtin and then its argument prototype would still apply. */
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17375 (eval $ac_link) 2>conftest.er1
17377 grep -v '^ *+' conftest.er1 >conftest.err
17379 cat conftest.err >&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
17382 { ac_try='test -z "$ac_cxx_werror_flag"
17383 || test ! -s conftest.err'
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 ac_cv_lib_dl_dlopen=yes
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 ac_cv_lib_dl_dlopen=no
17402 rm -f conftest.err conftest.$ac_objext \
17403 conftest$ac_exeext conftest.$ac_ext
17404 LIBS=$ac_check_lib_save_LIBS
17406 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17407 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17408 if test $ac_cv_lib_dl_dlopen = yes; then
17409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17412 lt_cv_dlopen="dyld"
17414 lt_cv_dlopen_self=yes
17421 echo "$as_me:$LINENO: checking for shl_load" >&5
17422 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17423 if test "${ac_cv_func_shl_load+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17426 cat >conftest.$ac_ext <<_ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17432 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17434 #define shl_load innocuous_shl_load
17436 /* System header to define __stub macros and hopefully few prototypes,
17437 which can conflict with char shl_load (); below.
17438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17439 <limits.h> exists even on freestanding compilers. */
17442 # include <limits.h>
17444 # include <assert.h>
17449 /* Override any gcc2 internal prototype to avoid an error. */
17454 /* We use char because int might match the return type of a gcc2
17455 builtin and then its argument prototype would still apply. */
17457 /* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
17460 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17463 char (*f) () = shl_load;
17472 return f != shl_load;
17477 rm -f conftest.$ac_objext conftest$ac_exeext
17478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17479 (eval $ac_link) 2>conftest.er1
17481 grep -v '^ *+' conftest.er1 >conftest.err
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_cxx_werror_flag"
17487 || test ! -s conftest.err'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest$ac_exeext'
17494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495 (eval $ac_try) 2>&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 ac_cv_func_shl_load=yes
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 ac_cv_func_shl_load=no
17506 rm -f conftest.err conftest.$ac_objext \
17507 conftest$ac_exeext conftest.$ac_ext
17509 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17510 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17511 if test $ac_cv_func_shl_load = yes; then
17512 lt_cv_dlopen="shl_load"
17514 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17515 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17516 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 ac_check_lib_save_LIBS=$LIBS
17521 cat >conftest.$ac_ext <<_ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17528 /* Override any gcc2 internal prototype to avoid an error. */
17532 /* We use char because int might match the return type of a gcc2
17533 builtin and then its argument prototype would still apply. */
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17545 (eval $ac_link) 2>conftest.er1
17547 grep -v '^ *+' conftest.er1 >conftest.err
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_cxx_werror_flag"
17553 || test ! -s conftest.err'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest$ac_exeext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_lib_dld_shl_load=yes
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_cv_lib_dld_shl_load=no
17572 rm -f conftest.err conftest.$ac_objext \
17573 conftest$ac_exeext conftest.$ac_ext
17574 LIBS=$ac_check_lib_save_LIBS
17576 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17577 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17578 if test $ac_cv_lib_dld_shl_load = yes; then
17579 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17581 echo "$as_me:$LINENO: checking for dlopen" >&5
17582 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17583 if test "${ac_cv_func_dlopen+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 cat >conftest.$ac_ext <<_ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17594 #define dlopen innocuous_dlopen
17596 /* System header to define __stub macros and hopefully few prototypes,
17597 which can conflict with char dlopen (); below.
17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599 <limits.h> exists even on freestanding compilers. */
17602 # include <limits.h>
17604 # include <assert.h>
17609 /* Override any gcc2 internal prototype to avoid an error. */
17614 /* We use char because int might match the return type of a gcc2
17615 builtin and then its argument prototype would still apply. */
17617 /* The GNU C library defines this for functions which it implements
17618 to always fail with ENOSYS. Some functions are actually named
17619 something starting with __ and the normal name is an alias. */
17620 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17623 char (*f) () = dlopen;
17632 return f != dlopen;
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>conftest.er1
17641 grep -v '^ *+' conftest.er1 >conftest.err
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_cxx_werror_flag"
17647 || test ! -s conftest.err'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest$ac_exeext'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 ac_cv_func_dlopen=yes
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 ac_cv_func_dlopen=no
17666 rm -f conftest.err conftest.$ac_objext \
17667 conftest$ac_exeext conftest.$ac_ext
17669 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17670 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17671 if test $ac_cv_func_dlopen = yes; then
17672 lt_cv_dlopen="dlopen"
17674 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17675 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17676 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 ac_check_lib_save_LIBS=$LIBS
17681 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17688 /* Override any gcc2 internal prototype to avoid an error. */
17692 /* We use char because int might match the return type of a gcc2
17693 builtin and then its argument prototype would still apply. */
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17705 (eval $ac_link) 2>conftest.er1
17707 grep -v '^ *+' conftest.er1 >conftest.err
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_cxx_werror_flag"
17713 || test ! -s conftest.err'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_lib_dl_dlopen=yes
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 ac_cv_lib_dl_dlopen=no
17732 rm -f conftest.err conftest.$ac_objext \
17733 conftest$ac_exeext conftest.$ac_ext
17734 LIBS=$ac_check_lib_save_LIBS
17736 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17737 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17738 if test $ac_cv_lib_dl_dlopen = yes; then
17739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17741 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17742 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17743 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 ac_check_lib_save_LIBS=$LIBS
17747 LIBS="-lsvld $LIBS"
17748 cat >conftest.$ac_ext <<_ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h. */
17755 /* Override any gcc2 internal prototype to avoid an error. */
17759 /* We use char because int might match the return type of a gcc2
17760 builtin and then its argument prototype would still apply. */
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17772 (eval $ac_link) 2>conftest.er1
17774 grep -v '^ *+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try='test -z "$ac_cxx_werror_flag"
17780 || test ! -s conftest.err'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; } &&
17786 { ac_try='test -s conftest$ac_exeext'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17792 ac_cv_lib_svld_dlopen=yes
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17797 ac_cv_lib_svld_dlopen=no
17799 rm -f conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
17801 LIBS=$ac_check_lib_save_LIBS
17803 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17804 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17805 if test $ac_cv_lib_svld_dlopen = yes; then
17806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17808 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17809 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17810 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 ac_check_lib_save_LIBS=$LIBS
17815 cat >conftest.$ac_ext <<_ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17822 /* Override any gcc2 internal prototype to avoid an error. */
17826 /* We use char because int might match the return type of a gcc2
17827 builtin and then its argument prototype would still apply. */
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839 (eval $ac_link) 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_cxx_werror_flag"
17847 || test ! -s conftest.err'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; } &&
17853 { ac_try='test -s conftest$ac_exeext'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; }; then
17859 ac_cv_lib_dld_dld_link=yes
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_cv_lib_dld_dld_link=no
17866 rm -f conftest.err conftest.$ac_objext \
17867 conftest$ac_exeext conftest.$ac_ext
17868 LIBS=$ac_check_lib_save_LIBS
17870 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17871 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17872 if test $ac_cv_lib_dld_dld_link = yes; then
17873 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17894 if test "x$lt_cv_dlopen" != xno; then
17900 case $lt_cv_dlopen in
17902 save_CPPFLAGS="$CPPFLAGS"
17903 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17905 save_LDFLAGS="$LDFLAGS"
17906 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17909 LIBS="$lt_cv_dlopen_libs $LIBS"
17911 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17912 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17913 if test "${lt_cv_dlopen_self+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 if test "$cross_compiling" = yes; then :
17917 lt_cv_dlopen_self=cross
17919 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17920 lt_status=$lt_dlunknown
17921 cat > conftest.$ac_ext <<EOF
17922 #line 17922 "configure"
17923 #include "confdefs.h"
17932 # define LT_DLGLOBAL RTLD_GLOBAL
17935 # define LT_DLGLOBAL DL_GLOBAL
17937 # define LT_DLGLOBAL 0
17941 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17942 find out it does not work in some platform. */
17943 #ifndef LT_DLLAZY_OR_NOW
17945 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17948 # define LT_DLLAZY_OR_NOW DL_LAZY
17951 # define LT_DLLAZY_OR_NOW RTLD_NOW
17954 # define LT_DLLAZY_OR_NOW DL_NOW
17956 # define LT_DLLAZY_OR_NOW 0
17964 extern "C" void exit (int);
17967 void fnord() { int i=42;}
17970 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17971 int status = $lt_dlunknown;
17975 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17976 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17977 /* dlclose (self); */
17983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17984 (eval $ac_link) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17988 (./conftest; exit; ) 2>/dev/null
17990 case x$lt_status in
17991 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17992 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17993 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17996 # compilation failed
17997 lt_cv_dlopen_self=no
18004 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18005 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18007 if test "x$lt_cv_dlopen_self" = xyes; then
18008 LDFLAGS="$LDFLAGS $link_static_flag"
18009 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18010 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18011 if test "${lt_cv_dlopen_self_static+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 if test "$cross_compiling" = yes; then :
18015 lt_cv_dlopen_self_static=cross
18017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18018 lt_status=$lt_dlunknown
18019 cat > conftest.$ac_ext <<EOF
18020 #line 18020 "configure"
18021 #include "confdefs.h"
18030 # define LT_DLGLOBAL RTLD_GLOBAL
18033 # define LT_DLGLOBAL DL_GLOBAL
18035 # define LT_DLGLOBAL 0
18039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18040 find out it does not work in some platform. */
18041 #ifndef LT_DLLAZY_OR_NOW
18043 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18046 # define LT_DLLAZY_OR_NOW DL_LAZY
18049 # define LT_DLLAZY_OR_NOW RTLD_NOW
18052 # define LT_DLLAZY_OR_NOW DL_NOW
18054 # define LT_DLLAZY_OR_NOW 0
18062 extern "C" void exit (int);
18065 void fnord() { int i=42;}
18068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18069 int status = $lt_dlunknown;
18073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18074 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18075 /* dlclose (self); */
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082 (eval $ac_link) 2>&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18086 (./conftest; exit; ) 2>/dev/null
18088 case x$lt_status in
18089 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18090 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18091 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18094 # compilation failed
18095 lt_cv_dlopen_self_static=no
18102 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18103 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18106 CPPFLAGS="$save_CPPFLAGS"
18107 LDFLAGS="$save_LDFLAGS"
18112 case $lt_cv_dlopen_self in
18113 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18114 *) enable_dlopen_self=unknown ;;
18117 case $lt_cv_dlopen_self_static in
18118 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18119 *) enable_dlopen_self_static=unknown ;;
18124 # The else clause should only fire when bootstrapping the
18125 # libtool distribution, otherwise you forgot to ship ltmain.sh
18126 # with your package, and you will get complaints that there are
18127 # no rules to generate ltmain.sh.
18128 if test -f "$ltmain"; then
18129 # See if we are running on zsh, and set the options which allow our commands through
18130 # without removal of \ escapes.
18131 if test -n "${ZSH_VERSION+set}" ; then
18132 setopt NO_GLOB_SUBST
18134 # Now quote all the things that may contain metacharacters while being
18135 # careful not to overquote the AC_SUBSTed values. We take copies of the
18136 # variables and quote the copies for generation of the libtool script.
18137 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18139 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18140 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18141 deplibs_check_method reload_flag reload_cmds need_locks \
18142 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18143 lt_cv_sys_global_symbol_to_c_name_address \
18144 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18145 old_postinstall_cmds old_postuninstall_cmds \
18149 lt_prog_compiler_wl_CXX \
18150 lt_prog_compiler_pic_CXX \
18151 lt_prog_compiler_static_CXX \
18152 lt_prog_compiler_no_builtin_flag_CXX \
18153 export_dynamic_flag_spec_CXX \
18154 thread_safe_flag_spec_CXX \
18155 whole_archive_flag_spec_CXX \
18156 enable_shared_with_static_runtimes_CXX \
18157 old_archive_cmds_CXX \
18158 old_archive_from_new_cmds_CXX \
18159 predep_objects_CXX \
18160 postdep_objects_CXX \
18163 compiler_lib_search_path_CXX \
18165 archive_expsym_cmds_CXX \
18166 postinstall_cmds_CXX \
18167 postuninstall_cmds_CXX \
18168 old_archive_from_expsyms_cmds_CXX \
18169 allow_undefined_flag_CXX \
18170 no_undefined_flag_CXX \
18171 export_symbols_cmds_CXX \
18172 hardcode_libdir_flag_spec_CXX \
18173 hardcode_libdir_flag_spec_ld_CXX \
18174 hardcode_libdir_separator_CXX \
18175 hardcode_automatic_CXX \
18177 module_expsym_cmds_CXX \
18178 lt_cv_prog_compiler_c_o_CXX \
18179 exclude_expsyms_CXX \
18180 include_expsyms_CXX; do
18183 old_archive_cmds_CXX | \
18184 old_archive_from_new_cmds_CXX | \
18185 archive_cmds_CXX | \
18186 archive_expsym_cmds_CXX | \
18187 module_cmds_CXX | \
18188 module_expsym_cmds_CXX | \
18189 old_archive_from_expsyms_cmds_CXX | \
18190 export_symbols_cmds_CXX | \
18191 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18192 postinstall_cmds | postuninstall_cmds | \
18193 old_postinstall_cmds | old_postuninstall_cmds | \
18194 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18195 # Double-quote double-evaled strings.
18196 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18199 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18205 *'\$0 --fallback-echo"')
18206 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18212 cat <<__EOF__ >> "$cfgfile"
18213 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18215 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18217 # Shell to use when invoking shell scripts.
18220 # Whether or not to build shared libraries.
18221 build_libtool_libs=$enable_shared
18223 # Whether or not to build static libraries.
18224 build_old_libs=$enable_static
18226 # Whether or not to add -lc for building shared libraries.
18227 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18229 # Whether or not to disallow shared libs when runtime libs are static
18230 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18232 # Whether or not to optimize for fast installation.
18233 fast_install=$enable_fast_install
18236 host_alias=$host_alias
18239 # An echo program that does not interpret backslashes.
18244 AR_FLAGS=$lt_AR_FLAGS
18249 # A language-specific compiler.
18250 CC=$lt_compiler_CXX
18252 # Is the compiler the GNU C compiler?
18258 # The linker used to build libraries.
18261 # Whether we need hard or soft links.
18264 # A BSD-compatible nm program.
18267 # A symbol stripping program
18270 # Used to examine libraries when file_magic_cmd begins "file"
18271 MAGIC_CMD=$MAGIC_CMD
18273 # Used on cygwin: DLL creation program.
18276 # Used on cygwin: object dumper.
18279 # Used on cygwin: assembler.
18282 # The name of the directory that contains temporary libtool files.
18285 # How to create reloadable object files.
18286 reload_flag=$lt_reload_flag
18287 reload_cmds=$lt_reload_cmds
18289 # How to pass a linker flag through the compiler.
18290 wl=$lt_lt_prog_compiler_wl_CXX
18292 # Object file suffix (normally "o").
18293 objext="$ac_objext"
18295 # Old archive suffix (normally "a").
18298 # Shared library suffix (normally ".so").
18299 shrext_cmds='$shrext_cmds'
18301 # Executable file suffix (normally "").
18304 # Additional compiler flags for building library objects.
18305 pic_flag=$lt_lt_prog_compiler_pic_CXX
18308 # What is the maximum length of a command?
18309 max_cmd_len=$lt_cv_sys_max_cmd_len
18311 # Does compiler simultaneously support -c and -o options?
18312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18314 # Must we lock files when doing compilation ?
18315 need_locks=$lt_need_locks
18317 # Do we need the lib prefix for modules?
18318 need_lib_prefix=$need_lib_prefix
18320 # Do we need a version for libraries?
18321 need_version=$need_version
18323 # Whether dlopen is supported.
18324 dlopen_support=$enable_dlopen
18326 # Whether dlopen of programs is supported.
18327 dlopen_self=$enable_dlopen_self
18329 # Whether dlopen of statically linked programs is supported.
18330 dlopen_self_static=$enable_dlopen_self_static
18332 # Compiler flag to prevent dynamic linking.
18333 link_static_flag=$lt_lt_prog_compiler_static_CXX
18335 # Compiler flag to turn off builtin functions.
18336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18338 # Compiler flag to allow reflexive dlopens.
18339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18341 # Compiler flag to generate shared objects directly from archives.
18342 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18344 # Compiler flag to generate thread-safe objects.
18345 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18347 # Library versioning type.
18348 version_type=$version_type
18350 # Format of library name prefix.
18351 libname_spec=$lt_libname_spec
18353 # List of archive names. First name is the real one, the rest are links.
18354 # The last name is the one that the linker finds with -lNAME.
18355 library_names_spec=$lt_library_names_spec
18357 # The coded name of the library, if different from the real name.
18358 soname_spec=$lt_soname_spec
18360 # Commands used to build and install an old-style archive.
18362 old_archive_cmds=$lt_old_archive_cmds_CXX
18363 old_postinstall_cmds=$lt_old_postinstall_cmds
18364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18366 # Create an old-style archive from a shared archive.
18367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18369 # Create a temporary old-style archive to link instead of a shared archive.
18370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18372 # Commands used to build and install a shared archive.
18373 archive_cmds=$lt_archive_cmds_CXX
18374 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18375 postinstall_cmds=$lt_postinstall_cmds
18376 postuninstall_cmds=$lt_postuninstall_cmds
18378 # Commands used to build a loadable module (assumed same as above if empty)
18379 module_cmds=$lt_module_cmds_CXX
18380 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18382 # Commands to strip libraries.
18383 old_striplib=$lt_old_striplib
18384 striplib=$lt_striplib
18386 # Dependencies to place before the objects being linked to create a
18388 predep_objects=$lt_predep_objects_CXX
18390 # Dependencies to place after the objects being linked to create a
18392 postdep_objects=$lt_postdep_objects_CXX
18394 # Dependencies to place before the objects being linked to create a
18396 predeps=$lt_predeps_CXX
18398 # Dependencies to place after the objects being linked to create a
18400 postdeps=$lt_postdeps_CXX
18402 # The library search path used internally by the compiler when linking
18403 # a shared library.
18404 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18406 # Method to check whether dependent libraries are shared objects.
18407 deplibs_check_method=$lt_deplibs_check_method
18409 # Command to use when deplibs_check_method == file_magic.
18410 file_magic_cmd=$lt_file_magic_cmd
18412 # Flag that allows shared libraries with undefined symbols to be built.
18413 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18415 # Flag that forces no undefined symbols.
18416 no_undefined_flag=$lt_no_undefined_flag_CXX
18418 # Commands used to finish a libtool library installation in a directory.
18419 finish_cmds=$lt_finish_cmds
18421 # Same as above, but a single script fragment to be evaled but not shown.
18422 finish_eval=$lt_finish_eval
18424 # Take the output of nm and produce a listing of raw symbols and C names.
18425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18427 # Transform the output of nm in a proper C declaration
18428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18430 # Transform the output of nm in a C name address pair
18431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18433 # This is the shared library runtime path variable.
18434 runpath_var=$runpath_var
18436 # This is the shared library path variable.
18437 shlibpath_var=$shlibpath_var
18439 # Is shlibpath searched before the hard-coded library search path?
18440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18442 # How to hardcode a shared library path into an executable.
18443 hardcode_action=$hardcode_action_CXX
18445 # Whether we should hardcode library paths into libraries.
18446 hardcode_into_libs=$hardcode_into_libs
18448 # Flag to hardcode \$libdir into a binary during linking.
18449 # This must work even if \$libdir does not exist.
18450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18452 # If ld is used when linking, flag to hardcode \$libdir into
18453 # a binary during linking. This must work even if \$libdir does
18455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18457 # Whether we need a single -rpath flag with a separated argument.
18458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18460 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18461 # resulting binary.
18462 hardcode_direct=$hardcode_direct_CXX
18464 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18465 # resulting binary.
18466 hardcode_minus_L=$hardcode_minus_L_CXX
18468 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18469 # the resulting binary.
18470 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18472 # Set to yes if building a shared library automatically hardcodes DIR into the library
18473 # and all subsequent libraries and executables linked against it.
18474 hardcode_automatic=$hardcode_automatic_CXX
18476 # Variables whose values should be saved in libtool wrapper scripts and
18477 # restored at relink time.
18478 variables_saved_for_relink="$variables_saved_for_relink"
18480 # Whether libtool must link a program against all its dependency libraries.
18481 link_all_deplibs=$link_all_deplibs_CXX
18483 # Compile-time system search path for libraries
18484 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18486 # Run-time system search path for libraries
18487 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18489 # Fix the shell variable \$srcfile for the compiler.
18490 fix_srcfile_path="$fix_srcfile_path_CXX"
18492 # Set to yes if exported symbols are required.
18493 always_export_symbols=$always_export_symbols_CXX
18495 # The commands to list exported symbols.
18496 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18498 # The commands to extract the exported symbol list from a shared archive.
18499 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18501 # Symbols that should not be listed in the preloaded symbols.
18502 exclude_expsyms=$lt_exclude_expsyms_CXX
18504 # Symbols that must always be exported.
18505 include_expsyms=$lt_include_expsyms_CXX
18507 # ### END LIBTOOL TAG CONFIG: $tagname
18513 # If there is no Makefile yet, we rely on a make rule to execute
18514 # `config.status --recheck' to rerun these tests and create the
18515 # libtool script then.
18516 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18517 if test -f "$ltmain_in"; then
18518 test -f Makefile && make "$ltmain"
18524 ac_cpp='$CPP $CPPFLAGS'
18525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18533 with_gnu_ldcxx=$with_gnu_ld
18534 with_gnu_ld=$lt_save_with_gnu_ld
18535 lt_cv_path_LDCXX=$lt_cv_path_LD
18536 lt_cv_path_LD=$lt_save_path_LD
18537 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18538 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18546 if test -n "$F77" && test "X$F77" != "Xno"; then
18549 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18550 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18551 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18554 archive_cmds_need_lc_F77=no
18555 allow_undefined_flag_F77=
18556 always_export_symbols_F77=no
18557 archive_expsym_cmds_F77=
18558 export_dynamic_flag_spec_F77=
18559 hardcode_direct_F77=no
18560 hardcode_libdir_flag_spec_F77=
18561 hardcode_libdir_flag_spec_ld_F77=
18562 hardcode_libdir_separator_F77=
18563 hardcode_minus_L_F77=no
18564 hardcode_automatic_F77=no
18566 module_expsym_cmds_F77=
18567 link_all_deplibs_F77=unknown
18568 old_archive_cmds_F77=$old_archive_cmds
18569 no_undefined_flag_F77=
18570 whole_archive_flag_spec_F77=
18571 enable_shared_with_static_runtimes_F77=no
18573 # Source file extension for f77 test sources.
18576 # Object file extension for compiled f77 test sources.
18580 # Code to be used in simple compile tests
18581 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18583 # Code to be used in simple link tests
18584 lt_simple_link_test_code=" program t\n end\n"
18586 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18588 # If no C compiler was specified, use CC.
18591 # Allow CC to be a program name with arguments.
18595 # Allow CC to be a program name with arguments.
18600 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18602 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18603 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18604 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18605 echo "${ECHO_T}$can_build_shared" >&6
18607 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18608 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18609 test "$can_build_shared" = "no" && enable_shared=no
18611 # On AIX, shared libraries and static libraries use the same namespace, and
18612 # are all built from PIC.
18615 test "$enable_shared" = yes && enable_static=no
18616 if test -n "$RANLIB"; then
18617 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18618 postinstall_cmds='$RANLIB $lib'
18622 test "$enable_shared" = yes && enable_static=no
18625 echo "$as_me:$LINENO: result: $enable_shared" >&5
18626 echo "${ECHO_T}$enable_shared" >&6
18628 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18629 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18630 # Make sure either enable_shared or enable_static is yes.
18631 test "$enable_shared" = yes || enable_static=yes
18632 echo "$as_me:$LINENO: result: $enable_static" >&5
18633 echo "${ECHO_T}$enable_static" >&6
18635 test "$ld_shlibs_F77" = no && can_build_shared=no
18640 lt_prog_compiler_wl_F77=
18641 lt_prog_compiler_pic_F77=
18642 lt_prog_compiler_static_F77=
18644 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18645 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18647 if test "$GCC" = yes; then
18648 lt_prog_compiler_wl_F77='-Wl,'
18649 lt_prog_compiler_static_F77='-static'
18653 # All AIX code is PIC.
18654 if test "$host_cpu" = ia64; then
18655 # AIX 5 now supports IA64 processor
18656 lt_prog_compiler_static_F77='-Bstatic'
18661 # FIXME: we need at least 68020 code to build shared libraries, but
18662 # adding the `-m68020' flag to GCC prevents building anything better,
18664 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18667 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18668 # PIC is the default for these OSes.
18671 mingw* | pw32* | os2*)
18672 # This hack is so that the source file can tell whether it is being
18673 # built for inclusion in a dll (and should export symbols for example).
18674 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18677 darwin* | rhapsody*)
18678 # PIC is the default on this platform
18679 # Common symbols not allowed in MH_DYLIB files
18680 lt_prog_compiler_pic_F77='-fno-common'
18684 # Just because we use GCC doesn't mean we suddenly get shared libraries
18685 # on systems that don't support them.
18686 lt_prog_compiler_can_build_shared_F77=no
18691 if test -d /usr/nec; then
18692 lt_prog_compiler_pic_F77=-Kconform_pic
18697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18698 # not for PA HP-UX.
18699 case "$host_cpu" in
18704 lt_prog_compiler_pic_F77='-fPIC'
18710 lt_prog_compiler_pic_F77='-fPIC'
18714 # PORTME Check for flag to pass linker flags through the system compiler.
18717 lt_prog_compiler_wl_F77='-Wl,'
18718 if test "$host_cpu" = ia64; then
18719 # AIX 5 now supports IA64 processor
18720 lt_prog_compiler_static_F77='-Bstatic'
18722 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18726 # PIC is the default on this platform
18727 # Common symbols not allowed in MH_DYLIB files
18728 case "$cc_basename" in
18730 lt_prog_compiler_pic_F77='-qnocommon'
18731 lt_prog_compiler_wl_F77='-Wl,'
18736 mingw* | pw32* | os2*)
18737 # This hack is so that the source file can tell whether it is being
18738 # built for inclusion in a dll (and should export symbols for example).
18739 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18742 hpux9* | hpux10* | hpux11*)
18743 lt_prog_compiler_wl_F77='-Wl,'
18744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18745 # not for PA HP-UX.
18746 case "$host_cpu" in
18751 lt_prog_compiler_pic_F77='+Z'
18754 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18755 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18758 irix5* | irix6* | nonstopux*)
18759 lt_prog_compiler_wl_F77='-Wl,'
18760 # PIC (with -KPIC) is the default.
18761 lt_prog_compiler_static_F77='-non_shared'
18765 lt_prog_compiler_pic_F77='-KPIC'
18766 lt_prog_compiler_static_F77='-Bstatic'
18772 lt_prog_compiler_wl_F77='-Wl,'
18773 lt_prog_compiler_pic_F77='-KPIC'
18774 lt_prog_compiler_static_F77='-static'
18777 lt_prog_compiler_wl_F77='-Wl,'
18778 # All Alpha code is PIC.
18779 lt_prog_compiler_static_F77='-non_shared'
18784 osf3* | osf4* | osf5*)
18785 lt_prog_compiler_wl_F77='-Wl,'
18786 # All OSF/1 code is PIC.
18787 lt_prog_compiler_static_F77='-non_shared'
18791 lt_prog_compiler_pic_F77='-Kpic'
18792 lt_prog_compiler_static_F77='-dn'
18796 lt_prog_compiler_wl_F77='-Wl,'
18797 lt_prog_compiler_pic_F77='-KPIC'
18798 lt_prog_compiler_static_F77='-Bstatic'
18802 lt_prog_compiler_wl_F77='-Qoption ld '
18803 lt_prog_compiler_pic_F77='-PIC'
18804 lt_prog_compiler_static_F77='-Bstatic'
18807 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18808 lt_prog_compiler_wl_F77='-Wl,'
18809 lt_prog_compiler_pic_F77='-KPIC'
18810 lt_prog_compiler_static_F77='-Bstatic'
18814 if test -d /usr/nec ;then
18815 lt_prog_compiler_pic_F77='-Kconform_pic'
18816 lt_prog_compiler_static_F77='-Bstatic'
18821 lt_prog_compiler_pic_F77='-pic'
18822 lt_prog_compiler_static_F77='-Bstatic'
18826 lt_prog_compiler_can_build_shared_F77=no
18831 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18832 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18835 # Check to make sure the PIC flag actually works.
18837 if test -n "$lt_prog_compiler_pic_F77"; then
18839 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18840 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18841 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18844 lt_prog_compiler_pic_works_F77=no
18845 ac_outfile=conftest.$ac_objext
18846 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18847 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18848 # Insert the option either (1) after the last *FLAGS variable, or
18849 # (2) before a word containing "conftest.", or (3) at the end.
18850 # Note that $ac_compile itself does not contain backslashes and begins
18851 # with a dollar sign (not a hyphen), so the echo should work correctly.
18852 # The option is referenced via a variable to avoid confusing sed.
18853 lt_compile=`echo "$ac_compile" | $SED \
18854 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18856 -e 's:$: $lt_compiler_flag:'`
18857 (eval echo "\"\$as_me:18857: $lt_compile\"" >&5)
18858 (eval "$lt_compile" 2>conftest.err)
18860 cat conftest.err >&5
18861 echo "$as_me:18861: \$? = $ac_status" >&5
18862 if (exit $ac_status) && test -s "$ac_outfile"; then
18863 # The compiler can only warn and ignore the option if not recognized
18864 # So say no if there are warnings
18865 if test ! -s conftest.err; then
18866 lt_prog_compiler_pic_works_F77=yes
18872 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18873 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18875 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18876 case $lt_prog_compiler_pic_F77 in
18878 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18881 lt_prog_compiler_pic_F77=
18882 lt_prog_compiler_can_build_shared_F77=no
18887 # For platforms which do not support PIC, -DPIC is meaningless:
18889 lt_prog_compiler_pic_F77=
18892 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18896 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18897 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18898 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 lt_cv_prog_compiler_c_o_F77=no
18902 $rm -r conftest 2>/dev/null
18906 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18908 lt_compiler_flag="-o out/conftest2.$ac_objext"
18909 # Insert the option either (1) after the last *FLAGS variable, or
18910 # (2) before a word containing "conftest.", or (3) at the end.
18911 # Note that $ac_compile itself does not contain backslashes and begins
18912 # with a dollar sign (not a hyphen), so the echo should work correctly.
18913 lt_compile=`echo "$ac_compile" | $SED \
18914 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18916 -e 's:$: $lt_compiler_flag:'`
18917 (eval echo "\"\$as_me:18917: $lt_compile\"" >&5)
18918 (eval "$lt_compile" 2>out/conftest.err)
18920 cat out/conftest.err >&5
18921 echo "$as_me:18921: \$? = $ac_status" >&5
18922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18924 # The compiler can only warn and ignore the option if not recognized
18925 # So say no if there are warnings
18926 if test ! -s out/conftest.err; then
18927 lt_cv_prog_compiler_c_o_F77=yes
18932 # SGI C++ compiler will create directory out/ii_files/ for
18933 # template instantiation
18934 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18935 $rm out/* && rmdir out
18941 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18942 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18945 hard_links="nottested"
18946 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18947 # do not overwrite the value of need_locks provided by the user
18948 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18949 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18954 ln conftest.a conftest.b 2>&5 || hard_links=no
18955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18956 echo "$as_me:$LINENO: result: $hard_links" >&5
18957 echo "${ECHO_T}$hard_links" >&6
18958 if test "$hard_links" = no; then
18959 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18960 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18967 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18968 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18971 allow_undefined_flag_F77=
18972 enable_shared_with_static_runtimes_F77=no
18974 archive_expsym_cmds_F77=
18975 old_archive_From_new_cmds_F77=
18976 old_archive_from_expsyms_cmds_F77=
18977 export_dynamic_flag_spec_F77=
18978 whole_archive_flag_spec_F77=
18979 thread_safe_flag_spec_F77=
18980 hardcode_libdir_flag_spec_F77=
18981 hardcode_libdir_flag_spec_ld_F77=
18982 hardcode_libdir_separator_F77=
18983 hardcode_direct_F77=no
18984 hardcode_minus_L_F77=no
18985 hardcode_shlibpath_var_F77=unsupported
18986 link_all_deplibs_F77=unknown
18987 hardcode_automatic_F77=no
18989 module_expsym_cmds_F77=
18990 always_export_symbols_F77=no
18991 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18992 # include_expsyms should be a list of space-separated symbols to be *always*
18993 # included in the symbol list
18994 include_expsyms_F77=
18995 # exclude_expsyms can be an extended regexp of symbols to exclude
18996 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18997 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18998 # as well as any symbol that contains `d'.
18999 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19000 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19001 # platforms (ab)use it in PIC code, but their linkers get confused if
19002 # the symbol is explicitly referenced. Since portable code cannot
19003 # rely on this symbol name, it's probably fine to never include it in
19004 # preloaded symbol tables.
19005 extract_expsyms_cmds=
19008 cygwin* | mingw* | pw32*)
19009 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19010 # When not using gcc, we currently assume that we are using
19011 # Microsoft Visual C++.
19012 if test "$GCC" != yes; then
19022 if test "$with_gnu_ld" = yes; then
19023 # If archive_cmds runs LD, not CC, wlarc should be empty
19026 # See if GNU ld supports shared libraries.
19028 aix3* | aix4* | aix5*)
19029 # On AIX/PPC, the GNU linker is very broken
19030 if test "$host_cpu" != ia64; then
19034 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19035 *** to be unable to reliably create shared libraries on AIX.
19036 *** Therefore, libtool is disabling shared libraries support. If you
19037 *** really care for shared libraries, you may want to modify your PATH
19038 *** so that a non-GNU linker is found, and then restart.
19045 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)'
19046 hardcode_libdir_flag_spec_F77='-L$libdir'
19047 hardcode_minus_L_F77=yes
19049 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19050 # that the semantics of dynamic libraries on AmigaOS, at least up
19051 # to version 4, is to share data among multiple programs linked
19052 # with the same dynamic library. Since this doesn't match the
19053 # behavior of shared libraries on other platforms, we can't use
19059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19060 allow_undefined_flag_F77=unsupported
19061 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19062 # support --undefined. This deserves some investigation. FIXME
19063 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19069 cygwin* | mingw* | pw32*)
19070 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19071 # as there is no search path for DLLs.
19072 hardcode_libdir_flag_spec_F77='-L$libdir'
19073 allow_undefined_flag_F77=unsupported
19074 always_export_symbols_F77=no
19075 enable_shared_with_static_runtimes_F77=yes
19076 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19078 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19079 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19080 # If the export-symbols file already is a .def file (1st line
19081 # is EXPORTS), use it as is; otherwise, prepend...
19082 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19083 cp $export_symbols $output_objdir/$soname.def;
19085 echo EXPORTS > $output_objdir/$soname.def;
19086 cat $export_symbols >> $output_objdir/$soname.def;
19088 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19096 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19099 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19100 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19105 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19109 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19110 *** create shared libraries on Solaris systems. Therefore, libtool
19111 *** is disabling shared libraries support. We urge you to upgrade GNU
19112 *** binutils to release 2.9.1 or newer. Another option is to modify
19113 *** your PATH or compiler configuration so that the native linker is
19114 *** used, and then restart.
19117 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19118 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19119 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19126 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19128 hardcode_direct_F77=yes
19129 hardcode_shlibpath_var_F77=no
19133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19134 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19135 archive_cmds_F77="$tmp_archive_cmds"
19136 supports_anon_versioning=no
19137 case `$LD -v 2>/dev/null` in
19138 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19139 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19140 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19141 *\ 2.11.*) ;; # other 2.11 versions
19142 *) supports_anon_versioning=yes ;;
19144 if test $supports_anon_versioning = yes; then
19145 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19146 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19147 $echo "local: *; };" >> $output_objdir/$libname.ver~
19148 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19150 archive_expsym_cmds_F77="$tmp_archive_cmds"
19158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19159 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19160 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19167 if test "$ld_shlibs_F77" = yes; then
19168 runpath_var=LD_RUN_PATH
19169 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19170 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19171 # ancient GNU ld didn't support --whole-archive et. al.
19172 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19173 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19175 whole_archive_flag_spec_F77=
19179 # PORTME fill in a description of your system's linker (not GNU ld)
19182 allow_undefined_flag_F77=unsupported
19183 always_export_symbols_F77=yes
19184 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'
19185 # Note: this linker hardcodes the directories in LIBPATH if there
19186 # are no directories specified by -L.
19187 hardcode_minus_L_F77=yes
19188 if test "$GCC" = yes && test -z "$link_static_flag"; then
19189 # Neither direct hardcoding nor static linking is supported with a
19191 hardcode_direct_F77=unsupported
19196 if test "$host_cpu" = ia64; then
19197 # On IA64, the linker does run time linking by default, so we don't
19198 # have to do anything special.
19199 aix_use_runtimelinking=no
19200 exp_sym_flag='-Bexport'
19203 # If we're using GNU nm, then we don't want the "-C" option.
19204 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19205 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19206 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'
19208 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'
19210 aix_use_runtimelinking=no
19212 # Test if we are trying to use run time linking or normal
19213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19214 # need to do runtime linking.
19215 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19216 for ld_flag in $LDFLAGS; do
19217 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19218 aix_use_runtimelinking=yes
19224 exp_sym_flag='-bexport'
19225 no_entry_flag='-bnoentry'
19228 # When large executables or shared objects are built, AIX ld can
19229 # have problems creating the table of contents. If linking a library
19230 # or program results in "error TOC overflow" add -mminimal-toc to
19231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19234 archive_cmds_F77=''
19235 hardcode_direct_F77=yes
19236 hardcode_libdir_separator_F77=':'
19237 link_all_deplibs_F77=yes
19239 if test "$GCC" = yes; then
19240 case $host_os in aix4.012|aix4.012.*)
19241 # We only want to do this on AIX 4.2 and lower, the check
19242 # below for broken collect2 doesn't work under 4.3+
19243 collect2name=`${CC} -print-prog-name=collect2`
19244 if test -f "$collect2name" && \
19245 strings "$collect2name" | grep resolve_lib_name >/dev/null
19247 # We have reworked collect2
19248 hardcode_direct_F77=yes
19250 # We have old collect2
19251 hardcode_direct_F77=unsupported
19252 # It fails to find uninstalled libraries when the uninstalled
19253 # path is not listed in the libpath. Setting hardcode_minus_L
19254 # to unsupported forces relinking
19255 hardcode_minus_L_F77=yes
19256 hardcode_libdir_flag_spec_F77='-L$libdir'
19257 hardcode_libdir_separator_F77=
19260 shared_flag='-shared'
19263 if test "$host_cpu" = ia64; then
19264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19265 # chokes on -Wl,-G. The following line is correct:
19268 if test "$aix_use_runtimelinking" = yes; then
19269 shared_flag='${wl}-G'
19271 shared_flag='${wl}-bM:SRE'
19276 # It seems that -bexpall does not export symbols beginning with
19277 # underscore (_), so it is better to generate a list of symbols to export.
19278 always_export_symbols_F77=yes
19279 if test "$aix_use_runtimelinking" = yes; then
19280 # Warning - without using the other runtime loading flags (-brtl),
19281 # -berok will link without error, but may produce a broken library.
19282 allow_undefined_flag_F77='-berok'
19283 # Determine the default libpath from the value encoded in an empty executable.
19284 cat >conftest.$ac_ext <<_ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291 (eval $ac_link) 2>conftest.er1
19293 grep -v '^ *+' conftest.er1 >conftest.err
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } &&
19298 { ac_try='test -z "$ac_f77_werror_flag"
19299 || test ! -s conftest.err'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; } &&
19305 { ac_try='test -s conftest$ac_exeext'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19314 # Check for a 64-bit object if we didn't find anything.
19315 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; }
19318 echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19322 rm -f conftest.err conftest.$ac_objext \
19323 conftest$ac_exeext conftest.$ac_ext
19324 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19326 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19327 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"
19329 if test "$host_cpu" = ia64; then
19330 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19331 allow_undefined_flag_F77="-z nodefs"
19332 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"
19334 # Determine the default libpath from the value encoded in an empty executable.
19335 cat >conftest.$ac_ext <<_ACEOF
19340 rm -f conftest.$ac_objext conftest$ac_exeext
19341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19342 (eval $ac_link) 2>conftest.er1
19344 grep -v '^ *+' conftest.er1 >conftest.err
19346 cat conftest.err >&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } &&
19349 { ac_try='test -z "$ac_f77_werror_flag"
19350 || test ! -s conftest.err'
19351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; } &&
19356 { ac_try='test -s conftest$ac_exeext'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19365 # Check for a 64-bit object if we didn't find anything.
19366 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; }
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19373 rm -f conftest.err conftest.$ac_objext \
19374 conftest$ac_exeext conftest.$ac_ext
19375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19377 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19378 # Warning - without using the other run time loading flags,
19379 # -berok will link without error, but may produce a broken library.
19380 no_undefined_flag_F77=' ${wl}-bernotok'
19381 allow_undefined_flag_F77=' ${wl}-berok'
19382 # -bexpall does not export symbols beginning with underscore (_)
19383 always_export_symbols_F77=yes
19384 # Exported symbols can be pulled into shared objects from archives
19385 whole_archive_flag_spec_F77=' '
19386 archive_cmds_need_lc_F77=yes
19387 # This is similar to how AIX traditionally builds it's shared libraries.
19388 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'
19394 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)'
19395 hardcode_libdir_flag_spec_F77='-L$libdir'
19396 hardcode_minus_L_F77=yes
19397 # see comment about different semantics on the GNU ld section
19402 export_dynamic_flag_spec_F77=-rdynamic
19405 cygwin* | mingw* | pw32*)
19406 # When not using gcc, we currently assume that we are using
19407 # Microsoft Visual C++.
19408 # hardcode_libdir_flag_spec is actually meaningless, as there is
19409 # no search path for DLLs.
19410 hardcode_libdir_flag_spec_F77=' '
19411 allow_undefined_flag_F77=unsupported
19412 # Tell ltmain to make .lib files, not .a files.
19414 # Tell ltmain to make .dll files, not .so files.
19416 # FIXME: Setting linknames here is a bad hack.
19417 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19418 # The linker will automatically build a .lib file if we build a DLL.
19419 old_archive_From_new_cmds_F77='true'
19420 # FIXME: Should let the user specify the lib program.
19421 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19422 fix_srcfile_path='`cygpath -w "$srcfile"`'
19423 enable_shared_with_static_runtimes_F77=yes
19426 darwin* | rhapsody*)
19428 rhapsody* | darwin1.[012])
19429 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19432 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19433 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19435 case ${MACOSX_DEPLOYMENT_TARGET} in
19437 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19440 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19446 archive_cmds_need_lc_F77=no
19447 hardcode_direct_F77=no
19448 hardcode_automatic_F77=yes
19449 hardcode_shlibpath_var_F77=unsupported
19450 whole_archive_flag_spec_F77=''
19451 link_all_deplibs_F77=yes
19452 if test "$GCC" = yes ; then
19453 output_verbose_link_cmd='echo'
19454 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19455 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19456 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19457 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}'
19458 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}'
19460 case "$cc_basename" in
19462 output_verbose_link_cmd='echo'
19463 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19464 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19465 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19466 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}'
19467 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}'
19477 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19478 hardcode_libdir_flag_spec_F77='-L$libdir'
19479 hardcode_shlibpath_var_F77=no
19486 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19487 # support. Future versions do this automatically, but an explicit c++rt0.o
19488 # does not break anything, and helps significantly (at the cost of a little
19491 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19492 hardcode_libdir_flag_spec_F77='-R$libdir'
19493 hardcode_direct_F77=yes
19494 hardcode_shlibpath_var_F77=no
19497 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19499 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19500 hardcode_direct_F77=yes
19501 hardcode_minus_L_F77=yes
19502 hardcode_shlibpath_var_F77=no
19505 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19506 freebsd* | kfreebsd*-gnu)
19507 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19508 hardcode_libdir_flag_spec_F77='-R$libdir'
19509 hardcode_direct_F77=yes
19510 hardcode_shlibpath_var_F77=no
19514 if test "$GCC" = yes; then
19515 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'
19517 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'
19519 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19520 hardcode_libdir_separator_F77=:
19521 hardcode_direct_F77=yes
19523 # hardcode_minus_L: Not really in the search PATH,
19524 # but as the default location of the library.
19525 hardcode_minus_L_F77=yes
19526 export_dynamic_flag_spec_F77='${wl}-E'
19530 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19531 case "$host_cpu" in
19533 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19536 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19540 case "$host_cpu" in
19542 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19545 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19549 if test "$with_gnu_ld" = no; then
19550 case "$host_cpu" in
19552 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19553 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19554 hardcode_libdir_separator_F77=:
19555 hardcode_direct_F77=no
19556 hardcode_shlibpath_var_F77=no
19559 hardcode_libdir_flag_spec_F77='-L$libdir'
19560 hardcode_direct_F77=no
19561 hardcode_shlibpath_var_F77=no
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
19568 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19569 hardcode_libdir_separator_F77=:
19570 hardcode_direct_F77=yes
19571 export_dynamic_flag_spec_F77='${wl}-E'
19573 # hardcode_minus_L: Not really in the search PATH,
19574 # but as the default location of the library.
19575 hardcode_minus_L_F77=yes
19581 irix5* | irix6* | nonstopux*)
19582 if test "$GCC" = yes; then
19583 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'
19585 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'
19586 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19588 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19589 hardcode_libdir_separator_F77=:
19590 link_all_deplibs_F77=yes
19594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19595 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19597 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19599 hardcode_libdir_flag_spec_F77='-R$libdir'
19600 hardcode_direct_F77=yes
19601 hardcode_shlibpath_var_F77=no
19605 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19606 hardcode_direct_F77=yes
19607 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19608 hardcode_libdir_separator_F77=:
19609 hardcode_shlibpath_var_F77=no
19613 hardcode_direct_F77=yes
19614 hardcode_shlibpath_var_F77=no
19615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19616 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19617 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19618 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19619 export_dynamic_flag_spec_F77='${wl}-E'
19622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19623 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19624 hardcode_libdir_flag_spec_F77='-R$libdir'
19627 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19628 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19635 hardcode_libdir_flag_spec_F77='-L$libdir'
19636 hardcode_minus_L_F77=yes
19637 allow_undefined_flag_F77=unsupported
19638 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'
19639 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19643 if test "$GCC" = yes; then
19644 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19645 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'
19647 allow_undefined_flag_F77=' -expect_unresolved \*'
19648 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'
19650 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19651 hardcode_libdir_separator_F77=:
19654 osf4* | osf5*) # as osf3* with the addition of -msym flag
19655 if test "$GCC" = yes; then
19656 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19657 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'
19658 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19660 allow_undefined_flag_F77=' -expect_unresolved \*'
19661 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'
19662 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~
19663 $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'
19665 # Both c and cxx compiler support -rpath directly
19666 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19668 hardcode_libdir_separator_F77=:
19672 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19673 hardcode_shlibpath_var_F77=no
19674 export_dynamic_flag_spec_F77='${wl}-Bexport'
19675 runpath_var=LD_RUN_PATH
19676 hardcode_runpath_var=yes
19680 no_undefined_flag_F77=' -z text'
19681 if test "$GCC" = yes; then
19682 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19683 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19684 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19686 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19687 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19690 hardcode_libdir_flag_spec_F77='-R$libdir'
19691 hardcode_shlibpath_var_F77=no
19693 solaris2.[0-5] | solaris2.[0-5].*) ;;
19694 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19695 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19697 link_all_deplibs_F77=yes
19701 if test "x$host_vendor" = xsequent; then
19702 # Use $CC to link under sequent, because it throws in some extra .o
19703 # files that make .init and .fini sections work.
19704 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19706 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19708 hardcode_libdir_flag_spec_F77='-L$libdir'
19709 hardcode_direct_F77=yes
19710 hardcode_minus_L_F77=yes
19711 hardcode_shlibpath_var_F77=no
19715 case $host_vendor in
19717 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19718 hardcode_direct_F77=yes # is this really true???
19721 ## LD is ld it makes a PLAMLIB
19722 ## CC just makes a GrossModule.
19723 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19724 reload_cmds_F77='$CC -r -o $output$reload_objs'
19725 hardcode_direct_F77=no
19728 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19729 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19732 runpath_var='LD_RUN_PATH'
19733 hardcode_shlibpath_var_F77=no
19737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19738 hardcode_shlibpath_var_F77=no
19739 export_dynamic_flag_spec_F77='-Bexport'
19743 if test -d /usr/nec; then
19744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19745 hardcode_shlibpath_var_F77=no
19746 runpath_var=LD_RUN_PATH
19747 hardcode_runpath_var=yes
19753 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19754 hardcode_direct_F77=yes
19755 hardcode_minus_L_F77=no
19756 hardcode_shlibpath_var_F77=no
19757 hardcode_runpath_var=yes
19758 runpath_var=LD_RUN_PATH
19761 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19762 no_undefined_flag_F77='${wl}-z ${wl}text'
19763 if test "$GCC" = yes; then
19764 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19766 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19768 runpath_var='LD_RUN_PATH'
19769 hardcode_shlibpath_var_F77=no
19773 no_undefined_flag_F77=' -z text'
19774 # $CC -shared without GNU ld will not create a library from C++
19775 # object files and a static libstdc++, better avoid it by now
19776 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19777 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19778 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19779 hardcode_libdir_flag_spec_F77=
19780 hardcode_shlibpath_var_F77=no
19781 runpath_var='LD_RUN_PATH'
19785 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19786 hardcode_libdir_flag_spec_F77='-L$libdir'
19787 hardcode_shlibpath_var_F77=no
19796 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19797 echo "${ECHO_T}$ld_shlibs_F77" >&6
19798 test "$ld_shlibs_F77" = no && can_build_shared=no
19800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19801 if test "$GCC" = yes; then
19802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19806 # Do we need to explicitly link libc?
19808 case "x$archive_cmds_need_lc_F77" in
19810 # Assume -lc should be added
19811 archive_cmds_need_lc_F77=yes
19813 if test "$enable_shared" = yes && test "$GCC" = yes; then
19814 case $archive_cmds_F77 in
19816 # FIXME: we may have to deal with multi-command sequences.
19819 # Test whether the compiler implicitly links with -lc since on some
19820 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19821 # to ld, don't add -lc before -lgcc.
19822 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19823 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19828 (eval $ac_compile) 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } 2>conftest.err; then
19834 libobjs=conftest.$ac_objext
19836 wl=$lt_prog_compiler_wl_F77
19842 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19843 allow_undefined_flag_F77=
19844 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19845 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }
19850 archive_cmds_need_lc_F77=no
19852 archive_cmds_need_lc_F77=yes
19854 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19856 cat conftest.err 1>&5
19859 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19860 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19867 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19868 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19869 library_names_spec=
19870 libname_spec='lib$name'
19874 postuninstall_cmds=
19878 shlibpath_overrides_runpath=unknown
19880 dynamic_linker="$host_os ld.so"
19881 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19882 if test "$GCC" = yes; then
19883 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19884 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19885 # if the path contains ";" then we assume it to be the separator
19886 # otherwise default to the standard path separator (i.e. ":") - it is
19887 # assumed that no part of a normal pathname contains ";" but that should
19888 # okay in the real world where ";" in dirpaths is itself problematic.
19889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19894 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19896 need_lib_prefix=unknown
19897 hardcode_into_libs=no
19899 # when you set need_version to no, make sure it does not cause -set_version
19900 # flags to be left without arguments
19901 need_version=unknown
19906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19907 shlibpath_var=LIBPATH
19909 # AIX 3 has no versioning support, so we append a major version to the name.
19910 soname_spec='${libname}${release}${shared_ext}$major'
19917 hardcode_into_libs=yes
19918 if test "$host_cpu" = ia64; then
19919 # AIX 5 supports IA64
19920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19921 shlibpath_var=LD_LIBRARY_PATH
19923 # With GCC up to 2.95.x, collect2 would create an import file
19924 # for dependence libraries. The import file would start with
19925 # the line `#! .'. This would cause the generated library to
19926 # depend on `.', always an invalid library. This was fixed in
19927 # development snapshots of GCC prior to 3.0.
19929 aix4 | aix4.[01] | aix4.[01].*)
19930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19932 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19935 can_build_shared=no
19939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19940 # soname into executable. Probably we can add versioning support to
19941 # collect2, so additional links can be useful in future.
19942 if test "$aix_use_runtimelinking" = yes; then
19943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19944 # instead of lib<name>.a to let people know that these are not
19945 # typical AIX shared libraries.
19946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19948 # We preserve .a as extension for shared libraries through AIX4.2
19949 # and later when we are not doing run time linking.
19950 library_names_spec='${libname}${release}.a $libname.a'
19951 soname_spec='${libname}${release}${shared_ext}$major'
19953 shlibpath_var=LIBPATH
19958 library_names_spec='$libname.ixlibrary $libname.a'
19959 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19960 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'
19964 library_names_spec='${libname}${shared_ext}'
19965 dynamic_linker="$host_os ld.so"
19966 shlibpath_var=LIBRARY_PATH
19972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19973 soname_spec='${libname}${release}${shared_ext}$major'
19974 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19975 shlibpath_var=LD_LIBRARY_PATH
19976 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19977 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19978 # the default ld.so.conf also contains /usr/contrib/lib and
19979 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19980 # libtool to hard-code these into programs
19983 cygwin* | mingw* | pw32*)
19984 version_type=windows
19989 case $GCC,$host_os in
19990 yes,cygwin* | yes,mingw* | yes,pw32*)
19991 library_names_spec='$libname.dll.a'
19992 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19993 postinstall_cmds='base_file=`basename \${file}`~
19994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19995 dldir=$destdir/`dirname \$dlpath`~
19996 test -d \$dldir || mkdir -p \$dldir~
19997 $install_prog $dir/$dlname \$dldir/$dlname'
19998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19999 dlpath=$dir/\$dldll~
20001 shlibpath_overrides_runpath=yes
20005 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20007 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20010 # MinGW DLLs use traditional 'lib' prefix
20011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20013 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20014 # It is most probably a Windows format PATH printed by
20015 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20016 # path with ; separators, and with drive letters. We can handle the
20017 # drive letters (cygwin fileutils understands them), so leave them,
20018 # especially as we might pass files found there to a mingw objdump,
20019 # which wouldn't understand a cygwinified path. Ahh.
20020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20026 # pw32 DLLs use 'pw' prefix rather than 'lib'
20027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20036 dynamic_linker='Win32 ld.exe'
20037 # FIXME: first we should search . and the directory the executable is in
20041 darwin* | rhapsody*)
20042 dynamic_linker="$host_os dyld"
20043 version_type=darwin
20046 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20047 soname_spec='${libname}${release}${major}$shared_ext'
20048 shlibpath_overrides_runpath=yes
20049 shlibpath_var=DYLD_LIBRARY_PATH
20050 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20051 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20052 if test "$GCC" = yes; then
20053 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"`
20055 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20057 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20065 soname_spec='${libname}${release}${shared_ext}$major'
20066 shlibpath_var=LD_LIBRARY_PATH
20077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20078 soname_spec='${libname}${release}${shared_ext}$major'
20079 shlibpath_var=LD_LIBRARY_PATH
20080 shlibpath_overrides_runpath=no
20081 hardcode_into_libs=yes
20082 dynamic_linker='GNU ld.so'
20086 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20087 version_type=freebsd-$objformat
20088 case $version_type in
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20099 shlibpath_var=LD_LIBRARY_PATH
20102 shlibpath_overrides_runpath=yes
20104 freebsd3.01* | freebsdelf3.01*)
20105 shlibpath_overrides_runpath=yes
20106 hardcode_into_libs=yes
20109 shlibpath_overrides_runpath=no
20110 hardcode_into_libs=yes
20119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20120 soname_spec='${libname}${release}${shared_ext}$major'
20121 shlibpath_var=LD_LIBRARY_PATH
20122 hardcode_into_libs=yes
20125 hpux9* | hpux10* | hpux11*)
20126 # Give a soname corresponding to the major version so that dld.sl refuses to
20127 # link against other versions.
20131 case "$host_cpu" in
20134 hardcode_into_libs=yes
20135 dynamic_linker="$host_os dld.so"
20136 shlibpath_var=LD_LIBRARY_PATH
20137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20139 soname_spec='${libname}${release}${shared_ext}$major'
20140 if test "X$HPUX_IA64_MODE" = X32; then
20141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20149 hardcode_into_libs=yes
20150 dynamic_linker="$host_os dld.sl"
20151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20154 soname_spec='${libname}${release}${shared_ext}$major'
20155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20160 dynamic_linker="$host_os dld.sl"
20161 shlibpath_var=SHLIB_PATH
20162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164 soname_spec='${libname}${release}${shared_ext}$major'
20167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20168 postinstall_cmds='chmod 555 $lib'
20171 irix5* | irix6* | nonstopux*)
20173 nonstopux*) version_type=nonstopux ;;
20175 if test "$lt_cv_prog_gnu_ld" = yes; then
20183 soname_spec='${libname}${release}${shared_ext}$major'
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20186 irix5* | nonstopux*)
20187 libsuff= shlibsuff=
20190 case $LD in # libtool.m4 will add one of these switches to LD
20191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20192 libsuff= shlibsuff= libmagic=32-bit;;
20193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20194 libsuff=32 shlibsuff=N32 libmagic=N32;;
20195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20197 *) libsuff= shlibsuff= libmagic=never-match;;
20201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20202 shlibpath_overrides_runpath=no
20203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20205 hardcode_into_libs=yes
20208 # No shared lib support for Linux oldld, aout, or coff.
20209 linux*oldld* | linux*aout* | linux*coff*)
20213 # This must be Linux ELF.
20218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20219 soname_spec='${libname}${release}${shared_ext}$major'
20220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20221 shlibpath_var=LD_LIBRARY_PATH
20222 shlibpath_overrides_runpath=no
20223 # This implies no fast_install, which is unacceptable.
20224 # Some rework will be needed to allow for fast_install
20225 # before this can be enabled.
20226 hardcode_into_libs=yes
20228 # Append ld.so.conf contents to the search path
20229 if test -f /etc/ld.so.conf; then
20230 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20231 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20234 # We used to test for /lib/ld.so.1 and disable shared libraries on
20235 # powerpc, because MkLinux only supported shared libraries with the
20236 # GNU dynamic linker. Since this was broken with cross compilers,
20237 # most powerpc-linux boxes support dynamic linking these days and
20238 # people can always --disable-shared, the test was removed, and we
20239 # assume the GNU/Linux dynamic linker is in use.
20240 dynamic_linker='GNU/Linux ld.so'
20247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 shlibpath_var=LD_LIBRARY_PATH
20250 shlibpath_overrides_runpath=no
20251 hardcode_into_libs=yes
20252 dynamic_linker='GNU ld.so'
20259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20262 dynamic_linker='NetBSD (a.out) ld.so'
20264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20265 soname_spec='${libname}${release}${shared_ext}$major'
20266 dynamic_linker='NetBSD ld.elf_so'
20268 shlibpath_var=LD_LIBRARY_PATH
20269 shlibpath_overrides_runpath=yes
20270 hardcode_into_libs=yes
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20276 shlibpath_var=LD_LIBRARY_PATH
20277 shlibpath_overrides_runpath=yes
20284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20285 soname_spec='${libname}${release}${shared_ext}$major'
20286 shlibpath_var=LD_LIBRARY_PATH
20287 shlibpath_overrides_runpath=yes
20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20296 shlibpath_var=LD_LIBRARY_PATH
20297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20299 openbsd2.[89] | openbsd2.[89].*)
20300 shlibpath_overrides_runpath=no
20303 shlibpath_overrides_runpath=yes
20307 shlibpath_overrides_runpath=yes
20312 libname_spec='$name'
20315 library_names_spec='$libname${shared_ext} $libname.a'
20316 dynamic_linker='OS/2 ld.exe'
20317 shlibpath_var=LIBPATH
20320 osf3* | osf4* | osf5*)
20324 soname_spec='${libname}${release}${shared_ext}$major'
20325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20326 shlibpath_var=LD_LIBRARY_PATH
20327 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20328 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335 shlibpath_var=LD_LIBRARY_PATH
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343 soname_spec='${libname}${release}${shared_ext}$major'
20344 shlibpath_var=LD_LIBRARY_PATH
20345 shlibpath_overrides_runpath=yes
20346 hardcode_into_libs=yes
20347 # ldd complains unless libraries are executable
20348 postinstall_cmds='chmod +x $lib'
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20355 shlibpath_var=LD_LIBRARY_PATH
20356 shlibpath_overrides_runpath=yes
20357 if test "$with_gnu_ld" = yes; then
20363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366 soname_spec='${libname}${release}${shared_ext}$major'
20367 shlibpath_var=LD_LIBRARY_PATH
20368 case $host_vendor in
20370 shlibpath_overrides_runpath=no
20372 export_dynamic_flag_spec='${wl}-Blargedynsym'
20373 runpath_var=LD_RUN_PATH
20381 shlibpath_overrides_runpath=no
20382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20388 if test -d /usr/nec ;then
20390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20391 soname_spec='$libname${shared_ext}.$major'
20392 shlibpath_var=LD_LIBRARY_PATH
20398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20399 soname_spec='${libname}${release}${shared_ext}$major'
20400 shlibpath_var=LD_LIBRARY_PATH
20407 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20408 echo "${ECHO_T}$dynamic_linker" >&6
20409 test "$dynamic_linker" = no && can_build_shared=no
20411 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20412 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20413 hardcode_action_F77=
20414 if test -n "$hardcode_libdir_flag_spec_F77" || \
20415 test -n "$runpath_var_F77" || \
20416 test "X$hardcode_automatic_F77" = "Xyes" ; then
20418 # We can hardcode non-existant directories.
20419 if test "$hardcode_direct_F77" != no &&
20420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20421 # have to relink, otherwise we might link with an installed library
20422 # when we should be linking with a yet-to-be-installed one
20423 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20424 test "$hardcode_minus_L_F77" != no; then
20425 # Linking always hardcodes the temporary library directory.
20426 hardcode_action_F77=relink
20428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20429 hardcode_action_F77=immediate
20432 # We cannot hardcode anything, or else we can only hardcode existing
20434 hardcode_action_F77=unsupported
20436 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20437 echo "${ECHO_T}$hardcode_action_F77" >&6
20439 if test "$hardcode_action_F77" = relink; then
20440 # Fast installation is not supported
20441 enable_fast_install=no
20442 elif test "$shlibpath_overrides_runpath" = yes ||
20443 test "$enable_shared" = no; then
20444 # Fast installation is not necessary
20445 enable_fast_install=needless
20450 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20451 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20452 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20453 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20454 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20455 echo "$as_me:$LINENO: result: yes" >&5
20456 echo "${ECHO_T}yes" >&6
20458 # FIXME - insert some real tests, host_os isn't really good enough
20461 if test -n "$STRIP" ; then
20462 striplib="$STRIP -x"
20463 echo "$as_me:$LINENO: result: yes" >&5
20464 echo "${ECHO_T}yes" >&6
20466 echo "$as_me:$LINENO: result: no" >&5
20467 echo "${ECHO_T}no" >&6
20471 echo "$as_me:$LINENO: result: no" >&5
20472 echo "${ECHO_T}no" >&6
20479 # The else clause should only fire when bootstrapping the
20480 # libtool distribution, otherwise you forgot to ship ltmain.sh
20481 # with your package, and you will get complaints that there are
20482 # no rules to generate ltmain.sh.
20483 if test -f "$ltmain"; then
20484 # See if we are running on zsh, and set the options which allow our commands through
20485 # without removal of \ escapes.
20486 if test -n "${ZSH_VERSION+set}" ; then
20487 setopt NO_GLOB_SUBST
20489 # Now quote all the things that may contain metacharacters while being
20490 # careful not to overquote the AC_SUBSTed values. We take copies of the
20491 # variables and quote the copies for generation of the libtool script.
20492 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20494 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20495 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20496 deplibs_check_method reload_flag reload_cmds need_locks \
20497 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20498 lt_cv_sys_global_symbol_to_c_name_address \
20499 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20500 old_postinstall_cmds old_postuninstall_cmds \
20504 lt_prog_compiler_wl_F77 \
20505 lt_prog_compiler_pic_F77 \
20506 lt_prog_compiler_static_F77 \
20507 lt_prog_compiler_no_builtin_flag_F77 \
20508 export_dynamic_flag_spec_F77 \
20509 thread_safe_flag_spec_F77 \
20510 whole_archive_flag_spec_F77 \
20511 enable_shared_with_static_runtimes_F77 \
20512 old_archive_cmds_F77 \
20513 old_archive_from_new_cmds_F77 \
20514 predep_objects_F77 \
20515 postdep_objects_F77 \
20518 compiler_lib_search_path_F77 \
20520 archive_expsym_cmds_F77 \
20521 postinstall_cmds_F77 \
20522 postuninstall_cmds_F77 \
20523 old_archive_from_expsyms_cmds_F77 \
20524 allow_undefined_flag_F77 \
20525 no_undefined_flag_F77 \
20526 export_symbols_cmds_F77 \
20527 hardcode_libdir_flag_spec_F77 \
20528 hardcode_libdir_flag_spec_ld_F77 \
20529 hardcode_libdir_separator_F77 \
20530 hardcode_automatic_F77 \
20532 module_expsym_cmds_F77 \
20533 lt_cv_prog_compiler_c_o_F77 \
20534 exclude_expsyms_F77 \
20535 include_expsyms_F77; do
20538 old_archive_cmds_F77 | \
20539 old_archive_from_new_cmds_F77 | \
20540 archive_cmds_F77 | \
20541 archive_expsym_cmds_F77 | \
20542 module_cmds_F77 | \
20543 module_expsym_cmds_F77 | \
20544 old_archive_from_expsyms_cmds_F77 | \
20545 export_symbols_cmds_F77 | \
20546 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20547 postinstall_cmds | postuninstall_cmds | \
20548 old_postinstall_cmds | old_postuninstall_cmds | \
20549 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20550 # Double-quote double-evaled strings.
20551 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20560 *'\$0 --fallback-echo"')
20561 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20567 cat <<__EOF__ >> "$cfgfile"
20568 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20570 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20572 # Shell to use when invoking shell scripts.
20575 # Whether or not to build shared libraries.
20576 build_libtool_libs=$enable_shared
20578 # Whether or not to build static libraries.
20579 build_old_libs=$enable_static
20581 # Whether or not to add -lc for building shared libraries.
20582 build_libtool_need_lc=$archive_cmds_need_lc_F77
20584 # Whether or not to disallow shared libs when runtime libs are static
20585 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20587 # Whether or not to optimize for fast installation.
20588 fast_install=$enable_fast_install
20591 host_alias=$host_alias
20594 # An echo program that does not interpret backslashes.
20599 AR_FLAGS=$lt_AR_FLAGS
20604 # A language-specific compiler.
20605 CC=$lt_compiler_F77
20607 # Is the compiler the GNU C compiler?
20613 # The linker used to build libraries.
20616 # Whether we need hard or soft links.
20619 # A BSD-compatible nm program.
20622 # A symbol stripping program
20625 # Used to examine libraries when file_magic_cmd begins "file"
20626 MAGIC_CMD=$MAGIC_CMD
20628 # Used on cygwin: DLL creation program.
20631 # Used on cygwin: object dumper.
20634 # Used on cygwin: assembler.
20637 # The name of the directory that contains temporary libtool files.
20640 # How to create reloadable object files.
20641 reload_flag=$lt_reload_flag
20642 reload_cmds=$lt_reload_cmds
20644 # How to pass a linker flag through the compiler.
20645 wl=$lt_lt_prog_compiler_wl_F77
20647 # Object file suffix (normally "o").
20648 objext="$ac_objext"
20650 # Old archive suffix (normally "a").
20653 # Shared library suffix (normally ".so").
20654 shrext_cmds='$shrext_cmds'
20656 # Executable file suffix (normally "").
20659 # Additional compiler flags for building library objects.
20660 pic_flag=$lt_lt_prog_compiler_pic_F77
20663 # What is the maximum length of a command?
20664 max_cmd_len=$lt_cv_sys_max_cmd_len
20666 # Does compiler simultaneously support -c and -o options?
20667 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20669 # Must we lock files when doing compilation ?
20670 need_locks=$lt_need_locks
20672 # Do we need the lib prefix for modules?
20673 need_lib_prefix=$need_lib_prefix
20675 # Do we need a version for libraries?
20676 need_version=$need_version
20678 # Whether dlopen is supported.
20679 dlopen_support=$enable_dlopen
20681 # Whether dlopen of programs is supported.
20682 dlopen_self=$enable_dlopen_self
20684 # Whether dlopen of statically linked programs is supported.
20685 dlopen_self_static=$enable_dlopen_self_static
20687 # Compiler flag to prevent dynamic linking.
20688 link_static_flag=$lt_lt_prog_compiler_static_F77
20690 # Compiler flag to turn off builtin functions.
20691 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20693 # Compiler flag to allow reflexive dlopens.
20694 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20696 # Compiler flag to generate shared objects directly from archives.
20697 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20699 # Compiler flag to generate thread-safe objects.
20700 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20702 # Library versioning type.
20703 version_type=$version_type
20705 # Format of library name prefix.
20706 libname_spec=$lt_libname_spec
20708 # List of archive names. First name is the real one, the rest are links.
20709 # The last name is the one that the linker finds with -lNAME.
20710 library_names_spec=$lt_library_names_spec
20712 # The coded name of the library, if different from the real name.
20713 soname_spec=$lt_soname_spec
20715 # Commands used to build and install an old-style archive.
20717 old_archive_cmds=$lt_old_archive_cmds_F77
20718 old_postinstall_cmds=$lt_old_postinstall_cmds
20719 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20721 # Create an old-style archive from a shared archive.
20722 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20724 # Create a temporary old-style archive to link instead of a shared archive.
20725 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20727 # Commands used to build and install a shared archive.
20728 archive_cmds=$lt_archive_cmds_F77
20729 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20730 postinstall_cmds=$lt_postinstall_cmds
20731 postuninstall_cmds=$lt_postuninstall_cmds
20733 # Commands used to build a loadable module (assumed same as above if empty)
20734 module_cmds=$lt_module_cmds_F77
20735 module_expsym_cmds=$lt_module_expsym_cmds_F77
20737 # Commands to strip libraries.
20738 old_striplib=$lt_old_striplib
20739 striplib=$lt_striplib
20741 # Dependencies to place before the objects being linked to create a
20743 predep_objects=$lt_predep_objects_F77
20745 # Dependencies to place after the objects being linked to create a
20747 postdep_objects=$lt_postdep_objects_F77
20749 # Dependencies to place before the objects being linked to create a
20751 predeps=$lt_predeps_F77
20753 # Dependencies to place after the objects being linked to create a
20755 postdeps=$lt_postdeps_F77
20757 # The library search path used internally by the compiler when linking
20758 # a shared library.
20759 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20761 # Method to check whether dependent libraries are shared objects.
20762 deplibs_check_method=$lt_deplibs_check_method
20764 # Command to use when deplibs_check_method == file_magic.
20765 file_magic_cmd=$lt_file_magic_cmd
20767 # Flag that allows shared libraries with undefined symbols to be built.
20768 allow_undefined_flag=$lt_allow_undefined_flag_F77
20770 # Flag that forces no undefined symbols.
20771 no_undefined_flag=$lt_no_undefined_flag_F77
20773 # Commands used to finish a libtool library installation in a directory.
20774 finish_cmds=$lt_finish_cmds
20776 # Same as above, but a single script fragment to be evaled but not shown.
20777 finish_eval=$lt_finish_eval
20779 # Take the output of nm and produce a listing of raw symbols and C names.
20780 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20782 # Transform the output of nm in a proper C declaration
20783 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20785 # Transform the output of nm in a C name address pair
20786 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20788 # This is the shared library runtime path variable.
20789 runpath_var=$runpath_var
20791 # This is the shared library path variable.
20792 shlibpath_var=$shlibpath_var
20794 # Is shlibpath searched before the hard-coded library search path?
20795 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20797 # How to hardcode a shared library path into an executable.
20798 hardcode_action=$hardcode_action_F77
20800 # Whether we should hardcode library paths into libraries.
20801 hardcode_into_libs=$hardcode_into_libs
20803 # Flag to hardcode \$libdir into a binary during linking.
20804 # This must work even if \$libdir does not exist.
20805 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20807 # If ld is used when linking, flag to hardcode \$libdir into
20808 # a binary during linking. This must work even if \$libdir does
20810 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20812 # Whether we need a single -rpath flag with a separated argument.
20813 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20815 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20816 # resulting binary.
20817 hardcode_direct=$hardcode_direct_F77
20819 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20820 # resulting binary.
20821 hardcode_minus_L=$hardcode_minus_L_F77
20823 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20824 # the resulting binary.
20825 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20827 # Set to yes if building a shared library automatically hardcodes DIR into the library
20828 # and all subsequent libraries and executables linked against it.
20829 hardcode_automatic=$hardcode_automatic_F77
20831 # Variables whose values should be saved in libtool wrapper scripts and
20832 # restored at relink time.
20833 variables_saved_for_relink="$variables_saved_for_relink"
20835 # Whether libtool must link a program against all its dependency libraries.
20836 link_all_deplibs=$link_all_deplibs_F77
20838 # Compile-time system search path for libraries
20839 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20841 # Run-time system search path for libraries
20842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20844 # Fix the shell variable \$srcfile for the compiler.
20845 fix_srcfile_path="$fix_srcfile_path_F77"
20847 # Set to yes if exported symbols are required.
20848 always_export_symbols=$always_export_symbols_F77
20850 # The commands to list exported symbols.
20851 export_symbols_cmds=$lt_export_symbols_cmds_F77
20853 # The commands to extract the exported symbol list from a shared archive.
20854 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20856 # Symbols that should not be listed in the preloaded symbols.
20857 exclude_expsyms=$lt_exclude_expsyms_F77
20859 # Symbols that must always be exported.
20860 include_expsyms=$lt_include_expsyms_F77
20862 # ### END LIBTOOL TAG CONFIG: $tagname
20868 # If there is no Makefile yet, we rely on a make rule to execute
20869 # `config.status --recheck' to rerun these tests and create the
20870 # libtool script then.
20871 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20872 if test -f "$ltmain_in"; then
20873 test -f Makefile && make "$ltmain"
20879 ac_cpp='$CPP $CPPFLAGS'
20880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20892 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20894 ac_cpp='$CPP $CPPFLAGS'
20895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20900 # Source file extension for Java test sources.
20903 # Object file extension for compiled Java test sources.
20907 # Code to be used in simple compile tests
20908 lt_simple_compile_test_code="class foo {}\n"
20910 # Code to be used in simple link tests
20911 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20915 # If no C compiler was specified, use CC.
20918 # Allow CC to be a program name with arguments.
20922 # Allow CC to be a program name with arguments.
20928 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20929 archive_cmds_need_lc_GCJ=no
20932 lt_prog_compiler_no_builtin_flag_GCJ=
20934 if test "$GCC" = yes; then
20935 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20938 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20939 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20940 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 lt_cv_prog_compiler_rtti_exceptions=no
20944 ac_outfile=conftest.$ac_objext
20945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20946 lt_compiler_flag="-fno-rtti -fno-exceptions"
20947 # Insert the option either (1) after the last *FLAGS variable, or
20948 # (2) before a word containing "conftest.", or (3) at the end.
20949 # Note that $ac_compile itself does not contain backslashes and begins
20950 # with a dollar sign (not a hyphen), so the echo should work correctly.
20951 # The option is referenced via a variable to avoid confusing sed.
20952 lt_compile=`echo "$ac_compile" | $SED \
20953 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20955 -e 's:$: $lt_compiler_flag:'`
20956 (eval echo "\"\$as_me:20956: $lt_compile\"" >&5)
20957 (eval "$lt_compile" 2>conftest.err)
20959 cat conftest.err >&5
20960 echo "$as_me:20960: \$? = $ac_status" >&5
20961 if (exit $ac_status) && test -s "$ac_outfile"; then
20962 # The compiler can only warn and ignore the option if not recognized
20963 # So say no if there are warnings
20964 if test ! -s conftest.err; then
20965 lt_cv_prog_compiler_rtti_exceptions=yes
20971 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20972 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20974 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20975 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20982 lt_prog_compiler_wl_GCJ=
20983 lt_prog_compiler_pic_GCJ=
20984 lt_prog_compiler_static_GCJ=
20986 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20987 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20989 if test "$GCC" = yes; then
20990 lt_prog_compiler_wl_GCJ='-Wl,'
20991 lt_prog_compiler_static_GCJ='-static'
20995 # All AIX code is PIC.
20996 if test "$host_cpu" = ia64; then
20997 # AIX 5 now supports IA64 processor
20998 lt_prog_compiler_static_GCJ='-Bstatic'
21003 # FIXME: we need at least 68020 code to build shared libraries, but
21004 # adding the `-m68020' flag to GCC prevents building anything better,
21006 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21009 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21010 # PIC is the default for these OSes.
21013 mingw* | pw32* | os2*)
21014 # This hack is so that the source file can tell whether it is being
21015 # built for inclusion in a dll (and should export symbols for example).
21016 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21019 darwin* | rhapsody*)
21020 # PIC is the default on this platform
21021 # Common symbols not allowed in MH_DYLIB files
21022 lt_prog_compiler_pic_GCJ='-fno-common'
21026 # Just because we use GCC doesn't mean we suddenly get shared libraries
21027 # on systems that don't support them.
21028 lt_prog_compiler_can_build_shared_GCJ=no
21033 if test -d /usr/nec; then
21034 lt_prog_compiler_pic_GCJ=-Kconform_pic
21039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21040 # not for PA HP-UX.
21041 case "$host_cpu" in
21046 lt_prog_compiler_pic_GCJ='-fPIC'
21052 lt_prog_compiler_pic_GCJ='-fPIC'
21056 # PORTME Check for flag to pass linker flags through the system compiler.
21059 lt_prog_compiler_wl_GCJ='-Wl,'
21060 if test "$host_cpu" = ia64; then
21061 # AIX 5 now supports IA64 processor
21062 lt_prog_compiler_static_GCJ='-Bstatic'
21064 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21068 # PIC is the default on this platform
21069 # Common symbols not allowed in MH_DYLIB files
21070 case "$cc_basename" in
21072 lt_prog_compiler_pic_GCJ='-qnocommon'
21073 lt_prog_compiler_wl_GCJ='-Wl,'
21078 mingw* | pw32* | os2*)
21079 # This hack is so that the source file can tell whether it is being
21080 # built for inclusion in a dll (and should export symbols for example).
21081 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21084 hpux9* | hpux10* | hpux11*)
21085 lt_prog_compiler_wl_GCJ='-Wl,'
21086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21087 # not for PA HP-UX.
21088 case "$host_cpu" in
21093 lt_prog_compiler_pic_GCJ='+Z'
21096 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21097 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21100 irix5* | irix6* | nonstopux*)
21101 lt_prog_compiler_wl_GCJ='-Wl,'
21102 # PIC (with -KPIC) is the default.
21103 lt_prog_compiler_static_GCJ='-non_shared'
21107 lt_prog_compiler_pic_GCJ='-KPIC'
21108 lt_prog_compiler_static_GCJ='-Bstatic'
21114 lt_prog_compiler_wl_GCJ='-Wl,'
21115 lt_prog_compiler_pic_GCJ='-KPIC'
21116 lt_prog_compiler_static_GCJ='-static'
21119 lt_prog_compiler_wl_GCJ='-Wl,'
21120 # All Alpha code is PIC.
21121 lt_prog_compiler_static_GCJ='-non_shared'
21126 osf3* | osf4* | osf5*)
21127 lt_prog_compiler_wl_GCJ='-Wl,'
21128 # All OSF/1 code is PIC.
21129 lt_prog_compiler_static_GCJ='-non_shared'
21133 lt_prog_compiler_pic_GCJ='-Kpic'
21134 lt_prog_compiler_static_GCJ='-dn'
21138 lt_prog_compiler_wl_GCJ='-Wl,'
21139 lt_prog_compiler_pic_GCJ='-KPIC'
21140 lt_prog_compiler_static_GCJ='-Bstatic'
21144 lt_prog_compiler_wl_GCJ='-Qoption ld '
21145 lt_prog_compiler_pic_GCJ='-PIC'
21146 lt_prog_compiler_static_GCJ='-Bstatic'
21149 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21150 lt_prog_compiler_wl_GCJ='-Wl,'
21151 lt_prog_compiler_pic_GCJ='-KPIC'
21152 lt_prog_compiler_static_GCJ='-Bstatic'
21156 if test -d /usr/nec ;then
21157 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21158 lt_prog_compiler_static_GCJ='-Bstatic'
21163 lt_prog_compiler_pic_GCJ='-pic'
21164 lt_prog_compiler_static_GCJ='-Bstatic'
21168 lt_prog_compiler_can_build_shared_GCJ=no
21173 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21174 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21177 # Check to make sure the PIC flag actually works.
21179 if test -n "$lt_prog_compiler_pic_GCJ"; then
21181 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21182 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21183 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 lt_prog_compiler_pic_works_GCJ=no
21187 ac_outfile=conftest.$ac_objext
21188 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21189 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21190 # Insert the option either (1) after the last *FLAGS variable, or
21191 # (2) before a word containing "conftest.", or (3) at the end.
21192 # Note that $ac_compile itself does not contain backslashes and begins
21193 # with a dollar sign (not a hyphen), so the echo should work correctly.
21194 # The option is referenced via a variable to avoid confusing sed.
21195 lt_compile=`echo "$ac_compile" | $SED \
21196 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21198 -e 's:$: $lt_compiler_flag:'`
21199 (eval echo "\"\$as_me:21199: $lt_compile\"" >&5)
21200 (eval "$lt_compile" 2>conftest.err)
21202 cat conftest.err >&5
21203 echo "$as_me:21203: \$? = $ac_status" >&5
21204 if (exit $ac_status) && test -s "$ac_outfile"; then
21205 # The compiler can only warn and ignore the option if not recognized
21206 # So say no if there are warnings
21207 if test ! -s conftest.err; then
21208 lt_prog_compiler_pic_works_GCJ=yes
21214 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21215 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21217 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21218 case $lt_prog_compiler_pic_GCJ in
21220 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21223 lt_prog_compiler_pic_GCJ=
21224 lt_prog_compiler_can_build_shared_GCJ=no
21229 # For platforms which do not support PIC, -DPIC is meaningless:
21231 lt_prog_compiler_pic_GCJ=
21234 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21238 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21239 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21240 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 lt_cv_prog_compiler_c_o_GCJ=no
21244 $rm -r conftest 2>/dev/null
21248 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21250 lt_compiler_flag="-o out/conftest2.$ac_objext"
21251 # Insert the option either (1) after the last *FLAGS variable, or
21252 # (2) before a word containing "conftest.", or (3) at the end.
21253 # Note that $ac_compile itself does not contain backslashes and begins
21254 # with a dollar sign (not a hyphen), so the echo should work correctly.
21255 lt_compile=`echo "$ac_compile" | $SED \
21256 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21258 -e 's:$: $lt_compiler_flag:'`
21259 (eval echo "\"\$as_me:21259: $lt_compile\"" >&5)
21260 (eval "$lt_compile" 2>out/conftest.err)
21262 cat out/conftest.err >&5
21263 echo "$as_me:21263: \$? = $ac_status" >&5
21264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21266 # The compiler can only warn and ignore the option if not recognized
21267 # So say no if there are warnings
21268 if test ! -s out/conftest.err; then
21269 lt_cv_prog_compiler_c_o_GCJ=yes
21274 # SGI C++ compiler will create directory out/ii_files/ for
21275 # template instantiation
21276 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21277 $rm out/* && rmdir out
21283 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21284 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21287 hard_links="nottested"
21288 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21289 # do not overwrite the value of need_locks provided by the user
21290 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21291 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21296 ln conftest.a conftest.b 2>&5 || hard_links=no
21297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21298 echo "$as_me:$LINENO: result: $hard_links" >&5
21299 echo "${ECHO_T}$hard_links" >&6
21300 if test "$hard_links" = no; then
21301 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21302 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21309 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21310 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21313 allow_undefined_flag_GCJ=
21314 enable_shared_with_static_runtimes_GCJ=no
21316 archive_expsym_cmds_GCJ=
21317 old_archive_From_new_cmds_GCJ=
21318 old_archive_from_expsyms_cmds_GCJ=
21319 export_dynamic_flag_spec_GCJ=
21320 whole_archive_flag_spec_GCJ=
21321 thread_safe_flag_spec_GCJ=
21322 hardcode_libdir_flag_spec_GCJ=
21323 hardcode_libdir_flag_spec_ld_GCJ=
21324 hardcode_libdir_separator_GCJ=
21325 hardcode_direct_GCJ=no
21326 hardcode_minus_L_GCJ=no
21327 hardcode_shlibpath_var_GCJ=unsupported
21328 link_all_deplibs_GCJ=unknown
21329 hardcode_automatic_GCJ=no
21331 module_expsym_cmds_GCJ=
21332 always_export_symbols_GCJ=no
21333 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21334 # include_expsyms should be a list of space-separated symbols to be *always*
21335 # included in the symbol list
21336 include_expsyms_GCJ=
21337 # exclude_expsyms can be an extended regexp of symbols to exclude
21338 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21339 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21340 # as well as any symbol that contains `d'.
21341 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21342 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21343 # platforms (ab)use it in PIC code, but their linkers get confused if
21344 # the symbol is explicitly referenced. Since portable code cannot
21345 # rely on this symbol name, it's probably fine to never include it in
21346 # preloaded symbol tables.
21347 extract_expsyms_cmds=
21350 cygwin* | mingw* | pw32*)
21351 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21352 # When not using gcc, we currently assume that we are using
21353 # Microsoft Visual C++.
21354 if test "$GCC" != yes; then
21364 if test "$with_gnu_ld" = yes; then
21365 # If archive_cmds runs LD, not CC, wlarc should be empty
21368 # See if GNU ld supports shared libraries.
21370 aix3* | aix4* | aix5*)
21371 # On AIX/PPC, the GNU linker is very broken
21372 if test "$host_cpu" != ia64; then
21376 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21377 *** to be unable to reliably create shared libraries on AIX.
21378 *** Therefore, libtool is disabling shared libraries support. If you
21379 *** really care for shared libraries, you may want to modify your PATH
21380 *** so that a non-GNU linker is found, and then restart.
21387 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)'
21388 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21389 hardcode_minus_L_GCJ=yes
21391 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21392 # that the semantics of dynamic libraries on AmigaOS, at least up
21393 # to version 4, is to share data among multiple programs linked
21394 # with the same dynamic library. Since this doesn't match the
21395 # behavior of shared libraries on other platforms, we can't use
21401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21402 allow_undefined_flag_GCJ=unsupported
21403 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21404 # support --undefined. This deserves some investigation. FIXME
21405 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21411 cygwin* | mingw* | pw32*)
21412 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21413 # as there is no search path for DLLs.
21414 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21415 allow_undefined_flag_GCJ=unsupported
21416 always_export_symbols_GCJ=no
21417 enable_shared_with_static_runtimes_GCJ=yes
21418 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21420 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21421 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21422 # If the export-symbols file already is a .def file (1st line
21423 # is EXPORTS), use it as is; otherwise, prepend...
21424 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21425 cp $export_symbols $output_objdir/$soname.def;
21427 echo EXPORTS > $output_objdir/$soname.def;
21428 cat $export_symbols >> $output_objdir/$soname.def;
21430 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21438 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21441 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21442 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21447 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21451 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21452 *** create shared libraries on Solaris systems. Therefore, libtool
21453 *** is disabling shared libraries support. We urge you to upgrade GNU
21454 *** binutils to release 2.9.1 or newer. Another option is to modify
21455 *** your PATH or compiler configuration so that the native linker is
21456 *** used, and then restart.
21459 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21460 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21461 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21468 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21470 hardcode_direct_GCJ=yes
21471 hardcode_shlibpath_var_GCJ=no
21475 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21476 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21477 archive_cmds_GCJ="$tmp_archive_cmds"
21478 supports_anon_versioning=no
21479 case `$LD -v 2>/dev/null` in
21480 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21481 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21482 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21483 *\ 2.11.*) ;; # other 2.11 versions
21484 *) supports_anon_versioning=yes ;;
21486 if test $supports_anon_versioning = yes; then
21487 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21489 $echo "local: *; };" >> $output_objdir/$libname.ver~
21490 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21492 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21500 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21501 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21502 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21509 if test "$ld_shlibs_GCJ" = yes; then
21510 runpath_var=LD_RUN_PATH
21511 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21512 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21513 # ancient GNU ld didn't support --whole-archive et. al.
21514 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21515 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21517 whole_archive_flag_spec_GCJ=
21521 # PORTME fill in a description of your system's linker (not GNU ld)
21524 allow_undefined_flag_GCJ=unsupported
21525 always_export_symbols_GCJ=yes
21526 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'
21527 # Note: this linker hardcodes the directories in LIBPATH if there
21528 # are no directories specified by -L.
21529 hardcode_minus_L_GCJ=yes
21530 if test "$GCC" = yes && test -z "$link_static_flag"; then
21531 # Neither direct hardcoding nor static linking is supported with a
21533 hardcode_direct_GCJ=unsupported
21538 if test "$host_cpu" = ia64; then
21539 # On IA64, the linker does run time linking by default, so we don't
21540 # have to do anything special.
21541 aix_use_runtimelinking=no
21542 exp_sym_flag='-Bexport'
21545 # If we're using GNU nm, then we don't want the "-C" option.
21546 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21547 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21548 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'
21550 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'
21552 aix_use_runtimelinking=no
21554 # Test if we are trying to use run time linking or normal
21555 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21556 # need to do runtime linking.
21557 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21558 for ld_flag in $LDFLAGS; do
21559 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21560 aix_use_runtimelinking=yes
21566 exp_sym_flag='-bexport'
21567 no_entry_flag='-bnoentry'
21570 # When large executables or shared objects are built, AIX ld can
21571 # have problems creating the table of contents. If linking a library
21572 # or program results in "error TOC overflow" add -mminimal-toc to
21573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21576 archive_cmds_GCJ=''
21577 hardcode_direct_GCJ=yes
21578 hardcode_libdir_separator_GCJ=':'
21579 link_all_deplibs_GCJ=yes
21581 if test "$GCC" = yes; then
21582 case $host_os in aix4.012|aix4.012.*)
21583 # We only want to do this on AIX 4.2 and lower, the check
21584 # below for broken collect2 doesn't work under 4.3+
21585 collect2name=`${CC} -print-prog-name=collect2`
21586 if test -f "$collect2name" && \
21587 strings "$collect2name" | grep resolve_lib_name >/dev/null
21589 # We have reworked collect2
21590 hardcode_direct_GCJ=yes
21592 # We have old collect2
21593 hardcode_direct_GCJ=unsupported
21594 # It fails to find uninstalled libraries when the uninstalled
21595 # path is not listed in the libpath. Setting hardcode_minus_L
21596 # to unsupported forces relinking
21597 hardcode_minus_L_GCJ=yes
21598 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21599 hardcode_libdir_separator_GCJ=
21602 shared_flag='-shared'
21605 if test "$host_cpu" = ia64; then
21606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21607 # chokes on -Wl,-G. The following line is correct:
21610 if test "$aix_use_runtimelinking" = yes; then
21611 shared_flag='${wl}-G'
21613 shared_flag='${wl}-bM:SRE'
21618 # It seems that -bexpall does not export symbols beginning with
21619 # underscore (_), so it is better to generate a list of symbols to export.
21620 always_export_symbols_GCJ=yes
21621 if test "$aix_use_runtimelinking" = yes; then
21622 # Warning - without using the other runtime loading flags (-brtl),
21623 # -berok will link without error, but may produce a broken library.
21624 allow_undefined_flag_GCJ='-berok'
21625 # Determine the default libpath from the value encoded in an empty executable.
21626 cat >conftest.$ac_ext <<_ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21641 rm -f conftest.$ac_objext conftest$ac_exeext
21642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21643 (eval $ac_link) 2>conftest.er1
21645 grep -v '^ *+' conftest.er1 >conftest.err
21647 cat conftest.err >&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } &&
21650 { ac_try='test -z "$ac_c_werror_flag"
21651 || test ! -s conftest.err'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest$ac_exeext'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }; then
21664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21666 # Check for a 64-bit object if we didn't find anything.
21667 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; }
21670 echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21674 rm -f conftest.err conftest.$ac_objext \
21675 conftest$ac_exeext conftest.$ac_ext
21676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21678 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21679 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"
21681 if test "$host_cpu" = ia64; then
21682 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21683 allow_undefined_flag_GCJ="-z nodefs"
21684 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"
21686 # Determine the default libpath from the value encoded in an empty executable.
21687 cat >conftest.$ac_ext <<_ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21702 rm -f conftest.$ac_objext conftest$ac_exeext
21703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21704 (eval $ac_link) 2>conftest.er1
21706 grep -v '^ *+' conftest.er1 >conftest.err
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } &&
21711 { ac_try='test -z "$ac_c_werror_flag"
21712 || test ! -s conftest.err'
21713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714 (eval $ac_try) 2>&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); }; } &&
21718 { ac_try='test -s conftest$ac_exeext'
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21727 # Check for a 64-bit object if we didn't find anything.
21728 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; }
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21735 rm -f conftest.err conftest.$ac_objext \
21736 conftest$ac_exeext conftest.$ac_ext
21737 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21739 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21740 # Warning - without using the other run time loading flags,
21741 # -berok will link without error, but may produce a broken library.
21742 no_undefined_flag_GCJ=' ${wl}-bernotok'
21743 allow_undefined_flag_GCJ=' ${wl}-berok'
21744 # -bexpall does not export symbols beginning with underscore (_)
21745 always_export_symbols_GCJ=yes
21746 # Exported symbols can be pulled into shared objects from archives
21747 whole_archive_flag_spec_GCJ=' '
21748 archive_cmds_need_lc_GCJ=yes
21749 # This is similar to how AIX traditionally builds it's shared libraries.
21750 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'
21756 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)'
21757 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21758 hardcode_minus_L_GCJ=yes
21759 # see comment about different semantics on the GNU ld section
21764 export_dynamic_flag_spec_GCJ=-rdynamic
21767 cygwin* | mingw* | pw32*)
21768 # When not using gcc, we currently assume that we are using
21769 # Microsoft Visual C++.
21770 # hardcode_libdir_flag_spec is actually meaningless, as there is
21771 # no search path for DLLs.
21772 hardcode_libdir_flag_spec_GCJ=' '
21773 allow_undefined_flag_GCJ=unsupported
21774 # Tell ltmain to make .lib files, not .a files.
21776 # Tell ltmain to make .dll files, not .so files.
21778 # FIXME: Setting linknames here is a bad hack.
21779 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21780 # The linker will automatically build a .lib file if we build a DLL.
21781 old_archive_From_new_cmds_GCJ='true'
21782 # FIXME: Should let the user specify the lib program.
21783 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21784 fix_srcfile_path='`cygpath -w "$srcfile"`'
21785 enable_shared_with_static_runtimes_GCJ=yes
21788 darwin* | rhapsody*)
21790 rhapsody* | darwin1.[012])
21791 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21794 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21795 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21797 case ${MACOSX_DEPLOYMENT_TARGET} in
21799 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21802 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21808 archive_cmds_need_lc_GCJ=no
21809 hardcode_direct_GCJ=no
21810 hardcode_automatic_GCJ=yes
21811 hardcode_shlibpath_var_GCJ=unsupported
21812 whole_archive_flag_spec_GCJ=''
21813 link_all_deplibs_GCJ=yes
21814 if test "$GCC" = yes ; then
21815 output_verbose_link_cmd='echo'
21816 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21817 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21819 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}'
21820 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}'
21822 case "$cc_basename" in
21824 output_verbose_link_cmd='echo'
21825 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21826 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21827 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21828 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}'
21829 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}'
21839 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21840 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21841 hardcode_shlibpath_var_GCJ=no
21848 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21849 # support. Future versions do this automatically, but an explicit c++rt0.o
21850 # does not break anything, and helps significantly (at the cost of a little
21853 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21854 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21855 hardcode_direct_GCJ=yes
21856 hardcode_shlibpath_var_GCJ=no
21859 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21861 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21862 hardcode_direct_GCJ=yes
21863 hardcode_minus_L_GCJ=yes
21864 hardcode_shlibpath_var_GCJ=no
21867 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21868 freebsd* | kfreebsd*-gnu)
21869 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21870 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21871 hardcode_direct_GCJ=yes
21872 hardcode_shlibpath_var_GCJ=no
21876 if test "$GCC" = yes; then
21877 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'
21879 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'
21881 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21882 hardcode_libdir_separator_GCJ=:
21883 hardcode_direct_GCJ=yes
21885 # hardcode_minus_L: Not really in the search PATH,
21886 # but as the default location of the library.
21887 hardcode_minus_L_GCJ=yes
21888 export_dynamic_flag_spec_GCJ='${wl}-E'
21892 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21893 case "$host_cpu" in
21895 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21898 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21902 case "$host_cpu" in
21904 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21907 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21911 if test "$with_gnu_ld" = no; then
21912 case "$host_cpu" in
21914 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21915 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21916 hardcode_libdir_separator_GCJ=:
21917 hardcode_direct_GCJ=no
21918 hardcode_shlibpath_var_GCJ=no
21921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21922 hardcode_direct_GCJ=no
21923 hardcode_shlibpath_var_GCJ=no
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
21930 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21931 hardcode_libdir_separator_GCJ=:
21932 hardcode_direct_GCJ=yes
21933 export_dynamic_flag_spec_GCJ='${wl}-E'
21935 # hardcode_minus_L: Not really in the search PATH,
21936 # but as the default location of the library.
21937 hardcode_minus_L_GCJ=yes
21943 irix5* | irix6* | nonstopux*)
21944 if test "$GCC" = yes; then
21945 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'
21947 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'
21948 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21950 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21951 hardcode_libdir_separator_GCJ=:
21952 link_all_deplibs_GCJ=yes
21956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21957 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21959 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21961 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21962 hardcode_direct_GCJ=yes
21963 hardcode_shlibpath_var_GCJ=no
21967 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21968 hardcode_direct_GCJ=yes
21969 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21970 hardcode_libdir_separator_GCJ=:
21971 hardcode_shlibpath_var_GCJ=no
21975 hardcode_direct_GCJ=yes
21976 hardcode_shlibpath_var_GCJ=no
21977 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21978 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21979 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21980 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21981 export_dynamic_flag_spec_GCJ='${wl}-E'
21984 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21985 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21986 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21989 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21997 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21998 hardcode_minus_L_GCJ=yes
21999 allow_undefined_flag_GCJ=unsupported
22000 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'
22001 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22005 if test "$GCC" = yes; then
22006 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22007 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'
22009 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22010 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'
22012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22013 hardcode_libdir_separator_GCJ=:
22016 osf4* | osf5*) # as osf3* with the addition of -msym flag
22017 if test "$GCC" = yes; then
22018 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22019 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'
22020 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22022 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22023 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'
22024 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~
22025 $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'
22027 # Both c and cxx compiler support -rpath directly
22028 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22030 hardcode_libdir_separator_GCJ=:
22034 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22035 hardcode_shlibpath_var_GCJ=no
22036 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22037 runpath_var=LD_RUN_PATH
22038 hardcode_runpath_var=yes
22042 no_undefined_flag_GCJ=' -z text'
22043 if test "$GCC" = yes; then
22044 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22045 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22046 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22048 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22049 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22052 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22053 hardcode_shlibpath_var_GCJ=no
22055 solaris2.[0-5] | solaris2.[0-5].*) ;;
22056 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22057 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22059 link_all_deplibs_GCJ=yes
22063 if test "x$host_vendor" = xsequent; then
22064 # Use $CC to link under sequent, because it throws in some extra .o
22065 # files that make .init and .fini sections work.
22066 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22068 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22070 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22071 hardcode_direct_GCJ=yes
22072 hardcode_minus_L_GCJ=yes
22073 hardcode_shlibpath_var_GCJ=no
22077 case $host_vendor in
22079 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22080 hardcode_direct_GCJ=yes # is this really true???
22083 ## LD is ld it makes a PLAMLIB
22084 ## CC just makes a GrossModule.
22085 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22086 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22087 hardcode_direct_GCJ=no
22090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22091 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22094 runpath_var='LD_RUN_PATH'
22095 hardcode_shlibpath_var_GCJ=no
22099 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22100 hardcode_shlibpath_var_GCJ=no
22101 export_dynamic_flag_spec_GCJ='-Bexport'
22105 if test -d /usr/nec; then
22106 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22107 hardcode_shlibpath_var_GCJ=no
22108 runpath_var=LD_RUN_PATH
22109 hardcode_runpath_var=yes
22115 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22116 hardcode_direct_GCJ=yes
22117 hardcode_minus_L_GCJ=no
22118 hardcode_shlibpath_var_GCJ=no
22119 hardcode_runpath_var=yes
22120 runpath_var=LD_RUN_PATH
22123 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22124 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22125 if test "$GCC" = yes; then
22126 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22128 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22130 runpath_var='LD_RUN_PATH'
22131 hardcode_shlibpath_var_GCJ=no
22135 no_undefined_flag_GCJ=' -z text'
22136 # $CC -shared without GNU ld will not create a library from C++
22137 # object files and a static libstdc++, better avoid it by now
22138 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22139 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22140 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22141 hardcode_libdir_flag_spec_GCJ=
22142 hardcode_shlibpath_var_GCJ=no
22143 runpath_var='LD_RUN_PATH'
22147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22149 hardcode_shlibpath_var_GCJ=no
22158 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22159 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22160 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22163 if test "$GCC" = yes; then
22164 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22168 # Do we need to explicitly link libc?
22170 case "x$archive_cmds_need_lc_GCJ" in
22172 # Assume -lc should be added
22173 archive_cmds_need_lc_GCJ=yes
22175 if test "$enable_shared" = yes && test "$GCC" = yes; then
22176 case $archive_cmds_GCJ in
22178 # FIXME: we may have to deal with multi-command sequences.
22181 # Test whether the compiler implicitly links with -lc since on some
22182 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22183 # to ld, don't add -lc before -lgcc.
22184 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22185 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22187 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22190 (eval $ac_compile) 2>&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } 2>conftest.err; then
22196 libobjs=conftest.$ac_objext
22198 wl=$lt_prog_compiler_wl_GCJ
22204 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22205 allow_undefined_flag_GCJ=
22206 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22207 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }
22212 archive_cmds_need_lc_GCJ=no
22214 archive_cmds_need_lc_GCJ=yes
22216 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22218 cat conftest.err 1>&5
22221 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22222 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22229 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22230 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22231 library_names_spec=
22232 libname_spec='lib$name'
22236 postuninstall_cmds=
22240 shlibpath_overrides_runpath=unknown
22242 dynamic_linker="$host_os ld.so"
22243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22244 if test "$GCC" = yes; then
22245 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22246 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22247 # if the path contains ";" then we assume it to be the separator
22248 # otherwise default to the standard path separator (i.e. ":") - it is
22249 # assumed that no part of a normal pathname contains ";" but that should
22250 # okay in the real world where ";" in dirpaths is itself problematic.
22251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22258 need_lib_prefix=unknown
22259 hardcode_into_libs=no
22261 # when you set need_version to no, make sure it does not cause -set_version
22262 # flags to be left without arguments
22263 need_version=unknown
22268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22269 shlibpath_var=LIBPATH
22271 # AIX 3 has no versioning support, so we append a major version to the name.
22272 soname_spec='${libname}${release}${shared_ext}$major'
22279 hardcode_into_libs=yes
22280 if test "$host_cpu" = ia64; then
22281 # AIX 5 supports IA64
22282 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22283 shlibpath_var=LD_LIBRARY_PATH
22285 # With GCC up to 2.95.x, collect2 would create an import file
22286 # for dependence libraries. The import file would start with
22287 # the line `#! .'. This would cause the generated library to
22288 # depend on `.', always an invalid library. This was fixed in
22289 # development snapshots of GCC prior to 3.0.
22291 aix4 | aix4.[01] | aix4.[01].*)
22292 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22294 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22297 can_build_shared=no
22301 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22302 # soname into executable. Probably we can add versioning support to
22303 # collect2, so additional links can be useful in future.
22304 if test "$aix_use_runtimelinking" = yes; then
22305 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22306 # instead of lib<name>.a to let people know that these are not
22307 # typical AIX shared libraries.
22308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22310 # We preserve .a as extension for shared libraries through AIX4.2
22311 # and later when we are not doing run time linking.
22312 library_names_spec='${libname}${release}.a $libname.a'
22313 soname_spec='${libname}${release}${shared_ext}$major'
22315 shlibpath_var=LIBPATH
22320 library_names_spec='$libname.ixlibrary $libname.a'
22321 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22322 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'
22326 library_names_spec='${libname}${shared_ext}'
22327 dynamic_linker="$host_os ld.so"
22328 shlibpath_var=LIBRARY_PATH
22334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22335 soname_spec='${libname}${release}${shared_ext}$major'
22336 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22337 shlibpath_var=LD_LIBRARY_PATH
22338 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22339 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22340 # the default ld.so.conf also contains /usr/contrib/lib and
22341 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22342 # libtool to hard-code these into programs
22345 cygwin* | mingw* | pw32*)
22346 version_type=windows
22351 case $GCC,$host_os in
22352 yes,cygwin* | yes,mingw* | yes,pw32*)
22353 library_names_spec='$libname.dll.a'
22354 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22355 postinstall_cmds='base_file=`basename \${file}`~
22356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22357 dldir=$destdir/`dirname \$dlpath`~
22358 test -d \$dldir || mkdir -p \$dldir~
22359 $install_prog $dir/$dlname \$dldir/$dlname'
22360 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22361 dlpath=$dir/\$dldll~
22363 shlibpath_overrides_runpath=yes
22367 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22368 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22369 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22372 # MinGW DLLs use traditional 'lib' prefix
22373 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22374 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22375 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22376 # It is most probably a Windows format PATH printed by
22377 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22378 # path with ; separators, and with drive letters. We can handle the
22379 # drive letters (cygwin fileutils understands them), so leave them,
22380 # especially as we might pass files found there to a mingw objdump,
22381 # which wouldn't understand a cygwinified path. Ahh.
22382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22388 # pw32 DLLs use 'pw' prefix rather than 'lib'
22389 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22395 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22398 dynamic_linker='Win32 ld.exe'
22399 # FIXME: first we should search . and the directory the executable is in
22403 darwin* | rhapsody*)
22404 dynamic_linker="$host_os dyld"
22405 version_type=darwin
22408 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22409 soname_spec='${libname}${release}${major}$shared_ext'
22410 shlibpath_overrides_runpath=yes
22411 shlibpath_var=DYLD_LIBRARY_PATH
22412 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22413 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22414 if test "$GCC" = yes; then
22415 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"`
22417 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22419 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22427 soname_spec='${libname}${release}${shared_ext}$major'
22428 shlibpath_var=LD_LIBRARY_PATH
22439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22440 soname_spec='${libname}${release}${shared_ext}$major'
22441 shlibpath_var=LD_LIBRARY_PATH
22442 shlibpath_overrides_runpath=no
22443 hardcode_into_libs=yes
22444 dynamic_linker='GNU ld.so'
22448 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22449 version_type=freebsd-$objformat
22450 case $version_type in
22452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22457 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22461 shlibpath_var=LD_LIBRARY_PATH
22464 shlibpath_overrides_runpath=yes
22466 freebsd3.01* | freebsdelf3.01*)
22467 shlibpath_overrides_runpath=yes
22468 hardcode_into_libs=yes
22471 shlibpath_overrides_runpath=no
22472 hardcode_into_libs=yes
22481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22482 soname_spec='${libname}${release}${shared_ext}$major'
22483 shlibpath_var=LD_LIBRARY_PATH
22484 hardcode_into_libs=yes
22487 hpux9* | hpux10* | hpux11*)
22488 # Give a soname corresponding to the major version so that dld.sl refuses to
22489 # link against other versions.
22493 case "$host_cpu" in
22496 hardcode_into_libs=yes
22497 dynamic_linker="$host_os dld.so"
22498 shlibpath_var=LD_LIBRARY_PATH
22499 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22501 soname_spec='${libname}${release}${shared_ext}$major'
22502 if test "X$HPUX_IA64_MODE" = X32; then
22503 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22505 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22511 hardcode_into_libs=yes
22512 dynamic_linker="$host_os dld.sl"
22513 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22516 soname_spec='${libname}${release}${shared_ext}$major'
22517 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22522 dynamic_linker="$host_os dld.sl"
22523 shlibpath_var=SHLIB_PATH
22524 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22526 soname_spec='${libname}${release}${shared_ext}$major'
22529 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22530 postinstall_cmds='chmod 555 $lib'
22533 irix5* | irix6* | nonstopux*)
22535 nonstopux*) version_type=nonstopux ;;
22537 if test "$lt_cv_prog_gnu_ld" = yes; then
22545 soname_spec='${libname}${release}${shared_ext}$major'
22546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22548 irix5* | nonstopux*)
22549 libsuff= shlibsuff=
22552 case $LD in # libtool.m4 will add one of these switches to LD
22553 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22554 libsuff= shlibsuff= libmagic=32-bit;;
22555 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22556 libsuff=32 shlibsuff=N32 libmagic=N32;;
22557 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22558 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22559 *) libsuff= shlibsuff= libmagic=never-match;;
22563 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22564 shlibpath_overrides_runpath=no
22565 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22566 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22567 hardcode_into_libs=yes
22570 # No shared lib support for Linux oldld, aout, or coff.
22571 linux*oldld* | linux*aout* | linux*coff*)
22575 # This must be Linux ELF.
22580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22581 soname_spec='${libname}${release}${shared_ext}$major'
22582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22583 shlibpath_var=LD_LIBRARY_PATH
22584 shlibpath_overrides_runpath=no
22585 # This implies no fast_install, which is unacceptable.
22586 # Some rework will be needed to allow for fast_install
22587 # before this can be enabled.
22588 hardcode_into_libs=yes
22590 # Append ld.so.conf contents to the search path
22591 if test -f /etc/ld.so.conf; then
22592 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22593 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22596 # We used to test for /lib/ld.so.1 and disable shared libraries on
22597 # powerpc, because MkLinux only supported shared libraries with the
22598 # GNU dynamic linker. Since this was broken with cross compilers,
22599 # most powerpc-linux boxes support dynamic linking these days and
22600 # people can always --disable-shared, the test was removed, and we
22601 # assume the GNU/Linux dynamic linker is in use.
22602 dynamic_linker='GNU/Linux ld.so'
22609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22610 soname_spec='${libname}${release}${shared_ext}$major'
22611 shlibpath_var=LD_LIBRARY_PATH
22612 shlibpath_overrides_runpath=no
22613 hardcode_into_libs=yes
22614 dynamic_linker='GNU ld.so'
22621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22624 dynamic_linker='NetBSD (a.out) ld.so'
22626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22627 soname_spec='${libname}${release}${shared_ext}$major'
22628 dynamic_linker='NetBSD ld.elf_so'
22630 shlibpath_var=LD_LIBRARY_PATH
22631 shlibpath_overrides_runpath=yes
22632 hardcode_into_libs=yes
22637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22638 shlibpath_var=LD_LIBRARY_PATH
22639 shlibpath_overrides_runpath=yes
22646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22647 soname_spec='${libname}${release}${shared_ext}$major'
22648 shlibpath_var=LD_LIBRARY_PATH
22649 shlibpath_overrides_runpath=yes
22656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22658 shlibpath_var=LD_LIBRARY_PATH
22659 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22661 openbsd2.[89] | openbsd2.[89].*)
22662 shlibpath_overrides_runpath=no
22665 shlibpath_overrides_runpath=yes
22669 shlibpath_overrides_runpath=yes
22674 libname_spec='$name'
22677 library_names_spec='$libname${shared_ext} $libname.a'
22678 dynamic_linker='OS/2 ld.exe'
22679 shlibpath_var=LIBPATH
22682 osf3* | osf4* | osf5*)
22686 soname_spec='${libname}${release}${shared_ext}$major'
22687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22688 shlibpath_var=LD_LIBRARY_PATH
22689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22695 soname_spec='${libname}${release}${shared_ext}$major'
22696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22697 shlibpath_var=LD_LIBRARY_PATH
22704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22705 soname_spec='${libname}${release}${shared_ext}$major'
22706 shlibpath_var=LD_LIBRARY_PATH
22707 shlibpath_overrides_runpath=yes
22708 hardcode_into_libs=yes
22709 # ldd complains unless libraries are executable
22710 postinstall_cmds='chmod +x $lib'
22715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22716 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22717 shlibpath_var=LD_LIBRARY_PATH
22718 shlibpath_overrides_runpath=yes
22719 if test "$with_gnu_ld" = yes; then
22725 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 soname_spec='${libname}${release}${shared_ext}$major'
22729 shlibpath_var=LD_LIBRARY_PATH
22730 case $host_vendor in
22732 shlibpath_overrides_runpath=no
22734 export_dynamic_flag_spec='${wl}-Blargedynsym'
22735 runpath_var=LD_RUN_PATH
22743 shlibpath_overrides_runpath=no
22744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22750 if test -d /usr/nec ;then
22752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22753 soname_spec='$libname${shared_ext}.$major'
22754 shlibpath_var=LD_LIBRARY_PATH
22760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22761 soname_spec='${libname}${release}${shared_ext}$major'
22762 shlibpath_var=LD_LIBRARY_PATH
22769 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22770 echo "${ECHO_T}$dynamic_linker" >&6
22771 test "$dynamic_linker" = no && can_build_shared=no
22773 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22774 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22775 hardcode_action_GCJ=
22776 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22777 test -n "$runpath_var_GCJ" || \
22778 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22780 # We can hardcode non-existant directories.
22781 if test "$hardcode_direct_GCJ" != no &&
22782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22783 # have to relink, otherwise we might link with an installed library
22784 # when we should be linking with a yet-to-be-installed one
22785 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22786 test "$hardcode_minus_L_GCJ" != no; then
22787 # Linking always hardcodes the temporary library directory.
22788 hardcode_action_GCJ=relink
22790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22791 hardcode_action_GCJ=immediate
22794 # We cannot hardcode anything, or else we can only hardcode existing
22796 hardcode_action_GCJ=unsupported
22798 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22799 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22801 if test "$hardcode_action_GCJ" = relink; then
22802 # Fast installation is not supported
22803 enable_fast_install=no
22804 elif test "$shlibpath_overrides_runpath" = yes ||
22805 test "$enable_shared" = no; then
22806 # Fast installation is not necessary
22807 enable_fast_install=needless
22812 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22813 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22814 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22815 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22816 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22817 echo "$as_me:$LINENO: result: yes" >&5
22818 echo "${ECHO_T}yes" >&6
22820 # FIXME - insert some real tests, host_os isn't really good enough
22823 if test -n "$STRIP" ; then
22824 striplib="$STRIP -x"
22825 echo "$as_me:$LINENO: result: yes" >&5
22826 echo "${ECHO_T}yes" >&6
22828 echo "$as_me:$LINENO: result: no" >&5
22829 echo "${ECHO_T}no" >&6
22833 echo "$as_me:$LINENO: result: no" >&5
22834 echo "${ECHO_T}no" >&6
22839 if test "x$enable_dlopen" != xyes; then
22840 enable_dlopen=unknown
22841 enable_dlopen_self=unknown
22842 enable_dlopen_self_static=unknown
22849 lt_cv_dlopen="load_add_on"
22851 lt_cv_dlopen_self=yes
22855 lt_cv_dlopen="LoadLibrary"
22860 lt_cv_dlopen="dlopen"
22865 # if libdl is installed we need to link against it
22866 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22867 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22868 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22869 echo $ECHO_N "(cached) $ECHO_C" >&6
22871 ac_check_lib_save_LIBS=$LIBS
22873 cat >conftest.$ac_ext <<_ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22880 /* Override any gcc2 internal prototype to avoid an error. */
22884 /* We use char because int might match the return type of a gcc2
22885 builtin and then its argument prototype would still apply. */
22895 rm -f conftest.$ac_objext conftest$ac_exeext
22896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22897 (eval $ac_link) 2>conftest.er1
22899 grep -v '^ *+' conftest.er1 >conftest.err
22901 cat conftest.err >&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } &&
22904 { ac_try='test -z "$ac_c_werror_flag"
22905 || test ! -s conftest.err'
22906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907 (eval $ac_try) 2>&5
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); }; } &&
22911 { ac_try='test -s conftest$ac_exeext'
22912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913 (eval $ac_try) 2>&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); }; }; then
22917 ac_cv_lib_dl_dlopen=yes
22919 echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22922 ac_cv_lib_dl_dlopen=no
22924 rm -f conftest.err conftest.$ac_objext \
22925 conftest$ac_exeext conftest.$ac_ext
22926 LIBS=$ac_check_lib_save_LIBS
22928 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22929 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22930 if test $ac_cv_lib_dl_dlopen = yes; then
22931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22934 lt_cv_dlopen="dyld"
22936 lt_cv_dlopen_self=yes
22943 echo "$as_me:$LINENO: checking for shl_load" >&5
22944 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22945 if test "${ac_cv_func_shl_load+set}" = set; then
22946 echo $ECHO_N "(cached) $ECHO_C" >&6
22948 cat >conftest.$ac_ext <<_ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22954 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22956 #define shl_load innocuous_shl_load
22958 /* System header to define __stub macros and hopefully few prototypes,
22959 which can conflict with char shl_load (); below.
22960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22961 <limits.h> exists even on freestanding compilers. */
22964 # include <limits.h>
22966 # include <assert.h>
22971 /* Override any gcc2 internal prototype to avoid an error. */
22976 /* We use char because int might match the return type of a gcc2
22977 builtin and then its argument prototype would still apply. */
22979 /* The GNU C library defines this for functions which it implements
22980 to always fail with ENOSYS. Some functions are actually named
22981 something starting with __ and the normal name is an alias. */
22982 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22985 char (*f) () = shl_load;
22994 return f != shl_load;
22999 rm -f conftest.$ac_objext conftest$ac_exeext
23000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23001 (eval $ac_link) 2>conftest.er1
23003 grep -v '^ *+' conftest.er1 >conftest.err
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } &&
23008 { ac_try='test -z "$ac_c_werror_flag"
23009 || test ! -s conftest.err'
23010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; } &&
23015 { ac_try='test -s conftest$ac_exeext'
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 ac_cv_func_shl_load=yes
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 ac_cv_func_shl_load=no
23028 rm -f conftest.err conftest.$ac_objext \
23029 conftest$ac_exeext conftest.$ac_ext
23031 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23032 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23033 if test $ac_cv_func_shl_load = yes; then
23034 lt_cv_dlopen="shl_load"
23036 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23037 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23038 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 ac_check_lib_save_LIBS=$LIBS
23043 cat >conftest.$ac_ext <<_ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23050 /* Override any gcc2 internal prototype to avoid an error. */
23054 /* We use char because int might match the return type of a gcc2
23055 builtin and then its argument prototype would still apply. */
23065 rm -f conftest.$ac_objext conftest$ac_exeext
23066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23067 (eval $ac_link) 2>conftest.er1
23069 grep -v '^ *+' conftest.er1 >conftest.err
23071 cat conftest.err >&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
23074 { ac_try='test -z "$ac_c_werror_flag"
23075 || test ! -s conftest.err'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; } &&
23081 { ac_try='test -s conftest$ac_exeext'
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; }; then
23087 ac_cv_lib_dld_shl_load=yes
23089 echo "$as_me: failed program was:" >&5
23090 sed 's/^/| /' conftest.$ac_ext >&5
23092 ac_cv_lib_dld_shl_load=no
23094 rm -f conftest.err conftest.$ac_objext \
23095 conftest$ac_exeext conftest.$ac_ext
23096 LIBS=$ac_check_lib_save_LIBS
23098 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23099 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23100 if test $ac_cv_lib_dld_shl_load = yes; then
23101 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23103 echo "$as_me:$LINENO: checking for dlopen" >&5
23104 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23105 if test "${ac_cv_func_dlopen+set}" = set; then
23106 echo $ECHO_N "(cached) $ECHO_C" >&6
23108 cat >conftest.$ac_ext <<_ACEOF
23111 cat confdefs.h >>conftest.$ac_ext
23112 cat >>conftest.$ac_ext <<_ACEOF
23113 /* end confdefs.h. */
23114 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23116 #define dlopen innocuous_dlopen
23118 /* System header to define __stub macros and hopefully few prototypes,
23119 which can conflict with char dlopen (); below.
23120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23121 <limits.h> exists even on freestanding compilers. */
23124 # include <limits.h>
23126 # include <assert.h>
23131 /* Override any gcc2 internal prototype to avoid an error. */
23136 /* We use char because int might match the return type of a gcc2
23137 builtin and then its argument prototype would still apply. */
23139 /* The GNU C library defines this for functions which it implements
23140 to always fail with ENOSYS. Some functions are actually named
23141 something starting with __ and the normal name is an alias. */
23142 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23145 char (*f) () = dlopen;
23154 return f != dlopen;
23159 rm -f conftest.$ac_objext conftest$ac_exeext
23160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23161 (eval $ac_link) 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } &&
23168 { ac_try='test -z "$ac_c_werror_flag"
23169 || test ! -s conftest.err'
23170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171 (eval $ac_try) 2>&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); }; } &&
23175 { ac_try='test -s conftest$ac_exeext'
23176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177 (eval $ac_try) 2>&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; }; then
23181 ac_cv_func_dlopen=yes
23183 echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23186 ac_cv_func_dlopen=no
23188 rm -f conftest.err conftest.$ac_objext \
23189 conftest$ac_exeext conftest.$ac_ext
23191 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23192 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23193 if test $ac_cv_func_dlopen = yes; then
23194 lt_cv_dlopen="dlopen"
23196 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23197 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23198 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23199 echo $ECHO_N "(cached) $ECHO_C" >&6
23201 ac_check_lib_save_LIBS=$LIBS
23203 cat >conftest.$ac_ext <<_ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23210 /* Override any gcc2 internal prototype to avoid an error. */
23214 /* We use char because int might match the return type of a gcc2
23215 builtin and then its argument prototype would still apply. */
23225 rm -f conftest.$ac_objext conftest$ac_exeext
23226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23227 (eval $ac_link) 2>conftest.er1
23229 grep -v '^ *+' conftest.er1 >conftest.err
23231 cat conftest.err >&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); } &&
23234 { ac_try='test -z "$ac_c_werror_flag"
23235 || test ! -s conftest.err'
23236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237 (eval $ac_try) 2>&5
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; } &&
23241 { ac_try='test -s conftest$ac_exeext'
23242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243 (eval $ac_try) 2>&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); }; }; then
23247 ac_cv_lib_dl_dlopen=yes
23249 echo "$as_me: failed program was:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23252 ac_cv_lib_dl_dlopen=no
23254 rm -f conftest.err conftest.$ac_objext \
23255 conftest$ac_exeext conftest.$ac_ext
23256 LIBS=$ac_check_lib_save_LIBS
23258 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23259 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23260 if test $ac_cv_lib_dl_dlopen = yes; then
23261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23263 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23264 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23265 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23266 echo $ECHO_N "(cached) $ECHO_C" >&6
23268 ac_check_lib_save_LIBS=$LIBS
23269 LIBS="-lsvld $LIBS"
23270 cat >conftest.$ac_ext <<_ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h. */
23277 /* Override any gcc2 internal prototype to avoid an error. */
23281 /* We use char because int might match the return type of a gcc2
23282 builtin and then its argument prototype would still apply. */
23292 rm -f conftest.$ac_objext conftest$ac_exeext
23293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23294 (eval $ac_link) 2>conftest.er1
23296 grep -v '^ *+' conftest.er1 >conftest.err
23298 cat conftest.err >&5
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } &&
23301 { ac_try='test -z "$ac_c_werror_flag"
23302 || test ! -s conftest.err'
23303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304 (eval $ac_try) 2>&5
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; } &&
23308 { ac_try='test -s conftest$ac_exeext'
23309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23310 (eval $ac_try) 2>&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); }; }; then
23314 ac_cv_lib_svld_dlopen=yes
23316 echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23319 ac_cv_lib_svld_dlopen=no
23321 rm -f conftest.err conftest.$ac_objext \
23322 conftest$ac_exeext conftest.$ac_ext
23323 LIBS=$ac_check_lib_save_LIBS
23325 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23326 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23327 if test $ac_cv_lib_svld_dlopen = yes; then
23328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23330 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23331 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23332 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23333 echo $ECHO_N "(cached) $ECHO_C" >&6
23335 ac_check_lib_save_LIBS=$LIBS
23337 cat >conftest.$ac_ext <<_ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h. */
23344 /* Override any gcc2 internal prototype to avoid an error. */
23348 /* We use char because int might match the return type of a gcc2
23349 builtin and then its argument prototype would still apply. */
23359 rm -f conftest.$ac_objext conftest$ac_exeext
23360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23361 (eval $ac_link) 2>conftest.er1
23363 grep -v '^ *+' conftest.er1 >conftest.err
23365 cat conftest.err >&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); } &&
23368 { ac_try='test -z "$ac_c_werror_flag"
23369 || test ! -s conftest.err'
23370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371 (eval $ac_try) 2>&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); }; } &&
23375 { ac_try='test -s conftest$ac_exeext'
23376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377 (eval $ac_try) 2>&5
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); }; }; then
23381 ac_cv_lib_dld_dld_link=yes
23383 echo "$as_me: failed program was:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23386 ac_cv_lib_dld_dld_link=no
23388 rm -f conftest.err conftest.$ac_objext \
23389 conftest$ac_exeext conftest.$ac_ext
23390 LIBS=$ac_check_lib_save_LIBS
23392 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23393 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23394 if test $ac_cv_lib_dld_dld_link = yes; then
23395 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23416 if test "x$lt_cv_dlopen" != xno; then
23422 case $lt_cv_dlopen in
23424 save_CPPFLAGS="$CPPFLAGS"
23425 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23427 save_LDFLAGS="$LDFLAGS"
23428 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23431 LIBS="$lt_cv_dlopen_libs $LIBS"
23433 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23434 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23435 if test "${lt_cv_dlopen_self+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 if test "$cross_compiling" = yes; then :
23439 lt_cv_dlopen_self=cross
23441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23442 lt_status=$lt_dlunknown
23443 cat > conftest.$ac_ext <<EOF
23444 #line 23444 "configure"
23445 #include "confdefs.h"
23454 # define LT_DLGLOBAL RTLD_GLOBAL
23457 # define LT_DLGLOBAL DL_GLOBAL
23459 # define LT_DLGLOBAL 0
23463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23464 find out it does not work in some platform. */
23465 #ifndef LT_DLLAZY_OR_NOW
23467 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23470 # define LT_DLLAZY_OR_NOW DL_LAZY
23473 # define LT_DLLAZY_OR_NOW RTLD_NOW
23476 # define LT_DLLAZY_OR_NOW DL_NOW
23478 # define LT_DLLAZY_OR_NOW 0
23486 extern "C" void exit (int);
23489 void fnord() { int i=42;}
23492 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23493 int status = $lt_dlunknown;
23497 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23498 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23499 /* dlclose (self); */
23505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23506 (eval $ac_link) 2>&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23510 (./conftest; exit; ) 2>/dev/null
23512 case x$lt_status in
23513 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23514 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23515 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23518 # compilation failed
23519 lt_cv_dlopen_self=no
23526 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23527 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23529 if test "x$lt_cv_dlopen_self" = xyes; then
23530 LDFLAGS="$LDFLAGS $link_static_flag"
23531 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23532 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23533 if test "${lt_cv_dlopen_self_static+set}" = set; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
23536 if test "$cross_compiling" = yes; then :
23537 lt_cv_dlopen_self_static=cross
23539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23540 lt_status=$lt_dlunknown
23541 cat > conftest.$ac_ext <<EOF
23542 #line 23542 "configure"
23543 #include "confdefs.h"
23552 # define LT_DLGLOBAL RTLD_GLOBAL
23555 # define LT_DLGLOBAL DL_GLOBAL
23557 # define LT_DLGLOBAL 0
23561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23562 find out it does not work in some platform. */
23563 #ifndef LT_DLLAZY_OR_NOW
23565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23568 # define LT_DLLAZY_OR_NOW DL_LAZY
23571 # define LT_DLLAZY_OR_NOW RTLD_NOW
23574 # define LT_DLLAZY_OR_NOW DL_NOW
23576 # define LT_DLLAZY_OR_NOW 0
23584 extern "C" void exit (int);
23587 void fnord() { int i=42;}
23590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23591 int status = $lt_dlunknown;
23595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23596 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23597 /* dlclose (self); */
23603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23604 (eval $ac_link) 2>&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23608 (./conftest; exit; ) 2>/dev/null
23610 case x$lt_status in
23611 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23612 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23613 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23616 # compilation failed
23617 lt_cv_dlopen_self_static=no
23624 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23625 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23628 CPPFLAGS="$save_CPPFLAGS"
23629 LDFLAGS="$save_LDFLAGS"
23634 case $lt_cv_dlopen_self in
23635 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23636 *) enable_dlopen_self=unknown ;;
23639 case $lt_cv_dlopen_self_static in
23640 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23641 *) enable_dlopen_self_static=unknown ;;
23646 # The else clause should only fire when bootstrapping the
23647 # libtool distribution, otherwise you forgot to ship ltmain.sh
23648 # with your package, and you will get complaints that there are
23649 # no rules to generate ltmain.sh.
23650 if test -f "$ltmain"; then
23651 # See if we are running on zsh, and set the options which allow our commands through
23652 # without removal of \ escapes.
23653 if test -n "${ZSH_VERSION+set}" ; then
23654 setopt NO_GLOB_SUBST
23656 # Now quote all the things that may contain metacharacters while being
23657 # careful not to overquote the AC_SUBSTed values. We take copies of the
23658 # variables and quote the copies for generation of the libtool script.
23659 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23661 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23662 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23663 deplibs_check_method reload_flag reload_cmds need_locks \
23664 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23665 lt_cv_sys_global_symbol_to_c_name_address \
23666 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23667 old_postinstall_cmds old_postuninstall_cmds \
23671 lt_prog_compiler_wl_GCJ \
23672 lt_prog_compiler_pic_GCJ \
23673 lt_prog_compiler_static_GCJ \
23674 lt_prog_compiler_no_builtin_flag_GCJ \
23675 export_dynamic_flag_spec_GCJ \
23676 thread_safe_flag_spec_GCJ \
23677 whole_archive_flag_spec_GCJ \
23678 enable_shared_with_static_runtimes_GCJ \
23679 old_archive_cmds_GCJ \
23680 old_archive_from_new_cmds_GCJ \
23681 predep_objects_GCJ \
23682 postdep_objects_GCJ \
23685 compiler_lib_search_path_GCJ \
23687 archive_expsym_cmds_GCJ \
23688 postinstall_cmds_GCJ \
23689 postuninstall_cmds_GCJ \
23690 old_archive_from_expsyms_cmds_GCJ \
23691 allow_undefined_flag_GCJ \
23692 no_undefined_flag_GCJ \
23693 export_symbols_cmds_GCJ \
23694 hardcode_libdir_flag_spec_GCJ \
23695 hardcode_libdir_flag_spec_ld_GCJ \
23696 hardcode_libdir_separator_GCJ \
23697 hardcode_automatic_GCJ \
23699 module_expsym_cmds_GCJ \
23700 lt_cv_prog_compiler_c_o_GCJ \
23701 exclude_expsyms_GCJ \
23702 include_expsyms_GCJ; do
23705 old_archive_cmds_GCJ | \
23706 old_archive_from_new_cmds_GCJ | \
23707 archive_cmds_GCJ | \
23708 archive_expsym_cmds_GCJ | \
23709 module_cmds_GCJ | \
23710 module_expsym_cmds_GCJ | \
23711 old_archive_from_expsyms_cmds_GCJ | \
23712 export_symbols_cmds_GCJ | \
23713 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23714 postinstall_cmds | postuninstall_cmds | \
23715 old_postinstall_cmds | old_postuninstall_cmds | \
23716 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23717 # Double-quote double-evaled strings.
23718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23727 *'\$0 --fallback-echo"')
23728 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23734 cat <<__EOF__ >> "$cfgfile"
23735 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23739 # Shell to use when invoking shell scripts.
23742 # Whether or not to build shared libraries.
23743 build_libtool_libs=$enable_shared
23745 # Whether or not to build static libraries.
23746 build_old_libs=$enable_static
23748 # Whether or not to add -lc for building shared libraries.
23749 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23751 # Whether or not to disallow shared libs when runtime libs are static
23752 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23754 # Whether or not to optimize for fast installation.
23755 fast_install=$enable_fast_install
23758 host_alias=$host_alias
23761 # An echo program that does not interpret backslashes.
23766 AR_FLAGS=$lt_AR_FLAGS
23771 # A language-specific compiler.
23772 CC=$lt_compiler_GCJ
23774 # Is the compiler the GNU C compiler?
23780 # The linker used to build libraries.
23783 # Whether we need hard or soft links.
23786 # A BSD-compatible nm program.
23789 # A symbol stripping program
23792 # Used to examine libraries when file_magic_cmd begins "file"
23793 MAGIC_CMD=$MAGIC_CMD
23795 # Used on cygwin: DLL creation program.
23798 # Used on cygwin: object dumper.
23801 # Used on cygwin: assembler.
23804 # The name of the directory that contains temporary libtool files.
23807 # How to create reloadable object files.
23808 reload_flag=$lt_reload_flag
23809 reload_cmds=$lt_reload_cmds
23811 # How to pass a linker flag through the compiler.
23812 wl=$lt_lt_prog_compiler_wl_GCJ
23814 # Object file suffix (normally "o").
23815 objext="$ac_objext"
23817 # Old archive suffix (normally "a").
23820 # Shared library suffix (normally ".so").
23821 shrext_cmds='$shrext_cmds'
23823 # Executable file suffix (normally "").
23826 # Additional compiler flags for building library objects.
23827 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23830 # What is the maximum length of a command?
23831 max_cmd_len=$lt_cv_sys_max_cmd_len
23833 # Does compiler simultaneously support -c and -o options?
23834 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23836 # Must we lock files when doing compilation ?
23837 need_locks=$lt_need_locks
23839 # Do we need the lib prefix for modules?
23840 need_lib_prefix=$need_lib_prefix
23842 # Do we need a version for libraries?
23843 need_version=$need_version
23845 # Whether dlopen is supported.
23846 dlopen_support=$enable_dlopen
23848 # Whether dlopen of programs is supported.
23849 dlopen_self=$enable_dlopen_self
23851 # Whether dlopen of statically linked programs is supported.
23852 dlopen_self_static=$enable_dlopen_self_static
23854 # Compiler flag to prevent dynamic linking.
23855 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23857 # Compiler flag to turn off builtin functions.
23858 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23860 # Compiler flag to allow reflexive dlopens.
23861 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23863 # Compiler flag to generate shared objects directly from archives.
23864 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23866 # Compiler flag to generate thread-safe objects.
23867 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23869 # Library versioning type.
23870 version_type=$version_type
23872 # Format of library name prefix.
23873 libname_spec=$lt_libname_spec
23875 # List of archive names. First name is the real one, the rest are links.
23876 # The last name is the one that the linker finds with -lNAME.
23877 library_names_spec=$lt_library_names_spec
23879 # The coded name of the library, if different from the real name.
23880 soname_spec=$lt_soname_spec
23882 # Commands used to build and install an old-style archive.
23884 old_archive_cmds=$lt_old_archive_cmds_GCJ
23885 old_postinstall_cmds=$lt_old_postinstall_cmds
23886 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23888 # Create an old-style archive from a shared archive.
23889 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23891 # Create a temporary old-style archive to link instead of a shared archive.
23892 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23894 # Commands used to build and install a shared archive.
23895 archive_cmds=$lt_archive_cmds_GCJ
23896 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23897 postinstall_cmds=$lt_postinstall_cmds
23898 postuninstall_cmds=$lt_postuninstall_cmds
23900 # Commands used to build a loadable module (assumed same as above if empty)
23901 module_cmds=$lt_module_cmds_GCJ
23902 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23904 # Commands to strip libraries.
23905 old_striplib=$lt_old_striplib
23906 striplib=$lt_striplib
23908 # Dependencies to place before the objects being linked to create a
23910 predep_objects=$lt_predep_objects_GCJ
23912 # Dependencies to place after the objects being linked to create a
23914 postdep_objects=$lt_postdep_objects_GCJ
23916 # Dependencies to place before the objects being linked to create a
23918 predeps=$lt_predeps_GCJ
23920 # Dependencies to place after the objects being linked to create a
23922 postdeps=$lt_postdeps_GCJ
23924 # The library search path used internally by the compiler when linking
23925 # a shared library.
23926 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23928 # Method to check whether dependent libraries are shared objects.
23929 deplibs_check_method=$lt_deplibs_check_method
23931 # Command to use when deplibs_check_method == file_magic.
23932 file_magic_cmd=$lt_file_magic_cmd
23934 # Flag that allows shared libraries with undefined symbols to be built.
23935 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23937 # Flag that forces no undefined symbols.
23938 no_undefined_flag=$lt_no_undefined_flag_GCJ
23940 # Commands used to finish a libtool library installation in a directory.
23941 finish_cmds=$lt_finish_cmds
23943 # Same as above, but a single script fragment to be evaled but not shown.
23944 finish_eval=$lt_finish_eval
23946 # Take the output of nm and produce a listing of raw symbols and C names.
23947 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23949 # Transform the output of nm in a proper C declaration
23950 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23952 # Transform the output of nm in a C name address pair
23953 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23955 # This is the shared library runtime path variable.
23956 runpath_var=$runpath_var
23958 # This is the shared library path variable.
23959 shlibpath_var=$shlibpath_var
23961 # Is shlibpath searched before the hard-coded library search path?
23962 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23964 # How to hardcode a shared library path into an executable.
23965 hardcode_action=$hardcode_action_GCJ
23967 # Whether we should hardcode library paths into libraries.
23968 hardcode_into_libs=$hardcode_into_libs
23970 # Flag to hardcode \$libdir into a binary during linking.
23971 # This must work even if \$libdir does not exist.
23972 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23974 # If ld is used when linking, flag to hardcode \$libdir into
23975 # a binary during linking. This must work even if \$libdir does
23977 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23979 # Whether we need a single -rpath flag with a separated argument.
23980 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23982 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23983 # resulting binary.
23984 hardcode_direct=$hardcode_direct_GCJ
23986 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23987 # resulting binary.
23988 hardcode_minus_L=$hardcode_minus_L_GCJ
23990 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23991 # the resulting binary.
23992 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23994 # Set to yes if building a shared library automatically hardcodes DIR into the library
23995 # and all subsequent libraries and executables linked against it.
23996 hardcode_automatic=$hardcode_automatic_GCJ
23998 # Variables whose values should be saved in libtool wrapper scripts and
23999 # restored at relink time.
24000 variables_saved_for_relink="$variables_saved_for_relink"
24002 # Whether libtool must link a program against all its dependency libraries.
24003 link_all_deplibs=$link_all_deplibs_GCJ
24005 # Compile-time system search path for libraries
24006 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24008 # Run-time system search path for libraries
24009 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24011 # Fix the shell variable \$srcfile for the compiler.
24012 fix_srcfile_path="$fix_srcfile_path_GCJ"
24014 # Set to yes if exported symbols are required.
24015 always_export_symbols=$always_export_symbols_GCJ
24017 # The commands to list exported symbols.
24018 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24020 # The commands to extract the exported symbol list from a shared archive.
24021 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24023 # Symbols that should not be listed in the preloaded symbols.
24024 exclude_expsyms=$lt_exclude_expsyms_GCJ
24026 # Symbols that must always be exported.
24027 include_expsyms=$lt_include_expsyms_GCJ
24029 # ### END LIBTOOL TAG CONFIG: $tagname
24035 # If there is no Makefile yet, we rely on a make rule to execute
24036 # `config.status --recheck' to rerun these tests and create the
24037 # libtool script then.
24038 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24039 if test -f "$ltmain_in"; then
24040 test -f Makefile && make "$ltmain"
24046 ac_cpp='$CPP $CPPFLAGS'
24047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24060 ac_cpp='$CPP $CPPFLAGS'
24061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24066 # Source file extension for RC test sources.
24069 # Object file extension for compiled RC test sources.
24073 # Code to be used in simple compile tests
24074 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24076 # Code to be used in simple link tests
24077 lt_simple_link_test_code="$lt_simple_compile_test_code"
24079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24081 # If no C compiler was specified, use CC.
24084 # Allow CC to be a program name with arguments.
24088 # Allow CC to be a program name with arguments.
24093 lt_cv_prog_compiler_c_o_RC=yes
24095 # The else clause should only fire when bootstrapping the
24096 # libtool distribution, otherwise you forgot to ship ltmain.sh
24097 # with your package, and you will get complaints that there are
24098 # no rules to generate ltmain.sh.
24099 if test -f "$ltmain"; then
24100 # See if we are running on zsh, and set the options which allow our commands through
24101 # without removal of \ escapes.
24102 if test -n "${ZSH_VERSION+set}" ; then
24103 setopt NO_GLOB_SUBST
24105 # Now quote all the things that may contain metacharacters while being
24106 # careful not to overquote the AC_SUBSTed values. We take copies of the
24107 # variables and quote the copies for generation of the libtool script.
24108 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24110 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24111 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24112 deplibs_check_method reload_flag reload_cmds need_locks \
24113 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24114 lt_cv_sys_global_symbol_to_c_name_address \
24115 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24116 old_postinstall_cmds old_postuninstall_cmds \
24120 lt_prog_compiler_wl_RC \
24121 lt_prog_compiler_pic_RC \
24122 lt_prog_compiler_static_RC \
24123 lt_prog_compiler_no_builtin_flag_RC \
24124 export_dynamic_flag_spec_RC \
24125 thread_safe_flag_spec_RC \
24126 whole_archive_flag_spec_RC \
24127 enable_shared_with_static_runtimes_RC \
24128 old_archive_cmds_RC \
24129 old_archive_from_new_cmds_RC \
24130 predep_objects_RC \
24131 postdep_objects_RC \
24134 compiler_lib_search_path_RC \
24136 archive_expsym_cmds_RC \
24137 postinstall_cmds_RC \
24138 postuninstall_cmds_RC \
24139 old_archive_from_expsyms_cmds_RC \
24140 allow_undefined_flag_RC \
24141 no_undefined_flag_RC \
24142 export_symbols_cmds_RC \
24143 hardcode_libdir_flag_spec_RC \
24144 hardcode_libdir_flag_spec_ld_RC \
24145 hardcode_libdir_separator_RC \
24146 hardcode_automatic_RC \
24148 module_expsym_cmds_RC \
24149 lt_cv_prog_compiler_c_o_RC \
24150 exclude_expsyms_RC \
24151 include_expsyms_RC; do
24154 old_archive_cmds_RC | \
24155 old_archive_from_new_cmds_RC | \
24156 archive_cmds_RC | \
24157 archive_expsym_cmds_RC | \
24159 module_expsym_cmds_RC | \
24160 old_archive_from_expsyms_cmds_RC | \
24161 export_symbols_cmds_RC | \
24162 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24163 postinstall_cmds | postuninstall_cmds | \
24164 old_postinstall_cmds | old_postuninstall_cmds | \
24165 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24166 # Double-quote double-evaled strings.
24167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24176 *'\$0 --fallback-echo"')
24177 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24183 cat <<__EOF__ >> "$cfgfile"
24184 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24188 # Shell to use when invoking shell scripts.
24191 # Whether or not to build shared libraries.
24192 build_libtool_libs=$enable_shared
24194 # Whether or not to build static libraries.
24195 build_old_libs=$enable_static
24197 # Whether or not to add -lc for building shared libraries.
24198 build_libtool_need_lc=$archive_cmds_need_lc_RC
24200 # Whether or not to disallow shared libs when runtime libs are static
24201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24203 # Whether or not to optimize for fast installation.
24204 fast_install=$enable_fast_install
24207 host_alias=$host_alias
24210 # An echo program that does not interpret backslashes.
24215 AR_FLAGS=$lt_AR_FLAGS
24220 # A language-specific compiler.
24223 # Is the compiler the GNU C compiler?
24229 # The linker used to build libraries.
24232 # Whether we need hard or soft links.
24235 # A BSD-compatible nm program.
24238 # A symbol stripping program
24241 # Used to examine libraries when file_magic_cmd begins "file"
24242 MAGIC_CMD=$MAGIC_CMD
24244 # Used on cygwin: DLL creation program.
24247 # Used on cygwin: object dumper.
24250 # Used on cygwin: assembler.
24253 # The name of the directory that contains temporary libtool files.
24256 # How to create reloadable object files.
24257 reload_flag=$lt_reload_flag
24258 reload_cmds=$lt_reload_cmds
24260 # How to pass a linker flag through the compiler.
24261 wl=$lt_lt_prog_compiler_wl_RC
24263 # Object file suffix (normally "o").
24264 objext="$ac_objext"
24266 # Old archive suffix (normally "a").
24269 # Shared library suffix (normally ".so").
24270 shrext_cmds='$shrext_cmds'
24272 # Executable file suffix (normally "").
24275 # Additional compiler flags for building library objects.
24276 pic_flag=$lt_lt_prog_compiler_pic_RC
24279 # What is the maximum length of a command?
24280 max_cmd_len=$lt_cv_sys_max_cmd_len
24282 # Does compiler simultaneously support -c and -o options?
24283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24285 # Must we lock files when doing compilation ?
24286 need_locks=$lt_need_locks
24288 # Do we need the lib prefix for modules?
24289 need_lib_prefix=$need_lib_prefix
24291 # Do we need a version for libraries?
24292 need_version=$need_version
24294 # Whether dlopen is supported.
24295 dlopen_support=$enable_dlopen
24297 # Whether dlopen of programs is supported.
24298 dlopen_self=$enable_dlopen_self
24300 # Whether dlopen of statically linked programs is supported.
24301 dlopen_self_static=$enable_dlopen_self_static
24303 # Compiler flag to prevent dynamic linking.
24304 link_static_flag=$lt_lt_prog_compiler_static_RC
24306 # Compiler flag to turn off builtin functions.
24307 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24309 # Compiler flag to allow reflexive dlopens.
24310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24312 # Compiler flag to generate shared objects directly from archives.
24313 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24315 # Compiler flag to generate thread-safe objects.
24316 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24318 # Library versioning type.
24319 version_type=$version_type
24321 # Format of library name prefix.
24322 libname_spec=$lt_libname_spec
24324 # List of archive names. First name is the real one, the rest are links.
24325 # The last name is the one that the linker finds with -lNAME.
24326 library_names_spec=$lt_library_names_spec
24328 # The coded name of the library, if different from the real name.
24329 soname_spec=$lt_soname_spec
24331 # Commands used to build and install an old-style archive.
24333 old_archive_cmds=$lt_old_archive_cmds_RC
24334 old_postinstall_cmds=$lt_old_postinstall_cmds
24335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24337 # Create an old-style archive from a shared archive.
24338 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24340 # Create a temporary old-style archive to link instead of a shared archive.
24341 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24343 # Commands used to build and install a shared archive.
24344 archive_cmds=$lt_archive_cmds_RC
24345 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24346 postinstall_cmds=$lt_postinstall_cmds
24347 postuninstall_cmds=$lt_postuninstall_cmds
24349 # Commands used to build a loadable module (assumed same as above if empty)
24350 module_cmds=$lt_module_cmds_RC
24351 module_expsym_cmds=$lt_module_expsym_cmds_RC
24353 # Commands to strip libraries.
24354 old_striplib=$lt_old_striplib
24355 striplib=$lt_striplib
24357 # Dependencies to place before the objects being linked to create a
24359 predep_objects=$lt_predep_objects_RC
24361 # Dependencies to place after the objects being linked to create a
24363 postdep_objects=$lt_postdep_objects_RC
24365 # Dependencies to place before the objects being linked to create a
24367 predeps=$lt_predeps_RC
24369 # Dependencies to place after the objects being linked to create a
24371 postdeps=$lt_postdeps_RC
24373 # The library search path used internally by the compiler when linking
24374 # a shared library.
24375 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24377 # Method to check whether dependent libraries are shared objects.
24378 deplibs_check_method=$lt_deplibs_check_method
24380 # Command to use when deplibs_check_method == file_magic.
24381 file_magic_cmd=$lt_file_magic_cmd
24383 # Flag that allows shared libraries with undefined symbols to be built.
24384 allow_undefined_flag=$lt_allow_undefined_flag_RC
24386 # Flag that forces no undefined symbols.
24387 no_undefined_flag=$lt_no_undefined_flag_RC
24389 # Commands used to finish a libtool library installation in a directory.
24390 finish_cmds=$lt_finish_cmds
24392 # Same as above, but a single script fragment to be evaled but not shown.
24393 finish_eval=$lt_finish_eval
24395 # Take the output of nm and produce a listing of raw symbols and C names.
24396 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24398 # Transform the output of nm in a proper C declaration
24399 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24401 # Transform the output of nm in a C name address pair
24402 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24404 # This is the shared library runtime path variable.
24405 runpath_var=$runpath_var
24407 # This is the shared library path variable.
24408 shlibpath_var=$shlibpath_var
24410 # Is shlibpath searched before the hard-coded library search path?
24411 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24413 # How to hardcode a shared library path into an executable.
24414 hardcode_action=$hardcode_action_RC
24416 # Whether we should hardcode library paths into libraries.
24417 hardcode_into_libs=$hardcode_into_libs
24419 # Flag to hardcode \$libdir into a binary during linking.
24420 # This must work even if \$libdir does not exist.
24421 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24423 # If ld is used when linking, flag to hardcode \$libdir into
24424 # a binary during linking. This must work even if \$libdir does
24426 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24428 # Whether we need a single -rpath flag with a separated argument.
24429 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24431 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24432 # resulting binary.
24433 hardcode_direct=$hardcode_direct_RC
24435 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24436 # resulting binary.
24437 hardcode_minus_L=$hardcode_minus_L_RC
24439 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24440 # the resulting binary.
24441 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24443 # Set to yes if building a shared library automatically hardcodes DIR into the library
24444 # and all subsequent libraries and executables linked against it.
24445 hardcode_automatic=$hardcode_automatic_RC
24447 # Variables whose values should be saved in libtool wrapper scripts and
24448 # restored at relink time.
24449 variables_saved_for_relink="$variables_saved_for_relink"
24451 # Whether libtool must link a program against all its dependency libraries.
24452 link_all_deplibs=$link_all_deplibs_RC
24454 # Compile-time system search path for libraries
24455 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24457 # Run-time system search path for libraries
24458 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24460 # Fix the shell variable \$srcfile for the compiler.
24461 fix_srcfile_path="$fix_srcfile_path_RC"
24463 # Set to yes if exported symbols are required.
24464 always_export_symbols=$always_export_symbols_RC
24466 # The commands to list exported symbols.
24467 export_symbols_cmds=$lt_export_symbols_cmds_RC
24469 # The commands to extract the exported symbol list from a shared archive.
24470 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24472 # Symbols that should not be listed in the preloaded symbols.
24473 exclude_expsyms=$lt_exclude_expsyms_RC
24475 # Symbols that must always be exported.
24476 include_expsyms=$lt_include_expsyms_RC
24478 # ### END LIBTOOL TAG CONFIG: $tagname
24484 # If there is no Makefile yet, we rely on a make rule to execute
24485 # `config.status --recheck' to rerun these tests and create the
24486 # libtool script then.
24487 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24488 if test -f "$ltmain_in"; then
24489 test -f Makefile && make "$ltmain"
24495 ac_cpp='$CPP $CPPFLAGS'
24496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24505 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24506 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24507 { (exit 1); exit 1; }; }
24511 # Append the new tag name to the list of available tags.
24512 if test -n "$tagname" ; then
24513 available_tags="$available_tags $tagname"
24519 # Now substitute the updated list of available tags.
24520 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24521 mv "${ofile}T" "$ofile"
24525 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24526 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24527 { (exit 1); exit 1; }; }
24533 # This can be used to rebuild libtool when needed
24534 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24536 # Always use our own libtool.
24537 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24539 # Prevent multiple expansion
24561 if test "$lt_cv_dlopen_self" = "yes" ; then
24563 cat >>confdefs.h <<\_ACEOF
24564 #define CAN_DLOPEN_SELF 1
24569 etags_version=`$ETAGS --version 2>&1`
24570 case "$etags_version" in
24571 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24572 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24573 *) ETAGSFLAGS="" ;;
24575 ETAGSFLAGS=$ETAGSFLAGS
24578 if test "$WITH_LLVMGCCDIR" = "default" ; then
24579 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24580 set dummy llvm-gcc; ac_word=$2
24581 echo "$as_me:$LINENO: checking for $ac_word" >&5
24582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24583 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24584 echo $ECHO_N "(cached) $ECHO_C" >&6
24588 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24592 for as_dir in $PATH
24595 test -z "$as_dir" && as_dir=.
24596 for ac_exec_ext in '' $ac_executable_extensions; do
24597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24598 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24605 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24609 LLVMGCC=$ac_cv_path_LLVMGCC
24611 if test -n "$LLVMGCC"; then
24612 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24613 echo "${ECHO_T}$LLVMGCC" >&6
24615 echo "$as_me:$LINENO: result: no" >&5
24616 echo "${ECHO_T}no" >&6
24619 # Extract the first word of "llvm-g++", so it can be a program name with args.
24620 set dummy llvm-g++; 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_LLVMGXX+set}" = set; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24628 ac_cv_path_LLVMGXX="$LLVMGXX" # 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_LLVMGXX="$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_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24649 LLVMGXX=$ac_cv_path_LLVMGXX
24651 if test -n "$LLVMGXX"; then
24652 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24653 echo "${ECHO_T}$LLVMGXX" >&6
24655 echo "$as_me:$LINENO: result: no" >&5
24656 echo "${ECHO_T}no" >&6
24660 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24661 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24668 echo "$as_me:$LINENO: checking tool compatibility" >&5
24669 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24682 if test "$GCC" != "yes" && test "$ICC" != "yes"
24684 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24685 echo "$as_me: error: gcc|icc required but not found" >&2;}
24686 { (exit 1); exit 1; }; }
24689 if test "$GXX" != "yes" && test "$IXX" != "yes"
24691 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24692 echo "$as_me: error: g++|icc required but not found" >&2;}
24693 { (exit 1); exit 1; }; }
24696 if test "$GCC" = "yes"
24698 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24699 if test "$gccmajor" -lt "3"
24701 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24702 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24703 { (exit 1); exit 1; }; }
24707 if test -z "$llvm_cv_gnu_make_command"
24709 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24710 echo "$as_me: error: GNU Make required but not found" >&2;}
24711 { (exit 1); exit 1; }; }
24714 echo "$as_me:$LINENO: result: ok" >&5
24715 echo "${ECHO_T}ok" >&6
24719 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24720 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24721 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24722 echo $ECHO_N "(cached) $ECHO_C" >&6
24724 ac_check_lib_save_LIBS=$LIBS
24726 cat >conftest.$ac_ext <<_ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h. */
24733 /* Override any gcc2 internal prototype to avoid an error. */
24737 /* We use char because int might match the return type of a gcc2
24738 builtin and then its argument prototype would still apply. */
24748 rm -f conftest.$ac_objext conftest$ac_exeext
24749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24750 (eval $ac_link) 2>conftest.er1
24752 grep -v '^ *+' conftest.er1 >conftest.err
24754 cat conftest.err >&5
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); } &&
24757 { ac_try='test -z "$ac_c_werror_flag"
24758 || test ! -s conftest.err'
24759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24760 (eval $ac_try) 2>&5
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); }; } &&
24764 { ac_try='test -s conftest$ac_exeext'
24765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24766 (eval $ac_try) 2>&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); }; }; then
24770 ac_cv_lib_elf_elf_begin=yes
24772 echo "$as_me: failed program was:" >&5
24773 sed 's/^/| /' conftest.$ac_ext >&5
24775 ac_cv_lib_elf_elf_begin=no
24777 rm -f conftest.err conftest.$ac_objext \
24778 conftest$ac_exeext conftest.$ac_ext
24779 LIBS=$ac_check_lib_save_LIBS
24781 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24782 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24783 if test $ac_cv_lib_elf_elf_begin = yes; then
24784 cat >>confdefs.h <<_ACEOF
24785 #define HAVE_LIBELF 1
24793 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24794 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24795 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24796 echo $ECHO_N "(cached) $ECHO_C" >&6
24798 ac_func_search_save_LIBS=$LIBS
24799 ac_cv_search_lt_dlopen=no
24800 cat >conftest.$ac_ext <<_ACEOF
24803 cat confdefs.h >>conftest.$ac_ext
24804 cat >>conftest.$ac_ext <<_ACEOF
24805 /* end confdefs.h. */
24807 /* Override any gcc2 internal prototype to avoid an error. */
24811 /* We use char because int might match the return type of a gcc2
24812 builtin and then its argument prototype would still apply. */
24822 rm -f conftest.$ac_objext conftest$ac_exeext
24823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24824 (eval $ac_link) 2>conftest.er1
24826 grep -v '^ *+' conftest.er1 >conftest.err
24828 cat conftest.err >&5
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); } &&
24831 { ac_try='test -z "$ac_c_werror_flag"
24832 || test ! -s conftest.err'
24833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834 (eval $ac_try) 2>&5
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); }; } &&
24838 { ac_try='test -s conftest$ac_exeext'
24839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840 (eval $ac_try) 2>&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); }; }; then
24844 ac_cv_search_lt_dlopen="none required"
24846 echo "$as_me: failed program was:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24850 rm -f conftest.err conftest.$ac_objext \
24851 conftest$ac_exeext conftest.$ac_ext
24852 if test "$ac_cv_search_lt_dlopen" = no; then
24853 for ac_lib in ltdl; do
24854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24855 cat >conftest.$ac_ext <<_ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24862 /* Override any gcc2 internal prototype to avoid an error. */
24866 /* We use char because int might match the return type of a gcc2
24867 builtin and then its argument prototype would still apply. */
24877 rm -f conftest.$ac_objext conftest$ac_exeext
24878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24879 (eval $ac_link) 2>conftest.er1
24881 grep -v '^ *+' conftest.er1 >conftest.err
24883 cat conftest.err >&5
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); } &&
24886 { ac_try='test -z "$ac_c_werror_flag"
24887 || test ! -s conftest.err'
24888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24889 (eval $ac_try) 2>&5
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); }; } &&
24893 { ac_try='test -s conftest$ac_exeext'
24894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24895 (eval $ac_try) 2>&5
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); }; }; then
24899 ac_cv_search_lt_dlopen="-l$ac_lib"
24902 echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24906 rm -f conftest.err conftest.$ac_objext \
24907 conftest$ac_exeext conftest.$ac_ext
24910 LIBS=$ac_func_search_save_LIBS
24912 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24913 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24914 if test "$ac_cv_search_lt_dlopen" != no; then
24915 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24917 cat >>confdefs.h <<\_ACEOF
24918 #define HAVE_LT_DLOPEN 1
24922 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24923 not be available" >&5
24924 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24925 not be available" >&2;}
24929 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24930 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24931 if test "${ac_cv_search_dlopen+set}" = set; then
24932 echo $ECHO_N "(cached) $ECHO_C" >&6
24934 ac_func_search_save_LIBS=$LIBS
24935 ac_cv_search_dlopen=no
24936 cat >conftest.$ac_ext <<_ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h. */
24943 /* Override any gcc2 internal prototype to avoid an error. */
24947 /* We use char because int might match the return type of a gcc2
24948 builtin and then its argument prototype would still apply. */
24958 rm -f conftest.$ac_objext conftest$ac_exeext
24959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24960 (eval $ac_link) 2>conftest.er1
24962 grep -v '^ *+' conftest.er1 >conftest.err
24964 cat conftest.err >&5
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); } &&
24967 { ac_try='test -z "$ac_c_werror_flag"
24968 || test ! -s conftest.err'
24969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24970 (eval $ac_try) 2>&5
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); }; } &&
24974 { ac_try='test -s conftest$ac_exeext'
24975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976 (eval $ac_try) 2>&5
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; }; then
24980 ac_cv_search_dlopen="none required"
24982 echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24986 rm -f conftest.err conftest.$ac_objext \
24987 conftest$ac_exeext conftest.$ac_ext
24988 if test "$ac_cv_search_dlopen" = no; then
24989 for ac_lib in dl; do
24990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24991 cat >conftest.$ac_ext <<_ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h. */
24998 /* Override any gcc2 internal prototype to avoid an error. */
25002 /* We use char because int might match the return type of a gcc2
25003 builtin and then its argument prototype would still apply. */
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25015 (eval $ac_link) 2>conftest.er1
25017 grep -v '^ *+' conftest.er1 >conftest.err
25019 cat conftest.err >&5
25020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021 (exit $ac_status); } &&
25022 { ac_try='test -z "$ac_c_werror_flag"
25023 || test ! -s conftest.err'
25024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025 (eval $ac_try) 2>&5
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; } &&
25029 { ac_try='test -s conftest$ac_exeext'
25030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; }; then
25035 ac_cv_search_dlopen="-l$ac_lib"
25038 echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25042 rm -f conftest.err conftest.$ac_objext \
25043 conftest$ac_exeext conftest.$ac_ext
25046 LIBS=$ac_func_search_save_LIBS
25048 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25049 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25050 if test "$ac_cv_search_dlopen" != no; then
25051 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25053 cat >>confdefs.h <<\_ACEOF
25054 #define HAVE_DLOPEN 1
25058 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25059 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25063 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25064 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25065 if test "${ac_cv_search_mallinfo+set}" = set; then
25066 echo $ECHO_N "(cached) $ECHO_C" >&6
25068 ac_func_search_save_LIBS=$LIBS
25069 ac_cv_search_mallinfo=no
25070 cat >conftest.$ac_ext <<_ACEOF
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h. */
25077 /* Override any gcc2 internal prototype to avoid an error. */
25081 /* We use char because int might match the return type of a gcc2
25082 builtin and then its argument prototype would still apply. */
25092 rm -f conftest.$ac_objext conftest$ac_exeext
25093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25094 (eval $ac_link) 2>conftest.er1
25096 grep -v '^ *+' conftest.er1 >conftest.err
25098 cat conftest.err >&5
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); } &&
25101 { ac_try='test -z "$ac_c_werror_flag"
25102 || test ! -s conftest.err'
25103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25104 (eval $ac_try) 2>&5
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); }; } &&
25108 { ac_try='test -s conftest$ac_exeext'
25109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25110 (eval $ac_try) 2>&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); }; }; then
25114 ac_cv_search_mallinfo="none required"
25116 echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25120 rm -f conftest.err conftest.$ac_objext \
25121 conftest$ac_exeext conftest.$ac_ext
25122 if test "$ac_cv_search_mallinfo" = no; then
25123 for ac_lib in malloc; do
25124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25125 cat >conftest.$ac_ext <<_ACEOF
25128 cat confdefs.h >>conftest.$ac_ext
25129 cat >>conftest.$ac_ext <<_ACEOF
25130 /* end confdefs.h. */
25132 /* Override any gcc2 internal prototype to avoid an error. */
25136 /* We use char because int might match the return type of a gcc2
25137 builtin and then its argument prototype would still apply. */
25147 rm -f conftest.$ac_objext conftest$ac_exeext
25148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25149 (eval $ac_link) 2>conftest.er1
25151 grep -v '^ *+' conftest.er1 >conftest.err
25153 cat conftest.err >&5
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); } &&
25156 { ac_try='test -z "$ac_c_werror_flag"
25157 || test ! -s conftest.err'
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; } &&
25163 { ac_try='test -s conftest$ac_exeext'
25164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165 (eval $ac_try) 2>&5
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; }; then
25169 ac_cv_search_mallinfo="-l$ac_lib"
25172 echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25176 rm -f conftest.err conftest.$ac_objext \
25177 conftest$ac_exeext conftest.$ac_ext
25180 LIBS=$ac_func_search_save_LIBS
25182 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25183 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25184 if test "$ac_cv_search_mallinfo" != no; then
25185 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25187 cat >>confdefs.h <<\_ACEOF
25188 #define HAVE_MALLINFO 1
25194 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25195 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25196 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25197 echo $ECHO_N "(cached) $ECHO_C" >&6
25199 ac_func_search_save_LIBS=$LIBS
25200 ac_cv_search_pthread_mutex_lock=no
25201 cat >conftest.$ac_ext <<_ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25208 /* Override any gcc2 internal prototype to avoid an error. */
25212 /* We use char because int might match the return type of a gcc2
25213 builtin and then its argument prototype would still apply. */
25214 char pthread_mutex_lock ();
25218 pthread_mutex_lock ();
25223 rm -f conftest.$ac_objext conftest$ac_exeext
25224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25225 (eval $ac_link) 2>conftest.er1
25227 grep -v '^ *+' conftest.er1 >conftest.err
25229 cat conftest.err >&5
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); } &&
25232 { ac_try='test -z "$ac_c_werror_flag"
25233 || test ! -s conftest.err'
25234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25235 (eval $ac_try) 2>&5
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); }; } &&
25239 { ac_try='test -s conftest$ac_exeext'
25240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25241 (eval $ac_try) 2>&5
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); }; }; then
25245 ac_cv_search_pthread_mutex_lock="none required"
25247 echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25251 rm -f conftest.err conftest.$ac_objext \
25252 conftest$ac_exeext conftest.$ac_ext
25253 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25254 for ac_lib in pthread; do
25255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25256 cat >conftest.$ac_ext <<_ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h. */
25263 /* Override any gcc2 internal prototype to avoid an error. */
25267 /* We use char because int might match the return type of a gcc2
25268 builtin and then its argument prototype would still apply. */
25269 char pthread_mutex_lock ();
25273 pthread_mutex_lock ();
25278 rm -f conftest.$ac_objext conftest$ac_exeext
25279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25280 (eval $ac_link) 2>conftest.er1
25282 grep -v '^ *+' conftest.er1 >conftest.err
25284 cat conftest.err >&5
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } &&
25287 { ac_try='test -z "$ac_c_werror_flag"
25288 || test ! -s conftest.err'
25289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290 (eval $ac_try) 2>&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); }; } &&
25294 { ac_try='test -s conftest$ac_exeext'
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; }; then
25300 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25307 rm -f conftest.err conftest.$ac_objext \
25308 conftest$ac_exeext conftest.$ac_ext
25311 LIBS=$ac_func_search_save_LIBS
25313 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25314 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25315 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25316 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25318 cat >>confdefs.h <<\_ACEOF
25319 #define HAVE_PTHREAD_MUTEX_LOCK 1
25331 ac_header_dirent=no
25332 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25333 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25334 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25335 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25337 echo $ECHO_N "(cached) $ECHO_C" >&6
25339 cat >conftest.$ac_ext <<_ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25345 #include <sys/types.h>
25357 rm -f conftest.$ac_objext
25358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25359 (eval $ac_compile) 2>conftest.er1
25361 grep -v '^ *+' conftest.er1 >conftest.err
25363 cat conftest.err >&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); } &&
25366 { ac_try='test -z "$ac_c_werror_flag"
25367 || test ! -s conftest.err'
25368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369 (eval $ac_try) 2>&5
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); }; } &&
25373 { ac_try='test -s conftest.$ac_objext'
25374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375 (eval $ac_try) 2>&5
25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); }; }; then
25379 eval "$as_ac_Header=yes"
25381 echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25384 eval "$as_ac_Header=no"
25386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25391 cat >>confdefs.h <<_ACEOF
25392 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25395 ac_header_dirent=$ac_hdr; break
25399 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25400 if test $ac_header_dirent = dirent.h; then
25401 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25402 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25403 if test "${ac_cv_search_opendir+set}" = set; then
25404 echo $ECHO_N "(cached) $ECHO_C" >&6
25406 ac_func_search_save_LIBS=$LIBS
25407 ac_cv_search_opendir=no
25408 cat >conftest.$ac_ext <<_ACEOF
25411 cat confdefs.h >>conftest.$ac_ext
25412 cat >>conftest.$ac_ext <<_ACEOF
25413 /* end confdefs.h. */
25415 /* Override any gcc2 internal prototype to avoid an error. */
25419 /* We use char because int might match the return type of a gcc2
25420 builtin and then its argument prototype would still apply. */
25430 rm -f conftest.$ac_objext conftest$ac_exeext
25431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25432 (eval $ac_link) 2>conftest.er1
25434 grep -v '^ *+' conftest.er1 >conftest.err
25436 cat conftest.err >&5
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); } &&
25439 { ac_try='test -z "$ac_c_werror_flag"
25440 || test ! -s conftest.err'
25441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442 (eval $ac_try) 2>&5
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); }; } &&
25446 { ac_try='test -s conftest$ac_exeext'
25447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448 (eval $ac_try) 2>&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); }; }; then
25452 ac_cv_search_opendir="none required"
25454 echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25458 rm -f conftest.err conftest.$ac_objext \
25459 conftest$ac_exeext conftest.$ac_ext
25460 if test "$ac_cv_search_opendir" = no; then
25461 for ac_lib in dir; do
25462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25463 cat >conftest.$ac_ext <<_ACEOF
25466 cat confdefs.h >>conftest.$ac_ext
25467 cat >>conftest.$ac_ext <<_ACEOF
25468 /* end confdefs.h. */
25470 /* Override any gcc2 internal prototype to avoid an error. */
25474 /* We use char because int might match the return type of a gcc2
25475 builtin and then its argument prototype would still apply. */
25485 rm -f conftest.$ac_objext conftest$ac_exeext
25486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25487 (eval $ac_link) 2>conftest.er1
25489 grep -v '^ *+' conftest.er1 >conftest.err
25491 cat conftest.err >&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } &&
25494 { ac_try='test -z "$ac_c_werror_flag"
25495 || test ! -s conftest.err'
25496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25497 (eval $ac_try) 2>&5
25499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500 (exit $ac_status); }; } &&
25501 { ac_try='test -s conftest$ac_exeext'
25502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25503 (eval $ac_try) 2>&5
25505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); }; }; then
25507 ac_cv_search_opendir="-l$ac_lib"
25510 echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25514 rm -f conftest.err conftest.$ac_objext \
25515 conftest$ac_exeext conftest.$ac_ext
25518 LIBS=$ac_func_search_save_LIBS
25520 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25521 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25522 if test "$ac_cv_search_opendir" != no; then
25523 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25528 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25529 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25530 if test "${ac_cv_search_opendir+set}" = set; then
25531 echo $ECHO_N "(cached) $ECHO_C" >&6
25533 ac_func_search_save_LIBS=$LIBS
25534 ac_cv_search_opendir=no
25535 cat >conftest.$ac_ext <<_ACEOF
25538 cat confdefs.h >>conftest.$ac_ext
25539 cat >>conftest.$ac_ext <<_ACEOF
25540 /* end confdefs.h. */
25542 /* Override any gcc2 internal prototype to avoid an error. */
25546 /* We use char because int might match the return type of a gcc2
25547 builtin and then its argument prototype would still apply. */
25557 rm -f conftest.$ac_objext conftest$ac_exeext
25558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25559 (eval $ac_link) 2>conftest.er1
25561 grep -v '^ *+' conftest.er1 >conftest.err
25563 cat conftest.err >&5
25564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565 (exit $ac_status); } &&
25566 { ac_try='test -z "$ac_c_werror_flag"
25567 || test ! -s conftest.err'
25568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569 (eval $ac_try) 2>&5
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); }; } &&
25573 { ac_try='test -s conftest$ac_exeext'
25574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575 (eval $ac_try) 2>&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); }; }; then
25579 ac_cv_search_opendir="none required"
25581 echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25585 rm -f conftest.err conftest.$ac_objext \
25586 conftest$ac_exeext conftest.$ac_ext
25587 if test "$ac_cv_search_opendir" = no; then
25588 for ac_lib in x; do
25589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25590 cat >conftest.$ac_ext <<_ACEOF
25593 cat confdefs.h >>conftest.$ac_ext
25594 cat >>conftest.$ac_ext <<_ACEOF
25595 /* end confdefs.h. */
25597 /* Override any gcc2 internal prototype to avoid an error. */
25601 /* We use char because int might match the return type of a gcc2
25602 builtin and then its argument prototype would still apply. */
25612 rm -f conftest.$ac_objext conftest$ac_exeext
25613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25614 (eval $ac_link) 2>conftest.er1
25616 grep -v '^ *+' conftest.er1 >conftest.err
25618 cat conftest.err >&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); } &&
25621 { ac_try='test -z "$ac_c_werror_flag"
25622 || test ! -s conftest.err'
25623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25624 (eval $ac_try) 2>&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); }; } &&
25628 { ac_try='test -s conftest$ac_exeext'
25629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630 (eval $ac_try) 2>&5
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); }; }; then
25634 ac_cv_search_opendir="-l$ac_lib"
25637 echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25641 rm -f conftest.err conftest.$ac_objext \
25642 conftest$ac_exeext conftest.$ac_ext
25645 LIBS=$ac_func_search_save_LIBS
25647 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25648 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25649 if test "$ac_cv_search_opendir" != no; then
25650 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25656 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25657 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25658 if test "${ac_cv_header_mmap_anon+set}" = set; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25662 ac_cpp='$CPP $CPPFLAGS'
25663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25667 cat >conftest.$ac_ext <<_ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h. */
25673 #include <sys/mman.h>
25674 #include <unistd.h>
25679 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25684 rm -f conftest.$ac_objext
25685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25686 (eval $ac_compile) 2>conftest.er1
25688 grep -v '^ *+' conftest.er1 >conftest.err
25690 cat conftest.err >&5
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); } &&
25693 { ac_try='test -z "$ac_c_werror_flag"
25694 || test ! -s conftest.err'
25695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25696 (eval $ac_try) 2>&5
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); }; } &&
25700 { ac_try='test -s conftest.$ac_objext'
25701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702 (eval $ac_try) 2>&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); }; }; then
25706 ac_cv_header_mmap_anon=yes
25708 echo "$as_me: failed program was:" >&5
25709 sed 's/^/| /' conftest.$ac_ext >&5
25711 ac_cv_header_mmap_anon=no
25713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25715 ac_cpp='$CPP $CPPFLAGS'
25716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25722 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25723 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25724 if test "$ac_cv_header_mmap_anon" = yes; then
25726 cat >>confdefs.h <<\_ACEOF
25727 #define HAVE_MMAP_ANONYMOUS 1
25732 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25733 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25734 if test "${ac_cv_header_stat_broken+set}" = set; then
25735 echo $ECHO_N "(cached) $ECHO_C" >&6
25737 cat >conftest.$ac_ext <<_ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h. */
25743 #include <sys/types.h>
25744 #include <sys/stat.h>
25746 #if defined(S_ISBLK) && defined(S_IFDIR)
25747 # if S_ISBLK (S_IFDIR)
25752 #if defined(S_ISBLK) && defined(S_IFCHR)
25753 # if S_ISBLK (S_IFCHR)
25758 #if defined(S_ISLNK) && defined(S_IFREG)
25759 # if S_ISLNK (S_IFREG)
25764 #if defined(S_ISSOCK) && defined(S_IFREG)
25765 # if S_ISSOCK (S_IFREG)
25771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25772 $EGREP "You lose" >/dev/null 2>&1; then
25773 ac_cv_header_stat_broken=yes
25775 ac_cv_header_stat_broken=no
25780 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25781 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25782 if test $ac_cv_header_stat_broken = yes; then
25784 cat >>confdefs.h <<\_ACEOF
25785 #define STAT_MACROS_BROKEN 1
25790 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25792 if test "${ac_cv_header_stdc+set}" = set; then
25793 echo $ECHO_N "(cached) $ECHO_C" >&6
25795 cat >conftest.$ac_ext <<_ACEOF
25798 cat confdefs.h >>conftest.$ac_ext
25799 cat >>conftest.$ac_ext <<_ACEOF
25800 /* end confdefs.h. */
25801 #include <stdlib.h>
25802 #include <stdarg.h>
25803 #include <string.h>
25814 rm -f conftest.$ac_objext
25815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25816 (eval $ac_compile) 2>conftest.er1
25818 grep -v '^ *+' conftest.er1 >conftest.err
25820 cat conftest.err >&5
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); } &&
25823 { ac_try='test -z "$ac_c_werror_flag"
25824 || test ! -s conftest.err'
25825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826 (eval $ac_try) 2>&5
25828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); }; } &&
25830 { ac_try='test -s conftest.$ac_objext'
25831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; }; then
25836 ac_cv_header_stdc=yes
25838 echo "$as_me: failed program was:" >&5
25839 sed 's/^/| /' conftest.$ac_ext >&5
25841 ac_cv_header_stdc=no
25843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25845 if test $ac_cv_header_stdc = yes; then
25846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25847 cat >conftest.$ac_ext <<_ACEOF
25850 cat confdefs.h >>conftest.$ac_ext
25851 cat >>conftest.$ac_ext <<_ACEOF
25852 /* end confdefs.h. */
25853 #include <string.h>
25856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25857 $EGREP "memchr" >/dev/null 2>&1; then
25860 ac_cv_header_stdc=no
25866 if test $ac_cv_header_stdc = yes; then
25867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25868 cat >conftest.$ac_ext <<_ACEOF
25871 cat confdefs.h >>conftest.$ac_ext
25872 cat >>conftest.$ac_ext <<_ACEOF
25873 /* end confdefs.h. */
25874 #include <stdlib.h>
25877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25878 $EGREP "free" >/dev/null 2>&1; then
25881 ac_cv_header_stdc=no
25887 if test $ac_cv_header_stdc = yes; then
25888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25889 if test "$cross_compiling" = yes; then
25892 cat >conftest.$ac_ext <<_ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h. */
25899 #if ((' ' & 0x0FF) == 0x020)
25900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25903 # define ISLOWER(c) \
25904 (('a' <= (c) && (c) <= 'i') \
25905 || ('j' <= (c) && (c) <= 'r') \
25906 || ('s' <= (c) && (c) <= 'z'))
25907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25915 for (i = 0; i < 256; i++)
25916 if (XOR (islower (i), ISLOWER (i))
25917 || toupper (i) != TOUPPER (i))
25922 rm -f conftest$ac_exeext
25923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25924 (eval $ac_link) 2>&5
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929 (eval $ac_try) 2>&5
25931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); }; }; then
25935 echo "$as_me: program exited with status $ac_status" >&5
25936 echo "$as_me: failed program was:" >&5
25937 sed 's/^/| /' conftest.$ac_ext >&5
25939 ( exit $ac_status )
25940 ac_cv_header_stdc=no
25942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25946 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25947 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25948 if test $ac_cv_header_stdc = yes; then
25950 cat >>confdefs.h <<\_ACEOF
25951 #define STDC_HEADERS 1
25956 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25957 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25958 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25959 echo $ECHO_N "(cached) $ECHO_C" >&6
25961 cat >conftest.$ac_ext <<_ACEOF
25964 cat confdefs.h >>conftest.$ac_ext
25965 cat >>conftest.$ac_ext <<_ACEOF
25966 /* end confdefs.h. */
25967 #include <sys/types.h>
25968 #include <sys/wait.h>
25969 #ifndef WEXITSTATUS
25970 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25973 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25981 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25986 rm -f conftest.$ac_objext
25987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25988 (eval $ac_compile) 2>conftest.er1
25990 grep -v '^ *+' conftest.er1 >conftest.err
25992 cat conftest.err >&5
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } &&
25995 { ac_try='test -z "$ac_c_werror_flag"
25996 || test ! -s conftest.err'
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; } &&
26002 { ac_try='test -s conftest.$ac_objext'
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; }; then
26008 ac_cv_header_sys_wait_h=yes
26010 echo "$as_me: failed program was:" >&5
26011 sed 's/^/| /' conftest.$ac_ext >&5
26013 ac_cv_header_sys_wait_h=no
26015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26017 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26018 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26019 if test $ac_cv_header_sys_wait_h = yes; then
26021 cat >>confdefs.h <<\_ACEOF
26022 #define HAVE_SYS_WAIT_H 1
26027 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26028 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26029 if test "${ac_cv_header_time+set}" = set; then
26030 echo $ECHO_N "(cached) $ECHO_C" >&6
26032 cat >conftest.$ac_ext <<_ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h. */
26038 #include <sys/types.h>
26039 #include <sys/time.h>
26045 if ((struct tm *) 0)
26051 rm -f conftest.$ac_objext
26052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26053 (eval $ac_compile) 2>conftest.er1
26055 grep -v '^ *+' conftest.er1 >conftest.err
26057 cat conftest.err >&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); } &&
26060 { ac_try='test -z "$ac_c_werror_flag"
26061 || test ! -s conftest.err'
26062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063 (eval $ac_try) 2>&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); }; } &&
26067 { ac_try='test -s conftest.$ac_objext'
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; }; then
26073 ac_cv_header_time=yes
26075 echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26078 ac_cv_header_time=no
26080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26082 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26083 echo "${ECHO_T}$ac_cv_header_time" >&6
26084 if test $ac_cv_header_time = yes; then
26086 cat >>confdefs.h <<\_ACEOF
26087 #define TIME_WITH_SYS_TIME 1
26099 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26103 echo "$as_me:$LINENO: checking for $ac_header" >&5
26104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26111 # Is the header compilable?
26112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26114 cat >conftest.$ac_ext <<_ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h. */
26120 $ac_includes_default
26121 #include <$ac_header>
26123 rm -f conftest.$ac_objext
26124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26125 (eval $ac_compile) 2>conftest.er1
26127 grep -v '^ *+' conftest.er1 >conftest.err
26129 cat conftest.err >&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); } &&
26132 { ac_try='test -z "$ac_c_werror_flag"
26133 || test ! -s conftest.err'
26134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26135 (eval $ac_try) 2>&5
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); }; } &&
26139 { ac_try='test -s conftest.$ac_objext'
26140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26141 (eval $ac_try) 2>&5
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); }; }; then
26145 ac_header_compiler=yes
26147 echo "$as_me: failed program was:" >&5
26148 sed 's/^/| /' conftest.$ac_ext >&5
26150 ac_header_compiler=no
26152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26154 echo "${ECHO_T}$ac_header_compiler" >&6
26156 # Is the header present?
26157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26159 cat >conftest.$ac_ext <<_ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26165 #include <$ac_header>
26167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26170 grep -v '^ *+' conftest.er1 >conftest.err
26172 cat conftest.err >&5
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); } >/dev/null; then
26175 if test -s conftest.err; then
26176 ac_cpp_err=$ac_c_preproc_warn_flag
26177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26184 if test -z "$ac_cpp_err"; then
26185 ac_header_preproc=yes
26187 echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26190 ac_header_preproc=no
26192 rm -f conftest.err conftest.$ac_ext
26193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26194 echo "${ECHO_T}$ac_header_preproc" >&6
26196 # So? What about this header?
26197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26203 ac_header_preproc=yes
26206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26220 ## ----------------------------------- ##
26221 ## Report this to llvmbugs@cs.uiuc.edu ##
26222 ## ----------------------------------- ##
26225 sed "s/^/$as_me: WARNING: /" >&2
26228 echo "$as_me:$LINENO: checking for $ac_header" >&5
26229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26231 echo $ECHO_N "(cached) $ECHO_C" >&6
26233 eval "$as_ac_Header=\$ac_header_preproc"
26235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26240 cat >>confdefs.h <<_ACEOF
26241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26254 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26258 echo "$as_me:$LINENO: checking for $ac_header" >&5
26259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26261 echo $ECHO_N "(cached) $ECHO_C" >&6
26263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26266 # Is the header compilable?
26267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26269 cat >conftest.$ac_ext <<_ACEOF
26272 cat confdefs.h >>conftest.$ac_ext
26273 cat >>conftest.$ac_ext <<_ACEOF
26274 /* end confdefs.h. */
26275 $ac_includes_default
26276 #include <$ac_header>
26278 rm -f conftest.$ac_objext
26279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26280 (eval $ac_compile) 2>conftest.er1
26282 grep -v '^ *+' conftest.er1 >conftest.err
26284 cat conftest.err >&5
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); } &&
26287 { ac_try='test -z "$ac_c_werror_flag"
26288 || test ! -s conftest.err'
26289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26290 (eval $ac_try) 2>&5
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); }; } &&
26294 { ac_try='test -s conftest.$ac_objext'
26295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296 (eval $ac_try) 2>&5
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); }; }; then
26300 ac_header_compiler=yes
26302 echo "$as_me: failed program was:" >&5
26303 sed 's/^/| /' conftest.$ac_ext >&5
26305 ac_header_compiler=no
26307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26309 echo "${ECHO_T}$ac_header_compiler" >&6
26311 # Is the header present?
26312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26314 cat >conftest.$ac_ext <<_ACEOF
26317 cat confdefs.h >>conftest.$ac_ext
26318 cat >>conftest.$ac_ext <<_ACEOF
26319 /* end confdefs.h. */
26320 #include <$ac_header>
26322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26325 grep -v '^ *+' conftest.er1 >conftest.err
26327 cat conftest.err >&5
26328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329 (exit $ac_status); } >/dev/null; then
26330 if test -s conftest.err; then
26331 ac_cpp_err=$ac_c_preproc_warn_flag
26332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26339 if test -z "$ac_cpp_err"; then
26340 ac_header_preproc=yes
26342 echo "$as_me: failed program was:" >&5
26343 sed 's/^/| /' conftest.$ac_ext >&5
26345 ac_header_preproc=no
26347 rm -f conftest.err conftest.$ac_ext
26348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26349 echo "${ECHO_T}$ac_header_preproc" >&6
26351 # So? What about this header?
26352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26358 ac_header_preproc=yes
26361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26375 ## ----------------------------------- ##
26376 ## Report this to llvmbugs@cs.uiuc.edu ##
26377 ## ----------------------------------- ##
26380 sed "s/^/$as_me: WARNING: /" >&2
26383 echo "$as_me:$LINENO: checking for $ac_header" >&5
26384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26386 echo $ECHO_N "(cached) $ECHO_C" >&6
26388 eval "$as_ac_Header=\$ac_header_preproc"
26390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26395 cat >>confdefs.h <<_ACEOF
26396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26408 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26412 echo "$as_me:$LINENO: checking for $ac_header" >&5
26413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26420 # Is the header compilable?
26421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26423 cat >conftest.$ac_ext <<_ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h. */
26429 $ac_includes_default
26430 #include <$ac_header>
26432 rm -f conftest.$ac_objext
26433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26434 (eval $ac_compile) 2>conftest.er1
26436 grep -v '^ *+' conftest.er1 >conftest.err
26438 cat conftest.err >&5
26439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); } &&
26441 { ac_try='test -z "$ac_c_werror_flag"
26442 || test ! -s conftest.err'
26443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26444 (eval $ac_try) 2>&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); }; } &&
26448 { ac_try='test -s conftest.$ac_objext'
26449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450 (eval $ac_try) 2>&5
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); }; }; then
26454 ac_header_compiler=yes
26456 echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26459 ac_header_compiler=no
26461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26463 echo "${ECHO_T}$ac_header_compiler" >&6
26465 # Is the header present?
26466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26468 cat >conftest.$ac_ext <<_ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h. */
26474 #include <$ac_header>
26476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26479 grep -v '^ *+' conftest.er1 >conftest.err
26481 cat conftest.err >&5
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } >/dev/null; then
26484 if test -s conftest.err; then
26485 ac_cpp_err=$ac_c_preproc_warn_flag
26486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26493 if test -z "$ac_cpp_err"; then
26494 ac_header_preproc=yes
26496 echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26499 ac_header_preproc=no
26501 rm -f conftest.err conftest.$ac_ext
26502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26503 echo "${ECHO_T}$ac_header_preproc" >&6
26505 # So? What about this header?
26506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26512 ac_header_preproc=yes
26515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26529 ## ----------------------------------- ##
26530 ## Report this to llvmbugs@cs.uiuc.edu ##
26531 ## ----------------------------------- ##
26534 sed "s/^/$as_me: WARNING: /" >&2
26537 echo "$as_me:$LINENO: checking for $ac_header" >&5
26538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26540 echo $ECHO_N "(cached) $ECHO_C" >&6
26542 eval "$as_ac_Header=\$ac_header_preproc"
26544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26549 cat >>confdefs.h <<_ACEOF
26550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26559 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26563 echo "$as_me:$LINENO: checking for $ac_header" >&5
26564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26566 echo $ECHO_N "(cached) $ECHO_C" >&6
26568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26571 # Is the header compilable?
26572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26574 cat >conftest.$ac_ext <<_ACEOF
26577 cat confdefs.h >>conftest.$ac_ext
26578 cat >>conftest.$ac_ext <<_ACEOF
26579 /* end confdefs.h. */
26580 $ac_includes_default
26581 #include <$ac_header>
26583 rm -f conftest.$ac_objext
26584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26585 (eval $ac_compile) 2>conftest.er1
26587 grep -v '^ *+' conftest.er1 >conftest.err
26589 cat conftest.err >&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); } &&
26592 { ac_try='test -z "$ac_c_werror_flag"
26593 || test ! -s conftest.err'
26594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26595 (eval $ac_try) 2>&5
26597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); }; } &&
26599 { ac_try='test -s conftest.$ac_objext'
26600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26601 (eval $ac_try) 2>&5
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); }; }; then
26605 ac_header_compiler=yes
26607 echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26610 ac_header_compiler=no
26612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26614 echo "${ECHO_T}$ac_header_compiler" >&6
26616 # Is the header present?
26617 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26619 cat >conftest.$ac_ext <<_ACEOF
26622 cat confdefs.h >>conftest.$ac_ext
26623 cat >>conftest.$ac_ext <<_ACEOF
26624 /* end confdefs.h. */
26625 #include <$ac_header>
26627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26630 grep -v '^ *+' conftest.er1 >conftest.err
26632 cat conftest.err >&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); } >/dev/null; then
26635 if test -s conftest.err; then
26636 ac_cpp_err=$ac_c_preproc_warn_flag
26637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26644 if test -z "$ac_cpp_err"; then
26645 ac_header_preproc=yes
26647 echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.$ac_ext >&5
26650 ac_header_preproc=no
26652 rm -f conftest.err conftest.$ac_ext
26653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26654 echo "${ECHO_T}$ac_header_preproc" >&6
26656 # So? What about this header?
26657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26663 ac_header_preproc=yes
26666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26680 ## ----------------------------------- ##
26681 ## Report this to llvmbugs@cs.uiuc.edu ##
26682 ## ----------------------------------- ##
26685 sed "s/^/$as_me: WARNING: /" >&2
26688 echo "$as_me:$LINENO: checking for $ac_header" >&5
26689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26691 echo $ECHO_N "(cached) $ECHO_C" >&6
26693 eval "$as_ac_Header=\$ac_header_preproc"
26695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26700 cat >>confdefs.h <<_ACEOF
26701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26710 echo "$as_me:$LINENO: checking for pid_t" >&5
26711 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26712 if test "${ac_cv_type_pid_t+set}" = set; then
26713 echo $ECHO_N "(cached) $ECHO_C" >&6
26715 cat >conftest.$ac_ext <<_ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h. */
26721 $ac_includes_default
26727 if (sizeof (pid_t))
26733 rm -f conftest.$ac_objext
26734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26735 (eval $ac_compile) 2>conftest.er1
26737 grep -v '^ *+' conftest.er1 >conftest.err
26739 cat conftest.err >&5
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } &&
26742 { ac_try='test -z "$ac_c_werror_flag"
26743 || test ! -s conftest.err'
26744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745 (eval $ac_try) 2>&5
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; } &&
26749 { ac_try='test -s conftest.$ac_objext'
26750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751 (eval $ac_try) 2>&5
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); }; }; then
26755 ac_cv_type_pid_t=yes
26757 echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26760 ac_cv_type_pid_t=no
26762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26764 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26765 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26766 if test $ac_cv_type_pid_t = yes; then
26770 cat >>confdefs.h <<_ACEOF
26776 echo "$as_me:$LINENO: checking for size_t" >&5
26777 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26778 if test "${ac_cv_type_size_t+set}" = set; then
26779 echo $ECHO_N "(cached) $ECHO_C" >&6
26781 cat >conftest.$ac_ext <<_ACEOF
26784 cat confdefs.h >>conftest.$ac_ext
26785 cat >>conftest.$ac_ext <<_ACEOF
26786 /* end confdefs.h. */
26787 $ac_includes_default
26793 if (sizeof (size_t))
26799 rm -f conftest.$ac_objext
26800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26801 (eval $ac_compile) 2>conftest.er1
26803 grep -v '^ *+' conftest.er1 >conftest.err
26805 cat conftest.err >&5
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); } &&
26808 { ac_try='test -z "$ac_c_werror_flag"
26809 || test ! -s conftest.err'
26810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811 (eval $ac_try) 2>&5
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); }; } &&
26815 { ac_try='test -s conftest.$ac_objext'
26816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817 (eval $ac_try) 2>&5
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; }; then
26821 ac_cv_type_size_t=yes
26823 echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26826 ac_cv_type_size_t=no
26828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26830 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26831 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26832 if test $ac_cv_type_size_t = yes; then
26836 cat >>confdefs.h <<_ACEOF
26837 #define size_t unsigned
26842 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26843 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26844 if test "${ac_cv_type_signal+set}" = set; then
26845 echo $ECHO_N "(cached) $ECHO_C" >&6
26847 cat >conftest.$ac_ext <<_ACEOF
26850 cat confdefs.h >>conftest.$ac_ext
26851 cat >>conftest.$ac_ext <<_ACEOF
26852 /* end confdefs.h. */
26853 #include <sys/types.h>
26854 #include <signal.h>
26859 extern "C" void (*signal (int, void (*)(int)))(int);
26861 void (*signal ()) ();
26872 rm -f conftest.$ac_objext
26873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26874 (eval $ac_compile) 2>conftest.er1
26876 grep -v '^ *+' conftest.er1 >conftest.err
26878 cat conftest.err >&5
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); } &&
26881 { ac_try='test -z "$ac_c_werror_flag"
26882 || test ! -s conftest.err'
26883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884 (eval $ac_try) 2>&5
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); }; } &&
26888 { ac_try='test -s conftest.$ac_objext'
26889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890 (eval $ac_try) 2>&5
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); }; }; then
26894 ac_cv_type_signal=void
26896 echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26899 ac_cv_type_signal=int
26901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26903 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26904 echo "${ECHO_T}$ac_cv_type_signal" >&6
26906 cat >>confdefs.h <<_ACEOF
26907 #define RETSIGTYPE $ac_cv_type_signal
26911 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26912 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26913 if test "${ac_cv_struct_tm+set}" = set; then
26914 echo $ECHO_N "(cached) $ECHO_C" >&6
26916 cat >conftest.$ac_ext <<_ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 #include <sys/types.h>
26928 struct tm *tp; tp->tm_sec;
26933 rm -f conftest.$ac_objext
26934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26935 (eval $ac_compile) 2>conftest.er1
26937 grep -v '^ *+' conftest.er1 >conftest.err
26939 cat conftest.err >&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); } &&
26942 { ac_try='test -z "$ac_c_werror_flag"
26943 || test ! -s conftest.err'
26944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26945 (eval $ac_try) 2>&5
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); }; } &&
26949 { ac_try='test -s conftest.$ac_objext'
26950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26951 (eval $ac_try) 2>&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); }; }; then
26955 ac_cv_struct_tm=time.h
26957 echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26960 ac_cv_struct_tm=sys/time.h
26962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26964 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26965 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26966 if test $ac_cv_struct_tm = sys/time.h; then
26968 cat >>confdefs.h <<\_ACEOF
26969 #define TM_IN_SYS_TIME 1
26974 echo "$as_me:$LINENO: checking for int64_t" >&5
26975 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26976 if test "${ac_cv_type_int64_t+set}" = set; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26979 cat >conftest.$ac_ext <<_ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h. */
26985 $ac_includes_default
26991 if (sizeof (int64_t))
26997 rm -f conftest.$ac_objext
26998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26999 (eval $ac_compile) 2>conftest.er1
27001 grep -v '^ *+' conftest.er1 >conftest.err
27003 cat conftest.err >&5
27004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 (exit $ac_status); } &&
27006 { ac_try='test -z "$ac_c_werror_flag"
27007 || test ! -s conftest.err'
27008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27009 (eval $ac_try) 2>&5
27011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012 (exit $ac_status); }; } &&
27013 { ac_try='test -s conftest.$ac_objext'
27014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27015 (eval $ac_try) 2>&5
27017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); }; }; then
27019 ac_cv_type_int64_t=yes
27021 echo "$as_me: failed program was:" >&5
27022 sed 's/^/| /' conftest.$ac_ext >&5
27024 ac_cv_type_int64_t=no
27026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27028 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27029 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27030 if test $ac_cv_type_int64_t = yes; then
27032 cat >>confdefs.h <<_ACEOF
27033 #define HAVE_INT64_T 1
27038 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27039 echo "$as_me: error: Type int64_t required but not found" >&2;}
27040 { (exit 1); exit 1; }; }
27043 echo "$as_me:$LINENO: checking for uint64_t" >&5
27044 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27045 if test "${ac_cv_type_uint64_t+set}" = set; then
27046 echo $ECHO_N "(cached) $ECHO_C" >&6
27048 cat >conftest.$ac_ext <<_ACEOF
27051 cat confdefs.h >>conftest.$ac_ext
27052 cat >>conftest.$ac_ext <<_ACEOF
27053 /* end confdefs.h. */
27054 $ac_includes_default
27058 if ((uint64_t *) 0)
27060 if (sizeof (uint64_t))
27066 rm -f conftest.$ac_objext
27067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27068 (eval $ac_compile) 2>conftest.er1
27070 grep -v '^ *+' conftest.er1 >conftest.err
27072 cat conftest.err >&5
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); } &&
27075 { ac_try='test -z "$ac_c_werror_flag"
27076 || test ! -s conftest.err'
27077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078 (eval $ac_try) 2>&5
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); }; } &&
27082 { ac_try='test -s conftest.$ac_objext'
27083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27084 (eval $ac_try) 2>&5
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); }; }; then
27088 ac_cv_type_uint64_t=yes
27090 echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27093 ac_cv_type_uint64_t=no
27095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27097 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27098 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27099 if test $ac_cv_type_uint64_t = yes; then
27101 cat >>confdefs.h <<_ACEOF
27102 #define HAVE_UINT64_T 1
27107 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27108 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27109 if test "${ac_cv_type_u_int64_t+set}" = set; then
27110 echo $ECHO_N "(cached) $ECHO_C" >&6
27112 cat >conftest.$ac_ext <<_ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h. */
27118 $ac_includes_default
27122 if ((u_int64_t *) 0)
27124 if (sizeof (u_int64_t))
27130 rm -f conftest.$ac_objext
27131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27132 (eval $ac_compile) 2>conftest.er1
27134 grep -v '^ *+' conftest.er1 >conftest.err
27136 cat conftest.err >&5
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); } &&
27139 { ac_try='test -z "$ac_c_werror_flag"
27140 || test ! -s conftest.err'
27141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27142 (eval $ac_try) 2>&5
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); }; } &&
27146 { ac_try='test -s conftest.$ac_objext'
27147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; }; then
27152 ac_cv_type_u_int64_t=yes
27154 echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27157 ac_cv_type_u_int64_t=no
27159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27161 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27162 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27163 if test $ac_cv_type_u_int64_t = yes; then
27165 cat >>confdefs.h <<_ACEOF
27166 #define HAVE_U_INT64_T 1
27171 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27172 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27173 { (exit 1); exit 1; }; }
27186 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27189 echo "$as_me:$LINENO: checking for $ac_func" >&5
27190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27191 if eval "test \"\${$as_ac_var+set}\" = set"; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27194 cat >conftest.$ac_ext <<_ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27202 #define $ac_func innocuous_$ac_func
27204 /* System header to define __stub macros and hopefully few prototypes,
27205 which can conflict with char $ac_func (); below.
27206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27207 <limits.h> exists even on freestanding compilers. */
27210 # include <limits.h>
27212 # include <assert.h>
27217 /* Override any gcc2 internal prototype to avoid an error. */
27222 /* We use char because int might match the return type of a gcc2
27223 builtin and then its argument prototype would still apply. */
27225 /* The GNU C library defines this for functions which it implements
27226 to always fail with ENOSYS. Some functions are actually named
27227 something starting with __ and the normal name is an alias. */
27228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27231 char (*f) () = $ac_func;
27240 return f != $ac_func;
27245 rm -f conftest.$ac_objext conftest$ac_exeext
27246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27247 (eval $ac_link) 2>conftest.er1
27249 grep -v '^ *+' conftest.er1 >conftest.err
27251 cat conftest.err >&5
27252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); } &&
27254 { ac_try='test -z "$ac_c_werror_flag"
27255 || test ! -s conftest.err'
27256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257 (eval $ac_try) 2>&5
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); }; } &&
27261 { ac_try='test -s conftest$ac_exeext'
27262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263 (eval $ac_try) 2>&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; }; then
27267 eval "$as_ac_var=yes"
27269 echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.$ac_ext >&5
27272 eval "$as_ac_var=no"
27274 rm -f conftest.err conftest.$ac_objext \
27275 conftest$ac_exeext conftest.$ac_ext
27277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27279 if test `eval echo '${'$as_ac_var'}'` = yes; then
27280 cat >>confdefs.h <<_ACEOF
27281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27290 for ac_func in mkdtemp mkstemp mktemp
27292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27293 echo "$as_me:$LINENO: checking for $ac_func" >&5
27294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27295 if eval "test \"\${$as_ac_var+set}\" = set"; then
27296 echo $ECHO_N "(cached) $ECHO_C" >&6
27298 cat >conftest.$ac_ext <<_ACEOF
27301 cat confdefs.h >>conftest.$ac_ext
27302 cat >>conftest.$ac_ext <<_ACEOF
27303 /* end confdefs.h. */
27304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27306 #define $ac_func innocuous_$ac_func
27308 /* System header to define __stub macros and hopefully few prototypes,
27309 which can conflict with char $ac_func (); below.
27310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27311 <limits.h> exists even on freestanding compilers. */
27314 # include <limits.h>
27316 # include <assert.h>
27321 /* Override any gcc2 internal prototype to avoid an error. */
27326 /* We use char because int might match the return type of a gcc2
27327 builtin and then its argument prototype would still apply. */
27329 /* The GNU C library defines this for functions which it implements
27330 to always fail with ENOSYS. Some functions are actually named
27331 something starting with __ and the normal name is an alias. */
27332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27335 char (*f) () = $ac_func;
27344 return f != $ac_func;
27349 rm -f conftest.$ac_objext conftest$ac_exeext
27350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27351 (eval $ac_link) 2>conftest.er1
27353 grep -v '^ *+' conftest.er1 >conftest.err
27355 cat conftest.err >&5
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); } &&
27358 { ac_try='test -z "$ac_c_werror_flag"
27359 || test ! -s conftest.err'
27360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27361 (eval $ac_try) 2>&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); }; } &&
27365 { ac_try='test -s conftest$ac_exeext'
27366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367 (eval $ac_try) 2>&5
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); }; }; then
27371 eval "$as_ac_var=yes"
27373 echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27376 eval "$as_ac_var=no"
27378 rm -f conftest.err conftest.$ac_objext \
27379 conftest$ac_exeext conftest.$ac_ext
27381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27383 if test `eval echo '${'$as_ac_var'}'` = yes; then
27384 cat >>confdefs.h <<_ACEOF
27385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27397 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27400 echo "$as_me:$LINENO: checking for $ac_func" >&5
27401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27402 if eval "test \"\${$as_ac_var+set}\" = set"; then
27403 echo $ECHO_N "(cached) $ECHO_C" >&6
27405 cat >conftest.$ac_ext <<_ACEOF
27408 cat confdefs.h >>conftest.$ac_ext
27409 cat >>conftest.$ac_ext <<_ACEOF
27410 /* end confdefs.h. */
27411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27413 #define $ac_func innocuous_$ac_func
27415 /* System header to define __stub macros and hopefully few prototypes,
27416 which can conflict with char $ac_func (); below.
27417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27418 <limits.h> exists even on freestanding compilers. */
27421 # include <limits.h>
27423 # include <assert.h>
27428 /* Override any gcc2 internal prototype to avoid an error. */
27433 /* We use char because int might match the return type of a gcc2
27434 builtin and then its argument prototype would still apply. */
27436 /* The GNU C library defines this for functions which it implements
27437 to always fail with ENOSYS. Some functions are actually named
27438 something starting with __ and the normal name is an alias. */
27439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27442 char (*f) () = $ac_func;
27451 return f != $ac_func;
27456 rm -f conftest.$ac_objext conftest$ac_exeext
27457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27458 (eval $ac_link) 2>conftest.er1
27460 grep -v '^ *+' conftest.er1 >conftest.err
27462 cat conftest.err >&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); } &&
27465 { ac_try='test -z "$ac_c_werror_flag"
27466 || test ! -s conftest.err'
27467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; } &&
27472 { ac_try='test -s conftest$ac_exeext'
27473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27474 (eval $ac_try) 2>&5
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); }; }; then
27478 eval "$as_ac_var=yes"
27480 echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27483 eval "$as_ac_var=no"
27485 rm -f conftest.err conftest.$ac_objext \
27486 conftest$ac_exeext conftest.$ac_ext
27488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27490 if test `eval echo '${'$as_ac_var'}'` = yes; then
27491 cat >>confdefs.h <<_ACEOF
27492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27501 for ac_func in strtoll strtoq sysconf
27503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27504 echo "$as_me:$LINENO: checking for $ac_func" >&5
27505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27506 if eval "test \"\${$as_ac_var+set}\" = set"; then
27507 echo $ECHO_N "(cached) $ECHO_C" >&6
27509 cat >conftest.$ac_ext <<_ACEOF
27512 cat confdefs.h >>conftest.$ac_ext
27513 cat >>conftest.$ac_ext <<_ACEOF
27514 /* end confdefs.h. */
27515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27517 #define $ac_func innocuous_$ac_func
27519 /* System header to define __stub macros and hopefully few prototypes,
27520 which can conflict with char $ac_func (); below.
27521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27522 <limits.h> exists even on freestanding compilers. */
27525 # include <limits.h>
27527 # include <assert.h>
27532 /* Override any gcc2 internal prototype to avoid an error. */
27537 /* We use char because int might match the return type of a gcc2
27538 builtin and then its argument prototype would still apply. */
27540 /* The GNU C library defines this for functions which it implements
27541 to always fail with ENOSYS. Some functions are actually named
27542 something starting with __ and the normal name is an alias. */
27543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27546 char (*f) () = $ac_func;
27555 return f != $ac_func;
27560 rm -f conftest.$ac_objext conftest$ac_exeext
27561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27562 (eval $ac_link) 2>conftest.er1
27564 grep -v '^ *+' conftest.er1 >conftest.err
27566 cat conftest.err >&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } &&
27569 { ac_try='test -z "$ac_c_werror_flag"
27570 || test ! -s conftest.err'
27571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572 (eval $ac_try) 2>&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
27576 { ac_try='test -s conftest$ac_exeext'
27577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578 (eval $ac_try) 2>&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; }; then
27582 eval "$as_ac_var=yes"
27584 echo "$as_me: failed program was:" >&5
27585 sed 's/^/| /' conftest.$ac_ext >&5
27587 eval "$as_ac_var=no"
27589 rm -f conftest.err conftest.$ac_objext \
27590 conftest$ac_exeext conftest.$ac_ext
27592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27594 if test `eval echo '${'$as_ac_var'}'` = yes; then
27595 cat >>confdefs.h <<_ACEOF
27596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27602 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27603 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27604 if test "${llvm_cv_c_printf_a+set}" = set; then
27605 echo $ECHO_N "(cached) $ECHO_C" >&6
27608 ac_cpp='$CPP $CPPFLAGS'
27609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27613 if test "$cross_compiling" = yes; then
27614 llvmac_cv_c_printf_a=no
27616 cat >conftest.$ac_ext <<_ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h. */
27625 #include <stdlib.h>
27631 volatile double A, B;
27635 sprintf(Buffer, "%a", A);
27639 if (A != 0x1.999999999999ap-4)
27646 rm -f conftest$ac_exeext
27647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27648 (eval $ac_link) 2>&5
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653 (eval $ac_try) 2>&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; }; then
27657 llvm_cv_c_printf_a=yes
27659 echo "$as_me: program exited with status $ac_status" >&5
27660 echo "$as_me: failed program was:" >&5
27661 sed 's/^/| /' conftest.$ac_ext >&5
27663 ( exit $ac_status )
27664 llvmac_cv_c_printf_a=no
27666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27669 ac_cpp='$CPP $CPPFLAGS'
27670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27675 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27676 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27677 if test "$llvm_cv_c_printf_a" = "yes"; then
27679 cat >>confdefs.h <<\_ACEOF
27680 #define HAVE_PRINTF_A 1
27685 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27686 # for constant arguments. Useless!
27687 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27688 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27689 if test "${ac_cv_working_alloca_h+set}" = set; then
27690 echo $ECHO_N "(cached) $ECHO_C" >&6
27692 cat >conftest.$ac_ext <<_ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h. */
27698 #include <alloca.h>
27702 char *p = (char *) alloca (2 * sizeof (int));
27707 rm -f conftest.$ac_objext conftest$ac_exeext
27708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27709 (eval $ac_link) 2>conftest.er1
27711 grep -v '^ *+' conftest.er1 >conftest.err
27713 cat conftest.err >&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } &&
27716 { ac_try='test -z "$ac_c_werror_flag"
27717 || test ! -s conftest.err'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; } &&
27723 { ac_try='test -s conftest$ac_exeext'
27724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; }; then
27729 ac_cv_working_alloca_h=yes
27731 echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.$ac_ext >&5
27734 ac_cv_working_alloca_h=no
27736 rm -f conftest.err conftest.$ac_objext \
27737 conftest$ac_exeext conftest.$ac_ext
27739 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27740 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27741 if test $ac_cv_working_alloca_h = yes; then
27743 cat >>confdefs.h <<\_ACEOF
27744 #define HAVE_ALLOCA_H 1
27749 echo "$as_me:$LINENO: checking for alloca" >&5
27750 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27751 if test "${ac_cv_func_alloca_works+set}" = set; then
27752 echo $ECHO_N "(cached) $ECHO_C" >&6
27754 cat >conftest.$ac_ext <<_ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h. */
27761 # define alloca __builtin_alloca
27764 # include <malloc.h>
27765 # define alloca _alloca
27768 # include <alloca.h>
27773 # ifndef alloca /* predefined by HP cc +Olibcalls */
27784 char *p = (char *) alloca (1);
27789 rm -f conftest.$ac_objext conftest$ac_exeext
27790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27791 (eval $ac_link) 2>conftest.er1
27793 grep -v '^ *+' conftest.er1 >conftest.err
27795 cat conftest.err >&5
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); } &&
27798 { ac_try='test -z "$ac_c_werror_flag"
27799 || test ! -s conftest.err'
27800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27801 (eval $ac_try) 2>&5
27803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804 (exit $ac_status); }; } &&
27805 { ac_try='test -s conftest$ac_exeext'
27806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27807 (eval $ac_try) 2>&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; }; then
27811 ac_cv_func_alloca_works=yes
27813 echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27816 ac_cv_func_alloca_works=no
27818 rm -f conftest.err conftest.$ac_objext \
27819 conftest$ac_exeext conftest.$ac_ext
27821 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27822 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27824 if test $ac_cv_func_alloca_works = yes; then
27826 cat >>confdefs.h <<\_ACEOF
27827 #define HAVE_ALLOCA 1
27831 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27832 # that cause trouble. Some versions do not even contain alloca or
27833 # contain a buggy version. If you still want to use their alloca,
27834 # use ar to extract alloca.o from them instead of compiling alloca.c.
27836 ALLOCA=alloca.$ac_objext
27838 cat >>confdefs.h <<\_ACEOF
27843 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27844 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27845 if test "${ac_cv_os_cray+set}" = set; then
27846 echo $ECHO_N "(cached) $ECHO_C" >&6
27848 cat >conftest.$ac_ext <<_ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h. */
27854 #if defined(CRAY) && ! defined(CRAY2)
27861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27862 $EGREP "webecray" >/dev/null 2>&1; then
27870 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27871 echo "${ECHO_T}$ac_cv_os_cray" >&6
27872 if test $ac_cv_os_cray = yes; then
27873 for ac_func in _getb67 GETB67 getb67; do
27874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27875 echo "$as_me:$LINENO: checking for $ac_func" >&5
27876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27877 if eval "test \"\${$as_ac_var+set}\" = set"; then
27878 echo $ECHO_N "(cached) $ECHO_C" >&6
27880 cat >conftest.$ac_ext <<_ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h. */
27886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27888 #define $ac_func innocuous_$ac_func
27890 /* System header to define __stub macros and hopefully few prototypes,
27891 which can conflict with char $ac_func (); below.
27892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27893 <limits.h> exists even on freestanding compilers. */
27896 # include <limits.h>
27898 # include <assert.h>
27903 /* Override any gcc2 internal prototype to avoid an error. */
27908 /* We use char because int might match the return type of a gcc2
27909 builtin and then its argument prototype would still apply. */
27911 /* The GNU C library defines this for functions which it implements
27912 to always fail with ENOSYS. Some functions are actually named
27913 something starting with __ and the normal name is an alias. */
27914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27917 char (*f) () = $ac_func;
27926 return f != $ac_func;
27931 rm -f conftest.$ac_objext conftest$ac_exeext
27932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27933 (eval $ac_link) 2>conftest.er1
27935 grep -v '^ *+' conftest.er1 >conftest.err
27937 cat conftest.err >&5
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); } &&
27940 { ac_try='test -z "$ac_c_werror_flag"
27941 || test ! -s conftest.err'
27942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27943 (eval $ac_try) 2>&5
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); }; } &&
27947 { ac_try='test -s conftest$ac_exeext'
27948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27949 (eval $ac_try) 2>&5
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); }; }; then
27953 eval "$as_ac_var=yes"
27955 echo "$as_me: failed program was:" >&5
27956 sed 's/^/| /' conftest.$ac_ext >&5
27958 eval "$as_ac_var=no"
27960 rm -f conftest.err conftest.$ac_objext \
27961 conftest$ac_exeext conftest.$ac_ext
27963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27965 if test `eval echo '${'$as_ac_var'}'` = yes; then
27967 cat >>confdefs.h <<_ACEOF
27968 #define CRAY_STACKSEG_END $ac_func
27977 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27978 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27979 if test "${ac_cv_c_stack_direction+set}" = set; then
27980 echo $ECHO_N "(cached) $ECHO_C" >&6
27982 if test "$cross_compiling" = yes; then
27983 ac_cv_c_stack_direction=0
27985 cat >conftest.$ac_ext <<_ACEOF
27988 cat confdefs.h >>conftest.$ac_ext
27989 cat >>conftest.$ac_ext <<_ACEOF
27990 /* end confdefs.h. */
27992 find_stack_direction ()
27994 static char *addr = 0;
27999 return find_stack_direction ();
28002 return (&dummy > addr) ? 1 : -1;
28008 exit (find_stack_direction () < 0);
28011 rm -f conftest$ac_exeext
28012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28013 (eval $ac_link) 2>&5
28015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018 (eval $ac_try) 2>&5
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; }; then
28022 ac_cv_c_stack_direction=1
28024 echo "$as_me: program exited with status $ac_status" >&5
28025 echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.$ac_ext >&5
28028 ( exit $ac_status )
28029 ac_cv_c_stack_direction=-1
28031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28034 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28035 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28037 cat >>confdefs.h <<_ACEOF
28038 #define STACK_DIRECTION $ac_cv_c_stack_direction
28045 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28046 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28047 if test "${ac_cv_func_rand48+set}" = set; then
28048 echo $ECHO_N "(cached) $ECHO_C" >&6
28051 ac_cpp='$CXXCPP $CPPFLAGS'
28052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28056 cat >conftest.$ac_ext <<_ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h. */
28062 #include <stdlib.h>
28066 srand48(0);lrand48();drand48();
28071 rm -f conftest.$ac_objext
28072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28073 (eval $ac_compile) 2>conftest.er1
28075 grep -v '^ *+' conftest.er1 >conftest.err
28077 cat conftest.err >&5
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); } &&
28080 { ac_try='test -z "$ac_cxx_werror_flag"
28081 || test ! -s conftest.err'
28082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083 (eval $ac_try) 2>&5
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; } &&
28087 { ac_try='test -s conftest.$ac_objext'
28088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089 (eval $ac_try) 2>&5
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; }; then
28093 ac_cv_func_rand48=yes
28095 echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28098 ac_cv_func_rand48=no
28100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28102 ac_cpp='$CPP $CPPFLAGS'
28103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28108 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28109 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28111 if test "$ac_cv_func_rand48" = "yes" ; then
28113 cat >>confdefs.h <<\_ACEOF
28114 #define HAVE_RAND48 1
28120 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28121 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28122 if test "${ac_cv_cxx_namespaces+set}" = set; then
28123 echo $ECHO_N "(cached) $ECHO_C" >&6
28126 ac_cpp='$CXXCPP $CPPFLAGS'
28127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28131 cat >conftest.$ac_ext <<_ACEOF
28134 cat confdefs.h >>conftest.$ac_ext
28135 cat >>conftest.$ac_ext <<_ACEOF
28136 /* end confdefs.h. */
28137 namespace Outer { namespace Inner { int i = 0; }}
28141 using namespace Outer::Inner; return i;
28146 rm -f conftest.$ac_objext
28147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28148 (eval $ac_compile) 2>conftest.er1
28150 grep -v '^ *+' conftest.er1 >conftest.err
28152 cat conftest.err >&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } &&
28155 { ac_try='test -z "$ac_cxx_werror_flag"
28156 || test ! -s conftest.err'
28157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 (eval $ac_try) 2>&5
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; } &&
28162 { ac_try='test -s conftest.$ac_objext'
28163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164 (eval $ac_try) 2>&5
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; }; then
28168 ac_cv_cxx_namespaces=yes
28170 echo "$as_me: failed program was:" >&5
28171 sed 's/^/| /' conftest.$ac_ext >&5
28173 ac_cv_cxx_namespaces=no
28175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28177 ac_cpp='$CPP $CPPFLAGS'
28178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28184 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28185 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28186 if test "$ac_cv_cxx_namespaces" = yes; then
28188 cat >>confdefs.h <<\_ACEOF
28189 #define HAVE_NAMESPACES
28194 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28195 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28196 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28201 ac_cpp='$CXXCPP $CPPFLAGS'
28202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28206 cat >conftest.$ac_ext <<_ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28212 #include <ext/hash_map>
28213 #ifdef HAVE_NAMESPACES
28214 using namespace std;
28219 hash_map<int, int> t;
28224 rm -f conftest.$ac_objext
28225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28226 (eval $ac_compile) 2>conftest.er1
28228 grep -v '^ *+' conftest.er1 >conftest.err
28230 cat conftest.err >&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); } &&
28233 { ac_try='test -z "$ac_cxx_werror_flag"
28234 || test ! -s conftest.err'
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; } &&
28240 { ac_try='test -s conftest.$ac_objext'
28241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246 ac_cv_cxx_have_std_ext_hash_map=yes
28248 echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28251 ac_cv_cxx_have_std_ext_hash_map=no
28253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28255 ac_cpp='$CPP $CPPFLAGS'
28256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28261 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28262 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28263 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28266 cat >>confdefs.h <<\_ACEOF
28267 #define HAVE_STD_EXT_HASH_MAP 1
28272 cat >>confdefs.h <<\_ACEOF
28273 #define HAVE_STD_EXT_HASH_MAP 0
28278 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28279 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28280 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28281 echo $ECHO_N "(cached) $ECHO_C" >&6
28285 ac_cpp='$CXXCPP $CPPFLAGS'
28286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28290 cat >conftest.$ac_ext <<_ACEOF
28293 cat confdefs.h >>conftest.$ac_ext
28294 cat >>conftest.$ac_ext <<_ACEOF
28295 /* end confdefs.h. */
28296 #include <ext/hash_map>
28297 #ifdef HAVE_NAMESPACES
28298 using namespace __gnu_cxx;
28303 hash_map<int,int> t;
28308 rm -f conftest.$ac_objext
28309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28310 (eval $ac_compile) 2>conftest.er1
28312 grep -v '^ *+' conftest.er1 >conftest.err
28314 cat conftest.err >&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); } &&
28317 { ac_try='test -z "$ac_cxx_werror_flag"
28318 || test ! -s conftest.err'
28319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28320 (eval $ac_try) 2>&5
28322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323 (exit $ac_status); }; } &&
28324 { ac_try='test -s conftest.$ac_objext'
28325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326 (eval $ac_try) 2>&5
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); }; }; then
28330 ac_cv_cxx_have_gnu_ext_hash_map=yes
28332 echo "$as_me: failed program was:" >&5
28333 sed 's/^/| /' conftest.$ac_ext >&5
28335 ac_cv_cxx_have_gnu_ext_hash_map=no
28337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28339 ac_cpp='$CPP $CPPFLAGS'
28340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28345 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28346 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28347 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28350 cat >>confdefs.h <<\_ACEOF
28351 #define HAVE_GNU_EXT_HASH_MAP 1
28356 cat >>confdefs.h <<\_ACEOF
28357 #define HAVE_GNU_EXT_HASH_MAP 0
28362 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28363 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28364 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28365 echo $ECHO_N "(cached) $ECHO_C" >&6
28369 ac_cpp='$CXXCPP $CPPFLAGS'
28370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28374 cat >conftest.$ac_ext <<_ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h. */
28380 #include <hash_map>
28384 hash_map<int,int> t;
28389 rm -f conftest.$ac_objext
28390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28391 (eval $ac_compile) 2>conftest.er1
28393 grep -v '^ *+' conftest.er1 >conftest.err
28395 cat conftest.err >&5
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); } &&
28398 { ac_try='test -z "$ac_cxx_werror_flag"
28399 || test ! -s conftest.err'
28400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401 (eval $ac_try) 2>&5
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; } &&
28405 { ac_try='test -s conftest.$ac_objext'
28406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28407 (eval $ac_try) 2>&5
28409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410 (exit $ac_status); }; }; then
28411 ac_cv_cxx_have_global_hash_map=yes
28413 echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28416 ac_cv_cxx_have_global_hash_map=no
28418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28420 ac_cpp='$CPP $CPPFLAGS'
28421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28426 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28427 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28428 if test "$ac_cv_cxx_have_global_hash_map" = yes
28431 cat >>confdefs.h <<\_ACEOF
28432 #define HAVE_GLOBAL_HASH_MAP 1
28437 cat >>confdefs.h <<\_ACEOF
28438 #define HAVE_GLOBAL_HASH_MAP 0
28443 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28444 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28445 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28446 echo $ECHO_N "(cached) $ECHO_C" >&6
28450 ac_cpp='$CXXCPP $CPPFLAGS'
28451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28455 cat >conftest.$ac_ext <<_ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h. */
28461 #include <ext/hash_set>
28462 #ifdef HAVE_NAMESPACES
28463 using namespace std;
28473 rm -f conftest.$ac_objext
28474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28475 (eval $ac_compile) 2>conftest.er1
28477 grep -v '^ *+' conftest.er1 >conftest.err
28479 cat conftest.err >&5
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); } &&
28482 { ac_try='test -z "$ac_cxx_werror_flag"
28483 || test ! -s conftest.err'
28484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28485 (eval $ac_try) 2>&5
28487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488 (exit $ac_status); }; } &&
28489 { ac_try='test -s conftest.$ac_objext'
28490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28491 (eval $ac_try) 2>&5
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); }; }; then
28495 ac_cv_cxx_have_std_ext_hash_set=yes
28497 echo "$as_me: failed program was:" >&5
28498 sed 's/^/| /' conftest.$ac_ext >&5
28500 ac_cv_cxx_have_std_ext_hash_set=no
28502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28504 ac_cpp='$CPP $CPPFLAGS'
28505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28510 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28511 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28512 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28515 cat >>confdefs.h <<\_ACEOF
28516 #define HAVE_STD_EXT_HASH_SET 1
28521 cat >>confdefs.h <<\_ACEOF
28522 #define HAVE_STD_EXT_HASH_SET 0
28527 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28528 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28529 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28530 echo $ECHO_N "(cached) $ECHO_C" >&6
28534 ac_cpp='$CXXCPP $CPPFLAGS'
28535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28539 cat >conftest.$ac_ext <<_ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h. */
28545 #include <ext/hash_set>
28546 #ifdef HAVE_NAMESPACES
28547 using namespace __gnu_cxx;
28557 rm -f conftest.$ac_objext
28558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28559 (eval $ac_compile) 2>conftest.er1
28561 grep -v '^ *+' conftest.er1 >conftest.err
28563 cat conftest.err >&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } &&
28566 { ac_try='test -z "$ac_cxx_werror_flag"
28567 || test ! -s conftest.err'
28568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569 (eval $ac_try) 2>&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; } &&
28573 { ac_try='test -s conftest.$ac_objext'
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; }; then
28579 ac_cv_cxx_have_gnu_ext_hash_set=yes
28581 echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28584 ac_cv_cxx_have_gnu_ext_hash_set=no
28586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28588 ac_cpp='$CPP $CPPFLAGS'
28589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28594 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28595 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28596 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28599 cat >>confdefs.h <<\_ACEOF
28600 #define HAVE_GNU_EXT_HASH_SET 1
28605 cat >>confdefs.h <<\_ACEOF
28606 #define HAVE_GNU_EXT_HASH_SET 0
28611 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28612 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28613 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28614 echo $ECHO_N "(cached) $ECHO_C" >&6
28618 ac_cpp='$CXXCPP $CPPFLAGS'
28619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28623 cat >conftest.$ac_ext <<_ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h. */
28629 #include <hash_set>
28633 hash_set<int> t; return 0;
28638 rm -f conftest.$ac_objext
28639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28640 (eval $ac_compile) 2>conftest.er1
28642 grep -v '^ *+' conftest.er1 >conftest.err
28644 cat conftest.err >&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } &&
28647 { ac_try='test -z "$ac_cxx_werror_flag"
28648 || test ! -s conftest.err'
28649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650 (eval $ac_try) 2>&5
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); }; } &&
28654 { ac_try='test -s conftest.$ac_objext'
28655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656 (eval $ac_try) 2>&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; }; then
28660 ac_cv_cxx_have_global_hash_set=yes
28662 echo "$as_me: failed program was:" >&5
28663 sed 's/^/| /' conftest.$ac_ext >&5
28665 ac_cv_cxx_have_global_hash_set=no
28667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28669 ac_cpp='$CPP $CPPFLAGS'
28670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28675 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28676 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28677 if test "$ac_cv_cxx_have_global_hash_set" = yes
28680 cat >>confdefs.h <<\_ACEOF
28681 #define HAVE_GLOBAL_HASH_SET 1
28686 cat >>confdefs.h <<\_ACEOF
28687 #define HAVE_GLOBAL_HASH_SET 0
28692 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28693 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28694 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28695 echo $ECHO_N "(cached) $ECHO_C" >&6
28699 ac_cpp='$CXXCPP $CPPFLAGS'
28700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28704 cat >conftest.$ac_ext <<_ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h. */
28710 #include <iterator>
28711 #ifdef HAVE_NAMESPACES
28712 using namespace std;
28717 iterator<int,int,int> t; return 0;
28722 rm -f conftest.$ac_objext
28723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28724 (eval $ac_compile) 2>conftest.er1
28726 grep -v '^ *+' conftest.er1 >conftest.err
28728 cat conftest.err >&5
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); } &&
28731 { ac_try='test -z "$ac_cxx_werror_flag"
28732 || test ! -s conftest.err'
28733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734 (eval $ac_try) 2>&5
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; } &&
28738 { ac_try='test -s conftest.$ac_objext'
28739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28740 (eval $ac_try) 2>&5
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); }; }; then
28744 ac_cv_cxx_have_std_iterator=yes
28746 echo "$as_me: failed program was:" >&5
28747 sed 's/^/| /' conftest.$ac_ext >&5
28749 ac_cv_cxx_have_std_iterator=no
28751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28753 ac_cpp='$CPP $CPPFLAGS'
28754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28760 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28761 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28762 if test "$ac_cv_cxx_have_std_iterator" = yes
28765 cat >>confdefs.h <<\_ACEOF
28766 #define HAVE_STD_ITERATOR 1
28771 cat >>confdefs.h <<\_ACEOF
28772 #define HAVE_STD_ITERATOR 0
28777 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28778 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28779 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28784 ac_cpp='$CXXCPP $CPPFLAGS'
28785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28789 cat >conftest.$ac_ext <<_ACEOF
28792 cat confdefs.h >>conftest.$ac_ext
28793 cat >>conftest.$ac_ext <<_ACEOF
28794 /* end confdefs.h. */
28795 #include <iterator>
28796 #ifdef HAVE_NAMESPACES
28797 using namespace std;
28802 bidirectional_iterator<int,int> t; return 0;
28807 rm -f conftest.$ac_objext
28808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28809 (eval $ac_compile) 2>conftest.er1
28811 grep -v '^ *+' conftest.er1 >conftest.err
28813 cat conftest.err >&5
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); } &&
28816 { ac_try='test -z "$ac_cxx_werror_flag"
28817 || test ! -s conftest.err'
28818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28819 (eval $ac_try) 2>&5
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); }; } &&
28823 { ac_try='test -s conftest.$ac_objext'
28824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825 (eval $ac_try) 2>&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; }; then
28829 ac_cv_cxx_have_bi_iterator=yes
28831 echo "$as_me: failed program was:" >&5
28832 sed 's/^/| /' conftest.$ac_ext >&5
28834 ac_cv_cxx_have_bi_iterator=no
28836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28838 ac_cpp='$CPP $CPPFLAGS'
28839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28845 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28846 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28847 if test "$ac_cv_cxx_have_bi_iterator" = yes
28850 cat >>confdefs.h <<\_ACEOF
28851 #define HAVE_BI_ITERATOR 1
28856 cat >>confdefs.h <<\_ACEOF
28857 #define HAVE_BI_ITERATOR 0
28862 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28863 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28864 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28865 echo $ECHO_N "(cached) $ECHO_C" >&6
28869 ac_cpp='$CXXCPP $CPPFLAGS'
28870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28874 cat >conftest.$ac_ext <<_ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h. */
28880 #include <iterator>
28881 #ifdef HAVE_NAMESPACES
28882 using namespace std;
28887 forward_iterator<int,int> t; return 0;
28892 rm -f conftest.$ac_objext
28893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28894 (eval $ac_compile) 2>conftest.er1
28896 grep -v '^ *+' conftest.er1 >conftest.err
28898 cat conftest.err >&5
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); } &&
28901 { ac_try='test -z "$ac_cxx_werror_flag"
28902 || test ! -s conftest.err'
28903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904 (eval $ac_try) 2>&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); }; } &&
28908 { ac_try='test -s conftest.$ac_objext'
28909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910 (eval $ac_try) 2>&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); }; }; then
28914 ac_cv_cxx_have_fwd_iterator=yes
28916 echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28919 ac_cv_cxx_have_fwd_iterator=no
28921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28923 ac_cpp='$CPP $CPPFLAGS'
28924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28930 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28931 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28932 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28935 cat >>confdefs.h <<\_ACEOF
28936 #define HAVE_FWD_ITERATOR 1
28941 cat >>confdefs.h <<\_ACEOF
28942 #define HAVE_FWD_ITERATOR 0
28948 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28949 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28950 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28954 ac_cpp='$CXXCPP $CPPFLAGS'
28955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28959 cat >conftest.$ac_ext <<_ACEOF
28962 cat confdefs.h >>conftest.$ac_ext
28963 cat >>conftest.$ac_ext <<_ACEOF
28964 /* end confdefs.h. */
28974 rm -f conftest.$ac_objext
28975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28976 (eval $ac_compile) 2>conftest.er1
28978 grep -v '^ *+' conftest.er1 >conftest.err
28980 cat conftest.err >&5
28981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982 (exit $ac_status); } &&
28983 { ac_try='test -z "$ac_cxx_werror_flag"
28984 || test ! -s conftest.err'
28985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28986 (eval $ac_try) 2>&5
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); }; } &&
28990 { ac_try='test -s conftest.$ac_objext'
28991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28992 (eval $ac_try) 2>&5
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); }; }; then
28996 ac_cv_func_isnan_in_math_h=yes
28998 echo "$as_me: failed program was:" >&5
28999 sed 's/^/| /' conftest.$ac_ext >&5
29001 ac_cv_func_isnan_in_math_h=no
29003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29005 ac_cpp='$CPP $CPPFLAGS'
29006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29011 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29012 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29015 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29017 cat >>confdefs.h <<\_ACEOF
29018 #define HAVE_ISNAN_IN_MATH_H 1
29023 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29024 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29025 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29029 ac_cpp='$CXXCPP $CPPFLAGS'
29030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29034 cat >conftest.$ac_ext <<_ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h. */
29049 rm -f conftest.$ac_objext
29050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29051 (eval $ac_compile) 2>conftest.er1
29053 grep -v '^ *+' conftest.er1 >conftest.err
29055 cat conftest.err >&5
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } &&
29058 { ac_try='test -z "$ac_cxx_werror_flag"
29059 || test ! -s conftest.err'
29060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29061 (eval $ac_try) 2>&5
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); }; } &&
29065 { ac_try='test -s conftest.$ac_objext'
29066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067 (eval $ac_try) 2>&5
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; }; then
29071 ac_cv_func_isnan_in_cmath=yes
29073 echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29076 ac_cv_func_isnan_in_cmath=no
29078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29080 ac_cpp='$CPP $CPPFLAGS'
29081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29086 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29087 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29089 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29091 cat >>confdefs.h <<\_ACEOF
29092 #define HAVE_ISNAN_IN_CMATH 1
29097 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29098 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29099 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29100 echo $ECHO_N "(cached) $ECHO_C" >&6
29103 ac_cpp='$CXXCPP $CPPFLAGS'
29104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29108 cat >conftest.$ac_ext <<_ACEOF
29111 cat confdefs.h >>conftest.$ac_ext
29112 cat >>conftest.$ac_ext <<_ACEOF
29113 /* end confdefs.h. */
29118 float f; std::isnan(f);
29123 rm -f conftest.$ac_objext
29124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29125 (eval $ac_compile) 2>conftest.er1
29127 grep -v '^ *+' conftest.er1 >conftest.err
29129 cat conftest.err >&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } &&
29132 { ac_try='test -z "$ac_cxx_werror_flag"
29133 || test ! -s conftest.err'
29134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; } &&
29139 { ac_try='test -s conftest.$ac_objext'
29140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29141 (eval $ac_try) 2>&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; }; then
29145 ac_cv_func_std_isnan_in_cmath=yes
29147 echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29150 ac_cv_func_std_isnan_in_cmath=no
29152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29154 ac_cpp='$CPP $CPPFLAGS'
29155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29160 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29161 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29163 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29165 cat >>confdefs.h <<\_ACEOF
29166 #define HAVE_STD_ISNAN_IN_CMATH 1
29172 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29173 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29174 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29175 echo $ECHO_N "(cached) $ECHO_C" >&6
29178 ac_cpp='$CXXCPP $CPPFLAGS'
29179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29183 cat >conftest.$ac_ext <<_ACEOF
29186 cat confdefs.h >>conftest.$ac_ext
29187 cat >>conftest.$ac_ext <<_ACEOF
29188 /* end confdefs.h. */
29198 rm -f conftest.$ac_objext
29199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29200 (eval $ac_compile) 2>conftest.er1
29202 grep -v '^ *+' conftest.er1 >conftest.err
29204 cat conftest.err >&5
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); } &&
29207 { ac_try='test -z "$ac_cxx_werror_flag"
29208 || test ! -s conftest.err'
29209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210 (eval $ac_try) 2>&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; } &&
29214 { ac_try='test -s conftest.$ac_objext'
29215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 ac_cv_func_isinf_in_math_h=yes
29222 echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29225 ac_cv_func_isinf_in_math_h=no
29227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29229 ac_cpp='$CPP $CPPFLAGS'
29230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29235 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29236 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29238 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29240 cat >>confdefs.h <<\_ACEOF
29241 #define HAVE_ISINF_IN_MATH_H 1
29246 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29247 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29248 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29252 ac_cpp='$CXXCPP $CPPFLAGS'
29253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29257 cat >conftest.$ac_ext <<_ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h. */
29272 rm -f conftest.$ac_objext
29273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29274 (eval $ac_compile) 2>conftest.er1
29276 grep -v '^ *+' conftest.er1 >conftest.err
29278 cat conftest.err >&5
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); } &&
29281 { ac_try='test -z "$ac_cxx_werror_flag"
29282 || test ! -s conftest.err'
29283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284 (eval $ac_try) 2>&5
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); }; } &&
29288 { ac_try='test -s conftest.$ac_objext'
29289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29290 (eval $ac_try) 2>&5
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); }; }; then
29294 ac_cv_func_isinf_in_cmath=yes
29296 echo "$as_me: failed program was:" >&5
29297 sed 's/^/| /' conftest.$ac_ext >&5
29299 ac_cv_func_isinf_in_cmath=no
29301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29303 ac_cpp='$CPP $CPPFLAGS'
29304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29309 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29310 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29312 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29314 cat >>confdefs.h <<\_ACEOF
29315 #define HAVE_ISINF_IN_CMATH 1
29320 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29321 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29322 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29323 echo $ECHO_N "(cached) $ECHO_C" >&6
29326 ac_cpp='$CXXCPP $CPPFLAGS'
29327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29331 cat >conftest.$ac_ext <<_ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h. */
29341 float f; std::isinf(f)}
29346 rm -f conftest.$ac_objext
29347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29348 (eval $ac_compile) 2>conftest.er1
29350 grep -v '^ *+' conftest.er1 >conftest.err
29352 cat conftest.err >&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); } &&
29355 { ac_try='test -z "$ac_cxx_werror_flag"
29356 || test ! -s conftest.err'
29357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358 (eval $ac_try) 2>&5
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; } &&
29362 { ac_try='test -s conftest.$ac_objext'
29363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29364 (eval $ac_try) 2>&5
29366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); }; }; then
29368 ac_cv_func_std_isinf_in_cmath=yes
29370 echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29373 ac_cv_func_std_isinf_in_cmath=no
29375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29377 ac_cpp='$CPP $CPPFLAGS'
29378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29383 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29384 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29386 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29388 cat >>confdefs.h <<\_ACEOF
29389 #define HAVE_STD_ISINF_IN_CMATH 1
29394 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29395 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29396 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29397 echo $ECHO_N "(cached) $ECHO_C" >&6
29400 ac_cpp='$CXXCPP $CPPFLAGS'
29401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29405 cat >conftest.$ac_ext <<_ACEOF
29408 cat confdefs.h >>conftest.$ac_ext
29409 cat >>conftest.$ac_ext <<_ACEOF
29410 /* end confdefs.h. */
29411 #include <ieeefp.h>
29415 float f; finite(f);
29420 rm -f conftest.$ac_objext
29421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29422 (eval $ac_compile) 2>conftest.er1
29424 grep -v '^ *+' conftest.er1 >conftest.err
29426 cat conftest.err >&5
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); } &&
29429 { ac_try='test -z "$ac_cxx_werror_flag"
29430 || test ! -s conftest.err'
29431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29432 (eval $ac_try) 2>&5
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); }; } &&
29436 { ac_try='test -s conftest.$ac_objext'
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; }; then
29442 ac_cv_func_finite_in_ieeefp_h=yes
29444 echo "$as_me: failed program was:" >&5
29445 sed 's/^/| /' conftest.$ac_ext >&5
29447 ac_cv_func_finite_in_ieeefp_h=no
29449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29451 ac_cpp='$CPP $CPPFLAGS'
29452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29457 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29458 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29460 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29462 cat >>confdefs.h <<\_ACEOF
29463 #define HAVE_FINITE_IN_IEEEFP_H 1
29472 for ac_header in stdlib.h unistd.h
29474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29476 echo "$as_me:$LINENO: checking for $ac_header" >&5
29477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29479 echo $ECHO_N "(cached) $ECHO_C" >&6
29481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29484 # Is the header compilable?
29485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29487 cat >conftest.$ac_ext <<_ACEOF
29490 cat confdefs.h >>conftest.$ac_ext
29491 cat >>conftest.$ac_ext <<_ACEOF
29492 /* end confdefs.h. */
29493 $ac_includes_default
29494 #include <$ac_header>
29496 rm -f conftest.$ac_objext
29497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29498 (eval $ac_compile) 2>conftest.er1
29500 grep -v '^ *+' conftest.er1 >conftest.err
29502 cat conftest.err >&5
29503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504 (exit $ac_status); } &&
29505 { ac_try='test -z "$ac_c_werror_flag"
29506 || test ! -s conftest.err'
29507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29508 (eval $ac_try) 2>&5
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); }; } &&
29512 { ac_try='test -s conftest.$ac_objext'
29513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514 (eval $ac_try) 2>&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; }; then
29518 ac_header_compiler=yes
29520 echo "$as_me: failed program was:" >&5
29521 sed 's/^/| /' conftest.$ac_ext >&5
29523 ac_header_compiler=no
29525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29527 echo "${ECHO_T}$ac_header_compiler" >&6
29529 # Is the header present?
29530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29532 cat >conftest.$ac_ext <<_ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h. */
29538 #include <$ac_header>
29540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29543 grep -v '^ *+' conftest.er1 >conftest.err
29545 cat conftest.err >&5
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); } >/dev/null; then
29548 if test -s conftest.err; then
29549 ac_cpp_err=$ac_c_preproc_warn_flag
29550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29557 if test -z "$ac_cpp_err"; then
29558 ac_header_preproc=yes
29560 echo "$as_me: failed program was:" >&5
29561 sed 's/^/| /' conftest.$ac_ext >&5
29563 ac_header_preproc=no
29565 rm -f conftest.err conftest.$ac_ext
29566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29567 echo "${ECHO_T}$ac_header_preproc" >&6
29569 # So? What about this header?
29570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29576 ac_header_preproc=yes
29579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29593 ## ----------------------------------- ##
29594 ## Report this to llvmbugs@cs.uiuc.edu ##
29595 ## ----------------------------------- ##
29598 sed "s/^/$as_me: WARNING: /" >&2
29601 echo "$as_me:$LINENO: checking for $ac_header" >&5
29602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29604 echo $ECHO_N "(cached) $ECHO_C" >&6
29606 eval "$as_ac_Header=\$ac_header_preproc"
29608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29613 cat >>confdefs.h <<_ACEOF
29614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29622 for ac_func in getpagesize
29624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29625 echo "$as_me:$LINENO: checking for $ac_func" >&5
29626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29627 if eval "test \"\${$as_ac_var+set}\" = set"; then
29628 echo $ECHO_N "(cached) $ECHO_C" >&6
29630 cat >conftest.$ac_ext <<_ACEOF
29633 cat confdefs.h >>conftest.$ac_ext
29634 cat >>conftest.$ac_ext <<_ACEOF
29635 /* end confdefs.h. */
29636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29638 #define $ac_func innocuous_$ac_func
29640 /* System header to define __stub macros and hopefully few prototypes,
29641 which can conflict with char $ac_func (); below.
29642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29643 <limits.h> exists even on freestanding compilers. */
29646 # include <limits.h>
29648 # include <assert.h>
29653 /* Override any gcc2 internal prototype to avoid an error. */
29658 /* We use char because int might match the return type of a gcc2
29659 builtin and then its argument prototype would still apply. */
29661 /* The GNU C library defines this for functions which it implements
29662 to always fail with ENOSYS. Some functions are actually named
29663 something starting with __ and the normal name is an alias. */
29664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29667 char (*f) () = $ac_func;
29676 return f != $ac_func;
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29683 (eval $ac_link) 2>conftest.er1
29685 grep -v '^ *+' conftest.er1 >conftest.err
29687 cat conftest.err >&5
29688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29689 (exit $ac_status); } &&
29690 { ac_try='test -z "$ac_c_werror_flag"
29691 || test ! -s conftest.err'
29692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29693 (eval $ac_try) 2>&5
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); }; } &&
29697 { ac_try='test -s conftest$ac_exeext'
29698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29699 (eval $ac_try) 2>&5
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); }; }; then
29703 eval "$as_ac_var=yes"
29705 echo "$as_me: failed program was:" >&5
29706 sed 's/^/| /' conftest.$ac_ext >&5
29708 eval "$as_ac_var=no"
29710 rm -f conftest.err conftest.$ac_objext \
29711 conftest$ac_exeext conftest.$ac_ext
29713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29715 if test `eval echo '${'$as_ac_var'}'` = yes; then
29716 cat >>confdefs.h <<_ACEOF
29717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29723 echo "$as_me:$LINENO: checking for working mmap" >&5
29724 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29725 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29726 echo $ECHO_N "(cached) $ECHO_C" >&6
29728 if test "$cross_compiling" = yes; then
29729 ac_cv_func_mmap_fixed_mapped=no
29731 cat >conftest.$ac_ext <<_ACEOF
29734 cat confdefs.h >>conftest.$ac_ext
29735 cat >>conftest.$ac_ext <<_ACEOF
29736 /* end confdefs.h. */
29737 $ac_includes_default
29738 /* malloc might have been renamed as rpl_malloc. */
29741 /* Thanks to Mike Haertel and Jim Avera for this test.
29742 Here is a matrix of mmap possibilities:
29743 mmap private not fixed
29744 mmap private fixed at somewhere currently unmapped
29745 mmap private fixed at somewhere already mapped
29746 mmap shared not fixed
29747 mmap shared fixed at somewhere currently unmapped
29748 mmap shared fixed at somewhere already mapped
29749 For private mappings, we should verify that changes cannot be read()
29750 back from the file, nor mmap's back from the file at a different
29751 address. (There have been systems where private was not correctly
29752 implemented like the infamous i386 svr4.0, and systems where the
29753 VM page cache was not coherent with the file system buffer cache
29754 like early versions of FreeBSD and possibly contemporary NetBSD.)
29755 For shared mappings, we should conversely verify that changes get
29756 propagated back to all the places they're supposed to be.
29758 Grep wants private fixed already mapped.
29759 The main things grep needs to know about mmap are:
29760 * does it exist and is it safe to write into the mmap'd area
29761 * how to use it (BSD variants) */
29764 #include <sys/mman.h>
29766 #if !STDC_HEADERS && !HAVE_STDLIB_H
29770 /* This mess was copied from the GNU getpagesize.h. */
29771 #if !HAVE_GETPAGESIZE
29772 /* Assume that all systems that can run configure have sys/param.h. */
29773 # if !HAVE_SYS_PARAM_H
29774 # define HAVE_SYS_PARAM_H 1
29777 # ifdef _SC_PAGESIZE
29778 # define getpagesize() sysconf(_SC_PAGESIZE)
29779 # else /* no _SC_PAGESIZE */
29780 # if HAVE_SYS_PARAM_H
29781 # include <sys/param.h>
29782 # ifdef EXEC_PAGESIZE
29783 # define getpagesize() EXEC_PAGESIZE
29784 # else /* no EXEC_PAGESIZE */
29786 # define getpagesize() NBPG * CLSIZE
29789 # endif /* no CLSIZE */
29790 # else /* no NBPG */
29792 # define getpagesize() NBPC
29793 # else /* no NBPC */
29795 # define getpagesize() PAGESIZE
29796 # endif /* PAGESIZE */
29797 # endif /* no NBPC */
29798 # endif /* no NBPG */
29799 # endif /* no EXEC_PAGESIZE */
29800 # else /* no HAVE_SYS_PARAM_H */
29801 # define getpagesize() 8192 /* punt totally */
29802 # endif /* no HAVE_SYS_PARAM_H */
29803 # endif /* no _SC_PAGESIZE */
29805 #endif /* no HAVE_GETPAGESIZE */
29810 char *data, *data2, *data3;
29814 pagesize = getpagesize ();
29816 /* First, make a file with some known garbage in it. */
29817 data = (char *) malloc (pagesize);
29820 for (i = 0; i < pagesize; ++i)
29821 *(data + i) = rand ();
29823 fd = creat ("conftest.mmap", 0600);
29826 if (write (fd, data, pagesize) != pagesize)
29830 /* Next, try to mmap the file at a fixed address which already has
29831 something else allocated at it. If we can, also make sure that
29832 we see the same garbage. */
29833 fd = open ("conftest.mmap", O_RDWR);
29836 data2 = (char *) malloc (2 * pagesize);
29839 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29840 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29841 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29843 for (i = 0; i < pagesize; ++i)
29844 if (*(data + i) != *(data2 + i))
29847 /* Finally, make sure that changes to the mapped area do not
29848 percolate back to the file as seen by read(). (This is a bug on
29849 some variants of i386 svr4.0.) */
29850 for (i = 0; i < pagesize; ++i)
29851 *(data2 + i) = *(data2 + i) + 1;
29852 data3 = (char *) malloc (pagesize);
29855 if (read (fd, data3, pagesize) != pagesize)
29857 for (i = 0; i < pagesize; ++i)
29858 if (*(data + i) != *(data3 + i))
29864 rm -f conftest$ac_exeext
29865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29866 (eval $ac_link) 2>&5
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871 (eval $ac_try) 2>&5
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); }; }; then
29875 ac_cv_func_mmap_fixed_mapped=yes
29877 echo "$as_me: program exited with status $ac_status" >&5
29878 echo "$as_me: failed program was:" >&5
29879 sed 's/^/| /' conftest.$ac_ext >&5
29881 ( exit $ac_status )
29882 ac_cv_func_mmap_fixed_mapped=no
29884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29887 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29888 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29889 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29891 cat >>confdefs.h <<\_ACEOF
29892 #define HAVE_MMAP 1
29896 rm -f conftest.mmap
29898 echo "$as_me:$LINENO: checking for mmap of files" >&5
29899 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29900 if test "${ac_cv_func_mmap_file+set}" = set; then
29901 echo $ECHO_N "(cached) $ECHO_C" >&6
29904 ac_cpp='$CPP $CPPFLAGS'
29905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29909 if test "$cross_compiling" = yes; then
29910 ac_cv_func_mmap_file=no
29912 cat >conftest.$ac_ext <<_ACEOF
29916 cat confdefs.h >>conftest.$ac_ext
29917 cat >>conftest.$ac_ext <<_ACEOF
29918 /* end confdefs.h. */
29920 #include <sys/types.h>
29921 #include <sys/mman.h>
29929 fd = creat ("foo",0777);
29930 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29932 return (fd != (int) MAP_FAILED);
29937 rm -f conftest$ac_exeext
29938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29939 (eval $ac_link) 2>&5
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944 (eval $ac_try) 2>&5
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; }; then
29948 ac_cv_func_mmap_file=yes
29950 echo "$as_me: program exited with status $ac_status" >&5
29951 echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29954 ( exit $ac_status )
29955 ac_cv_func_mmap_file=no
29957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29960 ac_cpp='$CPP $CPPFLAGS'
29961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29967 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29968 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29969 if test "$ac_cv_func_mmap_file" = yes; then
29971 cat >>confdefs.h <<\_ACEOF
29972 #define HAVE_MMAP_FILE
29979 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29980 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29981 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29982 echo $ECHO_N "(cached) $ECHO_C" >&6
29984 if test "$llvm_cv_os_type" = "Interix" ; then
29985 ac_cv_need_dev_zero_for_mmap=yes
29987 ac_cv_need_dev_zero_for_mmap=no
29991 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29992 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29993 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29995 cat >>confdefs.h <<\_ACEOF
29996 #define NEED_DEV_ZERO_FOR_MMAP 1
30000 echo "$as_me:$LINENO: checking for mprotect" >&5
30001 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30002 if test "${ac_cv_func_mprotect+set}" = set; then
30003 echo $ECHO_N "(cached) $ECHO_C" >&6
30005 cat >conftest.$ac_ext <<_ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h. */
30011 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30013 #define mprotect innocuous_mprotect
30015 /* System header to define __stub macros and hopefully few prototypes,
30016 which can conflict with char mprotect (); below.
30017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30018 <limits.h> exists even on freestanding compilers. */
30021 # include <limits.h>
30023 # include <assert.h>
30028 /* Override any gcc2 internal prototype to avoid an error. */
30033 /* We use char because int might match the return type of a gcc2
30034 builtin and then its argument prototype would still apply. */
30036 /* The GNU C library defines this for functions which it implements
30037 to always fail with ENOSYS. Some functions are actually named
30038 something starting with __ and the normal name is an alias. */
30039 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30042 char (*f) () = mprotect;
30051 return f != mprotect;
30056 rm -f conftest.$ac_objext conftest$ac_exeext
30057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30058 (eval $ac_link) 2>conftest.er1
30060 grep -v '^ *+' conftest.er1 >conftest.err
30062 cat conftest.err >&5
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); } &&
30065 { ac_try='test -z "$ac_c_werror_flag"
30066 || test ! -s conftest.err'
30067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30068 (eval $ac_try) 2>&5
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); }; } &&
30072 { ac_try='test -s conftest$ac_exeext'
30073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30074 (eval $ac_try) 2>&5
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077 (exit $ac_status); }; }; then
30078 ac_cv_func_mprotect=yes
30080 echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30083 ac_cv_func_mprotect=no
30085 rm -f conftest.err conftest.$ac_objext \
30086 conftest$ac_exeext conftest.$ac_ext
30088 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30089 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30090 if test $ac_cv_func_mprotect = yes; then
30093 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30094 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30095 { (exit 1); exit 1; }; }
30099 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30101 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30102 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30104 if test "$ac_cv_func_mmap_file" = "no"
30106 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30107 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30111 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30112 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30113 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30114 echo $ECHO_N "(cached) $ECHO_C" >&6
30116 llvm_cv_llvmgcc_sanity="no"
30117 if test -x "$LLVMGCC" ; then
30118 cp /dev/null conftest.c
30119 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30120 if test $? -eq 0 ; then
30121 llvm_cv_llvmgcc_sanity="yes"
30126 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30127 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30129 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30130 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30131 LLVMCC1=$llvmcc1path
30133 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30134 LLVMCC1PLUS=$llvmcc1pluspath
30136 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30137 LLVMGCCDIR=$llvmgccdir
30141 SHLIBEXT=$libltdl_cv_shlibext
30144 # Translate the various configuration directories and other basic
30145 # information into substitutions that will end up in Makefile.config.in
30146 # that these configured values can be used by the makefiles
30147 eval LLVM_PREFIX="${prefix}";
30148 eval LLVM_BINDIR="${prefix}/bin";
30149 eval LLVM_LIBDIR="${prefix}/lib";
30150 eval LLVM_DATADIR="${prefix}/share/llvm";
30151 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30152 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30153 eval LLVM_INCLUDEDIR="${prefix}/include";
30154 eval LLVM_INFODIR="${prefix}/info";
30155 eval LLVM_MANDIR="${prefix}/man";
30156 LLVM_CONFIGTIME=`date`
30168 # Place the various directores into the config.h file as #defines so that we
30169 # can know about the installation paths within LLVM.
30171 cat >>confdefs.h <<_ACEOF
30172 #define LLVM_PREFIX "$LLVM_PREFIX"
30176 cat >>confdefs.h <<_ACEOF
30177 #define LLVM_BINDIR "$LLVM_BINDIR"
30181 cat >>confdefs.h <<_ACEOF
30182 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30186 cat >>confdefs.h <<_ACEOF
30187 #define LLVM_DATADIR "$LLVM_DATADIR"
30191 cat >>confdefs.h <<_ACEOF
30192 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30196 cat >>confdefs.h <<_ACEOF
30197 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30201 cat >>confdefs.h <<_ACEOF
30202 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30206 cat >>confdefs.h <<_ACEOF
30207 #define LLVM_INFODIR "$LLVM_INFODIR"
30211 cat >>confdefs.h <<_ACEOF
30212 #define LLVM_MANDIR "$LLVM_MANDIR"
30216 cat >>confdefs.h <<_ACEOF
30217 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30222 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30225 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30227 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30229 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30231 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30233 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30236 ac_config_files="$ac_config_files Makefile.config"
30239 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30242 ac_config_files="$ac_config_files docs/doxygen.cfg"
30245 ac_config_commands="$ac_config_commands setup"
30247 ac_config_commands="$ac_config_commands Makefile"
30250 ac_config_commands="$ac_config_commands Makefile.common"
30253 ac_config_commands="$ac_config_commands examples/Makefile"
30256 ac_config_commands="$ac_config_commands lib/Makefile"
30259 ac_config_commands="$ac_config_commands runtime/Makefile"
30262 ac_config_commands="$ac_config_commands test/Makefile"
30265 ac_config_commands="$ac_config_commands test/Makefile.tests"
30268 ac_config_commands="$ac_config_commands tools/Makefile"
30271 ac_config_commands="$ac_config_commands utils/Makefile"
30274 ac_config_commands="$ac_config_commands projects/Makefile"
30278 cat >confcache <<\_ACEOF
30279 # This file is a shell script that caches the results of configure
30280 # tests run on this system so they can be shared between configure
30281 # scripts and configure runs, see configure's option --config-cache.
30282 # It is not useful on other systems. If it contains results you don't
30283 # want to keep, you may remove or edit it.
30285 # config.status only pays attention to the cache file if you give it
30286 # the --recheck option to rerun configure.
30288 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30289 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30290 # following values.
30294 # The following way of writing the cache mishandles newlines in values,
30295 # but we know of no workaround that is simple, portable, and efficient.
30296 # So, don't put newlines in cache variables' values.
30297 # Ultrix sh set writes to stderr and can't be redirected directly,
30298 # and sets the high bit in the cache file unless we assign to the vars.
30301 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30303 # `set' does not quote correctly, so add quotes (double-quote
30304 # substitution turns \\\\ into \\, and sed turns \\ into \).
30307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30310 # `set' quotes correctly as required by POSIX, so do not add quotes.
30312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30319 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30321 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30323 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30324 if test -w $cache_file; then
30325 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30326 cat confcache >$cache_file
30328 echo "not updating unwritable cache $cache_file"
30333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30334 # Let make expand exec_prefix.
30335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30337 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30338 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30339 # trailing colons and then remove the whole line if VPATH becomes empty
30340 # (actually we leave an empty line to preserve line numbers).
30341 if test "x$srcdir" = x.; then
30342 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30343 s/:*\$(srcdir):*/:/;
30344 s/:*\${srcdir}:*/:/;
30346 s/^\([^=]*=[ ]*\):*/\1/;
30352 DEFS=-DHAVE_CONFIG_H
30356 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30357 # 1. Remove the extension, and $U if already installed.
30358 ac_i=`echo "$ac_i" |
30359 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30361 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30362 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30364 LIBOBJS=$ac_libobjs
30366 LTLIBOBJS=$ac_ltlibobjs
30369 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30370 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30371 Usually this means the macro was only invoked conditionally." >&5
30372 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30373 Usually this means the macro was only invoked conditionally." >&2;}
30374 { (exit 1); exit 1; }; }
30376 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30377 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30378 Usually this means the macro was only invoked conditionally." >&5
30379 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30380 Usually this means the macro was only invoked conditionally." >&2;}
30381 { (exit 1); exit 1; }; }
30384 : ${CONFIG_STATUS=./config.status}
30385 ac_clean_files_save=$ac_clean_files
30386 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30387 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30388 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30389 cat >$CONFIG_STATUS <<_ACEOF
30391 # Generated by $as_me.
30392 # Run this file to recreate the current configuration.
30393 # Compiler output produced by configure, useful for debugging
30394 # configure, is in config.log if it exists.
30397 ac_cs_recheck=false
30399 SHELL=\${CONFIG_SHELL-$SHELL}
30402 cat >>$CONFIG_STATUS <<\_ACEOF
30403 ## --------------------- ##
30404 ## M4sh Initialization. ##
30405 ## --------------------- ##
30407 # Be Bourne compatible
30408 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30411 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30412 # is contrary to our usage. Disable this feature.
30413 alias -g '${1+"$@"}'='"$@"'
30414 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30417 DUALCASE=1; export DUALCASE # for MKS sh
30419 # Support unset when possible.
30420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30427 # Work around bugs in pre-3.0 UWIN ksh.
30428 $as_unset ENV MAIL MAILPATH
30435 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30436 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30437 LC_TELEPHONE LC_TIME
30439 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30440 eval $as_var=C; export $as_var
30446 # Required to use basename.
30447 if expr a : '\(a\)' >/dev/null 2>&1; then
30453 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30454 as_basename=basename
30460 # Name of the executable.
30461 as_me=`$as_basename "$0" ||
30462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30463 X"$0" : 'X\(//\)$' \| \
30464 X"$0" : 'X\(/\)$' \| \
30465 . : '\(.\)' 2>/dev/null ||
30467 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30468 /^X\/\(\/\/\)$/{ s//\1/; q; }
30469 /^X\/\(\/\).*/{ s//\1/; q; }
30473 # PATH needs CR, and LINENO needs CR and PATH.
30474 # Avoid depending upon Character Ranges.
30475 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30476 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30477 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30478 as_cr_digits='0123456789'
30479 as_cr_alnum=$as_cr_Letters$as_cr_digits
30481 # The user is always right.
30482 if test "${PATH_SEPARATOR+set}" != set; then
30483 echo "#! /bin/sh" >conf$$.sh
30484 echo "exit 0" >>conf$$.sh
30486 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30495 as_lineno_1=$LINENO
30496 as_lineno_2=$LINENO
30497 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30498 test "x$as_lineno_1" != "x$as_lineno_2" &&
30499 test "x$as_lineno_3" = "x$as_lineno_2" || {
30500 # Find who we are. Look in the path if we contain no path at all
30503 *[\\/]* ) as_myself=$0 ;;
30504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30505 for as_dir in $PATH
30508 test -z "$as_dir" && as_dir=.
30509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30514 # We did not find ourselves, most probably we were run as `sh COMMAND'
30515 # in which case we are not to be found in the path.
30516 if test "x$as_myself" = x; then
30519 if test ! -f "$as_myself"; then
30520 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30521 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30522 { (exit 1); exit 1; }; }
30524 case $CONFIG_SHELL in
30526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30527 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30530 test -z "$as_dir" && as_dir=.
30531 for as_base in sh bash ksh sh5; do
30534 if ("$as_dir/$as_base" -c '
30535 as_lineno_1=$LINENO
30536 as_lineno_2=$LINENO
30537 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30538 test "x$as_lineno_1" != "x$as_lineno_2" &&
30539 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30540 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30541 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30542 CONFIG_SHELL=$as_dir/$as_base
30543 export CONFIG_SHELL
30544 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30552 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30553 # uniformly replaced by the line number. The first 'sed' inserts a
30554 # line-number line before each line; the second 'sed' does the real
30555 # work. The second script uses 'N' to pair each line-number line
30556 # with the numbered line, and appends trailing '-' during
30557 # substitution so that $LINENO is not a special case at line end.
30558 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30559 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30560 sed '=' <$as_myself |
30565 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30568 s,^['$as_cr_digits']*\n,,
30569 ' >$as_me.lineno &&
30570 chmod +x $as_me.lineno ||
30571 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30572 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30573 { (exit 1); exit 1; }; }
30575 # Don't try to exec as it changes $[0], causing all sort of problems
30576 # (the dirname of $[0] is not the place where we might find the
30577 # original and so on. Autoconf is especially sensible to this).
30579 # Exit status is that of the last command.
30584 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30585 *c*,-n*) ECHO_N= ECHO_C='
30587 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30588 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30591 if expr a : '\(a\)' >/dev/null 2>&1; then
30597 rm -f conf$$ conf$$.exe conf$$.file
30599 if ln -s conf$$.file conf$$ 2>/dev/null; then
30600 # We could just check for DJGPP; but this test a) works b) is more generic
30601 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30602 if test -f conf$$.exe; then
30603 # Don't use ln at all; we don't have any links
30608 elif ln conf$$.file conf$$ 2>/dev/null; then
30613 rm -f conf$$ conf$$.exe conf$$.file
30615 if mkdir -p . 2>/dev/null; then
30618 test -d ./-p && rmdir ./-p
30622 as_executable_p="test -f"
30624 # Sed expression to map a string onto a valid CPP name.
30625 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30627 # Sed expression to map a string onto a valid variable name.
30628 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30632 # We need space, tab and new line, in precisely that order.
30642 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30643 # report actual input values of CONFIG_FILES etc. instead of their
30644 # values after options handling. Logging --version etc. is OK.
30648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30649 ## Running $as_me. ##
30654 This file was extended by llvm $as_me 1.5cvs, which was
30655 generated by GNU Autoconf 2.59. Invocation command line was
30657 CONFIG_FILES = $CONFIG_FILES
30658 CONFIG_HEADERS = $CONFIG_HEADERS
30659 CONFIG_LINKS = $CONFIG_LINKS
30660 CONFIG_COMMANDS = $CONFIG_COMMANDS
30664 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30668 # Files that config.status was made for.
30669 if test -n "$ac_config_files"; then
30670 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30673 if test -n "$ac_config_headers"; then
30674 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30677 if test -n "$ac_config_links"; then
30678 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30681 if test -n "$ac_config_commands"; then
30682 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30685 cat >>$CONFIG_STATUS <<\_ACEOF
30688 \`$as_me' instantiates files from templates according to the
30689 current configuration.
30691 Usage: $0 [OPTIONS] [FILE]...
30693 -h, --help print this help, then exit
30694 -V, --version print version number, then exit
30695 -q, --quiet do not print progress messages
30696 -d, --debug don't remove temporary files
30697 --recheck update $as_me by reconfiguring in the same conditions
30698 --file=FILE[:TEMPLATE]
30699 instantiate the configuration file FILE
30700 --header=FILE[:TEMPLATE]
30701 instantiate the configuration header FILE
30703 Configuration files:
30706 Configuration headers:
30709 Configuration commands:
30712 Report bugs to <bug-autoconf@gnu.org>."
30715 cat >>$CONFIG_STATUS <<_ACEOF
30717 llvm config.status 1.5cvs
30718 configured by $0, generated by GNU Autoconf 2.59,
30719 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30721 Copyright (C) 2003 Free Software Foundation, Inc.
30722 This config.status script is free software; the Free Software Foundation
30723 gives unlimited permission to copy, distribute and modify it."
30728 cat >>$CONFIG_STATUS <<\_ACEOF
30729 # If no file are specified by the user, then we need to provide default
30730 # value. By we need to know if files were specified by the user.
30736 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30737 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30745 *) # This is not an option, so the user has probably given explicit
30748 ac_need_defaults=false;;
30752 # Handling of the options.
30754 cat >>$CONFIG_STATUS <<\_ACEOF
30755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30757 --version | --vers* | -V )
30758 echo "$ac_cs_version"; exit 0 ;;
30760 # Conflict between --help and --header
30761 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30762 Try \`$0 --help' for more information." >&5
30763 echo "$as_me: error: ambiguous option: $1
30764 Try \`$0 --help' for more information." >&2;}
30765 { (exit 1); exit 1; }; };;
30766 --help | --hel | -h )
30767 echo "$ac_cs_usage"; exit 0 ;;
30768 --debug | --d* | -d )
30770 --file | --fil | --fi | --f )
30772 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30773 ac_need_defaults=false;;
30774 --header | --heade | --head | --hea )
30776 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30777 ac_need_defaults=false;;
30778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30779 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30782 # This is an error.
30783 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30784 Try \`$0 --help' for more information." >&5
30785 echo "$as_me: error: unrecognized option: $1
30786 Try \`$0 --help' for more information." >&2;}
30787 { (exit 1); exit 1; }; } ;;
30789 *) ac_config_targets="$ac_config_targets $1" ;;
30795 ac_configure_extra_args=
30797 if $ac_cs_silent; then
30799 ac_configure_extra_args="$ac_configure_extra_args --silent"
30803 cat >>$CONFIG_STATUS <<_ACEOF
30804 if \$ac_cs_recheck; then
30805 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30806 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30811 cat >>$CONFIG_STATUS <<_ACEOF
30813 # INIT-COMMANDS section.
30816 llvm_src="${srcdir}"
30822 cat >>$CONFIG_STATUS <<\_ACEOF
30823 for ac_config_target in $ac_config_targets
30825 case "$ac_config_target" in
30826 # Handling of arguments.
30827 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30828 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30829 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30830 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30831 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30832 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30833 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30834 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30835 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30836 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30837 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30838 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30839 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30840 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30841 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30842 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30843 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30844 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30845 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30846 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30847 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30848 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30849 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30850 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30851 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30852 { (exit 1); exit 1; }; };;
30856 # If the user did not use the arguments to specify the items to instantiate,
30857 # then the envvar interface is used. Set only those that are not.
30858 # We use the long form for the default assignment because of an extremely
30859 # bizarre bug on SunOS 4.1.3.
30860 if $ac_need_defaults; then
30861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30866 # Have a temporary directory for convenience. Make it in the build tree
30867 # simply because there is no reason to put it here, and in addition,
30868 # creating and moving files from /tmp can sometimes cause problems.
30869 # Create a temporary directory, and hook for its removal unless debugging.
30872 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30873 trap '{ (exit 1); exit 1; }' 1 2 13 15
30876 # Create a (secure) tmp directory for tmp files.
30879 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30880 test -n "$tmp" && test -d "$tmp"
30883 tmp=./confstat$$-$RANDOM
30884 (umask 077 && mkdir $tmp)
30887 echo "$me: cannot create a temporary directory in ." >&2
30888 { (exit 1); exit 1; }
30893 cat >>$CONFIG_STATUS <<_ACEOF
30896 # CONFIG_FILES section.
30899 # No need to generate the scripts if there are no CONFIG_FILES.
30900 # This happens for instance when ./config.status config.h
30901 if test -n "\$CONFIG_FILES"; then
30902 # Protect against being on the right side of a sed subst in config.status.
30903 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30904 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30905 s,@SHELL@,$SHELL,;t t
30906 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30907 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30908 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30909 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30910 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30911 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30912 s,@exec_prefix@,$exec_prefix,;t t
30913 s,@prefix@,$prefix,;t t
30914 s,@program_transform_name@,$program_transform_name,;t t
30915 s,@bindir@,$bindir,;t t
30916 s,@sbindir@,$sbindir,;t t
30917 s,@libexecdir@,$libexecdir,;t t
30918 s,@datadir@,$datadir,;t t
30919 s,@sysconfdir@,$sysconfdir,;t t
30920 s,@sharedstatedir@,$sharedstatedir,;t t
30921 s,@localstatedir@,$localstatedir,;t t
30922 s,@libdir@,$libdir,;t t
30923 s,@includedir@,$includedir,;t t
30924 s,@oldincludedir@,$oldincludedir,;t t
30925 s,@infodir@,$infodir,;t t
30926 s,@mandir@,$mandir,;t t
30927 s,@build_alias@,$build_alias,;t t
30928 s,@host_alias@,$host_alias,;t t
30929 s,@target_alias@,$target_alias,;t t
30930 s,@DEFS@,$DEFS,;t t
30931 s,@ECHO_C@,$ECHO_C,;t t
30932 s,@ECHO_N@,$ECHO_N,;t t
30933 s,@ECHO_T@,$ECHO_T,;t t
30934 s,@LIBS@,$LIBS,;t t
30935 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30936 s,@subdirs@,$subdirs,;t t
30937 s,@build@,$build,;t t
30938 s,@build_cpu@,$build_cpu,;t t
30939 s,@build_vendor@,$build_vendor,;t t
30940 s,@build_os@,$build_os,;t t
30941 s,@host@,$host,;t t
30942 s,@host_cpu@,$host_cpu,;t t
30943 s,@host_vendor@,$host_vendor,;t t
30944 s,@host_os@,$host_os,;t t
30945 s,@target@,$target,;t t
30946 s,@target_cpu@,$target_cpu,;t t
30947 s,@target_vendor@,$target_vendor,;t t
30948 s,@target_os@,$target_os,;t t
30950 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30951 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30952 s,@ARCH@,$ARCH,;t t
30953 s,@ENDIAN@,$ENDIAN,;t t
30955 s,@CFLAGS@,$CFLAGS,;t t
30956 s,@LDFLAGS@,$LDFLAGS,;t t
30957 s,@CPPFLAGS@,$CPPFLAGS,;t t
30958 s,@ac_ct_CC@,$ac_ct_CC,;t t
30959 s,@EXEEXT@,$EXEEXT,;t t
30960 s,@OBJEXT@,$OBJEXT,;t t
30961 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30963 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30966 s,@CXXFLAGS@,$CXXFLAGS,;t t
30967 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30969 s,@LEXLIB@,$LEXLIB,;t t
30970 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30971 s,@FLEX@,$FLEX,;t t
30972 s,@YACC@,$YACC,;t t
30973 s,@BISON@,$BISON,;t t
30974 s,@ifGNUmake@,$ifGNUmake,;t t
30975 s,@LN_S@,$LN_S,;t t
30978 s,@DATE@,$DATE,;t t
30979 s,@FIND@,$FIND,;t t
30980 s,@GREP@,$GREP,;t t
30981 s,@MKDIR@,$MKDIR,;t t
30983 s,@RANLIB@,$RANLIB,;t t
30984 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30988 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30989 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30990 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30991 s,@BZIP2@,$BZIP2,;t t
30993 s,@DOXYGEN@,$DOXYGEN,;t t
30994 s,@ETAGS@,$ETAGS,;t t
30995 s,@GROFF@,$GROFF,;t t
30996 s,@GZIP@,$GZIP,;t t
30997 s,@POD2HTML@,$POD2HTML,;t t
30998 s,@POD2MAN@,$POD2MAN,;t t
30999 s,@RUNTEST@,$RUNTEST,;t t
31000 s,@TCLSH@,$TCLSH,;t t
31002 s,@EGREP@,$EGREP,;t t
31003 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31004 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31005 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31006 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31007 s,@LIBADD_DL@,$LIBADD_DL,;t t
31008 s,@ECHO@,$ECHO,;t t
31010 s,@ac_ct_AR@,$ac_ct_AR,;t t
31011 s,@STRIP@,$STRIP,;t t
31012 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31013 s,@CXXCPP@,$CXXCPP,;t t
31015 s,@FFLAGS@,$FFLAGS,;t t
31016 s,@ac_ct_F77@,$ac_ct_F77,;t t
31017 s,@LIBTOOL@,$LIBTOOL,;t t
31018 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31019 s,@LLVMGCC@,$LLVMGCC,;t t
31020 s,@LLVMGXX@,$LLVMGXX,;t t
31021 s,@ALLOCA@,$ALLOCA,;t t
31022 s,@MMAP_FILE@,$MMAP_FILE,;t t
31023 s,@LLVMCC1@,$LLVMCC1,;t t
31024 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31025 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31026 s,@SHLIBEXT@,$SHLIBEXT,;t t
31027 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31028 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31029 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31030 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31031 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31032 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31033 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31034 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31035 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31036 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31037 s,@LIBOBJS@,$LIBOBJS,;t t
31038 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31043 cat >>$CONFIG_STATUS <<\_ACEOF
31044 # Split the substitutions into bite-sized pieces for seds with
31045 # small command number limits, like on Digital OSF/1 and HP-UX.
31046 ac_max_sed_lines=48
31047 ac_sed_frag=1 # Number of current file.
31048 ac_beg=1 # First line for current file.
31049 ac_end=$ac_max_sed_lines # Line after last line for current file.
31052 while $ac_more_lines; do
31053 if test $ac_beg -gt 1; then
31054 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31056 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31058 if test ! -s $tmp/subs.frag; then
31059 ac_more_lines=false
31061 # The purpose of the label and of the branching condition is to
31062 # speed up the sed processing (if there are no `@' at all, there
31063 # is no need to browse any of the substitutions).
31064 # These are the two extra sed commands mentioned above.
31066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31067 if test -z "$ac_sed_cmds"; then
31068 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31070 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31072 ac_sed_frag=`expr $ac_sed_frag + 1`
31074 ac_end=`expr $ac_end + $ac_max_sed_lines`
31077 if test -z "$ac_sed_cmds"; then
31080 fi # test -n "$CONFIG_FILES"
31083 cat >>$CONFIG_STATUS <<\_ACEOF
31084 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31085 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31087 - | *:- | *:-:* ) # input from stdin
31089 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31091 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31093 * ) ac_file_in=$ac_file.in ;;
31096 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31097 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31099 X"$ac_file" : 'X\(//\)[^/]' \| \
31100 X"$ac_file" : 'X\(//\)$' \| \
31101 X"$ac_file" : 'X\(/\)' \| \
31102 . : '\(.\)' 2>/dev/null ||
31104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31106 /^X\(\/\/\)$/{ s//\1/; q; }
31107 /^X\(\/\).*/{ s//\1/; q; }
31109 { if $as_mkdir_p; then
31114 while test ! -d "$as_dir"; do
31115 as_dirs="$as_dir $as_dirs"
31116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31118 X"$as_dir" : 'X\(//\)[^/]' \| \
31119 X"$as_dir" : 'X\(//\)$' \| \
31120 X"$as_dir" : 'X\(/\)' \| \
31121 . : '\(.\)' 2>/dev/null ||
31123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31125 /^X\(\/\/\)$/{ s//\1/; q; }
31126 /^X\(\/\).*/{ s//\1/; q; }
31129 test ! -n "$as_dirs" || mkdir $as_dirs
31130 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31131 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31132 { (exit 1); exit 1; }; }; }
31136 if test "$ac_dir" != .; then
31137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31138 # A "../" for each directory in $ac_dir_suffix.
31139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31141 ac_dir_suffix= ac_top_builddir=
31145 .) # No --srcdir option. We are building in place.
31147 if test -z "$ac_top_builddir"; then
31150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31152 [\\/]* | ?:[\\/]* ) # Absolute path.
31153 ac_srcdir=$srcdir$ac_dir_suffix;
31154 ac_top_srcdir=$srcdir ;;
31155 *) # Relative path.
31156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31157 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31160 # Do not use `cd foo && pwd` to compute absolute paths, because
31161 # the directories may not exist.
31163 .) ac_abs_builddir="$ac_dir";;
31166 .) ac_abs_builddir=`pwd`;;
31167 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31168 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31171 case $ac_abs_builddir in
31172 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31174 case ${ac_top_builddir}. in
31175 .) ac_abs_top_builddir=$ac_abs_builddir;;
31176 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31177 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31180 case $ac_abs_builddir in
31181 .) ac_abs_srcdir=$ac_srcdir;;
31184 .) ac_abs_srcdir=$ac_abs_builddir;;
31185 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31186 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31189 case $ac_abs_builddir in
31190 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31192 case $ac_top_srcdir in
31193 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31194 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31195 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31202 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31205 if test x"$ac_file" != x-; then
31206 { echo "$as_me:$LINENO: creating $ac_file" >&5
31207 echo "$as_me: creating $ac_file" >&6;}
31210 # Let's still pretend it is `configure' which instantiates (i.e., don't
31211 # use $as_me), people would be surprised to read:
31212 # /* config.h. Generated by config.status. */
31213 if test x"$ac_file" = x-; then
31216 configure_input="$ac_file. "
31218 configure_input=$configure_input"Generated from `echo $ac_file_in |
31219 sed 's,.*/,,'` by configure."
31221 # First look for the input files in the build tree, otherwise in the
31223 ac_file_inputs=`IFS=:
31224 for f in $ac_file_in; do
31226 -) echo $tmp/stdin ;;
31228 # Absolute (can't be DOS-style, as IFS=:)
31229 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31230 echo "$as_me: error: cannot find input file: $f" >&2;}
31231 { (exit 1); exit 1; }; }
31234 if test -f "$f"; then
31237 elif test -f "$srcdir/$f"; then
31242 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31243 echo "$as_me: error: cannot find input file: $f" >&2;}
31244 { (exit 1); exit 1; }; }
31247 done` || { (exit 1); exit 1; }
31249 cat >>$CONFIG_STATUS <<_ACEOF
31253 cat >>$CONFIG_STATUS <<\_ACEOF
31255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31256 s,@configure_input@,$configure_input,;t t
31257 s,@srcdir@,$ac_srcdir,;t t
31258 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31259 s,@top_srcdir@,$ac_top_srcdir,;t t
31260 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31261 s,@builddir@,$ac_builddir,;t t
31262 s,@abs_builddir@,$ac_abs_builddir,;t t
31263 s,@top_builddir@,$ac_top_builddir,;t t
31264 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31265 s,@INSTALL@,$ac_INSTALL,;t t
31266 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31268 if test x"$ac_file" != x-; then
31269 mv $tmp/out $ac_file
31277 cat >>$CONFIG_STATUS <<\_ACEOF
31280 # CONFIG_HEADER section.
31283 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31284 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31286 # ac_d sets the value in "#define NAME VALUE" lines.
31287 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31288 ac_dB='[ ].*$,\1#\2'
31291 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31292 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31293 ac_uB='$,\1#\2define\3'
31297 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31300 - | *:- | *:-:* ) # input from stdin
31302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31306 * ) ac_file_in=$ac_file.in ;;
31309 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31310 echo "$as_me: creating $ac_file" >&6;}
31312 # First look for the input files in the build tree, otherwise in the
31314 ac_file_inputs=`IFS=:
31315 for f in $ac_file_in; do
31317 -) echo $tmp/stdin ;;
31319 # Absolute (can't be DOS-style, as IFS=:)
31320 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31321 echo "$as_me: error: cannot find input file: $f" >&2;}
31322 { (exit 1); exit 1; }; }
31323 # Do quote $f, to prevent DOS paths from being IFS'd.
31326 if test -f "$f"; then
31329 elif test -f "$srcdir/$f"; then
31334 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31335 echo "$as_me: error: cannot find input file: $f" >&2;}
31336 { (exit 1); exit 1; }; }
31339 done` || { (exit 1); exit 1; }
31340 # Remove the trailing spaces.
31341 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31345 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31346 # `conftest.undefs', that substitutes the proper values into
31347 # config.h.in to produce config.h. The first handles `#define'
31348 # templates, and the second `#undef' templates.
31349 # And first: Protect against being on the right side of a sed subst in
31350 # config.status. Protect against being in an unquoted here document
31351 # in config.status.
31352 rm -f conftest.defines conftest.undefs
31353 # Using a here document instead of a string reduces the quoting nightmare.
31354 # Putting comments in sed scripts is not portable.
31356 # `end' is used to avoid that the second main sed command (meant for
31357 # 0-ary CPP macros) applies to n-ary macro definitions.
31358 # See the Autoconf documentation for `clear'.
31359 cat >confdef2sed.sed <<\_ACEOF
31364 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31366 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31369 # If some macros were called several times there might be several times
31370 # the same #defines, which is useless. Nevertheless, we may not want to
31371 # sort them, since we want the *last* AC-DEFINE to be honored.
31372 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31373 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31374 rm -f confdef2sed.sed
31376 # This sed command replaces #undef with comments. This is necessary, for
31377 # example, in the case of _POSIX_SOURCE, which is predefined and required
31378 # on some systems where configure will not decide to define it.
31379 cat >>conftest.undefs <<\_ACEOF
31380 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31383 # Break up conftest.defines because some shells have a limit on the size
31384 # of here documents, and old seds have small limits too (100 cmds).
31385 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31386 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31387 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31388 echo ' :' >>$CONFIG_STATUS
31389 rm -f conftest.tail
31390 while grep . conftest.defines >/dev/null
31392 # Write a limited-size here document to $tmp/defines.sed.
31393 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31394 # Speed up: don't consider the non `#define' lines.
31395 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31396 # Work around the forget-to-reset-the-flag bug.
31397 echo 't clr' >>$CONFIG_STATUS
31398 echo ': clr' >>$CONFIG_STATUS
31399 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31401 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31403 mv $tmp/out $tmp/in
31405 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31406 rm -f conftest.defines
31407 mv conftest.tail conftest.defines
31409 rm -f conftest.defines
31410 echo ' fi # grep' >>$CONFIG_STATUS
31411 echo >>$CONFIG_STATUS
31413 # Break up conftest.undefs because some shells have a limit on the size
31414 # of here documents, and old seds have small limits too (100 cmds).
31415 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31416 rm -f conftest.tail
31417 while grep . conftest.undefs >/dev/null
31419 # Write a limited-size here document to $tmp/undefs.sed.
31420 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31421 # Speed up: don't consider the non `#undef'
31422 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31423 # Work around the forget-to-reset-the-flag bug.
31424 echo 't clr' >>$CONFIG_STATUS
31425 echo ': clr' >>$CONFIG_STATUS
31426 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31428 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31430 mv $tmp/out $tmp/in
31432 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31433 rm -f conftest.undefs
31434 mv conftest.tail conftest.undefs
31436 rm -f conftest.undefs
31438 cat >>$CONFIG_STATUS <<\_ACEOF
31439 # Let's still pretend it is `configure' which instantiates (i.e., don't
31440 # use $as_me), people would be surprised to read:
31441 # /* config.h. Generated by config.status. */
31442 if test x"$ac_file" = x-; then
31443 echo "/* Generated by configure. */" >$tmp/config.h
31445 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31447 cat $tmp/in >>$tmp/config.h
31449 if test x"$ac_file" != x-; then
31450 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31451 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31452 echo "$as_me: $ac_file is unchanged" >&6;}
31454 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31455 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31456 X"$ac_file" : 'X\(//\)[^/]' \| \
31457 X"$ac_file" : 'X\(//\)$' \| \
31458 X"$ac_file" : 'X\(/\)' \| \
31459 . : '\(.\)' 2>/dev/null ||
31461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31463 /^X\(\/\/\)$/{ s//\1/; q; }
31464 /^X\(\/\).*/{ s//\1/; q; }
31466 { if $as_mkdir_p; then
31471 while test ! -d "$as_dir"; do
31472 as_dirs="$as_dir $as_dirs"
31473 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31475 X"$as_dir" : 'X\(//\)[^/]' \| \
31476 X"$as_dir" : 'X\(//\)$' \| \
31477 X"$as_dir" : 'X\(/\)' \| \
31478 . : '\(.\)' 2>/dev/null ||
31480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31482 /^X\(\/\/\)$/{ s//\1/; q; }
31483 /^X\(\/\).*/{ s//\1/; q; }
31486 test ! -n "$as_dirs" || mkdir $as_dirs
31487 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31488 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31489 { (exit 1); exit 1; }; }; }
31492 mv $tmp/config.h $ac_file
31496 rm -f $tmp/config.h
31500 cat >>$CONFIG_STATUS <<\_ACEOF
31503 # CONFIG_COMMANDS section.
31505 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31506 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31507 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31508 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31509 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31510 X"$ac_dest" : 'X\(//\)[^/]' \| \
31511 X"$ac_dest" : 'X\(//\)$' \| \
31512 X"$ac_dest" : 'X\(/\)' \| \
31513 . : '\(.\)' 2>/dev/null ||
31515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31517 /^X\(\/\/\)$/{ s//\1/; q; }
31518 /^X\(\/\).*/{ s//\1/; q; }
31520 { if $as_mkdir_p; then
31525 while test ! -d "$as_dir"; do
31526 as_dirs="$as_dir $as_dirs"
31527 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31529 X"$as_dir" : 'X\(//\)[^/]' \| \
31530 X"$as_dir" : 'X\(//\)$' \| \
31531 X"$as_dir" : 'X\(/\)' \| \
31532 . : '\(.\)' 2>/dev/null ||
31534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31536 /^X\(\/\/\)$/{ s//\1/; q; }
31537 /^X\(\/\).*/{ s//\1/; q; }
31540 test ! -n "$as_dirs" || mkdir $as_dirs
31541 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31543 { (exit 1); exit 1; }; }; }
31547 if test "$ac_dir" != .; then
31548 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31549 # A "../" for each directory in $ac_dir_suffix.
31550 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31552 ac_dir_suffix= ac_top_builddir=
31556 .) # No --srcdir option. We are building in place.
31558 if test -z "$ac_top_builddir"; then
31561 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31563 [\\/]* | ?:[\\/]* ) # Absolute path.
31564 ac_srcdir=$srcdir$ac_dir_suffix;
31565 ac_top_srcdir=$srcdir ;;
31566 *) # Relative path.
31567 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31568 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31571 # Do not use `cd foo && pwd` to compute absolute paths, because
31572 # the directories may not exist.
31574 .) ac_abs_builddir="$ac_dir";;
31577 .) ac_abs_builddir=`pwd`;;
31578 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31579 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31582 case $ac_abs_builddir in
31583 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31585 case ${ac_top_builddir}. in
31586 .) ac_abs_top_builddir=$ac_abs_builddir;;
31587 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31588 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31591 case $ac_abs_builddir in
31592 .) ac_abs_srcdir=$ac_srcdir;;
31595 .) ac_abs_srcdir=$ac_abs_builddir;;
31596 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31597 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31600 case $ac_abs_builddir in
31601 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31603 case $ac_top_srcdir in
31604 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31605 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31606 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31611 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31612 echo "$as_me: executing $ac_dest commands" >&6;}
31614 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31615 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31616 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31617 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31618 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31619 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31620 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31621 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31622 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31623 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31624 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31625 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31626 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31627 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31628 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31629 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31630 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31631 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31632 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31633 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31638 cat >>$CONFIG_STATUS <<\_ACEOF
31640 { (exit 0); exit 0; }
31642 chmod +x $CONFIG_STATUS
31643 ac_clean_files=$ac_clean_files_save
31646 # configure is writing to config.log, and then calls config.status.
31647 # config.status does its own redirection, appending to config.log.
31648 # Unfortunately, on DOS this fails, as config.log is still kept open
31649 # by configure, so config.status won't be able to write to it; its
31650 # output is simply discarded. So we exec the FD to /dev/null,
31651 # effectively closing config.log, so it can be properly (re)opened and
31652 # appended to by config.status. When coming back to configure, we
31653 # need to make the FD available again.
31654 if test "$no_create" != yes; then
31656 ac_config_status_args=
31657 test "$silent" = yes &&
31658 ac_config_status_args="$ac_config_status_args --quiet"
31660 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31662 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31663 # would make configure fail if this is the last instruction.
31664 $ac_cs_success || { (exit 1); exit 1; }
31668 # CONFIG_SUBDIRS section.
31670 if test "$no_recursion" != yes; then
31672 # Remove --cache-file and --srcdir arguments so they do not pile up.
31673 ac_sub_configure_args=
31675 for ac_arg in $ac_configure_args; do
31676 if test -n "$ac_prev"; then
31681 -cache-file | --cache-file | --cache-fil | --cache-fi \
31682 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31683 ac_prev=cache_file ;;
31684 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31685 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31688 --config-cache | -C)
31690 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31692 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31694 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31696 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31698 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31702 # Always prepend --prefix to ensure using the same prefix
31703 # in subdir configurations.
31704 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31707 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31709 # Do not complain, so a configure script can configure whichever
31710 # parts of a large source tree are present.
31711 test -d $srcdir/$ac_dir || continue
31713 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31714 echo "$as_me: configuring in $ac_dir" >&6;}
31715 { if $as_mkdir_p; then
31720 while test ! -d "$as_dir"; do
31721 as_dirs="$as_dir $as_dirs"
31722 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31724 X"$as_dir" : 'X\(//\)[^/]' \| \
31725 X"$as_dir" : 'X\(//\)$' \| \
31726 X"$as_dir" : 'X\(/\)' \| \
31727 . : '\(.\)' 2>/dev/null ||
31729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31731 /^X\(\/\/\)$/{ s//\1/; q; }
31732 /^X\(\/\).*/{ s//\1/; q; }
31735 test ! -n "$as_dirs" || mkdir $as_dirs
31736 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31737 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31738 { (exit 1); exit 1; }; }; }
31742 if test "$ac_dir" != .; then
31743 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31744 # A "../" for each directory in $ac_dir_suffix.
31745 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31747 ac_dir_suffix= ac_top_builddir=
31751 .) # No --srcdir option. We are building in place.
31753 if test -z "$ac_top_builddir"; then
31756 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31758 [\\/]* | ?:[\\/]* ) # Absolute path.
31759 ac_srcdir=$srcdir$ac_dir_suffix;
31760 ac_top_srcdir=$srcdir ;;
31761 *) # Relative path.
31762 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31763 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31766 # Do not use `cd foo && pwd` to compute absolute paths, because
31767 # the directories may not exist.
31769 .) ac_abs_builddir="$ac_dir";;
31772 .) ac_abs_builddir=`pwd`;;
31773 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31774 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31777 case $ac_abs_builddir in
31778 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31780 case ${ac_top_builddir}. in
31781 .) ac_abs_top_builddir=$ac_abs_builddir;;
31782 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31783 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31786 case $ac_abs_builddir in
31787 .) ac_abs_srcdir=$ac_srcdir;;
31790 .) ac_abs_srcdir=$ac_abs_builddir;;
31791 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31792 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31795 case $ac_abs_builddir in
31796 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31798 case $ac_top_srcdir in
31799 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31800 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31801 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31808 # Check for guested configure; otherwise get Cygnus style configure.
31809 if test -f $ac_srcdir/configure.gnu; then
31810 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31811 elif test -f $ac_srcdir/configure; then
31812 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31813 elif test -f $ac_srcdir/configure.in; then
31814 ac_sub_configure=$ac_configure
31816 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31817 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31821 # The recursion is here.
31822 if test -n "$ac_sub_configure"; then
31823 # Make the cache file name correct relative to the subdirectory.
31824 case $cache_file in
31825 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31826 *) # Relative path.
31827 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31830 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31831 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31832 # The eval makes quoting arguments work.
31833 eval $ac_sub_configure $ac_sub_configure_args \
31834 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31835 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31836 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31837 { (exit 1); exit 1; }; }
31845 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31846 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31847 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31848 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31849 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31850 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31851 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31852 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31853 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31854 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31855 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}