2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.4.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.4'
429 PACKAGE_STRING='llvm 1.4'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/Java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
446 # include <sys/types.h>
449 # include <sys/stat.h>
460 # if !STDC_HEADERS && HAVE_MEMORY_H
466 # include <strings.h>
469 # include <inttypes.h>
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP LLVMGCC LLVMGXX MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
482 # Initialize some variables set by options.
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
494 program_transform_name=s,x,x,
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532 # Accept the important Cygnus configure options, so we can diagnose typos.
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
554 cache_file=config.cache ;;
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 datadir=$ac_optarg ;;
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "enable_$ac_feature='$ac_optarg'" ;;
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
597 -help | --help | --hel | --he | -h)
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
621 -libdir | --libdir | --libdi | --libd)
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 # Obsolete; use --without-fp.
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 sbindir=$ac_optarg ;;
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 sharedstatedir=$ac_optarg ;;
725 -site | --site | --sit)
727 -site=* | --site=* | --sit=*)
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
750 -version | --version | --versio | --versi | --vers | -V)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
764 eval "with_$ac_package='$ac_optarg'" ;;
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
776 # Obsolete; use --with-x.
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838 localstatedir libdir includedir oldincludedir infodir mandir
840 eval ac_val=$`echo $ac_var`
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869 test "$silent" = yes && exec 6>/dev/null
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
962 # Report the --help message.
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
970 Usage: $0 [OPTION]... [VAR=VALUE]...
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
975 Defaults for the options are specified in brackets.
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1002 For better control, use the options below.
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1028 if test -n "$ac_init_help"; then
1029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.4:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038 --enable-jit Enable Just In Time Compiling (default is YES)
1039 --enable-doxygen Build doxygen documentation (default is NO)
1040 --enable-ltdl-install install libltdl
1041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
1047 --disable-libtool-lock avoid locking (might break parallel builds)
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-tclinclude directory where tcl headers are
1053 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 --with-pic try to use only PIC/non-PIC objects [default=use
1057 include additional configurations [automatic]
1059 Some influential environment variables:
1060 CC C compiler command
1061 CFLAGS C compiler flags
1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
1067 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags
1069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1076 Report bugs to <llvmbugs@cs.uiuc.edu>.
1080 if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1087 if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 ac_dir_suffix= ac_top_builddir=
1096 .) # No --srcdir option. We are building in place.
1098 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 # Do not use `cd foo && pwd` to compute absolute paths, because
1112 # the directories may not exist.
1114 .) ac_abs_builddir="$ac_dir";;
1117 .) ac_abs_builddir=`pwd`;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122 case $ac_abs_builddir in
1123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 case ${ac_top_builddir}. in
1126 .) ac_abs_top_builddir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131 case $ac_abs_builddir in
1132 .) ac_abs_srcdir=$ac_srcdir;;
1135 .) ac_abs_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 case $ac_top_srcdir in
1144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151 # Check for guested configure; otherwise get Cygnus style configure.
1152 if test -f $ac_srcdir/configure.gnu; then
1154 $SHELL $ac_srcdir/configure.gnu --help=recursive
1155 elif test -f $ac_srcdir/configure; then
1157 $SHELL $ac_srcdir/configure --help=recursive
1158 elif test -f $ac_srcdir/configure.ac ||
1159 test -f $ac_srcdir/configure.in; then
1161 $ac_configure --help
1163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1169 test -n "$ac_init_help" && exit 0
1170 if $ac_init_version; then
1173 generated by GNU Autoconf 2.59
1175 Copyright (C) 2003 Free Software Foundation, Inc.
1176 This configure script is free software; the Free Software Foundation
1177 gives unlimited permission to copy, distribute and modify it.
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1188 It was created by llvm $as_me 1.4, which was
1189 generated by GNU Autoconf 2.59. Invocation command line was
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_must_keep_next=false
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
1266 ac_must_keep_next=false # Got value, back to normal.
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 -* ) ac_must_keep_next=true ;;
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log. We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1306 # The following way of writing the cache mishandles newlines in values,
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1329 for ac_var in $ac_subst_vars
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -n "$ac_subst_files"; then
1343 for ac_var in $ac_subst_files
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1351 if test -s confdefs.h; then
1358 sed "/^$/d" confdefs.h | sort
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1365 rm -f core *.core &&
1366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 # Predefined preprocessor variables.
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1424 if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1441 # Check that the precious variables saved in the cache have kept the same
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
1462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1465 echo "$as_me: former value: $ac_old_val" >&2;}
1466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1467 echo "$as_me: current value: $ac_new_val" >&2;}
1468 ac_cache_corrupted=:
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1534 for ac_dir in autoconf $srcdir/autoconf; do
1535 if test -f $ac_dir/install-sh; then
1537 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 elif test -f $ac_dir/install.sh; then
1541 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 elif test -f $ac_dir/shtool; then
1545 ac_install_sh="$ac_aux_dir/shtool install -c"
1549 if test -z "$ac_aux_dir"; then
1550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1551 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1552 { (exit 1); exit 1; }; }
1554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559 if test ${srcdir} != "." ; then
1560 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1561 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1562 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1563 { (exit 1); exit 1; }; }
1567 for i in `ls ${srcdir}/projects`
1569 if test -d ${srcdir}/projects/${i} ; then
1574 subdirs="$subdirs projects/sample"
1578 subdirs="$subdirs projects/Stacker"
1582 subdirs="$subdirs projects/llvm-test"
1586 subdirs="$subdirs projects/llvm-reopt"
1590 subdirs="$subdirs projects/llvm-gcc"
1594 subdirs="$subdirs projects/Java"
1598 subdirs="$subdirs projects/llvm-tv"
1602 subdirs="$subdirs projects/llvm-fefw"
1606 subdirs="$subdirs projects/poolalloc"
1609 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1610 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671 echo "$as_me:$LINENO: checking target system type" >&5
1672 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1673 if test "${ac_cv_target+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 ac_cv_target_alias=$target_alias
1677 test "x$ac_cv_target_alias" = "x" &&
1678 ac_cv_target_alias=$ac_cv_host_alias
1679 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1680 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1681 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1682 { (exit 1); exit 1; }; }
1685 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1686 echo "${ECHO_T}$ac_cv_target" >&6
1687 target=$ac_cv_target
1688 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1689 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1690 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693 # The aliases save the names the user supplied, while $host etc.
1694 # will get canonicalized.
1695 test -n "$target_alias" &&
1696 test "$program_prefix$program_suffix$program_transform_name" = \
1698 program_prefix=${target_alias}-
1700 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1701 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1702 if test "${llvm_cv_platform_type+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1707 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1708 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1709 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1710 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1711 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1712 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1713 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1714 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1715 *) llvm_cv_platform_type="Unknown" ;;
1718 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1719 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1721 if test "$llvm_cv_platform_type" = "Unknown" ; then
1722 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1723 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1724 { (exit 1); exit 1; }; }
1727 OS=$llvm_cv_platform_type
1730 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1734 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1739 echo "$as_me:$LINENO: checking target architecture" >&5
1740 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1741 if test "${llvm_cv_target_arch+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 i*86-*) llvm_cv_target_arch="x86" ;;
1746 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1747 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1748 *) llvm_cv_target_arch="Unknown" ;;
1751 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1752 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1754 if test "$llvm_cv_target_arch" = "Unknown" ; then
1755 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1756 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1759 ARCH=$llvm_cv_target_arch
1763 ac_cpp='$CPP $CPPFLAGS'
1764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767 if test -n "$ac_tool_prefix"; then
1768 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1769 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 if test -n "$CC"; then
1796 echo "$as_me:$LINENO: result: $CC" >&5
1797 echo "${ECHO_T}$CC" >&6
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1804 if test -z "$ac_cv_prog_CC"; then
1806 # Extract the first word of "gcc", so it can be a program name with args.
1807 set dummy gcc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$ac_ct_CC"; then
1814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_CC="gcc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1846 if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1849 set dummy ${ac_tool_prefix}cc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 if test -n "$CC"; then
1856 ac_cv_prog_CC="$CC" # Let the user override the test.
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_CC="${ac_tool_prefix}cc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 if test -n "$CC"; then
1876 echo "$as_me:$LINENO: result: $CC" >&5
1877 echo "${ECHO_T}$CC" >&6
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1884 if test -z "$ac_cv_prog_CC"; then
1886 # Extract the first word of "cc", so it can be a program name with args.
1887 set dummy cc; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 if test -n "$ac_ct_CC"; then
1894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_ac_ct_CC="cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1913 if test -n "$ac_ct_CC"; then
1914 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1915 echo "${ECHO_T}$ac_ct_CC" >&6
1917 echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1927 if test -z "$CC"; then
1928 # Extract the first word of "cc", so it can be a program name with args.
1929 set dummy cc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$CC"; then
1936 ac_cv_prog_CC="$CC" # Let the user override the test.
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1947 ac_prog_rejected=yes
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 if test $ac_prog_rejected = yes; then
1958 # We found a bogon in the path, so make sure we never use it.
1959 set dummy $ac_cv_prog_CC
1961 if test $# != 0; then
1962 # We chose a different compiler from the bogus one.
1963 # However, it has the same basename, so the bogon will be chosen
1964 # first if we set CC to just the basename; use the full file name.
1966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1972 if test -n "$CC"; then
1973 echo "$as_me:$LINENO: result: $CC" >&5
1974 echo "${ECHO_T}$CC" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1981 if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 test -n "$CC" && break
2023 if test -z "$CC"; then
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$ac_ct_CC"; then
2035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_ac_ct_CC="$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2062 test -n "$ac_ct_CC" && break
2071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&5
2073 echo "$as_me: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&2;}
2075 { (exit 1); exit 1; }; }
2077 # Provide some information about the compiler.
2078 echo "$as_me:$LINENO:" \
2079 "checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2082 (eval $ac_compiler --version </dev/null >&5) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2086 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2087 (eval $ac_compiler -v </dev/null >&5) 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2092 (eval $ac_compiler -V </dev/null >&5) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2097 cat >conftest.$ac_ext <<_ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h. */
2112 ac_clean_files_save=$ac_clean_files
2113 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2114 # Try to create an executable without -o first, disregard a.out.
2115 # It will help us diagnose broken compilers, and finding out an intuition
2117 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2118 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2119 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2120 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2121 (eval $ac_link_default) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; then
2125 # Find the output, starting from the most likely. This scheme is
2126 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2129 # Be careful to initialize this variable, since it used to be cached.
2130 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132 # b.out is created by i960 compilers.
2133 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135 test -f "$ac_file" || continue
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2140 # This is the source file.
2143 # We found the default executable, but exeext='' is most
2147 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148 # FIXME: I believe we export ac_cv_exeext for Libtool,
2149 # but it would be cool to find out if it's true. Does anybody
2150 # maintain Libtool? --akim.
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2161 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&2;}
2165 { (exit 77); exit 77; }; }
2168 ac_exeext=$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_file" >&5
2170 echo "${ECHO_T}$ac_file" >&6
2172 # Check the compiler produces executables we can run. If not, either
2173 # the compiler is broken, or we cross compile.
2174 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2175 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2176 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2177 # If not cross compiling, check that we can run a simple program.
2178 if test "$cross_compiling" != yes; then
2179 if { ac_try='./$ac_file'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2187 if test "$cross_compiling" = maybe; then
2190 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2191 If you meant to cross compile, use \`--host'.
2192 See \`config.log' for more details." >&5
2193 echo "$as_me: error: cannot run C compiled programs.
2194 If you meant to cross compile, use \`--host'.
2195 See \`config.log' for more details." >&2;}
2196 { (exit 1); exit 1; }; }
2200 echo "$as_me:$LINENO: result: yes" >&5
2201 echo "${ECHO_T}yes" >&6
2203 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2204 ac_clean_files=$ac_clean_files_save
2205 # Check the compiler produces executables we can run. If not, either
2206 # the compiler is broken, or we cross compile.
2207 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2208 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2209 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2210 echo "${ECHO_T}$cross_compiling" >&6
2212 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2213 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2215 (eval $ac_link) 2>&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; then
2219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2221 # work properly (i.e., refer to `conftest.exe'), while it won't with
2223 for ac_file in conftest.exe conftest conftest.*; do
2224 test -f "$ac_file" || continue
2226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2234 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2241 rm -f conftest$ac_cv_exeext
2242 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243 echo "${ECHO_T}$ac_cv_exeext" >&6
2245 rm -f conftest.$ac_ext
2246 EXEEXT=$ac_cv_exeext
2248 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2250 if test "${ac_cv_objext+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 cat >conftest.$ac_ext <<_ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2268 rm -f conftest.o conftest.obj
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2288 See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
2292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2295 echo "${ECHO_T}$ac_cv_objext" >&6
2296 OBJEXT=$ac_cv_objext
2298 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>conftest.er1
2325 grep -v '^ *+' conftest.er1 >conftest.err
2327 cat conftest.err >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); } &&
2330 { ac_try='test -z "$ac_c_werror_flag"
2331 || test ! -s conftest.err'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; } &&
2337 { ac_try='test -s conftest.$ac_objext'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; }; then
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2354 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2355 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2356 GCC=`test $ac_compiler_gnu = yes && echo yes`
2357 ac_test_CFLAGS=${CFLAGS+set}
2358 ac_save_CFLAGS=$CFLAGS
2360 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2361 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2362 if test "${ac_cv_prog_cc_g+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 cat >conftest.$ac_ext <<_ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2380 rm -f conftest.$ac_objext
2381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382 (eval $ac_compile) 2>conftest.er1
2384 grep -v '^ *+' conftest.er1 >conftest.err
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
2389 { ac_try='test -z "$ac_c_werror_flag"
2390 || test ! -s conftest.err'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2412 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2413 if test "$ac_test_CFLAGS" = set; then
2414 CFLAGS=$ac_save_CFLAGS
2415 elif test $ac_cv_prog_cc_g = yes; then
2416 if test "$GCC" = yes; then
2422 if test "$GCC" = yes; then
2428 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2429 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 ac_cv_prog_cc_stdc=no
2435 cat >conftest.$ac_ext <<_ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2443 #include <sys/types.h>
2444 #include <sys/stat.h>
2445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2446 struct buf { int x; };
2447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2448 static char *e (p, i)
2454 static char *f (char * (*g) (char **, int), char **p, ...)
2459 s = g (p, va_arg (v,int));
2464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2465 function prototypes and stuff, but not '\xHH' hex character constants.
2466 These don't provoke an error unfortunately, instead are silently treated
2467 as 'x'. The following induces an error, until -std1 is added to get
2468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2469 array size at least. It's necessary to write '\x00'==0 to get something
2470 that's true only with -std1. */
2471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473 int test (int i, double x);
2474 struct s1 {int (*f) (int a);};
2475 struct s2 {int (*f) (double a);};
2476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2482 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2487 # Don't try gcc -ansi; that turns off useful extensions and
2488 # breaks some systems' header files.
2489 # AIX -qlanglvl=ansi
2490 # Ultrix and OSF/1 -std1
2491 # HP-UX 10.20 and later -Ae
2492 # HP-UX older versions -Aa -D_HPUX_SOURCE
2493 # SVR4 -Xc -D__EXTENSIONS__
2494 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496 CC="$ac_save_CC $ac_arg"
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc=$ac_arg
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2526 rm -f conftest.err conftest.$ac_objext
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2533 case "x$ac_cv_prog_cc_stdc" in
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC="$CC $ac_cv_prog_cc_stdc" ;;
2543 # Some people use a C++ compiler to compile C. Since we use `exit',
2544 # in C++ we need to declare it. In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 for ac_declaration in \
2576 'extern "C" void std::exit (int) throw (); using std::exit;' \
2577 'extern "C" void std::exit (int); using std::exit;' \
2578 'extern "C" void exit (int) throw ();' \
2579 'extern "C" void exit (int);' \
2582 cat >conftest.$ac_ext <<_ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
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
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674 if test -n "$ac_declaration"; then
2675 echo '#ifdef __cplusplus' >>confdefs.h
2676 echo $ac_declaration >>confdefs.h
2677 echo '#endif' >>confdefs.h
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2694 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2695 if test "${ac_cv_c_bigendian+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 # See if sys/param.h defines the BYTE_ORDER macro.
2699 cat >conftest.$ac_ext <<_ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2705 #include <sys/types.h>
2706 #include <sys/param.h>
2711 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>conftest.er1
2723 grep -v '^ *+' conftest.er1 >conftest.err
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 # It does; now see whether it defined to BIG_ENDIAN or not.
2742 cat >conftest.$ac_ext <<_ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2748 #include <sys/types.h>
2749 #include <sys/param.h>
2754 #if BYTE_ORDER != BIG_ENDIAN
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>conftest.er1
2766 grep -v '^ *+' conftest.er1 >conftest.err
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_c_bigendian=yes
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2789 ac_cv_c_bigendian=no
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2796 # It does not; compile a test program.
2797 if test "$cross_compiling" = yes; then
2798 # try to guess the endianness by grepping values into an object file
2799 ac_cv_c_bigendian=unknown
2800 cat >conftest.$ac_ext <<_ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2807 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2808 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2809 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2810 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2811 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2815 _ascii (); _ebcdic ();
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2843 ac_cv_c_bigendian=yes
2845 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2846 if test "$ac_cv_c_bigendian" = unknown; then
2847 ac_cv_c_bigendian=no
2849 # finding both strings is unlikely to happen, but who knows?
2850 ac_cv_c_bigendian=unknown
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860 cat >conftest.$ac_ext <<_ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2869 /* Are we little or big endian? From Harbison&Steele. */
2873 char c[sizeof (long)];
2876 exit (u.c[sizeof (long) - 1] == 1);
2879 rm -f conftest$ac_exeext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881 (eval $ac_link) 2>&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 ac_cv_c_bigendian=no
2892 echo "$as_me: program exited with status $ac_status" >&5
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2897 ac_cv_c_bigendian=yes
2899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2905 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2906 case $ac_cv_c_bigendian in
2914 { { echo "$as_me:$LINENO: error: unknown endianness
2915 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2916 echo "$as_me: error: unknown endianness
2917 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2918 { (exit 1); exit 1; }; } ;;
2923 # Check whether --enable-optimized or --disable-optimized was given.
2924 if test "${enable_optimized+set}" = set; then
2925 enableval="$enable_optimized"
2930 if test ${enableval} = "no" ; then
2934 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2938 # Check whether --enable-jit or --disable-jit was given.
2939 if test "${enable_jit+set}" = set; then
2940 enableval="$enable_jit"
2945 if test ${enableval} = "no"
2950 case "$llvm_cv_target_arch" in
2951 x86) JIT=TARGET_HAS_JIT=1
2953 Sparc) JIT=TARGET_HAS_JIT=1
2955 PowerPC) JIT=TARGET_HAS_JIT=1
2962 # Check whether --enable-doxygen or --disable-doxygen was given.
2963 if test "${enable_doxygen+set}" = set; then
2964 enableval="$enable_doxygen"
2969 case "$enableval" in
2970 yes) ENABLE_DOXYGEN=1
2972 no) ENABLE_DOXYGEN=0
2974 default) ENABLE_DOXYGEN=0
2976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2977 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2978 { (exit 1); exit 1; }; } ;;
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2988 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2989 # On Suns, sometimes $CPP names a directory.
2990 if test -n "$CPP" && test -d "$CPP"; then
2993 if test -z "$CPP"; then
2994 if test "${ac_cv_prog_CPP+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 # Double quotes because CPP needs to be expanded
2998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3001 for ac_c_preproc_warn_flag in '' yes
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
3005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
3007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3016 # include <limits.h>
3018 # include <assert.h>
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null; then
3030 if test -s conftest.err; then
3031 ac_cpp_err=$ac_c_preproc_warn_flag
3032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3039 if test -z "$ac_cpp_err"; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 # Broken: fails on valid input.
3048 rm -f conftest.err conftest.$ac_ext
3050 # OK, works on sane cases. Now check whether non-existent headers
3051 # can be detected and how.
3052 cat >conftest.$ac_ext <<_ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058 #include <ac_nonexistent.h>
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 grep -v '^ *+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
3070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3077 if test -z "$ac_cpp_err"; then
3078 # Broken: success on invalid input.
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 # Passes both tests.
3088 rm -f conftest.err conftest.$ac_ext
3091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092 rm -f conftest.err conftest.$ac_ext
3093 if $ac_preproc_ok; then
3105 echo "$as_me:$LINENO: result: $CPP" >&5
3106 echo "${ECHO_T}$CPP" >&6
3108 for ac_c_preproc_warn_flag in '' yes
3110 # Use a header file that comes with gcc, so configuring glibc
3111 # with a fresh cross-compiler works.
3112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113 # <limits.h> exists even on freestanding compilers.
3114 # On the NeXT, cc -E runs the code through the compiler's parser,
3115 # not just through cpp. "Syntax error" is here to catch this case.
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3123 # include <limits.h>
3125 # include <assert.h>
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
3139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146 if test -z "$ac_cpp_err"; then
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 # Broken: fails on valid input.
3155 rm -f conftest.err conftest.$ac_ext
3157 # OK, works on sane cases. Now check whether non-existent headers
3158 # can be detected and how.
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3165 #include <ac_nonexistent.h>
3167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3170 grep -v '^ *+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } >/dev/null; then
3175 if test -s conftest.err; then
3176 ac_cpp_err=$ac_c_preproc_warn_flag
3177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184 if test -z "$ac_cpp_err"; then
3185 # Broken: success on invalid input.
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 # Passes both tests.
3195 rm -f conftest.err conftest.$ac_ext
3198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199 rm -f conftest.err conftest.$ac_ext
3200 if $ac_preproc_ok; then
3203 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3204 See \`config.log' for more details." >&5
3205 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3206 See \`config.log' for more details." >&2;}
3207 { (exit 1); exit 1; }; }
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 if test -n "$ac_tool_prefix"; then
3224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_CC+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 if test -n "$CC"; then
3252 echo "$as_me:$LINENO: result: $CC" >&5
3253 echo "${ECHO_T}$CC" >&6
3255 echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3259 test -n "$CC" && break
3262 if test -z "$CC"; then
3266 # Extract the first word of "$ac_prog", so it can be a program name with args.
3267 set dummy $ac_prog; ac_word=$2
3268 echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 if test -n "$ac_ct_CC"; then
3274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_ac_ct_CC="$ac_prog"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3293 if test -n "$ac_ct_CC"; then
3294 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3295 echo "${ECHO_T}$ac_ct_CC" >&6
3297 echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6
3301 test -n "$ac_ct_CC" && break
3308 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3309 See \`config.log' for more details." >&5
3310 echo "$as_me: error: no acceptable C compiler found in \$PATH
3311 See \`config.log' for more details." >&2;}
3312 { (exit 1); exit 1; }; }
3314 # Provide some information about the compiler.
3315 echo "$as_me:$LINENO:" \
3316 "checking for C compiler version" >&5
3317 ac_compiler=`set X $ac_compile; echo $2`
3318 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3319 (eval $ac_compiler --version </dev/null >&5) 2>&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }
3323 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3324 (eval $ac_compiler -v </dev/null >&5) 2>&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }
3328 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3329 (eval $ac_compiler -V </dev/null >&5) 2>&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }
3334 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3335 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3336 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 cat >conftest.$ac_ext <<_ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3357 rm -f conftest.$ac_objext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359 (eval $ac_compile) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -z "$ac_c_werror_flag"
3367 || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try='test -s conftest.$ac_objext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3390 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3391 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3392 GCC=`test $ac_compiler_gnu = yes && echo yes`
3393 ac_test_CFLAGS=${CFLAGS+set}
3394 ac_save_CFLAGS=$CFLAGS
3396 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3397 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3398 if test "${ac_cv_prog_cc_g+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3416 rm -f conftest.$ac_objext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -z "$ac_c_werror_flag"
3426 || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3447 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3448 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3449 if test "$ac_test_CFLAGS" = set; then
3450 CFLAGS=$ac_save_CFLAGS
3451 elif test $ac_cv_prog_cc_g = yes; then
3452 if test "$GCC" = yes; then
3458 if test "$GCC" = yes; then
3464 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3465 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3466 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 ac_cv_prog_cc_stdc=no
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3479 #include <sys/types.h>
3480 #include <sys/stat.h>
3481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3482 struct buf { int x; };
3483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3484 static char *e (p, i)
3490 static char *f (char * (*g) (char **, int), char **p, ...)
3495 s = g (p, va_arg (v,int));
3500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3501 function prototypes and stuff, but not '\xHH' hex character constants.
3502 These don't provoke an error unfortunately, instead are silently treated
3503 as 'x'. The following induces an error, until -std1 is added to get
3504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3505 array size at least. It's necessary to write '\x00'==0 to get something
3506 that's true only with -std1. */
3507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3509 int test (int i, double x);
3510 struct s1 {int (*f) (int a);};
3511 struct s2 {int (*f) (double a);};
3512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3523 # Don't try gcc -ansi; that turns off useful extensions and
3524 # breaks some systems' header files.
3525 # AIX -qlanglvl=ansi
3526 # Ultrix and OSF/1 -std1
3527 # HP-UX 10.20 and later -Ae
3528 # HP-UX older versions -Aa -D_HPUX_SOURCE
3529 # SVR4 -Xc -D__EXTENSIONS__
3530 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3532 CC="$ac_save_CC $ac_arg"
3533 rm -f conftest.$ac_objext
3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
3542 { ac_try='test -z "$ac_c_werror_flag"
3543 || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_cv_prog_cc_stdc=$ac_arg
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3562 rm -f conftest.err conftest.$ac_objext
3564 rm -f conftest.$ac_ext conftest.$ac_objext
3569 case "x$ac_cv_prog_cc_stdc" in
3571 echo "$as_me:$LINENO: result: none needed" >&5
3572 echo "${ECHO_T}none needed" >&6 ;;
3574 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3575 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3576 CC="$CC $ac_cv_prog_cc_stdc" ;;
3579 # Some people use a C++ compiler to compile C. Since we use `exit',
3580 # in C++ we need to declare it. In case someone uses the same compiler
3581 # for both compiling C and C++ we need to have the C++ compiler decide
3582 # the declaration of exit, since it's the most demanding environment.
3583 cat >conftest.$ac_ext <<_ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590 (eval $ac_compile) 2>conftest.er1
3592 grep -v '^ *+' conftest.er1 >conftest.err
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 { ac_try='test -z "$ac_c_werror_flag"
3598 || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 for ac_declaration in \
3612 'extern "C" void std::exit (int) throw (); using std::exit;' \
3613 'extern "C" void std::exit (int); using std::exit;' \
3614 'extern "C" void exit (int) throw ();' \
3615 'extern "C" void exit (int);' \
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3634 rm -f conftest.$ac_objext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>conftest.er1
3638 grep -v '^ *+' conftest.er1 >conftest.err
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } &&
3643 { ac_try='test -z "$ac_c_werror_flag"
3644 || test ! -s conftest.err'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; } &&
3650 { ac_try='test -s conftest.$ac_objext'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3664 cat >conftest.$ac_ext <<_ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_c_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3710 if test -n "$ac_declaration"; then
3711 echo '#ifdef __cplusplus' >>confdefs.h
3712 echo $ac_declaration >>confdefs.h
3713 echo '#endif' >>confdefs.h
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729 ac_cpp='$CXXCPP $CPPFLAGS'
3730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3733 if test -n "$ac_tool_prefix"; then
3734 for ac_prog in $CCC g++
3736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3738 echo "$as_me:$LINENO: checking for $ac_word" >&5
3739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740 if test "${ac_cv_prog_CXX+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 if test -n "$CXX"; then
3744 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 if test -n "$CXX"; then
3764 echo "$as_me:$LINENO: result: $CXX" >&5
3765 echo "${ECHO_T}$CXX" >&6
3767 echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3771 test -n "$CXX" && break
3774 if test -z "$CXX"; then
3776 for ac_prog in $CCC g++
3778 # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy $ac_prog; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 if test -n "$ac_ct_CXX"; then
3786 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_ac_ct_CXX="$ac_prog"
3796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3805 if test -n "$ac_ct_CXX"; then
3806 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3807 echo "${ECHO_T}$ac_ct_CXX" >&6
3809 echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6
3813 test -n "$ac_ct_CXX" && break
3815 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3821 # Provide some information about the compiler.
3822 echo "$as_me:$LINENO:" \
3823 "checking for C++ compiler version" >&5
3824 ac_compiler=`set X $ac_compile; echo $2`
3825 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3826 (eval $ac_compiler --version </dev/null >&5) 2>&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }
3830 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3831 (eval $ac_compiler -v </dev/null >&5) 2>&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }
3835 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3836 (eval $ac_compiler -V </dev/null >&5) 2>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }
3841 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3842 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3843 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 cat >conftest.$ac_ext <<_ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3864 rm -f conftest.$ac_objext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>conftest.er1
3868 grep -v '^ *+' conftest.er1 >conftest.err
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -z "$ac_cxx_werror_flag"
3874 || test ! -s conftest.err'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3897 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3898 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3899 GXX=`test $ac_compiler_gnu = yes && echo yes`
3900 ac_test_CXXFLAGS=${CXXFLAGS+set}
3901 ac_save_CXXFLAGS=$CXXFLAGS
3903 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3904 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3905 if test "${ac_cv_prog_cxx_g+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 cat >conftest.$ac_ext <<_ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3923 rm -f conftest.$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_cxx_werror_flag"
3933 || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try='test -s conftest.$ac_objext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 ac_cv_prog_cxx_g=yes
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3954 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3955 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3956 if test "$ac_test_CXXFLAGS" = set; then
3957 CXXFLAGS=$ac_save_CXXFLAGS
3958 elif test $ac_cv_prog_cxx_g = yes; then
3959 if test "$GXX" = yes; then
3965 if test "$GXX" = yes; then
3971 for ac_declaration in \
3973 'extern "C" void std::exit (int) throw (); using std::exit;' \
3974 'extern "C" void std::exit (int); using std::exit;' \
3975 'extern "C" void exit (int) throw ();' \
3976 'extern "C" void exit (int);' \
3979 cat >conftest.$ac_ext <<_ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3995 rm -f conftest.$ac_objext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997 (eval $ac_compile) 2>conftest.er1
3999 grep -v '^ *+' conftest.er1 >conftest.err
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -z "$ac_cxx_werror_flag"
4005 || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest.$ac_objext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
4044 grep -v '^ *+' conftest.er1 >conftest.err
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_cxx_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4071 if test -n "$ac_declaration"; then
4072 echo '#ifdef __cplusplus' >>confdefs.h
4073 echo $ac_declaration >>confdefs.h
4074 echo '#endif' >>confdefs.h
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 echo "$as_me:$LINENO: checking " >&5
4084 echo $ECHO_N "checking ... $ECHO_C" >&6
4085 if test "${ac_cv_has_flex+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 for ac_prog in flex lex
4090 # Extract the first word of "$ac_prog", so it can be a program name with args.
4091 set dummy $ac_prog; ac_word=$2
4092 echo "$as_me:$LINENO: checking for $ac_word" >&5
4093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4094 if test "${ac_cv_prog_LEX+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 if test -n "$LEX"; then
4098 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107 ac_cv_prog_LEX="$ac_prog"
4108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 if test -n "$LEX"; then
4118 echo "$as_me:$LINENO: result: $LEX" >&5
4119 echo "${ECHO_T}$LEX" >&6
4121 echo "$as_me:$LINENO: result: no" >&5
4122 echo "${ECHO_T}no" >&6
4125 test -n "$LEX" && break
4127 test -n "$LEX" || LEX=":"
4129 if test -z "$LEXLIB"
4131 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4132 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4133 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 ac_check_lib_save_LIBS=$LIBS
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4145 /* Override any gcc2 internal prototype to avoid an error. */
4149 /* We use char because int might match the return type of a gcc2
4150 builtin and then its argument prototype would still apply. */
4160 rm -f conftest.$ac_objext conftest$ac_exeext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4162 (eval $ac_link) 2>conftest.er1
4164 grep -v '^ *+' conftest.er1 >conftest.err
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag"
4170 || test ! -s conftest.err'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; } &&
4176 { ac_try='test -s conftest$ac_exeext'
4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4182 ac_cv_lib_fl_yywrap=yes
4184 echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4187 ac_cv_lib_fl_yywrap=no
4189 rm -f conftest.err conftest.$ac_objext \
4190 conftest$ac_exeext conftest.$ac_ext
4191 LIBS=$ac_check_lib_save_LIBS
4193 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4194 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4195 if test $ac_cv_lib_fl_yywrap = yes; then
4198 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4199 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4200 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_check_lib_save_LIBS=$LIBS
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4212 /* Override any gcc2 internal prototype to avoid an error. */
4216 /* We use char because int might match the return type of a gcc2
4217 builtin and then its argument prototype would still apply. */
4227 rm -f conftest.$ac_objext conftest$ac_exeext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4229 (eval $ac_link) 2>conftest.er1
4231 grep -v '^ *+' conftest.er1 >conftest.err
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -z "$ac_c_werror_flag"
4237 || test ! -s conftest.err'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try='test -s conftest$ac_exeext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 ac_cv_lib_l_yywrap=yes
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 ac_cv_lib_l_yywrap=no
4256 rm -f conftest.err conftest.$ac_objext \
4257 conftest$ac_exeext conftest.$ac_ext
4258 LIBS=$ac_check_lib_save_LIBS
4260 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4261 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4262 if test $ac_cv_lib_l_yywrap = yes; then
4270 if test "x$LEX" != "x:"; then
4271 echo "$as_me:$LINENO: checking lex output file root" >&5
4272 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4273 if test "${ac_cv_prog_lex_root+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 # The minimal lex program is just a single line: %%. But some broken lexes
4277 # (Solaris, I think it was) want two %% lines, so accommodate them.
4278 cat >conftest.l <<_ACEOF
4282 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4283 (eval $LEX conftest.l) 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }
4287 if test -f lex.yy.c; then
4288 ac_cv_prog_lex_root=lex.yy
4289 elif test -f lexyy.c; then
4290 ac_cv_prog_lex_root=lexyy
4292 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4293 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4294 { (exit 1); exit 1; }; }
4297 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4298 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4300 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4302 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4303 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4304 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 # POSIX says lex can declare yytext either as a pointer or an array; the
4308 # default is implementation-dependent. Figure out which it is, since
4309 # not all implementations provide the %pointer and %array declarations.
4310 ac_cv_prog_lex_yytext_pointer=no
4311 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4313 LIBS="$LIBS $LEXLIB"
4314 cat >conftest.$ac_ext <<_ACEOF
4315 `cat $LEX_OUTPUT_ROOT.c`
4317 rm -f conftest.$ac_objext conftest$ac_exeext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4319 (eval $ac_link) 2>conftest.er1
4321 grep -v '^ *+' conftest.er1 >conftest.err
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } &&
4326 { ac_try='test -z "$ac_c_werror_flag"
4327 || test ! -s conftest.err'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest$ac_exeext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 ac_cv_prog_lex_yytext_pointer=yes
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4345 rm -f conftest.err conftest.$ac_objext \
4346 conftest$ac_exeext conftest.$ac_ext
4348 rm -f "${LEX_OUTPUT_ROOT}.c"
4351 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4352 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4353 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4355 cat >>confdefs.h <<\_ACEOF
4356 #define YYTEXT_POINTER 1
4364 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4365 echo "${ECHO_T}$ac_cv_has_flex" >&6
4366 if test "$LEX" != "flex"; then
4367 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4368 echo "$as_me: error: flex not found but required" >&2;}
4369 { (exit 1); exit 1; }; }
4375 echo "$as_me:$LINENO: checking " >&5
4376 echo $ECHO_N "checking ... $ECHO_C" >&6
4377 if test "${llvm_cv_has_bison+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 for ac_prog in 'bison -y' byacc
4382 # Extract the first word of "$ac_prog", so it can be a program name with args.
4383 set dummy $ac_prog; ac_word=$2
4384 echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4386 if test "${ac_cv_prog_YACC+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 if test -n "$YACC"; then
4390 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_YACC="$ac_prog"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 YACC=$ac_cv_prog_YACC
4409 if test -n "$YACC"; then
4410 echo "$as_me:$LINENO: result: $YACC" >&5
4411 echo "${ECHO_T}$YACC" >&6
4413 echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6
4417 test -n "$YACC" && break
4419 test -n "$YACC" || YACC="yacc"
4422 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4423 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4424 if test "$YACC" != "bison -y"; then
4425 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4426 echo "$as_me: error: bison not found but required" >&2;}
4427 { (exit 1); exit 1; }; }
4433 echo "$as_me:$LINENO: checking for GNU make" >&5
4434 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4435 if test "${llvm_cv_gnu_make_command+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 llvm_cv_gnu_make_command=''
4439 for a in "$MAKE" make gmake gnumake ; do
4440 if test -z "$a" ; then continue ; fi ;
4441 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4443 llvm_cv_gnu_make_command=$a ;
4448 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4449 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4450 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4454 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4455 echo "${ECHO_T}\"Not found\"" >&6;
4459 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4460 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4462 if test "$LN_S" = "ln -s"; then
4463 echo "$as_me:$LINENO: result: yes" >&5
4464 echo "${ECHO_T}yes" >&6
4466 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4467 echo "${ECHO_T}no, using $LN_S" >&6
4470 # Extract the first word of "cmp", so it can be a program name with args.
4471 set dummy cmp; ac_word=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_path_CMP+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4502 if test -n "$CMP"; then
4503 echo "$as_me:$LINENO: result: $CMP" >&5
4504 echo "${ECHO_T}$CMP" >&6
4506 echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6
4510 # Extract the first word of "cp", so it can be a program name with args.
4511 set dummy cp; ac_word=$2
4512 echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514 if test "${ac_cv_path_CP+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4542 if test -n "$CP"; then
4543 echo "$as_me:$LINENO: result: $CP" >&5
4544 echo "${ECHO_T}$CP" >&6
4546 echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6
4550 # Extract the first word of "date", so it can be a program name with args.
4551 set dummy date; ac_word=$2
4552 echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554 if test "${ac_cv_path_DATE+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4580 DATE=$ac_cv_path_DATE
4582 if test -n "$DATE"; then
4583 echo "$as_me:$LINENO: result: $DATE" >&5
4584 echo "${ECHO_T}$DATE" >&6
4586 echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6
4590 # Extract the first word of "find", so it can be a program name with args.
4591 set dummy find; ac_word=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_path_FIND+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4620 FIND=$ac_cv_path_FIND
4622 if test -n "$FIND"; then
4623 echo "$as_me:$LINENO: result: $FIND" >&5
4624 echo "${ECHO_T}$FIND" >&6
4626 echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4630 # Extract the first word of "grep", so it can be a program name with args.
4631 set dummy grep; ac_word=$2
4632 echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634 if test "${ac_cv_path_GREP+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4660 GREP=$ac_cv_path_GREP
4662 if test -n "$GREP"; then
4663 echo "$as_me:$LINENO: result: $GREP" >&5
4664 echo "${ECHO_T}$GREP" >&6
4666 echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6
4670 # Extract the first word of "llvm-gcc", so it can be a program name with args.
4671 set dummy llvm-gcc; ac_word=$2
4672 echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_path_LLVMGCC+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
4700 LLVMGCC=$ac_cv_path_LLVMGCC
4702 if test -n "$LLVMGCC"; then
4703 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
4704 echo "${ECHO_T}$LLVMGCC" >&6
4706 echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4710 # Extract the first word of "llvm-g++", so it can be a program name with args.
4711 set dummy llvm-g++; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_path_LLVMGXX+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
4740 LLVMGXX=$ac_cv_path_LLVMGXX
4742 if test -n "$LLVMGXX"; then
4743 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
4744 echo "${ECHO_T}$LLVMGXX" >&6
4746 echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6
4750 # Extract the first word of "mkdir", so it can be a program name with args.
4751 set dummy mkdir; ac_word=$2
4752 echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4754 if test "${ac_cv_path_MKDIR+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4780 MKDIR=$ac_cv_path_MKDIR
4782 if test -n "$MKDIR"; then
4783 echo "$as_me:$LINENO: result: $MKDIR" >&5
4784 echo "${ECHO_T}$MKDIR" >&6
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4790 # Extract the first word of "mv", so it can be a program name with args.
4791 set dummy mv; ac_word=$2
4792 echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794 if test "${ac_cv_path_MV+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4822 if test -n "$MV"; then
4823 echo "$as_me:$LINENO: result: $MV" >&5
4824 echo "${ECHO_T}$MV" >&6
4826 echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4830 # Extract the first word of "pax", so it can be a program name with args.
4831 set dummy pax; ac_word=$2
4832 echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4834 if test "${ac_cv_path_PAX+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4862 if test -n "$PAX"; then
4863 echo "$as_me:$LINENO: result: $PAX" >&5
4864 echo "${ECHO_T}$PAX" >&6
4866 echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4870 if test -n "$ac_tool_prefix"; then
4871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4873 echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875 if test "${ac_cv_prog_RANLIB+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 if test -n "$RANLIB"; then
4879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 RANLIB=$ac_cv_prog_RANLIB
4898 if test -n "$RANLIB"; then
4899 echo "$as_me:$LINENO: result: $RANLIB" >&5
4900 echo "${ECHO_T}$RANLIB" >&6
4902 echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6
4907 if test -z "$ac_cv_prog_RANLIB"; then
4908 ac_ct_RANLIB=$RANLIB
4909 # Extract the first word of "ranlib", so it can be a program name with args.
4910 set dummy ranlib; ac_word=$2
4911 echo "$as_me:$LINENO: checking for $ac_word" >&5
4912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4913 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 if test -n "$ac_ct_RANLIB"; then
4917 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_prog_ac_ct_RANLIB="ranlib"
4927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4936 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4937 if test -n "$ac_ct_RANLIB"; then
4938 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4939 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4941 echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6
4945 RANLIB=$ac_ct_RANLIB
4947 RANLIB="$ac_cv_prog_RANLIB"
4950 # Extract the first word of "rm", so it can be a program name with args.
4951 set dummy rm; ac_word=$2
4952 echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954 if test "${ac_cv_path_RM+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4982 if test -n "$RM"; then
4983 echo "$as_me:$LINENO: result: $RM" >&5
4984 echo "${ECHO_T}$RM" >&6
4986 echo "$as_me:$LINENO: result: no" >&5
4987 echo "${ECHO_T}no" >&6
4990 # Extract the first word of "sed", so it can be a program name with args.
4991 set dummy sed; ac_word=$2
4992 echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994 if test "${ac_cv_path_SED+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5022 if test -n "$SED"; then
5023 echo "$as_me:$LINENO: result: $SED" >&5
5024 echo "${ECHO_T}$SED" >&6
5026 echo "$as_me:$LINENO: result: no" >&5
5027 echo "${ECHO_T}no" >&6
5030 # Extract the first word of "tar", so it can be a program name with args.
5031 set dummy tar; ac_word=$2
5032 echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034 if test "${ac_cv_path_TAR+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5062 if test -n "$TAR"; then
5063 echo "$as_me:$LINENO: result: $TAR" >&5
5064 echo "${ECHO_T}$TAR" >&6
5066 echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6
5071 # Find a good install program. We prefer a C program (faster),
5072 # so one script is as good as another. But avoid the broken or
5073 # incompatible versions:
5074 # SysV /etc/install, /usr/sbin/install
5075 # SunOS /usr/etc/install
5076 # IRIX /sbin/install
5078 # AmigaOS /C/install, which installs bootblocks on floppy discs
5079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5082 # OS/2's system install, which has a completely different semantic
5083 # ./install, which can be erroneously created by make from ./install.sh.
5084 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5085 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5086 if test -z "$INSTALL"; then
5087 if test "${ac_cv_path_install+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 # Account for people who put trailing slashes in PATH elements.
5097 ./ | .// | /cC/* | \
5098 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5099 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5102 # OSF1 and SCO ODT 3.0 have their own names for install.
5103 # Don't use installbsd from OSF since it installs stuff as root
5105 for ac_prog in ginstall scoinst install; do
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5108 if test $ac_prog = install &&
5109 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5110 # AIX install. It has an incompatible calling convention.
5112 elif test $ac_prog = install &&
5113 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5114 # program-specific install script used by HP pwplus--don't use.
5117 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5129 if test "${ac_cv_path_install+set}" = set; then
5130 INSTALL=$ac_cv_path_install
5132 # As a last resort, use the slow shell script. We don't cache a
5133 # path for INSTALL within a source directory, because that will
5134 # break other packages using the cache if that directory is
5135 # removed, or if the path is relative.
5136 INSTALL=$ac_install_sh
5139 echo "$as_me:$LINENO: result: $INSTALL" >&5
5140 echo "${ECHO_T}$INSTALL" >&6
5142 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5143 # It thinks the first close brace ends the variable substitution.
5144 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5146 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5148 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5151 # Extract the first word of "bzip2", so it can be a program name with args.
5152 set dummy bzip2; ac_word=$2
5153 echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155 if test "${ac_cv_path_BZIP2+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5181 BZIP2=$ac_cv_path_BZIP2
5183 if test -n "$BZIP2"; then
5184 echo "$as_me:$LINENO: result: $BZIP2" >&5
5185 echo "${ECHO_T}$BZIP2" >&6
5187 echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6
5191 # Extract the first word of "dot", so it can be a program name with args.
5192 set dummy dot; ac_word=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_path_DOT+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5223 if test -n "$DOT"; then
5224 echo "$as_me:$LINENO: result: $DOT" >&5
5225 echo "${ECHO_T}$DOT" >&6
5227 echo "$as_me:$LINENO: result: no" >&5
5228 echo "${ECHO_T}no" >&6
5231 # Extract the first word of "doxygen", so it can be a program name with args.
5232 set dummy doxygen; ac_word=$2
5233 echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5261 DOXYGEN=$ac_cv_path_DOXYGEN
5263 if test -n "$DOXYGEN"; then
5264 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5265 echo "${ECHO_T}$DOXYGEN" >&6
5267 echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6
5271 # Extract the first word of "etags", so it can be a program name with args.
5272 set dummy etags; ac_word=$2
5273 echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5275 if test "${ac_cv_path_ETAGS+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5301 ETAGS=$ac_cv_path_ETAGS
5303 if test -n "$ETAGS"; then
5304 echo "$as_me:$LINENO: result: $ETAGS" >&5
5305 echo "${ECHO_T}$ETAGS" >&6
5307 echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6
5311 # Extract the first word of "groff", so it can be a program name with args.
5312 set dummy groff; ac_word=$2
5313 echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5315 if test "${ac_cv_path_GROFF+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5341 GROFF=$ac_cv_path_GROFF
5343 if test -n "$GROFF"; then
5344 echo "$as_me:$LINENO: result: $GROFF" >&5
5345 echo "${ECHO_T}$GROFF" >&6
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5351 # Extract the first word of "gzip", so it can be a program name with args.
5352 set dummy gzip; ac_word=$2
5353 echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355 if test "${ac_cv_path_GZIP+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5381 GZIP=$ac_cv_path_GZIP
5383 if test -n "$GZIP"; then
5384 echo "$as_me:$LINENO: result: $GZIP" >&5
5385 echo "${ECHO_T}$GZIP" >&6
5387 echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6
5391 # Extract the first word of "pod2html", so it can be a program name with args.
5392 set dummy pod2html; ac_word=$2
5393 echo "$as_me:$LINENO: checking for $ac_word" >&5
5394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5395 if test "${ac_cv_path_POD2HTML+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5421 POD2HTML=$ac_cv_path_POD2HTML
5423 if test -n "$POD2HTML"; then
5424 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5425 echo "${ECHO_T}$POD2HTML" >&6
5427 echo "$as_me:$LINENO: result: no" >&5
5428 echo "${ECHO_T}no" >&6
5431 # Extract the first word of "pod2man", so it can be a program name with args.
5432 set dummy pod2man; ac_word=$2
5433 echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435 if test "${ac_cv_path_POD2MAN+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5461 POD2MAN=$ac_cv_path_POD2MAN
5463 if test -n "$POD2MAN"; then
5464 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5465 echo "${ECHO_T}$POD2MAN" >&6
5467 echo "$as_me:$LINENO: result: no" >&5
5468 echo "${ECHO_T}no" >&6
5471 # Extract the first word of "runtest", so it can be a program name with args.
5472 set dummy runtest; ac_word=$2
5473 echo "$as_me:$LINENO: checking for $ac_word" >&5
5474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5475 if test "${ac_cv_path_RUNTEST+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5501 RUNTEST=$ac_cv_path_RUNTEST
5503 if test -n "$RUNTEST"; then
5504 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5505 echo "${ECHO_T}$RUNTEST" >&6
5507 echo "$as_me:$LINENO: result: no" >&5
5508 echo "${ECHO_T}no" >&6
5513 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5514 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5516 # Check whether --with-tclinclude or --without-tclinclude was given.
5517 if test "${with_tclinclude+set}" = set; then
5518 withval="$with_tclinclude"
5519 with_tclinclude=${withval}
5523 if test "${ac_cv_path_tclsh+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 if test x"${with_tclinclude}" != x ; then
5528 if test -f ${with_tclinclude}/tclsh ; then
5529 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5530 elif test -f ${with_tclinclude}/src/tclsh ; then
5531 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5533 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5534 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5535 { (exit 1); exit 1; }; }
5539 if test x"${ac_cv_path_tclsh}" = x ; then
5540 echo "$as_me:$LINENO: result: none" >&5
5541 echo "${ECHO_T}none" >&6
5542 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
5544 # Extract the first word of "$ac_prog", so it can be a program name with args.
5545 set dummy $ac_prog; 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_TCLSH+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 ac_cv_path_TCLSH="$TCLSH" # 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_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 TCLSH=$ac_cv_path_TCLSH
5575 if test -n "$TCLSH"; then
5576 echo "$as_me:$LINENO: result: $TCLSH" >&5
5577 echo "${ECHO_T}$TCLSH" >&6
5579 echo "$as_me:$LINENO: result: no" >&5
5580 echo "${ECHO_T}no" >&6
5583 test -n "$TCLSH" && break
5586 if test x"${TCLSH}" = x ; then
5587 ac_cv_path_tclsh='';
5589 ac_cv_path_tclsh="${TCLSH}";
5592 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5593 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5594 TCLSH="${ac_cv_path_tclsh}"
5600 # Extract the first word of "zip", so it can be a program name with args.
5601 set dummy zip; ac_word=$2
5602 echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604 if test "${ac_cv_path_ZIP+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5632 if test -n "$ZIP"; then
5633 echo "$as_me:$LINENO: result: $ZIP" >&5
5634 echo "${ECHO_T}$ZIP" >&6
5636 echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5641 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5642 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5643 if test "${llvm_cv_link_use_r+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 ac_cpp='$CPP $CPPFLAGS'
5648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5653 CFLAGS="$CFLAGS -Wl,-R."
5654 cat >conftest.$ac_ext <<_ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5664 int main() { return 0; }
5669 rm -f conftest.$ac_objext conftest$ac_exeext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5671 (eval $ac_link) 2>conftest.er1
5673 grep -v '^ *+' conftest.er1 >conftest.err
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -z "$ac_c_werror_flag"
5679 || test ! -s conftest.err'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest$ac_exeext'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5691 llvm_cv_link_use_r=yes
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 llvm_cv_link_use_r=no
5698 rm -f conftest.err conftest.$ac_objext \
5699 conftest$ac_exeext conftest.$ac_ext
5702 ac_cpp='$CPP $CPPFLAGS'
5703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5709 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5710 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5711 if test "$llvm_cv_link_use_r" = yes ; then
5713 cat >>confdefs.h <<\_ACEOF
5714 #define HAVE_LINK_R 1
5722 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5723 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5724 if test "${ac_cv_c_const+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 cat >conftest.$ac_ext <<_ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5737 /* FIXME: Include the comments suggested by Paul. */
5739 /* Ultrix mips cc rejects this. */
5740 typedef int charset[2];
5742 /* SunOS 4.1.1 cc rejects this. */
5743 char const *const *ccp;
5745 /* NEC SVR4.0.2 mips cc rejects this. */
5746 struct point {int x, y;};
5747 static struct point const zero = {0,0};
5748 /* AIX XL C 1.02.0.0 rejects this.
5749 It does not let you subtract one const X* pointer from another in
5750 an arm of an if-expression whose if-part is not a constant
5752 const char *g = "string";
5753 ccp = &g + (g ? g-g : 0);
5754 /* HPUX 7.0 cc rejects these. */
5757 ccp = (char const *const *) p;
5758 { /* SCO 3.2v4 cc rejects this. */
5760 char const *s = 0 ? (char *) 0 : (char const *) 0;
5764 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5766 const int *foo = &x[0];
5769 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5770 typedef const int *iptr;
5774 { /* AIX XL C 1.02.0.0 rejects this saying
5775 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5776 struct s { int j; const int *ap[3]; };
5777 struct s *b; b->j = 5;
5779 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5788 rm -f conftest.$ac_objext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790 (eval $ac_compile) 2>conftest.er1
5792 grep -v '^ *+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -z "$ac_c_werror_flag"
5798 || test ! -s conftest.err'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; } &&
5804 { ac_try='test -s conftest.$ac_objext'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5819 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5820 echo "${ECHO_T}$ac_cv_c_const" >&6
5821 if test $ac_cv_c_const = no; then
5823 cat >>confdefs.h <<\_ACEOF
5830 echo "$as_me:$LINENO: checking for egrep" >&5
5831 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5832 if test "${ac_cv_prog_egrep+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5836 then ac_cv_prog_egrep='grep -E'
5837 else ac_cv_prog_egrep='egrep'
5840 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5841 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5842 EGREP=$ac_cv_prog_egrep
5845 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5846 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5847 if test "${ac_cv_header_stdc+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_c_werror_flag"
5879 || test ! -s conftest.err'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; } &&
5885 { ac_try='test -s conftest.$ac_objext'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_cv_header_stdc=yes
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 ac_cv_header_stdc=no
5898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5900 if test $ac_cv_header_stdc = yes; then
5901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5912 $EGREP "memchr" >/dev/null 2>&1; then
5915 ac_cv_header_stdc=no
5921 if test $ac_cv_header_stdc = yes; then
5922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5923 cat >conftest.$ac_ext <<_ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5933 $EGREP "free" >/dev/null 2>&1; then
5936 ac_cv_header_stdc=no
5942 if test $ac_cv_header_stdc = yes; then
5943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5944 if test "$cross_compiling" = yes; then
5947 cat >conftest.$ac_ext <<_ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5954 #if ((' ' & 0x0FF) == 0x020)
5955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5958 # define ISLOWER(c) \
5959 (('a' <= (c) && (c) <= 'i') \
5960 || ('j' <= (c) && (c) <= 'r') \
5961 || ('s' <= (c) && (c) <= 'z'))
5962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5970 for (i = 0; i < 256; i++)
5971 if (XOR (islower (i), ISLOWER (i))
5972 || toupper (i) != TOUPPER (i))
5977 rm -f conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979 (eval $ac_link) 2>&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5990 echo "$as_me: program exited with status $ac_status" >&5
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5995 ac_cv_header_stdc=no
5997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6002 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6003 if test $ac_cv_header_stdc = yes; then
6005 cat >>confdefs.h <<\_ACEOF
6006 #define STDC_HEADERS 1
6017 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6018 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6019 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6020 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 #include <sys/types.h>
6042 rm -f conftest.$ac_objext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044 (eval $ac_compile) 2>conftest.er1
6046 grep -v '^ *+' conftest.er1 >conftest.err
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -z "$ac_c_werror_flag"
6052 || test ! -s conftest.err'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; } &&
6058 { ac_try='test -s conftest.$ac_objext'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 eval "$as_ac_Header=yes"
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069 eval "$as_ac_Header=no"
6071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6076 cat >>confdefs.h <<_ACEOF
6077 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6080 ac_header_dirent=$ac_hdr; break
6084 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6085 if test $ac_header_dirent = dirent.h; then
6086 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6087 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6088 if test "${ac_cv_search_opendir+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 ac_func_search_save_LIBS=$LIBS
6092 ac_cv_search_opendir=no
6093 cat >conftest.$ac_ext <<_ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6100 /* Override any gcc2 internal prototype to avoid an error. */
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>conftest.er1
6119 grep -v '^ *+' conftest.er1 >conftest.err
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest$ac_exeext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_search_opendir="none required"
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
6145 if test "$ac_cv_search_opendir" = no; then
6146 for ac_lib in dir; do
6147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6148 cat >conftest.$ac_ext <<_ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6155 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>conftest.er1
6174 grep -v '^ *+' conftest.er1 >conftest.err
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_c_werror_flag"
6180 || test ! -s conftest.err'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest$ac_exeext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 ac_cv_search_opendir="-l$ac_lib"
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6199 rm -f conftest.err conftest.$ac_objext \
6200 conftest$ac_exeext conftest.$ac_ext
6203 LIBS=$ac_func_search_save_LIBS
6205 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6206 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6207 if test "$ac_cv_search_opendir" != no; then
6208 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6213 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6214 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6215 if test "${ac_cv_search_opendir+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 ac_func_search_save_LIBS=$LIBS
6219 ac_cv_search_opendir=no
6220 cat >conftest.$ac_ext <<_ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6227 /* Override any gcc2 internal prototype to avoid an error. */
6231 /* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6244 (eval $ac_link) 2>conftest.er1
6246 grep -v '^ *+' conftest.er1 >conftest.err
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -z "$ac_c_werror_flag"
6252 || test ! -s conftest.err'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest$ac_exeext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_cv_search_opendir="none required"
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
6272 if test "$ac_cv_search_opendir" = no; then
6274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6275 cat >conftest.$ac_ext <<_ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6282 /* Override any gcc2 internal prototype to avoid an error. */
6286 /* We use char because int might match the return type of a gcc2
6287 builtin and then its argument prototype would still apply. */
6297 rm -f conftest.$ac_objext conftest$ac_exeext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299 (eval $ac_link) 2>conftest.er1
6301 grep -v '^ *+' conftest.er1 >conftest.err
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
6306 { ac_try='test -z "$ac_c_werror_flag"
6307 || test ! -s conftest.err'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; } &&
6313 { ac_try='test -s conftest$ac_exeext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_cv_search_opendir="-l$ac_lib"
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6326 rm -f conftest.err conftest.$ac_objext \
6327 conftest$ac_exeext conftest.$ac_ext
6330 LIBS=$ac_func_search_save_LIBS
6332 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6333 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6334 if test "$ac_cv_search_opendir" != no; then
6335 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6341 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6352 inttypes.h stdint.h unistd.h
6354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355 echo "$as_me:$LINENO: checking for $ac_header" >&5
6356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 $ac_includes_default
6368 #include <$ac_header>
6370 rm -f conftest.$ac_objext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372 (eval $ac_compile) 2>conftest.er1
6374 grep -v '^ *+' conftest.er1 >conftest.err
6376 cat conftest.err >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } &&
6379 { ac_try='test -z "$ac_c_werror_flag"
6380 || test ! -s conftest.err'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } &&
6386 { ac_try='test -s conftest.$ac_objext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 eval "$as_ac_Header=yes"
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 eval "$as_ac_Header=no"
6399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6404 cat >>confdefs.h <<_ACEOF
6405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6414 for ac_header in dlfcn.h
6416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418 echo "$as_me:$LINENO: checking for $ac_header" >&5
6419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426 # Is the header compilable?
6427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6429 cat >conftest.$ac_ext <<_ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6436 #include <$ac_header>
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 (eval $ac_compile) 2>conftest.er1
6442 grep -v '^ *+' conftest.er1 >conftest.err
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest.$ac_objext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_header_compiler=yes
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6465 ac_header_compiler=no
6467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6469 echo "${ECHO_T}$ac_header_compiler" >&6
6471 # Is the header present?
6472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6474 cat >conftest.$ac_ext <<_ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 #include <$ac_header>
6482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6485 grep -v '^ *+' conftest.er1 >conftest.err
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } >/dev/null; then
6490 if test -s conftest.err; then
6491 ac_cpp_err=$ac_c_preproc_warn_flag
6492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6499 if test -z "$ac_cpp_err"; then
6500 ac_header_preproc=yes
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 ac_header_preproc=no
6507 rm -f conftest.err conftest.$ac_ext
6508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6509 echo "${ECHO_T}$ac_header_preproc" >&6
6511 # So? What about this header?
6512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6518 ac_header_preproc=yes
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6535 ## ----------------------------------- ##
6536 ## Report this to llvmbugs@cs.uiuc.edu ##
6537 ## ----------------------------------- ##
6540 sed "s/^/$as_me: WARNING: /" >&2
6543 echo "$as_me:$LINENO: checking for $ac_header" >&5
6544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 eval "$as_ac_Header=\$ac_header_preproc"
6550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6555 cat >>confdefs.h <<_ACEOF
6556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6563 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6564 if test "${enable_ltdl_install+set}" = set; then
6565 enableval="$enable_ltdl_install"
6571 if test x"${enable_ltdl_install-no}" != xno; then
6573 INSTALL_LTDL_FALSE='#'
6575 INSTALL_LTDL_TRUE='#'
6581 if test x"${enable_ltdl_convenience-no}" != xno; then
6582 CONVENIENCE_LTDL_TRUE=
6583 CONVENIENCE_LTDL_FALSE='#'
6585 CONVENIENCE_LTDL_TRUE='#'
6586 CONVENIENCE_LTDL_FALSE=
6590 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6593 libname_spec='lib$name'
6601 shlibpath_overrides_runpath=unknown
6603 dynamic_linker="$host_os ld.so"
6604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6605 if test "$GCC" = yes; then
6606 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6607 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6608 # if the path contains ";" then we assume it to be the separator
6609 # otherwise default to the standard path separator (i.e. ":") - it is
6610 # assumed that no part of a normal pathname contains ";" but that should
6611 # okay in the real world where ";" in dirpaths is itself problematic.
6612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6617 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6619 need_lib_prefix=unknown
6620 hardcode_into_libs=no
6622 # when you set need_version to no, make sure it does not cause -set_version
6623 # flags to be left without arguments
6624 need_version=unknown
6629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6630 shlibpath_var=LIBPATH
6632 # AIX 3 has no versioning support, so we append a major version to the name.
6633 soname_spec='${libname}${release}${shared_ext}$major'
6640 hardcode_into_libs=yes
6641 if test "$host_cpu" = ia64; then
6642 # AIX 5 supports IA64
6643 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6644 shlibpath_var=LD_LIBRARY_PATH
6646 # With GCC up to 2.95.x, collect2 would create an import file
6647 # for dependence libraries. The import file would start with
6648 # the line `#! .'. This would cause the generated library to
6649 # depend on `.', always an invalid library. This was fixed in
6650 # development snapshots of GCC prior to 3.0.
6652 aix4 | aix4.[01] | aix4.[01].*)
6653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6655 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6662 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6663 # soname into executable. Probably we can add versioning support to
6664 # collect2, so additional links can be useful in future.
6665 if test "$aix_use_runtimelinking" = yes; then
6666 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6667 # instead of lib<name>.a to let people know that these are not
6668 # typical AIX shared libraries.
6669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6671 # We preserve .a as extension for shared libraries through AIX4.2
6672 # and later when we are not doing run time linking.
6673 library_names_spec='${libname}${release}.a $libname.a'
6674 soname_spec='${libname}${release}${shared_ext}$major'
6676 shlibpath_var=LIBPATH
6681 library_names_spec='$libname.ixlibrary $libname.a'
6682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6683 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'
6687 library_names_spec='${libname}${shared_ext}'
6688 dynamic_linker="$host_os ld.so"
6689 shlibpath_var=LIBRARY_PATH
6695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6696 soname_spec='${libname}${release}${shared_ext}$major'
6697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6698 shlibpath_var=LD_LIBRARY_PATH
6699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6701 # the default ld.so.conf also contains /usr/contrib/lib and
6702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6703 # libtool to hard-code these into programs
6706 cygwin* | mingw* | pw32*)
6707 version_type=windows
6712 case $GCC,$host_os in
6713 yes,cygwin* | yes,mingw* | yes,pw32*)
6714 library_names_spec='$libname.dll.a'
6715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6716 postinstall_cmds='base_file=`basename \${file}`~
6717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6718 dldir=$destdir/`dirname \$dlpath`~
6719 test -d \$dldir || mkdir -p \$dldir~
6720 $install_prog $dir/$dlname \$dldir/$dlname'
6721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6722 dlpath=$dir/\$dldll~
6724 shlibpath_overrides_runpath=yes
6728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6730 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6733 # MinGW DLLs use traditional 'lib' prefix
6734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6735 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6736 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6737 # It is most probably a Windows format PATH printed by
6738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6739 # path with ; separators, and with drive letters. We can handle the
6740 # drive letters (cygwin fileutils understands them), so leave them,
6741 # especially as we might pass files found there to a mingw objdump,
6742 # which wouldn't understand a cygwinified path. Ahh.
6743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6749 # pw32 DLLs use 'pw' prefix rather than 'lib'
6750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6759 dynamic_linker='Win32 ld.exe'
6760 # FIXME: first we should search . and the directory the executable is in
6764 darwin* | rhapsody*)
6765 dynamic_linker="$host_os dyld"
6769 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6770 soname_spec='${libname}${release}${major}$shared_ext'
6771 shlibpath_overrides_runpath=yes
6772 shlibpath_var=DYLD_LIBRARY_PATH
6773 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6774 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6775 if test "$GCC" = yes; then
6776 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"`
6778 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6788 soname_spec='${libname}${release}${shared_ext}$major'
6789 shlibpath_var=LD_LIBRARY_PATH
6800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6801 soname_spec='${libname}${release}${shared_ext}$major'
6802 shlibpath_var=LD_LIBRARY_PATH
6803 shlibpath_overrides_runpath=no
6804 hardcode_into_libs=yes
6805 dynamic_linker='GNU ld.so'
6809 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6810 version_type=freebsd-$objformat
6811 case $version_type in
6813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6822 shlibpath_var=LD_LIBRARY_PATH
6825 shlibpath_overrides_runpath=yes
6827 freebsd3.01* | freebsdelf3.01*)
6828 shlibpath_overrides_runpath=yes
6829 hardcode_into_libs=yes
6832 shlibpath_overrides_runpath=no
6833 hardcode_into_libs=yes
6842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6843 soname_spec='${libname}${release}${shared_ext}$major'
6844 shlibpath_var=LD_LIBRARY_PATH
6845 hardcode_into_libs=yes
6848 hpux9* | hpux10* | hpux11*)
6849 # Give a soname corresponding to the major version so that dld.sl refuses to
6850 # link against other versions.
6857 hardcode_into_libs=yes
6858 dynamic_linker="$host_os dld.so"
6859 shlibpath_var=LD_LIBRARY_PATH
6860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6862 soname_spec='${libname}${release}${shared_ext}$major'
6863 if test "X$HPUX_IA64_MODE" = X32; then
6864 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6872 hardcode_into_libs=yes
6873 dynamic_linker="$host_os dld.sl"
6874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6877 soname_spec='${libname}${release}${shared_ext}$major'
6878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6883 dynamic_linker="$host_os dld.sl"
6884 shlibpath_var=SHLIB_PATH
6885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6887 soname_spec='${libname}${release}${shared_ext}$major'
6890 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6891 postinstall_cmds='chmod 555 $lib'
6894 irix5* | irix6* | nonstopux*)
6896 nonstopux*) version_type=nonstopux ;;
6898 if test "$lt_cv_prog_gnu_ld" = yes; then
6906 soname_spec='${libname}${release}${shared_ext}$major'
6907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6909 irix5* | nonstopux*)
6913 case $LD in # libtool.m4 will add one of these switches to LD
6914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6915 libsuff= shlibsuff= libmagic=32-bit;;
6916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6917 libsuff=32 shlibsuff=N32 libmagic=N32;;
6918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6920 *) libsuff= shlibsuff= libmagic=never-match;;
6924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6925 shlibpath_overrides_runpath=no
6926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6928 hardcode_into_libs=yes
6931 # No shared lib support for Linux oldld, aout, or coff.
6932 linux*oldld* | linux*aout* | linux*coff*)
6936 # This must be Linux ELF.
6941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6942 soname_spec='${libname}${release}${shared_ext}$major'
6943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6944 shlibpath_var=LD_LIBRARY_PATH
6945 shlibpath_overrides_runpath=no
6946 # This implies no fast_install, which is unacceptable.
6947 # Some rework will be needed to allow for fast_install
6948 # before this can be enabled.
6949 hardcode_into_libs=yes
6951 # Append ld.so.conf contents to the search path
6952 if test -f /etc/ld.so.conf; then
6953 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6954 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6957 # We used to test for /lib/ld.so.1 and disable shared libraries on
6958 # powerpc, because MkLinux only supported shared libraries with the
6959 # GNU dynamic linker. Since this was broken with cross compilers,
6960 # most powerpc-linux boxes support dynamic linking these days and
6961 # people can always --disable-shared, the test was removed, and we
6962 # assume the GNU/Linux dynamic linker is in use.
6963 dynamic_linker='GNU/Linux ld.so'
6970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6971 soname_spec='${libname}${release}${shared_ext}$major'
6972 shlibpath_var=LD_LIBRARY_PATH
6973 shlibpath_overrides_runpath=no
6974 hardcode_into_libs=yes
6975 dynamic_linker='GNU ld.so'
6982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6985 dynamic_linker='NetBSD (a.out) ld.so'
6987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6988 soname_spec='${libname}${release}${shared_ext}$major'
6989 dynamic_linker='NetBSD ld.elf_so'
6991 shlibpath_var=LD_LIBRARY_PATH
6992 shlibpath_overrides_runpath=yes
6993 hardcode_into_libs=yes
6998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6999 shlibpath_var=LD_LIBRARY_PATH
7000 shlibpath_overrides_runpath=yes
7007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7008 soname_spec='${libname}${release}${shared_ext}$major'
7009 shlibpath_var=LD_LIBRARY_PATH
7010 shlibpath_overrides_runpath=yes
7017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7019 shlibpath_var=LD_LIBRARY_PATH
7020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7022 openbsd2.[89] | openbsd2.[89].*)
7023 shlibpath_overrides_runpath=no
7026 shlibpath_overrides_runpath=yes
7030 shlibpath_overrides_runpath=yes
7035 libname_spec='$name'
7038 library_names_spec='$libname${shared_ext} $libname.a'
7039 dynamic_linker='OS/2 ld.exe'
7040 shlibpath_var=LIBPATH
7043 osf3* | osf4* | osf5*)
7047 soname_spec='${libname}${release}${shared_ext}$major'
7048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7049 shlibpath_var=LD_LIBRARY_PATH
7050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7051 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7056 soname_spec='${libname}${release}${shared_ext}$major'
7057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7058 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
7068 shlibpath_overrides_runpath=yes
7069 hardcode_into_libs=yes
7070 # ldd complains unless libraries are executable
7071 postinstall_cmds='chmod +x $lib'
7076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7078 shlibpath_var=LD_LIBRARY_PATH
7079 shlibpath_overrides_runpath=yes
7080 if test "$with_gnu_ld" = yes; then
7086 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7089 soname_spec='${libname}${release}${shared_ext}$major'
7090 shlibpath_var=LD_LIBRARY_PATH
7091 case $host_vendor in
7093 shlibpath_overrides_runpath=no
7095 export_dynamic_flag_spec='${wl}-Blargedynsym'
7096 runpath_var=LD_RUN_PATH
7104 shlibpath_overrides_runpath=no
7105 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7111 if test -d /usr/nec ;then
7113 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7114 soname_spec='$libname${shared_ext}.$major'
7115 shlibpath_var=LD_LIBRARY_PATH
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7122 soname_spec='${libname}${release}${shared_ext}$major'
7123 shlibpath_var=LD_LIBRARY_PATH
7130 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7131 echo "${ECHO_T}$dynamic_linker" >&6
7132 test "$dynamic_linker" = no && can_build_shared=no
7135 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7136 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7137 if test "${libltdl_cv_shlibext+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 eval libltdl_cv_shlibext=$shrext_cmds
7145 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7146 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7147 if test -n "$libltdl_cv_shlibext"; then
7149 cat >>confdefs.h <<_ACEOF
7150 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7156 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7157 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7158 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 libltdl_cv_shlibpath_var="$shlibpath_var"
7163 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7164 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7165 if test -n "$libltdl_cv_shlibpath_var"; then
7167 cat >>confdefs.h <<_ACEOF
7168 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7174 echo "$as_me:$LINENO: checking for the default library search path" >&5
7175 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7176 if test "${libltdl_cv_sys_search_path+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7181 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7182 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7183 if test -n "$libltdl_cv_sys_search_path"; then
7185 for dir in $libltdl_cv_sys_search_path; do
7186 if test -z "$sys_search_path"; then
7187 sys_search_path="$dir"
7189 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7193 cat >>confdefs.h <<_ACEOF
7194 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7199 echo "$as_me:$LINENO: checking for objdir" >&5
7200 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7201 if test "${libltdl_cv_objdir+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 libltdl_cv_objdir="$objdir"
7205 if test -n "$objdir"; then
7208 rm -f .libs 2>/dev/null
7209 mkdir .libs 2>/dev/null
7210 if test -d .libs; then
7211 libltdl_cv_objdir=.libs
7213 # MS-DOS does not allow filenames that begin with a dot.
7214 libltdl_cv_objdir=_libs
7216 rmdir .libs 2>/dev/null
7220 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7221 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7223 cat >>confdefs.h <<_ACEOF
7224 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7228 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7229 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7230 if test "${lt_cv_path_NM+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 if test -n "$NM"; then
7234 # Let the user override the test.
7237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7238 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7240 test -z "$ac_dir" && ac_dir=.
7241 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7242 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7243 # Check to see if the nm accepts a BSD-compat flag.
7244 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7245 # nm: unknown option "B" ignored
7246 # Tru64's nm complains that /dev/null is an invalid object file
7247 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7248 */dev/null* | *'Invalid file or object type'*)
7249 lt_cv_path_NM="$tmp_nm -B"
7253 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7255 lt_cv_path_NM="$tmp_nm -p"
7259 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7260 continue # so that we can try to find one that supports BSD flags
7267 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7270 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7271 echo "${ECHO_T}$lt_cv_path_NM" >&6
7278 # Check for command to grab the raw symbol name followed by C symbol from nm.
7279 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7280 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7281 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 # These are sane defaults that work on at least a few old systems.
7286 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7288 # Character class describing NM global symbol codes.
7289 symcode='[BCDEGRST]'
7291 # Regexp to match symbols that can be accessed directly from C.
7292 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7294 # Transform the above into a raw symbol and a C symbol.
7295 symxfrm='\1 \2\3 \3'
7297 # Transform an extracted symbol line into a proper C declaration
7298 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7300 # Transform an extracted symbol line into symbol name and symbol address
7301 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7303 # Define system-specific variables.
7308 cygwin* | mingw* | pw32*)
7309 symcode='[ABCDGISTW]'
7311 hpux*) # Its linker distinguishes data from code symbols
7312 if test "$host_cpu" = ia64; then
7313 symcode='[ABCDEGRST]'
7315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7316 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'"
7319 if test "$host_cpu" = ia64; then
7320 symcode='[ABCDGIRSTW]'
7321 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7322 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'"
7326 symcode='[BCDEGRST]'
7329 symcode='[BCDEGQRST]'
7339 # Handle CRLF in mingw tool chain
7343 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7347 # If we're using GNU nm, then use its standard symbol codes.
7348 case `$NM -V 2>&1` in
7349 *GNU* | *'with BFD'*)
7350 symcode='[ABCDGIRSTW]' ;;
7353 # Try without a prefix undercore, then with it.
7354 for ac_symprfx in "" "_"; do
7356 # Write the raw and C identifiers.
7357 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7359 # Check to see that the pipe works correctly.
7363 cat > conftest.$ac_ext <<EOF
7368 void nm_test_func(){}
7372 int main(){nm_test_var='a';nm_test_func();return(0);}
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; then
7380 # Now try to grab the symbols.
7382 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7383 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } && test -s "$nlist"; then
7387 # Try sorting and uniquifying the output.
7388 if sort "$nlist" | uniq > "$nlist"T; then
7389 mv -f "$nlist"T "$nlist"
7394 # Make sure that we snagged all the symbols we need.
7395 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7396 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7397 cat <<EOF > conftest.$ac_ext
7403 # Now generate the symbol file.
7404 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7406 cat <<EOF >> conftest.$ac_ext
7407 #if defined (__STDC__) && __STDC__
7408 # define lt_ptr_t void *
7410 # define lt_ptr_t char *
7414 /* The mapping between symbol names and symbols. */
7419 lt_preloaded_symbols[] =
7422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7423 cat <<\EOF >> conftest.$ac_ext
7431 # Now try linking the two files.
7432 mv conftest.$ac_objext conftstm.$ac_objext
7433 lt_save_LIBS="$LIBS"
7434 lt_save_CFLAGS="$CFLAGS"
7435 LIBS="conftstm.$ac_objext"
7436 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7444 LIBS="$lt_save_LIBS"
7445 CFLAGS="$lt_save_CFLAGS"
7447 echo "cannot find nm_test_func in $nlist" >&5
7450 echo "cannot find nm_test_var in $nlist" >&5
7453 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7456 echo "$progname: failed program was:" >&5
7457 cat conftest.$ac_ext >&5
7459 rm -f conftest* conftst*
7461 # Do not use the global_symbol_pipe unless it works.
7462 if test "$pipe_works" = yes; then
7465 lt_cv_sys_global_symbol_pipe=
7471 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7472 lt_cv_sys_global_symbol_to_cdecl=
7474 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7475 echo "$as_me:$LINENO: result: failed" >&5
7476 echo "${ECHO_T}failed" >&6
7478 echo "$as_me:$LINENO: result: ok" >&5
7479 echo "${ECHO_T}ok" >&6
7483 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7484 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7485 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7489 libltdl_cv_preloaded_symbols=yes
7491 libltdl_cv_preloaded_symbols=no
7495 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7496 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7497 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7499 cat >>confdefs.h <<\_ACEOF
7500 #define HAVE_PRELOADED_SYMBOLS 1
7508 ac_cpp='$CPP $CPPFLAGS'
7509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7514 echo "$as_me:$LINENO: checking for shl_load" >&5
7515 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7516 if test "${ac_cv_func_shl_load+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 cat >conftest.$ac_ext <<_ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7527 #define shl_load innocuous_shl_load
7529 /* System header to define __stub macros and hopefully few prototypes,
7530 which can conflict with char shl_load (); below.
7531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7532 <limits.h> exists even on freestanding compilers. */
7535 # include <limits.h>
7537 # include <assert.h>
7542 /* Override any gcc2 internal prototype to avoid an error. */
7547 /* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7550 /* The GNU C library defines this for functions which it implements
7551 to always fail with ENOSYS. Some functions are actually named
7552 something starting with __ and the normal name is an alias. */
7553 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7556 char (*f) () = shl_load;
7565 return f != shl_load;
7570 rm -f conftest.$ac_objext conftest$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>conftest.er1
7574 grep -v '^ *+' conftest.er1 >conftest.err
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try='test -s conftest$ac_exeext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_func_shl_load=yes
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_cv_func_shl_load=no
7599 rm -f conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7602 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7603 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7604 if test $ac_cv_func_shl_load = yes; then
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_SHL_LOAD 1
7611 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7612 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7613 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 ac_check_lib_save_LIBS=$LIBS
7618 cat >conftest.$ac_ext <<_ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7625 /* Override any gcc2 internal prototype to avoid an error. */
7629 /* We use char because int might match the return type of a gcc2
7630 builtin and then its argument prototype would still apply. */
7640 rm -f conftest.$ac_objext conftest$ac_exeext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642 (eval $ac_link) 2>conftest.er1
7644 grep -v '^ *+' conftest.er1 >conftest.err
7646 cat conftest.err >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try='test -z "$ac_c_werror_flag"
7650 || test ! -s conftest.err'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; } &&
7656 { ac_try='test -s conftest$ac_exeext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 ac_cv_lib_dld_shl_load=yes
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7667 ac_cv_lib_dld_shl_load=no
7669 rm -f conftest.err conftest.$ac_objext \
7670 conftest$ac_exeext conftest.$ac_ext
7671 LIBS=$ac_check_lib_save_LIBS
7673 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7674 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7675 if test $ac_cv_lib_dld_shl_load = yes; then
7677 cat >>confdefs.h <<\_ACEOF
7678 #define HAVE_SHL_LOAD 1
7681 LIBADD_DL="$LIBADD_DL -ldld"
7683 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7684 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7685 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 ac_check_lib_save_LIBS=$LIBS
7690 cat >conftest.$ac_ext <<_ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7697 /* Override any gcc2 internal prototype to avoid an error. */
7701 /* We use char because int might match the return type of a gcc2
7702 builtin and then its argument prototype would still apply. */
7712 rm -f conftest.$ac_objext conftest$ac_exeext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7714 (eval $ac_link) 2>conftest.er1
7716 grep -v '^ *+' conftest.er1 >conftest.err
7718 cat conftest.err >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } &&
7721 { ac_try='test -z "$ac_c_werror_flag"
7722 || test ! -s conftest.err'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; } &&
7728 { ac_try='test -s conftest$ac_exeext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 ac_cv_lib_dl_dlopen=yes
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7739 ac_cv_lib_dl_dlopen=no
7741 rm -f conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7743 LIBS=$ac_check_lib_save_LIBS
7745 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7746 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7747 if test $ac_cv_lib_dl_dlopen = yes; then
7749 cat >>confdefs.h <<\_ACEOF
7750 #define HAVE_LIBDL 1
7753 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775 (eval $ac_link) 2>conftest.er1
7777 grep -v '^ *+' conftest.er1 >conftest.err
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } &&
7782 { ac_try='test -z "$ac_c_werror_flag"
7783 || test ! -s conftest.err'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; } &&
7789 { ac_try='test -s conftest$ac_exeext'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7796 cat >>confdefs.h <<\_ACEOF
7797 #define HAVE_LIBDL 1
7799 libltdl_cv_func_dlopen="yes"
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7805 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7806 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 ac_check_lib_save_LIBS=$LIBS
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7818 /* Override any gcc2 internal prototype to avoid an error. */
7822 /* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7833 rm -f conftest.$ac_objext conftest$ac_exeext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835 (eval $ac_link) 2>conftest.er1
7837 grep -v '^ *+' conftest.er1 >conftest.err
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -z "$ac_c_werror_flag"
7843 || test ! -s conftest.err'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest$ac_exeext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_cv_lib_svld_dlopen=yes
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_cv_lib_svld_dlopen=no
7862 rm -f conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7864 LIBS=$ac_check_lib_save_LIBS
7866 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7867 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7868 if test $ac_cv_lib_svld_dlopen = yes; then
7870 cat >>confdefs.h <<\_ACEOF
7871 #define HAVE_LIBDL 1
7874 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7876 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7877 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7878 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 ac_check_lib_save_LIBS=$LIBS
7883 cat >conftest.$ac_ext <<_ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7890 /* Override any gcc2 internal prototype to avoid an error. */
7894 /* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>conftest.er1
7909 grep -v '^ *+' conftest.er1 >conftest.err
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_c_werror_flag"
7915 || test ! -s conftest.err'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 ac_cv_lib_dld_dld_link=yes
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 ac_cv_lib_dld_dld_link=no
7934 rm -f conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 LIBS=$ac_check_lib_save_LIBS
7938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7939 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7940 if test $ac_cv_lib_dld_dld_link = yes; then
7942 cat >>confdefs.h <<\_ACEOF
7946 LIBADD_DL="$LIBADD_DL -ldld"
7948 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7949 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7950 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 cat >conftest.$ac_ext <<_ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7961 #define _dyld_func_lookup innocuous__dyld_func_lookup
7963 /* System header to define __stub macros and hopefully few prototypes,
7964 which can conflict with char _dyld_func_lookup (); below.
7965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7966 <limits.h> exists even on freestanding compilers. */
7969 # include <limits.h>
7971 # include <assert.h>
7974 #undef _dyld_func_lookup
7976 /* Override any gcc2 internal prototype to avoid an error. */
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983 char _dyld_func_lookup ();
7984 /* The GNU C library defines this for functions which it implements
7985 to always fail with ENOSYS. Some functions are actually named
7986 something starting with __ and the normal name is an alias. */
7987 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7990 char (*f) () = _dyld_func_lookup;
7999 return f != _dyld_func_lookup;
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_func__dyld_func_lookup=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_func__dyld_func_lookup=no
8033 rm -f conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8036 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8037 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8038 if test $ac_cv_func__dyld_func_lookup = yes; then
8040 cat >>confdefs.h <<\_ACEOF
8054 rm -f conftest.err conftest.$ac_objext \
8055 conftest$ac_exeext conftest.$ac_ext
8066 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8068 lt_save_LIBS="$LIBS"
8069 LIBS="$LIBS $LIBADD_DL"
8071 for ac_func in dlerror
8073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8074 echo "$as_me:$LINENO: checking for $ac_func" >&5
8075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8076 if eval "test \"\${$as_ac_var+set}\" = set"; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 cat >conftest.$ac_ext <<_ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8087 #define $ac_func innocuous_$ac_func
8089 /* System header to define __stub macros and hopefully few prototypes,
8090 which can conflict with char $ac_func (); below.
8091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8092 <limits.h> exists even on freestanding compilers. */
8095 # include <limits.h>
8097 # include <assert.h>
8102 /* Override any gcc2 internal prototype to avoid an error. */
8107 /* We use char because int might match the return type of a gcc2
8108 builtin and then its argument prototype would still apply. */
8110 /* The GNU C library defines this for functions which it implements
8111 to always fail with ENOSYS. Some functions are actually named
8112 something starting with __ and the normal name is an alias. */
8113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8116 char (*f) () = $ac_func;
8125 return f != $ac_func;
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8132 (eval $ac_link) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest$ac_exeext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 eval "$as_ac_var=yes"
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 eval "$as_ac_var=no"
8159 rm -f conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8164 if test `eval echo '${'$as_ac_var'}'` = yes; then
8165 cat >>confdefs.h <<_ACEOF
8166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8172 LIBS="$lt_save_LIBS"
8175 ac_cpp='$CPP $CPPFLAGS'
8176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8183 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8184 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 ac_cv_sys_symbol_underscore=no
8188 cat > conftest.$ac_ext <<EOF
8189 void nm_test_func(){}
8190 int main(){nm_test_func;return 0;}
8192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193 (eval $ac_compile) 2>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; then
8197 # Now try to grab the symbols.
8198 ac_nlist=conftest.nm
8199 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8200 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && test -s "$ac_nlist"; then
8204 # See whether the symbols have a leading underscore.
8205 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8206 ac_cv_sys_symbol_underscore=yes
8208 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8211 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8215 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8218 echo "configure: failed program was:" >&5
8224 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8225 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8228 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8229 if test x"$libltdl_cv_func_dlopen" = xyes ||
8230 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8231 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8232 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8233 if test "${libltdl_cv_need_uscore+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 libltdl_cv_need_uscore=unknown
8238 LIBS="$LIBS $LIBADD_DL"
8239 if test "$cross_compiling" = yes; then :
8240 libltdl_cv_need_uscore=cross
8242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8243 lt_status=$lt_dlunknown
8244 cat > conftest.$ac_ext <<EOF
8245 #line 8245 "configure"
8246 #include "confdefs.h"
8255 # define LT_DLGLOBAL RTLD_GLOBAL
8258 # define LT_DLGLOBAL DL_GLOBAL
8260 # define LT_DLGLOBAL 0
8264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8265 find out it does not work in some platform. */
8266 #ifndef LT_DLLAZY_OR_NOW
8268 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8271 # define LT_DLLAZY_OR_NOW DL_LAZY
8274 # define LT_DLLAZY_OR_NOW RTLD_NOW
8277 # define LT_DLLAZY_OR_NOW DL_NOW
8279 # define LT_DLLAZY_OR_NOW 0
8287 extern "C" void exit (int);
8290 void fnord() { int i=42;}
8293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8294 int status = $lt_dlunknown;
8298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8300 /* dlclose (self); */
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307 (eval $ac_link) 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8311 (./conftest; exit; ) 2>/dev/null
8314 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8315 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8319 # compilation failed
8328 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8329 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8333 if test x"$libltdl_cv_need_uscore" = xyes; then
8335 cat >>confdefs.h <<\_ACEOF
8336 #define NEED_USCORE 1
8342 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8343 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8344 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 # PORTME does your system automatically load deplibs for dlopen?
8348 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8349 # For now, we just catch OSes we know something about -- in the
8350 # future, we'll try test this programmatically.
8351 libltdl_cv_sys_dlopen_deplibs=unknown
8353 aix3*|aix4.1.*|aix4.2.*)
8354 # Unknown whether this is true for these versions of AIX, but
8355 # we want this `case' here to explicitly catch those versions.
8356 libltdl_cv_sys_dlopen_deplibs=unknown
8359 libltdl_cv_sys_dlopen_deplibs=yes
8362 # Assuming the user has installed a libdl from somewhere, this is true
8363 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8364 libltdl_cv_sys_dlopen_deplibs=yes
8366 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8367 # GNU and its variants, using gnu ld.so (Glibc)
8368 libltdl_cv_sys_dlopen_deplibs=yes
8371 libltdl_cv_sys_dlopen_deplibs=yes
8373 irix[12345]*|irix6.[01]*)
8374 # Catch all versions of IRIX before 6.2, and indicate that we don't
8375 # know how it worked for any of those versions.
8376 libltdl_cv_sys_dlopen_deplibs=unknown
8379 # The case above catches anything before 6.2, and it's known that
8380 # at 6.2 and later dlopen does load deplibs.
8381 libltdl_cv_sys_dlopen_deplibs=yes
8384 libltdl_cv_sys_dlopen_deplibs=yes
8387 libltdl_cv_sys_dlopen_deplibs=yes
8390 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8391 # it did *not* use an RPATH in a shared library to find objects the
8392 # library depends on, so we explictly say `no'.
8393 libltdl_cv_sys_dlopen_deplibs=no
8395 osf5.0|osf5.0a|osf5.1)
8396 # dlopen *does* load deplibs and with the right loader patch applied
8397 # it even uses RPATH in a shared library to search for shared objects
8398 # that the library depends on, but there's no easy way to know if that
8399 # patch is installed. Since this is the case, all we can really
8400 # say is unknown -- it depends on the patch being installed. If
8401 # it is, this changes to `yes'. Without it, it would be `no'.
8402 libltdl_cv_sys_dlopen_deplibs=unknown
8405 # the two cases above should catch all versions of osf <= 5.1. Read
8406 # the comments above for what we know about them.
8407 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8408 # is used to find them so we can finally say `yes'.
8409 libltdl_cv_sys_dlopen_deplibs=yes
8412 libltdl_cv_sys_dlopen_deplibs=yes
8417 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8418 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8419 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8421 cat >>confdefs.h <<\_ACEOF
8422 #define LTDL_DLOPEN_DEPLIBS 1
8428 for ac_header in argz.h
8430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8432 echo "$as_me:$LINENO: checking for $ac_header" >&5
8433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8440 # Is the header compilable?
8441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 #include <$ac_header>
8452 rm -f conftest.$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>conftest.er1
8456 grep -v '^ *+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag"
8462 || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest.$ac_objext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_header_compiler=yes
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 ac_header_compiler=no
8481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8483 echo "${ECHO_T}$ac_header_compiler" >&6
8485 # Is the header present?
8486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8488 cat >conftest.$ac_ext <<_ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 #include <$ac_header>
8496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8499 grep -v '^ *+' conftest.er1 >conftest.err
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } >/dev/null; then
8504 if test -s conftest.err; then
8505 ac_cpp_err=$ac_c_preproc_warn_flag
8506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8513 if test -z "$ac_cpp_err"; then
8514 ac_header_preproc=yes
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ac_header_preproc=no
8521 rm -f conftest.err conftest.$ac_ext
8522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8523 echo "${ECHO_T}$ac_header_preproc" >&6
8525 # So? What about this header?
8526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8532 ac_header_preproc=yes
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8549 ## ----------------------------------- ##
8550 ## Report this to llvmbugs@cs.uiuc.edu ##
8551 ## ----------------------------------- ##
8554 sed "s/^/$as_me: WARNING: /" >&2
8557 echo "$as_me:$LINENO: checking for $ac_header" >&5
8558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 eval "$as_ac_Header=\$ac_header_preproc"
8564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8569 cat >>confdefs.h <<_ACEOF
8570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8578 echo "$as_me:$LINENO: checking for error_t" >&5
8579 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8580 if test "${ac_cv_type_error_t+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 cat >conftest.$ac_ext <<_ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8598 if (sizeof (error_t))
8604 rm -f conftest.$ac_objext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>conftest.er1
8608 grep -v '^ *+' conftest.er1 >conftest.err
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag"
8614 || test ! -s conftest.err'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; } &&
8620 { ac_try='test -s conftest.$ac_objext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 ac_cv_type_error_t=yes
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_cv_type_error_t=no
8633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8635 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8636 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8637 if test $ac_cv_type_error_t = yes; then
8639 cat >>confdefs.h <<_ACEOF
8640 #define HAVE_ERROR_T 1
8646 cat >>confdefs.h <<\_ACEOF
8658 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8661 echo "$as_me:$LINENO: checking for $ac_func" >&5
8662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8663 if eval "test \"\${$as_ac_var+set}\" = set"; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 cat >conftest.$ac_ext <<_ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8674 #define $ac_func innocuous_$ac_func
8676 /* System header to define __stub macros and hopefully few prototypes,
8677 which can conflict with char $ac_func (); below.
8678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8679 <limits.h> exists even on freestanding compilers. */
8682 # include <limits.h>
8684 # include <assert.h>
8689 /* Override any gcc2 internal prototype to avoid an error. */
8694 /* We use char because int might match the return type of a gcc2
8695 builtin and then its argument prototype would still apply. */
8697 /* The GNU C library defines this for functions which it implements
8698 to always fail with ENOSYS. Some functions are actually named
8699 something starting with __ and the normal name is an alias. */
8700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8703 char (*f) () = $ac_func;
8712 return f != $ac_func;
8717 rm -f conftest.$ac_objext conftest$ac_exeext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719 (eval $ac_link) 2>conftest.er1
8721 grep -v '^ *+' conftest.er1 >conftest.err
8723 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try='test -z "$ac_c_werror_flag"
8727 || test ! -s conftest.err'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; } &&
8733 { ac_try='test -s conftest$ac_exeext'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 eval "$as_ac_var=yes"
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8744 eval "$as_ac_var=no"
8746 rm -f conftest.err conftest.$ac_objext \
8747 conftest$ac_exeext conftest.$ac_ext
8749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8751 if test `eval echo '${'$as_ac_var'}'` = yes; then
8752 cat >>confdefs.h <<_ACEOF
8753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8786 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8791 echo "$as_me:$LINENO: checking for $ac_header" >&5
8792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8799 # Is the header compilable?
8800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8802 cat >conftest.$ac_ext <<_ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8808 $ac_includes_default
8809 #include <$ac_header>
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813 (eval $ac_compile) 2>conftest.er1
8815 grep -v '^ *+' conftest.er1 >conftest.err
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -z "$ac_c_werror_flag"
8821 || test ! -s conftest.err'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest.$ac_objext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_header_compiler=yes
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 ac_header_compiler=no
8840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8842 echo "${ECHO_T}$ac_header_compiler" >&6
8844 # Is the header present?
8845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8847 cat >conftest.$ac_ext <<_ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853 #include <$ac_header>
8855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8858 grep -v '^ *+' conftest.er1 >conftest.err
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } >/dev/null; then
8863 if test -s conftest.err; then
8864 ac_cpp_err=$ac_c_preproc_warn_flag
8865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8872 if test -z "$ac_cpp_err"; then
8873 ac_header_preproc=yes
8875 echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8878 ac_header_preproc=no
8880 rm -f conftest.err conftest.$ac_ext
8881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8882 echo "${ECHO_T}$ac_header_preproc" >&6
8884 # So? What about this header?
8885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8891 ac_header_preproc=yes
8894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8908 ## ----------------------------------- ##
8909 ## Report this to llvmbugs@cs.uiuc.edu ##
8910 ## ----------------------------------- ##
8913 sed "s/^/$as_me: WARNING: /" >&2
8916 echo "$as_me:$LINENO: checking for $ac_header" >&5
8917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 eval "$as_ac_Header=\$ac_header_preproc"
8923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928 cat >>confdefs.h <<_ACEOF
8929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8940 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo "$as_me:$LINENO: checking for $ac_header" >&5
8945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8952 # Is the header compilable?
8953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 $ac_includes_default
8962 #include <$ac_header>
8964 rm -f conftest.$ac_objext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966 (eval $ac_compile) 2>conftest.er1
8968 grep -v '^ *+' conftest.er1 >conftest.err
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest.$ac_objext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_header_compiler=yes
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 ac_header_compiler=no
8993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8995 echo "${ECHO_T}$ac_header_compiler" >&6
8997 # Is the header present?
8998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9000 cat >conftest.$ac_ext <<_ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9006 #include <$ac_header>
9008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9011 grep -v '^ *+' conftest.er1 >conftest.err
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } >/dev/null; then
9016 if test -s conftest.err; then
9017 ac_cpp_err=$ac_c_preproc_warn_flag
9018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9025 if test -z "$ac_cpp_err"; then
9026 ac_header_preproc=yes
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_header_preproc=no
9033 rm -f conftest.err conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035 echo "${ECHO_T}$ac_header_preproc" >&6
9037 # So? What about this header?
9038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9044 ac_header_preproc=yes
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9061 ## ----------------------------------- ##
9062 ## Report this to llvmbugs@cs.uiuc.edu ##
9063 ## ----------------------------------- ##
9066 sed "s/^/$as_me: WARNING: /" >&2
9069 echo "$as_me:$LINENO: checking for $ac_header" >&5
9070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 eval "$as_ac_Header=\$ac_header_preproc"
9076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9081 cat >>confdefs.h <<_ACEOF
9082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9091 for ac_header in string.h strings.h
9093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9095 echo "$as_me:$LINENO: checking for $ac_header" >&5
9096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9103 # Is the header compilable?
9104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9106 cat >conftest.$ac_ext <<_ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 $ac_includes_default
9113 #include <$ac_header>
9115 rm -f conftest.$ac_objext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9117 (eval $ac_compile) 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_header_compiler=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 ac_header_compiler=no
9144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9146 echo "${ECHO_T}$ac_header_compiler" >&6
9148 # Is the header present?
9149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9151 cat >conftest.$ac_ext <<_ACEOF
9154 cat confdefs.h >>conftest.$ac_ext
9155 cat >>conftest.$ac_ext <<_ACEOF
9156 /* end confdefs.h. */
9157 #include <$ac_header>
9159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9162 grep -v '^ *+' conftest.er1 >conftest.err
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } >/dev/null; then
9167 if test -s conftest.err; then
9168 ac_cpp_err=$ac_c_preproc_warn_flag
9169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9176 if test -z "$ac_cpp_err"; then
9177 ac_header_preproc=yes
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_header_preproc=no
9184 rm -f conftest.err conftest.$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186 echo "${ECHO_T}$ac_header_preproc" >&6
9188 # So? What about this header?
9189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9195 ac_header_preproc=yes
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9212 ## ----------------------------------- ##
9213 ## Report this to llvmbugs@cs.uiuc.edu ##
9214 ## ----------------------------------- ##
9217 sed "s/^/$as_me: WARNING: /" >&2
9220 echo "$as_me:$LINENO: checking for $ac_header" >&5
9221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 eval "$as_ac_Header=\$ac_header_preproc"
9227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9232 cat >>confdefs.h <<_ACEOF
9233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9243 for ac_func in strchr index
9245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9246 echo "$as_me:$LINENO: checking for $ac_func" >&5
9247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9248 if eval "test \"\${$as_ac_var+set}\" = set"; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9259 #define $ac_func innocuous_$ac_func
9261 /* System header to define __stub macros and hopefully few prototypes,
9262 which can conflict with char $ac_func (); below.
9263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9264 <limits.h> exists even on freestanding compilers. */
9267 # include <limits.h>
9269 # include <assert.h>
9274 /* Override any gcc2 internal prototype to avoid an error. */
9279 /* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9282 /* The GNU C library defines this for functions which it implements
9283 to always fail with ENOSYS. Some functions are actually named
9284 something starting with __ and the normal name is an alias. */
9285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9288 char (*f) () = $ac_func;
9297 return f != $ac_func;
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>conftest.er1
9306 grep -v '^ *+' conftest.er1 >conftest.err
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try='test -s conftest$ac_exeext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 eval "$as_ac_var=yes"
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 eval "$as_ac_var=no"
9331 rm -f conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9336 if test `eval echo '${'$as_ac_var'}'` = yes; then
9337 cat >>confdefs.h <<_ACEOF
9338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9346 for ac_func in strrchr rindex
9348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9349 echo "$as_me:$LINENO: checking for $ac_func" >&5
9350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9351 if eval "test \"\${$as_ac_var+set}\" = set"; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 cat >conftest.$ac_ext <<_ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9362 #define $ac_func innocuous_$ac_func
9364 /* System header to define __stub macros and hopefully few prototypes,
9365 which can conflict with char $ac_func (); below.
9366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9367 <limits.h> exists even on freestanding compilers. */
9370 # include <limits.h>
9372 # include <assert.h>
9377 /* Override any gcc2 internal prototype to avoid an error. */
9382 /* We use char because int might match the return type of a gcc2
9383 builtin and then its argument prototype would still apply. */
9385 /* The GNU C library defines this for functions which it implements
9386 to always fail with ENOSYS. Some functions are actually named
9387 something starting with __ and the normal name is an alias. */
9388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9391 char (*f) () = $ac_func;
9400 return f != $ac_func;
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>conftest.er1
9409 grep -v '^ *+' conftest.er1 >conftest.err
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 eval "$as_ac_var=yes"
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 eval "$as_ac_var=no"
9434 rm -f conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
9437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9439 if test `eval echo '${'$as_ac_var'}'` = yes; then
9440 cat >>confdefs.h <<_ACEOF
9441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9449 for ac_func in memcpy bcopy
9451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9452 echo "$as_me:$LINENO: checking for $ac_func" >&5
9453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9454 if eval "test \"\${$as_ac_var+set}\" = set"; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9465 #define $ac_func innocuous_$ac_func
9467 /* System header to define __stub macros and hopefully few prototypes,
9468 which can conflict with char $ac_func (); below.
9469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9470 <limits.h> exists even on freestanding compilers. */
9473 # include <limits.h>
9475 # include <assert.h>
9480 /* Override any gcc2 internal prototype to avoid an error. */
9485 /* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9488 /* The GNU C library defines this for functions which it implements
9489 to always fail with ENOSYS. Some functions are actually named
9490 something starting with __ and the normal name is an alias. */
9491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9494 char (*f) () = $ac_func;
9503 return f != $ac_func;
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9510 (eval $ac_link) 2>conftest.er1
9512 grep -v '^ *+' conftest.er1 >conftest.err
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -z "$ac_c_werror_flag"
9518 || test ! -s conftest.err'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; } &&
9524 { ac_try='test -s conftest$ac_exeext'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 eval "$as_ac_var=yes"
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9535 eval "$as_ac_var=no"
9537 rm -f conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9542 if test `eval echo '${'$as_ac_var'}'` = yes; then
9543 cat >>confdefs.h <<_ACEOF
9544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9552 for ac_func in memmove strcmp
9554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9555 echo "$as_me:$LINENO: checking for $ac_func" >&5
9556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9557 if eval "test \"\${$as_ac_var+set}\" = set"; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9568 #define $ac_func innocuous_$ac_func
9570 /* System header to define __stub macros and hopefully few prototypes,
9571 which can conflict with char $ac_func (); below.
9572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9573 <limits.h> exists even on freestanding compilers. */
9576 # include <limits.h>
9578 # include <assert.h>
9583 /* Override any gcc2 internal prototype to avoid an error. */
9588 /* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */
9591 /* The GNU C library defines this for functions which it implements
9592 to always fail with ENOSYS. Some functions are actually named
9593 something starting with __ and the normal name is an alias. */
9594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9597 char (*f) () = $ac_func;
9606 return f != $ac_func;
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613 (eval $ac_link) 2>conftest.er1
9615 grep -v '^ *+' conftest.er1 >conftest.err
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -z "$ac_c_werror_flag"
9621 || test ! -s conftest.err'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 eval "$as_ac_var=yes"
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 eval "$as_ac_var=no"
9640 rm -f conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9645 if test `eval echo '${'$as_ac_var'}'` = yes; then
9646 cat >>confdefs.h <<_ACEOF
9647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9656 for ac_func in closedir opendir readdir
9658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9659 echo "$as_me:$LINENO: checking for $ac_func" >&5
9660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9661 if eval "test \"\${$as_ac_var+set}\" = set"; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 cat >conftest.$ac_ext <<_ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9672 #define $ac_func innocuous_$ac_func
9674 /* System header to define __stub macros and hopefully few prototypes,
9675 which can conflict with char $ac_func (); below.
9676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9677 <limits.h> exists even on freestanding compilers. */
9680 # include <limits.h>
9682 # include <assert.h>
9687 /* Override any gcc2 internal prototype to avoid an error. */
9692 /* We use char because int might match the return type of a gcc2
9693 builtin and then its argument prototype would still apply. */
9695 /* The GNU C library defines this for functions which it implements
9696 to always fail with ENOSYS. Some functions are actually named
9697 something starting with __ and the normal name is an alias. */
9698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9701 char (*f) () = $ac_func;
9710 return f != $ac_func;
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>conftest.er1
9719 grep -v '^ *+' conftest.er1 >conftest.err
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -z "$ac_c_werror_flag"
9725 || test ! -s conftest.err'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try='test -s conftest$ac_exeext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 eval "$as_ac_var=yes"
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 eval "$as_ac_var=no"
9744 rm -f conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9749 if test `eval echo '${'$as_ac_var'}'` = yes; then
9750 cat >>confdefs.h <<_ACEOF
9751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9758 # Check whether --enable-shared or --disable-shared was given.
9759 if test "${enable_shared+set}" = set; then
9760 enableval="$enable_shared"
9761 p=${PACKAGE-default}
9763 yes) enable_shared=yes ;;
9764 no) enable_shared=no ;;
9767 # Look at the argument we got. We use all the common list separators.
9768 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9769 for pkg in $enableval; do
9771 if test "X$pkg" = "X$p"; then
9782 # Check whether --enable-static or --disable-static was given.
9783 if test "${enable_static+set}" = set; then
9784 enableval="$enable_static"
9785 p=${PACKAGE-default}
9787 yes) enable_static=yes ;;
9788 no) enable_static=no ;;
9791 # Look at the argument we got. We use all the common list separators.
9792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9793 for pkg in $enableval; do
9795 if test "X$pkg" = "X$p"; then
9806 # Check whether --enable-fast-install or --disable-fast-install was given.
9807 if test "${enable_fast_install+set}" = set; then
9808 enableval="$enable_fast_install"
9809 p=${PACKAGE-default}
9811 yes) enable_fast_install=yes ;;
9812 no) enable_fast_install=no ;;
9814 enable_fast_install=no
9815 # Look at the argument we got. We use all the common list separators.
9816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9817 for pkg in $enableval; do
9819 if test "X$pkg" = "X$p"; then
9820 enable_fast_install=yes
9827 enable_fast_install=yes
9830 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9831 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9832 if test "${lt_cv_path_SED+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 # Loop through the user's path and test for sed and gsed.
9836 # Then use that list of sed's as ones to test for truncation.
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841 test -z "$as_dir" && as_dir=.
9842 for lt_ac_prog in sed gsed; do
9843 for ac_exec_ext in '' $ac_executable_extensions; do
9844 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9845 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9852 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9853 # along with /bin/sed that truncates output.
9854 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9855 test ! -f $lt_ac_sed && break
9856 cat /dev/null > conftest.in
9858 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9859 # Check for GNU sed and select it if it is found.
9860 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9861 lt_cv_path_SED=$lt_ac_sed
9865 cat conftest.in conftest.in >conftest.tmp
9866 mv conftest.tmp conftest.in
9867 cp conftest.in conftest.nl
9869 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9870 cmp -s conftest.out conftest.nl || break
9871 # 10000 chars as input seems more than enough
9872 test $lt_ac_count -gt 10 && break
9873 lt_ac_count=`expr $lt_ac_count + 1`
9874 if test $lt_ac_count -gt $lt_ac_max; then
9875 lt_ac_max=$lt_ac_count
9876 lt_cv_path_SED=$lt_ac_sed
9884 echo "$as_me:$LINENO: result: $SED" >&5
9885 echo "${ECHO_T}$SED" >&6
9888 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9889 if test "${with_gnu_ld+set}" = set; then
9890 withval="$with_gnu_ld"
9891 test "$withval" = no || with_gnu_ld=yes
9896 if test "$GCC" = yes; then
9897 # Check if gcc -print-prog-name=ld gives a path.
9898 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9899 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9902 # gcc leaves a trailing carriage return which upsets mingw
9903 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9905 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9908 # Accept absolute paths.
9910 re_direlt='/[^/][^/]*/\.\./'
9911 # Canonicalize the pathname of ld
9912 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9913 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9914 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9916 test -z "$LD" && LD="$ac_prog"
9919 # If it fails, then pretend we aren't using GCC.
9923 # If it is relative, then search for the first ld in PATH.
9927 elif test "$with_gnu_ld" = yes; then
9928 echo "$as_me:$LINENO: checking for GNU ld" >&5
9929 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9931 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9932 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9934 if test "${lt_cv_path_LD+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 if test -z "$LD"; then
9938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9939 for ac_dir in $PATH; do
9941 test -z "$ac_dir" && ac_dir=.
9942 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9943 lt_cv_path_LD="$ac_dir/$ac_prog"
9944 # Check to see if the program is GNU ld. I'd rather use --version,
9945 # but apparently some GNU ld's only accept -v.
9946 # Break only if it was the GNU/non-GNU ld that we prefer.
9947 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9948 *GNU* | *'with BFD'*)
9949 test "$with_gnu_ld" != no && break
9952 test "$with_gnu_ld" != yes && break
9959 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9964 if test -n "$LD"; then
9965 echo "$as_me:$LINENO: result: $LD" >&5
9966 echo "${ECHO_T}$LD" >&6
9968 echo "$as_me:$LINENO: result: no" >&5
9969 echo "${ECHO_T}no" >&6
9971 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9972 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9973 { (exit 1); exit 1; }; }
9974 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9975 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9976 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9980 case `$LD -v 2>&1 </dev/null` in
9981 *GNU* | *'with BFD'*)
9982 lt_cv_prog_gnu_ld=yes
9985 lt_cv_prog_gnu_ld=no
9989 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9990 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9991 with_gnu_ld=$lt_cv_prog_gnu_ld
9994 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9995 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9996 if test "${lt_cv_ld_reload_flag+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 lt_cv_ld_reload_flag='-r'
10001 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10002 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10003 reload_flag=$lt_cv_ld_reload_flag
10004 case $reload_flag in
10006 *) reload_flag=" $reload_flag" ;;
10008 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10011 if test "$GCC" = yes; then
10012 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10019 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10020 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10021 if test "${lt_cv_deplibs_check_method+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 lt_cv_file_magic_cmd='$MAGIC_CMD'
10025 lt_cv_file_magic_test_file=
10026 lt_cv_deplibs_check_method='unknown'
10027 # Need to set the preceding variable on all platforms that support
10028 # interlibrary dependencies.
10029 # 'none' -- dependencies not supported.
10030 # `unknown' -- same as none, but documents that we really don't know.
10031 # 'pass_all' -- all dependencies passed with no checks.
10032 # 'test_compile' -- check by making test program.
10033 # 'file_magic [[regex]]' -- check by looking for files in library path
10034 # which responds to the $file_magic_cmd with a given extended regex.
10035 # If you have `file' or equivalent on your system and you're not sure
10036 # whether `pass_all' will *always* work, you probably want this one.
10040 lt_cv_deplibs_check_method=pass_all
10044 lt_cv_deplibs_check_method=pass_all
10048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10049 lt_cv_file_magic_cmd='/usr/bin/file -L'
10050 lt_cv_file_magic_test_file=/shlib/libc.so
10054 # func_win32_libid is a shell function defined in ltmain.sh
10055 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10056 lt_cv_file_magic_cmd='func_win32_libid'
10060 # Base MSYS/MinGW do not provide the 'file' command needed by
10061 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10062 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10063 lt_cv_file_magic_cmd='$OBJDUMP -f'
10066 darwin* | rhapsody*)
10067 lt_cv_deplibs_check_method=pass_all
10070 freebsd* | kfreebsd*-gnu)
10071 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10074 # Not sure whether the presence of OpenBSD here was a mistake.
10075 # Let's accept both of them until this is cleared up.
10076 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10077 lt_cv_file_magic_cmd=/usr/bin/file
10078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10082 lt_cv_deplibs_check_method=pass_all
10087 lt_cv_deplibs_check_method=pass_all
10090 hpux10.20* | hpux11*)
10091 lt_cv_file_magic_cmd=/usr/bin/file
10092 case "$host_cpu" in
10094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10095 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10098 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]'
10099 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10103 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10108 irix5* | irix6* | nonstopux*)
10110 *-32|*"-32 ") libmagic=32-bit;;
10111 *-n32|*"-n32 ") libmagic=N32;;
10112 *-64|*"-64 ") libmagic=64-bit;;
10113 *) libmagic=never-match;;
10115 lt_cv_deplibs_check_method=pass_all
10118 # This must be Linux ELF.
10120 lt_cv_deplibs_check_method=pass_all
10124 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10133 lt_cv_file_magic_cmd=/usr/bin/file
10134 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10138 lt_cv_deplibs_check_method=unknown
10142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10149 osf3* | osf4* | osf5*)
10150 lt_cv_deplibs_check_method=pass_all
10154 lt_cv_deplibs_check_method=pass_all
10158 lt_cv_deplibs_check_method=pass_all
10161 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10162 case $host_vendor in
10164 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]'
10165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10168 lt_cv_deplibs_check_method=pass_all
10171 lt_cv_file_magic_cmd='/bin/file'
10172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10175 lt_cv_file_magic_cmd='/bin/file'
10176 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10177 lt_cv_file_magic_test_file=/lib/libc.so
10180 lt_cv_deplibs_check_method=pass_all
10185 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10186 lt_cv_deplibs_check_method=pass_all
10191 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10192 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10193 file_magic_cmd=$lt_cv_file_magic_cmd
10194 deplibs_check_method=$lt_cv_deplibs_check_method
10195 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10199 # If no C compiler was specified, use CC.
10202 # Allow CC to be a program name with arguments.
10205 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10206 if test "${enable_libtool_lock+set}" = set; then
10207 enableval="$enable_libtool_lock"
10210 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10212 # Some flags need to be propagated to the compiler or linker for good
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.$ac_objext` in
10225 HPUX_IA64_MODE="32"
10228 HPUX_IA64_MODE="64"
10235 # Find out which ABI we are using.
10236 echo '#line 10236 "configure"' > conftest.$ac_ext
10237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10238 (eval $ac_compile) 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; then
10242 if test "$lt_cv_prog_gnu_ld" = yes; then
10243 case `/usr/bin/file conftest.$ac_objext` in
10245 LD="${LD-ld} -melf32bsmip"
10248 LD="${LD-ld} -melf32bmipn32"
10251 LD="${LD-ld} -melf64bmip"
10255 case `/usr/bin/file conftest.$ac_objext` in
10271 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10272 # Find out which ABI we are using.
10273 echo 'int i;' > conftest.$ac_ext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275 (eval $ac_compile) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; then
10279 case "`/usr/bin/file conftest.o`" in
10283 LD="${LD-ld} -m elf_i386"
10285 ppc64-*linux*|powerpc64-*linux*)
10286 LD="${LD-ld} -m elf32ppclinux"
10289 LD="${LD-ld} -m elf_s390"
10292 LD="${LD-ld} -m elf32_sparc"
10299 LD="${LD-ld} -m elf_x86_64"
10301 ppc*-*linux*|powerpc*-*linux*)
10302 LD="${LD-ld} -m elf64ppc"
10305 LD="${LD-ld} -m elf64_s390"
10308 LD="${LD-ld} -m elf64_sparc"
10318 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10319 SAVE_CFLAGS="$CFLAGS"
10320 CFLAGS="$CFLAGS -belf"
10321 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10322 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10323 if test "${lt_cv_cc_needs_belf+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 ac_cpp='$CPP $CPPFLAGS'
10328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10332 cat >conftest.$ac_ext <<_ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10340 rm -f conftest.$ac_objext conftest$ac_exeext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10342 (eval $ac_link) 2>conftest.er1
10344 grep -v '^ *+' conftest.er1 >conftest.err
10346 cat conftest.err >&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -z "$ac_c_werror_flag"
10350 || test ! -s conftest.err'
10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352 (eval $ac_try) 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; } &&
10356 { ac_try='test -s conftest$ac_exeext'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; }; then
10362 lt_cv_cc_needs_belf=yes
10364 echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10367 lt_cv_cc_needs_belf=no
10369 rm -f conftest.err conftest.$ac_objext \
10370 conftest$ac_exeext conftest.$ac_ext
10372 ac_cpp='$CPP $CPPFLAGS'
10373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10378 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10379 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10380 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10381 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10382 CFLAGS="$SAVE_CFLAGS"
10388 need_locks="$enable_libtool_lock"
10393 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10394 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10395 (test "X$CXX" != "Xg++"))) ; then
10397 ac_cpp='$CXXCPP $CPPFLAGS'
10398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10401 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10402 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10403 if test -z "$CXXCPP"; then
10404 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 # Double quotes because CXXCPP needs to be expanded
10408 for CXXCPP in "$CXX -E" "/lib/cpp"
10410 ac_preproc_ok=false
10411 for ac_cxx_preproc_warn_flag in '' yes
10413 # Use a header file that comes with gcc, so configuring glibc
10414 # with a fresh cross-compiler works.
10415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10416 # <limits.h> exists even on freestanding compilers.
10417 # On the NeXT, cc -E runs the code through the compiler's parser,
10418 # not just through cpp. "Syntax error" is here to catch this case.
10419 cat >conftest.$ac_ext <<_ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10426 # include <limits.h>
10428 # include <assert.h>
10432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10435 grep -v '^ *+' conftest.er1 >conftest.err
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } >/dev/null; then
10440 if test -s conftest.err; then
10441 ac_cpp_err=$ac_cxx_preproc_warn_flag
10442 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10449 if test -z "$ac_cpp_err"; then
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10455 # Broken: fails on valid input.
10458 rm -f conftest.err conftest.$ac_ext
10460 # OK, works on sane cases. Now check whether non-existent headers
10461 # can be detected and how.
10462 cat >conftest.$ac_ext <<_ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 #include <ac_nonexistent.h>
10470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10473 grep -v '^ *+' conftest.er1 >conftest.err
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } >/dev/null; then
10478 if test -s conftest.err; then
10479 ac_cpp_err=$ac_cxx_preproc_warn_flag
10480 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10487 if test -z "$ac_cpp_err"; then
10488 # Broken: success on invalid input.
10491 echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10494 # Passes both tests.
10498 rm -f conftest.err conftest.$ac_ext
10501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10502 rm -f conftest.err conftest.$ac_ext
10503 if $ac_preproc_ok; then
10508 ac_cv_prog_CXXCPP=$CXXCPP
10511 CXXCPP=$ac_cv_prog_CXXCPP
10513 ac_cv_prog_CXXCPP=$CXXCPP
10515 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10516 echo "${ECHO_T}$CXXCPP" >&6
10517 ac_preproc_ok=false
10518 for ac_cxx_preproc_warn_flag in '' yes
10520 # Use a header file that comes with gcc, so configuring glibc
10521 # with a fresh cross-compiler works.
10522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10523 # <limits.h> exists even on freestanding compilers.
10524 # On the NeXT, cc -E runs the code through the compiler's parser,
10525 # not just through cpp. "Syntax error" is here to catch this case.
10526 cat >conftest.$ac_ext <<_ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10533 # include <limits.h>
10535 # include <assert.h>
10539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10542 grep -v '^ *+' conftest.er1 >conftest.err
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } >/dev/null; then
10547 if test -s conftest.err; then
10548 ac_cpp_err=$ac_cxx_preproc_warn_flag
10549 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10556 if test -z "$ac_cpp_err"; then
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 # Broken: fails on valid input.
10565 rm -f conftest.err conftest.$ac_ext
10567 # OK, works on sane cases. Now check whether non-existent headers
10568 # can be detected and how.
10569 cat >conftest.$ac_ext <<_ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 #include <ac_nonexistent.h>
10577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10580 grep -v '^ *+' conftest.er1 >conftest.err
10582 cat conftest.err >&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } >/dev/null; then
10585 if test -s conftest.err; then
10586 ac_cpp_err=$ac_cxx_preproc_warn_flag
10587 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10594 if test -z "$ac_cpp_err"; then
10595 # Broken: success on invalid input.
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 # Passes both tests.
10605 rm -f conftest.err conftest.$ac_ext
10608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10609 rm -f conftest.err conftest.$ac_ext
10610 if $ac_preproc_ok; then
10613 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10614 See \`config.log' for more details." >&5
10615 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10616 See \`config.log' for more details." >&2;}
10617 { (exit 1); exit 1; }; }
10621 ac_cpp='$CXXCPP $CPPFLAGS'
10622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10630 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10631 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10632 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10633 if test -n "$ac_tool_prefix"; then
10634 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10638 echo "$as_me:$LINENO: checking for $ac_word" >&5
10639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10640 if test "${ac_cv_prog_F77+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 if test -n "$F77"; then
10644 ac_cv_prog_F77="$F77" # Let the user override the test.
10646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647 for as_dir in $PATH
10650 test -z "$as_dir" && as_dir=.
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10653 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 F77=$ac_cv_prog_F77
10663 if test -n "$F77"; then
10664 echo "$as_me:$LINENO: result: $F77" >&5
10665 echo "${ECHO_T}$F77" >&6
10667 echo "$as_me:$LINENO: result: no" >&5
10668 echo "${ECHO_T}no" >&6
10671 test -n "$F77" && break
10674 if test -z "$F77"; then
10676 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10678 # Extract the first word of "$ac_prog", so it can be a program name with args.
10679 set dummy $ac_prog; ac_word=$2
10680 echo "$as_me:$LINENO: checking for $ac_word" >&5
10681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10682 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 if test -n "$ac_ct_F77"; then
10686 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10695 ac_cv_prog_ac_ct_F77="$ac_prog"
10696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10704 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10705 if test -n "$ac_ct_F77"; then
10706 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10707 echo "${ECHO_T}$ac_ct_F77" >&6
10709 echo "$as_me:$LINENO: result: no" >&5
10710 echo "${ECHO_T}no" >&6
10713 test -n "$ac_ct_F77" && break
10720 # Provide some information about the compiler.
10721 echo "$as_me:10721:" \
10722 "checking for Fortran 77 compiler version" >&5
10723 ac_compiler=`set X $ac_compile; echo $2`
10724 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10725 (eval $ac_compiler --version </dev/null >&5) 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }
10729 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10730 (eval $ac_compiler -v </dev/null >&5) 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }
10734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10735 (eval $ac_compiler -V </dev/null >&5) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }
10741 # If we don't use `.F' as extension, the preprocessor is not run on the
10742 # input file. (Note that this only needs to work for GNU compilers.)
10743 ac_save_ext=$ac_ext
10745 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10746 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10747 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 cat >conftest.$ac_ext <<_ACEOF
10758 rm -f conftest.$ac_objext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10760 (eval $ac_compile) 2>conftest.er1
10762 grep -v '^ *+' conftest.er1 >conftest.err
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } &&
10767 { ac_try='test -z "$ac_f77_werror_flag"
10768 || test ! -s conftest.err'
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); }; } &&
10774 { ac_try='test -s conftest.$ac_objext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_compiler_gnu=yes
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10788 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10791 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10792 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10793 ac_ext=$ac_save_ext
10794 ac_test_FFLAGS=${FFLAGS+set}
10795 ac_save_FFLAGS=$FFLAGS
10797 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10798 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10799 if test "${ac_cv_prog_f77_g+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 cat >conftest.$ac_ext <<_ACEOF
10808 rm -f conftest.$ac_objext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810 (eval $ac_compile) 2>conftest.er1
10812 grep -v '^ *+' conftest.er1 >conftest.err
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_f77_werror_flag"
10818 || test ! -s conftest.err'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest.$ac_objext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_prog_f77_g=yes
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 ac_cv_prog_f77_g=no
10837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10840 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10841 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10842 if test "$ac_test_FFLAGS" = set; then
10843 FFLAGS=$ac_save_FFLAGS
10844 elif test $ac_cv_prog_f77_g = yes; then
10845 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10851 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10858 G77=`test $ac_compiler_gnu = yes && echo yes`
10860 ac_cpp='$CPP $CPPFLAGS'
10861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10867 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10869 # find the maximum length of command line arguments
10870 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10871 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10872 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 # On DJGPP, this test can blow up pretty badly due to problems in libc
10881 # (any single argument exceeding 2000 bytes causes a buffer overrun
10882 # during glob expansion). Even if it were fixed, the result of this
10883 # check would be larger than it should be.
10884 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10888 # Under GNU Hurd, this test is not required because there is
10889 # no limit to the length of command line arguments.
10890 # Libtool will interpret -1 as no limit whatsoever
10891 lt_cv_sys_max_cmd_len=-1;
10895 # On Win9x/ME, this test blows up -- it succeeds, but takes
10896 # about 5 minutes as the teststring grows exponentially.
10897 # Worse, since 9x/ME are not pre-emptively multitasking,
10898 # you end up with a "frozen" computer, even though with patience
10899 # the test eventually succeeds (with a max line length of 256k).
10900 # Instead, let's just punt: use the minimum linelength reported by
10901 # all of the supported platforms: 8192 (on NT/2K/XP).
10902 lt_cv_sys_max_cmd_len=8192;
10906 # On AmigaOS with pdksh, this test takes hours, literally.
10907 # So we just punt and use a minimum line length of 8192.
10908 lt_cv_sys_max_cmd_len=8192;
10911 netbsd* | freebsd* | openbsd* | darwin* )
10912 # This has been around since 386BSD, at least. Likely further.
10913 if test -x /sbin/sysctl; then
10914 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10915 elif test -x /usr/sbin/sysctl; then
10916 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10918 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10920 # And add a safety zone
10921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10925 # If test is not a shell built-in, we'll probably end up computing a
10926 # maximum length that is only half of the actual maximum length, but
10928 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10929 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10930 = "XX$teststring") >/dev/null 2>&1 &&
10931 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10932 lt_cv_sys_max_cmd_len=$new_result &&
10933 test $i != 17 # 1/2 MB should be enough
10936 teststring=$teststring$teststring
10939 # Add a significant safety factor because C++ compilers can tack on massive
10940 # amounts of additional arguments before passing them to the linker.
10941 # It appears as though 1/2 is a usable value.
10942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10948 if test -n $lt_cv_sys_max_cmd_len ; then
10949 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10950 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10952 echo "$as_me:$LINENO: result: none" >&5
10953 echo "${ECHO_T}none" >&6
10959 # Check for command to grab the raw symbol name followed by C symbol from nm.
10960 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10961 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10962 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 # These are sane defaults that work on at least a few old systems.
10967 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10969 # Character class describing NM global symbol codes.
10970 symcode='[BCDEGRST]'
10972 # Regexp to match symbols that can be accessed directly from C.
10973 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10975 # Transform the above into a raw symbol and a C symbol.
10976 symxfrm='\1 \2\3 \3'
10978 # Transform an extracted symbol line into a proper C declaration
10979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10981 # Transform an extracted symbol line into symbol name and symbol address
10982 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10984 # Define system-specific variables.
10989 cygwin* | mingw* | pw32*)
10990 symcode='[ABCDGISTW]'
10992 hpux*) # Its linker distinguishes data from code symbols
10993 if test "$host_cpu" = ia64; then
10994 symcode='[ABCDEGRST]'
10996 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10997 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'"
11000 if test "$host_cpu" = ia64; then
11001 symcode='[ABCDGIRSTW]'
11002 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11003 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'"
11006 irix* | nonstopux*)
11007 symcode='[BCDEGRST]'
11010 symcode='[BCDEGQRST]'
11020 # Handle CRLF in mingw tool chain
11024 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11028 # If we're using GNU nm, then use its standard symbol codes.
11029 case `$NM -V 2>&1` in
11030 *GNU* | *'with BFD'*)
11031 symcode='[ABCDGIRSTW]' ;;
11034 # Try without a prefix undercore, then with it.
11035 for ac_symprfx in "" "_"; do
11037 # Write the raw and C identifiers.
11038 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11040 # Check to see that the pipe works correctly.
11044 cat > conftest.$ac_ext <<EOF
11049 void nm_test_func(){}
11053 int main(){nm_test_var='a';nm_test_func();return(0);}
11056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; then
11061 # Now try to grab the symbols.
11063 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11064 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && test -s "$nlist"; then
11068 # Try sorting and uniquifying the output.
11069 if sort "$nlist" | uniq > "$nlist"T; then
11070 mv -f "$nlist"T "$nlist"
11075 # Make sure that we snagged all the symbols we need.
11076 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11077 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11078 cat <<EOF > conftest.$ac_ext
11084 # Now generate the symbol file.
11085 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11087 cat <<EOF >> conftest.$ac_ext
11088 #if defined (__STDC__) && __STDC__
11089 # define lt_ptr_t void *
11091 # define lt_ptr_t char *
11095 /* The mapping between symbol names and symbols. */
11100 lt_preloaded_symbols[] =
11103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11104 cat <<\EOF >> conftest.$ac_ext
11112 # Now try linking the two files.
11113 mv conftest.$ac_objext conftstm.$ac_objext
11114 lt_save_LIBS="$LIBS"
11115 lt_save_CFLAGS="$CFLAGS"
11116 LIBS="conftstm.$ac_objext"
11117 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119 (eval $ac_link) 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11125 LIBS="$lt_save_LIBS"
11126 CFLAGS="$lt_save_CFLAGS"
11128 echo "cannot find nm_test_func in $nlist" >&5
11131 echo "cannot find nm_test_var in $nlist" >&5
11134 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11137 echo "$progname: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11140 rm -f conftest* conftst*
11142 # Do not use the global_symbol_pipe unless it works.
11143 if test "$pipe_works" = yes; then
11146 lt_cv_sys_global_symbol_pipe=
11152 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11153 lt_cv_sys_global_symbol_to_cdecl=
11155 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11156 echo "$as_me:$LINENO: result: failed" >&5
11157 echo "${ECHO_T}failed" >&6
11159 echo "$as_me:$LINENO: result: ok" >&5
11160 echo "${ECHO_T}ok" >&6
11163 echo "$as_me:$LINENO: checking for objdir" >&5
11164 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11165 if test "${lt_cv_objdir+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 rm -f .libs 2>/dev/null
11169 mkdir .libs 2>/dev/null
11170 if test -d .libs; then
11173 # MS-DOS does not allow filenames that begin with a dot.
11176 rmdir .libs 2>/dev/null
11178 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11179 echo "${ECHO_T}$lt_cv_objdir" >&6
11180 objdir=$lt_cv_objdir
11188 # AIX sometimes has problems with the GCC collect2 program. For some
11189 # reason, if we set the COLLECT_NAMES environment variable, the problems
11190 # vanish in a puff of smoke.
11191 if test "X${COLLECT_NAMES+set}" != Xset; then
11193 export COLLECT_NAMES
11198 # Sed substitution that helps us do robust quoting. It backslashifies
11199 # metacharacters that are still active within double-quoted strings.
11200 Xsed='sed -e s/^X//'
11201 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11203 # Same as above, but do not quote variable references.
11204 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11206 # Sed substitution to delay expansion of an escaped shell variable in a
11207 # double_quote_subst'ed string.
11208 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11210 # Sed substitution to avoid accidental globbing in evaled expressions
11211 no_glob_subst='s/\*/\\\*/g'
11216 # Global variables:
11217 default_ofile=mklib
11218 can_build_shared=yes
11220 # All known linkers require a `.a' archive for static linking (except M$VC,
11221 # which needs '.lib').
11223 ltmain="$ac_aux_dir/ltmain.sh"
11224 ofile="$default_ofile"
11225 with_gnu_ld="$lt_cv_prog_gnu_ld"
11227 if test -n "$ac_tool_prefix"; then
11228 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11229 set dummy ${ac_tool_prefix}ar; ac_word=$2
11230 echo "$as_me:$LINENO: checking for $ac_word" >&5
11231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11232 if test "${ac_cv_prog_AR+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 if test -n "$AR"; then
11236 ac_cv_prog_AR="$AR" # Let the user override the test.
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11245 ac_cv_prog_AR="${ac_tool_prefix}ar"
11246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 if test -n "$AR"; then
11256 echo "$as_me:$LINENO: result: $AR" >&5
11257 echo "${ECHO_T}$AR" >&6
11259 echo "$as_me:$LINENO: result: no" >&5
11260 echo "${ECHO_T}no" >&6
11264 if test -z "$ac_cv_prog_AR"; then
11266 # Extract the first word of "ar", so it can be a program name with args.
11267 set dummy ar; ac_word=$2
11268 echo "$as_me:$LINENO: checking for $ac_word" >&5
11269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11270 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 if test -n "$ac_ct_AR"; then
11274 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in $PATH
11280 test -z "$as_dir" && as_dir=.
11281 for ac_exec_ext in '' $ac_executable_extensions; do
11282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11283 ac_cv_prog_ac_ct_AR="ar"
11284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11290 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11293 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11294 if test -n "$ac_ct_AR"; then
11295 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11296 echo "${ECHO_T}$ac_ct_AR" >&6
11298 echo "$as_me:$LINENO: result: no" >&5
11299 echo "${ECHO_T}no" >&6
11304 AR="$ac_cv_prog_AR"
11307 if test -n "$ac_tool_prefix"; then
11308 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11309 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11310 echo "$as_me:$LINENO: checking for $ac_word" >&5
11311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11312 if test "${ac_cv_prog_RANLIB+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 if test -n "$RANLIB"; then
11316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319 for as_dir in $PATH
11322 test -z "$as_dir" && as_dir=.
11323 for ac_exec_ext in '' $ac_executable_extensions; do
11324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 RANLIB=$ac_cv_prog_RANLIB
11335 if test -n "$RANLIB"; then
11336 echo "$as_me:$LINENO: result: $RANLIB" >&5
11337 echo "${ECHO_T}$RANLIB" >&6
11339 echo "$as_me:$LINENO: result: no" >&5
11340 echo "${ECHO_T}no" >&6
11344 if test -z "$ac_cv_prog_RANLIB"; then
11345 ac_ct_RANLIB=$RANLIB
11346 # Extract the first word of "ranlib", so it can be a program name with args.
11347 set dummy ranlib; ac_word=$2
11348 echo "$as_me:$LINENO: checking for $ac_word" >&5
11349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11350 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11353 if test -n "$ac_ct_RANLIB"; then
11354 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363 ac_cv_prog_ac_ct_RANLIB="ranlib"
11364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11370 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11373 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11374 if test -n "$ac_ct_RANLIB"; then
11375 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11376 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11378 echo "$as_me:$LINENO: result: no" >&5
11379 echo "${ECHO_T}no" >&6
11382 RANLIB=$ac_ct_RANLIB
11384 RANLIB="$ac_cv_prog_RANLIB"
11387 if test -n "$ac_tool_prefix"; then
11388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11389 set dummy ${ac_tool_prefix}strip; ac_word=$2
11390 echo "$as_me:$LINENO: checking for $ac_word" >&5
11391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11392 if test "${ac_cv_prog_STRIP+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 if test -n "$STRIP"; then
11396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399 for as_dir in $PATH
11402 test -z "$as_dir" && as_dir=.
11403 for ac_exec_ext in '' $ac_executable_extensions; do
11404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11405 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 STRIP=$ac_cv_prog_STRIP
11415 if test -n "$STRIP"; then
11416 echo "$as_me:$LINENO: result: $STRIP" >&5
11417 echo "${ECHO_T}$STRIP" >&6
11419 echo "$as_me:$LINENO: result: no" >&5
11420 echo "${ECHO_T}no" >&6
11424 if test -z "$ac_cv_prog_STRIP"; then
11426 # Extract the first word of "strip", so it can be a program name with args.
11427 set dummy strip; ac_word=$2
11428 echo "$as_me:$LINENO: checking for $ac_word" >&5
11429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11430 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 if test -n "$ac_ct_STRIP"; then
11434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $PATH
11440 test -z "$as_dir" && as_dir=.
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11443 ac_cv_prog_ac_ct_STRIP="strip"
11444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11450 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11454 if test -n "$ac_ct_STRIP"; then
11455 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11456 echo "${ECHO_T}$ac_ct_STRIP" >&6
11458 echo "$as_me:$LINENO: result: no" >&5
11459 echo "${ECHO_T}no" >&6
11464 STRIP="$ac_cv_prog_STRIP"
11469 old_CFLAGS="$CFLAGS"
11471 # Set sane defaults for various variables
11472 test -z "$AR" && AR=ar
11473 test -z "$AR_FLAGS" && AR_FLAGS=cru
11474 test -z "$AS" && AS=as
11475 test -z "$CC" && CC=cc
11476 test -z "$LTCC" && LTCC=$CC
11477 test -z "$DLLTOOL" && DLLTOOL=dlltool
11478 test -z "$LD" && LD=ld
11479 test -z "$LN_S" && LN_S="ln -s"
11480 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11481 test -z "$NM" && NM=nm
11482 test -z "$SED" && SED=sed
11483 test -z "$OBJDUMP" && OBJDUMP=objdump
11484 test -z "$RANLIB" && RANLIB=:
11485 test -z "$STRIP" && STRIP=:
11486 test -z "$ac_objext" && ac_objext=o
11488 # Determine commands to create old-style static archives.
11489 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11490 old_postinstall_cmds='chmod 644 $oldlib'
11491 old_postuninstall_cmds=
11493 if test -n "$RANLIB"; then
11496 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11499 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11502 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11505 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11507 # Only perform the check for file, if the check method requires it
11508 case $deplibs_check_method in
11510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11511 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11512 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11513 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11521 lt_save_MAGIC_CMD="$MAGIC_CMD"
11522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11523 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11524 for ac_dir in $ac_dummy; do
11526 test -z "$ac_dir" && ac_dir=.
11527 if test -f $ac_dir/${ac_tool_prefix}file; then
11528 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11529 if test -n "$file_magic_test_file"; then
11530 case $deplibs_check_method in
11532 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11535 $EGREP "$file_magic_regex" > /dev/null; then
11540 *** Warning: the command libtool uses to detect shared libraries,
11541 *** $file_magic_cmd, produces output that libtool cannot recognize.
11542 *** The result is that libtool may fail to recognize shared libraries
11543 *** as such. This will affect the creation of libtool libraries that
11544 *** depend on shared libraries, but programs linked with such libtool
11545 *** libraries will work regardless of this problem. Nevertheless, you
11546 *** may want to report the problem to your system manager and/or to
11547 *** bug-libtool@gnu.org
11557 MAGIC_CMD="$lt_save_MAGIC_CMD"
11562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11563 if test -n "$MAGIC_CMD"; then
11564 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11565 echo "${ECHO_T}$MAGIC_CMD" >&6
11567 echo "$as_me:$LINENO: result: no" >&5
11568 echo "${ECHO_T}no" >&6
11571 if test -z "$lt_cv_path_MAGIC_CMD"; then
11572 if test -n "$ac_tool_prefix"; then
11573 echo "$as_me:$LINENO: checking for file" >&5
11574 echo $ECHO_N "checking for file... $ECHO_C" >&6
11575 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11583 lt_save_MAGIC_CMD="$MAGIC_CMD"
11584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11585 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11586 for ac_dir in $ac_dummy; do
11588 test -z "$ac_dir" && ac_dir=.
11589 if test -f $ac_dir/file; then
11590 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11591 if test -n "$file_magic_test_file"; then
11592 case $deplibs_check_method in
11594 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11596 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11597 $EGREP "$file_magic_regex" > /dev/null; then
11602 *** Warning: the command libtool uses to detect shared libraries,
11603 *** $file_magic_cmd, produces output that libtool cannot recognize.
11604 *** The result is that libtool may fail to recognize shared libraries
11605 *** as such. This will affect the creation of libtool libraries that
11606 *** depend on shared libraries, but programs linked with such libtool
11607 *** libraries will work regardless of this problem. Nevertheless, you
11608 *** may want to report the problem to your system manager and/or to
11609 *** bug-libtool@gnu.org
11619 MAGIC_CMD="$lt_save_MAGIC_CMD"
11624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11625 if test -n "$MAGIC_CMD"; then
11626 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11627 echo "${ECHO_T}$MAGIC_CMD" >&6
11629 echo "$as_me:$LINENO: result: no" >&5
11630 echo "${ECHO_T}no" >&6
11643 enable_win32_dll=no
11645 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11646 if test "${enable_libtool_lock+set}" = set; then
11647 enableval="$enable_libtool_lock"
11650 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11653 # Check whether --with-pic or --without-pic was given.
11654 if test "${with_pic+set}" = set; then
11655 withval="$with_pic"
11656 pic_mode="$withval"
11660 test -z "$pic_mode" && pic_mode=default
11662 # Use C for the default configuration in the libtool script
11666 ac_cpp='$CPP $CPPFLAGS'
11667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11672 # Source file extension for C test sources.
11675 # Object file extension for compiled C test sources.
11679 # Code to be used in simple compile tests
11680 lt_simple_compile_test_code="int some_variable = 0;\n"
11682 # Code to be used in simple link tests
11683 lt_simple_link_test_code='int main(){return(0);}\n'
11686 # If no C compiler was specified, use CC.
11689 # Allow CC to be a program name with arguments.
11694 # Check for any special shared library compilation flags.
11697 if test "$GCC" = no; then
11700 lt_prog_cc_shlib='-belf'
11704 if test -n "$lt_prog_cc_shlib"; then
11705 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11706 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11707 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11709 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11710 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11711 lt_cv_prog_cc_can_build_shared=no
11717 # Check to make sure the static flag actually works.
11719 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11720 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11721 if test "${lt_prog_compiler_static_works+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 lt_prog_compiler_static_works=no
11725 save_LDFLAGS="$LDFLAGS"
11726 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11727 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11729 # The compiler can only warn and ignore the option if not recognized
11730 # So say no if there are warnings
11731 if test -s conftest.err; then
11732 # Append any errors to the config.log.
11733 cat conftest.err 1>&5
11735 lt_prog_compiler_static_works=yes
11739 LDFLAGS="$save_LDFLAGS"
11742 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11743 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11745 if test x"$lt_prog_compiler_static_works" = xyes; then
11748 lt_prog_compiler_static=
11754 lt_prog_compiler_no_builtin_flag=
11756 if test "$GCC" = yes; then
11757 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11760 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11761 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11762 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 lt_cv_prog_compiler_rtti_exceptions=no
11766 ac_outfile=conftest.$ac_objext
11767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11768 lt_compiler_flag="-fno-rtti -fno-exceptions"
11769 # Insert the option either (1) after the last *FLAGS variable, or
11770 # (2) before a word containing "conftest.", or (3) at the end.
11771 # Note that $ac_compile itself does not contain backslashes and begins
11772 # with a dollar sign (not a hyphen), so the echo should work correctly.
11773 # The option is referenced via a variable to avoid confusing sed.
11774 lt_compile=`echo "$ac_compile" | $SED \
11775 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11777 -e 's:$: $lt_compiler_flag:'`
11778 (eval echo "\"\$as_me:11778: $lt_compile\"" >&5)
11779 (eval "$lt_compile" 2>conftest.err)
11781 cat conftest.err >&5
11782 echo "$as_me:11782: \$? = $ac_status" >&5
11783 if (exit $ac_status) && test -s "$ac_outfile"; then
11784 # The compiler can only warn and ignore the option if not recognized
11785 # So say no if there are warnings
11786 if test ! -s conftest.err; then
11787 lt_cv_prog_compiler_rtti_exceptions=yes
11793 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11794 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11796 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11797 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11804 lt_prog_compiler_wl=
11805 lt_prog_compiler_pic=
11806 lt_prog_compiler_static=
11808 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11809 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11811 if test "$GCC" = yes; then
11812 lt_prog_compiler_wl='-Wl,'
11813 lt_prog_compiler_static='-static'
11817 # All AIX code is PIC.
11818 if test "$host_cpu" = ia64; then
11819 # AIX 5 now supports IA64 processor
11820 lt_prog_compiler_static='-Bstatic'
11825 # FIXME: we need at least 68020 code to build shared libraries, but
11826 # adding the `-m68020' flag to GCC prevents building anything better,
11828 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11831 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11832 # PIC is the default for these OSes.
11835 mingw* | pw32* | os2*)
11836 # This hack is so that the source file can tell whether it is being
11837 # built for inclusion in a dll (and should export symbols for example).
11838 lt_prog_compiler_pic='-DDLL_EXPORT'
11841 darwin* | rhapsody*)
11842 # PIC is the default on this platform
11843 # Common symbols not allowed in MH_DYLIB files
11844 lt_prog_compiler_pic='-fno-common'
11848 # Just because we use GCC doesn't mean we suddenly get shared libraries
11849 # on systems that don't support them.
11850 lt_prog_compiler_can_build_shared=no
11855 if test -d /usr/nec; then
11856 lt_prog_compiler_pic=-Kconform_pic
11861 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11862 # not for PA HP-UX.
11863 case "$host_cpu" in
11868 lt_prog_compiler_pic='-fPIC'
11874 lt_prog_compiler_pic='-fPIC'
11878 # PORTME Check for flag to pass linker flags through the system compiler.
11881 lt_prog_compiler_wl='-Wl,'
11882 if test "$host_cpu" = ia64; then
11883 # AIX 5 now supports IA64 processor
11884 lt_prog_compiler_static='-Bstatic'
11886 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11890 # PIC is the default on this platform
11891 # Common symbols not allowed in MH_DYLIB files
11892 case "$cc_basename" in
11894 lt_prog_compiler_pic='-qnocommon'
11895 lt_prog_compiler_wl='-Wl,'
11900 mingw* | pw32* | os2*)
11901 # This hack is so that the source file can tell whether it is being
11902 # built for inclusion in a dll (and should export symbols for example).
11903 lt_prog_compiler_pic='-DDLL_EXPORT'
11906 hpux9* | hpux10* | hpux11*)
11907 lt_prog_compiler_wl='-Wl,'
11908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11909 # not for PA HP-UX.
11910 case "$host_cpu" in
11915 lt_prog_compiler_pic='+Z'
11918 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11919 lt_prog_compiler_static='${wl}-a ${wl}archive'
11922 irix5* | irix6* | nonstopux*)
11923 lt_prog_compiler_wl='-Wl,'
11924 # PIC (with -KPIC) is the default.
11925 lt_prog_compiler_static='-non_shared'
11929 lt_prog_compiler_pic='-KPIC'
11930 lt_prog_compiler_static='-Bstatic'
11936 lt_prog_compiler_wl='-Wl,'
11937 lt_prog_compiler_pic='-KPIC'
11938 lt_prog_compiler_static='-static'
11941 lt_prog_compiler_wl='-Wl,'
11942 # All Alpha code is PIC.
11943 lt_prog_compiler_static='-non_shared'
11948 osf3* | osf4* | osf5*)
11949 lt_prog_compiler_wl='-Wl,'
11950 # All OSF/1 code is PIC.
11951 lt_prog_compiler_static='-non_shared'
11955 lt_prog_compiler_pic='-Kpic'
11956 lt_prog_compiler_static='-dn'
11960 lt_prog_compiler_wl='-Wl,'
11961 lt_prog_compiler_pic='-KPIC'
11962 lt_prog_compiler_static='-Bstatic'
11966 lt_prog_compiler_wl='-Qoption ld '
11967 lt_prog_compiler_pic='-PIC'
11968 lt_prog_compiler_static='-Bstatic'
11971 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11972 lt_prog_compiler_wl='-Wl,'
11973 lt_prog_compiler_pic='-KPIC'
11974 lt_prog_compiler_static='-Bstatic'
11978 if test -d /usr/nec ;then
11979 lt_prog_compiler_pic='-Kconform_pic'
11980 lt_prog_compiler_static='-Bstatic'
11985 lt_prog_compiler_pic='-pic'
11986 lt_prog_compiler_static='-Bstatic'
11990 lt_prog_compiler_can_build_shared=no
11995 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11996 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11999 # Check to make sure the PIC flag actually works.
12001 if test -n "$lt_prog_compiler_pic"; then
12003 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12004 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12005 if test "${lt_prog_compiler_pic_works+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 lt_prog_compiler_pic_works=no
12009 ac_outfile=conftest.$ac_objext
12010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12011 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12012 # Insert the option either (1) after the last *FLAGS variable, or
12013 # (2) before a word containing "conftest.", or (3) at the end.
12014 # Note that $ac_compile itself does not contain backslashes and begins
12015 # with a dollar sign (not a hyphen), so the echo should work correctly.
12016 # The option is referenced via a variable to avoid confusing sed.
12017 lt_compile=`echo "$ac_compile" | $SED \
12018 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12020 -e 's:$: $lt_compiler_flag:'`
12021 (eval echo "\"\$as_me:12021: $lt_compile\"" >&5)
12022 (eval "$lt_compile" 2>conftest.err)
12024 cat conftest.err >&5
12025 echo "$as_me:12025: \$? = $ac_status" >&5
12026 if (exit $ac_status) && test -s "$ac_outfile"; then
12027 # The compiler can only warn and ignore the option if not recognized
12028 # So say no if there are warnings
12029 if test ! -s conftest.err; then
12030 lt_prog_compiler_pic_works=yes
12036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12037 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12039 if test x"$lt_prog_compiler_pic_works" = xyes; then
12040 case $lt_prog_compiler_pic in
12042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12045 lt_prog_compiler_pic=
12046 lt_prog_compiler_can_build_shared=no
12051 # For platforms which do not support PIC, -DPIC is meaningless:
12053 lt_prog_compiler_pic=
12056 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12060 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12061 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12062 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 lt_cv_prog_compiler_c_o=no
12066 $rm -r conftest 2>/dev/null
12070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12072 lt_compiler_flag="-o out/conftest2.$ac_objext"
12073 # Insert the option either (1) after the last *FLAGS variable, or
12074 # (2) before a word containing "conftest.", or (3) at the end.
12075 # Note that $ac_compile itself does not contain backslashes and begins
12076 # with a dollar sign (not a hyphen), so the echo should work correctly.
12077 lt_compile=`echo "$ac_compile" | $SED \
12078 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12080 -e 's:$: $lt_compiler_flag:'`
12081 (eval echo "\"\$as_me:12081: $lt_compile\"" >&5)
12082 (eval "$lt_compile" 2>out/conftest.err)
12084 cat out/conftest.err >&5
12085 echo "$as_me:12085: \$? = $ac_status" >&5
12086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12088 # The compiler can only warn and ignore the option if not recognized
12089 # So say no if there are warnings
12090 if test ! -s out/conftest.err; then
12091 lt_cv_prog_compiler_c_o=yes
12096 # SGI C++ compiler will create directory out/ii_files/ for
12097 # template instantiation
12098 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12099 $rm out/* && rmdir out
12105 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12106 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12109 hard_links="nottested"
12110 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12111 # do not overwrite the value of need_locks provided by the user
12112 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12113 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12118 ln conftest.a conftest.b 2>&5 || hard_links=no
12119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12120 echo "$as_me:$LINENO: result: $hard_links" >&5
12121 echo "${ECHO_T}$hard_links" >&6
12122 if test "$hard_links" = no; then
12123 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12124 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12131 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12132 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12135 allow_undefined_flag=
12136 enable_shared_with_static_runtimes=no
12138 archive_expsym_cmds=
12139 old_archive_From_new_cmds=
12140 old_archive_from_expsyms_cmds=
12141 export_dynamic_flag_spec=
12142 whole_archive_flag_spec=
12143 thread_safe_flag_spec=
12144 hardcode_libdir_flag_spec=
12145 hardcode_libdir_flag_spec_ld=
12146 hardcode_libdir_separator=
12148 hardcode_minus_L=no
12149 hardcode_shlibpath_var=unsupported
12150 link_all_deplibs=unknown
12151 hardcode_automatic=no
12153 module_expsym_cmds=
12154 always_export_symbols=no
12155 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12156 # include_expsyms should be a list of space-separated symbols to be *always*
12157 # included in the symbol list
12159 # exclude_expsyms can be an extended regexp of symbols to exclude
12160 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12161 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12162 # as well as any symbol that contains `d'.
12163 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12164 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12165 # platforms (ab)use it in PIC code, but their linkers get confused if
12166 # the symbol is explicitly referenced. Since portable code cannot
12167 # rely on this symbol name, it's probably fine to never include it in
12168 # preloaded symbol tables.
12169 extract_expsyms_cmds=
12172 cygwin* | mingw* | pw32*)
12173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12174 # When not using gcc, we currently assume that we are using
12175 # Microsoft Visual C++.
12176 if test "$GCC" != yes; then
12186 if test "$with_gnu_ld" = yes; then
12187 # If archive_cmds runs LD, not CC, wlarc should be empty
12190 # See if GNU ld supports shared libraries.
12192 aix3* | aix4* | aix5*)
12193 # On AIX/PPC, the GNU linker is very broken
12194 if test "$host_cpu" != ia64; then
12198 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12199 *** to be unable to reliably create shared libraries on AIX.
12200 *** Therefore, libtool is disabling shared libraries support. If you
12201 *** really care for shared libraries, you may want to modify your PATH
12202 *** so that a non-GNU linker is found, and then restart.
12209 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)'
12210 hardcode_libdir_flag_spec='-L$libdir'
12211 hardcode_minus_L=yes
12213 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12214 # that the semantics of dynamic libraries on AmigaOS, at least up
12215 # to version 4, is to share data among multiple programs linked
12216 # with the same dynamic library. Since this doesn't match the
12217 # behavior of shared libraries on other platforms, we can't use
12223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12224 allow_undefined_flag=unsupported
12225 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12226 # support --undefined. This deserves some investigation. FIXME
12227 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12233 cygwin* | mingw* | pw32*)
12234 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12235 # as there is no search path for DLLs.
12236 hardcode_libdir_flag_spec='-L$libdir'
12237 allow_undefined_flag=unsupported
12238 always_export_symbols=no
12239 enable_shared_with_static_runtimes=yes
12240 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12242 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12244 # If the export-symbols file already is a .def file (1st line
12245 # is EXPORTS), use it as is; otherwise, prepend...
12246 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12247 cp $export_symbols $output_objdir/$soname.def;
12249 echo EXPORTS > $output_objdir/$soname.def;
12250 cat $export_symbols >> $output_objdir/$soname.def;
12252 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12260 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12269 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12274 *** create shared libraries on Solaris systems. Therefore, libtool
12275 *** is disabling shared libraries support. We urge you to upgrade GNU
12276 *** binutils to release 2.9.1 or newer. Another option is to modify
12277 *** your PATH or compiler configuration so that the native linker is
12278 *** used, and then restart.
12281 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12290 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12292 hardcode_direct=yes
12293 hardcode_shlibpath_var=no
12297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12298 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299 archive_cmds="$tmp_archive_cmds"
12300 supports_anon_versioning=no
12301 case `$LD -v 2>/dev/null` in
12302 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12303 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12304 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12305 *\ 2.11.*) ;; # other 2.11 versions
12306 *) supports_anon_versioning=yes ;;
12308 if test $supports_anon_versioning = yes; then
12309 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12311 $echo "local: *; };" >> $output_objdir/$libname.ver~
12312 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12314 archive_expsym_cmds="$tmp_archive_cmds"
12322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12331 if test "$ld_shlibs" = yes; then
12332 runpath_var=LD_RUN_PATH
12333 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12334 export_dynamic_flag_spec='${wl}--export-dynamic'
12335 # ancient GNU ld didn't support --whole-archive et. al.
12336 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12337 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12339 whole_archive_flag_spec=
12343 # PORTME fill in a description of your system's linker (not GNU ld)
12346 allow_undefined_flag=unsupported
12347 always_export_symbols=yes
12348 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'
12349 # Note: this linker hardcodes the directories in LIBPATH if there
12350 # are no directories specified by -L.
12351 hardcode_minus_L=yes
12352 if test "$GCC" = yes && test -z "$link_static_flag"; then
12353 # Neither direct hardcoding nor static linking is supported with a
12355 hardcode_direct=unsupported
12360 if test "$host_cpu" = ia64; then
12361 # On IA64, the linker does run time linking by default, so we don't
12362 # have to do anything special.
12363 aix_use_runtimelinking=no
12364 exp_sym_flag='-Bexport'
12367 # If we're using GNU nm, then we don't want the "-C" option.
12368 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12369 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12370 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'
12372 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'
12374 aix_use_runtimelinking=no
12376 # Test if we are trying to use run time linking or normal
12377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12378 # need to do runtime linking.
12379 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12380 for ld_flag in $LDFLAGS; do
12381 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12382 aix_use_runtimelinking=yes
12388 exp_sym_flag='-bexport'
12389 no_entry_flag='-bnoentry'
12392 # When large executables or shared objects are built, AIX ld can
12393 # have problems creating the table of contents. If linking a library
12394 # or program results in "error TOC overflow" add -mminimal-toc to
12395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12399 hardcode_direct=yes
12400 hardcode_libdir_separator=':'
12401 link_all_deplibs=yes
12403 if test "$GCC" = yes; then
12404 case $host_os in aix4.012|aix4.012.*)
12405 # We only want to do this on AIX 4.2 and lower, the check
12406 # below for broken collect2 doesn't work under 4.3+
12407 collect2name=`${CC} -print-prog-name=collect2`
12408 if test -f "$collect2name" && \
12409 strings "$collect2name" | grep resolve_lib_name >/dev/null
12411 # We have reworked collect2
12412 hardcode_direct=yes
12414 # We have old collect2
12415 hardcode_direct=unsupported
12416 # It fails to find uninstalled libraries when the uninstalled
12417 # path is not listed in the libpath. Setting hardcode_minus_L
12418 # to unsupported forces relinking
12419 hardcode_minus_L=yes
12420 hardcode_libdir_flag_spec='-L$libdir'
12421 hardcode_libdir_separator=
12424 shared_flag='-shared'
12427 if test "$host_cpu" = ia64; then
12428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12429 # chokes on -Wl,-G. The following line is correct:
12432 if test "$aix_use_runtimelinking" = yes; then
12433 shared_flag='${wl}-G'
12435 shared_flag='${wl}-bM:SRE'
12440 # It seems that -bexpall does not export symbols beginning with
12441 # underscore (_), so it is better to generate a list of symbols to export.
12442 always_export_symbols=yes
12443 if test "$aix_use_runtimelinking" = yes; then
12444 # Warning - without using the other runtime loading flags (-brtl),
12445 # -berok will link without error, but may produce a broken library.
12446 allow_undefined_flag='-berok'
12447 # Determine the default libpath from the value encoded in an empty executable.
12448 cat >conftest.$ac_ext <<_ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>conftest.er1
12467 grep -v '^ *+' conftest.er1 >conftest.err
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
12472 { ac_try='test -z "$ac_c_werror_flag"
12473 || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest$ac_exeext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12488 # Check for a 64-bit object if we didn't find anything.
12489 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; }
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12496 rm -f conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12501 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"
12503 if test "$host_cpu" = ia64; then
12504 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12505 allow_undefined_flag="-z nodefs"
12506 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"
12508 # Determine the default libpath from the value encoded in an empty executable.
12509 cat >conftest.$ac_ext <<_ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>conftest.er1
12528 grep -v '^ *+' conftest.er1 >conftest.err
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -z "$ac_c_werror_flag"
12534 || test ! -s conftest.err'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12549 # Check for a 64-bit object if we didn't find anything.
12550 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; }
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12557 rm -f conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12562 # Warning - without using the other run time loading flags,
12563 # -berok will link without error, but may produce a broken library.
12564 no_undefined_flag=' ${wl}-bernotok'
12565 allow_undefined_flag=' ${wl}-berok'
12566 # -bexpall does not export symbols beginning with underscore (_)
12567 always_export_symbols=yes
12568 # Exported symbols can be pulled into shared objects from archives
12569 whole_archive_flag_spec=' '
12570 archive_cmds_need_lc=yes
12571 # This is similar to how AIX traditionally builds it's shared libraries.
12572 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'
12578 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)'
12579 hardcode_libdir_flag_spec='-L$libdir'
12580 hardcode_minus_L=yes
12581 # see comment about different semantics on the GNU ld section
12586 export_dynamic_flag_spec=-rdynamic
12589 cygwin* | mingw* | pw32*)
12590 # When not using gcc, we currently assume that we are using
12591 # Microsoft Visual C++.
12592 # hardcode_libdir_flag_spec is actually meaningless, as there is
12593 # no search path for DLLs.
12594 hardcode_libdir_flag_spec=' '
12595 allow_undefined_flag=unsupported
12596 # Tell ltmain to make .lib files, not .a files.
12598 # Tell ltmain to make .dll files, not .so files.
12600 # FIXME: Setting linknames here is a bad hack.
12601 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12602 # The linker will automatically build a .lib file if we build a DLL.
12603 old_archive_From_new_cmds='true'
12604 # FIXME: Should let the user specify the lib program.
12605 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12606 fix_srcfile_path='`cygpath -w "$srcfile"`'
12607 enable_shared_with_static_runtimes=yes
12610 darwin* | rhapsody*)
12612 rhapsody* | darwin1.[012])
12613 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12616 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12617 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12619 case ${MACOSX_DEPLOYMENT_TARGET} in
12621 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12624 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12630 archive_cmds_need_lc=no
12632 hardcode_automatic=yes
12633 hardcode_shlibpath_var=unsupported
12634 whole_archive_flag_spec=''
12635 link_all_deplibs=yes
12636 if test "$GCC" = yes ; then
12637 output_verbose_link_cmd='echo'
12638 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12639 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12640 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12641 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}'
12642 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}'
12644 case "$cc_basename" in
12646 output_verbose_link_cmd='echo'
12647 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12648 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12649 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12650 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}'
12651 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}'
12661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12662 hardcode_libdir_flag_spec='-L$libdir'
12663 hardcode_shlibpath_var=no
12670 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12671 # support. Future versions do this automatically, but an explicit c++rt0.o
12672 # does not break anything, and helps significantly (at the cost of a little
12675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12676 hardcode_libdir_flag_spec='-R$libdir'
12677 hardcode_direct=yes
12678 hardcode_shlibpath_var=no
12681 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12684 hardcode_direct=yes
12685 hardcode_minus_L=yes
12686 hardcode_shlibpath_var=no
12689 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12690 freebsd* | kfreebsd*-gnu)
12691 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12692 hardcode_libdir_flag_spec='-R$libdir'
12693 hardcode_direct=yes
12694 hardcode_shlibpath_var=no
12698 if test "$GCC" = yes; then
12699 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'
12701 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'
12703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12704 hardcode_libdir_separator=:
12705 hardcode_direct=yes
12707 # hardcode_minus_L: Not really in the search PATH,
12708 # but as the default location of the library.
12709 hardcode_minus_L=yes
12710 export_dynamic_flag_spec='${wl}-E'
12714 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12715 case "$host_cpu" in
12717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12724 case "$host_cpu" in
12726 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12733 if test "$with_gnu_ld" = no; then
12734 case "$host_cpu" in
12736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12737 hardcode_libdir_flag_spec_ld='+b $libdir'
12738 hardcode_libdir_separator=:
12740 hardcode_shlibpath_var=no
12743 hardcode_libdir_flag_spec='-L$libdir'
12745 hardcode_shlibpath_var=no
12747 # hardcode_minus_L: Not really in the search PATH,
12748 # but as the default location of the library.
12749 hardcode_minus_L=yes
12752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12753 hardcode_libdir_separator=:
12754 hardcode_direct=yes
12755 export_dynamic_flag_spec='${wl}-E'
12757 # hardcode_minus_L: Not really in the search PATH,
12758 # but as the default location of the library.
12759 hardcode_minus_L=yes
12765 irix5* | irix6* | nonstopux*)
12766 if test "$GCC" = yes; then
12767 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'
12769 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'
12770 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12773 hardcode_libdir_separator=:
12774 link_all_deplibs=yes
12778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12781 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12783 hardcode_libdir_flag_spec='-R$libdir'
12784 hardcode_direct=yes
12785 hardcode_shlibpath_var=no
12789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12790 hardcode_direct=yes
12791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12792 hardcode_libdir_separator=:
12793 hardcode_shlibpath_var=no
12797 hardcode_direct=yes
12798 hardcode_shlibpath_var=no
12799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12801 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12803 export_dynamic_flag_spec='${wl}-E'
12806 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12807 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12808 hardcode_libdir_flag_spec='-R$libdir'
12811 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12812 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12819 hardcode_libdir_flag_spec='-L$libdir'
12820 hardcode_minus_L=yes
12821 allow_undefined_flag=unsupported
12822 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'
12823 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12827 if test "$GCC" = yes; then
12828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12829 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'
12831 allow_undefined_flag=' -expect_unresolved \*'
12832 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'
12834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12835 hardcode_libdir_separator=:
12838 osf4* | osf5*) # as osf3* with the addition of -msym flag
12839 if test "$GCC" = yes; then
12840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12841 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'
12842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12844 allow_undefined_flag=' -expect_unresolved \*'
12845 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'
12846 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12847 $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'
12849 # Both c and cxx compiler support -rpath directly
12850 hardcode_libdir_flag_spec='-rpath $libdir'
12852 hardcode_libdir_separator=:
12856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12857 hardcode_shlibpath_var=no
12858 export_dynamic_flag_spec='${wl}-Bexport'
12859 runpath_var=LD_RUN_PATH
12860 hardcode_runpath_var=yes
12864 no_undefined_flag=' -z text'
12865 if test "$GCC" = yes; then
12866 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12867 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12868 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12870 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12871 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12872 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12874 hardcode_libdir_flag_spec='-R$libdir'
12875 hardcode_shlibpath_var=no
12877 solaris2.[0-5] | solaris2.[0-5].*) ;;
12878 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12879 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12881 link_all_deplibs=yes
12885 if test "x$host_vendor" = xsequent; then
12886 # Use $CC to link under sequent, because it throws in some extra .o
12887 # files that make .init and .fini sections work.
12888 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12890 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12892 hardcode_libdir_flag_spec='-L$libdir'
12893 hardcode_direct=yes
12894 hardcode_minus_L=yes
12895 hardcode_shlibpath_var=no
12899 case $host_vendor in
12901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12902 hardcode_direct=yes # is this really true???
12905 ## LD is ld it makes a PLAMLIB
12906 ## CC just makes a GrossModule.
12907 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12908 reload_cmds='$CC -r -o $output$reload_objs'
12912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12913 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12916 runpath_var='LD_RUN_PATH'
12917 hardcode_shlibpath_var=no
12921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12922 hardcode_shlibpath_var=no
12923 export_dynamic_flag_spec='-Bexport'
12927 if test -d /usr/nec; then
12928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12929 hardcode_shlibpath_var=no
12930 runpath_var=LD_RUN_PATH
12931 hardcode_runpath_var=yes
12937 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12938 hardcode_direct=yes
12939 hardcode_minus_L=no
12940 hardcode_shlibpath_var=no
12941 hardcode_runpath_var=yes
12942 runpath_var=LD_RUN_PATH
12945 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12946 no_undefined_flag='${wl}-z ${wl}text'
12947 if test "$GCC" = yes; then
12948 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12950 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12952 runpath_var='LD_RUN_PATH'
12953 hardcode_shlibpath_var=no
12957 no_undefined_flag=' -z text'
12958 # $CC -shared without GNU ld will not create a library from C++
12959 # object files and a static libstdc++, better avoid it by now
12960 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12961 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12962 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12963 hardcode_libdir_flag_spec=
12964 hardcode_shlibpath_var=no
12965 runpath_var='LD_RUN_PATH'
12969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12970 hardcode_libdir_flag_spec='-L$libdir'
12971 hardcode_shlibpath_var=no
12980 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12981 echo "${ECHO_T}$ld_shlibs" >&6
12982 test "$ld_shlibs" = no && can_build_shared=no
12984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12985 if test "$GCC" = yes; then
12986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12990 # Do we need to explicitly link libc?
12992 case "x$archive_cmds_need_lc" in
12994 # Assume -lc should be added
12995 archive_cmds_need_lc=yes
12997 if test "$enable_shared" = yes && test "$GCC" = yes; then
12998 case $archive_cmds in
13000 # FIXME: we may have to deal with multi-command sequences.
13003 # Test whether the compiler implicitly links with -lc since on some
13004 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13005 # to ld, don't add -lc before -lgcc.
13006 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13007 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012 (eval $ac_compile) 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } 2>conftest.err; then
13018 libobjs=conftest.$ac_objext
13020 wl=$lt_prog_compiler_wl
13026 lt_save_allow_undefined_flag=$allow_undefined_flag
13027 allow_undefined_flag=
13028 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13029 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }
13034 archive_cmds_need_lc=no
13036 archive_cmds_need_lc=yes
13038 allow_undefined_flag=$lt_save_allow_undefined_flag
13040 cat conftest.err 1>&5
13043 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13044 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13051 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13052 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13053 library_names_spec=
13054 libname_spec='lib$name'
13058 postuninstall_cmds=
13062 shlibpath_overrides_runpath=unknown
13064 dynamic_linker="$host_os ld.so"
13065 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13066 if test "$GCC" = yes; then
13067 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13068 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13069 # if the path contains ";" then we assume it to be the separator
13070 # otherwise default to the standard path separator (i.e. ":") - it is
13071 # assumed that no part of a normal pathname contains ";" but that should
13072 # okay in the real world where ";" in dirpaths is itself problematic.
13073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13080 need_lib_prefix=unknown
13081 hardcode_into_libs=no
13083 # when you set need_version to no, make sure it does not cause -set_version
13084 # flags to be left without arguments
13085 need_version=unknown
13090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13091 shlibpath_var=LIBPATH
13093 # AIX 3 has no versioning support, so we append a major version to the name.
13094 soname_spec='${libname}${release}${shared_ext}$major'
13101 hardcode_into_libs=yes
13102 if test "$host_cpu" = ia64; then
13103 # AIX 5 supports IA64
13104 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13105 shlibpath_var=LD_LIBRARY_PATH
13107 # With GCC up to 2.95.x, collect2 would create an import file
13108 # for dependence libraries. The import file would start with
13109 # the line `#! .'. This would cause the generated library to
13110 # depend on `.', always an invalid library. This was fixed in
13111 # development snapshots of GCC prior to 3.0.
13113 aix4 | aix4.[01] | aix4.[01].*)
13114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13116 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13119 can_build_shared=no
13123 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13124 # soname into executable. Probably we can add versioning support to
13125 # collect2, so additional links can be useful in future.
13126 if test "$aix_use_runtimelinking" = yes; then
13127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13128 # instead of lib<name>.a to let people know that these are not
13129 # typical AIX shared libraries.
13130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 # We preserve .a as extension for shared libraries through AIX4.2
13133 # and later when we are not doing run time linking.
13134 library_names_spec='${libname}${release}.a $libname.a'
13135 soname_spec='${libname}${release}${shared_ext}$major'
13137 shlibpath_var=LIBPATH
13142 library_names_spec='$libname.ixlibrary $libname.a'
13143 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13144 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'
13148 library_names_spec='${libname}${shared_ext}'
13149 dynamic_linker="$host_os ld.so"
13150 shlibpath_var=LIBRARY_PATH
13156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157 soname_spec='${libname}${release}${shared_ext}$major'
13158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13159 shlibpath_var=LD_LIBRARY_PATH
13160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13162 # the default ld.so.conf also contains /usr/contrib/lib and
13163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13164 # libtool to hard-code these into programs
13167 cygwin* | mingw* | pw32*)
13168 version_type=windows
13173 case $GCC,$host_os in
13174 yes,cygwin* | yes,mingw* | yes,pw32*)
13175 library_names_spec='$libname.dll.a'
13176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13177 postinstall_cmds='base_file=`basename \${file}`~
13178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13179 dldir=$destdir/`dirname \$dlpath`~
13180 test -d \$dldir || mkdir -p \$dldir~
13181 $install_prog $dir/$dlname \$dldir/$dlname'
13182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13183 dlpath=$dir/\$dldll~
13185 shlibpath_overrides_runpath=yes
13189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13191 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13194 # MinGW DLLs use traditional 'lib' prefix
13195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13198 # It is most probably a Windows format PATH printed by
13199 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13200 # path with ; separators, and with drive letters. We can handle the
13201 # drive letters (cygwin fileutils understands them), so leave them,
13202 # especially as we might pass files found there to a mingw objdump,
13203 # which wouldn't understand a cygwinified path. Ahh.
13204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13210 # pw32 DLLs use 'pw' prefix rather than 'lib'
13211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13220 dynamic_linker='Win32 ld.exe'
13221 # FIXME: first we should search . and the directory the executable is in
13225 darwin* | rhapsody*)
13226 dynamic_linker="$host_os dyld"
13227 version_type=darwin
13230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13231 soname_spec='${libname}${release}${major}$shared_ext'
13232 shlibpath_overrides_runpath=yes
13233 shlibpath_var=DYLD_LIBRARY_PATH
13234 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13235 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13236 if test "$GCC" = yes; then
13237 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"`
13239 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 shlibpath_var=LD_LIBRARY_PATH
13261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13262 soname_spec='${libname}${release}${shared_ext}$major'
13263 shlibpath_var=LD_LIBRARY_PATH
13264 shlibpath_overrides_runpath=no
13265 hardcode_into_libs=yes
13266 dynamic_linker='GNU ld.so'
13270 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13271 version_type=freebsd-$objformat
13272 case $version_type in
13274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13283 shlibpath_var=LD_LIBRARY_PATH
13286 shlibpath_overrides_runpath=yes
13288 freebsd3.01* | freebsdelf3.01*)
13289 shlibpath_overrides_runpath=yes
13290 hardcode_into_libs=yes
13293 shlibpath_overrides_runpath=no
13294 hardcode_into_libs=yes
13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13304 soname_spec='${libname}${release}${shared_ext}$major'
13305 shlibpath_var=LD_LIBRARY_PATH
13306 hardcode_into_libs=yes
13309 hpux9* | hpux10* | hpux11*)
13310 # Give a soname corresponding to the major version so that dld.sl refuses to
13311 # link against other versions.
13315 case "$host_cpu" in
13318 hardcode_into_libs=yes
13319 dynamic_linker="$host_os dld.so"
13320 shlibpath_var=LD_LIBRARY_PATH
13321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13323 soname_spec='${libname}${release}${shared_ext}$major'
13324 if test "X$HPUX_IA64_MODE" = X32; then
13325 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13327 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13333 hardcode_into_libs=yes
13334 dynamic_linker="$host_os dld.sl"
13335 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338 soname_spec='${libname}${release}${shared_ext}$major'
13339 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13344 dynamic_linker="$host_os dld.sl"
13345 shlibpath_var=SHLIB_PATH
13346 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13348 soname_spec='${libname}${release}${shared_ext}$major'
13351 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13352 postinstall_cmds='chmod 555 $lib'
13355 irix5* | irix6* | nonstopux*)
13357 nonstopux*) version_type=nonstopux ;;
13359 if test "$lt_cv_prog_gnu_ld" = yes; then
13367 soname_spec='${libname}${release}${shared_ext}$major'
13368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13370 irix5* | nonstopux*)
13371 libsuff= shlibsuff=
13374 case $LD in # libtool.m4 will add one of these switches to LD
13375 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13376 libsuff= shlibsuff= libmagic=32-bit;;
13377 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13378 libsuff=32 shlibsuff=N32 libmagic=N32;;
13379 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13380 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13381 *) libsuff= shlibsuff= libmagic=never-match;;
13385 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13386 shlibpath_overrides_runpath=no
13387 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13388 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13389 hardcode_into_libs=yes
13392 # No shared lib support for Linux oldld, aout, or coff.
13393 linux*oldld* | linux*aout* | linux*coff*)
13397 # This must be Linux ELF.
13402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13403 soname_spec='${libname}${release}${shared_ext}$major'
13404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 shlibpath_overrides_runpath=no
13407 # This implies no fast_install, which is unacceptable.
13408 # Some rework will be needed to allow for fast_install
13409 # before this can be enabled.
13410 hardcode_into_libs=yes
13412 # Append ld.so.conf contents to the search path
13413 if test -f /etc/ld.so.conf; then
13414 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13415 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13418 # We used to test for /lib/ld.so.1 and disable shared libraries on
13419 # powerpc, because MkLinux only supported shared libraries with the
13420 # GNU dynamic linker. Since this was broken with cross compilers,
13421 # most powerpc-linux boxes support dynamic linking these days and
13422 # people can always --disable-shared, the test was removed, and we
13423 # assume the GNU/Linux dynamic linker is in use.
13424 dynamic_linker='GNU/Linux ld.so'
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13432 soname_spec='${libname}${release}${shared_ext}$major'
13433 shlibpath_var=LD_LIBRARY_PATH
13434 shlibpath_overrides_runpath=no
13435 hardcode_into_libs=yes
13436 dynamic_linker='GNU ld.so'
13443 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13446 dynamic_linker='NetBSD (a.out) ld.so'
13448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13449 soname_spec='${libname}${release}${shared_ext}$major'
13450 dynamic_linker='NetBSD ld.elf_so'
13452 shlibpath_var=LD_LIBRARY_PATH
13453 shlibpath_overrides_runpath=yes
13454 hardcode_into_libs=yes
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460 shlibpath_var=LD_LIBRARY_PATH
13461 shlibpath_overrides_runpath=yes
13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469 soname_spec='${libname}${release}${shared_ext}$major'
13470 shlibpath_var=LD_LIBRARY_PATH
13471 shlibpath_overrides_runpath=yes
13478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13480 shlibpath_var=LD_LIBRARY_PATH
13481 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13483 openbsd2.[89] | openbsd2.[89].*)
13484 shlibpath_overrides_runpath=no
13487 shlibpath_overrides_runpath=yes
13491 shlibpath_overrides_runpath=yes
13496 libname_spec='$name'
13499 library_names_spec='$libname${shared_ext} $libname.a'
13500 dynamic_linker='OS/2 ld.exe'
13501 shlibpath_var=LIBPATH
13504 osf3* | osf4* | osf5*)
13508 soname_spec='${libname}${release}${shared_ext}$major'
13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13517 soname_spec='${libname}${release}${shared_ext}$major'
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519 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
13529 shlibpath_overrides_runpath=yes
13530 hardcode_into_libs=yes
13531 # ldd complains unless libraries are executable
13532 postinstall_cmds='chmod +x $lib'
13537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13538 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13539 shlibpath_var=LD_LIBRARY_PATH
13540 shlibpath_overrides_runpath=yes
13541 if test "$with_gnu_ld" = yes; then
13547 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550 soname_spec='${libname}${release}${shared_ext}$major'
13551 shlibpath_var=LD_LIBRARY_PATH
13552 case $host_vendor in
13554 shlibpath_overrides_runpath=no
13556 export_dynamic_flag_spec='${wl}-Blargedynsym'
13557 runpath_var=LD_RUN_PATH
13565 shlibpath_overrides_runpath=no
13566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13572 if test -d /usr/nec ;then
13574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13575 soname_spec='$libname${shared_ext}.$major'
13576 shlibpath_var=LD_LIBRARY_PATH
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
13584 shlibpath_var=LD_LIBRARY_PATH
13591 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13592 echo "${ECHO_T}$dynamic_linker" >&6
13593 test "$dynamic_linker" = no && can_build_shared=no
13595 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13596 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13598 if test -n "$hardcode_libdir_flag_spec" || \
13599 test -n "$runpath_var" || \
13600 test "X$hardcode_automatic" = "Xyes" ; then
13602 # We can hardcode non-existant directories.
13603 if test "$hardcode_direct" != no &&
13604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13605 # have to relink, otherwise we might link with an installed library
13606 # when we should be linking with a yet-to-be-installed one
13607 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13608 test "$hardcode_minus_L" != no; then
13609 # Linking always hardcodes the temporary library directory.
13610 hardcode_action=relink
13612 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13613 hardcode_action=immediate
13616 # We cannot hardcode anything, or else we can only hardcode existing
13618 hardcode_action=unsupported
13620 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13621 echo "${ECHO_T}$hardcode_action" >&6
13623 if test "$hardcode_action" = relink; then
13624 # Fast installation is not supported
13625 enable_fast_install=no
13626 elif test "$shlibpath_overrides_runpath" = yes ||
13627 test "$enable_shared" = no; then
13628 # Fast installation is not necessary
13629 enable_fast_install=needless
13634 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13635 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13636 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13637 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13638 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13639 echo "$as_me:$LINENO: result: yes" >&5
13640 echo "${ECHO_T}yes" >&6
13642 # FIXME - insert some real tests, host_os isn't really good enough
13645 if test -n "$STRIP" ; then
13646 striplib="$STRIP -x"
13647 echo "$as_me:$LINENO: result: yes" >&5
13648 echo "${ECHO_T}yes" >&6
13650 echo "$as_me:$LINENO: result: no" >&5
13651 echo "${ECHO_T}no" >&6
13655 echo "$as_me:$LINENO: result: no" >&5
13656 echo "${ECHO_T}no" >&6
13661 if test "x$enable_dlopen" != xyes; then
13662 enable_dlopen=unknown
13663 enable_dlopen_self=unknown
13664 enable_dlopen_self_static=unknown
13671 lt_cv_dlopen="load_add_on"
13673 lt_cv_dlopen_self=yes
13677 lt_cv_dlopen="LoadLibrary"
13682 lt_cv_dlopen="dlopen"
13687 # if libdl is installed we need to link against it
13688 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13689 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13690 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 ac_check_lib_save_LIBS=$LIBS
13695 cat >conftest.$ac_ext <<_ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13702 /* Override any gcc2 internal prototype to avoid an error. */
13706 /* We use char because int might match the return type of a gcc2
13707 builtin and then its argument prototype would still apply. */
13717 rm -f conftest.$ac_objext conftest$ac_exeext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13719 (eval $ac_link) 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag"
13727 || test ! -s conftest.err'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest$ac_exeext'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }; then
13739 ac_cv_lib_dl_dlopen=yes
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13744 ac_cv_lib_dl_dlopen=no
13746 rm -f conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
13748 LIBS=$ac_check_lib_save_LIBS
13750 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13751 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13752 if test $ac_cv_lib_dl_dlopen = yes; then
13753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13756 lt_cv_dlopen="dyld"
13758 lt_cv_dlopen_self=yes
13765 echo "$as_me:$LINENO: checking for shl_load" >&5
13766 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13767 if test "${ac_cv_func_shl_load+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 cat >conftest.$ac_ext <<_ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h. */
13776 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13778 #define shl_load innocuous_shl_load
13780 /* System header to define __stub macros and hopefully few prototypes,
13781 which can conflict with char shl_load (); below.
13782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13783 <limits.h> exists even on freestanding compilers. */
13786 # include <limits.h>
13788 # include <assert.h>
13793 /* Override any gcc2 internal prototype to avoid an error. */
13798 /* We use char because int might match the return type of a gcc2
13799 builtin and then its argument prototype would still apply. */
13801 /* The GNU C library defines this for functions which it implements
13802 to always fail with ENOSYS. Some functions are actually named
13803 something starting with __ and the normal name is an alias. */
13804 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13807 char (*f) () = shl_load;
13816 return f != shl_load;
13821 rm -f conftest.$ac_objext conftest$ac_exeext
13822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13823 (eval $ac_link) 2>conftest.er1
13825 grep -v '^ *+' conftest.er1 >conftest.err
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } &&
13830 { ac_try='test -z "$ac_c_werror_flag"
13831 || test ! -s conftest.err'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest$ac_exeext'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 ac_cv_func_shl_load=yes
13845 echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13848 ac_cv_func_shl_load=no
13850 rm -f conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13853 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13854 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13855 if test $ac_cv_func_shl_load = yes; then
13856 lt_cv_dlopen="shl_load"
13858 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13859 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13860 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 ac_check_lib_save_LIBS=$LIBS
13865 cat >conftest.$ac_ext <<_ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13872 /* Override any gcc2 internal prototype to avoid an error. */
13876 /* We use char because int might match the return type of a gcc2
13877 builtin and then its argument prototype would still apply. */
13887 rm -f conftest.$ac_objext conftest$ac_exeext
13888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13889 (eval $ac_link) 2>conftest.er1
13891 grep -v '^ *+' conftest.er1 >conftest.err
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } &&
13896 { ac_try='test -z "$ac_c_werror_flag"
13897 || test ! -s conftest.err'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; } &&
13903 { ac_try='test -s conftest$ac_exeext'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 ac_cv_lib_dld_shl_load=yes
13911 echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13914 ac_cv_lib_dld_shl_load=no
13916 rm -f conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 LIBS=$ac_check_lib_save_LIBS
13920 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13921 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13922 if test $ac_cv_lib_dld_shl_load = yes; then
13923 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13925 echo "$as_me:$LINENO: checking for dlopen" >&5
13926 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13927 if test "${ac_cv_func_dlopen+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 cat >conftest.$ac_ext <<_ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13938 #define dlopen innocuous_dlopen
13940 /* System header to define __stub macros and hopefully few prototypes,
13941 which can conflict with char dlopen (); below.
13942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13943 <limits.h> exists even on freestanding compilers. */
13946 # include <limits.h>
13948 # include <assert.h>
13953 /* Override any gcc2 internal prototype to avoid an error. */
13958 /* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13961 /* The GNU C library defines this for functions which it implements
13962 to always fail with ENOSYS. Some functions are actually named
13963 something starting with __ and the normal name is an alias. */
13964 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13967 char (*f) () = dlopen;
13976 return f != dlopen;
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>conftest.er1
13985 grep -v '^ *+' conftest.er1 >conftest.err
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest$ac_exeext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 ac_cv_func_dlopen=yes
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14008 ac_cv_func_dlopen=no
14010 rm -f conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14013 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14014 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14015 if test $ac_cv_func_dlopen = yes; then
14016 lt_cv_dlopen="dlopen"
14018 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14019 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14020 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 ac_check_lib_save_LIBS=$LIBS
14025 cat >conftest.$ac_ext <<_ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h. */
14032 /* Override any gcc2 internal prototype to avoid an error. */
14036 /* We use char because int might match the return type of a gcc2
14037 builtin and then its argument prototype would still apply. */
14047 rm -f conftest.$ac_objext conftest$ac_exeext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14049 (eval $ac_link) 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try='test -z "$ac_c_werror_flag"
14057 || test ! -s conftest.err'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; } &&
14063 { ac_try='test -s conftest$ac_exeext'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
14069 ac_cv_lib_dl_dlopen=yes
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14074 ac_cv_lib_dl_dlopen=no
14076 rm -f conftest.err conftest.$ac_objext \
14077 conftest$ac_exeext conftest.$ac_ext
14078 LIBS=$ac_check_lib_save_LIBS
14080 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14081 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14082 if test $ac_cv_lib_dl_dlopen = yes; then
14083 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14085 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14086 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14087 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 ac_check_lib_save_LIBS=$LIBS
14091 LIBS="-lsvld $LIBS"
14092 cat >conftest.$ac_ext <<_ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14099 /* Override any gcc2 internal prototype to avoid an error. */
14103 /* We use char because int might match the return type of a gcc2
14104 builtin and then its argument prototype would still apply. */
14114 rm -f conftest.$ac_objext conftest$ac_exeext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14116 (eval $ac_link) 2>conftest.er1
14118 grep -v '^ *+' conftest.er1 >conftest.err
14120 cat conftest.err >&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
14123 { ac_try='test -z "$ac_c_werror_flag"
14124 || test ! -s conftest.err'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; } &&
14130 { ac_try='test -s conftest$ac_exeext'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136 ac_cv_lib_svld_dlopen=yes
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14141 ac_cv_lib_svld_dlopen=no
14143 rm -f conftest.err conftest.$ac_objext \
14144 conftest$ac_exeext conftest.$ac_ext
14145 LIBS=$ac_check_lib_save_LIBS
14147 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14148 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14149 if test $ac_cv_lib_svld_dlopen = yes; then
14150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14152 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14153 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14154 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 ac_check_lib_save_LIBS=$LIBS
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14166 /* Override any gcc2 internal prototype to avoid an error. */
14170 /* We use char because int might match the return type of a gcc2
14171 builtin and then its argument prototype would still apply. */
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183 (eval $ac_link) 2>conftest.er1
14185 grep -v '^ *+' conftest.er1 >conftest.err
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
14190 { ac_try='test -z "$ac_c_werror_flag"
14191 || test ! -s conftest.err'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try='test -s conftest$ac_exeext'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 ac_cv_lib_dld_dld_link=yes
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 ac_cv_lib_dld_dld_link=no
14210 rm -f conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
14212 LIBS=$ac_check_lib_save_LIBS
14214 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14215 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14216 if test $ac_cv_lib_dld_dld_link = yes; then
14217 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14238 if test "x$lt_cv_dlopen" != xno; then
14244 case $lt_cv_dlopen in
14246 save_CPPFLAGS="$CPPFLAGS"
14247 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14249 save_LDFLAGS="$LDFLAGS"
14250 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14253 LIBS="$lt_cv_dlopen_libs $LIBS"
14255 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14256 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14257 if test "${lt_cv_dlopen_self+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 if test "$cross_compiling" = yes; then :
14261 lt_cv_dlopen_self=cross
14263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14264 lt_status=$lt_dlunknown
14265 cat > conftest.$ac_ext <<EOF
14266 #line 14266 "configure"
14267 #include "confdefs.h"
14276 # define LT_DLGLOBAL RTLD_GLOBAL
14279 # define LT_DLGLOBAL DL_GLOBAL
14281 # define LT_DLGLOBAL 0
14285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14286 find out it does not work in some platform. */
14287 #ifndef LT_DLLAZY_OR_NOW
14289 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14292 # define LT_DLLAZY_OR_NOW DL_LAZY
14295 # define LT_DLLAZY_OR_NOW RTLD_NOW
14298 # define LT_DLLAZY_OR_NOW DL_NOW
14300 # define LT_DLLAZY_OR_NOW 0
14308 extern "C" void exit (int);
14311 void fnord() { int i=42;}
14314 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14315 int status = $lt_dlunknown;
14319 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14320 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14321 /* dlclose (self); */
14327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328 (eval $ac_link) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14332 (./conftest; exit; ) 2>/dev/null
14334 case x$lt_status in
14335 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14336 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14337 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14340 # compilation failed
14341 lt_cv_dlopen_self=no
14348 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14349 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14351 if test "x$lt_cv_dlopen_self" = xyes; then
14352 LDFLAGS="$LDFLAGS $link_static_flag"
14353 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14354 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14355 if test "${lt_cv_dlopen_self_static+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 if test "$cross_compiling" = yes; then :
14359 lt_cv_dlopen_self_static=cross
14361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14362 lt_status=$lt_dlunknown
14363 cat > conftest.$ac_ext <<EOF
14364 #line 14364 "configure"
14365 #include "confdefs.h"
14374 # define LT_DLGLOBAL RTLD_GLOBAL
14377 # define LT_DLGLOBAL DL_GLOBAL
14379 # define LT_DLGLOBAL 0
14383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14384 find out it does not work in some platform. */
14385 #ifndef LT_DLLAZY_OR_NOW
14387 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14390 # define LT_DLLAZY_OR_NOW DL_LAZY
14393 # define LT_DLLAZY_OR_NOW RTLD_NOW
14396 # define LT_DLLAZY_OR_NOW DL_NOW
14398 # define LT_DLLAZY_OR_NOW 0
14406 extern "C" void exit (int);
14409 void fnord() { int i=42;}
14412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14413 int status = $lt_dlunknown;
14417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14418 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14419 /* dlclose (self); */
14425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14426 (eval $ac_link) 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14430 (./conftest; exit; ) 2>/dev/null
14432 case x$lt_status in
14433 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14434 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14435 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14438 # compilation failed
14439 lt_cv_dlopen_self_static=no
14446 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14447 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14450 CPPFLAGS="$save_CPPFLAGS"
14451 LDFLAGS="$save_LDFLAGS"
14456 case $lt_cv_dlopen_self in
14457 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14458 *) enable_dlopen_self=unknown ;;
14461 case $lt_cv_dlopen_self_static in
14462 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14463 *) enable_dlopen_self_static=unknown ;;
14468 # Report which librarie types wil actually be built
14469 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14470 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14471 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14472 echo "${ECHO_T}$can_build_shared" >&6
14474 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14475 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14476 test "$can_build_shared" = "no" && enable_shared=no
14478 # On AIX, shared libraries and static libraries use the same namespace, and
14479 # are all built from PIC.
14482 test "$enable_shared" = yes && enable_static=no
14483 if test -n "$RANLIB"; then
14484 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14485 postinstall_cmds='$RANLIB $lib'
14490 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14491 test "$enable_shared" = yes && enable_static=no
14495 echo "$as_me:$LINENO: result: $enable_shared" >&5
14496 echo "${ECHO_T}$enable_shared" >&6
14498 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14499 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14500 # Make sure either enable_shared or enable_static is yes.
14501 test "$enable_shared" = yes || enable_static=yes
14502 echo "$as_me:$LINENO: result: $enable_static" >&5
14503 echo "${ECHO_T}$enable_static" >&6
14505 # The else clause should only fire when bootstrapping the
14506 # libtool distribution, otherwise you forgot to ship ltmain.sh
14507 # with your package, and you will get complaints that there are
14508 # no rules to generate ltmain.sh.
14509 if test -f "$ltmain"; then
14510 # See if we are running on zsh, and set the options which allow our commands through
14511 # without removal of \ escapes.
14512 if test -n "${ZSH_VERSION+set}" ; then
14513 setopt NO_GLOB_SUBST
14515 # Now quote all the things that may contain metacharacters while being
14516 # careful not to overquote the AC_SUBSTed values. We take copies of the
14517 # variables and quote the copies for generation of the libtool script.
14518 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14520 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14521 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14522 deplibs_check_method reload_flag reload_cmds need_locks \
14523 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14524 lt_cv_sys_global_symbol_to_c_name_address \
14525 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14526 old_postinstall_cmds old_postuninstall_cmds \
14530 lt_prog_compiler_wl \
14531 lt_prog_compiler_pic \
14532 lt_prog_compiler_static \
14533 lt_prog_compiler_no_builtin_flag \
14534 export_dynamic_flag_spec \
14535 thread_safe_flag_spec \
14536 whole_archive_flag_spec \
14537 enable_shared_with_static_runtimes \
14539 old_archive_from_new_cmds \
14544 compiler_lib_search_path \
14546 archive_expsym_cmds \
14548 postuninstall_cmds \
14549 old_archive_from_expsyms_cmds \
14550 allow_undefined_flag \
14551 no_undefined_flag \
14552 export_symbols_cmds \
14553 hardcode_libdir_flag_spec \
14554 hardcode_libdir_flag_spec_ld \
14555 hardcode_libdir_separator \
14556 hardcode_automatic \
14558 module_expsym_cmds \
14559 lt_cv_prog_compiler_c_o \
14561 include_expsyms; do
14564 old_archive_cmds | \
14565 old_archive_from_new_cmds | \
14567 archive_expsym_cmds | \
14569 module_expsym_cmds | \
14570 old_archive_from_expsyms_cmds | \
14571 export_symbols_cmds | \
14572 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14573 postinstall_cmds | postuninstall_cmds | \
14574 old_postinstall_cmds | old_postuninstall_cmds | \
14575 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14576 # Double-quote double-evaled strings.
14577 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14580 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14586 *'\$0 --fallback-echo"')
14587 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14591 cfgfile="${ofile}T"
14592 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14594 { echo "$as_me:$LINENO: creating $ofile" >&5
14595 echo "$as_me: creating $ofile" >&6;}
14597 cat <<__EOF__ >> "$cfgfile"
14600 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14601 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14602 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14604 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14605 # Free Software Foundation, Inc.
14607 # This file is part of GNU Libtool:
14608 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14610 # This program is free software; you can redistribute it and/or modify
14611 # it under the terms of the GNU General Public License as published by
14612 # the Free Software Foundation; either version 2 of the License, or
14613 # (at your option) any later version.
14615 # This program is distributed in the hope that it will be useful, but
14616 # WITHOUT ANY WARRANTY; without even the implied warranty of
14617 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14618 # General Public License for more details.
14620 # You should have received a copy of the GNU General Public License
14621 # along with this program; if not, write to the Free Software
14622 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14624 # As a special exception to the GNU General Public License, if you
14625 # distribute this file as part of a program that contains a
14626 # configuration script generated by Autoconf, you may include it under
14627 # the same distribution terms that you use for the rest of that program.
14629 # A sed program that does not truncate output.
14632 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14633 Xsed="$SED -e s/^X//"
14635 # The HP-UX ksh and POSIX shell print the target directory to stdout
14636 # if CDPATH is set.
14637 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14639 # The names of the tagged configurations supported by this script.
14642 # ### BEGIN LIBTOOL CONFIG
14644 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14646 # Shell to use when invoking shell scripts.
14649 # Whether or not to build shared libraries.
14650 build_libtool_libs=$enable_shared
14652 # Whether or not to build static libraries.
14653 build_old_libs=$enable_static
14655 # Whether or not to add -lc for building shared libraries.
14656 build_libtool_need_lc=$archive_cmds_need_lc
14658 # Whether or not to disallow shared libs when runtime libs are static
14659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14661 # Whether or not to optimize for fast installation.
14662 fast_install=$enable_fast_install
14665 host_alias=$host_alias
14668 # An echo program that does not interpret backslashes.
14673 AR_FLAGS=$lt_AR_FLAGS
14678 # A language-specific compiler.
14681 # Is the compiler the GNU C compiler?
14687 # The linker used to build libraries.
14690 # Whether we need hard or soft links.
14693 # A BSD-compatible nm program.
14696 # A symbol stripping program
14699 # Used to examine libraries when file_magic_cmd begins "file"
14700 MAGIC_CMD=$MAGIC_CMD
14702 # Used on cygwin: DLL creation program.
14705 # Used on cygwin: object dumper.
14708 # Used on cygwin: assembler.
14711 # The name of the directory that contains temporary libtool files.
14714 # How to create reloadable object files.
14715 reload_flag=$lt_reload_flag
14716 reload_cmds=$lt_reload_cmds
14718 # How to pass a linker flag through the compiler.
14719 wl=$lt_lt_prog_compiler_wl
14721 # Object file suffix (normally "o").
14722 objext="$ac_objext"
14724 # Old archive suffix (normally "a").
14727 # Shared library suffix (normally ".so").
14728 shrext_cmds='$shrext_cmds'
14730 # Executable file suffix (normally "").
14733 # Additional compiler flags for building library objects.
14734 pic_flag=$lt_lt_prog_compiler_pic
14737 # What is the maximum length of a command?
14738 max_cmd_len=$lt_cv_sys_max_cmd_len
14740 # Does compiler simultaneously support -c and -o options?
14741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14743 # Must we lock files when doing compilation ?
14744 need_locks=$lt_need_locks
14746 # Do we need the lib prefix for modules?
14747 need_lib_prefix=$need_lib_prefix
14749 # Do we need a version for libraries?
14750 need_version=$need_version
14752 # Whether dlopen is supported.
14753 dlopen_support=$enable_dlopen
14755 # Whether dlopen of programs is supported.
14756 dlopen_self=$enable_dlopen_self
14758 # Whether dlopen of statically linked programs is supported.
14759 dlopen_self_static=$enable_dlopen_self_static
14761 # Compiler flag to prevent dynamic linking.
14762 link_static_flag=$lt_lt_prog_compiler_static
14764 # Compiler flag to turn off builtin functions.
14765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14767 # Compiler flag to allow reflexive dlopens.
14768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14770 # Compiler flag to generate shared objects directly from archives.
14771 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14773 # Compiler flag to generate thread-safe objects.
14774 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14776 # Library versioning type.
14777 version_type=$version_type
14779 # Format of library name prefix.
14780 libname_spec=$lt_libname_spec
14782 # List of archive names. First name is the real one, the rest are links.
14783 # The last name is the one that the linker finds with -lNAME.
14784 library_names_spec=$lt_library_names_spec
14786 # The coded name of the library, if different from the real name.
14787 soname_spec=$lt_soname_spec
14789 # Commands used to build and install an old-style archive.
14791 old_archive_cmds=$lt_old_archive_cmds
14792 old_postinstall_cmds=$lt_old_postinstall_cmds
14793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14795 # Create an old-style archive from a shared archive.
14796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14798 # Create a temporary old-style archive to link instead of a shared archive.
14799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14801 # Commands used to build and install a shared archive.
14802 archive_cmds=$lt_archive_cmds
14803 archive_expsym_cmds=$lt_archive_expsym_cmds
14804 postinstall_cmds=$lt_postinstall_cmds
14805 postuninstall_cmds=$lt_postuninstall_cmds
14807 # Commands used to build a loadable module (assumed same as above if empty)
14808 module_cmds=$lt_module_cmds
14809 module_expsym_cmds=$lt_module_expsym_cmds
14811 # Commands to strip libraries.
14812 old_striplib=$lt_old_striplib
14813 striplib=$lt_striplib
14815 # Dependencies to place before the objects being linked to create a
14817 predep_objects=$lt_predep_objects
14819 # Dependencies to place after the objects being linked to create a
14821 postdep_objects=$lt_postdep_objects
14823 # Dependencies to place before the objects being linked to create a
14825 predeps=$lt_predeps
14827 # Dependencies to place after the objects being linked to create a
14829 postdeps=$lt_postdeps
14831 # The library search path used internally by the compiler when linking
14832 # a shared library.
14833 compiler_lib_search_path=$lt_compiler_lib_search_path
14835 # Method to check whether dependent libraries are shared objects.
14836 deplibs_check_method=$lt_deplibs_check_method
14838 # Command to use when deplibs_check_method == file_magic.
14839 file_magic_cmd=$lt_file_magic_cmd
14841 # Flag that allows shared libraries with undefined symbols to be built.
14842 allow_undefined_flag=$lt_allow_undefined_flag
14844 # Flag that forces no undefined symbols.
14845 no_undefined_flag=$lt_no_undefined_flag
14847 # Commands used to finish a libtool library installation in a directory.
14848 finish_cmds=$lt_finish_cmds
14850 # Same as above, but a single script fragment to be evaled but not shown.
14851 finish_eval=$lt_finish_eval
14853 # Take the output of nm and produce a listing of raw symbols and C names.
14854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14856 # Transform the output of nm in a proper C declaration
14857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14859 # Transform the output of nm in a C name address pair
14860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14862 # This is the shared library runtime path variable.
14863 runpath_var=$runpath_var
14865 # This is the shared library path variable.
14866 shlibpath_var=$shlibpath_var
14868 # Is shlibpath searched before the hard-coded library search path?
14869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14871 # How to hardcode a shared library path into an executable.
14872 hardcode_action=$hardcode_action
14874 # Whether we should hardcode library paths into libraries.
14875 hardcode_into_libs=$hardcode_into_libs
14877 # Flag to hardcode \$libdir into a binary during linking.
14878 # This must work even if \$libdir does not exist.
14879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14881 # If ld is used when linking, flag to hardcode \$libdir into
14882 # a binary during linking. This must work even if \$libdir does
14884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14886 # Whether we need a single -rpath flag with a separated argument.
14887 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14889 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14890 # resulting binary.
14891 hardcode_direct=$hardcode_direct
14893 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14894 # resulting binary.
14895 hardcode_minus_L=$hardcode_minus_L
14897 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14898 # the resulting binary.
14899 hardcode_shlibpath_var=$hardcode_shlibpath_var
14901 # Set to yes if building a shared library automatically hardcodes DIR into the library
14902 # and all subsequent libraries and executables linked against it.
14903 hardcode_automatic=$hardcode_automatic
14905 # Variables whose values should be saved in libtool wrapper scripts and
14906 # restored at relink time.
14907 variables_saved_for_relink="$variables_saved_for_relink"
14909 # Whether libtool must link a program against all its dependency libraries.
14910 link_all_deplibs=$link_all_deplibs
14912 # Compile-time system search path for libraries
14913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14915 # Run-time system search path for libraries
14916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14918 # Fix the shell variable \$srcfile for the compiler.
14919 fix_srcfile_path="$fix_srcfile_path"
14921 # Set to yes if exported symbols are required.
14922 always_export_symbols=$always_export_symbols
14924 # The commands to list exported symbols.
14925 export_symbols_cmds=$lt_export_symbols_cmds
14927 # The commands to extract the exported symbol list from a shared archive.
14928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14930 # Symbols that should not be listed in the preloaded symbols.
14931 exclude_expsyms=$lt_exclude_expsyms
14933 # Symbols that must always be exported.
14934 include_expsyms=$lt_include_expsyms
14936 # ### END LIBTOOL CONFIG
14943 cat <<\EOF >> "$cfgfile"
14945 # AIX sometimes has problems with the GCC collect2 program. For some
14946 # reason, if we set the COLLECT_NAMES environment variable, the problems
14947 # vanish in a puff of smoke.
14948 if test "X${COLLECT_NAMES+set}" != Xset; then
14950 export COLLECT_NAMES
14956 # We use sed instead of cat because bash on DJGPP gets confused if
14957 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14958 # text mode, it properly converts lines to CR/LF. This bash problem
14959 # is reportedly fixed, but why not run on old versions too?
14960 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14962 mv -f "$cfgfile" "$ofile" || \
14963 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14967 # If there is no Makefile yet, we rely on a make rule to execute
14968 # `config.status --recheck' to rerun these tests and create the
14969 # libtool script then.
14970 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14971 if test -f "$ltmain_in"; then
14972 test -f Makefile && make "$ltmain"
14978 ac_cpp='$CPP $CPPFLAGS'
14979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14986 # Check whether --with-tags or --without-tags was given.
14987 if test "${with_tags+set}" = set; then
14988 withval="$with_tags"
14989 tagnames="$withval"
14992 if test -f "$ltmain" && test -n "$tagnames"; then
14993 if test ! -f "${ofile}"; then
14994 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14995 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14998 if test -z "$LTCC"; then
14999 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15000 if test -z "$LTCC"; then
15001 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15002 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15005 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15009 # Extract list of available tagged configurations in $ofile.
15010 # Note that this assumes the entire list is on one line.
15011 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15014 for tagname in $tagnames; do
15016 # Check whether tagname contains only valid characters
15017 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15019 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15020 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15021 { (exit 1); exit 1; }; }
15025 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15027 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15028 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15029 { (exit 1); exit 1; }; }
15032 # Update the list of available tags.
15033 if test -n "$tagname"; then
15034 echo appending configuration tag "$tagname" to $ofile
15038 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15039 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15040 (test "X$CXX" != "Xg++"))) ; then
15042 ac_cpp='$CXXCPP $CPPFLAGS'
15043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15050 archive_cmds_need_lc_CXX=no
15051 allow_undefined_flag_CXX=
15052 always_export_symbols_CXX=no
15053 archive_expsym_cmds_CXX=
15054 export_dynamic_flag_spec_CXX=
15055 hardcode_direct_CXX=no
15056 hardcode_libdir_flag_spec_CXX=
15057 hardcode_libdir_flag_spec_ld_CXX=
15058 hardcode_libdir_separator_CXX=
15059 hardcode_minus_L_CXX=no
15060 hardcode_automatic_CXX=no
15062 module_expsym_cmds_CXX=
15063 link_all_deplibs_CXX=unknown
15064 old_archive_cmds_CXX=$old_archive_cmds
15065 no_undefined_flag_CXX=
15066 whole_archive_flag_spec_CXX=
15067 enable_shared_with_static_runtimes_CXX=no
15069 # Dependencies to place before and after the object being linked:
15070 predep_objects_CXX=
15071 postdep_objects_CXX=
15074 compiler_lib_search_path_CXX=
15076 # Source file extension for C++ test sources.
15079 # Object file extension for compiled C++ test sources.
15083 # Code to be used in simple compile tests
15084 lt_simple_compile_test_code="int some_variable = 0;\n"
15086 # Code to be used in simple link tests
15087 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15089 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15091 # If no C compiler was specified, use CC.
15094 # Allow CC to be a program name with arguments.
15098 # Allow CC to be a program name with arguments.
15103 lt_save_with_gnu_ld=$with_gnu_ld
15104 lt_save_path_LD=$lt_cv_path_LD
15105 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15106 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15108 unset lt_cv_prog_gnu_ld
15110 if test -n "${lt_cv_path_LDCXX+set}"; then
15111 lt_cv_path_LD=$lt_cv_path_LDCXX
15113 unset lt_cv_path_LD
15115 test -z "${LDCXX+set}" || LD=$LDCXX
15119 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15121 # We don't want -fno-exception wen compiling C++ code, so set the
15122 # no_builtin_flag separately
15123 if test "$GXX" = yes; then
15124 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15126 lt_prog_compiler_no_builtin_flag_CXX=
15129 if test "$GXX" = yes; then
15130 # Set up default GNU C++ configuration
15133 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15134 if test "${with_gnu_ld+set}" = set; then
15135 withval="$with_gnu_ld"
15136 test "$withval" = no || with_gnu_ld=yes
15141 if test "$GCC" = yes; then
15142 # Check if gcc -print-prog-name=ld gives a path.
15143 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15144 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15147 # gcc leaves a trailing carriage return which upsets mingw
15148 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15150 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15153 # Accept absolute paths.
15155 re_direlt='/[^/][^/]*/\.\./'
15156 # Canonicalize the pathname of ld
15157 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15158 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15159 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15161 test -z "$LD" && LD="$ac_prog"
15164 # If it fails, then pretend we aren't using GCC.
15168 # If it is relative, then search for the first ld in PATH.
15169 with_gnu_ld=unknown
15172 elif test "$with_gnu_ld" = yes; then
15173 echo "$as_me:$LINENO: checking for GNU ld" >&5
15174 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15176 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15177 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15179 if test "${lt_cv_path_LD+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15182 if test -z "$LD"; then
15183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15184 for ac_dir in $PATH; do
15186 test -z "$ac_dir" && ac_dir=.
15187 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15188 lt_cv_path_LD="$ac_dir/$ac_prog"
15189 # Check to see if the program is GNU ld. I'd rather use --version,
15190 # but apparently some GNU ld's only accept -v.
15191 # Break only if it was the GNU/non-GNU ld that we prefer.
15192 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15193 *GNU* | *'with BFD'*)
15194 test "$with_gnu_ld" != no && break
15197 test "$with_gnu_ld" != yes && break
15204 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15208 LD="$lt_cv_path_LD"
15209 if test -n "$LD"; then
15210 echo "$as_me:$LINENO: result: $LD" >&5
15211 echo "${ECHO_T}$LD" >&6
15213 echo "$as_me:$LINENO: result: no" >&5
15214 echo "${ECHO_T}no" >&6
15216 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15217 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15218 { (exit 1); exit 1; }; }
15219 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15220 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15221 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15225 case `$LD -v 2>&1 </dev/null` in
15226 *GNU* | *'with BFD'*)
15227 lt_cv_prog_gnu_ld=yes
15230 lt_cv_prog_gnu_ld=no
15234 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15235 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15236 with_gnu_ld=$lt_cv_prog_gnu_ld
15240 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15241 # archiving commands below assume that GNU ld is being used.
15242 if test "$with_gnu_ld" = yes; then
15243 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15244 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'
15246 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15247 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15249 # If archive_cmds runs LD, not CC, wlarc should be empty
15250 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15251 # investigate it a little bit more. (MM)
15254 # ancient GNU ld didn't support --whole-archive et. al.
15255 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15256 grep 'no-whole-archive' > /dev/null; then
15257 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15259 whole_archive_flag_spec_CXX=
15265 # A generic and very simple default shared library creation
15266 # command for GNU C++ for the case where it uses the native
15267 # linker, instead of GNU ld. If possible, this setting should
15268 # overridden to take advantage of the native linker features on
15269 # the platform it is being used on.
15270 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15273 # Commands to make compiler produce verbose output that lists
15274 # what "hidden" libraries, object files and flags are used when
15275 # linking a shared library.
15276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15284 # PORTME: fill in a description of your system's C++ link characteristics
15285 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15290 # FIXME: insert proper C++ library support
15294 if test "$host_cpu" = ia64; then
15295 # On IA64, the linker does run time linking by default, so we don't
15296 # have to do anything special.
15297 aix_use_runtimelinking=no
15298 exp_sym_flag='-Bexport'
15301 aix_use_runtimelinking=no
15303 # Test if we are trying to use run time linking or normal
15304 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15305 # need to do runtime linking.
15306 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15307 for ld_flag in $LDFLAGS; do
15310 aix_use_runtimelinking=yes
15317 exp_sym_flag='-bexport'
15318 no_entry_flag='-bnoentry'
15321 # When large executables or shared objects are built, AIX ld can
15322 # have problems creating the table of contents. If linking a library
15323 # or program results in "error TOC overflow" add -mminimal-toc to
15324 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15325 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15327 archive_cmds_CXX=''
15328 hardcode_direct_CXX=yes
15329 hardcode_libdir_separator_CXX=':'
15330 link_all_deplibs_CXX=yes
15332 if test "$GXX" = yes; then
15333 case $host_os in aix4.012|aix4.012.*)
15334 # We only want to do this on AIX 4.2 and lower, the check
15335 # below for broken collect2 doesn't work under 4.3+
15336 collect2name=`${CC} -print-prog-name=collect2`
15337 if test -f "$collect2name" && \
15338 strings "$collect2name" | grep resolve_lib_name >/dev/null
15340 # We have reworked collect2
15341 hardcode_direct_CXX=yes
15343 # We have old collect2
15344 hardcode_direct_CXX=unsupported
15345 # It fails to find uninstalled libraries when the uninstalled
15346 # path is not listed in the libpath. Setting hardcode_minus_L
15347 # to unsupported forces relinking
15348 hardcode_minus_L_CXX=yes
15349 hardcode_libdir_flag_spec_CXX='-L$libdir'
15350 hardcode_libdir_separator_CXX=
15353 shared_flag='-shared'
15356 if test "$host_cpu" = ia64; then
15357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15358 # chokes on -Wl,-G. The following line is correct:
15361 if test "$aix_use_runtimelinking" = yes; then
15362 shared_flag='${wl}-G'
15364 shared_flag='${wl}-bM:SRE'
15369 # It seems that -bexpall does not export symbols beginning with
15370 # underscore (_), so it is better to generate a list of symbols to export.
15371 always_export_symbols_CXX=yes
15372 if test "$aix_use_runtimelinking" = yes; then
15373 # Warning - without using the other runtime loading flags (-brtl),
15374 # -berok will link without error, but may produce a broken library.
15375 allow_undefined_flag_CXX='-berok'
15376 # Determine the default libpath from the value encoded in an empty executable.
15377 cat >conftest.$ac_ext <<_ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15392 rm -f conftest.$ac_objext conftest$ac_exeext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15394 (eval $ac_link) 2>conftest.er1
15396 grep -v '^ *+' conftest.er1 >conftest.err
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
15401 { ac_try='test -z "$ac_cxx_werror_flag"
15402 || test ! -s conftest.err'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15417 # Check for a 64-bit object if we didn't find anything.
15418 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; }
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15425 rm -f conftest.err conftest.$ac_objext \
15426 conftest$ac_exeext conftest.$ac_ext
15427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15429 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15431 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"
15433 if test "$host_cpu" = ia64; then
15434 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15435 allow_undefined_flag_CXX="-z nodefs"
15436 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"
15438 # Determine the default libpath from the value encoded in an empty executable.
15439 cat >conftest.$ac_ext <<_ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h. */
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456 (eval $ac_link) 2>conftest.er1
15458 grep -v '^ *+' conftest.er1 >conftest.err
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_cxx_werror_flag"
15464 || test ! -s conftest.err'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; } &&
15470 { ac_try='test -s conftest$ac_exeext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15479 # Check for a 64-bit object if we didn't find anything.
15480 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; }
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15487 rm -f conftest.err conftest.$ac_objext \
15488 conftest$ac_exeext conftest.$ac_ext
15489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15491 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15492 # Warning - without using the other run time loading flags,
15493 # -berok will link without error, but may produce a broken library.
15494 no_undefined_flag_CXX=' ${wl}-bernotok'
15495 allow_undefined_flag_CXX=' ${wl}-berok'
15496 # -bexpall does not export symbols beginning with underscore (_)
15497 always_export_symbols_CXX=yes
15498 # Exported symbols can be pulled into shared objects from archives
15499 whole_archive_flag_spec_CXX=' '
15500 archive_cmds_need_lc_CXX=yes
15501 # This is similar to how AIX traditionally builds it's shared libraries.
15502 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'
15507 case $cc_basename in
15509 # FIXME: insert proper C++ library support
15516 cygwin* | mingw* | pw32*)
15517 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15518 # as there is no search path for DLLs.
15519 hardcode_libdir_flag_spec_CXX='-L$libdir'
15520 allow_undefined_flag_CXX=unsupported
15521 always_export_symbols_CXX=no
15522 enable_shared_with_static_runtimes_CXX=yes
15524 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15525 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'
15526 # If the export-symbols file already is a .def file (1st line
15527 # is EXPORTS), use it as is; otherwise, prepend...
15528 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15529 cp $export_symbols $output_objdir/$soname.def;
15531 echo EXPORTS > $output_objdir/$soname.def;
15532 cat $export_symbols >> $output_objdir/$soname.def;
15534 $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'
15539 darwin* | rhapsody*)
15541 rhapsody* | darwin1.[012])
15542 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15545 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15546 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15548 case ${MACOSX_DEPLOYMENT_TARGET} in
15550 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15553 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15559 archive_cmds_need_lc_CXX=no
15560 hardcode_direct_CXX=no
15561 hardcode_automatic_CXX=yes
15562 hardcode_shlibpath_var_CXX=unsupported
15563 whole_archive_flag_spec_CXX=''
15564 link_all_deplibs_CXX=yes
15566 if test "$GXX" = yes ; then
15567 lt_int_apple_cc_single_mod=no
15568 output_verbose_link_cmd='echo'
15569 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15570 lt_int_apple_cc_single_mod=yes
15572 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15573 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15575 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'
15577 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15578 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15579 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15580 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}'
15582 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}'
15584 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}'
15586 case "$cc_basename" in
15588 output_verbose_link_cmd='echo'
15589 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'
15590 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15591 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15592 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}'
15593 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}'
15603 case $cc_basename in
15605 # FIXME: insert proper C++ library support
15609 # Green Hills C++ Compiler
15610 # FIXME: insert proper C++ library support
15614 # FIXME: insert proper C++ library support
15620 # C++ shared libraries reported to be fairly broken before switch to ELF
15624 archive_cmds_need_lc_CXX=no
15626 freebsd* | kfreebsd*-gnu)
15627 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15634 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15635 hardcode_libdir_separator_CXX=:
15636 export_dynamic_flag_spec_CXX='${wl}-E'
15637 hardcode_direct_CXX=yes
15638 hardcode_minus_L_CXX=yes # Not in the search PATH,
15639 # but as the default
15640 # location of the library.
15642 case $cc_basename in
15644 # FIXME: insert proper C++ library support
15648 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'
15649 # Commands to make compiler produce verbose output that lists
15650 # what "hidden" libraries, object files and flags are used when
15651 # linking a shared library.
15653 # There doesn't appear to be a way to prevent this compiler from
15654 # explicitly linking system object files so we need to strip them
15655 # from the output so that they don't get included in the library
15657 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'
15660 if test "$GXX" = yes; then
15661 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'
15663 # FIXME: insert proper C++ library support
15670 if test $with_gnu_ld = no; then
15671 case "$host_cpu" in
15673 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15674 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15675 hardcode_libdir_separator_CXX=:
15678 hardcode_libdir_flag_spec_CXX='-L$libdir'
15681 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15682 hardcode_libdir_separator_CXX=:
15683 export_dynamic_flag_spec_CXX='${wl}-E'
15687 case "$host_cpu" in
15689 hardcode_direct_CXX=no
15690 hardcode_shlibpath_var_CXX=no
15693 hardcode_direct_CXX=no
15694 hardcode_shlibpath_var_CXX=no
15695 hardcode_minus_L_CXX=yes # Not in the search PATH,
15696 # but as the default
15697 # location of the library.
15700 hardcode_direct_CXX=yes
15701 hardcode_minus_L_CXX=yes # Not in the search PATH,
15702 # but as the default
15703 # location of the library.
15707 case $cc_basename in
15709 # FIXME: insert proper C++ library support
15713 case "$host_cpu" in
15715 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15718 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15721 # Commands to make compiler produce verbose output that lists
15722 # what "hidden" libraries, object files and flags are used when
15723 # linking a shared library.
15725 # There doesn't appear to be a way to prevent this compiler from
15726 # explicitly linking system object files so we need to strip them
15727 # from the output so that they don't get included in the library
15729 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'
15732 if test "$GXX" = yes; then
15733 if test $with_gnu_ld = no; then
15734 case "$host_cpu" in
15736 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15739 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'
15744 # FIXME: insert proper C++ library support
15751 case $cc_basename in
15754 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'
15756 # Archives containing C++ object files must be created using
15757 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15758 # necessary to make sure instantiated templates are included
15760 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15763 if test "$GXX" = yes; then
15764 if test "$with_gnu_ld" = no; then
15765 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'
15767 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'
15770 link_all_deplibs_CXX=yes
15773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15774 hardcode_libdir_separator_CXX=:
15777 case $cc_basename in
15779 # Kuck and Associates, Inc. (KAI) C++ Compiler
15781 # KCC will only create a shared library if the output file
15782 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15783 # to its proper name (with version) after linking.
15784 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'
15785 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'
15786 # Commands to make compiler produce verbose output that lists
15787 # what "hidden" libraries, object files and flags are used when
15788 # linking a shared library.
15790 # There doesn't appear to be a way to prevent this compiler from
15791 # explicitly linking system object files so we need to strip them
15792 # from the output so that they don't get included in the library
15794 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'
15796 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15799 # Archives containing C++ object files must be created using
15800 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15801 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15806 # version 8.0 and above of icpc choke on multiply defined symbols
15807 # if we add $predep_objects and $postdep_objects, however 7.1 and
15808 # earlier do not add the objects themselves.
15809 case `$CC -V 2>&1` in
15811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812 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'
15814 *) # Version 8.0 or newer
15815 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15816 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15819 archive_cmds_need_lc_CXX=no
15820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15822 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15826 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15827 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'
15829 runpath_var=LD_RUN_PATH
15830 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15831 hardcode_libdir_separator_CXX=:
15833 # Commands to make compiler produce verbose output that lists
15834 # what "hidden" libraries, object files and flags are used when
15835 # linking a shared library.
15837 # There doesn't appear to be a way to prevent this compiler from
15838 # explicitly linking system object files so we need to strip them
15839 # from the output so that they don't get included in the library
15841 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'
15846 # FIXME: insert proper C++ library support
15850 # FIXME: insert proper C++ library support
15854 case $cc_basename in
15856 # FIXME: insert proper C++ library support
15860 # FIXME: insert proper C++ library support
15866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15867 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15869 hardcode_libdir_flag_spec_CXX='-R$libdir'
15870 hardcode_direct_CXX=yes
15871 hardcode_shlibpath_var_CXX=no
15873 # Workaround some broken pre-1.5 toolchains
15874 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15877 # C++ shared libraries are fairly broken
15881 hardcode_direct_CXX=yes
15882 hardcode_shlibpath_var_CXX=no
15883 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15886 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15887 export_dynamic_flag_spec_CXX='${wl}-E'
15888 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15890 output_verbose_link_cmd='echo'
15893 case $cc_basename in
15895 # Kuck and Associates, Inc. (KAI) C++ Compiler
15897 # KCC will only create a shared library if the output file
15898 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15899 # to its proper name (with version) after linking.
15900 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'
15902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15903 hardcode_libdir_separator_CXX=:
15905 # Archives containing C++ object files must be created using
15906 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15907 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15911 # Rational C++ 2.4.1
15912 # FIXME: insert proper C++ library support
15916 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15917 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'
15919 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15920 hardcode_libdir_separator_CXX=:
15922 # Commands to make compiler produce verbose output that lists
15923 # what "hidden" libraries, object files and flags are used when
15924 # linking a shared library.
15926 # There doesn't appear to be a way to prevent this compiler from
15927 # explicitly linking system object files so we need to strip them
15928 # from the output so that they don't get included in the library
15930 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'
15933 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15934 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15935 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'
15937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15938 hardcode_libdir_separator_CXX=:
15940 # Commands to make compiler produce verbose output that lists
15941 # what "hidden" libraries, object files and flags are used when
15942 # linking a shared library.
15943 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15946 # FIXME: insert proper C++ library support
15953 case $cc_basename in
15955 # Kuck and Associates, Inc. (KAI) C++ Compiler
15957 # KCC will only create a shared library if the output file
15958 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15959 # to its proper name (with version) after linking.
15960 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'
15962 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15963 hardcode_libdir_separator_CXX=:
15965 # Archives containing C++ object files must be created using
15966 # the KAI C++ compiler.
15967 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15970 # Rational C++ 2.4.1
15971 # FIXME: insert proper C++ library support
15975 allow_undefined_flag_CXX=' -expect_unresolved \*'
15976 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'
15977 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15978 echo "-hidden">> $lib.exp~
15979 $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~
15982 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15983 hardcode_libdir_separator_CXX=:
15985 # Commands to make compiler produce verbose output that lists
15986 # what "hidden" libraries, object files and flags are used when
15987 # linking a shared library.
15989 # There doesn't appear to be a way to prevent this compiler from
15990 # explicitly linking system object files so we need to strip them
15991 # from the output so that they don't get included in the library
15993 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'
15996 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15997 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15998 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'
16000 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16001 hardcode_libdir_separator_CXX=:
16003 # Commands to make compiler produce verbose output that lists
16004 # what "hidden" libraries, object files and flags are used when
16005 # linking a shared library.
16006 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16009 # FIXME: insert proper C++ library support
16016 # FIXME: insert proper C++ library support
16020 archive_cmds_need_lc_CXX=no
16021 case $cc_basename in
16023 # FIXME: insert proper C++ library support
16027 # FIXME: insert proper C++ library support
16033 case $cc_basename in
16036 # FIXME: insert proper C++ library support
16041 # FIXME: insert proper C++ library support
16045 # FIXME: insert proper C++ library support
16051 case $cc_basename in
16053 # Sun C++ 4.2, 5.x and Centerline C++
16054 no_undefined_flag_CXX=' -zdefs'
16055 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16056 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16057 $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'
16059 hardcode_libdir_flag_spec_CXX='-R$libdir'
16060 hardcode_shlibpath_var_CXX=no
16062 solaris2.0-5 | solaris2.0-5.*) ;;
16064 # The C++ compiler is used as linker so we must use $wl
16065 # flag to pass the commands to the underlying system
16067 # Supported since Solaris 2.6 (maybe 2.5.1?)
16068 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16071 link_all_deplibs_CXX=yes
16073 # Commands to make compiler produce verbose output that lists
16074 # what "hidden" libraries, object files and flags are used when
16075 # linking a shared library.
16077 # There doesn't appear to be a way to prevent this compiler from
16078 # explicitly linking system object files so we need to strip them
16079 # from the output so that they don't get included in the library
16081 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'
16083 # Archives containing C++ object files must be created using
16084 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16085 # necessary to make sure instantiated templates are included
16087 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16090 # Green Hills C++ Compiler
16091 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16093 # The C++ compiler must be used to create the archive.
16094 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16097 # GNU C++ compiler with Solaris linker
16098 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16099 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16100 if $CC --version | grep -v '^2\.7' > /dev/null; then
16101 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16102 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16103 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16105 # Commands to make compiler produce verbose output that lists
16106 # what "hidden" libraries, object files and flags are used when
16107 # linking a shared library.
16108 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16110 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16112 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16113 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16114 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16116 # Commands to make compiler produce verbose output that lists
16117 # what "hidden" libraries, object files and flags are used when
16118 # linking a shared library.
16119 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16122 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16127 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16128 archive_cmds_need_lc_CXX=no
16131 case $cc_basename in
16133 # NonStop-UX NCC 3.20
16134 # FIXME: insert proper C++ library support
16138 # FIXME: insert proper C++ library support
16144 # FIXME: insert proper C++ library support
16148 # FIXME: insert proper C++ library support
16152 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16153 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16154 test "$ld_shlibs_CXX" = no && can_build_shared=no
16160 cat > conftest.$ac_ext <<EOF
16164 Foo (void) { a = 0; }
16170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171 (eval $ac_compile) 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; then
16175 # Parse the compiler output and extract the necessary
16176 # objects, libraries and library flags.
16178 # Sentinel used to keep track of whether or not we are before
16179 # the conftest object file.
16180 pre_test_object_deps_done=no
16182 # The `*' in the case matches for architectures that use `case' in
16183 # $output_verbose_cmd can trigger glob expansion during the loop
16184 # eval without this substitution.
16185 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16187 for p in `eval $output_verbose_link_cmd`; do
16191 # Some compilers place space between "-{L,R}" and the path.
16192 # Remove the space.
16193 if test $p = "-L" \
16194 || test $p = "-R"; then
16201 if test "$pre_test_object_deps_done" = no; then
16204 # Internal compiler library paths should come after those
16205 # provided the user. The postdeps already come after the
16206 # user supplied libs so there is no need to process them.
16207 if test -z "$compiler_lib_search_path_CXX"; then
16208 compiler_lib_search_path_CXX="${prev}${p}"
16210 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16213 # The "-l" case would never come before the object being
16214 # linked, so don't bother handling this case.
16217 if test -z "$postdeps_CXX"; then
16218 postdeps_CXX="${prev}${p}"
16220 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16226 # This assumes that the test object file only shows up
16227 # once in the compiler output.
16228 if test "$p" = "conftest.$objext"; then
16229 pre_test_object_deps_done=yes
16233 if test "$pre_test_object_deps_done" = no; then
16234 if test -z "$predep_objects_CXX"; then
16235 predep_objects_CXX="$p"
16237 predep_objects_CXX="$predep_objects_CXX $p"
16240 if test -z "$postdep_objects_CXX"; then
16241 postdep_objects_CXX="$p"
16243 postdep_objects_CXX="$postdep_objects_CXX $p"
16248 *) ;; # Ignore the rest.
16256 echo "libtool.m4: error: problem compiling CXX test program"
16259 $rm -f confest.$objext
16261 case " $postdeps_CXX " in
16262 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16265 lt_prog_compiler_wl_CXX=
16266 lt_prog_compiler_pic_CXX=
16267 lt_prog_compiler_static_CXX=
16269 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16270 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16272 # C++ specific cases for pic, static, wl, etc.
16273 if test "$GXX" = yes; then
16274 lt_prog_compiler_wl_CXX='-Wl,'
16275 lt_prog_compiler_static_CXX='-static'
16279 # All AIX code is PIC.
16280 if test "$host_cpu" = ia64; then
16281 # AIX 5 now supports IA64 processor
16282 lt_prog_compiler_static_CXX='-Bstatic'
16286 # FIXME: we need at least 68020 code to build shared libraries, but
16287 # adding the `-m68020' flag to GCC prevents building anything better,
16289 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16291 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16292 # PIC is the default for these OSes.
16294 mingw* | os2* | pw32*)
16295 # This hack is so that the source file can tell whether it is being
16296 # built for inclusion in a dll (and should export symbols for example).
16297 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16299 darwin* | rhapsody*)
16300 # PIC is the default on this platform
16301 # Common symbols not allowed in MH_DYLIB files
16302 lt_prog_compiler_pic_CXX='-fno-common'
16305 # DJGPP does not support shared libraries at all
16306 lt_prog_compiler_pic_CXX=
16309 if test -d /usr/nec; then
16310 lt_prog_compiler_pic_CXX=-Kconform_pic
16314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16315 # not for PA HP-UX.
16316 case "$host_cpu" in
16320 lt_prog_compiler_pic_CXX='-fPIC'
16325 lt_prog_compiler_pic_CXX='-fPIC'
16331 # All AIX code is PIC.
16332 if test "$host_cpu" = ia64; then
16333 # AIX 5 now supports IA64 processor
16334 lt_prog_compiler_static_CXX='-Bstatic'
16336 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16340 case $cc_basename in
16342 # Green Hills C++ Compiler
16343 # _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"
16348 # PIC is the default on this platform
16349 # Common symbols not allowed in MH_DYLIB files
16350 case "$cc_basename" in
16352 lt_prog_compiler_pic_CXX='-qnocommon'
16353 lt_prog_compiler_wl_CXX='-Wl,'
16358 case $cc_basename in
16360 lt_prog_compiler_pic_CXX='-KPIC'
16363 # Green Hills C++ Compiler
16364 lt_prog_compiler_pic_CXX='-pic'
16370 freebsd* | kfreebsd*-gnu)
16371 # FreeBSD uses GNU C++
16373 hpux9* | hpux10* | hpux11*)
16374 case $cc_basename in
16376 lt_prog_compiler_wl_CXX='-Wl,'
16377 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16378 if test "$host_cpu" != ia64; then
16379 lt_prog_compiler_pic_CXX='+Z'
16383 lt_prog_compiler_wl_CXX='-Wl,'
16384 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16385 case "$host_cpu" in
16390 lt_prog_compiler_pic_CXX='+Z'
16398 irix5* | irix6* | nonstopux*)
16399 case $cc_basename in
16401 lt_prog_compiler_wl_CXX='-Wl,'
16402 lt_prog_compiler_static_CXX='-non_shared'
16403 # CC pic flag -KPIC is the default.
16410 case $cc_basename in
16413 lt_prog_compiler_wl_CXX='--backend -Wl,'
16414 lt_prog_compiler_pic_CXX='-fPIC'
16418 lt_prog_compiler_wl_CXX='-Wl,'
16419 lt_prog_compiler_pic_CXX='-KPIC'
16420 lt_prog_compiler_static_CXX='-static'
16424 # Make sure the PIC flag is empty. It appears that all Alpha
16425 # Linux and Compaq Tru64 Unix objects are PIC.
16426 lt_prog_compiler_pic_CXX=
16427 lt_prog_compiler_static_CXX='-non_shared'
16438 case $cc_basename in
16440 lt_prog_compiler_pic_CXX='-W c,exportall'
16448 osf3* | osf4* | osf5*)
16449 case $cc_basename in
16451 lt_prog_compiler_wl_CXX='--backend -Wl,'
16454 # Rational C++ 2.4.1
16455 lt_prog_compiler_pic_CXX='-pic'
16458 # Digital/Compaq C++
16459 lt_prog_compiler_wl_CXX='-Wl,'
16460 # Make sure the PIC flag is empty. It appears that all Alpha
16461 # Linux and Compaq Tru64 Unix objects are PIC.
16462 lt_prog_compiler_pic_CXX=
16463 lt_prog_compiler_static_CXX='-non_shared'
16472 case $cc_basename in
16474 lt_prog_compiler_pic_CXX='-fPIC'
16481 case $cc_basename in
16483 # Sun C++ 4.2, 5.x and Centerline C++
16484 lt_prog_compiler_pic_CXX='-KPIC'
16485 lt_prog_compiler_static_CXX='-Bstatic'
16486 lt_prog_compiler_wl_CXX='-Qoption ld '
16489 # Green Hills C++ Compiler
16490 lt_prog_compiler_pic_CXX='-PIC'
16497 case $cc_basename in
16500 lt_prog_compiler_pic_CXX='-pic'
16501 lt_prog_compiler_static_CXX='-Bstatic'
16505 lt_prog_compiler_pic_CXX='-pic'
16512 case $cc_basename in
16514 # NonStop-UX NCC 3.20
16515 lt_prog_compiler_pic_CXX='-KPIC'
16526 lt_prog_compiler_can_build_shared_CXX=no
16531 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16532 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16535 # Check to make sure the PIC flag actually works.
16537 if test -n "$lt_prog_compiler_pic_CXX"; then
16539 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16540 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16541 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 lt_prog_compiler_pic_works_CXX=no
16545 ac_outfile=conftest.$ac_objext
16546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16547 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16548 # Insert the option either (1) after the last *FLAGS variable, or
16549 # (2) before a word containing "conftest.", or (3) at the end.
16550 # Note that $ac_compile itself does not contain backslashes and begins
16551 # with a dollar sign (not a hyphen), so the echo should work correctly.
16552 # The option is referenced via a variable to avoid confusing sed.
16553 lt_compile=`echo "$ac_compile" | $SED \
16554 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16556 -e 's:$: $lt_compiler_flag:'`
16557 (eval echo "\"\$as_me:16557: $lt_compile\"" >&5)
16558 (eval "$lt_compile" 2>conftest.err)
16560 cat conftest.err >&5
16561 echo "$as_me:16561: \$? = $ac_status" >&5
16562 if (exit $ac_status) && test -s "$ac_outfile"; then
16563 # The compiler can only warn and ignore the option if not recognized
16564 # So say no if there are warnings
16565 if test ! -s conftest.err; then
16566 lt_prog_compiler_pic_works_CXX=yes
16572 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16573 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16575 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16576 case $lt_prog_compiler_pic_CXX in
16578 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16581 lt_prog_compiler_pic_CXX=
16582 lt_prog_compiler_can_build_shared_CXX=no
16587 # For platforms which do not support PIC, -DPIC is meaningless:
16589 lt_prog_compiler_pic_CXX=
16592 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16596 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16597 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16598 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16601 lt_cv_prog_compiler_c_o_CXX=no
16602 $rm -r conftest 2>/dev/null
16606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16608 lt_compiler_flag="-o out/conftest2.$ac_objext"
16609 # Insert the option either (1) after the last *FLAGS variable, or
16610 # (2) before a word containing "conftest.", or (3) at the end.
16611 # Note that $ac_compile itself does not contain backslashes and begins
16612 # with a dollar sign (not a hyphen), so the echo should work correctly.
16613 lt_compile=`echo "$ac_compile" | $SED \
16614 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16616 -e 's:$: $lt_compiler_flag:'`
16617 (eval echo "\"\$as_me:16617: $lt_compile\"" >&5)
16618 (eval "$lt_compile" 2>out/conftest.err)
16620 cat out/conftest.err >&5
16621 echo "$as_me:16621: \$? = $ac_status" >&5
16622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16624 # The compiler can only warn and ignore the option if not recognized
16625 # So say no if there are warnings
16626 if test ! -s out/conftest.err; then
16627 lt_cv_prog_compiler_c_o_CXX=yes
16632 # SGI C++ compiler will create directory out/ii_files/ for
16633 # template instantiation
16634 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16635 $rm out/* && rmdir out
16641 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16642 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16645 hard_links="nottested"
16646 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16647 # do not overwrite the value of need_locks provided by the user
16648 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16649 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16654 ln conftest.a conftest.b 2>&5 || hard_links=no
16655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16656 echo "$as_me:$LINENO: result: $hard_links" >&5
16657 echo "${ECHO_T}$hard_links" >&6
16658 if test "$hard_links" = no; then
16659 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16660 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16667 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16668 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16670 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16673 # If we're using GNU nm, then we don't want the "-C" option.
16674 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16675 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16676 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'
16678 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'
16682 export_symbols_cmds_CXX="$ltdll_cmds"
16685 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16688 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16692 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16693 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16694 test "$ld_shlibs_CXX" = no && can_build_shared=no
16696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16697 if test "$GCC" = yes; then
16698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16702 # Do we need to explicitly link libc?
16704 case "x$archive_cmds_need_lc_CXX" in
16706 # Assume -lc should be added
16707 archive_cmds_need_lc_CXX=yes
16709 if test "$enable_shared" = yes && test "$GCC" = yes; then
16710 case $archive_cmds_CXX in
16712 # FIXME: we may have to deal with multi-command sequences.
16715 # Test whether the compiler implicitly links with -lc since on some
16716 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16717 # to ld, don't add -lc before -lgcc.
16718 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16719 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16724 (eval $ac_compile) 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } 2>conftest.err; then
16730 libobjs=conftest.$ac_objext
16732 wl=$lt_prog_compiler_wl_CXX
16738 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16739 allow_undefined_flag_CXX=
16740 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16741 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }
16746 archive_cmds_need_lc_CXX=no
16748 archive_cmds_need_lc_CXX=yes
16750 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16752 cat conftest.err 1>&5
16755 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16756 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16763 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16764 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16765 library_names_spec=
16766 libname_spec='lib$name'
16770 postuninstall_cmds=
16774 shlibpath_overrides_runpath=unknown
16776 dynamic_linker="$host_os ld.so"
16777 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16778 if test "$GCC" = yes; then
16779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16780 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16781 # if the path contains ";" then we assume it to be the separator
16782 # otherwise default to the standard path separator (i.e. ":") - it is
16783 # assumed that no part of a normal pathname contains ";" but that should
16784 # okay in the real world where ";" in dirpaths is itself problematic.
16785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16790 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16792 need_lib_prefix=unknown
16793 hardcode_into_libs=no
16795 # when you set need_version to no, make sure it does not cause -set_version
16796 # flags to be left without arguments
16797 need_version=unknown
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16803 shlibpath_var=LIBPATH
16805 # AIX 3 has no versioning support, so we append a major version to the name.
16806 soname_spec='${libname}${release}${shared_ext}$major'
16813 hardcode_into_libs=yes
16814 if test "$host_cpu" = ia64; then
16815 # AIX 5 supports IA64
16816 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16817 shlibpath_var=LD_LIBRARY_PATH
16819 # With GCC up to 2.95.x, collect2 would create an import file
16820 # for dependence libraries. The import file would start with
16821 # the line `#! .'. This would cause the generated library to
16822 # depend on `.', always an invalid library. This was fixed in
16823 # development snapshots of GCC prior to 3.0.
16825 aix4 | aix4.[01] | aix4.[01].*)
16826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16828 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16831 can_build_shared=no
16835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16836 # soname into executable. Probably we can add versioning support to
16837 # collect2, so additional links can be useful in future.
16838 if test "$aix_use_runtimelinking" = yes; then
16839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16840 # instead of lib<name>.a to let people know that these are not
16841 # typical AIX shared libraries.
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 # We preserve .a as extension for shared libraries through AIX4.2
16845 # and later when we are not doing run time linking.
16846 library_names_spec='${libname}${release}.a $libname.a'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16849 shlibpath_var=LIBPATH
16854 library_names_spec='$libname.ixlibrary $libname.a'
16855 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16856 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'
16860 library_names_spec='${libname}${shared_ext}'
16861 dynamic_linker="$host_os ld.so"
16862 shlibpath_var=LIBRARY_PATH
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869 soname_spec='${libname}${release}${shared_ext}$major'
16870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16874 # the default ld.so.conf also contains /usr/contrib/lib and
16875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16876 # libtool to hard-code these into programs
16879 cygwin* | mingw* | pw32*)
16880 version_type=windows
16885 case $GCC,$host_os in
16886 yes,cygwin* | yes,mingw* | yes,pw32*)
16887 library_names_spec='$libname.dll.a'
16888 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16889 postinstall_cmds='base_file=`basename \${file}`~
16890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16891 dldir=$destdir/`dirname \$dlpath`~
16892 test -d \$dldir || mkdir -p \$dldir~
16893 $install_prog $dir/$dlname \$dldir/$dlname'
16894 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16895 dlpath=$dir/\$dldll~
16897 shlibpath_overrides_runpath=yes
16901 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16902 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16903 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16906 # MinGW DLLs use traditional 'lib' prefix
16907 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16908 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16909 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16910 # It is most probably a Windows format PATH printed by
16911 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16912 # path with ; separators, and with drive letters. We can handle the
16913 # drive letters (cygwin fileutils understands them), so leave them,
16914 # especially as we might pass files found there to a mingw objdump,
16915 # which wouldn't understand a cygwinified path. Ahh.
16916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16922 # pw32 DLLs use 'pw' prefix rather than 'lib'
16923 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16929 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16932 dynamic_linker='Win32 ld.exe'
16933 # FIXME: first we should search . and the directory the executable is in
16937 darwin* | rhapsody*)
16938 dynamic_linker="$host_os dyld"
16939 version_type=darwin
16942 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16943 soname_spec='${libname}${release}${major}$shared_ext'
16944 shlibpath_overrides_runpath=yes
16945 shlibpath_var=DYLD_LIBRARY_PATH
16946 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16947 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16948 if test "$GCC" = yes; then
16949 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"`
16951 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 shlibpath_var=LD_LIBRARY_PATH
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=no
16977 hardcode_into_libs=yes
16978 dynamic_linker='GNU ld.so'
16982 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16983 version_type=freebsd-$objformat
16984 case $version_type in
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16995 shlibpath_var=LD_LIBRARY_PATH
16998 shlibpath_overrides_runpath=yes
17000 freebsd3.01* | freebsdelf3.01*)
17001 shlibpath_overrides_runpath=yes
17002 hardcode_into_libs=yes
17005 shlibpath_overrides_runpath=no
17006 hardcode_into_libs=yes
17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17016 soname_spec='${libname}${release}${shared_ext}$major'
17017 shlibpath_var=LD_LIBRARY_PATH
17018 hardcode_into_libs=yes
17021 hpux9* | hpux10* | hpux11*)
17022 # Give a soname corresponding to the major version so that dld.sl refuses to
17023 # link against other versions.
17027 case "$host_cpu" in
17030 hardcode_into_libs=yes
17031 dynamic_linker="$host_os dld.so"
17032 shlibpath_var=LD_LIBRARY_PATH
17033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035 soname_spec='${libname}${release}${shared_ext}$major'
17036 if test "X$HPUX_IA64_MODE" = X32; then
17037 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17039 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17045 hardcode_into_libs=yes
17046 dynamic_linker="$host_os dld.sl"
17047 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17056 dynamic_linker="$host_os dld.sl"
17057 shlibpath_var=SHLIB_PATH
17058 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060 soname_spec='${libname}${release}${shared_ext}$major'
17063 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17064 postinstall_cmds='chmod 555 $lib'
17067 irix5* | irix6* | nonstopux*)
17069 nonstopux*) version_type=nonstopux ;;
17071 if test "$lt_cv_prog_gnu_ld" = yes; then
17079 soname_spec='${libname}${release}${shared_ext}$major'
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17082 irix5* | nonstopux*)
17083 libsuff= shlibsuff=
17086 case $LD in # libtool.m4 will add one of these switches to LD
17087 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17088 libsuff= shlibsuff= libmagic=32-bit;;
17089 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17090 libsuff=32 shlibsuff=N32 libmagic=N32;;
17091 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17092 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17093 *) libsuff= shlibsuff= libmagic=never-match;;
17097 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17098 shlibpath_overrides_runpath=no
17099 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17100 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17101 hardcode_into_libs=yes
17104 # No shared lib support for Linux oldld, aout, or coff.
17105 linux*oldld* | linux*aout* | linux*coff*)
17109 # This must be Linux ELF.
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 shlibpath_overrides_runpath=no
17119 # This implies no fast_install, which is unacceptable.
17120 # Some rework will be needed to allow for fast_install
17121 # before this can be enabled.
17122 hardcode_into_libs=yes
17124 # Append ld.so.conf contents to the search path
17125 if test -f /etc/ld.so.conf; then
17126 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17127 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17130 # We used to test for /lib/ld.so.1 and disable shared libraries on
17131 # powerpc, because MkLinux only supported shared libraries with the
17132 # GNU dynamic linker. Since this was broken with cross compilers,
17133 # most powerpc-linux boxes support dynamic linking these days and
17134 # people can always --disable-shared, the test was removed, and we
17135 # assume the GNU/Linux dynamic linker is in use.
17136 dynamic_linker='GNU/Linux ld.so'
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 shlibpath_var=LD_LIBRARY_PATH
17146 shlibpath_overrides_runpath=no
17147 hardcode_into_libs=yes
17148 dynamic_linker='GNU ld.so'
17155 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17158 dynamic_linker='NetBSD (a.out) ld.so'
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17161 soname_spec='${libname}${release}${shared_ext}$major'
17162 dynamic_linker='NetBSD ld.elf_so'
17164 shlibpath_var=LD_LIBRARY_PATH
17165 shlibpath_overrides_runpath=yes
17166 hardcode_into_libs=yes
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 shlibpath_overrides_runpath=yes
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath=yes
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17195 openbsd2.[89] | openbsd2.[89].*)
17196 shlibpath_overrides_runpath=no
17199 shlibpath_overrides_runpath=yes
17203 shlibpath_overrides_runpath=yes
17208 libname_spec='$name'
17211 library_names_spec='$libname${shared_ext} $libname.a'
17212 dynamic_linker='OS/2 ld.exe'
17213 shlibpath_var=LIBPATH
17216 osf3* | osf4* | osf5*)
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17224 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17231 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
17241 shlibpath_overrides_runpath=yes
17242 hardcode_into_libs=yes
17243 # ldd complains unless libraries are executable
17244 postinstall_cmds='chmod +x $lib'
17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17250 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17251 shlibpath_var=LD_LIBRARY_PATH
17252 shlibpath_overrides_runpath=yes
17253 if test "$with_gnu_ld" = yes; then
17259 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262 soname_spec='${libname}${release}${shared_ext}$major'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 case $host_vendor in
17266 shlibpath_overrides_runpath=no
17268 export_dynamic_flag_spec='${wl}-Blargedynsym'
17269 runpath_var=LD_RUN_PATH
17277 shlibpath_overrides_runpath=no
17278 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17284 if test -d /usr/nec ;then
17286 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17287 soname_spec='$libname${shared_ext}.$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 shlibpath_var=LD_LIBRARY_PATH
17303 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17304 echo "${ECHO_T}$dynamic_linker" >&6
17305 test "$dynamic_linker" = no && can_build_shared=no
17307 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17308 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17309 hardcode_action_CXX=
17310 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17311 test -n "$runpath_var_CXX" || \
17312 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17314 # We can hardcode non-existant directories.
17315 if test "$hardcode_direct_CXX" != no &&
17316 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17317 # have to relink, otherwise we might link with an installed library
17318 # when we should be linking with a yet-to-be-installed one
17319 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17320 test "$hardcode_minus_L_CXX" != no; then
17321 # Linking always hardcodes the temporary library directory.
17322 hardcode_action_CXX=relink
17324 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17325 hardcode_action_CXX=immediate
17328 # We cannot hardcode anything, or else we can only hardcode existing
17330 hardcode_action_CXX=unsupported
17332 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17333 echo "${ECHO_T}$hardcode_action_CXX" >&6
17335 if test "$hardcode_action_CXX" = relink; then
17336 # Fast installation is not supported
17337 enable_fast_install=no
17338 elif test "$shlibpath_overrides_runpath" = yes ||
17339 test "$enable_shared" = no; then
17340 # Fast installation is not necessary
17341 enable_fast_install=needless
17346 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17347 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17348 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17349 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17350 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17351 echo "$as_me:$LINENO: result: yes" >&5
17352 echo "${ECHO_T}yes" >&6
17354 # FIXME - insert some real tests, host_os isn't really good enough
17357 if test -n "$STRIP" ; then
17358 striplib="$STRIP -x"
17359 echo "$as_me:$LINENO: result: yes" >&5
17360 echo "${ECHO_T}yes" >&6
17362 echo "$as_me:$LINENO: result: no" >&5
17363 echo "${ECHO_T}no" >&6
17367 echo "$as_me:$LINENO: result: no" >&5
17368 echo "${ECHO_T}no" >&6
17373 if test "x$enable_dlopen" != xyes; then
17374 enable_dlopen=unknown
17375 enable_dlopen_self=unknown
17376 enable_dlopen_self_static=unknown
17383 lt_cv_dlopen="load_add_on"
17385 lt_cv_dlopen_self=yes
17389 lt_cv_dlopen="LoadLibrary"
17394 lt_cv_dlopen="dlopen"
17399 # if libdl is installed we need to link against it
17400 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17401 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 ac_check_lib_save_LIBS=$LIBS
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17414 /* Override any gcc2 internal prototype to avoid an error. */
17418 /* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17431 (eval $ac_link) 2>conftest.er1
17433 grep -v '^ *+' conftest.er1 >conftest.err
17435 cat conftest.err >&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
17438 { ac_try='test -z "$ac_cxx_werror_flag"
17439 || test ! -s conftest.err'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest$ac_exeext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_lib_dl_dlopen=yes
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 ac_cv_lib_dl_dlopen=no
17458 rm -f conftest.err conftest.$ac_objext \
17459 conftest$ac_exeext conftest.$ac_ext
17460 LIBS=$ac_check_lib_save_LIBS
17462 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17463 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17464 if test $ac_cv_lib_dl_dlopen = yes; then
17465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17468 lt_cv_dlopen="dyld"
17470 lt_cv_dlopen_self=yes
17477 echo "$as_me:$LINENO: checking for shl_load" >&5
17478 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17479 if test "${ac_cv_func_shl_load+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17482 cat >conftest.$ac_ext <<_ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17490 #define shl_load innocuous_shl_load
17492 /* System header to define __stub macros and hopefully few prototypes,
17493 which can conflict with char shl_load (); below.
17494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17495 <limits.h> exists even on freestanding compilers. */
17498 # include <limits.h>
17500 # include <assert.h>
17505 /* Override any gcc2 internal prototype to avoid an error. */
17510 /* We use char because int might match the return type of a gcc2
17511 builtin and then its argument prototype would still apply. */
17513 /* The GNU C library defines this for functions which it implements
17514 to always fail with ENOSYS. Some functions are actually named
17515 something starting with __ and the normal name is an alias. */
17516 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17519 char (*f) () = shl_load;
17528 return f != shl_load;
17533 rm -f conftest.$ac_objext conftest$ac_exeext
17534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17535 (eval $ac_link) 2>conftest.er1
17537 grep -v '^ *+' conftest.er1 >conftest.err
17539 cat conftest.err >&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } &&
17542 { ac_try='test -z "$ac_cxx_werror_flag"
17543 || test ! -s conftest.err'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest$ac_exeext'
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 ac_cv_func_shl_load=yes
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_cv_func_shl_load=no
17562 rm -f conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17565 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17566 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17567 if test $ac_cv_func_shl_load = yes; then
17568 lt_cv_dlopen="shl_load"
17570 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17571 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17572 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 ac_check_lib_save_LIBS=$LIBS
17577 cat >conftest.$ac_ext <<_ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17584 /* Override any gcc2 internal prototype to avoid an error. */
17588 /* We use char because int might match the return type of a gcc2
17589 builtin and then its argument prototype would still apply. */
17599 rm -f conftest.$ac_objext conftest$ac_exeext
17600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17601 (eval $ac_link) 2>conftest.er1
17603 grep -v '^ *+' conftest.er1 >conftest.err
17605 cat conftest.err >&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } &&
17608 { ac_try='test -z "$ac_cxx_werror_flag"
17609 || test ! -s conftest.err'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; } &&
17615 { ac_try='test -s conftest$ac_exeext'
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; }; then
17621 ac_cv_lib_dld_shl_load=yes
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 ac_cv_lib_dld_shl_load=no
17628 rm -f conftest.err conftest.$ac_objext \
17629 conftest$ac_exeext conftest.$ac_ext
17630 LIBS=$ac_check_lib_save_LIBS
17632 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17633 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17634 if test $ac_cv_lib_dld_shl_load = yes; then
17635 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17637 echo "$as_me:$LINENO: checking for dlopen" >&5
17638 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17639 if test "${ac_cv_func_dlopen+set}" = set; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17642 cat >conftest.$ac_ext <<_ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17650 #define dlopen innocuous_dlopen
17652 /* System header to define __stub macros and hopefully few prototypes,
17653 which can conflict with char dlopen (); below.
17654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17655 <limits.h> exists even on freestanding compilers. */
17658 # include <limits.h>
17660 # include <assert.h>
17665 /* Override any gcc2 internal prototype to avoid an error. */
17670 /* We use char because int might match the return type of a gcc2
17671 builtin and then its argument prototype would still apply. */
17673 /* The GNU C library defines this for functions which it implements
17674 to always fail with ENOSYS. Some functions are actually named
17675 something starting with __ and the normal name is an alias. */
17676 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17679 char (*f) () = dlopen;
17688 return f != dlopen;
17693 rm -f conftest.$ac_objext conftest$ac_exeext
17694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17695 (eval $ac_link) 2>conftest.er1
17697 grep -v '^ *+' conftest.er1 >conftest.err
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
17702 { ac_try='test -z "$ac_cxx_werror_flag"
17703 || test ! -s conftest.err'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest$ac_exeext'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 ac_cv_func_dlopen=yes
17717 echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17720 ac_cv_func_dlopen=no
17722 rm -f conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
17725 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17726 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17727 if test $ac_cv_func_dlopen = yes; then
17728 lt_cv_dlopen="dlopen"
17730 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17731 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17732 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17735 ac_check_lib_save_LIBS=$LIBS
17737 cat >conftest.$ac_ext <<_ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17744 /* Override any gcc2 internal prototype to avoid an error. */
17748 /* We use char because int might match the return type of a gcc2
17749 builtin and then its argument prototype would still apply. */
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>conftest.er1
17763 grep -v '^ *+' conftest.er1 >conftest.err
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
17768 { ac_try='test -z "$ac_cxx_werror_flag"
17769 || test ! -s conftest.err'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; } &&
17775 { ac_try='test -s conftest$ac_exeext'
17776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; }; then
17781 ac_cv_lib_dl_dlopen=yes
17783 echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17786 ac_cv_lib_dl_dlopen=no
17788 rm -f conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
17790 LIBS=$ac_check_lib_save_LIBS
17792 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17793 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17794 if test $ac_cv_lib_dl_dlopen = yes; then
17795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17797 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17798 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17799 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 ac_check_lib_save_LIBS=$LIBS
17803 LIBS="-lsvld $LIBS"
17804 cat >conftest.$ac_ext <<_ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17811 /* Override any gcc2 internal prototype to avoid an error. */
17815 /* We use char because int might match the return type of a gcc2
17816 builtin and then its argument prototype would still apply. */
17826 rm -f conftest.$ac_objext conftest$ac_exeext
17827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17828 (eval $ac_link) 2>conftest.er1
17830 grep -v '^ *+' conftest.er1 >conftest.err
17832 cat conftest.err >&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
17835 { ac_try='test -z "$ac_cxx_werror_flag"
17836 || test ! -s conftest.err'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; } &&
17842 { ac_try='test -s conftest$ac_exeext'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_cv_lib_svld_dlopen=yes
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 ac_cv_lib_svld_dlopen=no
17855 rm -f conftest.err conftest.$ac_objext \
17856 conftest$ac_exeext conftest.$ac_ext
17857 LIBS=$ac_check_lib_save_LIBS
17859 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17860 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17861 if test $ac_cv_lib_svld_dlopen = yes; then
17862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17864 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17865 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17866 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17869 ac_check_lib_save_LIBS=$LIBS
17871 cat >conftest.$ac_ext <<_ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17878 /* Override any gcc2 internal prototype to avoid an error. */
17882 /* We use char because int might match the return type of a gcc2
17883 builtin and then its argument prototype would still apply. */
17893 rm -f conftest.$ac_objext conftest$ac_exeext
17894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17895 (eval $ac_link) 2>conftest.er1
17897 grep -v '^ *+' conftest.er1 >conftest.err
17899 cat conftest.err >&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
17902 { ac_try='test -z "$ac_cxx_werror_flag"
17903 || test ! -s conftest.err'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest$ac_exeext'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_cv_lib_dld_dld_link=yes
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17920 ac_cv_lib_dld_dld_link=no
17922 rm -f conftest.err conftest.$ac_objext \
17923 conftest$ac_exeext conftest.$ac_ext
17924 LIBS=$ac_check_lib_save_LIBS
17926 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17927 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17928 if test $ac_cv_lib_dld_dld_link = yes; then
17929 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17950 if test "x$lt_cv_dlopen" != xno; then
17956 case $lt_cv_dlopen in
17958 save_CPPFLAGS="$CPPFLAGS"
17959 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17961 save_LDFLAGS="$LDFLAGS"
17962 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17965 LIBS="$lt_cv_dlopen_libs $LIBS"
17967 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17968 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17969 if test "${lt_cv_dlopen_self+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17972 if test "$cross_compiling" = yes; then :
17973 lt_cv_dlopen_self=cross
17975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17976 lt_status=$lt_dlunknown
17977 cat > conftest.$ac_ext <<EOF
17978 #line 17978 "configure"
17979 #include "confdefs.h"
17988 # define LT_DLGLOBAL RTLD_GLOBAL
17991 # define LT_DLGLOBAL DL_GLOBAL
17993 # define LT_DLGLOBAL 0
17997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17998 find out it does not work in some platform. */
17999 #ifndef LT_DLLAZY_OR_NOW
18001 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18004 # define LT_DLLAZY_OR_NOW DL_LAZY
18007 # define LT_DLLAZY_OR_NOW RTLD_NOW
18010 # define LT_DLLAZY_OR_NOW DL_NOW
18012 # define LT_DLLAZY_OR_NOW 0
18020 extern "C" void exit (int);
18023 void fnord() { int i=42;}
18026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18027 int status = $lt_dlunknown;
18031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18032 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18033 /* dlclose (self); */
18039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18040 (eval $ac_link) 2>&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18044 (./conftest; exit; ) 2>/dev/null
18046 case x$lt_status in
18047 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18048 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18049 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18052 # compilation failed
18053 lt_cv_dlopen_self=no
18060 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18061 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18063 if test "x$lt_cv_dlopen_self" = xyes; then
18064 LDFLAGS="$LDFLAGS $link_static_flag"
18065 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18066 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18067 if test "${lt_cv_dlopen_self_static+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 if test "$cross_compiling" = yes; then :
18071 lt_cv_dlopen_self_static=cross
18073 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18074 lt_status=$lt_dlunknown
18075 cat > conftest.$ac_ext <<EOF
18076 #line 18076 "configure"
18077 #include "confdefs.h"
18086 # define LT_DLGLOBAL RTLD_GLOBAL
18089 # define LT_DLGLOBAL DL_GLOBAL
18091 # define LT_DLGLOBAL 0
18095 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18096 find out it does not work in some platform. */
18097 #ifndef LT_DLLAZY_OR_NOW
18099 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18102 # define LT_DLLAZY_OR_NOW DL_LAZY
18105 # define LT_DLLAZY_OR_NOW RTLD_NOW
18108 # define LT_DLLAZY_OR_NOW DL_NOW
18110 # define LT_DLLAZY_OR_NOW 0
18118 extern "C" void exit (int);
18121 void fnord() { int i=42;}
18124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18125 int status = $lt_dlunknown;
18129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18130 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18131 /* dlclose (self); */
18137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18138 (eval $ac_link) 2>&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18142 (./conftest; exit; ) 2>/dev/null
18144 case x$lt_status in
18145 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18146 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18147 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18150 # compilation failed
18151 lt_cv_dlopen_self_static=no
18158 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18159 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18162 CPPFLAGS="$save_CPPFLAGS"
18163 LDFLAGS="$save_LDFLAGS"
18168 case $lt_cv_dlopen_self in
18169 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18170 *) enable_dlopen_self=unknown ;;
18173 case $lt_cv_dlopen_self_static in
18174 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18175 *) enable_dlopen_self_static=unknown ;;
18180 # The else clause should only fire when bootstrapping the
18181 # libtool distribution, otherwise you forgot to ship ltmain.sh
18182 # with your package, and you will get complaints that there are
18183 # no rules to generate ltmain.sh.
18184 if test -f "$ltmain"; then
18185 # See if we are running on zsh, and set the options which allow our commands through
18186 # without removal of \ escapes.
18187 if test -n "${ZSH_VERSION+set}" ; then
18188 setopt NO_GLOB_SUBST
18190 # Now quote all the things that may contain metacharacters while being
18191 # careful not to overquote the AC_SUBSTed values. We take copies of the
18192 # variables and quote the copies for generation of the libtool script.
18193 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18195 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18196 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18197 deplibs_check_method reload_flag reload_cmds need_locks \
18198 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18199 lt_cv_sys_global_symbol_to_c_name_address \
18200 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18201 old_postinstall_cmds old_postuninstall_cmds \
18205 lt_prog_compiler_wl_CXX \
18206 lt_prog_compiler_pic_CXX \
18207 lt_prog_compiler_static_CXX \
18208 lt_prog_compiler_no_builtin_flag_CXX \
18209 export_dynamic_flag_spec_CXX \
18210 thread_safe_flag_spec_CXX \
18211 whole_archive_flag_spec_CXX \
18212 enable_shared_with_static_runtimes_CXX \
18213 old_archive_cmds_CXX \
18214 old_archive_from_new_cmds_CXX \
18215 predep_objects_CXX \
18216 postdep_objects_CXX \
18219 compiler_lib_search_path_CXX \
18221 archive_expsym_cmds_CXX \
18222 postinstall_cmds_CXX \
18223 postuninstall_cmds_CXX \
18224 old_archive_from_expsyms_cmds_CXX \
18225 allow_undefined_flag_CXX \
18226 no_undefined_flag_CXX \
18227 export_symbols_cmds_CXX \
18228 hardcode_libdir_flag_spec_CXX \
18229 hardcode_libdir_flag_spec_ld_CXX \
18230 hardcode_libdir_separator_CXX \
18231 hardcode_automatic_CXX \
18233 module_expsym_cmds_CXX \
18234 lt_cv_prog_compiler_c_o_CXX \
18235 exclude_expsyms_CXX \
18236 include_expsyms_CXX; do
18239 old_archive_cmds_CXX | \
18240 old_archive_from_new_cmds_CXX | \
18241 archive_cmds_CXX | \
18242 archive_expsym_cmds_CXX | \
18243 module_cmds_CXX | \
18244 module_expsym_cmds_CXX | \
18245 old_archive_from_expsyms_cmds_CXX | \
18246 export_symbols_cmds_CXX | \
18247 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18248 postinstall_cmds | postuninstall_cmds | \
18249 old_postinstall_cmds | old_postuninstall_cmds | \
18250 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18251 # Double-quote double-evaled strings.
18252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18261 *'\$0 --fallback-echo"')
18262 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18268 cat <<__EOF__ >> "$cfgfile"
18269 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18273 # Shell to use when invoking shell scripts.
18276 # Whether or not to build shared libraries.
18277 build_libtool_libs=$enable_shared
18279 # Whether or not to build static libraries.
18280 build_old_libs=$enable_static
18282 # Whether or not to add -lc for building shared libraries.
18283 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18285 # Whether or not to disallow shared libs when runtime libs are static
18286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18288 # Whether or not to optimize for fast installation.
18289 fast_install=$enable_fast_install
18292 host_alias=$host_alias
18295 # An echo program that does not interpret backslashes.
18300 AR_FLAGS=$lt_AR_FLAGS
18305 # A language-specific compiler.
18306 CC=$lt_compiler_CXX
18308 # Is the compiler the GNU C compiler?
18314 # The linker used to build libraries.
18317 # Whether we need hard or soft links.
18320 # A BSD-compatible nm program.
18323 # A symbol stripping program
18326 # Used to examine libraries when file_magic_cmd begins "file"
18327 MAGIC_CMD=$MAGIC_CMD
18329 # Used on cygwin: DLL creation program.
18332 # Used on cygwin: object dumper.
18335 # Used on cygwin: assembler.
18338 # The name of the directory that contains temporary libtool files.
18341 # How to create reloadable object files.
18342 reload_flag=$lt_reload_flag
18343 reload_cmds=$lt_reload_cmds
18345 # How to pass a linker flag through the compiler.
18346 wl=$lt_lt_prog_compiler_wl_CXX
18348 # Object file suffix (normally "o").
18349 objext="$ac_objext"
18351 # Old archive suffix (normally "a").
18354 # Shared library suffix (normally ".so").
18355 shrext_cmds='$shrext_cmds'
18357 # Executable file suffix (normally "").
18360 # Additional compiler flags for building library objects.
18361 pic_flag=$lt_lt_prog_compiler_pic_CXX
18364 # What is the maximum length of a command?
18365 max_cmd_len=$lt_cv_sys_max_cmd_len
18367 # Does compiler simultaneously support -c and -o options?
18368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18370 # Must we lock files when doing compilation ?
18371 need_locks=$lt_need_locks
18373 # Do we need the lib prefix for modules?
18374 need_lib_prefix=$need_lib_prefix
18376 # Do we need a version for libraries?
18377 need_version=$need_version
18379 # Whether dlopen is supported.
18380 dlopen_support=$enable_dlopen
18382 # Whether dlopen of programs is supported.
18383 dlopen_self=$enable_dlopen_self
18385 # Whether dlopen of statically linked programs is supported.
18386 dlopen_self_static=$enable_dlopen_self_static
18388 # Compiler flag to prevent dynamic linking.
18389 link_static_flag=$lt_lt_prog_compiler_static_CXX
18391 # Compiler flag to turn off builtin functions.
18392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18394 # Compiler flag to allow reflexive dlopens.
18395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18397 # Compiler flag to generate shared objects directly from archives.
18398 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18400 # Compiler flag to generate thread-safe objects.
18401 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18403 # Library versioning type.
18404 version_type=$version_type
18406 # Format of library name prefix.
18407 libname_spec=$lt_libname_spec
18409 # List of archive names. First name is the real one, the rest are links.
18410 # The last name is the one that the linker finds with -lNAME.
18411 library_names_spec=$lt_library_names_spec
18413 # The coded name of the library, if different from the real name.
18414 soname_spec=$lt_soname_spec
18416 # Commands used to build and install an old-style archive.
18418 old_archive_cmds=$lt_old_archive_cmds_CXX
18419 old_postinstall_cmds=$lt_old_postinstall_cmds
18420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18422 # Create an old-style archive from a shared archive.
18423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18425 # Create a temporary old-style archive to link instead of a shared archive.
18426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18428 # Commands used to build and install a shared archive.
18429 archive_cmds=$lt_archive_cmds_CXX
18430 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18431 postinstall_cmds=$lt_postinstall_cmds
18432 postuninstall_cmds=$lt_postuninstall_cmds
18434 # Commands used to build a loadable module (assumed same as above if empty)
18435 module_cmds=$lt_module_cmds_CXX
18436 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18438 # Commands to strip libraries.
18439 old_striplib=$lt_old_striplib
18440 striplib=$lt_striplib
18442 # Dependencies to place before the objects being linked to create a
18444 predep_objects=$lt_predep_objects_CXX
18446 # Dependencies to place after the objects being linked to create a
18448 postdep_objects=$lt_postdep_objects_CXX
18450 # Dependencies to place before the objects being linked to create a
18452 predeps=$lt_predeps_CXX
18454 # Dependencies to place after the objects being linked to create a
18456 postdeps=$lt_postdeps_CXX
18458 # The library search path used internally by the compiler when linking
18459 # a shared library.
18460 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18462 # Method to check whether dependent libraries are shared objects.
18463 deplibs_check_method=$lt_deplibs_check_method
18465 # Command to use when deplibs_check_method == file_magic.
18466 file_magic_cmd=$lt_file_magic_cmd
18468 # Flag that allows shared libraries with undefined symbols to be built.
18469 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18471 # Flag that forces no undefined symbols.
18472 no_undefined_flag=$lt_no_undefined_flag_CXX
18474 # Commands used to finish a libtool library installation in a directory.
18475 finish_cmds=$lt_finish_cmds
18477 # Same as above, but a single script fragment to be evaled but not shown.
18478 finish_eval=$lt_finish_eval
18480 # Take the output of nm and produce a listing of raw symbols and C names.
18481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18483 # Transform the output of nm in a proper C declaration
18484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18486 # Transform the output of nm in a C name address pair
18487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18489 # This is the shared library runtime path variable.
18490 runpath_var=$runpath_var
18492 # This is the shared library path variable.
18493 shlibpath_var=$shlibpath_var
18495 # Is shlibpath searched before the hard-coded library search path?
18496 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18498 # How to hardcode a shared library path into an executable.
18499 hardcode_action=$hardcode_action_CXX
18501 # Whether we should hardcode library paths into libraries.
18502 hardcode_into_libs=$hardcode_into_libs
18504 # Flag to hardcode \$libdir into a binary during linking.
18505 # This must work even if \$libdir does not exist.
18506 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18508 # If ld is used when linking, flag to hardcode \$libdir into
18509 # a binary during linking. This must work even if \$libdir does
18511 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18513 # Whether we need a single -rpath flag with a separated argument.
18514 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18516 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18517 # resulting binary.
18518 hardcode_direct=$hardcode_direct_CXX
18520 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18521 # resulting binary.
18522 hardcode_minus_L=$hardcode_minus_L_CXX
18524 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18525 # the resulting binary.
18526 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18528 # Set to yes if building a shared library automatically hardcodes DIR into the library
18529 # and all subsequent libraries and executables linked against it.
18530 hardcode_automatic=$hardcode_automatic_CXX
18532 # Variables whose values should be saved in libtool wrapper scripts and
18533 # restored at relink time.
18534 variables_saved_for_relink="$variables_saved_for_relink"
18536 # Whether libtool must link a program against all its dependency libraries.
18537 link_all_deplibs=$link_all_deplibs_CXX
18539 # Compile-time system search path for libraries
18540 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18542 # Run-time system search path for libraries
18543 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18545 # Fix the shell variable \$srcfile for the compiler.
18546 fix_srcfile_path="$fix_srcfile_path_CXX"
18548 # Set to yes if exported symbols are required.
18549 always_export_symbols=$always_export_symbols_CXX
18551 # The commands to list exported symbols.
18552 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18554 # The commands to extract the exported symbol list from a shared archive.
18555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18557 # Symbols that should not be listed in the preloaded symbols.
18558 exclude_expsyms=$lt_exclude_expsyms_CXX
18560 # Symbols that must always be exported.
18561 include_expsyms=$lt_include_expsyms_CXX
18563 # ### END LIBTOOL TAG CONFIG: $tagname
18569 # If there is no Makefile yet, we rely on a make rule to execute
18570 # `config.status --recheck' to rerun these tests and create the
18571 # libtool script then.
18572 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18573 if test -f "$ltmain_in"; then
18574 test -f Makefile && make "$ltmain"
18580 ac_cpp='$CPP $CPPFLAGS'
18581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18589 with_gnu_ldcxx=$with_gnu_ld
18590 with_gnu_ld=$lt_save_with_gnu_ld
18591 lt_cv_path_LDCXX=$lt_cv_path_LD
18592 lt_cv_path_LD=$lt_save_path_LD
18593 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18594 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18602 if test -n "$F77" && test "X$F77" != "Xno"; then
18605 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18606 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18607 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18610 archive_cmds_need_lc_F77=no
18611 allow_undefined_flag_F77=
18612 always_export_symbols_F77=no
18613 archive_expsym_cmds_F77=
18614 export_dynamic_flag_spec_F77=
18615 hardcode_direct_F77=no
18616 hardcode_libdir_flag_spec_F77=
18617 hardcode_libdir_flag_spec_ld_F77=
18618 hardcode_libdir_separator_F77=
18619 hardcode_minus_L_F77=no
18620 hardcode_automatic_F77=no
18622 module_expsym_cmds_F77=
18623 link_all_deplibs_F77=unknown
18624 old_archive_cmds_F77=$old_archive_cmds
18625 no_undefined_flag_F77=
18626 whole_archive_flag_spec_F77=
18627 enable_shared_with_static_runtimes_F77=no
18629 # Source file extension for f77 test sources.
18632 # Object file extension for compiled f77 test sources.
18636 # Code to be used in simple compile tests
18637 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18639 # Code to be used in simple link tests
18640 lt_simple_link_test_code=" program t\n end\n"
18642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18644 # If no C compiler was specified, use CC.
18647 # Allow CC to be a program name with arguments.
18651 # Allow CC to be a program name with arguments.
18656 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18658 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18659 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18660 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18661 echo "${ECHO_T}$can_build_shared" >&6
18663 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18664 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18665 test "$can_build_shared" = "no" && enable_shared=no
18667 # On AIX, shared libraries and static libraries use the same namespace, and
18668 # are all built from PIC.
18671 test "$enable_shared" = yes && enable_static=no
18672 if test -n "$RANLIB"; then
18673 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18674 postinstall_cmds='$RANLIB $lib'
18678 test "$enable_shared" = yes && enable_static=no
18681 echo "$as_me:$LINENO: result: $enable_shared" >&5
18682 echo "${ECHO_T}$enable_shared" >&6
18684 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18685 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18686 # Make sure either enable_shared or enable_static is yes.
18687 test "$enable_shared" = yes || enable_static=yes
18688 echo "$as_me:$LINENO: result: $enable_static" >&5
18689 echo "${ECHO_T}$enable_static" >&6
18691 test "$ld_shlibs_F77" = no && can_build_shared=no
18696 lt_prog_compiler_wl_F77=
18697 lt_prog_compiler_pic_F77=
18698 lt_prog_compiler_static_F77=
18700 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18701 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18703 if test "$GCC" = yes; then
18704 lt_prog_compiler_wl_F77='-Wl,'
18705 lt_prog_compiler_static_F77='-static'
18709 # All AIX code is PIC.
18710 if test "$host_cpu" = ia64; then
18711 # AIX 5 now supports IA64 processor
18712 lt_prog_compiler_static_F77='-Bstatic'
18717 # FIXME: we need at least 68020 code to build shared libraries, but
18718 # adding the `-m68020' flag to GCC prevents building anything better,
18720 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18723 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18724 # PIC is the default for these OSes.
18727 mingw* | pw32* | os2*)
18728 # This hack is so that the source file can tell whether it is being
18729 # built for inclusion in a dll (and should export symbols for example).
18730 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18733 darwin* | rhapsody*)
18734 # PIC is the default on this platform
18735 # Common symbols not allowed in MH_DYLIB files
18736 lt_prog_compiler_pic_F77='-fno-common'
18740 # Just because we use GCC doesn't mean we suddenly get shared libraries
18741 # on systems that don't support them.
18742 lt_prog_compiler_can_build_shared_F77=no
18747 if test -d /usr/nec; then
18748 lt_prog_compiler_pic_F77=-Kconform_pic
18753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18754 # not for PA HP-UX.
18755 case "$host_cpu" in
18760 lt_prog_compiler_pic_F77='-fPIC'
18766 lt_prog_compiler_pic_F77='-fPIC'
18770 # PORTME Check for flag to pass linker flags through the system compiler.
18773 lt_prog_compiler_wl_F77='-Wl,'
18774 if test "$host_cpu" = ia64; then
18775 # AIX 5 now supports IA64 processor
18776 lt_prog_compiler_static_F77='-Bstatic'
18778 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18782 # PIC is the default on this platform
18783 # Common symbols not allowed in MH_DYLIB files
18784 case "$cc_basename" in
18786 lt_prog_compiler_pic_F77='-qnocommon'
18787 lt_prog_compiler_wl_F77='-Wl,'
18792 mingw* | pw32* | os2*)
18793 # This hack is so that the source file can tell whether it is being
18794 # built for inclusion in a dll (and should export symbols for example).
18795 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18798 hpux9* | hpux10* | hpux11*)
18799 lt_prog_compiler_wl_F77='-Wl,'
18800 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18801 # not for PA HP-UX.
18802 case "$host_cpu" in
18807 lt_prog_compiler_pic_F77='+Z'
18810 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18811 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18814 irix5* | irix6* | nonstopux*)
18815 lt_prog_compiler_wl_F77='-Wl,'
18816 # PIC (with -KPIC) is the default.
18817 lt_prog_compiler_static_F77='-non_shared'
18821 lt_prog_compiler_pic_F77='-KPIC'
18822 lt_prog_compiler_static_F77='-Bstatic'
18828 lt_prog_compiler_wl_F77='-Wl,'
18829 lt_prog_compiler_pic_F77='-KPIC'
18830 lt_prog_compiler_static_F77='-static'
18833 lt_prog_compiler_wl_F77='-Wl,'
18834 # All Alpha code is PIC.
18835 lt_prog_compiler_static_F77='-non_shared'
18840 osf3* | osf4* | osf5*)
18841 lt_prog_compiler_wl_F77='-Wl,'
18842 # All OSF/1 code is PIC.
18843 lt_prog_compiler_static_F77='-non_shared'
18847 lt_prog_compiler_pic_F77='-Kpic'
18848 lt_prog_compiler_static_F77='-dn'
18852 lt_prog_compiler_wl_F77='-Wl,'
18853 lt_prog_compiler_pic_F77='-KPIC'
18854 lt_prog_compiler_static_F77='-Bstatic'
18858 lt_prog_compiler_wl_F77='-Qoption ld '
18859 lt_prog_compiler_pic_F77='-PIC'
18860 lt_prog_compiler_static_F77='-Bstatic'
18863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18864 lt_prog_compiler_wl_F77='-Wl,'
18865 lt_prog_compiler_pic_F77='-KPIC'
18866 lt_prog_compiler_static_F77='-Bstatic'
18870 if test -d /usr/nec ;then
18871 lt_prog_compiler_pic_F77='-Kconform_pic'
18872 lt_prog_compiler_static_F77='-Bstatic'
18877 lt_prog_compiler_pic_F77='-pic'
18878 lt_prog_compiler_static_F77='-Bstatic'
18882 lt_prog_compiler_can_build_shared_F77=no
18887 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18888 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18891 # Check to make sure the PIC flag actually works.
18893 if test -n "$lt_prog_compiler_pic_F77"; then
18895 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18896 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18897 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 lt_prog_compiler_pic_works_F77=no
18901 ac_outfile=conftest.$ac_objext
18902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18903 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18904 # Insert the option either (1) after the last *FLAGS variable, or
18905 # (2) before a word containing "conftest.", or (3) at the end.
18906 # Note that $ac_compile itself does not contain backslashes and begins
18907 # with a dollar sign (not a hyphen), so the echo should work correctly.
18908 # The option is referenced via a variable to avoid confusing sed.
18909 lt_compile=`echo "$ac_compile" | $SED \
18910 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18912 -e 's:$: $lt_compiler_flag:'`
18913 (eval echo "\"\$as_me:18913: $lt_compile\"" >&5)
18914 (eval "$lt_compile" 2>conftest.err)
18916 cat conftest.err >&5
18917 echo "$as_me:18917: \$? = $ac_status" >&5
18918 if (exit $ac_status) && test -s "$ac_outfile"; then
18919 # The compiler can only warn and ignore the option if not recognized
18920 # So say no if there are warnings
18921 if test ! -s conftest.err; then
18922 lt_prog_compiler_pic_works_F77=yes
18928 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18929 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18931 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18932 case $lt_prog_compiler_pic_F77 in
18934 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18937 lt_prog_compiler_pic_F77=
18938 lt_prog_compiler_can_build_shared_F77=no
18943 # For platforms which do not support PIC, -DPIC is meaningless:
18945 lt_prog_compiler_pic_F77=
18948 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18952 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18953 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18954 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 lt_cv_prog_compiler_c_o_F77=no
18958 $rm -r conftest 2>/dev/null
18962 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18964 lt_compiler_flag="-o out/conftest2.$ac_objext"
18965 # Insert the option either (1) after the last *FLAGS variable, or
18966 # (2) before a word containing "conftest.", or (3) at the end.
18967 # Note that $ac_compile itself does not contain backslashes and begins
18968 # with a dollar sign (not a hyphen), so the echo should work correctly.
18969 lt_compile=`echo "$ac_compile" | $SED \
18970 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18972 -e 's:$: $lt_compiler_flag:'`
18973 (eval echo "\"\$as_me:18973: $lt_compile\"" >&5)
18974 (eval "$lt_compile" 2>out/conftest.err)
18976 cat out/conftest.err >&5
18977 echo "$as_me:18977: \$? = $ac_status" >&5
18978 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18980 # The compiler can only warn and ignore the option if not recognized
18981 # So say no if there are warnings
18982 if test ! -s out/conftest.err; then
18983 lt_cv_prog_compiler_c_o_F77=yes
18988 # SGI C++ compiler will create directory out/ii_files/ for
18989 # template instantiation
18990 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18991 $rm out/* && rmdir out
18997 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18998 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19001 hard_links="nottested"
19002 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19003 # do not overwrite the value of need_locks provided by the user
19004 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19005 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19010 ln conftest.a conftest.b 2>&5 || hard_links=no
19011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19012 echo "$as_me:$LINENO: result: $hard_links" >&5
19013 echo "${ECHO_T}$hard_links" >&6
19014 if test "$hard_links" = no; then
19015 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19016 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19023 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19024 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19027 allow_undefined_flag_F77=
19028 enable_shared_with_static_runtimes_F77=no
19030 archive_expsym_cmds_F77=
19031 old_archive_From_new_cmds_F77=
19032 old_archive_from_expsyms_cmds_F77=
19033 export_dynamic_flag_spec_F77=
19034 whole_archive_flag_spec_F77=
19035 thread_safe_flag_spec_F77=
19036 hardcode_libdir_flag_spec_F77=
19037 hardcode_libdir_flag_spec_ld_F77=
19038 hardcode_libdir_separator_F77=
19039 hardcode_direct_F77=no
19040 hardcode_minus_L_F77=no
19041 hardcode_shlibpath_var_F77=unsupported
19042 link_all_deplibs_F77=unknown
19043 hardcode_automatic_F77=no
19045 module_expsym_cmds_F77=
19046 always_export_symbols_F77=no
19047 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19048 # include_expsyms should be a list of space-separated symbols to be *always*
19049 # included in the symbol list
19050 include_expsyms_F77=
19051 # exclude_expsyms can be an extended regexp of symbols to exclude
19052 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19053 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19054 # as well as any symbol that contains `d'.
19055 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19056 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19057 # platforms (ab)use it in PIC code, but their linkers get confused if
19058 # the symbol is explicitly referenced. Since portable code cannot
19059 # rely on this symbol name, it's probably fine to never include it in
19060 # preloaded symbol tables.
19061 extract_expsyms_cmds=
19064 cygwin* | mingw* | pw32*)
19065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19066 # When not using gcc, we currently assume that we are using
19067 # Microsoft Visual C++.
19068 if test "$GCC" != yes; then
19078 if test "$with_gnu_ld" = yes; then
19079 # If archive_cmds runs LD, not CC, wlarc should be empty
19082 # See if GNU ld supports shared libraries.
19084 aix3* | aix4* | aix5*)
19085 # On AIX/PPC, the GNU linker is very broken
19086 if test "$host_cpu" != ia64; then
19090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19091 *** to be unable to reliably create shared libraries on AIX.
19092 *** Therefore, libtool is disabling shared libraries support. If you
19093 *** really care for shared libraries, you may want to modify your PATH
19094 *** so that a non-GNU linker is found, and then restart.
19101 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)'
19102 hardcode_libdir_flag_spec_F77='-L$libdir'
19103 hardcode_minus_L_F77=yes
19105 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19106 # that the semantics of dynamic libraries on AmigaOS, at least up
19107 # to version 4, is to share data among multiple programs linked
19108 # with the same dynamic library. Since this doesn't match the
19109 # behavior of shared libraries on other platforms, we can't use
19115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19116 allow_undefined_flag_F77=unsupported
19117 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19118 # support --undefined. This deserves some investigation. FIXME
19119 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19125 cygwin* | mingw* | pw32*)
19126 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19127 # as there is no search path for DLLs.
19128 hardcode_libdir_flag_spec_F77='-L$libdir'
19129 allow_undefined_flag_F77=unsupported
19130 always_export_symbols_F77=no
19131 enable_shared_with_static_runtimes_F77=yes
19132 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19134 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19135 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19136 # If the export-symbols file already is a .def file (1st line
19137 # is EXPORTS), use it as is; otherwise, prepend...
19138 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19139 cp $export_symbols $output_objdir/$soname.def;
19141 echo EXPORTS > $output_objdir/$soname.def;
19142 cat $export_symbols >> $output_objdir/$soname.def;
19144 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19152 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19155 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19156 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19161 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19165 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19166 *** create shared libraries on Solaris systems. Therefore, libtool
19167 *** is disabling shared libraries support. We urge you to upgrade GNU
19168 *** binutils to release 2.9.1 or newer. Another option is to modify
19169 *** your PATH or compiler configuration so that the native linker is
19170 *** used, and then restart.
19173 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19174 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19182 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19184 hardcode_direct_F77=yes
19185 hardcode_shlibpath_var_F77=no
19189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19190 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19191 archive_cmds_F77="$tmp_archive_cmds"
19192 supports_anon_versioning=no
19193 case `$LD -v 2>/dev/null` in
19194 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19195 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19196 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19197 *\ 2.11.*) ;; # other 2.11 versions
19198 *) supports_anon_versioning=yes ;;
19200 if test $supports_anon_versioning = yes; then
19201 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19203 $echo "local: *; };" >> $output_objdir/$libname.ver~
19204 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19206 archive_expsym_cmds_F77="$tmp_archive_cmds"
19214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19215 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19216 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19223 if test "$ld_shlibs_F77" = yes; then
19224 runpath_var=LD_RUN_PATH
19225 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19226 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19227 # ancient GNU ld didn't support --whole-archive et. al.
19228 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19229 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19231 whole_archive_flag_spec_F77=
19235 # PORTME fill in a description of your system's linker (not GNU ld)
19238 allow_undefined_flag_F77=unsupported
19239 always_export_symbols_F77=yes
19240 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'
19241 # Note: this linker hardcodes the directories in LIBPATH if there
19242 # are no directories specified by -L.
19243 hardcode_minus_L_F77=yes
19244 if test "$GCC" = yes && test -z "$link_static_flag"; then
19245 # Neither direct hardcoding nor static linking is supported with a
19247 hardcode_direct_F77=unsupported
19252 if test "$host_cpu" = ia64; then
19253 # On IA64, the linker does run time linking by default, so we don't
19254 # have to do anything special.
19255 aix_use_runtimelinking=no
19256 exp_sym_flag='-Bexport'
19259 # If we're using GNU nm, then we don't want the "-C" option.
19260 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19261 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19262 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'
19264 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'
19266 aix_use_runtimelinking=no
19268 # Test if we are trying to use run time linking or normal
19269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19270 # need to do runtime linking.
19271 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19272 for ld_flag in $LDFLAGS; do
19273 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19274 aix_use_runtimelinking=yes
19280 exp_sym_flag='-bexport'
19281 no_entry_flag='-bnoentry'
19284 # When large executables or shared objects are built, AIX ld can
19285 # have problems creating the table of contents. If linking a library
19286 # or program results in "error TOC overflow" add -mminimal-toc to
19287 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19288 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19290 archive_cmds_F77=''
19291 hardcode_direct_F77=yes
19292 hardcode_libdir_separator_F77=':'
19293 link_all_deplibs_F77=yes
19295 if test "$GCC" = yes; then
19296 case $host_os in aix4.012|aix4.012.*)
19297 # We only want to do this on AIX 4.2 and lower, the check
19298 # below for broken collect2 doesn't work under 4.3+
19299 collect2name=`${CC} -print-prog-name=collect2`
19300 if test -f "$collect2name" && \
19301 strings "$collect2name" | grep resolve_lib_name >/dev/null
19303 # We have reworked collect2
19304 hardcode_direct_F77=yes
19306 # We have old collect2
19307 hardcode_direct_F77=unsupported
19308 # It fails to find uninstalled libraries when the uninstalled
19309 # path is not listed in the libpath. Setting hardcode_minus_L
19310 # to unsupported forces relinking
19311 hardcode_minus_L_F77=yes
19312 hardcode_libdir_flag_spec_F77='-L$libdir'
19313 hardcode_libdir_separator_F77=
19316 shared_flag='-shared'
19319 if test "$host_cpu" = ia64; then
19320 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19321 # chokes on -Wl,-G. The following line is correct:
19324 if test "$aix_use_runtimelinking" = yes; then
19325 shared_flag='${wl}-G'
19327 shared_flag='${wl}-bM:SRE'
19332 # It seems that -bexpall does not export symbols beginning with
19333 # underscore (_), so it is better to generate a list of symbols to export.
19334 always_export_symbols_F77=yes
19335 if test "$aix_use_runtimelinking" = yes; then
19336 # Warning - without using the other runtime loading flags (-brtl),
19337 # -berok will link without error, but may produce a broken library.
19338 allow_undefined_flag_F77='-berok'
19339 # Determine the default libpath from the value encoded in an empty executable.
19340 cat >conftest.$ac_ext <<_ACEOF
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19347 (eval $ac_link) 2>conftest.er1
19349 grep -v '^ *+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
19354 { ac_try='test -z "$ac_f77_werror_flag"
19355 || test ! -s conftest.err'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; } &&
19361 { ac_try='test -s conftest$ac_exeext'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19370 # Check for a 64-bit object if we didn't find anything.
19371 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; }
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19378 rm -f conftest.err conftest.$ac_objext \
19379 conftest$ac_exeext conftest.$ac_ext
19380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19382 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19383 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"
19385 if test "$host_cpu" = ia64; then
19386 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19387 allow_undefined_flag_F77="-z nodefs"
19388 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"
19390 # Determine the default libpath from the value encoded in an empty executable.
19391 cat >conftest.$ac_ext <<_ACEOF
19396 rm -f conftest.$ac_objext conftest$ac_exeext
19397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19398 (eval $ac_link) 2>conftest.er1
19400 grep -v '^ *+' conftest.er1 >conftest.err
19402 cat conftest.err >&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } &&
19405 { ac_try='test -z "$ac_f77_werror_flag"
19406 || test ! -s conftest.err'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; } &&
19412 { ac_try='test -s conftest$ac_exeext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19421 # Check for a 64-bit object if we didn't find anything.
19422 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; }
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19429 rm -f conftest.err conftest.$ac_objext \
19430 conftest$ac_exeext conftest.$ac_ext
19431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19433 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19434 # Warning - without using the other run time loading flags,
19435 # -berok will link without error, but may produce a broken library.
19436 no_undefined_flag_F77=' ${wl}-bernotok'
19437 allow_undefined_flag_F77=' ${wl}-berok'
19438 # -bexpall does not export symbols beginning with underscore (_)
19439 always_export_symbols_F77=yes
19440 # Exported symbols can be pulled into shared objects from archives
19441 whole_archive_flag_spec_F77=' '
19442 archive_cmds_need_lc_F77=yes
19443 # This is similar to how AIX traditionally builds it's shared libraries.
19444 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'
19450 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)'
19451 hardcode_libdir_flag_spec_F77='-L$libdir'
19452 hardcode_minus_L_F77=yes
19453 # see comment about different semantics on the GNU ld section
19458 export_dynamic_flag_spec_F77=-rdynamic
19461 cygwin* | mingw* | pw32*)
19462 # When not using gcc, we currently assume that we are using
19463 # Microsoft Visual C++.
19464 # hardcode_libdir_flag_spec is actually meaningless, as there is
19465 # no search path for DLLs.
19466 hardcode_libdir_flag_spec_F77=' '
19467 allow_undefined_flag_F77=unsupported
19468 # Tell ltmain to make .lib files, not .a files.
19470 # Tell ltmain to make .dll files, not .so files.
19472 # FIXME: Setting linknames here is a bad hack.
19473 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19474 # The linker will automatically build a .lib file if we build a DLL.
19475 old_archive_From_new_cmds_F77='true'
19476 # FIXME: Should let the user specify the lib program.
19477 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19478 fix_srcfile_path='`cygpath -w "$srcfile"`'
19479 enable_shared_with_static_runtimes_F77=yes
19482 darwin* | rhapsody*)
19484 rhapsody* | darwin1.[012])
19485 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19488 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19489 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19491 case ${MACOSX_DEPLOYMENT_TARGET} in
19493 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19496 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19502 archive_cmds_need_lc_F77=no
19503 hardcode_direct_F77=no
19504 hardcode_automatic_F77=yes
19505 hardcode_shlibpath_var_F77=unsupported
19506 whole_archive_flag_spec_F77=''
19507 link_all_deplibs_F77=yes
19508 if test "$GCC" = yes ; then
19509 output_verbose_link_cmd='echo'
19510 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19511 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19512 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19513 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}'
19514 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}'
19516 case "$cc_basename" in
19518 output_verbose_link_cmd='echo'
19519 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19520 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19521 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19522 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}'
19523 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}'
19533 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19534 hardcode_libdir_flag_spec_F77='-L$libdir'
19535 hardcode_shlibpath_var_F77=no
19542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19543 # support. Future versions do this automatically, but an explicit c++rt0.o
19544 # does not break anything, and helps significantly (at the cost of a little
19547 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19548 hardcode_libdir_flag_spec_F77='-R$libdir'
19549 hardcode_direct_F77=yes
19550 hardcode_shlibpath_var_F77=no
19553 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19555 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19556 hardcode_direct_F77=yes
19557 hardcode_minus_L_F77=yes
19558 hardcode_shlibpath_var_F77=no
19561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19562 freebsd* | kfreebsd*-gnu)
19563 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19564 hardcode_libdir_flag_spec_F77='-R$libdir'
19565 hardcode_direct_F77=yes
19566 hardcode_shlibpath_var_F77=no
19570 if test "$GCC" = yes; then
19571 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'
19573 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'
19575 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19576 hardcode_libdir_separator_F77=:
19577 hardcode_direct_F77=yes
19579 # hardcode_minus_L: Not really in the search PATH,
19580 # but as the default location of the library.
19581 hardcode_minus_L_F77=yes
19582 export_dynamic_flag_spec_F77='${wl}-E'
19586 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19587 case "$host_cpu" in
19589 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19592 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19596 case "$host_cpu" in
19598 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19601 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19605 if test "$with_gnu_ld" = no; then
19606 case "$host_cpu" in
19608 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19609 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19610 hardcode_libdir_separator_F77=:
19611 hardcode_direct_F77=no
19612 hardcode_shlibpath_var_F77=no
19615 hardcode_libdir_flag_spec_F77='-L$libdir'
19616 hardcode_direct_F77=no
19617 hardcode_shlibpath_var_F77=no
19619 # hardcode_minus_L: Not really in the search PATH,
19620 # but as the default location of the library.
19621 hardcode_minus_L_F77=yes
19624 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19625 hardcode_libdir_separator_F77=:
19626 hardcode_direct_F77=yes
19627 export_dynamic_flag_spec_F77='${wl}-E'
19629 # hardcode_minus_L: Not really in the search PATH,
19630 # but as the default location of the library.
19631 hardcode_minus_L_F77=yes
19637 irix5* | irix6* | nonstopux*)
19638 if test "$GCC" = yes; then
19639 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'
19641 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'
19642 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19644 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19645 hardcode_libdir_separator_F77=:
19646 link_all_deplibs_F77=yes
19650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19651 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19653 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19655 hardcode_libdir_flag_spec_F77='-R$libdir'
19656 hardcode_direct_F77=yes
19657 hardcode_shlibpath_var_F77=no
19661 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19662 hardcode_direct_F77=yes
19663 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19664 hardcode_libdir_separator_F77=:
19665 hardcode_shlibpath_var_F77=no
19669 hardcode_direct_F77=yes
19670 hardcode_shlibpath_var_F77=no
19671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19672 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19673 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19674 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19675 export_dynamic_flag_spec_F77='${wl}-E'
19678 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19679 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19680 hardcode_libdir_flag_spec_F77='-R$libdir'
19683 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19684 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19691 hardcode_libdir_flag_spec_F77='-L$libdir'
19692 hardcode_minus_L_F77=yes
19693 allow_undefined_flag_F77=unsupported
19694 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'
19695 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19699 if test "$GCC" = yes; then
19700 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19701 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'
19703 allow_undefined_flag_F77=' -expect_unresolved \*'
19704 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'
19706 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19707 hardcode_libdir_separator_F77=:
19710 osf4* | osf5*) # as osf3* with the addition of -msym flag
19711 if test "$GCC" = yes; then
19712 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19713 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'
19714 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19716 allow_undefined_flag_F77=' -expect_unresolved \*'
19717 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'
19718 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~
19719 $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'
19721 # Both c and cxx compiler support -rpath directly
19722 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19724 hardcode_libdir_separator_F77=:
19728 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19729 hardcode_shlibpath_var_F77=no
19730 export_dynamic_flag_spec_F77='${wl}-Bexport'
19731 runpath_var=LD_RUN_PATH
19732 hardcode_runpath_var=yes
19736 no_undefined_flag_F77=' -z text'
19737 if test "$GCC" = yes; then
19738 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19739 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19740 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19742 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19743 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19744 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19746 hardcode_libdir_flag_spec_F77='-R$libdir'
19747 hardcode_shlibpath_var_F77=no
19749 solaris2.[0-5] | solaris2.[0-5].*) ;;
19750 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19751 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19753 link_all_deplibs_F77=yes
19757 if test "x$host_vendor" = xsequent; then
19758 # Use $CC to link under sequent, because it throws in some extra .o
19759 # files that make .init and .fini sections work.
19760 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19762 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19764 hardcode_libdir_flag_spec_F77='-L$libdir'
19765 hardcode_direct_F77=yes
19766 hardcode_minus_L_F77=yes
19767 hardcode_shlibpath_var_F77=no
19771 case $host_vendor in
19773 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19774 hardcode_direct_F77=yes # is this really true???
19777 ## LD is ld it makes a PLAMLIB
19778 ## CC just makes a GrossModule.
19779 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19780 reload_cmds_F77='$CC -r -o $output$reload_objs'
19781 hardcode_direct_F77=no
19784 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19785 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19788 runpath_var='LD_RUN_PATH'
19789 hardcode_shlibpath_var_F77=no
19793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19794 hardcode_shlibpath_var_F77=no
19795 export_dynamic_flag_spec_F77='-Bexport'
19799 if test -d /usr/nec; then
19800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19801 hardcode_shlibpath_var_F77=no
19802 runpath_var=LD_RUN_PATH
19803 hardcode_runpath_var=yes
19809 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19810 hardcode_direct_F77=yes
19811 hardcode_minus_L_F77=no
19812 hardcode_shlibpath_var_F77=no
19813 hardcode_runpath_var=yes
19814 runpath_var=LD_RUN_PATH
19817 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19818 no_undefined_flag_F77='${wl}-z ${wl}text'
19819 if test "$GCC" = yes; then
19820 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19822 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19824 runpath_var='LD_RUN_PATH'
19825 hardcode_shlibpath_var_F77=no
19829 no_undefined_flag_F77=' -z text'
19830 # $CC -shared without GNU ld will not create a library from C++
19831 # object files and a static libstdc++, better avoid it by now
19832 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19833 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19834 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19835 hardcode_libdir_flag_spec_F77=
19836 hardcode_shlibpath_var_F77=no
19837 runpath_var='LD_RUN_PATH'
19841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19842 hardcode_libdir_flag_spec_F77='-L$libdir'
19843 hardcode_shlibpath_var_F77=no
19852 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19853 echo "${ECHO_T}$ld_shlibs_F77" >&6
19854 test "$ld_shlibs_F77" = no && can_build_shared=no
19856 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19857 if test "$GCC" = yes; then
19858 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19862 # Do we need to explicitly link libc?
19864 case "x$archive_cmds_need_lc_F77" in
19866 # Assume -lc should be added
19867 archive_cmds_need_lc_F77=yes
19869 if test "$enable_shared" = yes && test "$GCC" = yes; then
19870 case $archive_cmds_F77 in
19872 # FIXME: we may have to deal with multi-command sequences.
19875 # Test whether the compiler implicitly links with -lc since on some
19876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19877 # to ld, don't add -lc before -lgcc.
19878 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19879 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19884 (eval $ac_compile) 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } 2>conftest.err; then
19890 libobjs=conftest.$ac_objext
19892 wl=$lt_prog_compiler_wl_F77
19898 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19899 allow_undefined_flag_F77=
19900 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19901 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }
19906 archive_cmds_need_lc_F77=no
19908 archive_cmds_need_lc_F77=yes
19910 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19912 cat conftest.err 1>&5
19915 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19916 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19923 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19924 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19925 library_names_spec=
19926 libname_spec='lib$name'
19930 postuninstall_cmds=
19934 shlibpath_overrides_runpath=unknown
19936 dynamic_linker="$host_os ld.so"
19937 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19938 if test "$GCC" = yes; then
19939 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19940 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19941 # if the path contains ";" then we assume it to be the separator
19942 # otherwise default to the standard path separator (i.e. ":") - it is
19943 # assumed that no part of a normal pathname contains ";" but that should
19944 # okay in the real world where ";" in dirpaths is itself problematic.
19945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19950 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19952 need_lib_prefix=unknown
19953 hardcode_into_libs=no
19955 # when you set need_version to no, make sure it does not cause -set_version
19956 # flags to be left without arguments
19957 need_version=unknown
19962 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19963 shlibpath_var=LIBPATH
19965 # AIX 3 has no versioning support, so we append a major version to the name.
19966 soname_spec='${libname}${release}${shared_ext}$major'
19973 hardcode_into_libs=yes
19974 if test "$host_cpu" = ia64; then
19975 # AIX 5 supports IA64
19976 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19977 shlibpath_var=LD_LIBRARY_PATH
19979 # With GCC up to 2.95.x, collect2 would create an import file
19980 # for dependence libraries. The import file would start with
19981 # the line `#! .'. This would cause the generated library to
19982 # depend on `.', always an invalid library. This was fixed in
19983 # development snapshots of GCC prior to 3.0.
19985 aix4 | aix4.[01] | aix4.[01].*)
19986 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19988 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19991 can_build_shared=no
19995 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19996 # soname into executable. Probably we can add versioning support to
19997 # collect2, so additional links can be useful in future.
19998 if test "$aix_use_runtimelinking" = yes; then
19999 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20000 # instead of lib<name>.a to let people know that these are not
20001 # typical AIX shared libraries.
20002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20004 # We preserve .a as extension for shared libraries through AIX4.2
20005 # and later when we are not doing run time linking.
20006 library_names_spec='${libname}${release}.a $libname.a'
20007 soname_spec='${libname}${release}${shared_ext}$major'
20009 shlibpath_var=LIBPATH
20014 library_names_spec='$libname.ixlibrary $libname.a'
20015 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20016 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'
20020 library_names_spec='${libname}${shared_ext}'
20021 dynamic_linker="$host_os ld.so"
20022 shlibpath_var=LIBRARY_PATH
20028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20029 soname_spec='${libname}${release}${shared_ext}$major'
20030 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20031 shlibpath_var=LD_LIBRARY_PATH
20032 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20033 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20034 # the default ld.so.conf also contains /usr/contrib/lib and
20035 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20036 # libtool to hard-code these into programs
20039 cygwin* | mingw* | pw32*)
20040 version_type=windows
20045 case $GCC,$host_os in
20046 yes,cygwin* | yes,mingw* | yes,pw32*)
20047 library_names_spec='$libname.dll.a'
20048 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20049 postinstall_cmds='base_file=`basename \${file}`~
20050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20051 dldir=$destdir/`dirname \$dlpath`~
20052 test -d \$dldir || mkdir -p \$dldir~
20053 $install_prog $dir/$dlname \$dldir/$dlname'
20054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20055 dlpath=$dir/\$dldll~
20057 shlibpath_overrides_runpath=yes
20061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20062 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20063 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20066 # MinGW DLLs use traditional 'lib' prefix
20067 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20069 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20070 # It is most probably a Windows format PATH printed by
20071 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20072 # path with ; separators, and with drive letters. We can handle the
20073 # drive letters (cygwin fileutils understands them), so leave them,
20074 # especially as we might pass files found there to a mingw objdump,
20075 # which wouldn't understand a cygwinified path. Ahh.
20076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20082 # pw32 DLLs use 'pw' prefix rather than 'lib'
20083 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20089 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20092 dynamic_linker='Win32 ld.exe'
20093 # FIXME: first we should search . and the directory the executable is in
20097 darwin* | rhapsody*)
20098 dynamic_linker="$host_os dyld"
20099 version_type=darwin
20102 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20103 soname_spec='${libname}${release}${major}$shared_ext'
20104 shlibpath_overrides_runpath=yes
20105 shlibpath_var=DYLD_LIBRARY_PATH
20106 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20107 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20108 if test "$GCC" = yes; then
20109 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"`
20111 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20113 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20121 soname_spec='${libname}${release}${shared_ext}$major'
20122 shlibpath_var=LD_LIBRARY_PATH
20133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20134 soname_spec='${libname}${release}${shared_ext}$major'
20135 shlibpath_var=LD_LIBRARY_PATH
20136 shlibpath_overrides_runpath=no
20137 hardcode_into_libs=yes
20138 dynamic_linker='GNU ld.so'
20142 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20143 version_type=freebsd-$objformat
20144 case $version_type in
20146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20155 shlibpath_var=LD_LIBRARY_PATH
20158 shlibpath_overrides_runpath=yes
20160 freebsd3.01* | freebsdelf3.01*)
20161 shlibpath_overrides_runpath=yes
20162 hardcode_into_libs=yes
20165 shlibpath_overrides_runpath=no
20166 hardcode_into_libs=yes
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20176 soname_spec='${libname}${release}${shared_ext}$major'
20177 shlibpath_var=LD_LIBRARY_PATH
20178 hardcode_into_libs=yes
20181 hpux9* | hpux10* | hpux11*)
20182 # Give a soname corresponding to the major version so that dld.sl refuses to
20183 # link against other versions.
20187 case "$host_cpu" in
20190 hardcode_into_libs=yes
20191 dynamic_linker="$host_os dld.so"
20192 shlibpath_var=LD_LIBRARY_PATH
20193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 soname_spec='${libname}${release}${shared_ext}$major'
20196 if test "X$HPUX_IA64_MODE" = X32; then
20197 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20199 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20205 hardcode_into_libs=yes
20206 dynamic_linker="$host_os dld.sl"
20207 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210 soname_spec='${libname}${release}${shared_ext}$major'
20211 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20216 dynamic_linker="$host_os dld.sl"
20217 shlibpath_var=SHLIB_PATH
20218 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20220 soname_spec='${libname}${release}${shared_ext}$major'
20223 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20224 postinstall_cmds='chmod 555 $lib'
20227 irix5* | irix6* | nonstopux*)
20229 nonstopux*) version_type=nonstopux ;;
20231 if test "$lt_cv_prog_gnu_ld" = yes; then
20239 soname_spec='${libname}${release}${shared_ext}$major'
20240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20242 irix5* | nonstopux*)
20243 libsuff= shlibsuff=
20246 case $LD in # libtool.m4 will add one of these switches to LD
20247 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20248 libsuff= shlibsuff= libmagic=32-bit;;
20249 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20250 libsuff=32 shlibsuff=N32 libmagic=N32;;
20251 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20252 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20253 *) libsuff= shlibsuff= libmagic=never-match;;
20257 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20258 shlibpath_overrides_runpath=no
20259 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20260 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20261 hardcode_into_libs=yes
20264 # No shared lib support for Linux oldld, aout, or coff.
20265 linux*oldld* | linux*aout* | linux*coff*)
20269 # This must be Linux ELF.
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20275 soname_spec='${libname}${release}${shared_ext}$major'
20276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20277 shlibpath_var=LD_LIBRARY_PATH
20278 shlibpath_overrides_runpath=no
20279 # This implies no fast_install, which is unacceptable.
20280 # Some rework will be needed to allow for fast_install
20281 # before this can be enabled.
20282 hardcode_into_libs=yes
20284 # Append ld.so.conf contents to the search path
20285 if test -f /etc/ld.so.conf; then
20286 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20287 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20290 # We used to test for /lib/ld.so.1 and disable shared libraries on
20291 # powerpc, because MkLinux only supported shared libraries with the
20292 # GNU dynamic linker. Since this was broken with cross compilers,
20293 # most powerpc-linux boxes support dynamic linking these days and
20294 # people can always --disable-shared, the test was removed, and we
20295 # assume the GNU/Linux dynamic linker is in use.
20296 dynamic_linker='GNU/Linux ld.so'
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20304 soname_spec='${libname}${release}${shared_ext}$major'
20305 shlibpath_var=LD_LIBRARY_PATH
20306 shlibpath_overrides_runpath=no
20307 hardcode_into_libs=yes
20308 dynamic_linker='GNU ld.so'
20315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20318 dynamic_linker='NetBSD (a.out) ld.so'
20320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20321 soname_spec='${libname}${release}${shared_ext}$major'
20322 dynamic_linker='NetBSD ld.elf_so'
20324 shlibpath_var=LD_LIBRARY_PATH
20325 shlibpath_overrides_runpath=yes
20326 hardcode_into_libs=yes
20331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20332 shlibpath_var=LD_LIBRARY_PATH
20333 shlibpath_overrides_runpath=yes
20340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20341 soname_spec='${libname}${release}${shared_ext}$major'
20342 shlibpath_var=LD_LIBRARY_PATH
20343 shlibpath_overrides_runpath=yes
20350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20352 shlibpath_var=LD_LIBRARY_PATH
20353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20355 openbsd2.[89] | openbsd2.[89].*)
20356 shlibpath_overrides_runpath=no
20359 shlibpath_overrides_runpath=yes
20363 shlibpath_overrides_runpath=yes
20368 libname_spec='$name'
20371 library_names_spec='$libname${shared_ext} $libname.a'
20372 dynamic_linker='OS/2 ld.exe'
20373 shlibpath_var=LIBPATH
20376 osf3* | osf4* | osf5*)
20380 soname_spec='${libname}${release}${shared_ext}$major'
20381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20382 shlibpath_var=LD_LIBRARY_PATH
20383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20389 soname_spec='${libname}${release}${shared_ext}$major'
20390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20391 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
20401 shlibpath_overrides_runpath=yes
20402 hardcode_into_libs=yes
20403 # ldd complains unless libraries are executable
20404 postinstall_cmds='chmod +x $lib'
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 shlibpath_overrides_runpath=yes
20413 if test "$with_gnu_ld" = yes; then
20419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20422 soname_spec='${libname}${release}${shared_ext}$major'
20423 shlibpath_var=LD_LIBRARY_PATH
20424 case $host_vendor in
20426 shlibpath_overrides_runpath=no
20428 export_dynamic_flag_spec='${wl}-Blargedynsym'
20429 runpath_var=LD_RUN_PATH
20437 shlibpath_overrides_runpath=no
20438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20444 if test -d /usr/nec ;then
20446 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20447 soname_spec='$libname${shared_ext}.$major'
20448 shlibpath_var=LD_LIBRARY_PATH
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 shlibpath_var=LD_LIBRARY_PATH
20463 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20464 echo "${ECHO_T}$dynamic_linker" >&6
20465 test "$dynamic_linker" = no && can_build_shared=no
20467 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20468 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20469 hardcode_action_F77=
20470 if test -n "$hardcode_libdir_flag_spec_F77" || \
20471 test -n "$runpath_var_F77" || \
20472 test "X$hardcode_automatic_F77" = "Xyes" ; then
20474 # We can hardcode non-existant directories.
20475 if test "$hardcode_direct_F77" != no &&
20476 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20477 # have to relink, otherwise we might link with an installed library
20478 # when we should be linking with a yet-to-be-installed one
20479 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20480 test "$hardcode_minus_L_F77" != no; then
20481 # Linking always hardcodes the temporary library directory.
20482 hardcode_action_F77=relink
20484 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20485 hardcode_action_F77=immediate
20488 # We cannot hardcode anything, or else we can only hardcode existing
20490 hardcode_action_F77=unsupported
20492 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20493 echo "${ECHO_T}$hardcode_action_F77" >&6
20495 if test "$hardcode_action_F77" = relink; then
20496 # Fast installation is not supported
20497 enable_fast_install=no
20498 elif test "$shlibpath_overrides_runpath" = yes ||
20499 test "$enable_shared" = no; then
20500 # Fast installation is not necessary
20501 enable_fast_install=needless
20506 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20507 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20508 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20509 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20510 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20511 echo "$as_me:$LINENO: result: yes" >&5
20512 echo "${ECHO_T}yes" >&6
20514 # FIXME - insert some real tests, host_os isn't really good enough
20517 if test -n "$STRIP" ; then
20518 striplib="$STRIP -x"
20519 echo "$as_me:$LINENO: result: yes" >&5
20520 echo "${ECHO_T}yes" >&6
20522 echo "$as_me:$LINENO: result: no" >&5
20523 echo "${ECHO_T}no" >&6
20527 echo "$as_me:$LINENO: result: no" >&5
20528 echo "${ECHO_T}no" >&6
20535 # The else clause should only fire when bootstrapping the
20536 # libtool distribution, otherwise you forgot to ship ltmain.sh
20537 # with your package, and you will get complaints that there are
20538 # no rules to generate ltmain.sh.
20539 if test -f "$ltmain"; then
20540 # See if we are running on zsh, and set the options which allow our commands through
20541 # without removal of \ escapes.
20542 if test -n "${ZSH_VERSION+set}" ; then
20543 setopt NO_GLOB_SUBST
20545 # Now quote all the things that may contain metacharacters while being
20546 # careful not to overquote the AC_SUBSTed values. We take copies of the
20547 # variables and quote the copies for generation of the libtool script.
20548 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20550 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20551 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20552 deplibs_check_method reload_flag reload_cmds need_locks \
20553 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20554 lt_cv_sys_global_symbol_to_c_name_address \
20555 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20556 old_postinstall_cmds old_postuninstall_cmds \
20560 lt_prog_compiler_wl_F77 \
20561 lt_prog_compiler_pic_F77 \
20562 lt_prog_compiler_static_F77 \
20563 lt_prog_compiler_no_builtin_flag_F77 \
20564 export_dynamic_flag_spec_F77 \
20565 thread_safe_flag_spec_F77 \
20566 whole_archive_flag_spec_F77 \
20567 enable_shared_with_static_runtimes_F77 \
20568 old_archive_cmds_F77 \
20569 old_archive_from_new_cmds_F77 \
20570 predep_objects_F77 \
20571 postdep_objects_F77 \
20574 compiler_lib_search_path_F77 \
20576 archive_expsym_cmds_F77 \
20577 postinstall_cmds_F77 \
20578 postuninstall_cmds_F77 \
20579 old_archive_from_expsyms_cmds_F77 \
20580 allow_undefined_flag_F77 \
20581 no_undefined_flag_F77 \
20582 export_symbols_cmds_F77 \
20583 hardcode_libdir_flag_spec_F77 \
20584 hardcode_libdir_flag_spec_ld_F77 \
20585 hardcode_libdir_separator_F77 \
20586 hardcode_automatic_F77 \
20588 module_expsym_cmds_F77 \
20589 lt_cv_prog_compiler_c_o_F77 \
20590 exclude_expsyms_F77 \
20591 include_expsyms_F77; do
20594 old_archive_cmds_F77 | \
20595 old_archive_from_new_cmds_F77 | \
20596 archive_cmds_F77 | \
20597 archive_expsym_cmds_F77 | \
20598 module_cmds_F77 | \
20599 module_expsym_cmds_F77 | \
20600 old_archive_from_expsyms_cmds_F77 | \
20601 export_symbols_cmds_F77 | \
20602 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20603 postinstall_cmds | postuninstall_cmds | \
20604 old_postinstall_cmds | old_postuninstall_cmds | \
20605 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20606 # Double-quote double-evaled strings.
20607 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20610 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20616 *'\$0 --fallback-echo"')
20617 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20623 cat <<__EOF__ >> "$cfgfile"
20624 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20626 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20628 # Shell to use when invoking shell scripts.
20631 # Whether or not to build shared libraries.
20632 build_libtool_libs=$enable_shared
20634 # Whether or not to build static libraries.
20635 build_old_libs=$enable_static
20637 # Whether or not to add -lc for building shared libraries.
20638 build_libtool_need_lc=$archive_cmds_need_lc_F77
20640 # Whether or not to disallow shared libs when runtime libs are static
20641 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20643 # Whether or not to optimize for fast installation.
20644 fast_install=$enable_fast_install
20647 host_alias=$host_alias
20650 # An echo program that does not interpret backslashes.
20655 AR_FLAGS=$lt_AR_FLAGS
20660 # A language-specific compiler.
20661 CC=$lt_compiler_F77
20663 # Is the compiler the GNU C compiler?
20669 # The linker used to build libraries.
20672 # Whether we need hard or soft links.
20675 # A BSD-compatible nm program.
20678 # A symbol stripping program
20681 # Used to examine libraries when file_magic_cmd begins "file"
20682 MAGIC_CMD=$MAGIC_CMD
20684 # Used on cygwin: DLL creation program.
20687 # Used on cygwin: object dumper.
20690 # Used on cygwin: assembler.
20693 # The name of the directory that contains temporary libtool files.
20696 # How to create reloadable object files.
20697 reload_flag=$lt_reload_flag
20698 reload_cmds=$lt_reload_cmds
20700 # How to pass a linker flag through the compiler.
20701 wl=$lt_lt_prog_compiler_wl_F77
20703 # Object file suffix (normally "o").
20704 objext="$ac_objext"
20706 # Old archive suffix (normally "a").
20709 # Shared library suffix (normally ".so").
20710 shrext_cmds='$shrext_cmds'
20712 # Executable file suffix (normally "").
20715 # Additional compiler flags for building library objects.
20716 pic_flag=$lt_lt_prog_compiler_pic_F77
20719 # What is the maximum length of a command?
20720 max_cmd_len=$lt_cv_sys_max_cmd_len
20722 # Does compiler simultaneously support -c and -o options?
20723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20725 # Must we lock files when doing compilation ?
20726 need_locks=$lt_need_locks
20728 # Do we need the lib prefix for modules?
20729 need_lib_prefix=$need_lib_prefix
20731 # Do we need a version for libraries?
20732 need_version=$need_version
20734 # Whether dlopen is supported.
20735 dlopen_support=$enable_dlopen
20737 # Whether dlopen of programs is supported.
20738 dlopen_self=$enable_dlopen_self
20740 # Whether dlopen of statically linked programs is supported.
20741 dlopen_self_static=$enable_dlopen_self_static
20743 # Compiler flag to prevent dynamic linking.
20744 link_static_flag=$lt_lt_prog_compiler_static_F77
20746 # Compiler flag to turn off builtin functions.
20747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20749 # Compiler flag to allow reflexive dlopens.
20750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20752 # Compiler flag to generate shared objects directly from archives.
20753 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20755 # Compiler flag to generate thread-safe objects.
20756 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20758 # Library versioning type.
20759 version_type=$version_type
20761 # Format of library name prefix.
20762 libname_spec=$lt_libname_spec
20764 # List of archive names. First name is the real one, the rest are links.
20765 # The last name is the one that the linker finds with -lNAME.
20766 library_names_spec=$lt_library_names_spec
20768 # The coded name of the library, if different from the real name.
20769 soname_spec=$lt_soname_spec
20771 # Commands used to build and install an old-style archive.
20773 old_archive_cmds=$lt_old_archive_cmds_F77
20774 old_postinstall_cmds=$lt_old_postinstall_cmds
20775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20777 # Create an old-style archive from a shared archive.
20778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20780 # Create a temporary old-style archive to link instead of a shared archive.
20781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20783 # Commands used to build and install a shared archive.
20784 archive_cmds=$lt_archive_cmds_F77
20785 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20786 postinstall_cmds=$lt_postinstall_cmds
20787 postuninstall_cmds=$lt_postuninstall_cmds
20789 # Commands used to build a loadable module (assumed same as above if empty)
20790 module_cmds=$lt_module_cmds_F77
20791 module_expsym_cmds=$lt_module_expsym_cmds_F77
20793 # Commands to strip libraries.
20794 old_striplib=$lt_old_striplib
20795 striplib=$lt_striplib
20797 # Dependencies to place before the objects being linked to create a
20799 predep_objects=$lt_predep_objects_F77
20801 # Dependencies to place after the objects being linked to create a
20803 postdep_objects=$lt_postdep_objects_F77
20805 # Dependencies to place before the objects being linked to create a
20807 predeps=$lt_predeps_F77
20809 # Dependencies to place after the objects being linked to create a
20811 postdeps=$lt_postdeps_F77
20813 # The library search path used internally by the compiler when linking
20814 # a shared library.
20815 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20817 # Method to check whether dependent libraries are shared objects.
20818 deplibs_check_method=$lt_deplibs_check_method
20820 # Command to use when deplibs_check_method == file_magic.
20821 file_magic_cmd=$lt_file_magic_cmd
20823 # Flag that allows shared libraries with undefined symbols to be built.
20824 allow_undefined_flag=$lt_allow_undefined_flag_F77
20826 # Flag that forces no undefined symbols.
20827 no_undefined_flag=$lt_no_undefined_flag_F77
20829 # Commands used to finish a libtool library installation in a directory.
20830 finish_cmds=$lt_finish_cmds
20832 # Same as above, but a single script fragment to be evaled but not shown.
20833 finish_eval=$lt_finish_eval
20835 # Take the output of nm and produce a listing of raw symbols and C names.
20836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20838 # Transform the output of nm in a proper C declaration
20839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20841 # Transform the output of nm in a C name address pair
20842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20844 # This is the shared library runtime path variable.
20845 runpath_var=$runpath_var
20847 # This is the shared library path variable.
20848 shlibpath_var=$shlibpath_var
20850 # Is shlibpath searched before the hard-coded library search path?
20851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20853 # How to hardcode a shared library path into an executable.
20854 hardcode_action=$hardcode_action_F77
20856 # Whether we should hardcode library paths into libraries.
20857 hardcode_into_libs=$hardcode_into_libs
20859 # Flag to hardcode \$libdir into a binary during linking.
20860 # This must work even if \$libdir does not exist.
20861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20863 # If ld is used when linking, flag to hardcode \$libdir into
20864 # a binary during linking. This must work even if \$libdir does
20866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20868 # Whether we need a single -rpath flag with a separated argument.
20869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20871 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20872 # resulting binary.
20873 hardcode_direct=$hardcode_direct_F77
20875 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20876 # resulting binary.
20877 hardcode_minus_L=$hardcode_minus_L_F77
20879 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20880 # the resulting binary.
20881 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20883 # Set to yes if building a shared library automatically hardcodes DIR into the library
20884 # and all subsequent libraries and executables linked against it.
20885 hardcode_automatic=$hardcode_automatic_F77
20887 # Variables whose values should be saved in libtool wrapper scripts and
20888 # restored at relink time.
20889 variables_saved_for_relink="$variables_saved_for_relink"
20891 # Whether libtool must link a program against all its dependency libraries.
20892 link_all_deplibs=$link_all_deplibs_F77
20894 # Compile-time system search path for libraries
20895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20897 # Run-time system search path for libraries
20898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20900 # Fix the shell variable \$srcfile for the compiler.
20901 fix_srcfile_path="$fix_srcfile_path_F77"
20903 # Set to yes if exported symbols are required.
20904 always_export_symbols=$always_export_symbols_F77
20906 # The commands to list exported symbols.
20907 export_symbols_cmds=$lt_export_symbols_cmds_F77
20909 # The commands to extract the exported symbol list from a shared archive.
20910 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20912 # Symbols that should not be listed in the preloaded symbols.
20913 exclude_expsyms=$lt_exclude_expsyms_F77
20915 # Symbols that must always be exported.
20916 include_expsyms=$lt_include_expsyms_F77
20918 # ### END LIBTOOL TAG CONFIG: $tagname
20924 # If there is no Makefile yet, we rely on a make rule to execute
20925 # `config.status --recheck' to rerun these tests and create the
20926 # libtool script then.
20927 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20928 if test -f "$ltmain_in"; then
20929 test -f Makefile && make "$ltmain"
20935 ac_cpp='$CPP $CPPFLAGS'
20936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20948 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20950 ac_cpp='$CPP $CPPFLAGS'
20951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20956 # Source file extension for Java test sources.
20959 # Object file extension for compiled Java test sources.
20963 # Code to be used in simple compile tests
20964 lt_simple_compile_test_code="class foo {}\n"
20966 # Code to be used in simple link tests
20967 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20969 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20971 # If no C compiler was specified, use CC.
20974 # Allow CC to be a program name with arguments.
20978 # Allow CC to be a program name with arguments.
20984 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20985 archive_cmds_need_lc_GCJ=no
20988 lt_prog_compiler_no_builtin_flag_GCJ=
20990 if test "$GCC" = yes; then
20991 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20994 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20995 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20996 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 lt_cv_prog_compiler_rtti_exceptions=no
21000 ac_outfile=conftest.$ac_objext
21001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21002 lt_compiler_flag="-fno-rtti -fno-exceptions"
21003 # Insert the option either (1) after the last *FLAGS variable, or
21004 # (2) before a word containing "conftest.", or (3) at the end.
21005 # Note that $ac_compile itself does not contain backslashes and begins
21006 # with a dollar sign (not a hyphen), so the echo should work correctly.
21007 # The option is referenced via a variable to avoid confusing sed.
21008 lt_compile=`echo "$ac_compile" | $SED \
21009 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21011 -e 's:$: $lt_compiler_flag:'`
21012 (eval echo "\"\$as_me:21012: $lt_compile\"" >&5)
21013 (eval "$lt_compile" 2>conftest.err)
21015 cat conftest.err >&5
21016 echo "$as_me:21016: \$? = $ac_status" >&5
21017 if (exit $ac_status) && test -s "$ac_outfile"; then
21018 # The compiler can only warn and ignore the option if not recognized
21019 # So say no if there are warnings
21020 if test ! -s conftest.err; then
21021 lt_cv_prog_compiler_rtti_exceptions=yes
21027 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21028 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21030 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21031 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21038 lt_prog_compiler_wl_GCJ=
21039 lt_prog_compiler_pic_GCJ=
21040 lt_prog_compiler_static_GCJ=
21042 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21043 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21045 if test "$GCC" = yes; then
21046 lt_prog_compiler_wl_GCJ='-Wl,'
21047 lt_prog_compiler_static_GCJ='-static'
21051 # All AIX code is PIC.
21052 if test "$host_cpu" = ia64; then
21053 # AIX 5 now supports IA64 processor
21054 lt_prog_compiler_static_GCJ='-Bstatic'
21059 # FIXME: we need at least 68020 code to build shared libraries, but
21060 # adding the `-m68020' flag to GCC prevents building anything better,
21062 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21065 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21066 # PIC is the default for these OSes.
21069 mingw* | pw32* | os2*)
21070 # This hack is so that the source file can tell whether it is being
21071 # built for inclusion in a dll (and should export symbols for example).
21072 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21075 darwin* | rhapsody*)
21076 # PIC is the default on this platform
21077 # Common symbols not allowed in MH_DYLIB files
21078 lt_prog_compiler_pic_GCJ='-fno-common'
21082 # Just because we use GCC doesn't mean we suddenly get shared libraries
21083 # on systems that don't support them.
21084 lt_prog_compiler_can_build_shared_GCJ=no
21089 if test -d /usr/nec; then
21090 lt_prog_compiler_pic_GCJ=-Kconform_pic
21095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21096 # not for PA HP-UX.
21097 case "$host_cpu" in
21102 lt_prog_compiler_pic_GCJ='-fPIC'
21108 lt_prog_compiler_pic_GCJ='-fPIC'
21112 # PORTME Check for flag to pass linker flags through the system compiler.
21115 lt_prog_compiler_wl_GCJ='-Wl,'
21116 if test "$host_cpu" = ia64; then
21117 # AIX 5 now supports IA64 processor
21118 lt_prog_compiler_static_GCJ='-Bstatic'
21120 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21124 # PIC is the default on this platform
21125 # Common symbols not allowed in MH_DYLIB files
21126 case "$cc_basename" in
21128 lt_prog_compiler_pic_GCJ='-qnocommon'
21129 lt_prog_compiler_wl_GCJ='-Wl,'
21134 mingw* | pw32* | os2*)
21135 # This hack is so that the source file can tell whether it is being
21136 # built for inclusion in a dll (and should export symbols for example).
21137 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21140 hpux9* | hpux10* | hpux11*)
21141 lt_prog_compiler_wl_GCJ='-Wl,'
21142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21143 # not for PA HP-UX.
21144 case "$host_cpu" in
21149 lt_prog_compiler_pic_GCJ='+Z'
21152 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21153 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21156 irix5* | irix6* | nonstopux*)
21157 lt_prog_compiler_wl_GCJ='-Wl,'
21158 # PIC (with -KPIC) is the default.
21159 lt_prog_compiler_static_GCJ='-non_shared'
21163 lt_prog_compiler_pic_GCJ='-KPIC'
21164 lt_prog_compiler_static_GCJ='-Bstatic'
21170 lt_prog_compiler_wl_GCJ='-Wl,'
21171 lt_prog_compiler_pic_GCJ='-KPIC'
21172 lt_prog_compiler_static_GCJ='-static'
21175 lt_prog_compiler_wl_GCJ='-Wl,'
21176 # All Alpha code is PIC.
21177 lt_prog_compiler_static_GCJ='-non_shared'
21182 osf3* | osf4* | osf5*)
21183 lt_prog_compiler_wl_GCJ='-Wl,'
21184 # All OSF/1 code is PIC.
21185 lt_prog_compiler_static_GCJ='-non_shared'
21189 lt_prog_compiler_pic_GCJ='-Kpic'
21190 lt_prog_compiler_static_GCJ='-dn'
21194 lt_prog_compiler_wl_GCJ='-Wl,'
21195 lt_prog_compiler_pic_GCJ='-KPIC'
21196 lt_prog_compiler_static_GCJ='-Bstatic'
21200 lt_prog_compiler_wl_GCJ='-Qoption ld '
21201 lt_prog_compiler_pic_GCJ='-PIC'
21202 lt_prog_compiler_static_GCJ='-Bstatic'
21205 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21206 lt_prog_compiler_wl_GCJ='-Wl,'
21207 lt_prog_compiler_pic_GCJ='-KPIC'
21208 lt_prog_compiler_static_GCJ='-Bstatic'
21212 if test -d /usr/nec ;then
21213 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21214 lt_prog_compiler_static_GCJ='-Bstatic'
21219 lt_prog_compiler_pic_GCJ='-pic'
21220 lt_prog_compiler_static_GCJ='-Bstatic'
21224 lt_prog_compiler_can_build_shared_GCJ=no
21229 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21230 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21233 # Check to make sure the PIC flag actually works.
21235 if test -n "$lt_prog_compiler_pic_GCJ"; then
21237 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21238 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21239 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
21242 lt_prog_compiler_pic_works_GCJ=no
21243 ac_outfile=conftest.$ac_objext
21244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21245 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21246 # Insert the option either (1) after the last *FLAGS variable, or
21247 # (2) before a word containing "conftest.", or (3) at the end.
21248 # Note that $ac_compile itself does not contain backslashes and begins
21249 # with a dollar sign (not a hyphen), so the echo should work correctly.
21250 # The option is referenced via a variable to avoid confusing sed.
21251 lt_compile=`echo "$ac_compile" | $SED \
21252 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21254 -e 's:$: $lt_compiler_flag:'`
21255 (eval echo "\"\$as_me:21255: $lt_compile\"" >&5)
21256 (eval "$lt_compile" 2>conftest.err)
21258 cat conftest.err >&5
21259 echo "$as_me:21259: \$? = $ac_status" >&5
21260 if (exit $ac_status) && test -s "$ac_outfile"; then
21261 # The compiler can only warn and ignore the option if not recognized
21262 # So say no if there are warnings
21263 if test ! -s conftest.err; then
21264 lt_prog_compiler_pic_works_GCJ=yes
21270 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21271 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21273 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21274 case $lt_prog_compiler_pic_GCJ in
21276 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21279 lt_prog_compiler_pic_GCJ=
21280 lt_prog_compiler_can_build_shared_GCJ=no
21285 # For platforms which do not support PIC, -DPIC is meaningless:
21287 lt_prog_compiler_pic_GCJ=
21290 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21294 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21295 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21296 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21297 echo $ECHO_N "(cached) $ECHO_C" >&6
21299 lt_cv_prog_compiler_c_o_GCJ=no
21300 $rm -r conftest 2>/dev/null
21304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21306 lt_compiler_flag="-o out/conftest2.$ac_objext"
21307 # Insert the option either (1) after the last *FLAGS variable, or
21308 # (2) before a word containing "conftest.", or (3) at the end.
21309 # Note that $ac_compile itself does not contain backslashes and begins
21310 # with a dollar sign (not a hyphen), so the echo should work correctly.
21311 lt_compile=`echo "$ac_compile" | $SED \
21312 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21314 -e 's:$: $lt_compiler_flag:'`
21315 (eval echo "\"\$as_me:21315: $lt_compile\"" >&5)
21316 (eval "$lt_compile" 2>out/conftest.err)
21318 cat out/conftest.err >&5
21319 echo "$as_me:21319: \$? = $ac_status" >&5
21320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21322 # The compiler can only warn and ignore the option if not recognized
21323 # So say no if there are warnings
21324 if test ! -s out/conftest.err; then
21325 lt_cv_prog_compiler_c_o_GCJ=yes
21330 # SGI C++ compiler will create directory out/ii_files/ for
21331 # template instantiation
21332 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21333 $rm out/* && rmdir out
21339 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21340 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21343 hard_links="nottested"
21344 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21345 # do not overwrite the value of need_locks provided by the user
21346 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21347 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21352 ln conftest.a conftest.b 2>&5 || hard_links=no
21353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21354 echo "$as_me:$LINENO: result: $hard_links" >&5
21355 echo "${ECHO_T}$hard_links" >&6
21356 if test "$hard_links" = no; then
21357 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21358 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21365 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21366 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21369 allow_undefined_flag_GCJ=
21370 enable_shared_with_static_runtimes_GCJ=no
21372 archive_expsym_cmds_GCJ=
21373 old_archive_From_new_cmds_GCJ=
21374 old_archive_from_expsyms_cmds_GCJ=
21375 export_dynamic_flag_spec_GCJ=
21376 whole_archive_flag_spec_GCJ=
21377 thread_safe_flag_spec_GCJ=
21378 hardcode_libdir_flag_spec_GCJ=
21379 hardcode_libdir_flag_spec_ld_GCJ=
21380 hardcode_libdir_separator_GCJ=
21381 hardcode_direct_GCJ=no
21382 hardcode_minus_L_GCJ=no
21383 hardcode_shlibpath_var_GCJ=unsupported
21384 link_all_deplibs_GCJ=unknown
21385 hardcode_automatic_GCJ=no
21387 module_expsym_cmds_GCJ=
21388 always_export_symbols_GCJ=no
21389 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21390 # include_expsyms should be a list of space-separated symbols to be *always*
21391 # included in the symbol list
21392 include_expsyms_GCJ=
21393 # exclude_expsyms can be an extended regexp of symbols to exclude
21394 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21395 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21396 # as well as any symbol that contains `d'.
21397 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21398 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21399 # platforms (ab)use it in PIC code, but their linkers get confused if
21400 # the symbol is explicitly referenced. Since portable code cannot
21401 # rely on this symbol name, it's probably fine to never include it in
21402 # preloaded symbol tables.
21403 extract_expsyms_cmds=
21406 cygwin* | mingw* | pw32*)
21407 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21408 # When not using gcc, we currently assume that we are using
21409 # Microsoft Visual C++.
21410 if test "$GCC" != yes; then
21420 if test "$with_gnu_ld" = yes; then
21421 # If archive_cmds runs LD, not CC, wlarc should be empty
21424 # See if GNU ld supports shared libraries.
21426 aix3* | aix4* | aix5*)
21427 # On AIX/PPC, the GNU linker is very broken
21428 if test "$host_cpu" != ia64; then
21432 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21433 *** to be unable to reliably create shared libraries on AIX.
21434 *** Therefore, libtool is disabling shared libraries support. If you
21435 *** really care for shared libraries, you may want to modify your PATH
21436 *** so that a non-GNU linker is found, and then restart.
21443 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)'
21444 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21445 hardcode_minus_L_GCJ=yes
21447 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21448 # that the semantics of dynamic libraries on AmigaOS, at least up
21449 # to version 4, is to share data among multiple programs linked
21450 # with the same dynamic library. Since this doesn't match the
21451 # behavior of shared libraries on other platforms, we can't use
21457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21458 allow_undefined_flag_GCJ=unsupported
21459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21460 # support --undefined. This deserves some investigation. FIXME
21461 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21467 cygwin* | mingw* | pw32*)
21468 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21469 # as there is no search path for DLLs.
21470 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21471 allow_undefined_flag_GCJ=unsupported
21472 always_export_symbols_GCJ=no
21473 enable_shared_with_static_runtimes_GCJ=yes
21474 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21476 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21477 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21478 # If the export-symbols file already is a .def file (1st line
21479 # is EXPORTS), use it as is; otherwise, prepend...
21480 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21481 cp $export_symbols $output_objdir/$soname.def;
21483 echo EXPORTS > $output_objdir/$soname.def;
21484 cat $export_symbols >> $output_objdir/$soname.def;
21486 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21494 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21503 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21507 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21508 *** create shared libraries on Solaris systems. Therefore, libtool
21509 *** is disabling shared libraries support. We urge you to upgrade GNU
21510 *** binutils to release 2.9.1 or newer. Another option is to modify
21511 *** your PATH or compiler configuration so that the native linker is
21512 *** used, and then restart.
21515 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21517 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21524 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21526 hardcode_direct_GCJ=yes
21527 hardcode_shlibpath_var_GCJ=no
21531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21532 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21533 archive_cmds_GCJ="$tmp_archive_cmds"
21534 supports_anon_versioning=no
21535 case `$LD -v 2>/dev/null` in
21536 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21537 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21538 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21539 *\ 2.11.*) ;; # other 2.11 versions
21540 *) supports_anon_versioning=yes ;;
21542 if test $supports_anon_versioning = yes; then
21543 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21545 $echo "local: *; };" >> $output_objdir/$libname.ver~
21546 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21548 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21557 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21558 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21565 if test "$ld_shlibs_GCJ" = yes; then
21566 runpath_var=LD_RUN_PATH
21567 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21568 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21569 # ancient GNU ld didn't support --whole-archive et. al.
21570 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21571 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21573 whole_archive_flag_spec_GCJ=
21577 # PORTME fill in a description of your system's linker (not GNU ld)
21580 allow_undefined_flag_GCJ=unsupported
21581 always_export_symbols_GCJ=yes
21582 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'
21583 # Note: this linker hardcodes the directories in LIBPATH if there
21584 # are no directories specified by -L.
21585 hardcode_minus_L_GCJ=yes
21586 if test "$GCC" = yes && test -z "$link_static_flag"; then
21587 # Neither direct hardcoding nor static linking is supported with a
21589 hardcode_direct_GCJ=unsupported
21594 if test "$host_cpu" = ia64; then
21595 # On IA64, the linker does run time linking by default, so we don't
21596 # have to do anything special.
21597 aix_use_runtimelinking=no
21598 exp_sym_flag='-Bexport'
21601 # If we're using GNU nm, then we don't want the "-C" option.
21602 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21603 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21604 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'
21606 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'
21608 aix_use_runtimelinking=no
21610 # Test if we are trying to use run time linking or normal
21611 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21612 # need to do runtime linking.
21613 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21614 for ld_flag in $LDFLAGS; do
21615 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21616 aix_use_runtimelinking=yes
21622 exp_sym_flag='-bexport'
21623 no_entry_flag='-bnoentry'
21626 # When large executables or shared objects are built, AIX ld can
21627 # have problems creating the table of contents. If linking a library
21628 # or program results in "error TOC overflow" add -mminimal-toc to
21629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21632 archive_cmds_GCJ=''
21633 hardcode_direct_GCJ=yes
21634 hardcode_libdir_separator_GCJ=':'
21635 link_all_deplibs_GCJ=yes
21637 if test "$GCC" = yes; then
21638 case $host_os in aix4.012|aix4.012.*)
21639 # We only want to do this on AIX 4.2 and lower, the check
21640 # below for broken collect2 doesn't work under 4.3+
21641 collect2name=`${CC} -print-prog-name=collect2`
21642 if test -f "$collect2name" && \
21643 strings "$collect2name" | grep resolve_lib_name >/dev/null
21645 # We have reworked collect2
21646 hardcode_direct_GCJ=yes
21648 # We have old collect2
21649 hardcode_direct_GCJ=unsupported
21650 # It fails to find uninstalled libraries when the uninstalled
21651 # path is not listed in the libpath. Setting hardcode_minus_L
21652 # to unsupported forces relinking
21653 hardcode_minus_L_GCJ=yes
21654 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21655 hardcode_libdir_separator_GCJ=
21658 shared_flag='-shared'
21661 if test "$host_cpu" = ia64; then
21662 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21663 # chokes on -Wl,-G. The following line is correct:
21666 if test "$aix_use_runtimelinking" = yes; then
21667 shared_flag='${wl}-G'
21669 shared_flag='${wl}-bM:SRE'
21674 # It seems that -bexpall does not export symbols beginning with
21675 # underscore (_), so it is better to generate a list of symbols to export.
21676 always_export_symbols_GCJ=yes
21677 if test "$aix_use_runtimelinking" = yes; then
21678 # Warning - without using the other runtime loading flags (-brtl),
21679 # -berok will link without error, but may produce a broken library.
21680 allow_undefined_flag_GCJ='-berok'
21681 # Determine the default libpath from the value encoded in an empty executable.
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21697 rm -f conftest.$ac_objext conftest$ac_exeext
21698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21699 (eval $ac_link) 2>conftest.er1
21701 grep -v '^ *+' conftest.er1 >conftest.err
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } &&
21706 { ac_try='test -z "$ac_c_werror_flag"
21707 || test ! -s conftest.err'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; } &&
21713 { ac_try='test -s conftest$ac_exeext'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21720 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21722 # Check for a 64-bit object if we didn't find anything.
21723 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; }
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21730 rm -f conftest.err conftest.$ac_objext \
21731 conftest$ac_exeext conftest.$ac_ext
21732 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21734 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21735 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"
21737 if test "$host_cpu" = ia64; then
21738 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21739 allow_undefined_flag_GCJ="-z nodefs"
21740 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"
21742 # Determine the default libpath from the value encoded in an empty executable.
21743 cat >conftest.$ac_ext <<_ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21760 (eval $ac_link) 2>conftest.er1
21762 grep -v '^ *+' conftest.er1 >conftest.err
21764 cat conftest.err >&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } &&
21767 { ac_try='test -z "$ac_c_werror_flag"
21768 || test ! -s conftest.err'
21769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770 (eval $ac_try) 2>&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); }; } &&
21774 { ac_try='test -s conftest$ac_exeext'
21775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 (eval $ac_try) 2>&5
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; }; then
21781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21783 # Check for a 64-bit object if we didn't find anything.
21784 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; }
21787 echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21791 rm -f conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
21793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21795 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21796 # Warning - without using the other run time loading flags,
21797 # -berok will link without error, but may produce a broken library.
21798 no_undefined_flag_GCJ=' ${wl}-bernotok'
21799 allow_undefined_flag_GCJ=' ${wl}-berok'
21800 # -bexpall does not export symbols beginning with underscore (_)
21801 always_export_symbols_GCJ=yes
21802 # Exported symbols can be pulled into shared objects from archives
21803 whole_archive_flag_spec_GCJ=' '
21804 archive_cmds_need_lc_GCJ=yes
21805 # This is similar to how AIX traditionally builds it's shared libraries.
21806 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'
21812 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)'
21813 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21814 hardcode_minus_L_GCJ=yes
21815 # see comment about different semantics on the GNU ld section
21820 export_dynamic_flag_spec_GCJ=-rdynamic
21823 cygwin* | mingw* | pw32*)
21824 # When not using gcc, we currently assume that we are using
21825 # Microsoft Visual C++.
21826 # hardcode_libdir_flag_spec is actually meaningless, as there is
21827 # no search path for DLLs.
21828 hardcode_libdir_flag_spec_GCJ=' '
21829 allow_undefined_flag_GCJ=unsupported
21830 # Tell ltmain to make .lib files, not .a files.
21832 # Tell ltmain to make .dll files, not .so files.
21834 # FIXME: Setting linknames here is a bad hack.
21835 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21836 # The linker will automatically build a .lib file if we build a DLL.
21837 old_archive_From_new_cmds_GCJ='true'
21838 # FIXME: Should let the user specify the lib program.
21839 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21840 fix_srcfile_path='`cygpath -w "$srcfile"`'
21841 enable_shared_with_static_runtimes_GCJ=yes
21844 darwin* | rhapsody*)
21846 rhapsody* | darwin1.[012])
21847 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21850 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21851 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21853 case ${MACOSX_DEPLOYMENT_TARGET} in
21855 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21858 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21864 archive_cmds_need_lc_GCJ=no
21865 hardcode_direct_GCJ=no
21866 hardcode_automatic_GCJ=yes
21867 hardcode_shlibpath_var_GCJ=unsupported
21868 whole_archive_flag_spec_GCJ=''
21869 link_all_deplibs_GCJ=yes
21870 if test "$GCC" = yes ; then
21871 output_verbose_link_cmd='echo'
21872 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21873 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21874 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21875 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}'
21876 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}'
21878 case "$cc_basename" in
21880 output_verbose_link_cmd='echo'
21881 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21882 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21883 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21884 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}'
21885 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}'
21895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21896 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21897 hardcode_shlibpath_var_GCJ=no
21904 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21905 # support. Future versions do this automatically, but an explicit c++rt0.o
21906 # does not break anything, and helps significantly (at the cost of a little
21909 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21910 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21911 hardcode_direct_GCJ=yes
21912 hardcode_shlibpath_var_GCJ=no
21915 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21917 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21918 hardcode_direct_GCJ=yes
21919 hardcode_minus_L_GCJ=yes
21920 hardcode_shlibpath_var_GCJ=no
21923 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21924 freebsd* | kfreebsd*-gnu)
21925 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21926 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21927 hardcode_direct_GCJ=yes
21928 hardcode_shlibpath_var_GCJ=no
21932 if test "$GCC" = yes; then
21933 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'
21935 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'
21937 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21938 hardcode_libdir_separator_GCJ=:
21939 hardcode_direct_GCJ=yes
21941 # hardcode_minus_L: Not really in the search PATH,
21942 # but as the default location of the library.
21943 hardcode_minus_L_GCJ=yes
21944 export_dynamic_flag_spec_GCJ='${wl}-E'
21948 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21949 case "$host_cpu" in
21951 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21954 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21958 case "$host_cpu" in
21960 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21963 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21967 if test "$with_gnu_ld" = no; then
21968 case "$host_cpu" in
21970 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21971 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21972 hardcode_libdir_separator_GCJ=:
21973 hardcode_direct_GCJ=no
21974 hardcode_shlibpath_var_GCJ=no
21977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21978 hardcode_direct_GCJ=no
21979 hardcode_shlibpath_var_GCJ=no
21981 # hardcode_minus_L: Not really in the search PATH,
21982 # but as the default location of the library.
21983 hardcode_minus_L_GCJ=yes
21986 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21987 hardcode_libdir_separator_GCJ=:
21988 hardcode_direct_GCJ=yes
21989 export_dynamic_flag_spec_GCJ='${wl}-E'
21991 # hardcode_minus_L: Not really in the search PATH,
21992 # but as the default location of the library.
21993 hardcode_minus_L_GCJ=yes
21999 irix5* | irix6* | nonstopux*)
22000 if test "$GCC" = yes; then
22001 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'
22003 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'
22004 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22007 hardcode_libdir_separator_GCJ=:
22008 link_all_deplibs_GCJ=yes
22012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22013 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22015 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22018 hardcode_direct_GCJ=yes
22019 hardcode_shlibpath_var_GCJ=no
22023 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22024 hardcode_direct_GCJ=yes
22025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22026 hardcode_libdir_separator_GCJ=:
22027 hardcode_shlibpath_var_GCJ=no
22031 hardcode_direct_GCJ=yes
22032 hardcode_shlibpath_var_GCJ=no
22033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22034 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22035 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22037 export_dynamic_flag_spec_GCJ='${wl}-E'
22040 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22042 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22045 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22054 hardcode_minus_L_GCJ=yes
22055 allow_undefined_flag_GCJ=unsupported
22056 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'
22057 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22061 if test "$GCC" = yes; then
22062 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22063 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'
22065 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22066 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'
22068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22069 hardcode_libdir_separator_GCJ=:
22072 osf4* | osf5*) # as osf3* with the addition of -msym flag
22073 if test "$GCC" = yes; then
22074 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22075 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'
22076 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22078 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22079 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'
22080 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~
22081 $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'
22083 # Both c and cxx compiler support -rpath directly
22084 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22086 hardcode_libdir_separator_GCJ=:
22090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22091 hardcode_shlibpath_var_GCJ=no
22092 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22093 runpath_var=LD_RUN_PATH
22094 hardcode_runpath_var=yes
22098 no_undefined_flag_GCJ=' -z text'
22099 if test "$GCC" = yes; then
22100 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22101 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22102 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22104 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22105 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22106 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22108 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22109 hardcode_shlibpath_var_GCJ=no
22111 solaris2.[0-5] | solaris2.[0-5].*) ;;
22112 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22113 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22115 link_all_deplibs_GCJ=yes
22119 if test "x$host_vendor" = xsequent; then
22120 # Use $CC to link under sequent, because it throws in some extra .o
22121 # files that make .init and .fini sections work.
22122 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22124 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22126 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22127 hardcode_direct_GCJ=yes
22128 hardcode_minus_L_GCJ=yes
22129 hardcode_shlibpath_var_GCJ=no
22133 case $host_vendor in
22135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22136 hardcode_direct_GCJ=yes # is this really true???
22139 ## LD is ld it makes a PLAMLIB
22140 ## CC just makes a GrossModule.
22141 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22142 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22143 hardcode_direct_GCJ=no
22146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22147 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22150 runpath_var='LD_RUN_PATH'
22151 hardcode_shlibpath_var_GCJ=no
22155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22156 hardcode_shlibpath_var_GCJ=no
22157 export_dynamic_flag_spec_GCJ='-Bexport'
22161 if test -d /usr/nec; then
22162 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22163 hardcode_shlibpath_var_GCJ=no
22164 runpath_var=LD_RUN_PATH
22165 hardcode_runpath_var=yes
22171 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22172 hardcode_direct_GCJ=yes
22173 hardcode_minus_L_GCJ=no
22174 hardcode_shlibpath_var_GCJ=no
22175 hardcode_runpath_var=yes
22176 runpath_var=LD_RUN_PATH
22179 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22180 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22181 if test "$GCC" = yes; then
22182 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22184 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22186 runpath_var='LD_RUN_PATH'
22187 hardcode_shlibpath_var_GCJ=no
22191 no_undefined_flag_GCJ=' -z text'
22192 # $CC -shared without GNU ld will not create a library from C++
22193 # object files and a static libstdc++, better avoid it by now
22194 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22195 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22196 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22197 hardcode_libdir_flag_spec_GCJ=
22198 hardcode_shlibpath_var_GCJ=no
22199 runpath_var='LD_RUN_PATH'
22203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22205 hardcode_shlibpath_var_GCJ=no
22214 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22215 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22216 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22218 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22219 if test "$GCC" = yes; then
22220 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22224 # Do we need to explicitly link libc?
22226 case "x$archive_cmds_need_lc_GCJ" in
22228 # Assume -lc should be added
22229 archive_cmds_need_lc_GCJ=yes
22231 if test "$enable_shared" = yes && test "$GCC" = yes; then
22232 case $archive_cmds_GCJ in
22234 # FIXME: we may have to deal with multi-command sequences.
22237 # Test whether the compiler implicitly links with -lc since on some
22238 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22239 # to ld, don't add -lc before -lgcc.
22240 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22241 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22243 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22246 (eval $ac_compile) 2>&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } 2>conftest.err; then
22252 libobjs=conftest.$ac_objext
22254 wl=$lt_prog_compiler_wl_GCJ
22260 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22261 allow_undefined_flag_GCJ=
22262 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22263 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }
22268 archive_cmds_need_lc_GCJ=no
22270 archive_cmds_need_lc_GCJ=yes
22272 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22274 cat conftest.err 1>&5
22277 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22278 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22285 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22286 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22287 library_names_spec=
22288 libname_spec='lib$name'
22292 postuninstall_cmds=
22296 shlibpath_overrides_runpath=unknown
22298 dynamic_linker="$host_os ld.so"
22299 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22300 if test "$GCC" = yes; then
22301 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22302 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22303 # if the path contains ";" then we assume it to be the separator
22304 # otherwise default to the standard path separator (i.e. ":") - it is
22305 # assumed that no part of a normal pathname contains ";" but that should
22306 # okay in the real world where ";" in dirpaths is itself problematic.
22307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22309 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22312 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22314 need_lib_prefix=unknown
22315 hardcode_into_libs=no
22317 # when you set need_version to no, make sure it does not cause -set_version
22318 # flags to be left without arguments
22319 need_version=unknown
22324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22325 shlibpath_var=LIBPATH
22327 # AIX 3 has no versioning support, so we append a major version to the name.
22328 soname_spec='${libname}${release}${shared_ext}$major'
22335 hardcode_into_libs=yes
22336 if test "$host_cpu" = ia64; then
22337 # AIX 5 supports IA64
22338 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22339 shlibpath_var=LD_LIBRARY_PATH
22341 # With GCC up to 2.95.x, collect2 would create an import file
22342 # for dependence libraries. The import file would start with
22343 # the line `#! .'. This would cause the generated library to
22344 # depend on `.', always an invalid library. This was fixed in
22345 # development snapshots of GCC prior to 3.0.
22347 aix4 | aix4.[01] | aix4.[01].*)
22348 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22350 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22353 can_build_shared=no
22357 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22358 # soname into executable. Probably we can add versioning support to
22359 # collect2, so additional links can be useful in future.
22360 if test "$aix_use_runtimelinking" = yes; then
22361 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22362 # instead of lib<name>.a to let people know that these are not
22363 # typical AIX shared libraries.
22364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22366 # We preserve .a as extension for shared libraries through AIX4.2
22367 # and later when we are not doing run time linking.
22368 library_names_spec='${libname}${release}.a $libname.a'
22369 soname_spec='${libname}${release}${shared_ext}$major'
22371 shlibpath_var=LIBPATH
22376 library_names_spec='$libname.ixlibrary $libname.a'
22377 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22378 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'
22382 library_names_spec='${libname}${shared_ext}'
22383 dynamic_linker="$host_os ld.so"
22384 shlibpath_var=LIBRARY_PATH
22390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22391 soname_spec='${libname}${release}${shared_ext}$major'
22392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22393 shlibpath_var=LD_LIBRARY_PATH
22394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22396 # the default ld.so.conf also contains /usr/contrib/lib and
22397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22398 # libtool to hard-code these into programs
22401 cygwin* | mingw* | pw32*)
22402 version_type=windows
22407 case $GCC,$host_os in
22408 yes,cygwin* | yes,mingw* | yes,pw32*)
22409 library_names_spec='$libname.dll.a'
22410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22411 postinstall_cmds='base_file=`basename \${file}`~
22412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22413 dldir=$destdir/`dirname \$dlpath`~
22414 test -d \$dldir || mkdir -p \$dldir~
22415 $install_prog $dir/$dlname \$dldir/$dlname'
22416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22417 dlpath=$dir/\$dldll~
22419 shlibpath_overrides_runpath=yes
22423 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22424 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22425 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22428 # MinGW DLLs use traditional 'lib' prefix
22429 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22430 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22431 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22432 # It is most probably a Windows format PATH printed by
22433 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22434 # path with ; separators, and with drive letters. We can handle the
22435 # drive letters (cygwin fileutils understands them), so leave them,
22436 # especially as we might pass files found there to a mingw objdump,
22437 # which wouldn't understand a cygwinified path. Ahh.
22438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22444 # pw32 DLLs use 'pw' prefix rather than 'lib'
22445 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22451 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22454 dynamic_linker='Win32 ld.exe'
22455 # FIXME: first we should search . and the directory the executable is in
22459 darwin* | rhapsody*)
22460 dynamic_linker="$host_os dyld"
22461 version_type=darwin
22464 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22465 soname_spec='${libname}${release}${major}$shared_ext'
22466 shlibpath_overrides_runpath=yes
22467 shlibpath_var=DYLD_LIBRARY_PATH
22468 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22469 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22470 if test "$GCC" = yes; then
22471 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"`
22473 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22475 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22483 soname_spec='${libname}${release}${shared_ext}$major'
22484 shlibpath_var=LD_LIBRARY_PATH
22495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22496 soname_spec='${libname}${release}${shared_ext}$major'
22497 shlibpath_var=LD_LIBRARY_PATH
22498 shlibpath_overrides_runpath=no
22499 hardcode_into_libs=yes
22500 dynamic_linker='GNU ld.so'
22504 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22505 version_type=freebsd-$objformat
22506 case $version_type in
22508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22517 shlibpath_var=LD_LIBRARY_PATH
22520 shlibpath_overrides_runpath=yes
22522 freebsd3.01* | freebsdelf3.01*)
22523 shlibpath_overrides_runpath=yes
22524 hardcode_into_libs=yes
22527 shlibpath_overrides_runpath=no
22528 hardcode_into_libs=yes
22537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22538 soname_spec='${libname}${release}${shared_ext}$major'
22539 shlibpath_var=LD_LIBRARY_PATH
22540 hardcode_into_libs=yes
22543 hpux9* | hpux10* | hpux11*)
22544 # Give a soname corresponding to the major version so that dld.sl refuses to
22545 # link against other versions.
22549 case "$host_cpu" in
22552 hardcode_into_libs=yes
22553 dynamic_linker="$host_os dld.so"
22554 shlibpath_var=LD_LIBRARY_PATH
22555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22557 soname_spec='${libname}${release}${shared_ext}$major'
22558 if test "X$HPUX_IA64_MODE" = X32; then
22559 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22567 hardcode_into_libs=yes
22568 dynamic_linker="$host_os dld.sl"
22569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22572 soname_spec='${libname}${release}${shared_ext}$major'
22573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22578 dynamic_linker="$host_os dld.sl"
22579 shlibpath_var=SHLIB_PATH
22580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22582 soname_spec='${libname}${release}${shared_ext}$major'
22585 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22586 postinstall_cmds='chmod 555 $lib'
22589 irix5* | irix6* | nonstopux*)
22591 nonstopux*) version_type=nonstopux ;;
22593 if test "$lt_cv_prog_gnu_ld" = yes; then
22601 soname_spec='${libname}${release}${shared_ext}$major'
22602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22604 irix5* | nonstopux*)
22605 libsuff= shlibsuff=
22608 case $LD in # libtool.m4 will add one of these switches to LD
22609 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22610 libsuff= shlibsuff= libmagic=32-bit;;
22611 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22612 libsuff=32 shlibsuff=N32 libmagic=N32;;
22613 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22614 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22615 *) libsuff= shlibsuff= libmagic=never-match;;
22619 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22620 shlibpath_overrides_runpath=no
22621 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22622 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22623 hardcode_into_libs=yes
22626 # No shared lib support for Linux oldld, aout, or coff.
22627 linux*oldld* | linux*aout* | linux*coff*)
22631 # This must be Linux ELF.
22636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22637 soname_spec='${libname}${release}${shared_ext}$major'
22638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22639 shlibpath_var=LD_LIBRARY_PATH
22640 shlibpath_overrides_runpath=no
22641 # This implies no fast_install, which is unacceptable.
22642 # Some rework will be needed to allow for fast_install
22643 # before this can be enabled.
22644 hardcode_into_libs=yes
22646 # Append ld.so.conf contents to the search path
22647 if test -f /etc/ld.so.conf; then
22648 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22649 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22652 # We used to test for /lib/ld.so.1 and disable shared libraries on
22653 # powerpc, because MkLinux only supported shared libraries with the
22654 # GNU dynamic linker. Since this was broken with cross compilers,
22655 # most powerpc-linux boxes support dynamic linking these days and
22656 # people can always --disable-shared, the test was removed, and we
22657 # assume the GNU/Linux dynamic linker is in use.
22658 dynamic_linker='GNU/Linux ld.so'
22665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22666 soname_spec='${libname}${release}${shared_ext}$major'
22667 shlibpath_var=LD_LIBRARY_PATH
22668 shlibpath_overrides_runpath=no
22669 hardcode_into_libs=yes
22670 dynamic_linker='GNU ld.so'
22677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22680 dynamic_linker='NetBSD (a.out) ld.so'
22682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22683 soname_spec='${libname}${release}${shared_ext}$major'
22684 dynamic_linker='NetBSD ld.elf_so'
22686 shlibpath_var=LD_LIBRARY_PATH
22687 shlibpath_overrides_runpath=yes
22688 hardcode_into_libs=yes
22693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22694 shlibpath_var=LD_LIBRARY_PATH
22695 shlibpath_overrides_runpath=yes
22702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22703 soname_spec='${libname}${release}${shared_ext}$major'
22704 shlibpath_var=LD_LIBRARY_PATH
22705 shlibpath_overrides_runpath=yes
22712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22714 shlibpath_var=LD_LIBRARY_PATH
22715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22717 openbsd2.[89] | openbsd2.[89].*)
22718 shlibpath_overrides_runpath=no
22721 shlibpath_overrides_runpath=yes
22725 shlibpath_overrides_runpath=yes
22730 libname_spec='$name'
22733 library_names_spec='$libname${shared_ext} $libname.a'
22734 dynamic_linker='OS/2 ld.exe'
22735 shlibpath_var=LIBPATH
22738 osf3* | osf4* | osf5*)
22742 soname_spec='${libname}${release}${shared_ext}$major'
22743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22744 shlibpath_var=LD_LIBRARY_PATH
22745 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22746 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22751 soname_spec='${libname}${release}${shared_ext}$major'
22752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22753 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
22763 shlibpath_overrides_runpath=yes
22764 hardcode_into_libs=yes
22765 # ldd complains unless libraries are executable
22766 postinstall_cmds='chmod +x $lib'
22771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22772 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22773 shlibpath_var=LD_LIBRARY_PATH
22774 shlibpath_overrides_runpath=yes
22775 if test "$with_gnu_ld" = yes; then
22781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22784 soname_spec='${libname}${release}${shared_ext}$major'
22785 shlibpath_var=LD_LIBRARY_PATH
22786 case $host_vendor in
22788 shlibpath_overrides_runpath=no
22790 export_dynamic_flag_spec='${wl}-Blargedynsym'
22791 runpath_var=LD_RUN_PATH
22799 shlibpath_overrides_runpath=no
22800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22806 if test -d /usr/nec ;then
22808 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22809 soname_spec='$libname${shared_ext}.$major'
22810 shlibpath_var=LD_LIBRARY_PATH
22816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22817 soname_spec='${libname}${release}${shared_ext}$major'
22818 shlibpath_var=LD_LIBRARY_PATH
22825 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22826 echo "${ECHO_T}$dynamic_linker" >&6
22827 test "$dynamic_linker" = no && can_build_shared=no
22829 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22830 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22831 hardcode_action_GCJ=
22832 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22833 test -n "$runpath_var_GCJ" || \
22834 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22836 # We can hardcode non-existant directories.
22837 if test "$hardcode_direct_GCJ" != no &&
22838 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22839 # have to relink, otherwise we might link with an installed library
22840 # when we should be linking with a yet-to-be-installed one
22841 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22842 test "$hardcode_minus_L_GCJ" != no; then
22843 # Linking always hardcodes the temporary library directory.
22844 hardcode_action_GCJ=relink
22846 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22847 hardcode_action_GCJ=immediate
22850 # We cannot hardcode anything, or else we can only hardcode existing
22852 hardcode_action_GCJ=unsupported
22854 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22855 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22857 if test "$hardcode_action_GCJ" = relink; then
22858 # Fast installation is not supported
22859 enable_fast_install=no
22860 elif test "$shlibpath_overrides_runpath" = yes ||
22861 test "$enable_shared" = no; then
22862 # Fast installation is not necessary
22863 enable_fast_install=needless
22868 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22869 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22870 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22871 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22872 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22873 echo "$as_me:$LINENO: result: yes" >&5
22874 echo "${ECHO_T}yes" >&6
22876 # FIXME - insert some real tests, host_os isn't really good enough
22879 if test -n "$STRIP" ; then
22880 striplib="$STRIP -x"
22881 echo "$as_me:$LINENO: result: yes" >&5
22882 echo "${ECHO_T}yes" >&6
22884 echo "$as_me:$LINENO: result: no" >&5
22885 echo "${ECHO_T}no" >&6
22889 echo "$as_me:$LINENO: result: no" >&5
22890 echo "${ECHO_T}no" >&6
22895 if test "x$enable_dlopen" != xyes; then
22896 enable_dlopen=unknown
22897 enable_dlopen_self=unknown
22898 enable_dlopen_self_static=unknown
22905 lt_cv_dlopen="load_add_on"
22907 lt_cv_dlopen_self=yes
22911 lt_cv_dlopen="LoadLibrary"
22916 lt_cv_dlopen="dlopen"
22921 # if libdl is installed we need to link against it
22922 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22923 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22924 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22927 ac_check_lib_save_LIBS=$LIBS
22929 cat >conftest.$ac_ext <<_ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22936 /* Override any gcc2 internal prototype to avoid an error. */
22940 /* We use char because int might match the return type of a gcc2
22941 builtin and then its argument prototype would still apply. */
22951 rm -f conftest.$ac_objext conftest$ac_exeext
22952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22953 (eval $ac_link) 2>conftest.er1
22955 grep -v '^ *+' conftest.er1 >conftest.err
22957 cat conftest.err >&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } &&
22960 { ac_try='test -z "$ac_c_werror_flag"
22961 || test ! -s conftest.err'
22962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963 (eval $ac_try) 2>&5
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); }; } &&
22967 { ac_try='test -s conftest$ac_exeext'
22968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969 (eval $ac_try) 2>&5
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; }; then
22973 ac_cv_lib_dl_dlopen=yes
22975 echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22978 ac_cv_lib_dl_dlopen=no
22980 rm -f conftest.err conftest.$ac_objext \
22981 conftest$ac_exeext conftest.$ac_ext
22982 LIBS=$ac_check_lib_save_LIBS
22984 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22985 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22986 if test $ac_cv_lib_dl_dlopen = yes; then
22987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22990 lt_cv_dlopen="dyld"
22992 lt_cv_dlopen_self=yes
22999 echo "$as_me:$LINENO: checking for shl_load" >&5
23000 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23001 if test "${ac_cv_func_shl_load+set}" = set; then
23002 echo $ECHO_N "(cached) $ECHO_C" >&6
23004 cat >conftest.$ac_ext <<_ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h. */
23010 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23012 #define shl_load innocuous_shl_load
23014 /* System header to define __stub macros and hopefully few prototypes,
23015 which can conflict with char shl_load (); below.
23016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23017 <limits.h> exists even on freestanding compilers. */
23020 # include <limits.h>
23022 # include <assert.h>
23027 /* Override any gcc2 internal prototype to avoid an error. */
23032 /* We use char because int might match the return type of a gcc2
23033 builtin and then its argument prototype would still apply. */
23035 /* The GNU C library defines this for functions which it implements
23036 to always fail with ENOSYS. Some functions are actually named
23037 something starting with __ and the normal name is an alias. */
23038 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23041 char (*f) () = shl_load;
23050 return f != shl_load;
23055 rm -f conftest.$ac_objext conftest$ac_exeext
23056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23057 (eval $ac_link) 2>conftest.er1
23059 grep -v '^ *+' conftest.er1 >conftest.err
23061 cat conftest.err >&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); } &&
23064 { ac_try='test -z "$ac_c_werror_flag"
23065 || test ! -s conftest.err'
23066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067 (eval $ac_try) 2>&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); }; } &&
23071 { ac_try='test -s conftest$ac_exeext'
23072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; }; then
23077 ac_cv_func_shl_load=yes
23079 echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23082 ac_cv_func_shl_load=no
23084 rm -f conftest.err conftest.$ac_objext \
23085 conftest$ac_exeext conftest.$ac_ext
23087 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23088 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23089 if test $ac_cv_func_shl_load = yes; then
23090 lt_cv_dlopen="shl_load"
23092 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23093 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23094 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23097 ac_check_lib_save_LIBS=$LIBS
23099 cat >conftest.$ac_ext <<_ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h. */
23106 /* Override any gcc2 internal prototype to avoid an error. */
23110 /* We use char because int might match the return type of a gcc2
23111 builtin and then its argument prototype would still apply. */
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23123 (eval $ac_link) 2>conftest.er1
23125 grep -v '^ *+' conftest.er1 >conftest.err
23127 cat conftest.err >&5
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } &&
23130 { ac_try='test -z "$ac_c_werror_flag"
23131 || test ! -s conftest.err'
23132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133 (eval $ac_try) 2>&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); }; } &&
23137 { ac_try='test -s conftest$ac_exeext'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; }; then
23143 ac_cv_lib_dld_shl_load=yes
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23148 ac_cv_lib_dld_shl_load=no
23150 rm -f conftest.err conftest.$ac_objext \
23151 conftest$ac_exeext conftest.$ac_ext
23152 LIBS=$ac_check_lib_save_LIBS
23154 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23155 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23156 if test $ac_cv_lib_dld_shl_load = yes; then
23157 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23159 echo "$as_me:$LINENO: checking for dlopen" >&5
23160 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23161 if test "${ac_cv_func_dlopen+set}" = set; then
23162 echo $ECHO_N "(cached) $ECHO_C" >&6
23164 cat >conftest.$ac_ext <<_ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h. */
23170 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23172 #define dlopen innocuous_dlopen
23174 /* System header to define __stub macros and hopefully few prototypes,
23175 which can conflict with char dlopen (); below.
23176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23177 <limits.h> exists even on freestanding compilers. */
23180 # include <limits.h>
23182 # include <assert.h>
23187 /* Override any gcc2 internal prototype to avoid an error. */
23192 /* We use char because int might match the return type of a gcc2
23193 builtin and then its argument prototype would still apply. */
23195 /* The GNU C library defines this for functions which it implements
23196 to always fail with ENOSYS. Some functions are actually named
23197 something starting with __ and the normal name is an alias. */
23198 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23201 char (*f) () = dlopen;
23210 return f != dlopen;
23215 rm -f conftest.$ac_objext conftest$ac_exeext
23216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23217 (eval $ac_link) 2>conftest.er1
23219 grep -v '^ *+' conftest.er1 >conftest.err
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
23224 { ac_try='test -z "$ac_c_werror_flag"
23225 || test ! -s conftest.err'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } &&
23231 { ac_try='test -s conftest$ac_exeext'
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 ac_cv_func_dlopen=yes
23239 echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23242 ac_cv_func_dlopen=no
23244 rm -f conftest.err conftest.$ac_objext \
23245 conftest$ac_exeext conftest.$ac_ext
23247 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23248 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23249 if test $ac_cv_func_dlopen = yes; then
23250 lt_cv_dlopen="dlopen"
23252 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23253 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23254 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23255 echo $ECHO_N "(cached) $ECHO_C" >&6
23257 ac_check_lib_save_LIBS=$LIBS
23259 cat >conftest.$ac_ext <<_ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h. */
23266 /* Override any gcc2 internal prototype to avoid an error. */
23270 /* We use char because int might match the return type of a gcc2
23271 builtin and then its argument prototype would still apply. */
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23283 (eval $ac_link) 2>conftest.er1
23285 grep -v '^ *+' conftest.er1 >conftest.err
23287 cat conftest.err >&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } &&
23290 { ac_try='test -z "$ac_c_werror_flag"
23291 || test ! -s conftest.err'
23292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293 (eval $ac_try) 2>&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; } &&
23297 { ac_try='test -s conftest$ac_exeext'
23298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299 (eval $ac_try) 2>&5
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; }; then
23303 ac_cv_lib_dl_dlopen=yes
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 ac_cv_lib_dl_dlopen=no
23310 rm -f conftest.err conftest.$ac_objext \
23311 conftest$ac_exeext conftest.$ac_ext
23312 LIBS=$ac_check_lib_save_LIBS
23314 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23315 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23316 if test $ac_cv_lib_dl_dlopen = yes; then
23317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23319 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23320 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23321 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23324 ac_check_lib_save_LIBS=$LIBS
23325 LIBS="-lsvld $LIBS"
23326 cat >conftest.$ac_ext <<_ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23333 /* Override any gcc2 internal prototype to avoid an error. */
23337 /* We use char because int might match the return type of a gcc2
23338 builtin and then its argument prototype would still apply. */
23348 rm -f conftest.$ac_objext conftest$ac_exeext
23349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23350 (eval $ac_link) 2>conftest.er1
23352 grep -v '^ *+' conftest.er1 >conftest.err
23354 cat conftest.err >&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } &&
23357 { ac_try='test -z "$ac_c_werror_flag"
23358 || test ! -s conftest.err'
23359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360 (eval $ac_try) 2>&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); }; } &&
23364 { ac_try='test -s conftest$ac_exeext'
23365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23366 (eval $ac_try) 2>&5
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); }; }; then
23370 ac_cv_lib_svld_dlopen=yes
23372 echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23375 ac_cv_lib_svld_dlopen=no
23377 rm -f conftest.err conftest.$ac_objext \
23378 conftest$ac_exeext conftest.$ac_ext
23379 LIBS=$ac_check_lib_save_LIBS
23381 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23382 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23383 if test $ac_cv_lib_svld_dlopen = yes; then
23384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23386 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23387 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23388 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23389 echo $ECHO_N "(cached) $ECHO_C" >&6
23391 ac_check_lib_save_LIBS=$LIBS
23393 cat >conftest.$ac_ext <<_ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h. */
23400 /* Override any gcc2 internal prototype to avoid an error. */
23404 /* We use char because int might match the return type of a gcc2
23405 builtin and then its argument prototype would still apply. */
23415 rm -f conftest.$ac_objext conftest$ac_exeext
23416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23417 (eval $ac_link) 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } &&
23424 { ac_try='test -z "$ac_c_werror_flag"
23425 || test ! -s conftest.err'
23426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23427 (eval $ac_try) 2>&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; } &&
23431 { ac_try='test -s conftest$ac_exeext'
23432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433 (eval $ac_try) 2>&5
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); }; }; then
23437 ac_cv_lib_dld_dld_link=yes
23439 echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23442 ac_cv_lib_dld_dld_link=no
23444 rm -f conftest.err conftest.$ac_objext \
23445 conftest$ac_exeext conftest.$ac_ext
23446 LIBS=$ac_check_lib_save_LIBS
23448 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23449 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23450 if test $ac_cv_lib_dld_dld_link = yes; then
23451 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23472 if test "x$lt_cv_dlopen" != xno; then
23478 case $lt_cv_dlopen in
23480 save_CPPFLAGS="$CPPFLAGS"
23481 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23483 save_LDFLAGS="$LDFLAGS"
23484 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23487 LIBS="$lt_cv_dlopen_libs $LIBS"
23489 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23490 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23491 if test "${lt_cv_dlopen_self+set}" = set; then
23492 echo $ECHO_N "(cached) $ECHO_C" >&6
23494 if test "$cross_compiling" = yes; then :
23495 lt_cv_dlopen_self=cross
23497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23498 lt_status=$lt_dlunknown
23499 cat > conftest.$ac_ext <<EOF
23500 #line 23500 "configure"
23501 #include "confdefs.h"
23510 # define LT_DLGLOBAL RTLD_GLOBAL
23513 # define LT_DLGLOBAL DL_GLOBAL
23515 # define LT_DLGLOBAL 0
23519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23520 find out it does not work in some platform. */
23521 #ifndef LT_DLLAZY_OR_NOW
23523 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23526 # define LT_DLLAZY_OR_NOW DL_LAZY
23529 # define LT_DLLAZY_OR_NOW RTLD_NOW
23532 # define LT_DLLAZY_OR_NOW DL_NOW
23534 # define LT_DLLAZY_OR_NOW 0
23542 extern "C" void exit (int);
23545 void fnord() { int i=42;}
23548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23549 int status = $lt_dlunknown;
23553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23555 /* dlclose (self); */
23561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23562 (eval $ac_link) 2>&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23566 (./conftest; exit; ) 2>/dev/null
23568 case x$lt_status in
23569 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23570 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23571 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23574 # compilation failed
23575 lt_cv_dlopen_self=no
23582 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23583 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23585 if test "x$lt_cv_dlopen_self" = xyes; then
23586 LDFLAGS="$LDFLAGS $link_static_flag"
23587 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23588 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23589 if test "${lt_cv_dlopen_self_static+set}" = set; then
23590 echo $ECHO_N "(cached) $ECHO_C" >&6
23592 if test "$cross_compiling" = yes; then :
23593 lt_cv_dlopen_self_static=cross
23595 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23596 lt_status=$lt_dlunknown
23597 cat > conftest.$ac_ext <<EOF
23598 #line 23598 "configure"
23599 #include "confdefs.h"
23608 # define LT_DLGLOBAL RTLD_GLOBAL
23611 # define LT_DLGLOBAL DL_GLOBAL
23613 # define LT_DLGLOBAL 0
23617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23618 find out it does not work in some platform. */
23619 #ifndef LT_DLLAZY_OR_NOW
23621 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23624 # define LT_DLLAZY_OR_NOW DL_LAZY
23627 # define LT_DLLAZY_OR_NOW RTLD_NOW
23630 # define LT_DLLAZY_OR_NOW DL_NOW
23632 # define LT_DLLAZY_OR_NOW 0
23640 extern "C" void exit (int);
23643 void fnord() { int i=42;}
23646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23647 int status = $lt_dlunknown;
23651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23652 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23653 /* dlclose (self); */
23659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23660 (eval $ac_link) 2>&5
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23664 (./conftest; exit; ) 2>/dev/null
23666 case x$lt_status in
23667 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23668 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23669 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23672 # compilation failed
23673 lt_cv_dlopen_self_static=no
23680 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23681 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23684 CPPFLAGS="$save_CPPFLAGS"
23685 LDFLAGS="$save_LDFLAGS"
23690 case $lt_cv_dlopen_self in
23691 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23692 *) enable_dlopen_self=unknown ;;
23695 case $lt_cv_dlopen_self_static in
23696 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23697 *) enable_dlopen_self_static=unknown ;;
23702 # The else clause should only fire when bootstrapping the
23703 # libtool distribution, otherwise you forgot to ship ltmain.sh
23704 # with your package, and you will get complaints that there are
23705 # no rules to generate ltmain.sh.
23706 if test -f "$ltmain"; then
23707 # See if we are running on zsh, and set the options which allow our commands through
23708 # without removal of \ escapes.
23709 if test -n "${ZSH_VERSION+set}" ; then
23710 setopt NO_GLOB_SUBST
23712 # Now quote all the things that may contain metacharacters while being
23713 # careful not to overquote the AC_SUBSTed values. We take copies of the
23714 # variables and quote the copies for generation of the libtool script.
23715 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23717 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23718 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23719 deplibs_check_method reload_flag reload_cmds need_locks \
23720 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23721 lt_cv_sys_global_symbol_to_c_name_address \
23722 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23723 old_postinstall_cmds old_postuninstall_cmds \
23727 lt_prog_compiler_wl_GCJ \
23728 lt_prog_compiler_pic_GCJ \
23729 lt_prog_compiler_static_GCJ \
23730 lt_prog_compiler_no_builtin_flag_GCJ \
23731 export_dynamic_flag_spec_GCJ \
23732 thread_safe_flag_spec_GCJ \
23733 whole_archive_flag_spec_GCJ \
23734 enable_shared_with_static_runtimes_GCJ \
23735 old_archive_cmds_GCJ \
23736 old_archive_from_new_cmds_GCJ \
23737 predep_objects_GCJ \
23738 postdep_objects_GCJ \
23741 compiler_lib_search_path_GCJ \
23743 archive_expsym_cmds_GCJ \
23744 postinstall_cmds_GCJ \
23745 postuninstall_cmds_GCJ \
23746 old_archive_from_expsyms_cmds_GCJ \
23747 allow_undefined_flag_GCJ \
23748 no_undefined_flag_GCJ \
23749 export_symbols_cmds_GCJ \
23750 hardcode_libdir_flag_spec_GCJ \
23751 hardcode_libdir_flag_spec_ld_GCJ \
23752 hardcode_libdir_separator_GCJ \
23753 hardcode_automatic_GCJ \
23755 module_expsym_cmds_GCJ \
23756 lt_cv_prog_compiler_c_o_GCJ \
23757 exclude_expsyms_GCJ \
23758 include_expsyms_GCJ; do
23761 old_archive_cmds_GCJ | \
23762 old_archive_from_new_cmds_GCJ | \
23763 archive_cmds_GCJ | \
23764 archive_expsym_cmds_GCJ | \
23765 module_cmds_GCJ | \
23766 module_expsym_cmds_GCJ | \
23767 old_archive_from_expsyms_cmds_GCJ | \
23768 export_symbols_cmds_GCJ | \
23769 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23770 postinstall_cmds | postuninstall_cmds | \
23771 old_postinstall_cmds | old_postuninstall_cmds | \
23772 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23773 # Double-quote double-evaled strings.
23774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23783 *'\$0 --fallback-echo"')
23784 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23790 cat <<__EOF__ >> "$cfgfile"
23791 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23793 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23795 # Shell to use when invoking shell scripts.
23798 # Whether or not to build shared libraries.
23799 build_libtool_libs=$enable_shared
23801 # Whether or not to build static libraries.
23802 build_old_libs=$enable_static
23804 # Whether or not to add -lc for building shared libraries.
23805 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23807 # Whether or not to disallow shared libs when runtime libs are static
23808 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23810 # Whether or not to optimize for fast installation.
23811 fast_install=$enable_fast_install
23814 host_alias=$host_alias
23817 # An echo program that does not interpret backslashes.
23822 AR_FLAGS=$lt_AR_FLAGS
23827 # A language-specific compiler.
23828 CC=$lt_compiler_GCJ
23830 # Is the compiler the GNU C compiler?
23836 # The linker used to build libraries.
23839 # Whether we need hard or soft links.
23842 # A BSD-compatible nm program.
23845 # A symbol stripping program
23848 # Used to examine libraries when file_magic_cmd begins "file"
23849 MAGIC_CMD=$MAGIC_CMD
23851 # Used on cygwin: DLL creation program.
23854 # Used on cygwin: object dumper.
23857 # Used on cygwin: assembler.
23860 # The name of the directory that contains temporary libtool files.
23863 # How to create reloadable object files.
23864 reload_flag=$lt_reload_flag
23865 reload_cmds=$lt_reload_cmds
23867 # How to pass a linker flag through the compiler.
23868 wl=$lt_lt_prog_compiler_wl_GCJ
23870 # Object file suffix (normally "o").
23871 objext="$ac_objext"
23873 # Old archive suffix (normally "a").
23876 # Shared library suffix (normally ".so").
23877 shrext_cmds='$shrext_cmds'
23879 # Executable file suffix (normally "").
23882 # Additional compiler flags for building library objects.
23883 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23886 # What is the maximum length of a command?
23887 max_cmd_len=$lt_cv_sys_max_cmd_len
23889 # Does compiler simultaneously support -c and -o options?
23890 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23892 # Must we lock files when doing compilation ?
23893 need_locks=$lt_need_locks
23895 # Do we need the lib prefix for modules?
23896 need_lib_prefix=$need_lib_prefix
23898 # Do we need a version for libraries?
23899 need_version=$need_version
23901 # Whether dlopen is supported.
23902 dlopen_support=$enable_dlopen
23904 # Whether dlopen of programs is supported.
23905 dlopen_self=$enable_dlopen_self
23907 # Whether dlopen of statically linked programs is supported.
23908 dlopen_self_static=$enable_dlopen_self_static
23910 # Compiler flag to prevent dynamic linking.
23911 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23913 # Compiler flag to turn off builtin functions.
23914 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23916 # Compiler flag to allow reflexive dlopens.
23917 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23919 # Compiler flag to generate shared objects directly from archives.
23920 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23922 # Compiler flag to generate thread-safe objects.
23923 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23925 # Library versioning type.
23926 version_type=$version_type
23928 # Format of library name prefix.
23929 libname_spec=$lt_libname_spec
23931 # List of archive names. First name is the real one, the rest are links.
23932 # The last name is the one that the linker finds with -lNAME.
23933 library_names_spec=$lt_library_names_spec
23935 # The coded name of the library, if different from the real name.
23936 soname_spec=$lt_soname_spec
23938 # Commands used to build and install an old-style archive.
23940 old_archive_cmds=$lt_old_archive_cmds_GCJ
23941 old_postinstall_cmds=$lt_old_postinstall_cmds
23942 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23944 # Create an old-style archive from a shared archive.
23945 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23947 # Create a temporary old-style archive to link instead of a shared archive.
23948 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23950 # Commands used to build and install a shared archive.
23951 archive_cmds=$lt_archive_cmds_GCJ
23952 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23953 postinstall_cmds=$lt_postinstall_cmds
23954 postuninstall_cmds=$lt_postuninstall_cmds
23956 # Commands used to build a loadable module (assumed same as above if empty)
23957 module_cmds=$lt_module_cmds_GCJ
23958 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23960 # Commands to strip libraries.
23961 old_striplib=$lt_old_striplib
23962 striplib=$lt_striplib
23964 # Dependencies to place before the objects being linked to create a
23966 predep_objects=$lt_predep_objects_GCJ
23968 # Dependencies to place after the objects being linked to create a
23970 postdep_objects=$lt_postdep_objects_GCJ
23972 # Dependencies to place before the objects being linked to create a
23974 predeps=$lt_predeps_GCJ
23976 # Dependencies to place after the objects being linked to create a
23978 postdeps=$lt_postdeps_GCJ
23980 # The library search path used internally by the compiler when linking
23981 # a shared library.
23982 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23984 # Method to check whether dependent libraries are shared objects.
23985 deplibs_check_method=$lt_deplibs_check_method
23987 # Command to use when deplibs_check_method == file_magic.
23988 file_magic_cmd=$lt_file_magic_cmd
23990 # Flag that allows shared libraries with undefined symbols to be built.
23991 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23993 # Flag that forces no undefined symbols.
23994 no_undefined_flag=$lt_no_undefined_flag_GCJ
23996 # Commands used to finish a libtool library installation in a directory.
23997 finish_cmds=$lt_finish_cmds
23999 # Same as above, but a single script fragment to be evaled but not shown.
24000 finish_eval=$lt_finish_eval
24002 # Take the output of nm and produce a listing of raw symbols and C names.
24003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24005 # Transform the output of nm in a proper C declaration
24006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24008 # Transform the output of nm in a C name address pair
24009 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24011 # This is the shared library runtime path variable.
24012 runpath_var=$runpath_var
24014 # This is the shared library path variable.
24015 shlibpath_var=$shlibpath_var
24017 # Is shlibpath searched before the hard-coded library search path?
24018 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24020 # How to hardcode a shared library path into an executable.
24021 hardcode_action=$hardcode_action_GCJ
24023 # Whether we should hardcode library paths into libraries.
24024 hardcode_into_libs=$hardcode_into_libs
24026 # Flag to hardcode \$libdir into a binary during linking.
24027 # This must work even if \$libdir does not exist.
24028 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24030 # If ld is used when linking, flag to hardcode \$libdir into
24031 # a binary during linking. This must work even if \$libdir does
24033 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24035 # Whether we need a single -rpath flag with a separated argument.
24036 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24038 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24039 # resulting binary.
24040 hardcode_direct=$hardcode_direct_GCJ
24042 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24043 # resulting binary.
24044 hardcode_minus_L=$hardcode_minus_L_GCJ
24046 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24047 # the resulting binary.
24048 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24050 # Set to yes if building a shared library automatically hardcodes DIR into the library
24051 # and all subsequent libraries and executables linked against it.
24052 hardcode_automatic=$hardcode_automatic_GCJ
24054 # Variables whose values should be saved in libtool wrapper scripts and
24055 # restored at relink time.
24056 variables_saved_for_relink="$variables_saved_for_relink"
24058 # Whether libtool must link a program against all its dependency libraries.
24059 link_all_deplibs=$link_all_deplibs_GCJ
24061 # Compile-time system search path for libraries
24062 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24064 # Run-time system search path for libraries
24065 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24067 # Fix the shell variable \$srcfile for the compiler.
24068 fix_srcfile_path="$fix_srcfile_path_GCJ"
24070 # Set to yes if exported symbols are required.
24071 always_export_symbols=$always_export_symbols_GCJ
24073 # The commands to list exported symbols.
24074 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24076 # The commands to extract the exported symbol list from a shared archive.
24077 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24079 # Symbols that should not be listed in the preloaded symbols.
24080 exclude_expsyms=$lt_exclude_expsyms_GCJ
24082 # Symbols that must always be exported.
24083 include_expsyms=$lt_include_expsyms_GCJ
24085 # ### END LIBTOOL TAG CONFIG: $tagname
24091 # If there is no Makefile yet, we rely on a make rule to execute
24092 # `config.status --recheck' to rerun these tests and create the
24093 # libtool script then.
24094 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24095 if test -f "$ltmain_in"; then
24096 test -f Makefile && make "$ltmain"
24102 ac_cpp='$CPP $CPPFLAGS'
24103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24116 ac_cpp='$CPP $CPPFLAGS'
24117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24122 # Source file extension for RC test sources.
24125 # Object file extension for compiled RC test sources.
24129 # Code to be used in simple compile tests
24130 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24132 # Code to be used in simple link tests
24133 lt_simple_link_test_code="$lt_simple_compile_test_code"
24135 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24137 # If no C compiler was specified, use CC.
24140 # Allow CC to be a program name with arguments.
24144 # Allow CC to be a program name with arguments.
24149 lt_cv_prog_compiler_c_o_RC=yes
24151 # The else clause should only fire when bootstrapping the
24152 # libtool distribution, otherwise you forgot to ship ltmain.sh
24153 # with your package, and you will get complaints that there are
24154 # no rules to generate ltmain.sh.
24155 if test -f "$ltmain"; then
24156 # See if we are running on zsh, and set the options which allow our commands through
24157 # without removal of \ escapes.
24158 if test -n "${ZSH_VERSION+set}" ; then
24159 setopt NO_GLOB_SUBST
24161 # Now quote all the things that may contain metacharacters while being
24162 # careful not to overquote the AC_SUBSTed values. We take copies of the
24163 # variables and quote the copies for generation of the libtool script.
24164 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24166 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24167 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24168 deplibs_check_method reload_flag reload_cmds need_locks \
24169 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24170 lt_cv_sys_global_symbol_to_c_name_address \
24171 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24172 old_postinstall_cmds old_postuninstall_cmds \
24176 lt_prog_compiler_wl_RC \
24177 lt_prog_compiler_pic_RC \
24178 lt_prog_compiler_static_RC \
24179 lt_prog_compiler_no_builtin_flag_RC \
24180 export_dynamic_flag_spec_RC \
24181 thread_safe_flag_spec_RC \
24182 whole_archive_flag_spec_RC \
24183 enable_shared_with_static_runtimes_RC \
24184 old_archive_cmds_RC \
24185 old_archive_from_new_cmds_RC \
24186 predep_objects_RC \
24187 postdep_objects_RC \
24190 compiler_lib_search_path_RC \
24192 archive_expsym_cmds_RC \
24193 postinstall_cmds_RC \
24194 postuninstall_cmds_RC \
24195 old_archive_from_expsyms_cmds_RC \
24196 allow_undefined_flag_RC \
24197 no_undefined_flag_RC \
24198 export_symbols_cmds_RC \
24199 hardcode_libdir_flag_spec_RC \
24200 hardcode_libdir_flag_spec_ld_RC \
24201 hardcode_libdir_separator_RC \
24202 hardcode_automatic_RC \
24204 module_expsym_cmds_RC \
24205 lt_cv_prog_compiler_c_o_RC \
24206 exclude_expsyms_RC \
24207 include_expsyms_RC; do
24210 old_archive_cmds_RC | \
24211 old_archive_from_new_cmds_RC | \
24212 archive_cmds_RC | \
24213 archive_expsym_cmds_RC | \
24215 module_expsym_cmds_RC | \
24216 old_archive_from_expsyms_cmds_RC | \
24217 export_symbols_cmds_RC | \
24218 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24219 postinstall_cmds | postuninstall_cmds | \
24220 old_postinstall_cmds | old_postuninstall_cmds | \
24221 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24222 # Double-quote double-evaled strings.
24223 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24226 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24232 *'\$0 --fallback-echo"')
24233 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24239 cat <<__EOF__ >> "$cfgfile"
24240 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24242 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24244 # Shell to use when invoking shell scripts.
24247 # Whether or not to build shared libraries.
24248 build_libtool_libs=$enable_shared
24250 # Whether or not to build static libraries.
24251 build_old_libs=$enable_static
24253 # Whether or not to add -lc for building shared libraries.
24254 build_libtool_need_lc=$archive_cmds_need_lc_RC
24256 # Whether or not to disallow shared libs when runtime libs are static
24257 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24259 # Whether or not to optimize for fast installation.
24260 fast_install=$enable_fast_install
24263 host_alias=$host_alias
24266 # An echo program that does not interpret backslashes.
24271 AR_FLAGS=$lt_AR_FLAGS
24276 # A language-specific compiler.
24279 # Is the compiler the GNU C compiler?
24285 # The linker used to build libraries.
24288 # Whether we need hard or soft links.
24291 # A BSD-compatible nm program.
24294 # A symbol stripping program
24297 # Used to examine libraries when file_magic_cmd begins "file"
24298 MAGIC_CMD=$MAGIC_CMD
24300 # Used on cygwin: DLL creation program.
24303 # Used on cygwin: object dumper.
24306 # Used on cygwin: assembler.
24309 # The name of the directory that contains temporary libtool files.
24312 # How to create reloadable object files.
24313 reload_flag=$lt_reload_flag
24314 reload_cmds=$lt_reload_cmds
24316 # How to pass a linker flag through the compiler.
24317 wl=$lt_lt_prog_compiler_wl_RC
24319 # Object file suffix (normally "o").
24320 objext="$ac_objext"
24322 # Old archive suffix (normally "a").
24325 # Shared library suffix (normally ".so").
24326 shrext_cmds='$shrext_cmds'
24328 # Executable file suffix (normally "").
24331 # Additional compiler flags for building library objects.
24332 pic_flag=$lt_lt_prog_compiler_pic_RC
24335 # What is the maximum length of a command?
24336 max_cmd_len=$lt_cv_sys_max_cmd_len
24338 # Does compiler simultaneously support -c and -o options?
24339 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24341 # Must we lock files when doing compilation ?
24342 need_locks=$lt_need_locks
24344 # Do we need the lib prefix for modules?
24345 need_lib_prefix=$need_lib_prefix
24347 # Do we need a version for libraries?
24348 need_version=$need_version
24350 # Whether dlopen is supported.
24351 dlopen_support=$enable_dlopen
24353 # Whether dlopen of programs is supported.
24354 dlopen_self=$enable_dlopen_self
24356 # Whether dlopen of statically linked programs is supported.
24357 dlopen_self_static=$enable_dlopen_self_static
24359 # Compiler flag to prevent dynamic linking.
24360 link_static_flag=$lt_lt_prog_compiler_static_RC
24362 # Compiler flag to turn off builtin functions.
24363 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24365 # Compiler flag to allow reflexive dlopens.
24366 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24368 # Compiler flag to generate shared objects directly from archives.
24369 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24371 # Compiler flag to generate thread-safe objects.
24372 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24374 # Library versioning type.
24375 version_type=$version_type
24377 # Format of library name prefix.
24378 libname_spec=$lt_libname_spec
24380 # List of archive names. First name is the real one, the rest are links.
24381 # The last name is the one that the linker finds with -lNAME.
24382 library_names_spec=$lt_library_names_spec
24384 # The coded name of the library, if different from the real name.
24385 soname_spec=$lt_soname_spec
24387 # Commands used to build and install an old-style archive.
24389 old_archive_cmds=$lt_old_archive_cmds_RC
24390 old_postinstall_cmds=$lt_old_postinstall_cmds
24391 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24393 # Create an old-style archive from a shared archive.
24394 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24396 # Create a temporary old-style archive to link instead of a shared archive.
24397 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24399 # Commands used to build and install a shared archive.
24400 archive_cmds=$lt_archive_cmds_RC
24401 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24402 postinstall_cmds=$lt_postinstall_cmds
24403 postuninstall_cmds=$lt_postuninstall_cmds
24405 # Commands used to build a loadable module (assumed same as above if empty)
24406 module_cmds=$lt_module_cmds_RC
24407 module_expsym_cmds=$lt_module_expsym_cmds_RC
24409 # Commands to strip libraries.
24410 old_striplib=$lt_old_striplib
24411 striplib=$lt_striplib
24413 # Dependencies to place before the objects being linked to create a
24415 predep_objects=$lt_predep_objects_RC
24417 # Dependencies to place after the objects being linked to create a
24419 postdep_objects=$lt_postdep_objects_RC
24421 # Dependencies to place before the objects being linked to create a
24423 predeps=$lt_predeps_RC
24425 # Dependencies to place after the objects being linked to create a
24427 postdeps=$lt_postdeps_RC
24429 # The library search path used internally by the compiler when linking
24430 # a shared library.
24431 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24433 # Method to check whether dependent libraries are shared objects.
24434 deplibs_check_method=$lt_deplibs_check_method
24436 # Command to use when deplibs_check_method == file_magic.
24437 file_magic_cmd=$lt_file_magic_cmd
24439 # Flag that allows shared libraries with undefined symbols to be built.
24440 allow_undefined_flag=$lt_allow_undefined_flag_RC
24442 # Flag that forces no undefined symbols.
24443 no_undefined_flag=$lt_no_undefined_flag_RC
24445 # Commands used to finish a libtool library installation in a directory.
24446 finish_cmds=$lt_finish_cmds
24448 # Same as above, but a single script fragment to be evaled but not shown.
24449 finish_eval=$lt_finish_eval
24451 # Take the output of nm and produce a listing of raw symbols and C names.
24452 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24454 # Transform the output of nm in a proper C declaration
24455 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24457 # Transform the output of nm in a C name address pair
24458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24460 # This is the shared library runtime path variable.
24461 runpath_var=$runpath_var
24463 # This is the shared library path variable.
24464 shlibpath_var=$shlibpath_var
24466 # Is shlibpath searched before the hard-coded library search path?
24467 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24469 # How to hardcode a shared library path into an executable.
24470 hardcode_action=$hardcode_action_RC
24472 # Whether we should hardcode library paths into libraries.
24473 hardcode_into_libs=$hardcode_into_libs
24475 # Flag to hardcode \$libdir into a binary during linking.
24476 # This must work even if \$libdir does not exist.
24477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24479 # If ld is used when linking, flag to hardcode \$libdir into
24480 # a binary during linking. This must work even if \$libdir does
24482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24484 # Whether we need a single -rpath flag with a separated argument.
24485 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24487 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24488 # resulting binary.
24489 hardcode_direct=$hardcode_direct_RC
24491 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24492 # resulting binary.
24493 hardcode_minus_L=$hardcode_minus_L_RC
24495 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24496 # the resulting binary.
24497 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24499 # Set to yes if building a shared library automatically hardcodes DIR into the library
24500 # and all subsequent libraries and executables linked against it.
24501 hardcode_automatic=$hardcode_automatic_RC
24503 # Variables whose values should be saved in libtool wrapper scripts and
24504 # restored at relink time.
24505 variables_saved_for_relink="$variables_saved_for_relink"
24507 # Whether libtool must link a program against all its dependency libraries.
24508 link_all_deplibs=$link_all_deplibs_RC
24510 # Compile-time system search path for libraries
24511 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24513 # Run-time system search path for libraries
24514 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24516 # Fix the shell variable \$srcfile for the compiler.
24517 fix_srcfile_path="$fix_srcfile_path_RC"
24519 # Set to yes if exported symbols are required.
24520 always_export_symbols=$always_export_symbols_RC
24522 # The commands to list exported symbols.
24523 export_symbols_cmds=$lt_export_symbols_cmds_RC
24525 # The commands to extract the exported symbol list from a shared archive.
24526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24528 # Symbols that should not be listed in the preloaded symbols.
24529 exclude_expsyms=$lt_exclude_expsyms_RC
24531 # Symbols that must always be exported.
24532 include_expsyms=$lt_include_expsyms_RC
24534 # ### END LIBTOOL TAG CONFIG: $tagname
24540 # If there is no Makefile yet, we rely on a make rule to execute
24541 # `config.status --recheck' to rerun these tests and create the
24542 # libtool script then.
24543 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24544 if test -f "$ltmain_in"; then
24545 test -f Makefile && make "$ltmain"
24551 ac_cpp='$CPP $CPPFLAGS'
24552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24561 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24562 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24563 { (exit 1); exit 1; }; }
24567 # Append the new tag name to the list of available tags.
24568 if test -n "$tagname" ; then
24569 available_tags="$available_tags $tagname"
24575 # Now substitute the updated list of available tags.
24576 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24577 mv "${ofile}T" "$ofile"
24581 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24582 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24583 { (exit 1); exit 1; }; }
24589 # This can be used to rebuild libtool when needed
24590 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24592 # Always use our own libtool.
24593 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24595 # Prevent multiple expansion
24617 etags_version=`$ETAGS --version 2>&1`
24618 case "$etags_version" in
24619 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24620 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24621 *) ETAGSFLAGS="" ;;
24623 ETAGSFLAGS=$ETAGSFLAGS
24626 echo "$as_me:$LINENO: checking tool compatibility" >&5
24627 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24640 if test "$GCC" != "yes" && test "$ICC" != "yes"
24642 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24643 echo "$as_me: error: gcc|icc required but not found" >&2;}
24644 { (exit 1); exit 1; }; }
24647 if test "$GXX" != "yes" && test "$IXX" != "yes"
24649 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24650 echo "$as_me: error: g++|icc required but not found" >&2;}
24651 { (exit 1); exit 1; }; }
24654 if test "$GCC" = "yes"
24656 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24657 if test "$gccmajor" -lt "3"
24659 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24660 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24661 { (exit 1); exit 1; }; }
24665 if test -z "$llvm_cv_gnu_make_command"
24667 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24668 echo "$as_me: error: GNU Make required but not found" >&2;}
24669 { (exit 1); exit 1; }; }
24672 echo "$as_me:$LINENO: result: ok" >&5
24673 echo "${ECHO_T}ok" >&6
24677 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24678 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24679 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24680 echo $ECHO_N "(cached) $ECHO_C" >&6
24682 ac_check_lib_save_LIBS=$LIBS
24684 cat >conftest.$ac_ext <<_ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24691 /* Override any gcc2 internal prototype to avoid an error. */
24695 /* We use char because int might match the return type of a gcc2
24696 builtin and then its argument prototype would still apply. */
24706 rm -f conftest.$ac_objext conftest$ac_exeext
24707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24708 (eval $ac_link) 2>conftest.er1
24710 grep -v '^ *+' conftest.er1 >conftest.err
24712 cat conftest.err >&5
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } &&
24715 { ac_try='test -z "$ac_c_werror_flag"
24716 || test ! -s conftest.err'
24717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718 (eval $ac_try) 2>&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); }; } &&
24722 { ac_try='test -s conftest$ac_exeext'
24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; }; then
24728 ac_cv_lib_elf_elf_begin=yes
24730 echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24733 ac_cv_lib_elf_elf_begin=no
24735 rm -f conftest.err conftest.$ac_objext \
24736 conftest$ac_exeext conftest.$ac_ext
24737 LIBS=$ac_check_lib_save_LIBS
24739 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24740 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24741 if test $ac_cv_lib_elf_elf_begin = yes; then
24742 cat >>confdefs.h <<_ACEOF
24743 #define HAVE_LIBELF 1
24751 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24752 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24753 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24754 echo $ECHO_N "(cached) $ECHO_C" >&6
24756 ac_func_search_save_LIBS=$LIBS
24757 ac_cv_search_lt_dlopen=no
24758 cat >conftest.$ac_ext <<_ACEOF
24761 cat confdefs.h >>conftest.$ac_ext
24762 cat >>conftest.$ac_ext <<_ACEOF
24763 /* end confdefs.h. */
24765 /* Override any gcc2 internal prototype to avoid an error. */
24769 /* We use char because int might match the return type of a gcc2
24770 builtin and then its argument prototype would still apply. */
24780 rm -f conftest.$ac_objext conftest$ac_exeext
24781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24782 (eval $ac_link) 2>conftest.er1
24784 grep -v '^ *+' conftest.er1 >conftest.err
24786 cat conftest.err >&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } &&
24789 { ac_try='test -z "$ac_c_werror_flag"
24790 || test ! -s conftest.err'
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; } &&
24796 { ac_try='test -s conftest$ac_exeext'
24797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798 (eval $ac_try) 2>&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); }; }; then
24802 ac_cv_search_lt_dlopen="none required"
24804 echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24808 rm -f conftest.err conftest.$ac_objext \
24809 conftest$ac_exeext conftest.$ac_ext
24810 if test "$ac_cv_search_lt_dlopen" = no; then
24811 for ac_lib in ltdl; do
24812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24813 cat >conftest.$ac_ext <<_ACEOF
24816 cat confdefs.h >>conftest.$ac_ext
24817 cat >>conftest.$ac_ext <<_ACEOF
24818 /* end confdefs.h. */
24820 /* Override any gcc2 internal prototype to avoid an error. */
24824 /* We use char because int might match the return type of a gcc2
24825 builtin and then its argument prototype would still apply. */
24835 rm -f conftest.$ac_objext conftest$ac_exeext
24836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24837 (eval $ac_link) 2>conftest.er1
24839 grep -v '^ *+' conftest.er1 >conftest.err
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } &&
24844 { ac_try='test -z "$ac_c_werror_flag"
24845 || test ! -s conftest.err'
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; } &&
24851 { ac_try='test -s conftest$ac_exeext'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; }; then
24857 ac_cv_search_lt_dlopen="-l$ac_lib"
24860 echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24864 rm -f conftest.err conftest.$ac_objext \
24865 conftest$ac_exeext conftest.$ac_ext
24868 LIBS=$ac_func_search_save_LIBS
24870 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24871 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24872 if test "$ac_cv_search_lt_dlopen" != no; then
24873 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24875 cat >>confdefs.h <<\_ACEOF
24876 #define HAVE_LT_DLOPEN 1
24880 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24881 not be available" >&5
24882 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24883 not be available" >&2;}
24887 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24888 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24889 if test "${ac_cv_search_dlopen+set}" = set; then
24890 echo $ECHO_N "(cached) $ECHO_C" >&6
24892 ac_func_search_save_LIBS=$LIBS
24893 ac_cv_search_dlopen=no
24894 cat >conftest.$ac_ext <<_ACEOF
24897 cat confdefs.h >>conftest.$ac_ext
24898 cat >>conftest.$ac_ext <<_ACEOF
24899 /* end confdefs.h. */
24901 /* Override any gcc2 internal prototype to avoid an error. */
24905 /* We use char because int might match the return type of a gcc2
24906 builtin and then its argument prototype would still apply. */
24916 rm -f conftest.$ac_objext conftest$ac_exeext
24917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24918 (eval $ac_link) 2>conftest.er1
24920 grep -v '^ *+' conftest.er1 >conftest.err
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag"
24926 || test ! -s conftest.err'
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; } &&
24932 { ac_try='test -s conftest$ac_exeext'
24933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 ac_cv_search_dlopen="none required"
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24944 rm -f conftest.err conftest.$ac_objext \
24945 conftest$ac_exeext conftest.$ac_ext
24946 if test "$ac_cv_search_dlopen" = no; then
24947 for ac_lib in dl; do
24948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24949 cat >conftest.$ac_ext <<_ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h. */
24956 /* Override any gcc2 internal prototype to avoid an error. */
24960 /* We use char because int might match the return type of a gcc2
24961 builtin and then its argument prototype would still apply. */
24971 rm -f conftest.$ac_objext conftest$ac_exeext
24972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24973 (eval $ac_link) 2>conftest.er1
24975 grep -v '^ *+' conftest.er1 >conftest.err
24977 cat conftest.err >&5
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } &&
24980 { ac_try='test -z "$ac_c_werror_flag"
24981 || test ! -s conftest.err'
24982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24983 (eval $ac_try) 2>&5
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); }; } &&
24987 { ac_try='test -s conftest$ac_exeext'
24988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24989 (eval $ac_try) 2>&5
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); }; }; then
24993 ac_cv_search_dlopen="-l$ac_lib"
24996 echo "$as_me: failed program was:" >&5
24997 sed 's/^/| /' conftest.$ac_ext >&5
25000 rm -f conftest.err conftest.$ac_objext \
25001 conftest$ac_exeext conftest.$ac_ext
25004 LIBS=$ac_func_search_save_LIBS
25006 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25007 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25008 if test "$ac_cv_search_dlopen" != no; then
25009 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25011 cat >>confdefs.h <<\_ACEOF
25012 #define HAVE_DLOPEN 1
25016 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25017 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25021 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25022 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25023 if test "${ac_cv_search_mallinfo+set}" = set; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
25026 ac_func_search_save_LIBS=$LIBS
25027 ac_cv_search_mallinfo=no
25028 cat >conftest.$ac_ext <<_ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h. */
25035 /* Override any gcc2 internal prototype to avoid an error. */
25039 /* We use char because int might match the return type of a gcc2
25040 builtin and then its argument prototype would still apply. */
25050 rm -f conftest.$ac_objext conftest$ac_exeext
25051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25052 (eval $ac_link) 2>conftest.er1
25054 grep -v '^ *+' conftest.er1 >conftest.err
25056 cat conftest.err >&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } &&
25059 { ac_try='test -z "$ac_c_werror_flag"
25060 || test ! -s conftest.err'
25061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25062 (eval $ac_try) 2>&5
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); }; } &&
25066 { ac_try='test -s conftest$ac_exeext'
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; }; then
25072 ac_cv_search_mallinfo="none required"
25074 echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25078 rm -f conftest.err conftest.$ac_objext \
25079 conftest$ac_exeext conftest.$ac_ext
25080 if test "$ac_cv_search_mallinfo" = no; then
25081 for ac_lib in malloc; do
25082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25083 cat >conftest.$ac_ext <<_ACEOF
25086 cat confdefs.h >>conftest.$ac_ext
25087 cat >>conftest.$ac_ext <<_ACEOF
25088 /* end confdefs.h. */
25090 /* Override any gcc2 internal prototype to avoid an error. */
25094 /* We use char because int might match the return type of a gcc2
25095 builtin and then its argument prototype would still apply. */
25105 rm -f conftest.$ac_objext conftest$ac_exeext
25106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25107 (eval $ac_link) 2>conftest.er1
25109 grep -v '^ *+' conftest.er1 >conftest.err
25111 cat conftest.err >&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } &&
25114 { ac_try='test -z "$ac_c_werror_flag"
25115 || test ! -s conftest.err'
25116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25117 (eval $ac_try) 2>&5
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); }; } &&
25121 { ac_try='test -s conftest$ac_exeext'
25122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25123 (eval $ac_try) 2>&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); }; }; then
25127 ac_cv_search_mallinfo="-l$ac_lib"
25130 echo "$as_me: failed program was:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25134 rm -f conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
25138 LIBS=$ac_func_search_save_LIBS
25140 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25141 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25142 if test "$ac_cv_search_mallinfo" != no; then
25143 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25145 cat >>confdefs.h <<\_ACEOF
25146 #define HAVE_MALLINFO 1
25152 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25153 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25154 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25155 echo $ECHO_N "(cached) $ECHO_C" >&6
25157 ac_func_search_save_LIBS=$LIBS
25158 ac_cv_search_pthread_mutex_lock=no
25159 cat >conftest.$ac_ext <<_ACEOF
25162 cat confdefs.h >>conftest.$ac_ext
25163 cat >>conftest.$ac_ext <<_ACEOF
25164 /* end confdefs.h. */
25166 /* Override any gcc2 internal prototype to avoid an error. */
25170 /* We use char because int might match the return type of a gcc2
25171 builtin and then its argument prototype would still apply. */
25172 char pthread_mutex_lock ();
25176 pthread_mutex_lock ();
25181 rm -f conftest.$ac_objext conftest$ac_exeext
25182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25183 (eval $ac_link) 2>conftest.er1
25185 grep -v '^ *+' conftest.er1 >conftest.err
25187 cat conftest.err >&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } &&
25190 { ac_try='test -z "$ac_c_werror_flag"
25191 || test ! -s conftest.err'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; } &&
25197 { ac_try='test -s conftest$ac_exeext'
25198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199 (eval $ac_try) 2>&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
25203 ac_cv_search_pthread_mutex_lock="none required"
25205 echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25209 rm -f conftest.err conftest.$ac_objext \
25210 conftest$ac_exeext conftest.$ac_ext
25211 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25212 for ac_lib in pthread; do
25213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25214 cat >conftest.$ac_ext <<_ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h. */
25221 /* Override any gcc2 internal prototype to avoid an error. */
25225 /* We use char because int might match the return type of a gcc2
25226 builtin and then its argument prototype would still apply. */
25227 char pthread_mutex_lock ();
25231 pthread_mutex_lock ();
25236 rm -f conftest.$ac_objext conftest$ac_exeext
25237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25238 (eval $ac_link) 2>conftest.er1
25240 grep -v '^ *+' conftest.er1 >conftest.err
25242 cat conftest.err >&5
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); } &&
25245 { ac_try='test -z "$ac_c_werror_flag"
25246 || test ! -s conftest.err'
25247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248 (eval $ac_try) 2>&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; } &&
25252 { ac_try='test -s conftest$ac_exeext'
25253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25254 (eval $ac_try) 2>&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); }; }; then
25258 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25261 echo "$as_me: failed program was:" >&5
25262 sed 's/^/| /' conftest.$ac_ext >&5
25265 rm -f conftest.err conftest.$ac_objext \
25266 conftest$ac_exeext conftest.$ac_ext
25269 LIBS=$ac_func_search_save_LIBS
25271 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25272 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25273 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25274 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25276 cat >>confdefs.h <<\_ACEOF
25277 #define HAVE_PTHREAD_MUTEX_LOCK 1
25284 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25285 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25286 if test "${ac_cv_header_stdc+set}" = set; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25289 cat >conftest.$ac_ext <<_ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h. */
25295 #include <stdlib.h>
25296 #include <stdarg.h>
25297 #include <string.h>
25308 rm -f conftest.$ac_objext
25309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25310 (eval $ac_compile) 2>conftest.er1
25312 grep -v '^ *+' conftest.er1 >conftest.err
25314 cat conftest.err >&5
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); } &&
25317 { ac_try='test -z "$ac_c_werror_flag"
25318 || test ! -s conftest.err'
25319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25320 (eval $ac_try) 2>&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); }; } &&
25324 { ac_try='test -s conftest.$ac_objext'
25325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326 (eval $ac_try) 2>&5
25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); }; }; then
25330 ac_cv_header_stdc=yes
25332 echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25335 ac_cv_header_stdc=no
25337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25339 if test $ac_cv_header_stdc = yes; then
25340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25341 cat >conftest.$ac_ext <<_ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h. */
25347 #include <string.h>
25350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25351 $EGREP "memchr" >/dev/null 2>&1; then
25354 ac_cv_header_stdc=no
25360 if test $ac_cv_header_stdc = yes; then
25361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25362 cat >conftest.$ac_ext <<_ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h. */
25368 #include <stdlib.h>
25371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25372 $EGREP "free" >/dev/null 2>&1; then
25375 ac_cv_header_stdc=no
25381 if test $ac_cv_header_stdc = yes; then
25382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25383 if test "$cross_compiling" = yes; then
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25393 #if ((' ' & 0x0FF) == 0x020)
25394 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25395 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25397 # define ISLOWER(c) \
25398 (('a' <= (c) && (c) <= 'i') \
25399 || ('j' <= (c) && (c) <= 'r') \
25400 || ('s' <= (c) && (c) <= 'z'))
25401 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25404 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25409 for (i = 0; i < 256; i++)
25410 if (XOR (islower (i), ISLOWER (i))
25411 || toupper (i) != TOUPPER (i))
25416 rm -f conftest$ac_exeext
25417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25418 (eval $ac_link) 2>&5
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423 (eval $ac_try) 2>&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; }; then
25429 echo "$as_me: program exited with status $ac_status" >&5
25430 echo "$as_me: failed program was:" >&5
25431 sed 's/^/| /' conftest.$ac_ext >&5
25433 ( exit $ac_status )
25434 ac_cv_header_stdc=no
25436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25440 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25441 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25442 if test $ac_cv_header_stdc = yes; then
25444 cat >>confdefs.h <<\_ACEOF
25445 #define STDC_HEADERS 1
25451 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25452 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25453 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25454 echo $ECHO_N "(cached) $ECHO_C" >&6
25456 cat >conftest.$ac_ext <<_ACEOF
25459 cat confdefs.h >>conftest.$ac_ext
25460 cat >>conftest.$ac_ext <<_ACEOF
25461 /* end confdefs.h. */
25462 #include <sys/types.h>
25463 #include <sys/wait.h>
25464 #ifndef WEXITSTATUS
25465 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25468 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25476 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25481 rm -f conftest.$ac_objext
25482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25483 (eval $ac_compile) 2>conftest.er1
25485 grep -v '^ *+' conftest.er1 >conftest.err
25487 cat conftest.err >&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); } &&
25490 { ac_try='test -z "$ac_c_werror_flag"
25491 || test ! -s conftest.err'
25492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493 (eval $ac_try) 2>&5
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); }; } &&
25497 { ac_try='test -s conftest.$ac_objext'
25498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499 (eval $ac_try) 2>&5
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); }; }; then
25503 ac_cv_header_sys_wait_h=yes
25505 echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25508 ac_cv_header_sys_wait_h=no
25510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25512 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25513 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25514 if test $ac_cv_header_sys_wait_h = yes; then
25516 cat >>confdefs.h <<\_ACEOF
25517 #define HAVE_SYS_WAIT_H 1
25527 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25531 echo "$as_me:$LINENO: checking for $ac_header" >&5
25532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25534 echo $ECHO_N "(cached) $ECHO_C" >&6
25536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25539 # Is the header compilable?
25540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25542 cat >conftest.$ac_ext <<_ACEOF
25545 cat confdefs.h >>conftest.$ac_ext
25546 cat >>conftest.$ac_ext <<_ACEOF
25547 /* end confdefs.h. */
25548 $ac_includes_default
25549 #include <$ac_header>
25551 rm -f conftest.$ac_objext
25552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25553 (eval $ac_compile) 2>conftest.er1
25555 grep -v '^ *+' conftest.er1 >conftest.err
25557 cat conftest.err >&5
25558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); } &&
25560 { ac_try='test -z "$ac_c_werror_flag"
25561 || test ! -s conftest.err'
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; } &&
25567 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25573 ac_header_compiler=yes
25575 echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25578 ac_header_compiler=no
25580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25582 echo "${ECHO_T}$ac_header_compiler" >&6
25584 # Is the header present?
25585 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25587 cat >conftest.$ac_ext <<_ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25593 #include <$ac_header>
25595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25598 grep -v '^ *+' conftest.er1 >conftest.err
25600 cat conftest.err >&5
25601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); } >/dev/null; then
25603 if test -s conftest.err; then
25604 ac_cpp_err=$ac_c_preproc_warn_flag
25605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25612 if test -z "$ac_cpp_err"; then
25613 ac_header_preproc=yes
25615 echo "$as_me: failed program was:" >&5
25616 sed 's/^/| /' conftest.$ac_ext >&5
25618 ac_header_preproc=no
25620 rm -f conftest.err conftest.$ac_ext
25621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25622 echo "${ECHO_T}$ac_header_preproc" >&6
25624 # So? What about this header?
25625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25631 ac_header_preproc=yes
25634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25648 ## ----------------------------------- ##
25649 ## Report this to llvmbugs@cs.uiuc.edu ##
25650 ## ----------------------------------- ##
25653 sed "s/^/$as_me: WARNING: /" >&2
25656 echo "$as_me:$LINENO: checking for $ac_header" >&5
25657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25661 eval "$as_ac_Header=\$ac_header_preproc"
25663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25668 cat >>confdefs.h <<_ACEOF
25669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25681 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25685 echo "$as_me:$LINENO: checking for $ac_header" >&5
25686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25688 echo $ECHO_N "(cached) $ECHO_C" >&6
25690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25693 # Is the header compilable?
25694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25696 cat >conftest.$ac_ext <<_ACEOF
25699 cat confdefs.h >>conftest.$ac_ext
25700 cat >>conftest.$ac_ext <<_ACEOF
25701 /* end confdefs.h. */
25702 $ac_includes_default
25703 #include <$ac_header>
25705 rm -f conftest.$ac_objext
25706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25707 (eval $ac_compile) 2>conftest.er1
25709 grep -v '^ *+' conftest.er1 >conftest.err
25711 cat conftest.err >&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } &&
25714 { ac_try='test -z "$ac_c_werror_flag"
25715 || test ! -s conftest.err'
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; } &&
25721 { ac_try='test -s conftest.$ac_objext'
25722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723 (eval $ac_try) 2>&5
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); }; }; then
25727 ac_header_compiler=yes
25729 echo "$as_me: failed program was:" >&5
25730 sed 's/^/| /' conftest.$ac_ext >&5
25732 ac_header_compiler=no
25734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25736 echo "${ECHO_T}$ac_header_compiler" >&6
25738 # Is the header present?
25739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25741 cat >conftest.$ac_ext <<_ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h. */
25747 #include <$ac_header>
25749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25752 grep -v '^ *+' conftest.er1 >conftest.err
25754 cat conftest.err >&5
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); } >/dev/null; then
25757 if test -s conftest.err; then
25758 ac_cpp_err=$ac_c_preproc_warn_flag
25759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25766 if test -z "$ac_cpp_err"; then
25767 ac_header_preproc=yes
25769 echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25772 ac_header_preproc=no
25774 rm -f conftest.err conftest.$ac_ext
25775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25776 echo "${ECHO_T}$ac_header_preproc" >&6
25778 # So? What about this header?
25779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25785 ac_header_preproc=yes
25788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25802 ## ----------------------------------- ##
25803 ## Report this to llvmbugs@cs.uiuc.edu ##
25804 ## ----------------------------------- ##
25807 sed "s/^/$as_me: WARNING: /" >&2
25810 echo "$as_me:$LINENO: checking for $ac_header" >&5
25811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25813 echo $ECHO_N "(cached) $ECHO_C" >&6
25815 eval "$as_ac_Header=\$ac_header_preproc"
25817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25822 cat >>confdefs.h <<_ACEOF
25823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25833 for ac_header in malloc.h unistd.h windows.h
25835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25837 echo "$as_me:$LINENO: checking for $ac_header" >&5
25838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25840 echo $ECHO_N "(cached) $ECHO_C" >&6
25842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25845 # Is the header compilable?
25846 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25848 cat >conftest.$ac_ext <<_ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25854 $ac_includes_default
25855 #include <$ac_header>
25857 rm -f conftest.$ac_objext
25858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25859 (eval $ac_compile) 2>conftest.er1
25861 grep -v '^ *+' conftest.er1 >conftest.err
25863 cat conftest.err >&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
25866 { ac_try='test -z "$ac_c_werror_flag"
25867 || test ! -s conftest.err'
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; } &&
25873 { ac_try='test -s conftest.$ac_objext'
25874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875 (eval $ac_try) 2>&5
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; }; then
25879 ac_header_compiler=yes
25881 echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25884 ac_header_compiler=no
25886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25888 echo "${ECHO_T}$ac_header_compiler" >&6
25890 # Is the header present?
25891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25893 cat >conftest.$ac_ext <<_ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h. */
25899 #include <$ac_header>
25901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25904 grep -v '^ *+' conftest.er1 >conftest.err
25906 cat conftest.err >&5
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } >/dev/null; then
25909 if test -s conftest.err; then
25910 ac_cpp_err=$ac_c_preproc_warn_flag
25911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25918 if test -z "$ac_cpp_err"; then
25919 ac_header_preproc=yes
25921 echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25924 ac_header_preproc=no
25926 rm -f conftest.err conftest.$ac_ext
25927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25928 echo "${ECHO_T}$ac_header_preproc" >&6
25930 # So? What about this header?
25931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25937 ac_header_preproc=yes
25940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25954 ## ----------------------------------- ##
25955 ## Report this to llvmbugs@cs.uiuc.edu ##
25956 ## ----------------------------------- ##
25959 sed "s/^/$as_me: WARNING: /" >&2
25962 echo "$as_me:$LINENO: checking for $ac_header" >&5
25963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25965 echo $ECHO_N "(cached) $ECHO_C" >&6
25967 eval "$as_ac_Header=\$ac_header_preproc"
25969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25974 cat >>confdefs.h <<_ACEOF
25975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25982 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25983 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25984 if test "${ac_cv_header_time+set}" = set; then
25985 echo $ECHO_N "(cached) $ECHO_C" >&6
25987 cat >conftest.$ac_ext <<_ACEOF
25990 cat confdefs.h >>conftest.$ac_ext
25991 cat >>conftest.$ac_ext <<_ACEOF
25992 /* end confdefs.h. */
25993 #include <sys/types.h>
25994 #include <sys/time.h>
26000 if ((struct tm *) 0)
26006 rm -f conftest.$ac_objext
26007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26008 (eval $ac_compile) 2>conftest.er1
26010 grep -v '^ *+' conftest.er1 >conftest.err
26012 cat conftest.err >&5
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); } &&
26015 { ac_try='test -z "$ac_c_werror_flag"
26016 || test ! -s conftest.err'
26017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018 (eval $ac_try) 2>&5
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); }; } &&
26022 { ac_try='test -s conftest.$ac_objext'
26023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024 (eval $ac_try) 2>&5
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); }; }; then
26028 ac_cv_header_time=yes
26030 echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26033 ac_cv_header_time=no
26035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26037 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26038 echo "${ECHO_T}$ac_cv_header_time" >&6
26039 if test $ac_cv_header_time = yes; then
26041 cat >>confdefs.h <<\_ACEOF
26042 #define TIME_WITH_SYS_TIME 1
26047 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26048 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26049 if test "${ac_cv_header_mmap_anon+set}" = set; then
26050 echo $ECHO_N "(cached) $ECHO_C" >&6
26053 ac_cpp='$CPP $CPPFLAGS'
26054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26058 cat >conftest.$ac_ext <<_ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h. */
26064 #include <sys/mman.h>
26065 #include <unistd.h>
26070 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26075 rm -f conftest.$ac_objext
26076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26077 (eval $ac_compile) 2>conftest.er1
26079 grep -v '^ *+' conftest.er1 >conftest.err
26081 cat conftest.err >&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } &&
26084 { ac_try='test -z "$ac_c_werror_flag"
26085 || test ! -s conftest.err'
26086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26087 (eval $ac_try) 2>&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); }; } &&
26091 { ac_try='test -s conftest.$ac_objext'
26092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093 (eval $ac_try) 2>&5
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); }; }; then
26097 ac_cv_header_mmap_anon=yes
26099 echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26102 ac_cv_header_mmap_anon=no
26104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26106 ac_cpp='$CPP $CPPFLAGS'
26107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26113 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26114 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26115 if test "$ac_cv_header_mmap_anon" = yes; then
26117 cat >>confdefs.h <<\_ACEOF
26118 #define HAVE_MMAP_ANONYMOUS
26126 for ac_header in inttypes.h stdint.h
26128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26130 echo "$as_me:$LINENO: checking for $ac_header" >&5
26131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26133 echo $ECHO_N "(cached) $ECHO_C" >&6
26135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26138 # Is the header compilable?
26139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26141 cat >conftest.$ac_ext <<_ACEOF
26144 cat confdefs.h >>conftest.$ac_ext
26145 cat >>conftest.$ac_ext <<_ACEOF
26146 /* end confdefs.h. */
26147 $ac_includes_default
26148 #include <$ac_header>
26150 rm -f conftest.$ac_objext
26151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26152 (eval $ac_compile) 2>conftest.er1
26154 grep -v '^ *+' conftest.er1 >conftest.err
26156 cat conftest.err >&5
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); } &&
26159 { ac_try='test -z "$ac_c_werror_flag"
26160 || test ! -s conftest.err'
26161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162 (eval $ac_try) 2>&5
26164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); }; } &&
26166 { ac_try='test -s conftest.$ac_objext'
26167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168 (eval $ac_try) 2>&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; }; then
26172 ac_header_compiler=yes
26174 echo "$as_me: failed program was:" >&5
26175 sed 's/^/| /' conftest.$ac_ext >&5
26177 ac_header_compiler=no
26179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26181 echo "${ECHO_T}$ac_header_compiler" >&6
26183 # Is the header present?
26184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26186 cat >conftest.$ac_ext <<_ACEOF
26189 cat confdefs.h >>conftest.$ac_ext
26190 cat >>conftest.$ac_ext <<_ACEOF
26191 /* end confdefs.h. */
26192 #include <$ac_header>
26194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26197 grep -v '^ *+' conftest.er1 >conftest.err
26199 cat conftest.err >&5
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); } >/dev/null; then
26202 if test -s conftest.err; then
26203 ac_cpp_err=$ac_c_preproc_warn_flag
26204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26211 if test -z "$ac_cpp_err"; then
26212 ac_header_preproc=yes
26214 echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26217 ac_header_preproc=no
26219 rm -f conftest.err conftest.$ac_ext
26220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26221 echo "${ECHO_T}$ac_header_preproc" >&6
26223 # So? What about this header?
26224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26230 ac_header_preproc=yes
26233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26247 ## ----------------------------------- ##
26248 ## Report this to llvmbugs@cs.uiuc.edu ##
26249 ## ----------------------------------- ##
26252 sed "s/^/$as_me: WARNING: /" >&2
26255 echo "$as_me:$LINENO: checking for $ac_header" >&5
26256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26258 echo $ECHO_N "(cached) $ECHO_C" >&6
26260 eval "$as_ac_Header=\$ac_header_preproc"
26262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26267 cat >>confdefs.h <<_ACEOF
26268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26277 echo "$as_me:$LINENO: checking for pid_t" >&5
26278 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26279 if test "${ac_cv_type_pid_t+set}" = set; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26282 cat >conftest.$ac_ext <<_ACEOF
26285 cat confdefs.h >>conftest.$ac_ext
26286 cat >>conftest.$ac_ext <<_ACEOF
26287 /* end confdefs.h. */
26288 $ac_includes_default
26294 if (sizeof (pid_t))
26300 rm -f conftest.$ac_objext
26301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26302 (eval $ac_compile) 2>conftest.er1
26304 grep -v '^ *+' conftest.er1 >conftest.err
26306 cat conftest.err >&5
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); } &&
26309 { ac_try='test -z "$ac_c_werror_flag"
26310 || test ! -s conftest.err'
26311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26312 (eval $ac_try) 2>&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); }; } &&
26316 { ac_try='test -s conftest.$ac_objext'
26317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318 (eval $ac_try) 2>&5
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); }; }; then
26322 ac_cv_type_pid_t=yes
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26327 ac_cv_type_pid_t=no
26329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26331 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26332 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26333 if test $ac_cv_type_pid_t = yes; then
26337 cat >>confdefs.h <<_ACEOF
26343 echo "$as_me:$LINENO: checking for size_t" >&5
26344 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26345 if test "${ac_cv_type_size_t+set}" = set; then
26346 echo $ECHO_N "(cached) $ECHO_C" >&6
26348 cat >conftest.$ac_ext <<_ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h. */
26354 $ac_includes_default
26360 if (sizeof (size_t))
26366 rm -f conftest.$ac_objext
26367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26368 (eval $ac_compile) 2>conftest.er1
26370 grep -v '^ *+' conftest.er1 >conftest.err
26372 cat conftest.err >&5
26373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); } &&
26375 { ac_try='test -z "$ac_c_werror_flag"
26376 || test ! -s conftest.err'
26377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378 (eval $ac_try) 2>&5
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); }; } &&
26382 { ac_try='test -s conftest.$ac_objext'
26383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384 (eval $ac_try) 2>&5
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); }; }; then
26388 ac_cv_type_size_t=yes
26390 echo "$as_me: failed program was:" >&5
26391 sed 's/^/| /' conftest.$ac_ext >&5
26393 ac_cv_type_size_t=no
26395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26397 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26398 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26399 if test $ac_cv_type_size_t = yes; then
26403 cat >>confdefs.h <<_ACEOF
26404 #define size_t unsigned
26409 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26410 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26411 if test "${ac_cv_type_signal+set}" = set; then
26412 echo $ECHO_N "(cached) $ECHO_C" >&6
26414 cat >conftest.$ac_ext <<_ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h. */
26420 #include <sys/types.h>
26421 #include <signal.h>
26426 extern "C" void (*signal (int, void (*)(int)))(int);
26428 void (*signal ()) ();
26439 rm -f conftest.$ac_objext
26440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26441 (eval $ac_compile) 2>conftest.er1
26443 grep -v '^ *+' conftest.er1 >conftest.err
26445 cat conftest.err >&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } &&
26448 { ac_try='test -z "$ac_c_werror_flag"
26449 || test ! -s conftest.err'
26450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; } &&
26455 { ac_try='test -s conftest.$ac_objext'
26456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457 (eval $ac_try) 2>&5
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); }; }; then
26461 ac_cv_type_signal=void
26463 echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26466 ac_cv_type_signal=int
26468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26470 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26471 echo "${ECHO_T}$ac_cv_type_signal" >&6
26473 cat >>confdefs.h <<_ACEOF
26474 #define RETSIGTYPE $ac_cv_type_signal
26478 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26480 if test "${ac_cv_struct_tm+set}" = set; then
26481 echo $ECHO_N "(cached) $ECHO_C" >&6
26483 cat >conftest.$ac_ext <<_ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h. */
26489 #include <sys/types.h>
26495 struct tm *tp; tp->tm_sec;
26500 rm -f conftest.$ac_objext
26501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26502 (eval $ac_compile) 2>conftest.er1
26504 grep -v '^ *+' conftest.er1 >conftest.err
26506 cat conftest.err >&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } &&
26509 { ac_try='test -z "$ac_c_werror_flag"
26510 || test ! -s conftest.err'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; } &&
26516 { ac_try='test -s conftest.$ac_objext'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; }; then
26522 ac_cv_struct_tm=time.h
26524 echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26527 ac_cv_struct_tm=sys/time.h
26529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26531 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26532 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26533 if test $ac_cv_struct_tm = sys/time.h; then
26535 cat >>confdefs.h <<\_ACEOF
26536 #define TM_IN_SYS_TIME 1
26541 echo "$as_me:$LINENO: checking for int64_t" >&5
26542 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26543 if test "${ac_cv_type_int64_t+set}" = set; then
26544 echo $ECHO_N "(cached) $ECHO_C" >&6
26546 cat >conftest.$ac_ext <<_ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h. */
26552 $ac_includes_default
26558 if (sizeof (int64_t))
26564 rm -f conftest.$ac_objext
26565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26566 (eval $ac_compile) 2>conftest.er1
26568 grep -v '^ *+' conftest.er1 >conftest.err
26570 cat conftest.err >&5
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } &&
26573 { ac_try='test -z "$ac_c_werror_flag"
26574 || test ! -s conftest.err'
26575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576 (eval $ac_try) 2>&5
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); }; } &&
26580 { ac_try='test -s conftest.$ac_objext'
26581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582 (eval $ac_try) 2>&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; }; then
26586 ac_cv_type_int64_t=yes
26588 echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26591 ac_cv_type_int64_t=no
26593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26595 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26596 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26597 if test $ac_cv_type_int64_t = yes; then
26599 cat >>confdefs.h <<_ACEOF
26600 #define HAVE_INT64_T 1
26605 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26606 echo "$as_me: error: Type int64_t required but not found" >&2;}
26607 { (exit 1); exit 1; }; }
26610 echo "$as_me:$LINENO: checking for uint64_t" >&5
26611 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26612 if test "${ac_cv_type_uint64_t+set}" = set; then
26613 echo $ECHO_N "(cached) $ECHO_C" >&6
26615 cat >conftest.$ac_ext <<_ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h. */
26621 $ac_includes_default
26625 if ((uint64_t *) 0)
26627 if (sizeof (uint64_t))
26633 rm -f conftest.$ac_objext
26634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26635 (eval $ac_compile) 2>conftest.er1
26637 grep -v '^ *+' conftest.er1 >conftest.err
26639 cat conftest.err >&5
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); } &&
26642 { ac_try='test -z "$ac_c_werror_flag"
26643 || test ! -s conftest.err'
26644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26645 (eval $ac_try) 2>&5
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); }; } &&
26649 { ac_try='test -s conftest.$ac_objext'
26650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26651 (eval $ac_try) 2>&5
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); }; }; then
26655 ac_cv_type_uint64_t=yes
26657 echo "$as_me: failed program was:" >&5
26658 sed 's/^/| /' conftest.$ac_ext >&5
26660 ac_cv_type_uint64_t=no
26662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26664 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26665 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26666 if test $ac_cv_type_uint64_t = yes; then
26668 cat >>confdefs.h <<_ACEOF
26669 #define HAVE_UINT64_T 1
26674 echo "$as_me:$LINENO: checking for u_int64_t" >&5
26675 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26676 if test "${ac_cv_type_u_int64_t+set}" = set; then
26677 echo $ECHO_N "(cached) $ECHO_C" >&6
26679 cat >conftest.$ac_ext <<_ACEOF
26682 cat confdefs.h >>conftest.$ac_ext
26683 cat >>conftest.$ac_ext <<_ACEOF
26684 /* end confdefs.h. */
26685 $ac_includes_default
26689 if ((u_int64_t *) 0)
26691 if (sizeof (u_int64_t))
26697 rm -f conftest.$ac_objext
26698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26699 (eval $ac_compile) 2>conftest.er1
26701 grep -v '^ *+' conftest.er1 >conftest.err
26703 cat conftest.err >&5
26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); } &&
26706 { ac_try='test -z "$ac_c_werror_flag"
26707 || test ! -s conftest.err'
26708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709 (eval $ac_try) 2>&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; } &&
26713 { ac_try='test -s conftest.$ac_objext'
26714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715 (eval $ac_try) 2>&5
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); }; }; then
26719 ac_cv_type_u_int64_t=yes
26721 echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26724 ac_cv_type_u_int64_t=no
26726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26728 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26729 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26730 if test $ac_cv_type_u_int64_t = yes; then
26732 cat >>confdefs.h <<_ACEOF
26733 #define HAVE_U_INT64_T 1
26738 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26739 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26740 { (exit 1); exit 1; }; }
26753 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
26755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26756 echo "$as_me:$LINENO: checking for $ac_func" >&5
26757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26758 if eval "test \"\${$as_ac_var+set}\" = set"; then
26759 echo $ECHO_N "(cached) $ECHO_C" >&6
26761 cat >conftest.$ac_ext <<_ACEOF
26764 cat confdefs.h >>conftest.$ac_ext
26765 cat >>conftest.$ac_ext <<_ACEOF
26766 /* end confdefs.h. */
26767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26769 #define $ac_func innocuous_$ac_func
26771 /* System header to define __stub macros and hopefully few prototypes,
26772 which can conflict with char $ac_func (); below.
26773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26774 <limits.h> exists even on freestanding compilers. */
26777 # include <limits.h>
26779 # include <assert.h>
26784 /* Override any gcc2 internal prototype to avoid an error. */
26789 /* We use char because int might match the return type of a gcc2
26790 builtin and then its argument prototype would still apply. */
26792 /* The GNU C library defines this for functions which it implements
26793 to always fail with ENOSYS. Some functions are actually named
26794 something starting with __ and the normal name is an alias. */
26795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26798 char (*f) () = $ac_func;
26807 return f != $ac_func;
26812 rm -f conftest.$ac_objext conftest$ac_exeext
26813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26814 (eval $ac_link) 2>conftest.er1
26816 grep -v '^ *+' conftest.er1 >conftest.err
26818 cat conftest.err >&5
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); } &&
26821 { ac_try='test -z "$ac_c_werror_flag"
26822 || test ! -s conftest.err'
26823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824 (eval $ac_try) 2>&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); }; } &&
26828 { ac_try='test -s conftest$ac_exeext'
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; }; then
26834 eval "$as_ac_var=yes"
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26839 eval "$as_ac_var=no"
26841 rm -f conftest.err conftest.$ac_objext \
26842 conftest$ac_exeext conftest.$ac_ext
26844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26846 if test `eval echo '${'$as_ac_var'}'` = yes; then
26847 cat >>confdefs.h <<_ACEOF
26848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26857 for ac_func in mkdtemp mkstemp mktemp
26859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26860 echo "$as_me:$LINENO: checking for $ac_func" >&5
26861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26862 if eval "test \"\${$as_ac_var+set}\" = set"; then
26863 echo $ECHO_N "(cached) $ECHO_C" >&6
26865 cat >conftest.$ac_ext <<_ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h. */
26871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26873 #define $ac_func innocuous_$ac_func
26875 /* System header to define __stub macros and hopefully few prototypes,
26876 which can conflict with char $ac_func (); below.
26877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26878 <limits.h> exists even on freestanding compilers. */
26881 # include <limits.h>
26883 # include <assert.h>
26888 /* Override any gcc2 internal prototype to avoid an error. */
26893 /* We use char because int might match the return type of a gcc2
26894 builtin and then its argument prototype would still apply. */
26896 /* The GNU C library defines this for functions which it implements
26897 to always fail with ENOSYS. Some functions are actually named
26898 something starting with __ and the normal name is an alias. */
26899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26902 char (*f) () = $ac_func;
26911 return f != $ac_func;
26916 rm -f conftest.$ac_objext conftest$ac_exeext
26917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26918 (eval $ac_link) 2>conftest.er1
26920 grep -v '^ *+' conftest.er1 >conftest.err
26922 cat conftest.err >&5
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); } &&
26925 { ac_try='test -z "$ac_c_werror_flag"
26926 || test ! -s conftest.err'
26927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26928 (eval $ac_try) 2>&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; } &&
26932 { ac_try='test -s conftest$ac_exeext'
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; }; then
26938 eval "$as_ac_var=yes"
26940 echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26943 eval "$as_ac_var=no"
26945 rm -f conftest.err conftest.$ac_objext \
26946 conftest$ac_exeext conftest.$ac_ext
26948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26950 if test `eval echo '${'$as_ac_var'}'` = yes; then
26951 cat >>confdefs.h <<_ACEOF
26952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26963 for ac_func in realpath strdup strtoq strtoll sysconf
26965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26966 echo "$as_me:$LINENO: checking for $ac_func" >&5
26967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26968 if eval "test \"\${$as_ac_var+set}\" = set"; then
26969 echo $ECHO_N "(cached) $ECHO_C" >&6
26971 cat >conftest.$ac_ext <<_ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h. */
26977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26979 #define $ac_func innocuous_$ac_func
26981 /* System header to define __stub macros and hopefully few prototypes,
26982 which can conflict with char $ac_func (); below.
26983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26984 <limits.h> exists even on freestanding compilers. */
26987 # include <limits.h>
26989 # include <assert.h>
26994 /* Override any gcc2 internal prototype to avoid an error. */
26999 /* We use char because int might match the return type of a gcc2
27000 builtin and then its argument prototype would still apply. */
27002 /* The GNU C library defines this for functions which it implements
27003 to always fail with ENOSYS. Some functions are actually named
27004 something starting with __ and the normal name is an alias. */
27005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27008 char (*f) () = $ac_func;
27017 return f != $ac_func;
27022 rm -f conftest.$ac_objext conftest$ac_exeext
27023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27024 (eval $ac_link) 2>conftest.er1
27026 grep -v '^ *+' conftest.er1 >conftest.err
27028 cat conftest.err >&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } &&
27031 { ac_try='test -z "$ac_c_werror_flag"
27032 || test ! -s conftest.err'
27033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034 (eval $ac_try) 2>&5
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; } &&
27038 { ac_try='test -s conftest$ac_exeext'
27039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040 (eval $ac_try) 2>&5
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; }; then
27044 eval "$as_ac_var=yes"
27046 echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27049 eval "$as_ac_var=no"
27051 rm -f conftest.err conftest.$ac_objext \
27052 conftest$ac_exeext conftest.$ac_ext
27054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27056 if test `eval echo '${'$as_ac_var'}'` = yes; then
27057 cat >>confdefs.h <<_ACEOF
27058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27064 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27065 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27066 if test "${llvm_cv_c_printf_a+set}" = set; then
27067 echo $ECHO_N "(cached) $ECHO_C" >&6
27070 ac_cpp='$CPP $CPPFLAGS'
27071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27075 if test "$cross_compiling" = yes; then
27076 llvmac_cv_c_printf_a=no
27078 cat >conftest.$ac_ext <<_ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h. */
27087 #include <stdlib.h>
27093 volatile double A, B;
27097 sprintf(Buffer, "%a", A);
27101 if (A != 0x1.999999999999ap-4)
27108 rm -f conftest$ac_exeext
27109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27110 (eval $ac_link) 2>&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27115 (eval $ac_try) 2>&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); }; }; then
27119 llvm_cv_c_printf_a=yes
27121 echo "$as_me: program exited with status $ac_status" >&5
27122 echo "$as_me: failed program was:" >&5
27123 sed 's/^/| /' conftest.$ac_ext >&5
27125 ( exit $ac_status )
27126 llvmac_cv_c_printf_a=no
27128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27131 ac_cpp='$CPP $CPPFLAGS'
27132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27137 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27138 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27139 if test "$llvm_cv_c_printf_a" = "yes"; then
27141 cat >>confdefs.h <<\_ACEOF
27142 #define HAVE_PRINTF_A 1
27147 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27148 # for constant arguments. Useless!
27149 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27150 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27151 if test "${ac_cv_working_alloca_h+set}" = set; then
27152 echo $ECHO_N "(cached) $ECHO_C" >&6
27154 cat >conftest.$ac_ext <<_ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h. */
27160 #include <alloca.h>
27164 char *p = (char *) alloca (2 * sizeof (int));
27169 rm -f conftest.$ac_objext conftest$ac_exeext
27170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27171 (eval $ac_link) 2>conftest.er1
27173 grep -v '^ *+' conftest.er1 >conftest.err
27175 cat conftest.err >&5
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } &&
27178 { ac_try='test -z "$ac_c_werror_flag"
27179 || test ! -s conftest.err'
27180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181 (eval $ac_try) 2>&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; } &&
27185 { ac_try='test -s conftest$ac_exeext'
27186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187 (eval $ac_try) 2>&5
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); }; }; then
27191 ac_cv_working_alloca_h=yes
27193 echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.$ac_ext >&5
27196 ac_cv_working_alloca_h=no
27198 rm -f conftest.err conftest.$ac_objext \
27199 conftest$ac_exeext conftest.$ac_ext
27201 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27202 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27203 if test $ac_cv_working_alloca_h = yes; then
27205 cat >>confdefs.h <<\_ACEOF
27206 #define HAVE_ALLOCA_H 1
27211 echo "$as_me:$LINENO: checking for alloca" >&5
27212 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27213 if test "${ac_cv_func_alloca_works+set}" = set; then
27214 echo $ECHO_N "(cached) $ECHO_C" >&6
27216 cat >conftest.$ac_ext <<_ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h. */
27223 # define alloca __builtin_alloca
27226 # include <malloc.h>
27227 # define alloca _alloca
27230 # include <alloca.h>
27235 # ifndef alloca /* predefined by HP cc +Olibcalls */
27246 char *p = (char *) alloca (1);
27251 rm -f conftest.$ac_objext conftest$ac_exeext
27252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27253 (eval $ac_link) 2>conftest.er1
27255 grep -v '^ *+' conftest.er1 >conftest.err
27257 cat conftest.err >&5
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); } &&
27260 { ac_try='test -z "$ac_c_werror_flag"
27261 || test ! -s conftest.err'
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); }; } &&
27267 { ac_try='test -s conftest$ac_exeext'
27268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269 (eval $ac_try) 2>&5
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); }; }; then
27273 ac_cv_func_alloca_works=yes
27275 echo "$as_me: failed program was:" >&5
27276 sed 's/^/| /' conftest.$ac_ext >&5
27278 ac_cv_func_alloca_works=no
27280 rm -f conftest.err conftest.$ac_objext \
27281 conftest$ac_exeext conftest.$ac_ext
27283 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27284 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27286 if test $ac_cv_func_alloca_works = yes; then
27288 cat >>confdefs.h <<\_ACEOF
27289 #define HAVE_ALLOCA 1
27293 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27294 # that cause trouble. Some versions do not even contain alloca or
27295 # contain a buggy version. If you still want to use their alloca,
27296 # use ar to extract alloca.o from them instead of compiling alloca.c.
27298 ALLOCA=alloca.$ac_objext
27300 cat >>confdefs.h <<\_ACEOF
27305 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27306 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27307 if test "${ac_cv_os_cray+set}" = set; then
27308 echo $ECHO_N "(cached) $ECHO_C" >&6
27310 cat >conftest.$ac_ext <<_ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h. */
27316 #if defined(CRAY) && ! defined(CRAY2)
27323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27324 $EGREP "webecray" >/dev/null 2>&1; then
27332 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27333 echo "${ECHO_T}$ac_cv_os_cray" >&6
27334 if test $ac_cv_os_cray = yes; then
27335 for ac_func in _getb67 GETB67 getb67; do
27336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27337 echo "$as_me:$LINENO: checking for $ac_func" >&5
27338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27339 if eval "test \"\${$as_ac_var+set}\" = set"; then
27340 echo $ECHO_N "(cached) $ECHO_C" >&6
27342 cat >conftest.$ac_ext <<_ACEOF
27345 cat confdefs.h >>conftest.$ac_ext
27346 cat >>conftest.$ac_ext <<_ACEOF
27347 /* end confdefs.h. */
27348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27350 #define $ac_func innocuous_$ac_func
27352 /* System header to define __stub macros and hopefully few prototypes,
27353 which can conflict with char $ac_func (); below.
27354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27355 <limits.h> exists even on freestanding compilers. */
27358 # include <limits.h>
27360 # include <assert.h>
27365 /* Override any gcc2 internal prototype to avoid an error. */
27370 /* We use char because int might match the return type of a gcc2
27371 builtin and then its argument prototype would still apply. */
27373 /* The GNU C library defines this for functions which it implements
27374 to always fail with ENOSYS. Some functions are actually named
27375 something starting with __ and the normal name is an alias. */
27376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27379 char (*f) () = $ac_func;
27388 return f != $ac_func;
27393 rm -f conftest.$ac_objext conftest$ac_exeext
27394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27395 (eval $ac_link) 2>conftest.er1
27397 grep -v '^ *+' conftest.er1 >conftest.err
27399 cat conftest.err >&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } &&
27402 { ac_try='test -z "$ac_c_werror_flag"
27403 || test ! -s conftest.err'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest$ac_exeext'
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415 eval "$as_ac_var=yes"
27417 echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27420 eval "$as_ac_var=no"
27422 rm -f conftest.err conftest.$ac_objext \
27423 conftest$ac_exeext conftest.$ac_ext
27425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27427 if test `eval echo '${'$as_ac_var'}'` = yes; then
27429 cat >>confdefs.h <<_ACEOF
27430 #define CRAY_STACKSEG_END $ac_func
27439 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27440 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27441 if test "${ac_cv_c_stack_direction+set}" = set; then
27442 echo $ECHO_N "(cached) $ECHO_C" >&6
27444 if test "$cross_compiling" = yes; then
27445 ac_cv_c_stack_direction=0
27447 cat >conftest.$ac_ext <<_ACEOF
27450 cat confdefs.h >>conftest.$ac_ext
27451 cat >>conftest.$ac_ext <<_ACEOF
27452 /* end confdefs.h. */
27454 find_stack_direction ()
27456 static char *addr = 0;
27461 return find_stack_direction ();
27464 return (&dummy > addr) ? 1 : -1;
27470 exit (find_stack_direction () < 0);
27473 rm -f conftest$ac_exeext
27474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27475 (eval $ac_link) 2>&5
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27480 (eval $ac_try) 2>&5
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; }; then
27484 ac_cv_c_stack_direction=1
27486 echo "$as_me: program exited with status $ac_status" >&5
27487 echo "$as_me: failed program was:" >&5
27488 sed 's/^/| /' conftest.$ac_ext >&5
27490 ( exit $ac_status )
27491 ac_cv_c_stack_direction=-1
27493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27496 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27497 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27499 cat >>confdefs.h <<_ACEOF
27500 #define STACK_DIRECTION $ac_cv_c_stack_direction
27507 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27508 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27509 if test "${ac_cv_func_rand48+set}" = set; then
27510 echo $ECHO_N "(cached) $ECHO_C" >&6
27513 ac_cpp='$CXXCPP $CPPFLAGS'
27514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27518 cat >conftest.$ac_ext <<_ACEOF
27521 cat confdefs.h >>conftest.$ac_ext
27522 cat >>conftest.$ac_ext <<_ACEOF
27523 /* end confdefs.h. */
27524 #include <stdlib.h>
27528 srand48(0);lrand48();drand48();
27533 rm -f conftest.$ac_objext
27534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27535 (eval $ac_compile) 2>conftest.er1
27537 grep -v '^ *+' conftest.er1 >conftest.err
27539 cat conftest.err >&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } &&
27542 { ac_try='test -z "$ac_cxx_werror_flag"
27543 || test ! -s conftest.err'
27544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545 (eval $ac_try) 2>&5
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); }; } &&
27549 { ac_try='test -s conftest.$ac_objext'
27550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27551 (eval $ac_try) 2>&5
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; }; then
27555 ac_cv_func_rand48=yes
27557 echo "$as_me: failed program was:" >&5
27558 sed 's/^/| /' conftest.$ac_ext >&5
27560 ac_cv_func_rand48=no
27562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27564 ac_cpp='$CPP $CPPFLAGS'
27565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27570 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27571 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27573 if test "$ac_cv_func_rand48" = "yes" ; then
27575 cat >>confdefs.h <<\_ACEOF
27576 #define HAVE_RAND48 1
27582 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27583 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27584 if test "${ac_cv_cxx_namespaces+set}" = set; then
27585 echo $ECHO_N "(cached) $ECHO_C" >&6
27588 ac_cpp='$CXXCPP $CPPFLAGS'
27589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27593 cat >conftest.$ac_ext <<_ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h. */
27599 namespace Outer { namespace Inner { int i = 0; }}
27603 using namespace Outer::Inner; return i;
27608 rm -f conftest.$ac_objext
27609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27610 (eval $ac_compile) 2>conftest.er1
27612 grep -v '^ *+' conftest.er1 >conftest.err
27614 cat conftest.err >&5
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); } &&
27617 { ac_try='test -z "$ac_cxx_werror_flag"
27618 || test ! -s conftest.err'
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; } &&
27624 { ac_try='test -s conftest.$ac_objext'
27625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626 (eval $ac_try) 2>&5
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); }; }; then
27630 ac_cv_cxx_namespaces=yes
27632 echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27635 ac_cv_cxx_namespaces=no
27637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27639 ac_cpp='$CPP $CPPFLAGS'
27640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27646 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27647 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27648 if test "$ac_cv_cxx_namespaces" = yes; then
27650 cat >>confdefs.h <<\_ACEOF
27651 #define HAVE_NAMESPACES
27656 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27657 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27658 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27659 echo $ECHO_N "(cached) $ECHO_C" >&6
27663 ac_cpp='$CXXCPP $CPPFLAGS'
27664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27668 cat >conftest.$ac_ext <<_ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h. */
27674 #include <ext/hash_map>
27675 #ifdef HAVE_NAMESPACES
27676 using namespace std;
27681 hash_map<int, int> t;
27686 rm -f conftest.$ac_objext
27687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27688 (eval $ac_compile) 2>conftest.er1
27690 grep -v '^ *+' conftest.er1 >conftest.err
27692 cat conftest.err >&5
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); } &&
27695 { ac_try='test -z "$ac_cxx_werror_flag"
27696 || test ! -s conftest.err'
27697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698 (eval $ac_try) 2>&5
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); }; } &&
27702 { ac_try='test -s conftest.$ac_objext'
27703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27704 (eval $ac_try) 2>&5
27706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707 (exit $ac_status); }; }; then
27708 ac_cv_cxx_have_std_ext_hash_map=yes
27710 echo "$as_me: failed program was:" >&5
27711 sed 's/^/| /' conftest.$ac_ext >&5
27713 ac_cv_cxx_have_std_ext_hash_map=no
27715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27717 ac_cpp='$CPP $CPPFLAGS'
27718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27723 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27724 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27725 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27728 cat >>confdefs.h <<\_ACEOF
27729 #define HAVE_STD_EXT_HASH_MAP 1
27734 cat >>confdefs.h <<\_ACEOF
27735 #define HAVE_STD_EXT_HASH_MAP 0
27740 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27741 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27742 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27743 echo $ECHO_N "(cached) $ECHO_C" >&6
27747 ac_cpp='$CXXCPP $CPPFLAGS'
27748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27752 cat >conftest.$ac_ext <<_ACEOF
27755 cat confdefs.h >>conftest.$ac_ext
27756 cat >>conftest.$ac_ext <<_ACEOF
27757 /* end confdefs.h. */
27758 #include <ext/hash_map>
27759 #ifdef HAVE_NAMESPACES
27760 using namespace __gnu_cxx;
27765 hash_map<int,int> t;
27770 rm -f conftest.$ac_objext
27771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27772 (eval $ac_compile) 2>conftest.er1
27774 grep -v '^ *+' conftest.er1 >conftest.err
27776 cat conftest.err >&5
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); } &&
27779 { ac_try='test -z "$ac_cxx_werror_flag"
27780 || test ! -s conftest.err'
27781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27782 (eval $ac_try) 2>&5
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); }; } &&
27786 { ac_try='test -s conftest.$ac_objext'
27787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788 (eval $ac_try) 2>&5
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; }; then
27792 ac_cv_cxx_have_gnu_ext_hash_map=yes
27794 echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27797 ac_cv_cxx_have_gnu_ext_hash_map=no
27799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27801 ac_cpp='$CPP $CPPFLAGS'
27802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27807 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27808 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27809 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27812 cat >>confdefs.h <<\_ACEOF
27813 #define HAVE_GNU_EXT_HASH_MAP 1
27818 cat >>confdefs.h <<\_ACEOF
27819 #define HAVE_GNU_EXT_HASH_MAP 0
27824 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27825 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27826 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27827 echo $ECHO_N "(cached) $ECHO_C" >&6
27831 ac_cpp='$CXXCPP $CPPFLAGS'
27832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27836 cat >conftest.$ac_ext <<_ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h. */
27842 #include <hash_map>
27846 hash_map<int,int> t;
27851 rm -f conftest.$ac_objext
27852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27853 (eval $ac_compile) 2>conftest.er1
27855 grep -v '^ *+' conftest.er1 >conftest.err
27857 cat conftest.err >&5
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } &&
27860 { ac_try='test -z "$ac_cxx_werror_flag"
27861 || test ! -s conftest.err'
27862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863 (eval $ac_try) 2>&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; } &&
27867 { ac_try='test -s conftest.$ac_objext'
27868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869 (eval $ac_try) 2>&5
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; }; then
27873 ac_cv_cxx_have_global_hash_map=yes
27875 echo "$as_me: failed program was:" >&5
27876 sed 's/^/| /' conftest.$ac_ext >&5
27878 ac_cv_cxx_have_global_hash_map=no
27880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27882 ac_cpp='$CPP $CPPFLAGS'
27883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27888 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27889 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27890 if test "$ac_cv_cxx_have_global_hash_map" = yes
27893 cat >>confdefs.h <<\_ACEOF
27894 #define HAVE_GLOBAL_HASH_MAP 1
27899 cat >>confdefs.h <<\_ACEOF
27900 #define HAVE_GLOBAL_HASH_MAP 0
27905 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27906 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27907 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27908 echo $ECHO_N "(cached) $ECHO_C" >&6
27912 ac_cpp='$CXXCPP $CPPFLAGS'
27913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27917 cat >conftest.$ac_ext <<_ACEOF
27920 cat confdefs.h >>conftest.$ac_ext
27921 cat >>conftest.$ac_ext <<_ACEOF
27922 /* end confdefs.h. */
27923 #include <ext/hash_set>
27924 #ifdef HAVE_NAMESPACES
27925 using namespace std;
27935 rm -f conftest.$ac_objext
27936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27937 (eval $ac_compile) 2>conftest.er1
27939 grep -v '^ *+' conftest.er1 >conftest.err
27941 cat conftest.err >&5
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); } &&
27944 { ac_try='test -z "$ac_cxx_werror_flag"
27945 || test ! -s conftest.err'
27946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27947 (eval $ac_try) 2>&5
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); }; } &&
27951 { ac_try='test -s conftest.$ac_objext'
27952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27953 (eval $ac_try) 2>&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); }; }; then
27957 ac_cv_cxx_have_std_ext_hash_set=yes
27959 echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27962 ac_cv_cxx_have_std_ext_hash_set=no
27964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27966 ac_cpp='$CPP $CPPFLAGS'
27967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27972 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27973 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27974 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27977 cat >>confdefs.h <<\_ACEOF
27978 #define HAVE_STD_EXT_HASH_SET 1
27983 cat >>confdefs.h <<\_ACEOF
27984 #define HAVE_STD_EXT_HASH_SET 0
27989 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27990 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27991 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27992 echo $ECHO_N "(cached) $ECHO_C" >&6
27996 ac_cpp='$CXXCPP $CPPFLAGS'
27997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28001 cat >conftest.$ac_ext <<_ACEOF
28004 cat confdefs.h >>conftest.$ac_ext
28005 cat >>conftest.$ac_ext <<_ACEOF
28006 /* end confdefs.h. */
28007 #include <ext/hash_set>
28008 #ifdef HAVE_NAMESPACES
28009 using namespace __gnu_cxx;
28019 rm -f conftest.$ac_objext
28020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28021 (eval $ac_compile) 2>conftest.er1
28023 grep -v '^ *+' conftest.er1 >conftest.err
28025 cat conftest.err >&5
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); } &&
28028 { ac_try='test -z "$ac_cxx_werror_flag"
28029 || test ! -s conftest.err'
28030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031 (eval $ac_try) 2>&5
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); }; } &&
28035 { ac_try='test -s conftest.$ac_objext'
28036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28037 (eval $ac_try) 2>&5
28039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040 (exit $ac_status); }; }; then
28041 ac_cv_cxx_have_gnu_ext_hash_set=yes
28043 echo "$as_me: failed program was:" >&5
28044 sed 's/^/| /' conftest.$ac_ext >&5
28046 ac_cv_cxx_have_gnu_ext_hash_set=no
28048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28050 ac_cpp='$CPP $CPPFLAGS'
28051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28056 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28057 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28058 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28061 cat >>confdefs.h <<\_ACEOF
28062 #define HAVE_GNU_EXT_HASH_SET 1
28067 cat >>confdefs.h <<\_ACEOF
28068 #define HAVE_GNU_EXT_HASH_SET 0
28073 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28074 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28075 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28076 echo $ECHO_N "(cached) $ECHO_C" >&6
28080 ac_cpp='$CXXCPP $CPPFLAGS'
28081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28085 cat >conftest.$ac_ext <<_ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h. */
28091 #include <hash_set>
28095 hash_set<int> t; return 0;
28100 rm -f conftest.$ac_objext
28101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28102 (eval $ac_compile) 2>conftest.er1
28104 grep -v '^ *+' conftest.er1 >conftest.err
28106 cat conftest.err >&5
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); } &&
28109 { ac_try='test -z "$ac_cxx_werror_flag"
28110 || test ! -s conftest.err'
28111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28112 (eval $ac_try) 2>&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; } &&
28116 { ac_try='test -s conftest.$ac_objext'
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; }; then
28122 ac_cv_cxx_have_global_hash_set=yes
28124 echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.$ac_ext >&5
28127 ac_cv_cxx_have_global_hash_set=no
28129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28131 ac_cpp='$CPP $CPPFLAGS'
28132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28137 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28138 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28139 if test "$ac_cv_cxx_have_global_hash_set" = yes
28142 cat >>confdefs.h <<\_ACEOF
28143 #define HAVE_GLOBAL_HASH_SET 1
28148 cat >>confdefs.h <<\_ACEOF
28149 #define HAVE_GLOBAL_HASH_SET 0
28154 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28155 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28156 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28157 echo $ECHO_N "(cached) $ECHO_C" >&6
28161 ac_cpp='$CXXCPP $CPPFLAGS'
28162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28166 cat >conftest.$ac_ext <<_ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h. */
28172 #include <iterator>
28173 #ifdef HAVE_NAMESPACES
28174 using namespace std;
28179 iterator<int,int,int> t; return 0;
28184 rm -f conftest.$ac_objext
28185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28186 (eval $ac_compile) 2>conftest.er1
28188 grep -v '^ *+' conftest.er1 >conftest.err
28190 cat conftest.err >&5
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); } &&
28193 { ac_try='test -z "$ac_cxx_werror_flag"
28194 || test ! -s conftest.err'
28195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28196 (eval $ac_try) 2>&5
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; } &&
28200 { ac_try='test -s conftest.$ac_objext'
28201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28202 (eval $ac_try) 2>&5
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; }; then
28206 ac_cv_cxx_have_std_iterator=yes
28208 echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28211 ac_cv_cxx_have_std_iterator=no
28213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28215 ac_cpp='$CPP $CPPFLAGS'
28216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28222 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28223 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28224 if test "$ac_cv_cxx_have_std_iterator" = yes
28227 cat >>confdefs.h <<\_ACEOF
28228 #define HAVE_STD_ITERATOR 1
28233 cat >>confdefs.h <<\_ACEOF
28234 #define HAVE_STD_ITERATOR 0
28239 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28240 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28241 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28242 echo $ECHO_N "(cached) $ECHO_C" >&6
28246 ac_cpp='$CXXCPP $CPPFLAGS'
28247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28251 cat >conftest.$ac_ext <<_ACEOF
28254 cat confdefs.h >>conftest.$ac_ext
28255 cat >>conftest.$ac_ext <<_ACEOF
28256 /* end confdefs.h. */
28257 #include <iterator>
28258 #ifdef HAVE_NAMESPACES
28259 using namespace std;
28264 bidirectional_iterator<int,int> t; return 0;
28269 rm -f conftest.$ac_objext
28270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28271 (eval $ac_compile) 2>conftest.er1
28273 grep -v '^ *+' conftest.er1 >conftest.err
28275 cat conftest.err >&5
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } &&
28278 { ac_try='test -z "$ac_cxx_werror_flag"
28279 || test ! -s conftest.err'
28280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281 (eval $ac_try) 2>&5
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; } &&
28285 { ac_try='test -s conftest.$ac_objext'
28286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287 (eval $ac_try) 2>&5
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; }; then
28291 ac_cv_cxx_have_bi_iterator=yes
28293 echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28296 ac_cv_cxx_have_bi_iterator=no
28298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28300 ac_cpp='$CPP $CPPFLAGS'
28301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28307 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28308 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28309 if test "$ac_cv_cxx_have_bi_iterator" = yes
28312 cat >>confdefs.h <<\_ACEOF
28313 #define HAVE_BI_ITERATOR 1
28318 cat >>confdefs.h <<\_ACEOF
28319 #define HAVE_BI_ITERATOR 0
28324 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28325 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28326 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28327 echo $ECHO_N "(cached) $ECHO_C" >&6
28331 ac_cpp='$CXXCPP $CPPFLAGS'
28332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28336 cat >conftest.$ac_ext <<_ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h. */
28342 #include <iterator>
28343 #ifdef HAVE_NAMESPACES
28344 using namespace std;
28349 forward_iterator<int,int> t; return 0;
28354 rm -f conftest.$ac_objext
28355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28356 (eval $ac_compile) 2>conftest.er1
28358 grep -v '^ *+' conftest.er1 >conftest.err
28360 cat conftest.err >&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); } &&
28363 { ac_try='test -z "$ac_cxx_werror_flag"
28364 || test ! -s conftest.err'
28365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28366 (eval $ac_try) 2>&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; } &&
28370 { ac_try='test -s conftest.$ac_objext'
28371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372 (eval $ac_try) 2>&5
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; }; then
28376 ac_cv_cxx_have_fwd_iterator=yes
28378 echo "$as_me: failed program was:" >&5
28379 sed 's/^/| /' conftest.$ac_ext >&5
28381 ac_cv_cxx_have_fwd_iterator=no
28383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28385 ac_cpp='$CPP $CPPFLAGS'
28386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28392 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28393 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28394 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28397 cat >>confdefs.h <<\_ACEOF
28398 #define HAVE_FWD_ITERATOR 1
28403 cat >>confdefs.h <<\_ACEOF
28404 #define HAVE_FWD_ITERATOR 0
28410 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28411 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28412 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28413 echo $ECHO_N "(cached) $ECHO_C" >&6
28416 ac_cpp='$CXXCPP $CPPFLAGS'
28417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28421 cat >conftest.$ac_ext <<_ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h. */
28436 rm -f conftest.$ac_objext
28437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28438 (eval $ac_compile) 2>conftest.er1
28440 grep -v '^ *+' conftest.er1 >conftest.err
28442 cat conftest.err >&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); } &&
28445 { ac_try='test -z "$ac_cxx_werror_flag"
28446 || test ! -s conftest.err'
28447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448 (eval $ac_try) 2>&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); }; } &&
28452 { ac_try='test -s conftest.$ac_objext'
28453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454 (eval $ac_try) 2>&5
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; }; then
28458 ac_cv_func_isnan_in_math_h=yes
28460 echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28463 ac_cv_func_isnan_in_math_h=no
28465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28467 ac_cpp='$CPP $CPPFLAGS'
28468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28473 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28474 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28477 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28479 cat >>confdefs.h <<\_ACEOF
28480 #define HAVE_ISNAN_IN_MATH_H 1
28485 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28486 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28487 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28488 echo $ECHO_N "(cached) $ECHO_C" >&6
28491 ac_cpp='$CXXCPP $CPPFLAGS'
28492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28496 cat >conftest.$ac_ext <<_ACEOF
28499 cat confdefs.h >>conftest.$ac_ext
28500 cat >>conftest.$ac_ext <<_ACEOF
28501 /* end confdefs.h. */
28511 rm -f conftest.$ac_objext
28512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28513 (eval $ac_compile) 2>conftest.er1
28515 grep -v '^ *+' conftest.er1 >conftest.err
28517 cat conftest.err >&5
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); } &&
28520 { ac_try='test -z "$ac_cxx_werror_flag"
28521 || test ! -s conftest.err'
28522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28523 (eval $ac_try) 2>&5
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); }; } &&
28527 { ac_try='test -s conftest.$ac_objext'
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; }; then
28533 ac_cv_func_isnan_in_cmath=yes
28535 echo "$as_me: failed program was:" >&5
28536 sed 's/^/| /' conftest.$ac_ext >&5
28538 ac_cv_func_isnan_in_cmath=no
28540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28542 ac_cpp='$CPP $CPPFLAGS'
28543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28548 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28549 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28551 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28553 cat >>confdefs.h <<\_ACEOF
28554 #define HAVE_ISNAN_IN_CMATH 1
28559 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28560 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28561 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28562 echo $ECHO_N "(cached) $ECHO_C" >&6
28565 ac_cpp='$CXXCPP $CPPFLAGS'
28566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28570 cat >conftest.$ac_ext <<_ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h. */
28580 float f; std::isnan(f);
28585 rm -f conftest.$ac_objext
28586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28587 (eval $ac_compile) 2>conftest.er1
28589 grep -v '^ *+' conftest.er1 >conftest.err
28591 cat conftest.err >&5
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); } &&
28594 { ac_try='test -z "$ac_cxx_werror_flag"
28595 || test ! -s conftest.err'
28596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597 (eval $ac_try) 2>&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); }; } &&
28601 { ac_try='test -s conftest.$ac_objext'
28602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603 (eval $ac_try) 2>&5
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); }; }; then
28607 ac_cv_func_std_isnan_in_cmath=yes
28609 echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28612 ac_cv_func_std_isnan_in_cmath=no
28614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28616 ac_cpp='$CPP $CPPFLAGS'
28617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28622 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28623 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28625 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28627 cat >>confdefs.h <<\_ACEOF
28628 #define HAVE_STD_ISNAN_IN_CMATH 1
28634 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28635 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28636 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28637 echo $ECHO_N "(cached) $ECHO_C" >&6
28640 ac_cpp='$CXXCPP $CPPFLAGS'
28641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28645 cat >conftest.$ac_ext <<_ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h. */
28660 rm -f conftest.$ac_objext
28661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28662 (eval $ac_compile) 2>conftest.er1
28664 grep -v '^ *+' conftest.er1 >conftest.err
28666 cat conftest.err >&5
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); } &&
28669 { ac_try='test -z "$ac_cxx_werror_flag"
28670 || test ! -s conftest.err'
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest.$ac_objext'
28677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678 (eval $ac_try) 2>&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28682 ac_cv_func_isinf_in_math_h=yes
28684 echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28687 ac_cv_func_isinf_in_math_h=no
28689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28691 ac_cpp='$CPP $CPPFLAGS'
28692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28697 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28698 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28700 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28702 cat >>confdefs.h <<\_ACEOF
28703 #define HAVE_ISINF_IN_MATH_H 1
28708 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28709 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28710 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28714 ac_cpp='$CXXCPP $CPPFLAGS'
28715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28719 cat >conftest.$ac_ext <<_ACEOF
28722 cat confdefs.h >>conftest.$ac_ext
28723 cat >>conftest.$ac_ext <<_ACEOF
28724 /* end confdefs.h. */
28734 rm -f conftest.$ac_objext
28735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28736 (eval $ac_compile) 2>conftest.er1
28738 grep -v '^ *+' conftest.er1 >conftest.err
28740 cat conftest.err >&5
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); } &&
28743 { ac_try='test -z "$ac_cxx_werror_flag"
28744 || test ! -s conftest.err'
28745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28746 (eval $ac_try) 2>&5
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; } &&
28750 { ac_try='test -s conftest.$ac_objext'
28751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28752 (eval $ac_try) 2>&5
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; }; then
28756 ac_cv_func_isinf_in_cmath=yes
28758 echo "$as_me: failed program was:" >&5
28759 sed 's/^/| /' conftest.$ac_ext >&5
28761 ac_cv_func_isinf_in_cmath=no
28763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28765 ac_cpp='$CPP $CPPFLAGS'
28766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28771 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28772 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28774 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28776 cat >>confdefs.h <<\_ACEOF
28777 #define HAVE_ISINF_IN_CMATH 1
28782 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28783 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28784 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28785 echo $ECHO_N "(cached) $ECHO_C" >&6
28788 ac_cpp='$CXXCPP $CPPFLAGS'
28789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28793 cat >conftest.$ac_ext <<_ACEOF
28796 cat confdefs.h >>conftest.$ac_ext
28797 cat >>conftest.$ac_ext <<_ACEOF
28798 /* end confdefs.h. */
28803 float f; std::isinf(f)}
28808 rm -f conftest.$ac_objext
28809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28810 (eval $ac_compile) 2>conftest.er1
28812 grep -v '^ *+' conftest.er1 >conftest.err
28814 cat conftest.err >&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); } &&
28817 { ac_try='test -z "$ac_cxx_werror_flag"
28818 || test ! -s conftest.err'
28819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28820 (eval $ac_try) 2>&5
28822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823 (exit $ac_status); }; } &&
28824 { ac_try='test -s conftest.$ac_objext'
28825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28826 (eval $ac_try) 2>&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); }; }; then
28830 ac_cv_func_std_isinf_in_cmath=yes
28832 echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28835 ac_cv_func_std_isinf_in_cmath=no
28837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28839 ac_cpp='$CPP $CPPFLAGS'
28840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28845 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28846 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28848 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28850 cat >>confdefs.h <<\_ACEOF
28851 #define HAVE_STD_ISINF_IN_CMATH 1
28856 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28857 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28858 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28859 echo $ECHO_N "(cached) $ECHO_C" >&6
28862 ac_cpp='$CXXCPP $CPPFLAGS'
28863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28867 cat >conftest.$ac_ext <<_ACEOF
28870 cat confdefs.h >>conftest.$ac_ext
28871 cat >>conftest.$ac_ext <<_ACEOF
28872 /* end confdefs.h. */
28873 #include <ieeefp.h>
28877 float f; finite(f);
28882 rm -f conftest.$ac_objext
28883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28884 (eval $ac_compile) 2>conftest.er1
28886 grep -v '^ *+' conftest.er1 >conftest.err
28888 cat conftest.err >&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); } &&
28891 { ac_try='test -z "$ac_cxx_werror_flag"
28892 || test ! -s conftest.err'
28893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28894 (eval $ac_try) 2>&5
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); }; } &&
28898 { ac_try='test -s conftest.$ac_objext'
28899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900 (eval $ac_try) 2>&5
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; }; then
28904 ac_cv_func_finite_in_ieeefp_h=yes
28906 echo "$as_me: failed program was:" >&5
28907 sed 's/^/| /' conftest.$ac_ext >&5
28909 ac_cv_func_finite_in_ieeefp_h=no
28911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28913 ac_cpp='$CPP $CPPFLAGS'
28914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28919 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28920 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28922 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28924 cat >>confdefs.h <<\_ACEOF
28925 #define HAVE_FINITE_IN_IEEEFP_H 1
28934 for ac_header in stdlib.h unistd.h
28936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28938 echo "$as_me:$LINENO: checking for $ac_header" >&5
28939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28946 # Is the header compilable?
28947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28949 cat >conftest.$ac_ext <<_ACEOF
28952 cat confdefs.h >>conftest.$ac_ext
28953 cat >>conftest.$ac_ext <<_ACEOF
28954 /* end confdefs.h. */
28955 $ac_includes_default
28956 #include <$ac_header>
28958 rm -f conftest.$ac_objext
28959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28960 (eval $ac_compile) 2>conftest.er1
28962 grep -v '^ *+' conftest.er1 >conftest.err
28964 cat conftest.err >&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); } &&
28967 { ac_try='test -z "$ac_c_werror_flag"
28968 || test ! -s conftest.err'
28969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970 (eval $ac_try) 2>&5
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); }; } &&
28974 { ac_try='test -s conftest.$ac_objext'
28975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28976 (eval $ac_try) 2>&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; }; then
28980 ac_header_compiler=yes
28982 echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28985 ac_header_compiler=no
28987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28989 echo "${ECHO_T}$ac_header_compiler" >&6
28991 # Is the header present?
28992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28994 cat >conftest.$ac_ext <<_ACEOF
28997 cat confdefs.h >>conftest.$ac_ext
28998 cat >>conftest.$ac_ext <<_ACEOF
28999 /* end confdefs.h. */
29000 #include <$ac_header>
29002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29005 grep -v '^ *+' conftest.er1 >conftest.err
29007 cat conftest.err >&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } >/dev/null; then
29010 if test -s conftest.err; then
29011 ac_cpp_err=$ac_c_preproc_warn_flag
29012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29019 if test -z "$ac_cpp_err"; then
29020 ac_header_preproc=yes
29022 echo "$as_me: failed program was:" >&5
29023 sed 's/^/| /' conftest.$ac_ext >&5
29025 ac_header_preproc=no
29027 rm -f conftest.err conftest.$ac_ext
29028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29029 echo "${ECHO_T}$ac_header_preproc" >&6
29031 # So? What about this header?
29032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29038 ac_header_preproc=yes
29041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29055 ## ----------------------------------- ##
29056 ## Report this to llvmbugs@cs.uiuc.edu ##
29057 ## ----------------------------------- ##
29060 sed "s/^/$as_me: WARNING: /" >&2
29063 echo "$as_me:$LINENO: checking for $ac_header" >&5
29064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29068 eval "$as_ac_Header=\$ac_header_preproc"
29070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29075 cat >>confdefs.h <<_ACEOF
29076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29084 for ac_func in getpagesize
29086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29087 echo "$as_me:$LINENO: checking for $ac_func" >&5
29088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29089 if eval "test \"\${$as_ac_var+set}\" = set"; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29092 cat >conftest.$ac_ext <<_ACEOF
29095 cat confdefs.h >>conftest.$ac_ext
29096 cat >>conftest.$ac_ext <<_ACEOF
29097 /* end confdefs.h. */
29098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29100 #define $ac_func innocuous_$ac_func
29102 /* System header to define __stub macros and hopefully few prototypes,
29103 which can conflict with char $ac_func (); below.
29104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29105 <limits.h> exists even on freestanding compilers. */
29108 # include <limits.h>
29110 # include <assert.h>
29115 /* Override any gcc2 internal prototype to avoid an error. */
29120 /* We use char because int might match the return type of a gcc2
29121 builtin and then its argument prototype would still apply. */
29123 /* The GNU C library defines this for functions which it implements
29124 to always fail with ENOSYS. Some functions are actually named
29125 something starting with __ and the normal name is an alias. */
29126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29129 char (*f) () = $ac_func;
29138 return f != $ac_func;
29143 rm -f conftest.$ac_objext conftest$ac_exeext
29144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29145 (eval $ac_link) 2>conftest.er1
29147 grep -v '^ *+' conftest.er1 >conftest.err
29149 cat conftest.err >&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } &&
29152 { ac_try='test -z "$ac_c_werror_flag"
29153 || test ! -s conftest.err'
29154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155 (eval $ac_try) 2>&5
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; } &&
29159 { ac_try='test -s conftest$ac_exeext'
29160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161 (eval $ac_try) 2>&5
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); }; }; then
29165 eval "$as_ac_var=yes"
29167 echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29170 eval "$as_ac_var=no"
29172 rm -f conftest.err conftest.$ac_objext \
29173 conftest$ac_exeext conftest.$ac_ext
29175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29177 if test `eval echo '${'$as_ac_var'}'` = yes; then
29178 cat >>confdefs.h <<_ACEOF
29179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29185 echo "$as_me:$LINENO: checking for working mmap" >&5
29186 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29187 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29188 echo $ECHO_N "(cached) $ECHO_C" >&6
29190 if test "$cross_compiling" = yes; then
29191 ac_cv_func_mmap_fixed_mapped=no
29193 cat >conftest.$ac_ext <<_ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h. */
29199 $ac_includes_default
29200 /* malloc might have been renamed as rpl_malloc. */
29203 /* Thanks to Mike Haertel and Jim Avera for this test.
29204 Here is a matrix of mmap possibilities:
29205 mmap private not fixed
29206 mmap private fixed at somewhere currently unmapped
29207 mmap private fixed at somewhere already mapped
29208 mmap shared not fixed
29209 mmap shared fixed at somewhere currently unmapped
29210 mmap shared fixed at somewhere already mapped
29211 For private mappings, we should verify that changes cannot be read()
29212 back from the file, nor mmap's back from the file at a different
29213 address. (There have been systems where private was not correctly
29214 implemented like the infamous i386 svr4.0, and systems where the
29215 VM page cache was not coherent with the file system buffer cache
29216 like early versions of FreeBSD and possibly contemporary NetBSD.)
29217 For shared mappings, we should conversely verify that changes get
29218 propagated back to all the places they're supposed to be.
29220 Grep wants private fixed already mapped.
29221 The main things grep needs to know about mmap are:
29222 * does it exist and is it safe to write into the mmap'd area
29223 * how to use it (BSD variants) */
29226 #include <sys/mman.h>
29228 #if !STDC_HEADERS && !HAVE_STDLIB_H
29232 /* This mess was copied from the GNU getpagesize.h. */
29233 #if !HAVE_GETPAGESIZE
29234 /* Assume that all systems that can run configure have sys/param.h. */
29235 # if !HAVE_SYS_PARAM_H
29236 # define HAVE_SYS_PARAM_H 1
29239 # ifdef _SC_PAGESIZE
29240 # define getpagesize() sysconf(_SC_PAGESIZE)
29241 # else /* no _SC_PAGESIZE */
29242 # if HAVE_SYS_PARAM_H
29243 # include <sys/param.h>
29244 # ifdef EXEC_PAGESIZE
29245 # define getpagesize() EXEC_PAGESIZE
29246 # else /* no EXEC_PAGESIZE */
29248 # define getpagesize() NBPG * CLSIZE
29251 # endif /* no CLSIZE */
29252 # else /* no NBPG */
29254 # define getpagesize() NBPC
29255 # else /* no NBPC */
29257 # define getpagesize() PAGESIZE
29258 # endif /* PAGESIZE */
29259 # endif /* no NBPC */
29260 # endif /* no NBPG */
29261 # endif /* no EXEC_PAGESIZE */
29262 # else /* no HAVE_SYS_PARAM_H */
29263 # define getpagesize() 8192 /* punt totally */
29264 # endif /* no HAVE_SYS_PARAM_H */
29265 # endif /* no _SC_PAGESIZE */
29267 #endif /* no HAVE_GETPAGESIZE */
29272 char *data, *data2, *data3;
29276 pagesize = getpagesize ();
29278 /* First, make a file with some known garbage in it. */
29279 data = (char *) malloc (pagesize);
29282 for (i = 0; i < pagesize; ++i)
29283 *(data + i) = rand ();
29285 fd = creat ("conftest.mmap", 0600);
29288 if (write (fd, data, pagesize) != pagesize)
29292 /* Next, try to mmap the file at a fixed address which already has
29293 something else allocated at it. If we can, also make sure that
29294 we see the same garbage. */
29295 fd = open ("conftest.mmap", O_RDWR);
29298 data2 = (char *) malloc (2 * pagesize);
29301 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29302 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29303 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29305 for (i = 0; i < pagesize; ++i)
29306 if (*(data + i) != *(data2 + i))
29309 /* Finally, make sure that changes to the mapped area do not
29310 percolate back to the file as seen by read(). (This is a bug on
29311 some variants of i386 svr4.0.) */
29312 for (i = 0; i < pagesize; ++i)
29313 *(data2 + i) = *(data2 + i) + 1;
29314 data3 = (char *) malloc (pagesize);
29317 if (read (fd, data3, pagesize) != pagesize)
29319 for (i = 0; i < pagesize; ++i)
29320 if (*(data + i) != *(data3 + i))
29326 rm -f conftest$ac_exeext
29327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29328 (eval $ac_link) 2>&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333 (eval $ac_try) 2>&5
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); }; }; then
29337 ac_cv_func_mmap_fixed_mapped=yes
29339 echo "$as_me: program exited with status $ac_status" >&5
29340 echo "$as_me: failed program was:" >&5
29341 sed 's/^/| /' conftest.$ac_ext >&5
29343 ( exit $ac_status )
29344 ac_cv_func_mmap_fixed_mapped=no
29346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29349 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29350 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29351 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29353 cat >>confdefs.h <<\_ACEOF
29354 #define HAVE_MMAP 1
29358 rm -f conftest.mmap
29360 echo "$as_me:$LINENO: checking for mmap of files" >&5
29361 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29362 if test "${ac_cv_func_mmap_file+set}" = set; then
29363 echo $ECHO_N "(cached) $ECHO_C" >&6
29366 ac_cpp='$CPP $CPPFLAGS'
29367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29371 if test "$cross_compiling" = yes; then
29372 ac_cv_func_mmap_file=no
29374 cat >conftest.$ac_ext <<_ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h. */
29382 #include <sys/types.h>
29383 #include <sys/mman.h>
29391 fd = creat ("foo",0777);
29392 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29394 return (fd != (int) MAP_FAILED);
29399 rm -f conftest$ac_exeext
29400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29401 (eval $ac_link) 2>&5
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406 (eval $ac_try) 2>&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; }; then
29410 ac_cv_func_mmap_file=yes
29412 echo "$as_me: program exited with status $ac_status" >&5
29413 echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29416 ( exit $ac_status )
29417 ac_cv_func_mmap_file=no
29419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29422 ac_cpp='$CPP $CPPFLAGS'
29423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29429 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29430 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29431 if test "$ac_cv_func_mmap_file" = yes; then
29433 cat >>confdefs.h <<\_ACEOF
29434 #define HAVE_MMAP_FILE
29441 echo "$as_me:$LINENO: checking for mprotect" >&5
29442 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29443 if test "${ac_cv_func_mprotect+set}" = set; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29446 cat >conftest.$ac_ext <<_ACEOF
29449 cat confdefs.h >>conftest.$ac_ext
29450 cat >>conftest.$ac_ext <<_ACEOF
29451 /* end confdefs.h. */
29452 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29454 #define mprotect innocuous_mprotect
29456 /* System header to define __stub macros and hopefully few prototypes,
29457 which can conflict with char mprotect (); below.
29458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29459 <limits.h> exists even on freestanding compilers. */
29462 # include <limits.h>
29464 # include <assert.h>
29469 /* Override any gcc2 internal prototype to avoid an error. */
29474 /* We use char because int might match the return type of a gcc2
29475 builtin and then its argument prototype would still apply. */
29477 /* The GNU C library defines this for functions which it implements
29478 to always fail with ENOSYS. Some functions are actually named
29479 something starting with __ and the normal name is an alias. */
29480 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29483 char (*f) () = mprotect;
29492 return f != mprotect;
29497 rm -f conftest.$ac_objext conftest$ac_exeext
29498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29499 (eval $ac_link) 2>conftest.er1
29501 grep -v '^ *+' conftest.er1 >conftest.err
29503 cat conftest.err >&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } &&
29506 { ac_try='test -z "$ac_c_werror_flag"
29507 || test ! -s conftest.err'
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } &&
29513 { ac_try='test -s conftest$ac_exeext'
29514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515 (eval $ac_try) 2>&5
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); }; }; then
29519 ac_cv_func_mprotect=yes
29521 echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29524 ac_cv_func_mprotect=no
29526 rm -f conftest.err conftest.$ac_objext \
29527 conftest$ac_exeext conftest.$ac_ext
29529 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29530 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29531 if test $ac_cv_func_mprotect = yes; then
29534 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29535 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29536 { (exit 1); exit 1; }; }
29540 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29542 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29543 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29545 if test "$ac_cv_func_mmap_file" = "no"
29547 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29548 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29552 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29553 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29554 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29555 echo $ECHO_N "(cached) $ECHO_C" >&6
29557 llvm_cv_llvmgcc_sanity="no"
29558 if test -x "$LLVMGCC" ; then
29559 cp /dev/null conftest.c
29560 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29561 if test $? -eq 0 ; then
29562 llvm_cv_llvmgcc_sanity="yes"
29567 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29568 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29570 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29571 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
29572 LLVMCC1=$llvmcc1path
29574 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
29575 LLVMCC1PLUS=$llvmcc1pluspath
29577 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
29578 LLVMGCCDIR=$llvmgccdir
29582 SHLIBEXT=$libltdl_cv_shlibext
29585 # Translate the various configuration directories and other basic
29586 # information into substitutions that will end up in Makefile.config.in
29587 # that these configured values can be used by the makefiles
29588 eval LLVM_PREFIX="${prefix}";
29589 eval LLVM_BINDIR="${prefix}/bin";
29590 eval LLVM_LIBDIR="${prefix}/lib";
29591 eval LLVM_DATADIR="${prefix}/share/llvm";
29592 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29593 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29594 eval LLVM_INCLUDEDIR="${prefix}/include";
29595 eval LLVM_INFODIR="${prefix}/info";
29596 eval LLVM_MANDIR="${prefix}/man";
29597 LLVM_CONFIGTIME=`date`
29609 # Place the various directores into the config.h file as #defines so that we
29610 # can know about the installation paths within LLVM.
29612 cat >>confdefs.h <<_ACEOF
29613 #define LLVM_PREFIX "$LLVM_PREFIX"
29617 cat >>confdefs.h <<_ACEOF
29618 #define LLVM_BINDIR "$LLVM_BINDIR"
29622 cat >>confdefs.h <<_ACEOF
29623 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29627 cat >>confdefs.h <<_ACEOF
29628 #define LLVM_DATADIR "$LLVM_DATADIR"
29632 cat >>confdefs.h <<_ACEOF
29633 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29637 cat >>confdefs.h <<_ACEOF
29638 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29642 cat >>confdefs.h <<_ACEOF
29643 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29647 cat >>confdefs.h <<_ACEOF
29648 #define LLVM_INFODIR "$LLVM_INFODIR"
29652 cat >>confdefs.h <<_ACEOF
29653 #define LLVM_MANDIR "$LLVM_MANDIR"
29657 cat >>confdefs.h <<_ACEOF
29658 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29663 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29666 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29668 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29670 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29672 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29674 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29677 ac_config_files="$ac_config_files Makefile.config"
29680 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29683 ac_config_files="$ac_config_files docs/doxygen.cfg"
29686 ac_config_commands="$ac_config_commands Makefile"
29689 ac_config_commands="$ac_config_commands Makefile.common"
29692 ac_config_commands="$ac_config_commands examples/Makefile"
29695 ac_config_commands="$ac_config_commands lib/Makefile"
29698 ac_config_commands="$ac_config_commands runtime/Makefile"
29701 ac_config_commands="$ac_config_commands test/Makefile"
29704 ac_config_commands="$ac_config_commands test/Makefile.tests"
29707 ac_config_commands="$ac_config_commands tools/Makefile"
29710 ac_config_commands="$ac_config_commands utils/Makefile"
29713 ac_config_commands="$ac_config_commands projects/Makefile"
29717 cat >confcache <<\_ACEOF
29718 # This file is a shell script that caches the results of configure
29719 # tests run on this system so they can be shared between configure
29720 # scripts and configure runs, see configure's option --config-cache.
29721 # It is not useful on other systems. If it contains results you don't
29722 # want to keep, you may remove or edit it.
29724 # config.status only pays attention to the cache file if you give it
29725 # the --recheck option to rerun configure.
29727 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29728 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29729 # following values.
29733 # The following way of writing the cache mishandles newlines in values,
29734 # but we know of no workaround that is simple, portable, and efficient.
29735 # So, don't put newlines in cache variables' values.
29736 # Ultrix sh set writes to stderr and can't be redirected directly,
29737 # and sets the high bit in the cache file unless we assign to the vars.
29740 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29742 # `set' does not quote correctly, so add quotes (double-quote
29743 # substitution turns \\\\ into \\, and sed turns \\ into \).
29746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29749 # `set' quotes correctly as required by POSIX, so do not add quotes.
29751 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29758 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29760 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29762 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29763 if test -w $cache_file; then
29764 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29765 cat confcache >$cache_file
29767 echo "not updating unwritable cache $cache_file"
29772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29773 # Let make expand exec_prefix.
29774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29776 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29777 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29778 # trailing colons and then remove the whole line if VPATH becomes empty
29779 # (actually we leave an empty line to preserve line numbers).
29780 if test "x$srcdir" = x.; then
29781 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29782 s/:*\$(srcdir):*/:/;
29783 s/:*\${srcdir}:*/:/;
29785 s/^\([^=]*=[ ]*\):*/\1/;
29791 DEFS=-DHAVE_CONFIG_H
29795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29796 # 1. Remove the extension, and $U if already installed.
29797 ac_i=`echo "$ac_i" |
29798 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29800 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29801 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29803 LIBOBJS=$ac_libobjs
29805 LTLIBOBJS=$ac_ltlibobjs
29808 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29809 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29810 Usually this means the macro was only invoked conditionally." >&5
29811 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29812 Usually this means the macro was only invoked conditionally." >&2;}
29813 { (exit 1); exit 1; }; }
29815 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29816 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29817 Usually this means the macro was only invoked conditionally." >&5
29818 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29819 Usually this means the macro was only invoked conditionally." >&2;}
29820 { (exit 1); exit 1; }; }
29823 : ${CONFIG_STATUS=./config.status}
29824 ac_clean_files_save=$ac_clean_files
29825 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29826 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29827 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29828 cat >$CONFIG_STATUS <<_ACEOF
29830 # Generated by $as_me.
29831 # Run this file to recreate the current configuration.
29832 # Compiler output produced by configure, useful for debugging
29833 # configure, is in config.log if it exists.
29836 ac_cs_recheck=false
29838 SHELL=\${CONFIG_SHELL-$SHELL}
29841 cat >>$CONFIG_STATUS <<\_ACEOF
29842 ## --------------------- ##
29843 ## M4sh Initialization. ##
29844 ## --------------------- ##
29846 # Be Bourne compatible
29847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29850 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29851 # is contrary to our usage. Disable this feature.
29852 alias -g '${1+"$@"}'='"$@"'
29853 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29856 DUALCASE=1; export DUALCASE # for MKS sh
29858 # Support unset when possible.
29859 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29866 # Work around bugs in pre-3.0 UWIN ksh.
29867 $as_unset ENV MAIL MAILPATH
29874 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29875 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29876 LC_TELEPHONE LC_TIME
29878 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29879 eval $as_var=C; export $as_var
29885 # Required to use basename.
29886 if expr a : '\(a\)' >/dev/null 2>&1; then
29892 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29893 as_basename=basename
29899 # Name of the executable.
29900 as_me=`$as_basename "$0" ||
29901 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29902 X"$0" : 'X\(//\)$' \| \
29903 X"$0" : 'X\(/\)$' \| \
29904 . : '\(.\)' 2>/dev/null ||
29906 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29907 /^X\/\(\/\/\)$/{ s//\1/; q; }
29908 /^X\/\(\/\).*/{ s//\1/; q; }
29912 # PATH needs CR, and LINENO needs CR and PATH.
29913 # Avoid depending upon Character Ranges.
29914 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29915 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29916 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29917 as_cr_digits='0123456789'
29918 as_cr_alnum=$as_cr_Letters$as_cr_digits
29920 # The user is always right.
29921 if test "${PATH_SEPARATOR+set}" != set; then
29922 echo "#! /bin/sh" >conf$$.sh
29923 echo "exit 0" >>conf$$.sh
29925 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29934 as_lineno_1=$LINENO
29935 as_lineno_2=$LINENO
29936 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29937 test "x$as_lineno_1" != "x$as_lineno_2" &&
29938 test "x$as_lineno_3" = "x$as_lineno_2" || {
29939 # Find who we are. Look in the path if we contain no path at all
29942 *[\\/]* ) as_myself=$0 ;;
29943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29944 for as_dir in $PATH
29947 test -z "$as_dir" && as_dir=.
29948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29953 # We did not find ourselves, most probably we were run as `sh COMMAND'
29954 # in which case we are not to be found in the path.
29955 if test "x$as_myself" = x; then
29958 if test ! -f "$as_myself"; then
29959 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29960 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29961 { (exit 1); exit 1; }; }
29963 case $CONFIG_SHELL in
29965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29966 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29969 test -z "$as_dir" && as_dir=.
29970 for as_base in sh bash ksh sh5; do
29973 if ("$as_dir/$as_base" -c '
29974 as_lineno_1=$LINENO
29975 as_lineno_2=$LINENO
29976 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29977 test "x$as_lineno_1" != "x$as_lineno_2" &&
29978 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29979 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29980 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29981 CONFIG_SHELL=$as_dir/$as_base
29982 export CONFIG_SHELL
29983 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29991 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29992 # uniformly replaced by the line number. The first 'sed' inserts a
29993 # line-number line before each line; the second 'sed' does the real
29994 # work. The second script uses 'N' to pair each line-number line
29995 # with the numbered line, and appends trailing '-' during
29996 # substitution so that $LINENO is not a special case at line end.
29997 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29998 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29999 sed '=' <$as_myself |
30004 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30007 s,^['$as_cr_digits']*\n,,
30008 ' >$as_me.lineno &&
30009 chmod +x $as_me.lineno ||
30010 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30011 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30012 { (exit 1); exit 1; }; }
30014 # Don't try to exec as it changes $[0], causing all sort of problems
30015 # (the dirname of $[0] is not the place where we might find the
30016 # original and so on. Autoconf is especially sensible to this).
30018 # Exit status is that of the last command.
30023 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30024 *c*,-n*) ECHO_N= ECHO_C='
30026 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30027 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30030 if expr a : '\(a\)' >/dev/null 2>&1; then
30036 rm -f conf$$ conf$$.exe conf$$.file
30038 if ln -s conf$$.file conf$$ 2>/dev/null; then
30039 # We could just check for DJGPP; but this test a) works b) is more generic
30040 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30041 if test -f conf$$.exe; then
30042 # Don't use ln at all; we don't have any links
30047 elif ln conf$$.file conf$$ 2>/dev/null; then
30052 rm -f conf$$ conf$$.exe conf$$.file
30054 if mkdir -p . 2>/dev/null; then
30057 test -d ./-p && rmdir ./-p
30061 as_executable_p="test -f"
30063 # Sed expression to map a string onto a valid CPP name.
30064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30066 # Sed expression to map a string onto a valid variable name.
30067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30071 # We need space, tab and new line, in precisely that order.
30081 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30082 # report actual input values of CONFIG_FILES etc. instead of their
30083 # values after options handling. Logging --version etc. is OK.
30087 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30088 ## Running $as_me. ##
30093 This file was extended by llvm $as_me 1.4, which was
30094 generated by GNU Autoconf 2.59. Invocation command line was
30096 CONFIG_FILES = $CONFIG_FILES
30097 CONFIG_HEADERS = $CONFIG_HEADERS
30098 CONFIG_LINKS = $CONFIG_LINKS
30099 CONFIG_COMMANDS = $CONFIG_COMMANDS
30103 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30107 # Files that config.status was made for.
30108 if test -n "$ac_config_files"; then
30109 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30112 if test -n "$ac_config_headers"; then
30113 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30116 if test -n "$ac_config_links"; then
30117 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30120 if test -n "$ac_config_commands"; then
30121 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30124 cat >>$CONFIG_STATUS <<\_ACEOF
30127 \`$as_me' instantiates files from templates according to the
30128 current configuration.
30130 Usage: $0 [OPTIONS] [FILE]...
30132 -h, --help print this help, then exit
30133 -V, --version print version number, then exit
30134 -q, --quiet do not print progress messages
30135 -d, --debug don't remove temporary files
30136 --recheck update $as_me by reconfiguring in the same conditions
30137 --file=FILE[:TEMPLATE]
30138 instantiate the configuration file FILE
30139 --header=FILE[:TEMPLATE]
30140 instantiate the configuration header FILE
30142 Configuration files:
30145 Configuration headers:
30148 Configuration links:
30151 Configuration commands:
30154 Report bugs to <bug-autoconf@gnu.org>."
30157 cat >>$CONFIG_STATUS <<_ACEOF
30159 llvm config.status 1.4
30160 configured by $0, generated by GNU Autoconf 2.59,
30161 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30163 Copyright (C) 2003 Free Software Foundation, Inc.
30164 This config.status script is free software; the Free Software Foundation
30165 gives unlimited permission to copy, distribute and modify it."
30170 cat >>$CONFIG_STATUS <<\_ACEOF
30171 # If no file are specified by the user, then we need to provide default
30172 # value. By we need to know if files were specified by the user.
30178 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30179 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30187 *) # This is not an option, so the user has probably given explicit
30190 ac_need_defaults=false;;
30194 # Handling of the options.
30196 cat >>$CONFIG_STATUS <<\_ACEOF
30197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30199 --version | --vers* | -V )
30200 echo "$ac_cs_version"; exit 0 ;;
30202 # Conflict between --help and --header
30203 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30204 Try \`$0 --help' for more information." >&5
30205 echo "$as_me: error: ambiguous option: $1
30206 Try \`$0 --help' for more information." >&2;}
30207 { (exit 1); exit 1; }; };;
30208 --help | --hel | -h )
30209 echo "$ac_cs_usage"; exit 0 ;;
30210 --debug | --d* | -d )
30212 --file | --fil | --fi | --f )
30214 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30215 ac_need_defaults=false;;
30216 --header | --heade | --head | --hea )
30218 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30219 ac_need_defaults=false;;
30220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30224 # This is an error.
30225 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30226 Try \`$0 --help' for more information." >&5
30227 echo "$as_me: error: unrecognized option: $1
30228 Try \`$0 --help' for more information." >&2;}
30229 { (exit 1); exit 1; }; } ;;
30231 *) ac_config_targets="$ac_config_targets $1" ;;
30237 ac_configure_extra_args=
30239 if $ac_cs_silent; then
30241 ac_configure_extra_args="$ac_configure_extra_args --silent"
30245 cat >>$CONFIG_STATUS <<_ACEOF
30246 if \$ac_cs_recheck; then
30247 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30248 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30253 cat >>$CONFIG_STATUS <<_ACEOF
30255 # INIT-COMMANDS section.
30258 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30259 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30260 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30261 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30262 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30263 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30264 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30265 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30266 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30267 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30273 cat >>$CONFIG_STATUS <<\_ACEOF
30274 for ac_config_target in $ac_config_targets
30276 case "$ac_config_target" in
30277 # Handling of arguments.
30278 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30279 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30280 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30281 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30282 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30283 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30284 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30285 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30286 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30287 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30288 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30289 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30290 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30291 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30292 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30293 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30294 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30295 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30296 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30297 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30298 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30299 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30300 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30301 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30302 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30303 { (exit 1); exit 1; }; };;
30307 # If the user did not use the arguments to specify the items to instantiate,
30308 # then the envvar interface is used. Set only those that are not.
30309 # We use the long form for the default assignment because of an extremely
30310 # bizarre bug on SunOS 4.1.3.
30311 if $ac_need_defaults; then
30312 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30313 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30314 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30318 # Have a temporary directory for convenience. Make it in the build tree
30319 # simply because there is no reason to put it here, and in addition,
30320 # creating and moving files from /tmp can sometimes cause problems.
30321 # Create a temporary directory, and hook for its removal unless debugging.
30324 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30325 trap '{ (exit 1); exit 1; }' 1 2 13 15
30328 # Create a (secure) tmp directory for tmp files.
30331 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30332 test -n "$tmp" && test -d "$tmp"
30335 tmp=./confstat$$-$RANDOM
30336 (umask 077 && mkdir $tmp)
30339 echo "$me: cannot create a temporary directory in ." >&2
30340 { (exit 1); exit 1; }
30345 cat >>$CONFIG_STATUS <<_ACEOF
30348 # CONFIG_FILES section.
30351 # No need to generate the scripts if there are no CONFIG_FILES.
30352 # This happens for instance when ./config.status config.h
30353 if test -n "\$CONFIG_FILES"; then
30354 # Protect against being on the right side of a sed subst in config.status.
30355 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30356 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30357 s,@SHELL@,$SHELL,;t t
30358 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30359 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30360 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30361 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30362 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30363 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30364 s,@exec_prefix@,$exec_prefix,;t t
30365 s,@prefix@,$prefix,;t t
30366 s,@program_transform_name@,$program_transform_name,;t t
30367 s,@bindir@,$bindir,;t t
30368 s,@sbindir@,$sbindir,;t t
30369 s,@libexecdir@,$libexecdir,;t t
30370 s,@datadir@,$datadir,;t t
30371 s,@sysconfdir@,$sysconfdir,;t t
30372 s,@sharedstatedir@,$sharedstatedir,;t t
30373 s,@localstatedir@,$localstatedir,;t t
30374 s,@libdir@,$libdir,;t t
30375 s,@includedir@,$includedir,;t t
30376 s,@oldincludedir@,$oldincludedir,;t t
30377 s,@infodir@,$infodir,;t t
30378 s,@mandir@,$mandir,;t t
30379 s,@build_alias@,$build_alias,;t t
30380 s,@host_alias@,$host_alias,;t t
30381 s,@target_alias@,$target_alias,;t t
30382 s,@DEFS@,$DEFS,;t t
30383 s,@ECHO_C@,$ECHO_C,;t t
30384 s,@ECHO_N@,$ECHO_N,;t t
30385 s,@ECHO_T@,$ECHO_T,;t t
30386 s,@LIBS@,$LIBS,;t t
30387 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30388 s,@subdirs@,$subdirs,;t t
30389 s,@build@,$build,;t t
30390 s,@build_cpu@,$build_cpu,;t t
30391 s,@build_vendor@,$build_vendor,;t t
30392 s,@build_os@,$build_os,;t t
30393 s,@host@,$host,;t t
30394 s,@host_cpu@,$host_cpu,;t t
30395 s,@host_vendor@,$host_vendor,;t t
30396 s,@host_os@,$host_os,;t t
30397 s,@target@,$target,;t t
30398 s,@target_cpu@,$target_cpu,;t t
30399 s,@target_vendor@,$target_vendor,;t t
30400 s,@target_os@,$target_os,;t t
30402 s,@ARCH@,$ARCH,;t t
30403 s,@ENDIAN@,$ENDIAN,;t t
30405 s,@CFLAGS@,$CFLAGS,;t t
30406 s,@LDFLAGS@,$LDFLAGS,;t t
30407 s,@CPPFLAGS@,$CPPFLAGS,;t t
30408 s,@ac_ct_CC@,$ac_ct_CC,;t t
30409 s,@EXEEXT@,$EXEEXT,;t t
30410 s,@OBJEXT@,$OBJEXT,;t t
30411 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30413 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30416 s,@CXXFLAGS@,$CXXFLAGS,;t t
30417 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30419 s,@LEXLIB@,$LEXLIB,;t t
30420 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30421 s,@FLEX@,$FLEX,;t t
30422 s,@YACC@,$YACC,;t t
30423 s,@BISON@,$BISON,;t t
30424 s,@ifGNUmake@,$ifGNUmake,;t t
30425 s,@LN_S@,$LN_S,;t t
30428 s,@DATE@,$DATE,;t t
30429 s,@FIND@,$FIND,;t t
30430 s,@GREP@,$GREP,;t t
30431 s,@LLVMGCC@,$LLVMGCC,;t t
30432 s,@LLVMGXX@,$LLVMGXX,;t t
30433 s,@MKDIR@,$MKDIR,;t t
30436 s,@RANLIB@,$RANLIB,;t t
30437 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30441 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30442 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30443 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30444 s,@BZIP2@,$BZIP2,;t t
30446 s,@DOXYGEN@,$DOXYGEN,;t t
30447 s,@ETAGS@,$ETAGS,;t t
30448 s,@GROFF@,$GROFF,;t t
30449 s,@GZIP@,$GZIP,;t t
30450 s,@POD2HTML@,$POD2HTML,;t t
30451 s,@POD2MAN@,$POD2MAN,;t t
30452 s,@RUNTEST@,$RUNTEST,;t t
30453 s,@TCLSH@,$TCLSH,;t t
30455 s,@EGREP@,$EGREP,;t t
30456 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30457 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30458 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30459 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30460 s,@LIBADD_DL@,$LIBADD_DL,;t t
30461 s,@ECHO@,$ECHO,;t t
30463 s,@ac_ct_AR@,$ac_ct_AR,;t t
30464 s,@STRIP@,$STRIP,;t t
30465 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30466 s,@CXXCPP@,$CXXCPP,;t t
30468 s,@FFLAGS@,$FFLAGS,;t t
30469 s,@ac_ct_F77@,$ac_ct_F77,;t t
30470 s,@LIBTOOL@,$LIBTOOL,;t t
30471 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30472 s,@ALLOCA@,$ALLOCA,;t t
30473 s,@MMAP_FILE@,$MMAP_FILE,;t t
30474 s,@LLVMCC1@,$LLVMCC1,;t t
30475 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30476 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30477 s,@SHLIBEXT@,$SHLIBEXT,;t t
30478 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30479 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30480 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30481 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30482 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30483 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30484 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30485 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30486 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30487 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30488 s,@LIBOBJS@,$LIBOBJS,;t t
30489 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30494 cat >>$CONFIG_STATUS <<\_ACEOF
30495 # Split the substitutions into bite-sized pieces for seds with
30496 # small command number limits, like on Digital OSF/1 and HP-UX.
30497 ac_max_sed_lines=48
30498 ac_sed_frag=1 # Number of current file.
30499 ac_beg=1 # First line for current file.
30500 ac_end=$ac_max_sed_lines # Line after last line for current file.
30503 while $ac_more_lines; do
30504 if test $ac_beg -gt 1; then
30505 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30507 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30509 if test ! -s $tmp/subs.frag; then
30510 ac_more_lines=false
30512 # The purpose of the label and of the branching condition is to
30513 # speed up the sed processing (if there are no `@' at all, there
30514 # is no need to browse any of the substitutions).
30515 # These are the two extra sed commands mentioned above.
30517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30518 if test -z "$ac_sed_cmds"; then
30519 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30521 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30523 ac_sed_frag=`expr $ac_sed_frag + 1`
30525 ac_end=`expr $ac_end + $ac_max_sed_lines`
30528 if test -z "$ac_sed_cmds"; then
30531 fi # test -n "$CONFIG_FILES"
30534 cat >>$CONFIG_STATUS <<\_ACEOF
30535 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30536 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30538 - | *:- | *:-:* ) # input from stdin
30540 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30541 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30542 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30544 * ) ac_file_in=$ac_file.in ;;
30547 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30548 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30549 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30550 X"$ac_file" : 'X\(//\)[^/]' \| \
30551 X"$ac_file" : 'X\(//\)$' \| \
30552 X"$ac_file" : 'X\(/\)' \| \
30553 . : '\(.\)' 2>/dev/null ||
30555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30556 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30557 /^X\(\/\/\)$/{ s//\1/; q; }
30558 /^X\(\/\).*/{ s//\1/; q; }
30560 { if $as_mkdir_p; then
30565 while test ! -d "$as_dir"; do
30566 as_dirs="$as_dir $as_dirs"
30567 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30569 X"$as_dir" : 'X\(//\)[^/]' \| \
30570 X"$as_dir" : 'X\(//\)$' \| \
30571 X"$as_dir" : 'X\(/\)' \| \
30572 . : '\(.\)' 2>/dev/null ||
30574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30576 /^X\(\/\/\)$/{ s//\1/; q; }
30577 /^X\(\/\).*/{ s//\1/; q; }
30580 test ! -n "$as_dirs" || mkdir $as_dirs
30581 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30582 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30583 { (exit 1); exit 1; }; }; }
30587 if test "$ac_dir" != .; then
30588 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30589 # A "../" for each directory in $ac_dir_suffix.
30590 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30592 ac_dir_suffix= ac_top_builddir=
30596 .) # No --srcdir option. We are building in place.
30598 if test -z "$ac_top_builddir"; then
30601 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30603 [\\/]* | ?:[\\/]* ) # Absolute path.
30604 ac_srcdir=$srcdir$ac_dir_suffix;
30605 ac_top_srcdir=$srcdir ;;
30606 *) # Relative path.
30607 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30608 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30611 # Do not use `cd foo && pwd` to compute absolute paths, because
30612 # the directories may not exist.
30614 .) ac_abs_builddir="$ac_dir";;
30617 .) ac_abs_builddir=`pwd`;;
30618 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30619 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30622 case $ac_abs_builddir in
30623 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30625 case ${ac_top_builddir}. in
30626 .) ac_abs_top_builddir=$ac_abs_builddir;;
30627 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30628 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30631 case $ac_abs_builddir in
30632 .) ac_abs_srcdir=$ac_srcdir;;
30635 .) ac_abs_srcdir=$ac_abs_builddir;;
30636 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30637 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30640 case $ac_abs_builddir in
30641 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30643 case $ac_top_srcdir in
30644 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30645 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30646 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30652 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30653 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30656 if test x"$ac_file" != x-; then
30657 { echo "$as_me:$LINENO: creating $ac_file" >&5
30658 echo "$as_me: creating $ac_file" >&6;}
30661 # Let's still pretend it is `configure' which instantiates (i.e., don't
30662 # use $as_me), people would be surprised to read:
30663 # /* config.h. Generated by config.status. */
30664 if test x"$ac_file" = x-; then
30667 configure_input="$ac_file. "
30669 configure_input=$configure_input"Generated from `echo $ac_file_in |
30670 sed 's,.*/,,'` by configure."
30672 # First look for the input files in the build tree, otherwise in the
30674 ac_file_inputs=`IFS=:
30675 for f in $ac_file_in; do
30677 -) echo $tmp/stdin ;;
30679 # Absolute (can't be DOS-style, as IFS=:)
30680 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30681 echo "$as_me: error: cannot find input file: $f" >&2;}
30682 { (exit 1); exit 1; }; }
30685 if test -f "$f"; then
30688 elif test -f "$srcdir/$f"; then
30693 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30694 echo "$as_me: error: cannot find input file: $f" >&2;}
30695 { (exit 1); exit 1; }; }
30698 done` || { (exit 1); exit 1; }
30700 cat >>$CONFIG_STATUS <<_ACEOF
30704 cat >>$CONFIG_STATUS <<\_ACEOF
30706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30707 s,@configure_input@,$configure_input,;t t
30708 s,@srcdir@,$ac_srcdir,;t t
30709 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30710 s,@top_srcdir@,$ac_top_srcdir,;t t
30711 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30712 s,@builddir@,$ac_builddir,;t t
30713 s,@abs_builddir@,$ac_abs_builddir,;t t
30714 s,@top_builddir@,$ac_top_builddir,;t t
30715 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30716 s,@INSTALL@,$ac_INSTALL,;t t
30717 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30719 if test x"$ac_file" != x-; then
30720 mv $tmp/out $ac_file
30728 cat >>$CONFIG_STATUS <<\_ACEOF
30731 # CONFIG_HEADER section.
30734 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30735 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30737 # ac_d sets the value in "#define NAME VALUE" lines.
30738 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30739 ac_dB='[ ].*$,\1#\2'
30742 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30743 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30744 ac_uB='$,\1#\2define\3'
30748 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30749 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30751 - | *:- | *:-:* ) # input from stdin
30753 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30754 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30755 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30756 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30757 * ) ac_file_in=$ac_file.in ;;
30760 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30761 echo "$as_me: creating $ac_file" >&6;}
30763 # First look for the input files in the build tree, otherwise in the
30765 ac_file_inputs=`IFS=:
30766 for f in $ac_file_in; do
30768 -) echo $tmp/stdin ;;
30770 # Absolute (can't be DOS-style, as IFS=:)
30771 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30772 echo "$as_me: error: cannot find input file: $f" >&2;}
30773 { (exit 1); exit 1; }; }
30774 # Do quote $f, to prevent DOS paths from being IFS'd.
30777 if test -f "$f"; then
30780 elif test -f "$srcdir/$f"; then
30785 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30786 echo "$as_me: error: cannot find input file: $f" >&2;}
30787 { (exit 1); exit 1; }; }
30790 done` || { (exit 1); exit 1; }
30791 # Remove the trailing spaces.
30792 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30796 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30797 # `conftest.undefs', that substitutes the proper values into
30798 # config.h.in to produce config.h. The first handles `#define'
30799 # templates, and the second `#undef' templates.
30800 # And first: Protect against being on the right side of a sed subst in
30801 # config.status. Protect against being in an unquoted here document
30802 # in config.status.
30803 rm -f conftest.defines conftest.undefs
30804 # Using a here document instead of a string reduces the quoting nightmare.
30805 # Putting comments in sed scripts is not portable.
30807 # `end' is used to avoid that the second main sed command (meant for
30808 # 0-ary CPP macros) applies to n-ary macro definitions.
30809 # See the Autoconf documentation for `clear'.
30810 cat >confdef2sed.sed <<\_ACEOF
30815 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30817 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30820 # If some macros were called several times there might be several times
30821 # the same #defines, which is useless. Nevertheless, we may not want to
30822 # sort them, since we want the *last* AC-DEFINE to be honored.
30823 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30824 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30825 rm -f confdef2sed.sed
30827 # This sed command replaces #undef with comments. This is necessary, for
30828 # example, in the case of _POSIX_SOURCE, which is predefined and required
30829 # on some systems where configure will not decide to define it.
30830 cat >>conftest.undefs <<\_ACEOF
30831 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30834 # Break up conftest.defines because some shells have a limit on the size
30835 # of here documents, and old seds have small limits too (100 cmds).
30836 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30837 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30838 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30839 echo ' :' >>$CONFIG_STATUS
30840 rm -f conftest.tail
30841 while grep . conftest.defines >/dev/null
30843 # Write a limited-size here document to $tmp/defines.sed.
30844 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30845 # Speed up: don't consider the non `#define' lines.
30846 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30847 # Work around the forget-to-reset-the-flag bug.
30848 echo 't clr' >>$CONFIG_STATUS
30849 echo ': clr' >>$CONFIG_STATUS
30850 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30852 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30854 mv $tmp/out $tmp/in
30856 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30857 rm -f conftest.defines
30858 mv conftest.tail conftest.defines
30860 rm -f conftest.defines
30861 echo ' fi # grep' >>$CONFIG_STATUS
30862 echo >>$CONFIG_STATUS
30864 # Break up conftest.undefs because some shells have a limit on the size
30865 # of here documents, and old seds have small limits too (100 cmds).
30866 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30867 rm -f conftest.tail
30868 while grep . conftest.undefs >/dev/null
30870 # Write a limited-size here document to $tmp/undefs.sed.
30871 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30872 # Speed up: don't consider the non `#undef'
30873 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30874 # Work around the forget-to-reset-the-flag bug.
30875 echo 't clr' >>$CONFIG_STATUS
30876 echo ': clr' >>$CONFIG_STATUS
30877 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30879 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30881 mv $tmp/out $tmp/in
30883 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30884 rm -f conftest.undefs
30885 mv conftest.tail conftest.undefs
30887 rm -f conftest.undefs
30889 cat >>$CONFIG_STATUS <<\_ACEOF
30890 # Let's still pretend it is `configure' which instantiates (i.e., don't
30891 # use $as_me), people would be surprised to read:
30892 # /* config.h. Generated by config.status. */
30893 if test x"$ac_file" = x-; then
30894 echo "/* Generated by configure. */" >$tmp/config.h
30896 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30898 cat $tmp/in >>$tmp/config.h
30900 if test x"$ac_file" != x-; then
30901 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30902 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30903 echo "$as_me: $ac_file is unchanged" >&6;}
30905 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30907 X"$ac_file" : 'X\(//\)[^/]' \| \
30908 X"$ac_file" : 'X\(//\)$' \| \
30909 X"$ac_file" : 'X\(/\)' \| \
30910 . : '\(.\)' 2>/dev/null ||
30912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30914 /^X\(\/\/\)$/{ s//\1/; q; }
30915 /^X\(\/\).*/{ s//\1/; q; }
30917 { if $as_mkdir_p; then
30922 while test ! -d "$as_dir"; do
30923 as_dirs="$as_dir $as_dirs"
30924 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30926 X"$as_dir" : 'X\(//\)[^/]' \| \
30927 X"$as_dir" : 'X\(//\)$' \| \
30928 X"$as_dir" : 'X\(/\)' \| \
30929 . : '\(.\)' 2>/dev/null ||
30931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30933 /^X\(\/\/\)$/{ s//\1/; q; }
30934 /^X\(\/\).*/{ s//\1/; q; }
30937 test ! -n "$as_dirs" || mkdir $as_dirs
30938 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30939 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30940 { (exit 1); exit 1; }; }; }
30943 mv $tmp/config.h $ac_file
30947 rm -f $tmp/config.h
30951 cat >>$CONFIG_STATUS <<\_ACEOF
30954 # CONFIG_LINKS section.
30957 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30958 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30959 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30961 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30962 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30964 if test ! -r $srcdir/$ac_source; then
30965 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30966 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30967 { (exit 1); exit 1; }; }
30971 # Make relative symlinks.
30972 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30973 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30974 X"$ac_dest" : 'X\(//\)[^/]' \| \
30975 X"$ac_dest" : 'X\(//\)$' \| \
30976 X"$ac_dest" : 'X\(/\)' \| \
30977 . : '\(.\)' 2>/dev/null ||
30979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30981 /^X\(\/\/\)$/{ s//\1/; q; }
30982 /^X\(\/\).*/{ s//\1/; q; }
30984 { if $as_mkdir_p; then
30985 mkdir -p "$ac_dest_dir"
30987 as_dir="$ac_dest_dir"
30989 while test ! -d "$as_dir"; do
30990 as_dirs="$as_dir $as_dirs"
30991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30993 X"$as_dir" : 'X\(//\)[^/]' \| \
30994 X"$as_dir" : 'X\(//\)$' \| \
30995 X"$as_dir" : 'X\(/\)' \| \
30996 . : '\(.\)' 2>/dev/null ||
30998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31000 /^X\(\/\/\)$/{ s//\1/; q; }
31001 /^X\(\/\).*/{ s//\1/; q; }
31004 test ! -n "$as_dirs" || mkdir $as_dirs
31005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
31006 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
31007 { (exit 1); exit 1; }; }; }
31011 if test "$ac_dest_dir" != .; then
31012 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
31013 # A "../" for each directory in $ac_dir_suffix.
31014 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31016 ac_dir_suffix= ac_top_builddir=
31020 .) # No --srcdir option. We are building in place.
31022 if test -z "$ac_top_builddir"; then
31025 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31027 [\\/]* | ?:[\\/]* ) # Absolute path.
31028 ac_srcdir=$srcdir$ac_dir_suffix;
31029 ac_top_srcdir=$srcdir ;;
31030 *) # Relative path.
31031 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31032 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31035 # Do not use `cd foo && pwd` to compute absolute paths, because
31036 # the directories may not exist.
31038 .) ac_abs_builddir="$ac_dest_dir";;
31040 case "$ac_dest_dir" in
31041 .) ac_abs_builddir=`pwd`;;
31042 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31043 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31046 case $ac_abs_builddir in
31047 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31049 case ${ac_top_builddir}. in
31050 .) ac_abs_top_builddir=$ac_abs_builddir;;
31051 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31052 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31055 case $ac_abs_builddir in
31056 .) ac_abs_srcdir=$ac_srcdir;;
31059 .) ac_abs_srcdir=$ac_abs_builddir;;
31060 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31061 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31064 case $ac_abs_builddir in
31065 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31067 case $ac_top_srcdir in
31068 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31069 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31070 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31076 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31077 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31080 # Try a symlink, then a hard link, then a copy.
31081 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31082 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31083 cp -p $srcdir/$ac_source $ac_dest ||
31084 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31085 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31086 { (exit 1); exit 1; }; }
31089 cat >>$CONFIG_STATUS <<\_ACEOF
31092 # CONFIG_COMMANDS section.
31094 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31095 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31096 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31097 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31098 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31099 X"$ac_dest" : 'X\(//\)[^/]' \| \
31100 X"$ac_dest" : 'X\(//\)$' \| \
31101 X"$ac_dest" : '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;;
31200 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31201 echo "$as_me: executing $ac_dest commands" >&6;}
31203 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31204 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31205 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31206 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31207 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31208 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31209 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31210 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31211 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31212 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31217 cat >>$CONFIG_STATUS <<\_ACEOF
31219 { (exit 0); exit 0; }
31221 chmod +x $CONFIG_STATUS
31222 ac_clean_files=$ac_clean_files_save
31225 # configure is writing to config.log, and then calls config.status.
31226 # config.status does its own redirection, appending to config.log.
31227 # Unfortunately, on DOS this fails, as config.log is still kept open
31228 # by configure, so config.status won't be able to write to it; its
31229 # output is simply discarded. So we exec the FD to /dev/null,
31230 # effectively closing config.log, so it can be properly (re)opened and
31231 # appended to by config.status. When coming back to configure, we
31232 # need to make the FD available again.
31233 if test "$no_create" != yes; then
31235 ac_config_status_args=
31236 test "$silent" = yes &&
31237 ac_config_status_args="$ac_config_status_args --quiet"
31239 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31241 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31242 # would make configure fail if this is the last instruction.
31243 $ac_cs_success || { (exit 1); exit 1; }
31247 # CONFIG_SUBDIRS section.
31249 if test "$no_recursion" != yes; then
31251 # Remove --cache-file and --srcdir arguments so they do not pile up.
31252 ac_sub_configure_args=
31254 for ac_arg in $ac_configure_args; do
31255 if test -n "$ac_prev"; then
31260 -cache-file | --cache-file | --cache-fil | --cache-fi \
31261 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31262 ac_prev=cache_file ;;
31263 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31264 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31267 --config-cache | -C)
31269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31277 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31281 # Always prepend --prefix to ensure using the same prefix
31282 # in subdir configurations.
31283 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31286 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31288 # Do not complain, so a configure script can configure whichever
31289 # parts of a large source tree are present.
31290 test -d $srcdir/$ac_dir || continue
31292 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31293 echo "$as_me: configuring in $ac_dir" >&6;}
31294 { if $as_mkdir_p; then
31299 while test ! -d "$as_dir"; do
31300 as_dirs="$as_dir $as_dirs"
31301 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31303 X"$as_dir" : 'X\(//\)[^/]' \| \
31304 X"$as_dir" : 'X\(//\)$' \| \
31305 X"$as_dir" : 'X\(/\)' \| \
31306 . : '\(.\)' 2>/dev/null ||
31308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31310 /^X\(\/\/\)$/{ s//\1/; q; }
31311 /^X\(\/\).*/{ s//\1/; q; }
31314 test ! -n "$as_dirs" || mkdir $as_dirs
31315 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31316 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31317 { (exit 1); exit 1; }; }; }
31321 if test "$ac_dir" != .; then
31322 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31323 # A "../" for each directory in $ac_dir_suffix.
31324 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31326 ac_dir_suffix= ac_top_builddir=
31330 .) # No --srcdir option. We are building in place.
31332 if test -z "$ac_top_builddir"; then
31335 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31337 [\\/]* | ?:[\\/]* ) # Absolute path.
31338 ac_srcdir=$srcdir$ac_dir_suffix;
31339 ac_top_srcdir=$srcdir ;;
31340 *) # Relative path.
31341 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31342 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31345 # Do not use `cd foo && pwd` to compute absolute paths, because
31346 # the directories may not exist.
31348 .) ac_abs_builddir="$ac_dir";;
31351 .) ac_abs_builddir=`pwd`;;
31352 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31353 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31356 case $ac_abs_builddir in
31357 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31359 case ${ac_top_builddir}. in
31360 .) ac_abs_top_builddir=$ac_abs_builddir;;
31361 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31362 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31365 case $ac_abs_builddir in
31366 .) ac_abs_srcdir=$ac_srcdir;;
31369 .) ac_abs_srcdir=$ac_abs_builddir;;
31370 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31371 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31374 case $ac_abs_builddir in
31375 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31377 case $ac_top_srcdir in
31378 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31379 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31380 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31387 # Check for guested configure; otherwise get Cygnus style configure.
31388 if test -f $ac_srcdir/configure.gnu; then
31389 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31390 elif test -f $ac_srcdir/configure; then
31391 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31392 elif test -f $ac_srcdir/configure.in; then
31393 ac_sub_configure=$ac_configure
31395 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31396 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31400 # The recursion is here.
31401 if test -n "$ac_sub_configure"; then
31402 # Make the cache file name correct relative to the subdirectory.
31403 case $cache_file in
31404 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31405 *) # Relative path.
31406 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31409 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31410 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31411 # The eval makes quoting arguments work.
31412 eval $ac_sub_configure $ac_sub_configure_args \
31413 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31414 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31415 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31416 { (exit 1); exit 1; }; }
31424 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31425 { echo "$as_me:$LINENO: WARNING: ***** llvmgcc/llvmg++ was not found, or does not appear to be " >&5
31426 echo "$as_me: WARNING: ***** llvmgcc/llvmg++ was not found, or does not appear to be " >&2;}
31427 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31428 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31429 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31430 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31431 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31432 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31433 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31434 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}